Professional Documents
Culture Documents
Intelligence in Well-Test
Interpretation
Olivier F. Allain, * SPE, and Roland N. Horne, SPE, Stanford U.
Summary. This paper describes Introduction in the case of a human expert is built almost
techniques for the identification of The use of computers for well-test analysis unconsciously. Techniques were developed
has played an important role in the devel- to replicate this viSUal-perception step.
well-test interpretation models from A major difficulty in the analysis of real
opment and application of new interpretation
pressure-derivative data. Artificial in- techniques. 1 With nonlinear regression, al- data, particularly when the pressure deriva-
telligence (AI) techniques are used to gorithms have been developed that can per- tive is used, is the separation of the true
form automated type-curve matching when reservoir response from signal or differen-
separate the derivative response
given a specific model and a first estima- tiation noise. Again, this is relatively simple
from signal and differentiation noise, for a human observer, but difficult to im-
tion of its parameters. 2-8 Such algorithms
and a rule-based recognition system not only speed the interpretation procedure plement in a computer program. This paper
characterizes the response using a but also increase the confidence in the re- describes an algorithm developed to over-
sults by allowing quantification of the qual- come this problem. The algorithm was able
symbolic representation. to distinguish response from noise correctly,
ity of the match obtained. Correct
application of these methods, however, de- thereby allowing for correct model identifi-
pends on the choice of the interpretation cation.
model. In a manner analogous to a human expert,
An interpretation procedure that uses the the technique constructs an interpretation
pressure derivative 9 - 11 is regarded as the model for the duration of the data by com-
most appropriate tool for the diagnosis of bining the features of the different flow peri-
an interpretation model for well-test data. ods of the response. The adequacy of a
The derivative is not only more sensitive to model is determined by qualitative and quan-
the different flow regimes and flow-regime titative information. Once a model is chosen
transitions but also is more generally ap- its parameters are estimated with a correla~
plicable and therefore provides a substitute tion or an appropriate table.
for all the specialized analyses. In traditional The system developed in this work can
graphical analysis, the choice of an interpre- perform model identification on real or
tation model is essentially a visual process. hypothetical data. Because the method also
Based on a log-log plot of the pressure provides parameter estimation, it can be
derivative, an expert can perform model used with an automated type-curve-matching
identification by recognizing features that analysis, allowing full automation of well-
are specific to particular analytical models. test interpretation.
The combination of the various models then The task of identifying an interpretation
gives an interpretation model. 12 model by use of the derivative of well-test
Although the human visual perception data can be separated into three components:
process is not fully understood, significant (1) observation-extraction of the features
work in AI has been conducted to develop present on the data derivative and represen-
machine vision systems. B - 15 These sys- tation of these features, (2) knowledge of the
models-methods for the construction and
tems operate not on the image itself but on
description of interpretation models, and (3)
a symbolic representation containing the in-
matching-criteria for choosing appropriate
formation needed for the task under consid-
interpretation models for given data.
eration.
This paper describes the development of The development of the specialized rule
techniques to automate the model- base and logical approach for these three
identification step of well-test interpretation components took considerable work before
by use of AI. The computer's choice of a the algorithms were able to interpret real
model is based on the pressure-derivative data reliably. The purpose of this paper is
curve and simulates the visual diagnosis per- to describe this development as an aid to
formed by a human expert. The reasoning others who may wish to attempt a similar
involved in such a diagnosis uses a symbolic approach.
representation of the derivative curve, which
Observation
'Now at Schlumberger Wireline & Testing. Gabon. To build a useful representation of the data
Copyright 1990 Society of Petroleum Engineers derivative, the first stage of the observation
process is to distinguish between the true the leftmost and rightmost points is at least data derivative with a symbolic representa-
reservoir response and the noise present on 0.2. Compute the segment corresponding to tion in terms of the following shapes: up,
the curve. This distinction is almost uncon- So' and determine its quality, Qo. down, rruvcimum, minimum, plateau, and
scious for the human observer, but needs to 2. Constitute a new set SI by including valley.
be made explicit in a computerized proce- in So the first point on its left. Compute the A plateau is a flat segment preceded by
dure. This step corresponds to the produc- corresponding segment and determine its an up; a valley is a flat segment preceded
tion of a sketch, as described by Hom, 15 quality, Q\. by a down. A flat segment has a slope that
and consists of simplifying the original data, 3. Constitute a new set S2 by including is smaller than 0.1 in absolute value. This
keeping only the significant trends. in So the first point on its right. Compute convention is similar to that of Startzman
The algorithm developed here to produce the corresponding segment and determine its and Kuo,16 who looked at symbolic
the sketch is based on the method presented quality, Q2. representation of log data. Consecutive iden-
by Lowe. 16 4. Take the maximum among Qo, Q1, tical symbols (e.g., up, up) are not allowed
and Q2. If this maximum is Qo, then the in the representation; therefore, a single
Derivative Sketch. The algorithm described best segment is the one corresponding to symbol may represent several segments. Be-
is applied to a presentation of the pressure So. Otherwise, take SI or S2 to be the set cause choosing an interpretation model in-
derivative on log-log coordinates. The with the maximum value and Q 1 or Q2 to volves not only qualitative but also
derivative is obtained with the central be the corresponding qUality. This length- quantitative considerations, it is necessary
scheme described by Bourdet et al. 11 This ens the chosen set in one direction. Final- to record which segment(s), or which
scheme uses a point somewhere before (left) ly, go to Step 2 to seek a still longer point(s) of the sketch, correspond(s) to a par-
and one somewhere after (right) the point segment. ticular symbol. This information is used in
of interest, computes the two correspond- Rather than stopping the extension of a the matching process as a complement to the
ing slopes, and takes their weighted mean. segment as soon as the quality decreases, the symbolic representation.
The noise can be reduced by imposing a algorithm actually checks further, skipping The representation chosen may seem sim-
minimum distance, called the differential in- at most three points, to see whether the qual- plistic at first in that it does not generally
terval, between the point where the deriva- ity would still increase. This enables the allow us to distinguish changes in slope. Be-
tive is calculated and the left and right removal of sharp peaks in regions that are cause real systems seldom behave exactly
points. Thus, the three points-central, left, not very noisy, which can be created by iso- like analytical models, however, the data
and right-are not necessarily adjacent to lated erroneous data points. may include significant shapes that we do
each other. The proximity of the late-time The overall description of the algorithm not want to consider for model identifica-
data points on a log-log scale and the small producing the sketch can now be given as tion. If we chose a more faithful represen-
relative change between them may cause follows. tation, we would have to deal with all the
scatter on the derivative if the differentia- 1. i=1. anomalies from the beginning of the iden-
tion interval is taken to be zero (adjacent 2. Find the best segment at point of tification procedure. On the other hand, a
points). For this reason, and because of ex- Index i. simpler representation allows for a top-down
perience with the examples considered dur- If the last point in the corresponding set procedure, basing a first diagnosis on an
ing this study, a value of 0.2 log cycles was is the last data point, then go to Step 3. overall, not-too-detailed behavior and even-
used in all cases. Otherwise, take i to be the last point in the tually augmenting this diagnosis by con-
To produce the sketch, we approximate set. Go to Step 2. sidering left-behind features on the different
successive sections of the derivative by 3. Consecutive segments are intersected. sections.
straight-line segments. These segments are Because we start from the first point on From the original pressure-derivative
obtained by least-squares fit. The number the curve, segments are preferentially ex- curve for a given test, we extracted two
of segments required to represent the main tended to the right, except for the eventual different characterizations. One is purely
trends of the curve is based on a notion of last points. symbolic and gives a qualitative description
quality, explained below. If we consider a When large scatter is avoided by taking of the response in terms of shapes; the other
subset of points and the straight-line segment the derivative with a high enough differen- is in terms of segments and gives quantita-
obtained by least-squares fit to them, we can tiation interval, this algorithm successfully tive information about these shapes.
assign to it a quality as follows: removes the noise from the derivative, keep-
ing only the main trends present on the Knowledge of Models
Q=L/a . ....................... (1)
curve. These main trends correspond to the An interpretation model is usually obtained
With this measure of quality, we define true reservoir response and constitute the ba- by combining several components that
the notion of best segment at Point M as sis for model identification. produce the observed shapes on the differ-
follows. ent parts of the derivative. 12 For a com-
1. Constitute Set So with enough points Symbolic Representation. From the sketch puterized procedure to exhibit an identical
around Point M that the distance between obtained with this method, we substitute the behavior, it needs to be provided with some
.~
-8 1
10
~
"
, £
1~10.j...
.• --,,~
.• --,,~
•• --,,~.,--,,~,-~-___l". 0
10
4
16 '6 '
Elapsed time (Ius)
Fig. i-Example data: Flow Period 4 Fig. 2-Example derivative and sketch (differentiation interval =0.2).
(buildup).
quantitatively match the data. This is done In a general case, the identification pro-
recursively, starting from the first shape in gram should not blindly trust the sketch of
the data representation, as follows. the derivative. Rather, it should be able to
I. Find a model allowed at this point such recognize anomalies and to modify its
that its first shape is the same as the one ob- representation of the response accordingly.
served and any quantitative checks applica- To allow for such behavior. the original
ble for the regime corresponding to this representation of the sketch needs to be
shape are satisfied. Go to Step 2. searched for the following: (I) hump (up,
2. Stop if there is no shape left on the maximum, down), (2) trough (down, mini-
data. Otherwise, go to Step 3. mum, up), and (3) late-time trend-up,
3. Go to next shape. If there is no shape down, valley, or plateau-when the last seg-
left in the model, find a new model allowed ment does not belong to a hump or a trough.
TABLE 2-FLOW PERIODS at this point such that its first shape is the Instances of these categories that may
same as the one observed, and any quantita- need to be removed are characterized for
Duration Flow Rate tive checks applicable for the regime cor- humps and troughs, on the basis of width,
Test (hours) (STB/D) responding to this shape are satisfied. depth, and sharpness. The late-time trend
1 3.8 800 Append it to the interpretation model built is characterized on the basis of length and
2 3.3 2.500 so far. Go to Step 2. If the next shape of slope.
3 16.45 830 the model matches the one observed and ap- The matching procedure must then be
4 18 o plicable quantitative checks are satisfied, modified according to the following rule,
then go to Step 2. Otherwise. find a model which is applied each time a new shape in
allowed at this point that, when combined the data representation must be matched. If
with the current shape, produces the one ob- the interpretation model built so far must be
TABLE 3-RESERVOIR AND served and for which applicable quantitative augmented to match the shape; the shape be-
FLUID PROPERTIES longs to an instance of one of the above
checks are satisfied. Take the combination
as new interpretation model. Go to Step 2. categories; the characteristics of this instance
B 1.5 suggest removal; and removing it would al-
Ct. psi- 1 2 x 10- 5 With a backtracking procedure that causes
the system to re-evaluate any assumption low continuation with the same model, then
h. ft 7
remove it from the representation, correct
'w. ft 0.29
0.3
made in the satisfaction of the goal, all the
'possible models will be found. the representation, and continue.
lL.cP
<P 0.05
Nonideality. Although the algorithm Parameter Estimation
producing the sketch of the derivative has To achieve a full automation of the interpre-
been shown to be sufficiently powerful in tation procedure once a model is proposed,
TABLE 4-PARAMETER ESTIMATES most of the cases considered during this it is necessary to find first estimates for its
study (provided that the derivative is taken parameters. These estimates constitute the
(Poltop) match • psi- 1 0.075 with a safe differentiation interval), it would starting point for an automated type-curve-
k. md 566 be too strong an assumption to consider that matching analysis. They are not intended to
[(toICD)/Atlmatch' hours- 1 140 the sketch contains only ideal features. For be the final result of the interpretation.
(C De 2s ), 83.6 instance, anomalous behaviors can occur The correspondence between the regimes
C. bbl/psi 0.028 during buildups, such as the effects of phase in the model description and the segments
s -3.11 redistribution in the wellbore,22 that should 'in the sketch of the derivative is used to es-
w 0.217 not be considered for model identification. timate the parameters. This is done with
Xe -2s 3.9x10- 5 very little computation with either correla-
2s
Technical or human errors, like an errone-
(C oe )'+m 18.2 ous estimation of the flowing pressure, may tions or tables built for this purpose from
also result in anomalies. 23 type curves. All these relations are based on
Some of these effects may not affect the drawdown responses but can be used for
analysis if the representation chosen is very buildups as well because only a first esti-
simple. In a buildup case with wellbore mate of the value is required.
storage, if the flowing pressure is too low,
the derivative will exhibit an inflexion be- Example
fore reaching the expected 45 0 line. The A program based on the methods developed
succession of these two trends will be con- in this study was written in PROLOG (ex-
sidered as a single up for the identification cept for the algorithm producing the sketch,
and will be diagnosed as wellbore storage which was written in FORTRAN). The use
because one of the trends has a unit slope. of this program is illustrated on a buildup
346 March 1990 • JPT
10
2
>
:g f ,
1
1"
~
J:'"
10
"
. + Flow pmad ...
_ Finl:EIti!mte
au
10
0 "
.,
"
. "
,
16 4 16 1
Elapsed time (hrs)
Fig. 4-Slmulated test with first estimates
for pseudosteady-state double-porosity
Fig. 3-Example sketch and simplified representation (differentiation Interval 0.2). = model.
test (Table 1) in which the well flowed at skin iii a reservoir with pseudosteady-state,
three different rates before shut-in. 10 The double-porosity behavior, (2) well with
pressure change is plotted vs. shut-in time wellbore storage and skin in a reservoir with
on log-log scale in Fig. 1. Table 2 lists the transient double-porosity behavior, and (3)
flow periods used for the analysis. The well with wellbore storage and skin in a
derivative was computed with respect to the homogeneous reservoir with a sealing fault.
superposition time function with two differ- Parameter EstimoJion. We illustrate how "Automated
ent differentiation intervals: 0.2 and O. estimates are obtained in the case of the first Identification.
interpretation model. Table 3 lists the reser-
Model identification was performed on both
voir and fluid properties.
provides a
curves.
Pressure match-obtained assuming that comprehensive list of
the level of the infinite-acting radial-flow all Interpretations that
Differentiation Interval =0.2. The deriva-
period in the data is the average between the
tive obtained in this case as well as the sketch are consistent with
highest and lowest derivative value. This
produced are shown in Fig. 2.
Models. A symbolic representation of the
choice is justified because radial flow is not the data, which Is
present in the response and the model con-
derivative is produced from the sketch: (up, tains regimes that produce shapes below and something even an
plateau, down, minimum, up). A symbol in above the 0.5 line. expert would rarely
this representation may correspond to sever- CDe 2s -obtained by table interpolation
al segments on the sketch. A graphical from the height of the maximum on the
attempt to do."
equivalent is given in Fig. 3 and compared early-time hump above the radial-flow level.
to the sketch. Time match-obtained by table interpola-
In this example, three different interpre- tion from the value of CD e 2s and the time
tation models were proposed by the pro- at which the maximum of the early-time
gram: (1) well with wellbore storage and hump occurs.
2,-------------------------------------------------------------------~
10
+ Original derivative
-0- Sketch
1
10
+ +
o
10 +
+ +
+
+
-1~---------,----------_r--------~r_--------_r----------r_--------~
10 -4 -3 -2 -1 o 2
10 10 10 10 10 10 10
Elapsed time (hrs)
0
10 _4 -3 -2 -1 o 1 2
10 10 10 10 10 10 10
Elapsed time (hrs)
w and A-obtained with the relations Conclusions those languages or by using an expert-
presented by Bourdet et al. 10 With an AI approach, it has been possible system shell.
Table 4 gives the values obtained. The to automate the identification step in the in- Parameter estimation is obtained with very
corresponding multirate type curve, taking terpretation of well-test data. This paper de- little computation and can be used to pro-
into account the flow-rate history (Table 2), scribed the logical steps required to separate vide initial estimates for an automated type-
was generated and differentiated with the reservoir response from the signal noise curve-matching analysis.
respect to the superposition time function. and to recognize characteristics of the reser- Automated identification produces allthe
Both type curve and original data are shown voir model from the extracted symbolic interpretation models that, according to the
in Fig. 4. representation. Definition of the rule base knowledge of the program, match the data.
requires considerable care and experimen- The measure of quality given by an auto-
Differentiation Interval=O. In this case, tation. We hope that the experience summar- mated type-curve-matching analysis for the
the derivative was obtained by use of the two ized in the paper can reduce the time different models can constitute the basis for
pressure data points immediately adjacent required for others to apply this kind of ap- automatically deciding which is most appro-
to the point at which the pressure derivative proach. priate.
was required. Using central differences in The identification process was based on Automated identification is important for
this way is known to produce extremely the pressure-derivative curve and separated two major reasons. First, it provides con-
noisy derivative values (as seen in Fig. 5) into three different components. sistency and reduces misinterpretations
and is not recommended-the approach was I. Observation-extraction of the infor- caused by associating flow models with
used in this case as a test of the AI al- mation from the data derivative by produc- inappropriate parts of the data. Second, it
gorithm's ability to handle very noisy data .. tion of the sketch of the derivative and provides a comprehensive list of all interpre-
The sketch obtained from these noisy deriva- symbolic representation of this sketch. tations that are consistent with the data,
tive data is shown on the same plot (Fig. 5) 2. Knowledge of the models-construc- which is something even an expert would
and is seen still to contain anomalies. The tion and description of interpretation rarely attempt to do.
initial representation of the sketch is quite . models, including basic models, influence
complex: (up, plateau, down, minimum, up, of combinations, combination constraints, Nomenclature
maximum, down, minimum, up, plateau, and regime description. B = FVF, RB/STB [res m 3 /stock-
down, minimum, up, maximum, down, mini- 3. Matching-identification of appropri- tank m 3 ]
mum, up, maximum, down, valley, up, max- ate interpretation models through qUalitative C r = total compressibility, psi- 1
imum, down, minimum, up, maximum, match and quantitative constraints. [kPa -I]
down). With the rules described earlier, A program based on the methods de- C = wellbore storage, bbl/psi
however, the program recognizes the scribed in this paper was written in the AI [m 3 /kPa]
anomalies and, by successively removing language PROLOG. The program has been CD = dimensionless storage constant
them, constructs the final representation of able to perform model identification on real h = formation thickness, ft [m]
the curve: (up, plateau, down, valley, down, data even when they were very noisy. The i = index
valley, up). The graphical equivalent of this use of PROLOG was important to this work k = permeability, md
representation is shown in Fig. 6 along with in that this language performs "backtrack- L = distance between the leftmost
the original sketch. ing," which means that all possible solutions and rightmost points
Only one model is identified in this case, are determined. This was one of the major
p = pressure, psi [kPa]
a well with wellbore storage and skin in a goals of the work: to provide a mechanism
p D = dimensionless pressure
reservoir with pseudosteady-state, double- by which no feasible interpretation fails to
ilp = pressure change, psi [kPa]
porosity behavior. The two other models ob- be included (as might occur in a manual
tained in the previous case are not proposed analysis). This backtracking feature is the
Q = quality
here. This is because the representation ex- principal reason for the choice of PROLOG r = regime
hibits a stabilization after the early-time over such languages as LISP, C, or FOR- r w = wellbore radius, ft [m]
hump (Fig. 6). The stabilization found TRAN, although it is conceivable, as with s = van Everdingen-Hurst skin
occurs in a very noisy region and may there- any AI application, that the method could factor
fore be erroneous. be implemented with greater difficulty in Si = shape