Professional Documents
Culture Documents
Abstract—Gas volume fraction (GVF) is an important accuracy of single-phase measurement, the separation process
parameter for the measurement of oil-gas two-phase flow. On- of multi-phase flow is complicated. The equipment is
line measurement of the GVF of oil and gas two-phase flow is of expensive and inefficient, so it is urgent to find a fast,
great significance for the safety monitoring and measurement of accurate and efficient online measurement technology for
oilfield production processes. So it is an urgent problem to
multiphase flow [1].
quickly and accurately detect the real-time GVF according to the
non-destructive testing of oilfield field devices. In this paper, a The flow measurement of two-phase flow has the
method based on different flow rates and oil-gas ratios is characteristics that the phase interface change is difficult to
proposed. The method of convolutional neural network (CNN) is measure, the phase slips, and the flow state changes randomly.
used to predict the gas and oil flow rate in oil-gas two-phase The measurement is difficult. Regarding the flow measure-
flows. Compared with traditional algorithms, CNN algorithm ment of two-phase flow, there are many technologies that
solves the problem of the relationship between high-dimensional have been used at present. Abdalellah O. Mohmmed et al. use
data (streaming image pixels) and low-dimensional data (GVF high-speed cameras (with transparent tube segments) to take
values and traffic) that cannot be solved by traditional algori- high-speed shooting records for convection type [2], and
thms. The data of different flow and oil-gas ratios of oil and gas
Xiaoxiao Dong et al. use ultrasonic Doppler sensors estimate
two-phase flow were collected by experiment. The data collected
by electrical capacitance tomography (ECT) was reconstructed the total surface velocity of the oil-water two-phase flow. In
using linear projection algorithm (LBP) to obtain the flow addition, commonly used methods include electrical
pattern. The reconstructed flow graphs are predicted by capacitance tomography (ECT), ultrasonic Doppler sensor [8],
Binarized image measurement algorithm, SVM algorithm and acoustic emission [3], fiber optic probe [4], wire-mesh sensor
convolutional neural network algorithm for oil flow rate, gas [5]. These methods are feasible in a laboratory environment,
flow rate, and GVF. The average relative error of GVF but considering the complexity of the oilfield environment,
prediction is 43% for Binarized image measurement algorithm, the application of these methods in real-world environments
8% for SVM algorithm, and 5% for the CNN algorithm. The can be hampered. Therefore, ECT is a commonly used
CNN algorithm effectively avoids the possible over-fitting
detection method in the field of oil fields [9].
problem. Its loss function uses ElasticNet regression instead of
least squares regression. The inception V3 model used is In the two-phase flow, the two-phase interface is distributed
decomposed into small convolutions, which can reduce the into different geometric shapes or structural forms, which are
amount of parameters, reduce over-fitting, and enhance the called two-phase flow patterns. Flow pattern is one of the
nonlinear expression of the network. The final model has an most basic characteristic parameters of two-phase flows. The
allowable error range of 5% and the accuracy can reach more method often used to identify the flow state in an oil-gas two-
than 90%. phase flow is the observation method, but this usually leads to
the subjectivity of the identification. In order to improve the
Keywords—electrical capacitance tomography, convolutional objectivity of flow pattern recognition, some intelligent
neural network, gas volume fraction
algorithms have been proposed. Currently, wavelet analysis
methods [9], SVM, genetic algorithms are adopted.
I. INTRODUCTION In this paper, the convolutional neural network algorithm is
Multiphase flow measurement technology plays an used to realize the nonlinear mapping from oil-gas two-phase
important role in the exploitation of marine oil and gas, and flow parameters (gas volume fraction and flow rate) to flow
the accurate measurement of gas flow rate and oil flow rate in patterns under different working conditions [8], and compared
gas-liquid two-phase flow has been the current research focus with Binarized image measurement algorithm and SVM
and difficulty. In traditional flow measurement, multiple algorithm. The ECT data of oil and gas two-phase flow under
mixtures obtained in oil wells need to be separated in the well different gas volume fraction and flow rate is measured, and
to measure single-phase flow. Although this way improves the the capacitance data used to image reconstruction. According
978-1-7281-3868-8/19/$31.00 ©2019
Authorized licensed use limited to: IEEE
Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.
to different oil-gas ratios and flow patterns under different c. Image reconstruction
flow rates, the convolutional neural network algorithm is used ECT image reconstruction is an inverse problem of ECT,
to make a more accurate prediction of the oil flow rate, gas which is to determine the distribution of dielectric constants in
flow rate, and GVF. a pipe based on capacitance measurements between pairs of
electrodes. There is a nonlinear relationship between the mea-
sured capacitance value and the dielectric constant, which can
II. METHODOLOGY
be simplified as:
A. Electrical Capacitance Tomography (ECT ) λ = Sg (4)
Where λ is the normalized capacitance vector, S is the
a. Principle normalized sensitive field matrix, and g is the internal distri-
Electrical capacitance tomography (ECT) consists of three bution matrix of the medium (normalized dielectric constant).
main components: ECT sensors, data acquisition systems, and For the ECT system, the normalization formula for λ is as
computer imaging systems. follows:
λ − λmin
The commonly used electrical capacitance tomography λnormal = (5)
λmax − λmin
(ECT) sensor consists of eight plates. For a sensor consisting λmin is the capacitance measurement vector when full of gas,
of N electrode plates, the number of independent capacitors
measured when one of the electrodes is energized and the other and λ is the capacitance measurement vector at full oil. For a
max
electrode is held at zero potential, is N(N-1)/2 [10]. two-dimensional field, the sensitive field matrix S can be
solved by the following formula:JJG
In ECT, the boundary condition is that the potential JJG
Ei (k ) E j ( k )
distribution of the excitation electrode is =V, and the Si , j ( k ) = − ³ ⋅ ds, k=1,2,...M (6)
Vi Vj
potential distribution of the stationary electrode is =0. In two- τ
dimensional geometry, the relationship between capacitance Where SJJGi , j (k ) is the sensitivity of the electrode to the kth
and dielectric constant distribution is: cell of i-j, Ei (k ) is the voltage excitation Vi of the electrode i,
and the electric field intensity distribution JJG
of the other
Q 1 (1) electrodes under grounding conditions, E is the same, and τ
C= = − ³³ ε ( x, y )∇φ ( x, y) dτ j
V V τ
is the area of the grid k. In imaging, to make the measurement
Where Q represents the charge, ε ( x, y ) and φ ( x, y ) is the data dimensionless and reduce the influence of error, it is
dielectric constant distribution and potential distribution in the often necessary to normalize the sensitive field matrix as
sensing region, respectively, and τ is the unit charge on ele- follows:
ctrode surface. Sij
Sij* =
b. Calculation of GVF
M
(7)
¦S ij
In this paper, the flow pattern changes under different GVF k =1
are studied. The formula for calculating GVF in oil and gas The algorithm is simple in principle and fast in imaging
two-phase flow is: speed. It is widely used in ECT imaging. This paper uses LBP
G gas algorithm to obtain the flow pattern of oil and gas two-phase
GVF = × 1 00% (2) flow under different flow rates and oil-gas ratios.
G ga s + G o il
Among them, G is the volume of oil under working
oil B. SVM algorithm
conditions , G g a s is the volume of gas under working In this paper, we use the regression model of support
conditions. The working condition refers to the actual vector machine and consider using the function:
operating conditions. The industrial gas standard status refers f ( x ) =< ω , φ ( x ) > + b (8)
to the state of 101.325 kPa and 20°C; at the standard
condition, temperature is 0°C (273.15 open) and the pressure To fit the sample set:
is 101.325 kPa Case (1 standard atmospheric pressure, 760 f ( x ) =< ω , φ ( x ) > + b (9)
mm Hg). In this paper, we need to convert the volume of the Where x is an independent variable, y is a dependent
gas collected under the standard conditions into the volume of variable, ω is a weight vector, b is an offset, and
the gas under working conditions: φ ( x) : R d → H is a nonlinear function that maps the data set S
P2 ⋅ T1 to a high-dimensional linear feature space and seeks
V1 = ⋅ V2 (3)
P1 ⋅ T2
optimality in the feature vector. For a given training data set,
Where V1 is the volume of gas under working conditions, the ε insensitive loss function is used. The corresponding
Ggasis the volume of gas under standard conditions, P1 is the support vector machine is called ε -Support Vector Machine.
actual pressure, P2 is the standard physical atmospheric pre-
ssure, T1 is the temperature under working conditions, that is C. Convolutional Neural Network
the actual absolute temperature, and T2 is the standard The image reconstruction algorithm can obtain the flow
condition temperature, i.e. 0°C . pattern under different working conditions. In order to explore
the flow pattern, change under different GVF and flow
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.
conditions. The CNN algorithm is needed to solve the III. EXPERIMENTS
nonlinear mapping from the oil-gas two-phase flow
parameters (GVF and flow rate) to the flow pattern change. A. Experimental equipment
As a very deep convolutional neural network, Inception V3 The overall experimental equipment is shown in figure 1.
has a very sophisticated design and construction. The con- The blue pipeline represents a single phase of air, white oil
volutional network is gradually reduced in size from input to and tape water. The oil and water are stored in a separator,
output, and the number of output channels is gradually separated according to the principle of gravity, and the gas is
increased. In addition, the Inception Module uses multiple produced by a gas phase compressor. The three-phase mixture
branches to extract high-level features of different levels of can pass the horizontal or vertical test line (shown in gray in
abstraction, which enriches the expressive power of the the figure 1, size is 2, 3 or 4 inches), the test line is 8 meters
network. It is very suitable for solving the high-dimensional long, and the ECT sensor is on the test line. The maximum
and nonlinear relationship between the flow pattern and the pressure of the device is 2Mpa.
gas flow rate, the oil flow rate. In this paper, the input layer of
the neural network is a flow pattern obtained by image recon-
struction, and the output layer has two neurons for outputting
the predicted values of gas flow rate and oil flow rate.
The forward propagation algorithm in neural networks can
be expressed as:
N l −1
ail = f ( ¦ wij l a j l −1 + bi l ) (10)
j =1
Where ail is the output value of the ith neuron in the l th neu-
ral network, a is the output of the j neuron in the (l − 1) layer
j
l −1 th th
Fig. 1. Scheme of gas-oil-water flow facility.
neural network, and wij l is the jth neuron of the ( l − 1) layer to th
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.
Gas flow rate˄ m 3 h −1 ˅ 20 50 90 150 10
Oil flow rate˄ m 3 h −1 ˅
6 0.35 0.57 0.71 0.80 Fig. 2. LBP image reconstruction of experimental flow conditions
7 0.32 0.54 0.68 0.78 (gas flow rate: 20 - 150 m3/h, oil flow rate: 1 - 10 m3/h)
8 0.29 0.50 0.65 0.75
10 0.24 0.45 0.59 0.71
The above is the flow pattern obtained by the LBP
algorithm under different flow rates and oil-gas ratios. It can
Under all of the above conditions, the GVF values were
be seen that the flow pattern changes significantly under
evenly distributed between (0, 1). The total flow distribution
different GVF and flow rates. In order to explore the
range is also wide. No experimental measurements were taken
relationship between flow pattern changes and oil flow rate,
until the single flow rate was stabilized and the mixing of the
gas flow rate, and GVF, CNN algorithm is used to solve the
two fluids was completed.
nonlinear problem between the flow image, the oil flow rate
IV. RESULTS AND DISCUSSIONS and gas flow rate.
B. Flow pattern recognition and prediction
A. Flow data analysis
The commonly used algorithms for GVF prediction include
In this experiment, the two-phase flow of oil and gas passes
Binarized image measurement algorithm and SVM algorithm.
through the ECT sensor, the data is recorded, and the acquired
The flow pattern obtained by LBP algorithm is taken as input,
ECT capacitance data is imaged by the LBP algorithm. Due to
and the oil flow rate, gas flow rate, and GVF value at that
the presence of gas, the flow pattern is relatively large.
time are predicted.
Therefore, the collected ECT data is averaged within 1 second
to reduce the floating frequency of the flow pattern, thus the I. Binarized imaging algorithm
flow pattern tends to be stable and is convenient for analysis.
Extracting the effective pixels of the flow graph obtained
The ECT data collected under all conditions is reconstructed
by the linear projection algorithm (LBP) (i.e., removing the
by LBP (see Figure2).
white edge portion of the flow graph obtained in the above
Gas flow rate 20 50 90 150 figure), acquiring the threshold in the image pixel, and
Oil flow rate performing binarization processing (high dielectric The
constant is 1 and the air is 0), so that the GVF at the current
1 time is calculated according to the flow pattern and the GVF
predicted by 10000 images in each working condition is
1.5 averaged and compared with the actual GVF. The GVF
prediction under the 52 conditions is predicted and the relative
error is obtained.
2
2.5
3.5
4.5
5
Fig. 3. Binarized image measurement algorithm GVF prediction
relative error
6
From the figure (the abscissa is 52 kinds of working
7
conditions, the ordinate is the average value of the predicted
GVF of 10000 pictures under each working condition), it can
be seen that the Binarized image measuring algorithm predicts
8 the GVF method is weak. This may be due to the low imaging
accuracy of the LBP algorithm. The LBP algorithm has good
real-time performance, but the imaging accuracy is weak
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.
compared to various complex iterative algorithms. This III. Flow pattern recognition with CNN
affects the accuracy of GVF measurements. The training model uses the Inception V3 network in the
convolutional neural network (CNN). Since the input is
II. SVM Algorithm picture pixel data, the data dimension is high, and the data
The SVM algorithm is a commonly used algorithm for volume is large. Using the Inception V3 network, a large two-
GVF prediction of oil and gas two-phase flow. The flow dimensional convolution can be split into two smaller ones.
pattern obtained by the linear projection algorithm is input The small convolution kernels can handle more abundant
into the model, and the oil flow rate, gas flow rate, and GVF spatial features increase feature diversity and effectively solve
value corresponding to each flow pattern are input the complexity of image high-dimensional data.
respectively. Out of its nonlinear correspondence, the oil flow The following predictions are made using the CNN
rate, gas flow rate, and GVF predicted by 10,000 images in algorithm. The oil flow rate, gas flow rate, and GVF predicted
each working condition are averaged separately and compared by 10,000 images in each working condition are averaged
with the true value under the working condition. separately, compared with the actual value under the working
The oil flow rate, gas flow rate, and GVF prediction under conditions. The oil flow rate, gas flow rate, and GVF under
the 52 conditions is predicted and the relative error is the 52 conditions was predicted.
obtained.
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.
and SVM algorithm. The CNN algorithm proposed in this different flow rates and GVF. Considering the nonlinear
paper can predict the oil flow rate, gas flow rate and GVF, relationship between flow pattern image data and gas flow
and the average error of the predicted value and the true value rate and oil flow rate, CNN algorithm is proposed to better
is 5%. It can be seen that the CNN network satisfactorily predict gas flow rate and oil flow rate. Through experiments,
solves the problem of the relationship between high- the CNN algorithm has fast, accurate, and stable performance.
dimensional data (streaming image pixels) and low- The experimental results show that the CNN algorithm has
dimensional data (GVF and flow rate), which greatly higher prediction performance. The average relative error rate
improves the prediction results. of gas flow rate is 7%; the average relative error rate of oil
To avoid the effect of extreme values on the mean, the flow rate is 7%, and the average relative error of GVF is 5%.
following is a comparison of the 90th percentiles of the In summary, the CNN algorithm can greatly improve the
relative errors of the three algorithms. prediction accuracy of GVF, with high prediction accuracy
and high speed. It has a great significance for accurate
TABLE III. FORECAST RELATIVE ERROR 90TH PERCENTILE COMPARISON measurement of oil and gas flow rate and GVF value.
TABLE
Remarks: In response to the editor's question, "please include the application of this technology in medicine", we have not
considered the application of this technology in the medical field yet, because there is no application of venturi tube flow rate
measurement in the medical field. Maybe as the research goes on, we'll find a place that fits the medical application.
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on February 23,2024 at 05:01:26 UTC from IEEE Xplore. Restrictions apply.