A method and device for measuring liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF
By combining ERT and EMF technology, data preprocessing and machine learning models are used to select prediction methods within different applicable ranges, solving the problems of low efficiency and insufficient accuracy in oil, gas and water three-phase flow measurement, and achieving high-precision liquid phase flow prediction. .
Patent Information
- Application Number
- CN202210540326.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-18
AI Technical Summary
The existing oil, gas and water three-phase flow measurement methods are inefficient, high-cost and cannot achieve real-time measurement, making it difficult to achieve high-precision liquid phase flow prediction in complex and changeable field environments.
Combining resistance tomography (ERT) and electromagnetic flowmeter (EMF) technology, through data preprocessing, flow pattern identification and machine learning models (such as linear regression and CNN-LSTM neural network), prediction methods are selected in different applicable ranges to improve Prediction accuracy of liquid phase flow.
The machine learning model is used for parameter correction within the applicable range, which improves the prediction accuracy of the liquid phase flow rate; outside the applicable range, the deep learning model is used to achieve accurate prediction, which improves the overall accuracy of the three-phase flow liquid phase flow measurement.
Smart Images

Figure CN114964396B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multiphase flow, and in particular relates to a method and a device for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF. Background Art
[0002] Oil, gas and water three-phase flow is widely used in petroleum, chemical, manufacturing and other industrial fields. Accurately measuring the flow rate of each phase can promote the scientific planning of oil well exploration and optimize the production process. However, in practical applications, the three-phase flow conditions are complex and changeable due to the uncertainty of time and location of the oil exploration site and temperature and pressure in the well. At present, the traditional method is to separate the phases of the mixture through a separator and complete the flow measurement of each stage through a single-phase flowmeter. This method is inefficient, costly, requires a lot of human resources, and cannot meet the requirements of real-time measurement.
[0003] Electrical resistance tomography (ERT) is an electrical tomography technique that uses boundary voltages around the pipe to reconstruct the conductivity distribution of the sensor cross section. Water content (WLR) and gas content fraction (GVF) are two important parameters of oil, gas and water three-phase flow. Electromagnetic flowmeter (EMF) is based on the principle of electromagnetic induction and is often used to measure the flow of single-phase liquids.
[0004] In the application scenarios where ERT and EMF sensors are used in combination, many data fusion methods have been proven to be feasible in theory and practice. Deng et al. proposed a method to fuse ERT and EMF information to obtain flow patterns and phase distributions from EMF to help ERT image reconstruction, thereby reducing EMF measurement errors and improving measurement accuracy. Faraj et al. developed a novel dual-mode system for online fast phasor flow measurement of oil-water two-phase flow, where the water flow rate is determined by EMF and the average oil volume fraction measured by ERT.
[0005] Neural networks have obvious advantages in solving nonlinear and multidimensional problems. In recent years, with the rise of artificial intelligence, more and more research tends to apply machine learning (ML) and deep learning (DL) models to solve practical problems in the industrial field. Shaban and Tavoularis used ML algorithms to measure gas and liquid flow from differential pressure signals. Principal component analysis (PCA) was used for signal preprocessing and independent component analysis (ICA) was used for feature extraction. Hu proposed a new network structure, flow adversarial generative network (FAN), for application in flow velocity prediction. The results showed that FAN can effectively prevent the decline in accuracy and has better performance than convolutional neural network (CNN) algorithms or other state-of-the-art methods in the field of flow velocity prediction.
[0006] However, due to the complexity and variability of three-phase flow patterns, the ERT-EMF measurement system based on traditional methods still finds it difficult to achieve high-precision liquid phase flow prediction results. Summary of the invention
[0007] The purpose of the embodiments of this specification is to provide a method and device for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF.
[0008] To solve the above technical problems, the embodiments of the present application are implemented in the following ways:
[0009] In a first aspect, the present application provides a method for measuring the liquid phase flow rate of an oil-gas-water three-phase flow based on ERT and EMF, the method comprising:
[0010] Acquire three-phase flow data to be measured;
[0011] Preprocessing the three-phase flow data to obtain preprocessed three-phase flow data;
[0012] Determine the scope of application based on the applicable boundaries;
[0013] According to the pre-processed three-phase flow data and its applicable scope, different methods are selected to predict the liquid phase flow rate of three-phase flow.
[0014] In one embodiment, the preprocessing includes ERT signal normalization, ERT signal spatial performance analysis, and EMF signal abnormal point screening.
[0015] In one embodiment, according to the pre-processed three-phase flow data and the applicable scope, different methods are selected to predict the liquid phase flow rate of the three-phase flow, including:
[0016] If the preprocessed data is within the applicable range, the flow pattern recognition method is used for feature extraction, and the machine learning model is used for parameter correction;
[0017] According to the corrected parameters, the liquid phase flow rate of three-phase flow is predicted.
[0018] In one embodiment, the machine learning model is a linear regression model.
[0019] In one embodiment, according to the pre-processed three-phase flow data and the applicable scope, different methods are selected to predict the liquid phase flow rate of the three-phase flow, including:
[0020] If the preprocessed data is not within the applicable range, the deep learning model is used to predict the liquid phase flow rate of the three-phase flow.
[0021] In one embodiment, the deep learning model is a CNN-LSTM based neural network.
[0022] In one embodiment, the applicable boundary is determined by the following steps:
[0023] Obtain three-phase flow experimental data;
[0024] According to the three-phase flow experimental data, the voltage mean, voltage standard deviation, EMF signal standard deviation, and EMF signal error rate are determined;
[0025] The applicable boundary is determined based on the voltage mean, voltage standard deviation, EMF signal standard deviation, EMF signal error rate and water content prediction results.
[0026] In a second aspect, the present application provides a device for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF, the device comprising:
[0027] An acquisition module, used for acquiring three-phase flow data to be measured;
[0028] A preprocessing module, used for preprocessing the three-phase flow data to obtain preprocessed three-phase flow data;
[0029] A determination module, used to determine the applicable scope according to the applicable boundary;
[0030] The processing module is used to select different methods to predict the liquid phase flow rate of the three-phase flow according to the pre-processed three-phase flow data and the applicable scope.
[0031] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF as in the first aspect is implemented.
[0032] In a fourth aspect, the present application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF as in the first aspect.
[0033] It can be seen from the technical solution provided in the above embodiments of this specification that this solution: adopts different prediction methods within different applicable scopes to improve the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1A schematic flow chart of a method for measuring the liquid phase flow rate of an oil-gas-water three-phase flow based on ERT and EMF provided in this application;
[0036] Figure 2 A graph showing the relationship between the standard deviation of the EMF signal and the gas content provided for this application;
[0037] FIG3 is a graph showing the relationship between the normalized voltage values of four ERT electrode pairs at low water content and the water content provided by the present application;
[0038] FIG4 is a graph showing the relationship between the five key parameters provided in this application and the gas void fraction;
[0039] FIG5 is a diagram showing the fitting results of the linear regression model within the applicable scope provided by the present application; FIG5(a) is a diagram showing the results of the original EMF signal and the corrected EMF signal; FIG5(b) is a diagram showing the results of the moisture content calculated using the original ERT voltage and the corrected ERT voltage;
[0040] FIG6 is a diagram showing the prediction results of the liquid phase flow rate on the test set within the applicable scope provided by the present application;
[0041] FIG7 is a diagram showing the prediction results of the liquid phase flow rate on a test set outside the applicable scope provided by the present application;
[0042] Figure 8 A schematic diagram of the structure of a device for measuring the liquid phase flow rate of an oil-gas-water three-phase flow based on ERT and EMF provided in this application;
[0043] Fig. 9 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0045] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0046] It will be apparent to those skilled in the art that various modifications and variations may be made to the specific embodiments of the present application description without departing from the scope or spirit of the present application. Other embodiments derived from the present application description will be apparent to those skilled in the art. The present application description and examples are exemplary only.
[0047] The words “include,” “including,” “have,” “contain,” etc. used in this document are open-ended terms, meaning including but not limited to.
[0048] Unless otherwise specified, "parts" in this application are all calculated by mass.
[0049] The present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0050] Reference Figure 1 , which shows a flow chart of a method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF provided in an embodiment of the present application.
[0051] like Figure 1 As shown, the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF may include:
[0052] S110: Acquire three-phase flow data to be measured.
[0053] Specifically, the three-phase flow data to be measured can be three-phase flow data acquired in real time, or can be three-phase flow data acquired through a designed experiment, and there is no limitation here. Among them, the three-phase flow data includes ERT signals, EMF signals and PLC signals. It can be understood that the three-phase flow data can be acquired using ERT sensors and EMF sensors. Among them, the ERT sensor can acquire the ERT signal, which can be a voltage value signal with 20 dimensions measured by the ERT sensor, and the EMF sensor can acquire the EMF signal, which can be a liquid phase flow measurement signal with 1 dimension measured by the EMF sensor. The PLC signal is a 2-dimensional input end real flow signal containing oil phase and water phase (i.e., the real water content and the real gas content).
[0054] The three-phase flow data obtained by designing experiments can cover the three-phase flow data under different flow conditions. Among them, different flow conditions refer to different flow rates of oil, gas and water phases, and the flow rate of each phase can be controlled by switching the valve opening. It can be understood that the three-phase flow data of each flow condition can be the three-phase flow data collected within a preset time length. For example, the preset time length can be 45s. The preset time length can be set to collect data once per second. Each phase data collected within the preset time length can be called a sequence. For example, the data collected per second can include a 20-dimensional voltage value signal and a 1-dimensional liquid phase flow measurement signal, that is, a sequence is a 45×21 matrix.
[0055] The experimental conditions can be set as pressure of 0.2 MPa, temperature of 37°C, and liquid flow rate range of 3.2 m 3 / h-10.8m 3 / h, the gas content GVF range is 0-40%, and the water content WRL range is 60%-100%.
[0056] S120, preprocessing the three-phase flow data to obtain preprocessed three-phase flow data. The preprocessing may include ERT signal normalization, ERT signal spatial performance analysis, and EMF signal abnormal point screening.
[0057] Specifically, ERT signal normalization: To eliminate experimental errors, the voltage V0 at the full water moment is used for normalization. The normalized voltage V n The expression is:
[0058]
[0059] Among them, V m It is the original voltage value measured by the ERT sensor (ie, the ERT signal).
[0060] EMF signal abnormal point screening: When the gas content is high, the EMF sensor will have zero signal or pulse signal. At this time, the EMF working state is abnormal due to the high proportion of non-conductive medium. The standard deviation EMF std To measure the working status of an EMF sensor in a working condition.
[0061]
[0062] Where N is the sequence length, EMF i Indicates the magnitude of the EMF signal value at the i-th second, represents the mean value of the EMF signal in the sequence, and the obtained gas content is related to the EMF std The relationship is as Figure 2 As shown, EMF stdAs the gas content increases, the EMF signal increases. To ensure that the mean value of the EMF signal of each sequence can better represent the EMF measurement value of the sequence, the EMF std <3m 3 / h working condition is taken as experimental data.
[0063] ERT signal spatial performance analysis: The traditional 8-electrode ERT can be divided into four groups according to the spatial position: all electrode pairs, adjacent electrode pairs, 1-interval electrode pairs, and 2-interval electrode pairs. The data of the part with gas content WLR less than 5% are selected, and the relationship between the normalized voltage value and water content of the ERT signal from different electrode pairs is shown in Figure 3 (Figure 3 (a) is for the all electrode pairs, Figure 3 (b) is for the adjacent electrode pairs, Figure 3 (c) is for the 1-interval electrode pairs, and Figure 3 (d) is for the 2-interval electrode pairs). Due to the presence of a small amount of non-conductive medium in the pipeline, V n The ideal value of is greater than zero and close to zero, and a 1-spaced electrode pair is selected as the source of the ERT signal.
[0064] It should be noted that the three-phase flow data in the following embodiments refers to the pre-processed three-phase flow data.
[0065] S130. Determine the scope of application based on the applicable boundaries.
[0066] The applicable boundaries are determined as follows:
[0067] Obtain three-phase flow experimental data;
[0068] According to the three-phase flow experimental data, the voltage mean, voltage standard deviation, EMF signal standard deviation, and EMF signal error rate are determined;
[0069] The applicable boundary is determined based on the voltage mean, voltage standard deviation, EMF signal standard deviation, EMF signal error rate and water content prediction results.
[0070] Specifically, the three-phase flow experimental data includes ERT signal, EMF signal and PLC signal.
[0071] The water content prediction result is calculated by traditional methods. The traditional method is to convert the oil-gas-water three-phase flow problem into an oil-water two-phase flow problem, calculate the water content by the MAXWELL equation, approximate the EMF signal as a liquid phase flow signal, and combine the two to calculate the oil phase / water phase flow rate.
[0072] The three-phase flow data set is analyzed to cover the distribution of ERT, EMF, and PLC signal characteristics under various working conditions. Based on this characteristic and the moisture content prediction results calculated using the traditional method, the applicable scope of a traditional method is determined, and the data set is divided into two parts.
[0073] Specifically, as shown in Figure 4 (including Figure 4(a)-Figure 4(e) ), for a sequence, the following five key parameters are considered: voltage mean V n_m , voltage standard deviation V n_std , EMF signal standard deviation EMF std , the error rate EMF between EMF signal and real flow mape , the error rate between the moisture content of the traditional method and the actual moisture content is MX wlr_error .
[0074] As shown in Figure 4(a), the voltage mean V n_m (The vertical axis vn_m in Figure 4(a)): reflects the mixing uniformity of the flow pattern in the pipeline. The smaller the value, the closer it is to the ideal oil-water two-phase flow condition. n_m The expression is:
[0075]
[0076] Where N is the sequence length, K is the dimension of the ERT signal, and V ij represents the normalized voltage value of the j-dimensional ERT signal at the i-th second.
[0077] As shown in Figure 4(b), the voltage standard deviation V n_std (The vertical axis vn_std in Figure 4(b)): reflects the stability of the ERT signal and indirectly reflects the mixing uniformity of the fluid in the pipeline. The smaller the value, the more stable the ERT signal is and the closer it is to the ideal oil-water two-phase flow condition.
[0078]
[0079] Where N is the sequence length, K is the dimension of the ERT signal, and V ij represents the normalized voltage value of the j-dimensional ERT signal at the i-th second, Represents the mean of all dimensions of the ERT signal at the i-th second.
[0080] As shown in Figure 4(c), the standard deviation of the EMF signal EMF std (The vertical axis emf_std in Figure 4(c)): reflects the stability of the ERT signal. The smaller the value, the more stable the EMF signal is, the smaller the impact of the non-conductive medium is, and abnormal working conditions are less likely to occur.
[0081] As shown in Figure 4(d), the error rate EMF between the EMF signal and the actual flow mape (The vertical axis emf_mape in Figure 4(d)): reflects the accuracy of the EMF signal in representing the actual liquid phase flow rate.
[0082]
[0083] in, is the mean value of EMF, q l is the actual liquid flow rate of this sequence.
[0084] As shown in Figure 4(e), the moisture content prediction result (the error rate between the moisture content of the traditional method and the actual moisture content) MX wlr_error (mx_wrl_error, the vertical axis in Figure 4(e)): reflects the accuracy of moisture content calculation using the traditional method.
[0085]
[0086] MX wlr_error =|wlr m -wlr|
[0087] Among them, wlr is the actual moisture content, wlr m is the calculated value of the MAXWELL equation.
[0088] Starting from GVF=0%, the mean values of the relevant parameters falling within each gas content range are counted with a span of 0.5%. The results are shown in FIG4 , and some analysis results for each parameter are shown in Table 1.
[0089] Table 1 Partial results of five parameters
[0090] Boundary condition GVF=X% Part where GVF < X% Parts with GVF>X% <![CDATA[V n_m ]]> 5.5 <1V >2V <![CDATA[V n_std ]]> 5.5 <2V >2.5V <![CDATA[EMF std ]]> 5.0 <![CDATA[<0.5m 3 / h]]> <![CDATA[>0.5m 3 / h]]> <![CDATA[EMF mape ]]> 4.5 <10% >10% <![CDATA[MX wlr_error ]]> 5.5 <15% >28%
[0091] According to the results in Table 1, GVF = 5% is selected as a reasonable applicable boundary of the traditional method, and the three-phase flow experimental data are divided into two parts according to the applicable boundary. For the convenience of distinction and comparison, the interval of GVF < 5% is recorded as zone 1, and the interval of GVF > 5% is recorded as zone 2.
[0092] The applicable scope refers to the upper limit of the gas content (i.e., applicable boundary). Within the applicable scope, that is, the gas content is less than the upper limit of the gas content (i.e., interval zone 1), the oil phase / water phase flow rate can be calculated using the traditional method. Correspondingly, it is not within the applicable scope (outside the applicable scope), that is, the gas content is greater than the upper limit of the gas content (i.e., interval zone 2).
[0093] S140. According to the pre-processed three-phase flow data and the applicable scope, different methods are selected to predict the liquid phase flow rate of the three-phase flow.
[0094] Among them, if the preprocessed data is within the applicable range, the flow pattern recognition method is used to extract features, and the machine learning model is used to correct parameters; among them, the machine learning model can use a linear regression model.
[0095] According to the corrected parameters, the liquid phase flow rate of three-phase flow is predicted.
[0096] As shown in Figure 4(b), V n_std As GVF increases, the stability of the ERT signal becomes worse. Based on this, a time (t0, t1...t N′ ) to recalculate the voltage mean value V′ of the current working condition n :
[0097]
[0098] The linear regression models are trained on the training sets of EMF signals and ERT signals respectively, wherein the input of the linear regression model is the EMF signal and the ERT signal, and the output is the liquid flow rate and the water content. The accuracy of the trained linear regression model can be determined according to the actual liquid flow rate and the actual water content.
[0099] If the preprocessed data is not within the applicable range, a deep learning model is used to predict the three-phase flow liquid phase flow rate. The deep learning model can use a neural network based on CNN-LSTM (Convolutional neural network-Long Short-Term Memory). Exemplarily, the network architecture of the deep learning model is shown in Table 2:
[0100] Table 2 CNN-LSTM network architecture
[0101]
[0102] The input of the deep learning model is EMF signal and ERT signal, and the output is oil / water phase flow. For example, the maximum number of training times can be set to 500, the optimizer can be Adam, the loss function can be MSE, the learning rate can be set to 5e-5, training is performed on the training set, and the model with the best effect on the validation set is selected for testing.
[0103] The following are experimental tests for this application:
[0104] Tables 3 and 4 compare the estimated water content and the actual water content, and the estimated liquid flow rate and the actual estimated value of the zone 1 data obtained by the traditional method and the linear fitting method, respectively. The prediction accuracy is measured by three indicators: MAE (Mean Absolute Error), MSE (Mean Squared Error), and MAPE (Mean Absolute Percentage Error).
[0105] Table 3 Results of ERT signal of zone1 data on the test set
[0106]
[0107] Table 4 Results of EMF signal of zone1 data on the test set
[0108]
[0109] From Table 3, we can see that the water content WLR obtained by linear regression is LR The expression is:
[0110] wlr LR =-0.1205V n_m +0.8819
[0111] Finally, compared with wlr on the test set m , MAE increased from 0.1140 to 0.0569, MSE increased from 0.0249 to 0.0053, and MAPE increased from 17.99% to 7.28%. The prediction effect is shown in Figure 5(b).
[0112] From Table 3, we can see that the EMF correction value EMF obtained by linear regression is LR The expression is:
[0113]
[0114] Finally, compared with MAE increased from 0.5973 to 0.2592, MSE increased from 0.4366 to 0.1160, and MAPE increased from 6.6274% to 3.0519%. The prediction effect is shown in Figure 5(a).
[0115] The ERT and EMF signals are combined to calculate the water phase flow rate Q w and oil phase flow Q o .
[0116] Q w =EMF LR ×wlr LR
[0117] Q o =EMF LR ×(1-wlr LR )
[0118] The flow pattern identification and linear regression methods were applied to the calculation of water content and the results shown in Tables 5 and 6 were finally obtained.
[0119] Table 5 Zone 1 data in oil / water phase flow prediction results (MAE)
[0120]
[0121] Table 6 Zone 1 data in oil / water phase flow prediction results (MSE)
[0122]
[0123] As shown in Table 5 and Table 6, compared with the traditional method, the prediction effect of oil / water phase flow rate is improved by using flow pattern recognition to extract features and using linear regression to correct signals. The combination of the two strategies has the best prediction effect on the test set. Under the MAE index, the water phase flow error can reach 0.4682, and the oil phase flow error can reach 0.4556. Under the MSE index, the water phase flow error can reach 0.4520, and the oil phase flow error can reach 0.3669. The prediction result of liquid phase flow rate on the test set within the applicable range is shown in Figure 6, where Figure 6 (a) is the prediction result of water phase flow rate within the applicable range, and Figure 6 (b) is the prediction result of oil phase flow rate within the applicable range.
[0124] For the data of zone 2, the input feature numbers are 9, 9, 5, and 21 when ERT selects adjacent electrode pairs, 1-interval electrode pairs, 2-interval electrode pairs, and all electrode pairs. The prediction results are shown in Tables 7 and 8.
[0125] Table 7 Zone 2 data in oil / water phase flow prediction results (MAE)
[0126]
[0127] Table 8 Zone 2 data in oil / water phase flow prediction results (MSE)
[0128]
[0129] From the MAE and MSE indicators in Tables 7 and 8, it can be seen that when the EMF signal and all 20 groups of ERT electrode pairs are selected as input signals, the flow prediction effect of the model is better, among which the MAE of the water phase flow can reach 0.2307 and the MSE can reach 0.1256. The MAE of the oil phase flow can reach 0.3314 and the MSE can reach 0.1947. The prediction results of the liquid phase flow on the test set outside the applicable range are shown in Figure 7, where Figure 7 (a) is the prediction result diagram of the water phase flow outside the applicable range, and Figure 7 (b) is the prediction result diagram of the water phase oil phase flow outside the applicable range. It can be seen from the figure that the error of the oil / water phase flow prediction value is within 0.5m 3 / h or less.
[0130] The method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF provided in the embodiment of the present application adopts different prediction methods within different applicable scopes to improve the prediction accuracy.
[0131] Based on the working characteristics of the liquid flow measurement system of ERT-EMF, this application proposes an applicable boundary for converting a three-phase flow problem into a two-phase flow problem, thereby determining the scope of application.
[0132] In the embodiment of the present application, the prediction effect of the liquid phase flow rate within the gas content range of 0-5% (ie within the applicable range) is improved through flow pattern identification and linear correction method.
[0133] In the embodiment of the present application, a deep learning model is used to accurately predict the liquid phase flow rate under working conditions with a gas content within the range of 5%-40% (i.e., outside the applicable range).
[0134] Reference Figure 8 , which shows a schematic structural diagram of a device for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF according to an embodiment of the present application.
[0135] like Figure 8 As shown, the device 800 for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF may include:
[0136] An acquisition module 810 is used to acquire three-phase flow data to be measured;
[0137] A preprocessing module 820 is used to preprocess the three-phase flow data to obtain preprocessed three-phase flow data;
[0138] A determination module 830 is used to determine an applicable scope according to an applicable boundary;
[0139] The processing module 840 is used to select different methods to predict the liquid phase flow rate of the three-phase flow according to the pre-processed three-phase flow data and the applicable scope.
[0140] Optionally, the preprocessing module 820 is also used for: ERT signal normalization, ERT signal spatial performance analysis, and EMF signal abnormal point screening.
[0141] Optionally, the processing module 840 is further configured to:
[0142] If the preprocessed data is within the applicable range, the flow pattern recognition method is used for feature extraction, and the machine learning model is used for parameter correction;
[0143] According to the corrected parameters, the liquid phase flow rate of three-phase flow is predicted.
[0144] Optionally, the machine learning model is a linear regression model.
[0145] Optionally, the processing module 840 is further configured to:
[0146] If the preprocessed data is not within the applicable range, the deep learning model is used to predict the liquid phase flow rate of the three-phase flow.
[0147] Optionally, the deep learning model is a CNN-LSTM based neural network.
[0148] Optionally, the device further includes a boundary determination module, configured to determine an applicable boundary:
[0149] Obtain three-phase flow experimental data;
[0150] According to the three-phase flow experimental data, the voltage mean, voltage standard deviation, EMF signal standard deviation, and EMF signal error rate are determined;
[0151] The applicable boundary is determined based on the voltage mean, voltage standard deviation, EMF signal standard deviation, EMF signal error rate and water content prediction results.
[0152] This embodiment provides a device for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF, which can execute the embodiment of the above method. Its implementation principle and technical effect are similar and will not be repeated here.
[0153] Fig. 9 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig. 9 As shown, a structural schematic diagram of an electronic device 300 suitable for implementing an embodiment of the present application is shown.
[0154] like Fig. 9 As shown, the electronic device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage part 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0155] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.
[0156] In particular, according to the embodiments of the present disclosure, the above reference Figure 1 The described process can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above-mentioned method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 309, and / or installed from the removable medium 311.
[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0158] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be arranged in a processor. The names of these units or modules do not constitute limitations on the units or modules themselves in certain circumstances.
[0159] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop, a mobile phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0160] As another aspect, the present application further provides a storage medium, which may be the storage medium included in the aforementioned device in the above embodiment; or may be a storage medium that exists independently and is not assembled into the device. The storage medium stores one or more programs, and the aforementioned programs are used by one or more processors to execute the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF described in the present application.
[0161] Storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0162] It should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0163] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF, characterized in that: The method comprises: Acquire three-phase flow data to be measured; Preprocessing the three-phase flow data to obtain preprocessed three-phase flow data; Obtain three-phase flow experimental data; According to the three-phase flow experimental data, determine the voltage mean, voltage standard deviation, EMF signal standard deviation, and EMF signal error rate; Determine the applicable boundary according to the voltage mean, voltage standard deviation, EMF signal standard deviation, EMF signal error rate and water content prediction result, wherein the applicable boundary refers to the upper limit of the gas content; Determine the scope of application based on the applicable boundaries; If the pre-processed three-phase flow data is within the applicable range, a flow pattern recognition method is used to extract features, and a machine learning model is used to correct parameters, wherein the machine learning model is a linear regression model; predicting the liquid phase flow rate of the three-phase flow according to the corrected parameters; If the preprocessed three-phase flow data is not within the applicable range, a deep learning model is used to predict the liquid phase flow rate of the three-phase flow.
2. The method according to claim 1, characterized in that The preprocessing includes ERT signal normalization, ERT signal spatial performance analysis and EMF signal abnormal point screening.
3. The method according to claim 1, characterized in that: The deep learning model is a neural network based on CNN-LSTM.
4. A device for measuring the liquid phase flow rate of oil, gas and water three-phase flow based on ERT and EMF, characterized in that: The device comprises: An acquisition module, used for acquiring three-phase flow data to be measured; A preprocessing module, used for preprocessing the three-phase flow data to obtain preprocessed three-phase flow data; A determination module is used to obtain three-phase flow experimental data; according to the three-phase flow experimental data, determine the voltage mean, voltage standard deviation, EMF signal standard deviation, and EMF signal error rate; according to the voltage mean, voltage standard deviation, EMF signal standard deviation, EMF signal error rate and water content prediction results, determine the applicable boundary, the applicable boundary refers to the upper limit of the gas content; according to the applicable boundary, determine the applicable range; A processing module is used to use a flow pattern recognition method to extract features and a machine learning model to correct parameters if the preprocessed three-phase flow data is within the applicable range, wherein the machine learning model is a linear regression model; based on the corrected parameters, predict the liquid phase flow rate of the three-phase flow; if the preprocessed three-phase flow data is not within the applicable range, use a deep learning model to predict the liquid phase flow rate of the three-phase flow.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF as described in any one of claims 1-3 is implemented.
6. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for measuring the liquid phase flow rate of oil-gas-water three-phase flow based on ERT and EMF as described in any one of claims 1 to 3 is implemented.
