Beruflich Dokumente
Kultur Dokumente
Pdrobum Etwbwers
SW 26246
Rod Pumping Expert System
E.R. Martinez and W.J, Moreno, Corpoven S.A,; V,J. Castillo, Perfoprocf; and J,A. Moreno,
U. Central de Venezuela
SPE Member
Copyright 1993, Society of Pelroleum Englnaars Inc.
Thh paper wea prepared for presen!ellon al the SPE Petroleum Computer Conference held In New Orleen8, Loulslane, U.S.A., 11-14 July 1993.
This paper wee Seleafed for prtwenlatlon by an SPE Program Committee followlng review of Information contained In an abatracr submitted by the 8UlhW(S). ConVwMeof the paper,
as preaanted, have not been tevlsw@ by the Scciety of Petroleum Engineers and are eub]act to correction by the author(s). The material. es pfeaenh?d.doee not necessarily mflsct
any ~sit[on of the ~lety ot Petroleum Engineere, ite officere, or membere.Pepere Pre8antedat SPE rneetkwweWect topublication
review
WEditorial
committees
c?lh* SoclJtY
0! Petro!aumEnglne#a. Permieaionto 00PyIeraefricfedto an abstractof not morethan 390worde.Ilhie!ratlonamaynot be wplsd. The abetractehouldcontain corraplcuoueacknowledgment
o: where and by whom the papar Ie preeented. Wrl!e Librarian, SPE. P.O. Box 833S36, Richardson, TX 75083-3S36,U.S.A. Talex. 1S3245SPEUT.
SrRAcT
This paper describes the development of a rod
pumping expert system in which methods of
emergent computation are extensively used. These
methodologies include artificial neural networks
(ANN) and genetic algorithms (GA). The system is
implemented in order to provide assistance to the
production engineer both in the problem diagnostic
of operating units and the design of rod pumping
facilities. The chosen computational methodologies
prove to be very efllcient in executing these tasks
and require considerably less implementation time
than other more common expert system methods.
The problem diagnostic method, implementedin the
system, is based on the analysis of field
dynamometer data by means of an ANN. These
A.NNsam computational tools, inspired on models
of biological neural systems, with remarkable signal
processing capabilities proven to be effective in
areas such as pattern recognition and classification.
The diagnostic task is achieved by using an ANN to
analyze the down-hole pump cards and by means of
Rcfcxwwsandillustrationsat endof paper,
201
-1
ARTXFKXALNEW
NETWOI?KS
$PE 26246
E. MARTINEZ etoal.
3
optimization problems, that otherwise have no
reasonably fast, guaranteed algorithms for solution.
All= F(D,(wlj,Ai)
In most real life applicationsa near optimal solution
where F is an appropriately chosen transfer function is acceptable if it can be computed reasonably
for the units, and Di(wi,Ai) is some defined quickly, for most of these cases the genetic
distance metric between t1!e weight vectors with algorithms are very well suited.
componentsWI and the activity pattern of all the ith
processing umts (e.g. a C!mtesiandistance or an GAs start with a population of randomly generated
solution candidates and evolve toward better
inner product between real-valuedvectors, etc.).
solutions by applying genetic operators, modeled on
Learning in the neuml network consists of a search the genetic processes occurring in nature. A genetic
process in weight-space for a set of interconnection algorithm maintains a population of potential
weights by which the desired input-output solutions for a given problem; this population
correspondence can be satisfactorily computed. The undergoes evolution in a form of natural selection.
most common learning methods (backPropagation) In each generation relatively good solutions
involve different variants of the well known reproduce and relatively bad solutions die, to be
gradient-descentmethods of fimction optimization in replaced by offspring of the good. To distinguish
which a quadmtic error function calculated between between solutions, an evaluation or objective
the desired output and the actual network output is function plays the role of the environment. The
heuristic assumption in which GA are based is that
minindad.
the best solutions will be found in regions of the
l%e following procedures establish a methodology parameter space containing a relatively high
propmtion of good solutions and that these regions
which allows a problem to be solved with an ANN:
can be explored by conveniently chosen genetic
-A set of examples of the desired input-output operators.
relation must be collected.
-The data must be conveniently preprocessed in The structure of a simple GA is as follows:
order to compress the information and enhance the
begin
important features of the input-outputrelation.
t=o
-The data set is partitioned in a training and a
initialize P(t)
validation set.
evaluate P(t)
-A convenientarchitecture of ANN must be selected
while (not termination-condition)do
together with an appropriate learning algorithm and
begin
associatedpammeters.
t =t+l
-The network is trained.
sekct P(t) from P(t-1)
-The network is valkiated.
recombineP(t)
-The last three procedures are repeated until
evaluate P(t)
satisfaction.
end
end
G~s
Genetic algorithms [12] are a class of probabilistic
search methods that can be applied to a large
repertoire of interestingproblems, including many
203
SPE 26246
E. MARTINEZet.al.
5
systems are based on statistical pattern matching due to its e&e of implementation and history of
schemes and/or traditional knowledge based expert success, was a feedforward three-layer neural
system methods. The application of the neural network under backpropagation training and
network methodologyto this problem area proves to sigmoidal transfer function. The input layer had 30
be very convenient, not only because of the ease of units, the output layer 21 processing elements and
implementation and training of the system (based after some testing a final network with 8 hidden
solely on examples) but because this kind of units was found to be adequate. The training
application can bring new information to the objective was to produce a value of 1 in the output
diagnosticprocess through the ability of the ANN to unit corresponding to the diagnostic category of the
recognize important features in the pump card data. inputtedcard, the output units of the other categories
Another great advantage is the robustness of the were assigneda Ovalue. If a pump card showed2 or
ANN to noisy data, a characteristic not shared with more conditions, each appropriate node was trained
to output a value of 1.
the aforementionedapproaches.
The interpretation of subsurface pump card patterns
is not a trivial task, and the learning process
necessary to acquire this expertise requires the
exposure to already interpreted data and to a
teacher. In this sense, the neural network acts as
the individual trying to learn the interpretation and
we act as the professors giving the necessary
information to solve the problems that we assign,
and, hopet%lly, be able to solve new ones. The
success of this learning process requires a careful
selection of a training set of pump card data already
interpreted by experts. In this implementation a set
of 140 cards from active wells in Venezuelan oil
fields were used as training set. In the card selection
care was taken in order to provide a balanced and
representative grouping of diagnostic categories (21
in total).
Each of the down-hole pump cards to be processed
was calculated from measured surface cards and was
digitized and normalized into dirnentionless loads
and positions. A total of 100 equally spaced points
were extracted from each card. These points were
Walsh-transformed and the resulting spectrum
normalized, this pro-processing allows a
compression of the information into only 30 points
retaining the salient features of the card. These 30point set of features was used as input to the neural
network.
The neuml network architecture chosen, essentially
205
6
ROD PUMPING EXPERT SYSTEM
SPE2624Q
satisfy a desiml production at the lowest possible required the inclusion of tables about API rod and
cost. The global search method based on genetic tubing data and available equipment stock, all these
algorithms has proven to be very suitable in the were included in a small database.
solution of this class of combinatorial problem. In
this line of thought we have, for the implementation The design module requires as input from the user
of the design module, customized a GA which the following information: Specific Gravity of the
executes an intelligent search in pump fluid, Fluid Level, Pump Depth, Desired Production
configuration space in order to produce Rate, the nominal tubing di~eter and whether it is
automatically and fast several optimal design anchored or hanging free. On the output it produces
proposalscompatible with equipment restrictions and several design alternatives which include values for
the surface stroke, pumping speed, pump plunger
targetproduction entered by the user.
diameter, sucker rod types and predictions on the
The implemented pump design module is based on gearbox peak torque and loading, sucker rod stresses
the AN RP 1lL design procedure. In order to and loading, expected surface production and
automat~ all the involved ctuculations in a time maximum counterbalance moment all compatible
efficient way so as to diminish the possible with available stock and target production. With
computationalcost derived from the many necessary all these possible designs at hand the user can
xuns of the design procedure it was necessary to evaluate the alternatives simultaneously and reach
select an approximation scheme for the required the usual compromise between efficiency, equipment
functions (plunger stroke factor, peak polished rod loading, equipment size and cost.
load, minimum polished rod load, peak torque,
polished rod horse power and for adjustment for The observable that constitute the parameters
peak torque). The chosen method was to defining the search space to be explored and
approximate each of these functions by the exploited by the GA are the sutiace stroke, pumping
application of appropriately selected feedfonvard speed, pump plunger diameter and sucker rod types.
three-layer radial base fimctions (RBF) neural A point in the search or pammeter space (a
networks with gaussian transfer fhnctions [13]. This parameter set) is represented by a binary string
particular neunil network architecture was chosen, (chromosomal representation) and an adequate
due to its well known function approximation recodification procedure translates the information
properties and its ease of implementation. In each of in the chromosometo a numeric form in order to
these networksthe input layer had 2 units, the output run the AM RP 1lL design procedure. The quality
layer 1 processing elements and after some testing of the chromosomes is evaluated, by means of an
networks with 5 to 8 hidden units were found to be adequate evaluation function, in terms of the
adequate. These RBF neuml nets were pnwiously calculated pump displacement, which must be
trained with corresponding sets of values for each between 15% and 20% higher than the Desired
particular function, attaining approximations with Production Rate, and the avtiabfity in stock of the
typical normalized erms of 0,1. The weights of the equipment required to configure the proposed
trained RBF networks were saved in different files design.
for ulterior use by a subroutine implementing the
tmined network architecture In this way a call to The workings of the customized GA is as follows: it
this subroutine would produce a very accurate value initially generates a random population of 40
(design points) over which an
of any of these functions for later use in the design c~mo~mes
procedure. The time efficiency of this approximation evolution dynamics is established through the
procedure is the clue to the very fast execution time manipulationof the chromosomeswith the genetic
of the genetic algorithm. The design procedure also operators of selection, crossover and mutation but
206
*.*
$PE 26246
E. MARTINEZet.al.
7
keeping the population number constant. In each horizontal wells. Finally two additional advantages,
generation all the chromosomes are ranked with the pertaining the system, should be mentioned: the
evaluation fimction and the best of them are selected system is open and portable. These alIow the system
with a roulette wheel strategy (probability of to grow by the easy incorporation of new tasks and
selectionproportional to its fitnessor quality). The to be implanted in a wide range of computer
selected chromosomes are reproduced by crossover platforms.
with a rate of 85% and the offspring are mutated
with a mutation mte per bit of 1%. The worst
chromosomes in the parent generation are then
partially replaced without repetition by the new 1. Keating, J.F., Laine, R.E. and Jennings, J.W.
produced offsprings, a fraction of 10% of the Pattern Recognition Applied to Dynamometer
population is replaced in each generation. This Cards. paper SPE 19394presented at the 1989 SPE
dynamics is iterated over 100 generations were Annual Technical Conference and Exhibition, San
nomnally it converges to a population of design Antonio, TX, Oct. 8-11.
points of high quality. At this point the process is
stopped and the 8 best design proposals are 2. Dickinson, R.R. and Jennings, J.W. Use of
presented to the user. A typical output of this Pattern-Recognition Techniques in Analyzing
Downhole Dynamometer Cards. SPE Production
module is shown in figure 2.
Engineering , pp. 187-92(May, 1990).
CONCLUSIONS
3. Keating, J.F., Laine, R.E. and Jennings, J.W.
We have presented in some detail the construction of Application of a Pattern-Matching Expert System
Dynamometer- Card Pattern
an emergent techniques based rod pump expert to Sucker-Rod,
system. The system, implementedin the C.language, Recognition. paper SPE 21666 NUPRO Show
consists of two different modules, a problem and Tell (demo) Jan. 8 (1991).
diagnostic module which exploits the powerful
abilities of the ANNs as pattern recognition and 4. Foley, W.L. and Svinos, J,G. Expert Adviser
cl:ssiflcation systems for the analysis of down-hole Program for Rod Pumping. J. Pet. Tech. pp. 394pump cards and a facility design module employing 400 (April, 1989).
the intelligent search strategy wrapped in the GAs
to configure a very efficient and fast system which 5. Derek, H.J. Sucker Rod Pumping Unit
produces simultaneously several optimal design Diagnosis Using an Expert System and Pattern
proposals for pump facilities. The results to date Recognition Techniques. MS Thesis, TX A&M U.
indicate that we have made good choices in respect College Station (1988).
to the applied methodologies, we have obviated a
costly knowledge engineering issue and the 6. Reep, G.J. and Tudor, J.L. Analyzing Downimplementationtimes of the system were very short. Hole Pump Cards Using a Neural Network
On the other hand the maintenance and updating of
the system is a simple task. In this respect the 7. Gibbs, S.G. Predicting the Behavior of Sucker
diagnostic module can be updated or specialized to Rod Pumping Systems. J. Pet. Tech. pp. 769-778
new or specific diagnostic problems by restraining (July, 1963).
the ANN, a matter of hours when the training data is
available. The design rhodule could be updated 8. Svinos, J.G. Exact Kinematic Analysis of
incorporating other more general design procedures Pumping Units paper SPE 12201 presented at the
not only for vefiical but also for deviated and 58th SPE Annual Technical Conference and
207
SPE 2624G
DM6NOSTK0
POZO:MFEI-396
t!17
MWltullENTO DE TUBEfUA d
MAL ANCLAJE
,>>
:2
RESULTAOOS
SND
PUIII.spm pulg.
swta de
Prod
cabillas
bpd.
64
5.00
64
54
54
54
54
5s00
5.00
6.50
5*OO
5.00
2.25
3.75
2.25
250
2.75
150.4
1 X 713
157.1
i58,2
?m x 314
7JTIX 3/4
159.0
1 x 7/8
146.1
1 X 7/WX 3/4 160.6
FTgure2
208
Torque Cbe
Ibs-pulg Ibs
70178
11766
63735 10769
83459 12482
83380 13003
59828
9908
68608 12873
72291 12997
I-J