Multiphase_gas_flow_model_of_an_electric
Multiphase_gas_flow_model_of_an_electric
REGULAR ARTICLE
Abstract. Various artificial lifting systems are used in the oil and gas industry. An example is the Electrical
Submersible Pump (ESP). When the gas flow is high, ESPs usually fail prematurely because of a lack of infor-
mation about the two-phase flow during pumping operations. Here, we develop models to estimate the gas flow
in a two-phase mixture being pumped through an ESP. Using these models and experimental system response
data, the pump operating point can be controlled. The models are based on nonparametric identification using
a support vector machine learning algorithm. The learning machine’s hidden parameters are determined with a
genetic algorithm. The results obtained with each model are validated and compared in terms of estimation
error. The models are able to successfully identify the gas flow in the liquid-gas mixture transported by an ESP.
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0),
which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2 D.M. Martinez Ricardo et al.: Oil & Gas Science and Technology - Rev. IFP Energies nouvelles 73, 29 (2018)
7
Gaussian
6
Kernel
5
4
3
2
1
1 2 3 4 5 6 7 8
the same number of bits for each parameter [e.g., Table 1. ESP test-circuit configuration for data
P = (C, e, r2) = (2,4,3) ! Pbit = (0010 0100 0011)]. acquisition.
Hence, if a parameter is represented by b bits, the genome
size is l = 3b. In the crossover process, a random point k is Test Pump speed Inlet pressure Gas flow
selected and the bits to the right of this are swapped (rpm) (bar) (kg h1)
between the parents to create descendants [e.g., if the par- 1 1800 100 0
ents are P1 = (0010 0100 0011) and P2 = (0101 0001
1
1111), then for k = 5 we have S1 = (0010 0001 1111) and
S2 = (0101 0100 0011) as descendants]. This crossover pro- 200 2
cess is repeated until the population of descendants is the 3
same size as the initial population. The algorithm includes 2 3000 100 0
a final step called the mutation operator that is intended 1
to maintain population diversity. This operator randomly
200 2
selects some of the individuals generated and performs a
mutation in their genomes by changing one bit at random 3
[e.g., a selected individual S = (0010 0001 1111) becomes
Smutate = (0010 0001 1011) after the mutation]. The above
steps are repeated until the stop condition is satisfied.
models were tested. The different sets of training samples
used for each model are shown in Table 2. The objective
of these 10 sets is to be able to select as input the best com-
3 Results bination of the data acquired from the test system to be
able to identify the gas flow in the EPS and thus obtain
An SVMR was used to develop a nonparametric black-box models that represent the variations of the percentage of
model for identifying the gas flow in a J200N ESP based on gas in the pump.
different characteristic system parameters. Casing vibra- Having defined and acquired the model inputs and out-
tion, total flow, torque and elevation were used as inputs, puts, we used a genetic algorithm to estimate the best
and a graphical representation of estimated gas flow in parameters (C, e, r2) and so identify the most representa-
the ESP was used as output, since these are the data that tive model for each set of training samples. Various tests
are available in the ESP circuit tests. Several experiments were performed for each of the ten models in Table 2.
were performed in the ESP test circuit in the LABPETRO The configuration of the GA for each of the tests is shown
laboratory at Unicamp using the initial operating condi- in Table 3.
tions in Table 1. The ESP system was tested at 1800 rpm The results of the tests with each of the models using the
and 3000 rpm with manometric inlet pressures of 100 bar GA configurations in Table 3 are shown in Table 4. Selec-
and 200 bar, respectively, and gas flows of 0–3 kg h1. tion of the parameters to be used with the SVMR was based
After the data used to estimate the model parameters on analysis of the Mean Square Error (MSE) and autocor-
had been acquired, the signals were post-processed. This relation coefficient. The parameters that yielded the lowest
is necessary because the acquired ESP casing vibration sig- MSE and highest autocorrelation coefficient were selected
nals contain noise and are difficult to predict in the time and then used in the model to predict the ESP gas flow.
domain even though the initial test-circuit conditions are Table 4 shows the configurations of the GA that yielded
known. A spectral representation of the signals was there- the best results and the corresponding SVMR parameters,
fore used so that they could be characterized by their power MSE and autocorrelation coefficient for each model.
spectral density. This was done with a finite Fourier trans- Once the input and output data for each model have
form and the autocorrelation function, a technique typically been acquired and the SVMR parameters have been esti-
used to analyze measurement signals when working with mated by the GA, the gas flow in the ESP can be estimated
digital equipment and discrete algorithms, as in this case using different characteristic system parameters. The power
[17]. of generalization of each model was determined by measur-
After the spectral representation had been generated, ing the performance of the model with a data set not
the autocorrelation of the power spectral density was calcu- included in the training data used to build the model. This
lated for specific positive frequencies corresponding to the test data set corresponded to 20% of the total data used and
pump speeds and their respective multiples. For example, the rest of the data is used for training [18].
for a pump speed of 1800 rpm, the frequencies evaluated To evaluate the ten SVMR models, the actual gas flow
were 30, 60, 90 and 120 Hz, as these are the frequencies was compared with the gas flow predicted by each model.
at which there are significant changes in the spectral repre- For each of the four flows, a mean was estimated for all
sentation when the gas flow in the ESP changes. In this the test samples and the MSE was calculated for each
way, a new set of data is acquired that can be used as inputs model so that their performance could be compared. Table 5
in the system identification. The patterns of the spectral shows the gas flows estimated by the SVMR models and the
representations of the signals associated with the casing corresponding MSE.
vibration variable can be seen in Figure 3. To evaluate the performance of the models, the gas
Ten different models were built using a variety of signals flows estimated by each model were compared. Figure 4
as input, and once the parameters had been estimated the shows the flows estimated by each of the models for actual
D.M. Martinez Ricardo et al.: Oil & Gas Science and Technology - Rev. IFP Energies nouvelles 73, 29 (2018) 5
Table 2. Input and output data used with each model. Table 4. Selected SVMR parameters.
Model Input Output SVMR parameters
1 Spectral representation of the ESP Gas flow Model GAca C r2 e MSEb rc
vibration signal and total flow 1 7 20.698 0.127 0.0011 0.0183 0.98
2 Spectral representation of the ESP Gas flow 2 7 15.934 0.125 0.0022 0.0844 0.93
vibration signal and torque 3 3 473.793 0.345 0.0745 0.1023 0.89
3 Spectral representation of the ESP Gas flow 4 2 547.638 30.990 0.0078 0.0761 0.96
vibration signal and elevation 5 4 14.322 1.667 1.6673 0.0027 0.99
4 Total flow and torque Gas flow 6 2 55.237 2.193 0.0170 0.0582 0.95
5 Total flow and elevation Gas flow 7 4 4.061 0.463 0.0924 0.0227 0.98
6 Torque and elevation Gas flow 8 4 8.756 30.857 0.2394 0.9309 0.59
7 Spectral representation of the ESP Gas flow 9 6 777.785 31.495 0.2435 0.1610 0.83
vibration signal 10 7 903.983 1.226 0.2381 0.4413 0.71
8 Total flowl Gas flow a
9 Torque Gas flow GA configuration.
b
Training MSE.
10 Elevation Gas flow c
Autocorrelation coefficient.
Table 6. MSE and autocorrelation coefficient of the 3 Snyder J.R., Dale R., Joe Haws H. (1989) Pump off/gas lock
SVMR models. motor controller for electrical submersible pumps, EP Patent
App. EP19,880,202,383, 03 May.
Model MSE Autocorrelation coefficient 4 Klein F.L., Seleghim, Jr. P., Eric H. (2004) Time-frequency
02 analysis of intermittent two-phase flows in horizontal piping,
1 1.84E 0.985 J. Braz. Soc. Mech. Sci. Eng. 26, 2, 174–179.
2 6.16E02 0.954 5 Kolpak M.K., Rock T.J. (1996) Measuring vibration of a fluid
3 0.102 0.896 stream to determine gas fraction, U.S. Patent No. 5,524,475,
4 0.076 0.967 11 June.
6 Henry M.P., Richard R.P. (2014) Multiphase flow metering
5 0.0027 0.997 system, U.S. Patent Application No 14/135,085, 19 Dec.
6 0.058 0.957 7 Nelles O. (2001) Nonlinear system identification, Springer-
7 0.022 0.983 Verlag, Berlin Heidelberg.
8 0.930 0.597 8 Ljung L. (1999) System identification: Theory for the user,
Prentice Hall PTR, Upper Saddle River, NJ.
9 0.161 0.830
9 Dietterich T.G. (1986) Learning at the knowledge level,
10 0.441 0.710 Mach. Lear. 1, 287–315.
10 Rychetsky M. (2001) Algorithms and architectures for
machine learning based on regularized neural networks and
4 Conclusion support vector approaches, Shaker Verlag GmbH, Germany.
11 Vapnik V. (1995) The nature of statistical learning theory,
Springer-Verlag, New York.
We have proposed different nonparametric VSMR models 12 Vapnik V., Golowich S., Steven E., Smola A. (1996) Support
for estimating the gas flow in an ESP. The models use vector method for function approximation, regression esti-
experimental vibration, total-flow, torque and elevation mation, and signal processing, Advances in Neural Informa-
data collected from the pump and pipe system. tion Processing Systems 9, pp. 281–287.
The hidden parameters of the SVMR were estimated 13 Stoean R., Dumitrescu D., Preuss M., Stoean C. (2006)
using a GA, thus ensuring that the models have good power Evolutionary support vector regression machines, in:
of generalization and, in turn, perform well. This was con- SYNASC ’06 Proceedings of the Eighth International Sym-
firmed by testing the models with data that were not used posium on Symbolic and Numeric Algorithms for Scientific
during training. The models can be used to solve the Computing, IEEE Computer Society, Washington, DC,
problem of premature failure due to high gas flow in ESP pp. 330–335.
systems. This problem arises because of insufficient infor- 14 Zhang H., Yongmei L. (2013) BSP-Based Support Vector
mation about the multiphase nature of the flow in the Regression Machine Parallel Framework, Computer and
pump and can be easily avoided just by changing the pump Information Science (ICIS), 2013 IEEE/ACIS 12th Interna-
operating conditions. tional Conference on. IEEE, Niigata, Japan, pp. 329–334.
One of the most significant findings of this study is that 15 Yu Q., Liu Y., Rao F. (2009) Parameter selection of support
total flow and elevation yielded the most accurate estimates vector regression machine based on differential evolution
of gas flow, as the models using these parameters had the algorithm. Fuzzy systems and knowledge discovery, de FSKD
’09. Sixth International Conference, pp. 596–598.
lowest MSE (0.003) and highest autocorrelation coefficient
16 Zhenyue H., Mei C. (2009) Soft sensor modeling using SVR
(0.997).
based on genetic algorithm and akaike information criterion,
intelligent human-machine systems and cybernetics, Intelli-
gent Human-Machine Systems and Cybernetics, 2009.
References IHMSC’09. International Conference on, Vol. 2, IEEE.
17 Blackman R.B., Tukey J.W. (1959) The measurement of
1 Tákacs G. (2009) Electrical submersible pumps manual: power spectra, Dover publications, New York.
design, operations, and maintenance, Gulf Professional 18 Michael K. (1996) A bound on the error of cross validation
Publishing. using the approximation and estimation rates, with conse-
2 Varon M.P. (2013) Estudo de uma bomba centrı́fuga quences for the training-test split, Advances in Neural
submersa (BCS) como medidor de vazão, Msc Thesis, Information Processing Systems, pp. 183–189.
FEM-UNICAMP, Campinas, Brazil.