Wellbore fluid type identification method and system based on distributed optical fiber acoustic wave monitoring data
By combining low-variance scattering features and short-term time-frequency features, and using BP neural network, decision tree and random forest algorithms, the problem of insufficient time-frequency domain feature extraction in distributed fiber optic acoustic wave monitoring data is solved, and the accuracy of wellbore fluid type identification is improved. characteristics, and realizes real-time monitoring of underground multi-phase fluid and water gas breakthrough.
Patent Information
- Application Number
- CN202210588497.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-05-26
AI Technical Summary
When existing technology uses distributed fiber optic acoustic wave monitoring data to identify wellbore fluid types, it fails to effectively extract time-frequency domain features, resulting in low identification accuracy, and existing water content measurement methods cannot meet the needs of underground multi-phase fluid flow and water and gas breakthrough monitoring. needs.
The fusion of low-variance scattering features and short-term time-frequency features, combined with BP neural network, decision tree and random forest classification algorithm, is used to preprocess and extract the acoustic data, and form a fusion feature set to identify the wellbore fluid type and water content range.
It significantly improves the accuracy of wellbore fluid type identification, can accurately identify multi-phase fluid flow and water and gas breakthrough locations, and meets the needs of downhole real-time monitoring.
Smart Images

Figure CN114861732B_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a method and system for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data, and belongs to the technical field of oil and gas field development. Background Art
[0002] During the oil and gas production process, real-time monitoring of multiphase fluid flow in the wellbore is an important basis for observing the production status of oil and gas wells, evaluating the production capacity of oil and gas wells, and analyzing the dynamic changes of reservoirs. It is of great significance to ensure the safety and efficient production of oil and gas fields. At present, domestic and foreign technologies such as tomography and ultrasonic detection technology, as well as high-speed cameras, differential pressure sensors, conductivity sensors, ray attenuation, and particle imaging velocimetry are used to identify the flow pattern of multiphase fluids in the wellbore and determine the distribution state of the flowing fluid in the wellbore, such as pure liquid flow, bubble flow, slug flow, annular flow, and mist flow.
[0003] In recent years, distributed fiber acoustic monitoring (DAS) technology has developed rapidly, providing a new means for continuous, long-distance, real-time monitoring of the flow state of multiphase fluids in wellbores. DAS technology uses the principle of coherent optical time-domain reflectometry to detect and accurately locate the ongoing downhole fluid flow events by detecting the intensity changes of the Rayleigh scattered light signal before and after the downhole event, thereby realizing real-time monitoring of downhole production dynamics. Fiber optic sensing technology has the advantages of strong anti-electromagnetic interference ability, corrosion resistance, high temperature resistance, high spatial resolution and good real-time performance, which makes it have greater superiority and broad development prospects in the real-time monitoring of downhole multiphase fluid production dynamics. However, at the same time, the huge amount of data generated also brings difficulties to the application of DAS technology.
[0004] Chinese patent document CN 112985574 discloses a high-precision classification and recognition method for fiber-optic distributed acoustic sensor signals based on model fusion. The document introduces a stacking strategy in DAS signal recognition to integrate the decision tree model, random forest model, support vector machine model and extreme value gradient boosting algorithm model in machine learning, preprocesses the original data obtained by the DAS system, extracts the features of multiple analysis domains, and uses artificial neural networks to further extract and classify the features. The prediction results of the above model are re-learned using logistic regression to obtain the final prediction of the environmental state of the current input signal. The patent document extracts the time domain, frequency domain and change domain features of the DAS signal, but does not extract the time-frequency domain features of the DAS signal, and cannot reflect the relationship between the frequency change of the signal and the change over time. Since the DAS signal is usually time-varying and non-steady-state, the time-frequency change information of the signal plays an important role in the subsequent identification of the wellbore fluid type.
[0005] In summary, the machine learning method has great advantages in DAS monitoring data processing. How to use machine learning technology to identify and classify the types of flowing fluids in the wellbore, determine whether the flowing fluid is single-phase oil, single-phase water, single-phase gas, oil-water two-phase, oil-gas two-phase, gas-water two-phase or oil-gas-water three-phase, and provide technical support for downhole multiphase fluid flow monitoring and water-gas breakthrough identification, is a technical issue that has been the focus of attention in this technical field.
[0006] In addition, how to use machine learning technology to analyze the changes in water content of flowing fluids in the wellbore is also an important basis for tracking reservoir dynamics, optimizing oil well production, and formulating downhole measures. It is also of great significance for identifying the location of water. At present, water content measurement methods are mainly divided into offline measurement methods and online measurement methods. Typical offline measurement methods include distillation, electro-desorption, and Karl-Fischer method. The offline measurement method has relatively high measurement accuracy, but the measurement results are random, and the sampling and measurement process is time-consuming and labor-intensive. There are certain manual errors and cannot meet the online measurement needs of oil field production. In recent years, online measurement has become a development trend. The main online measurement methods include ray method, capacitance method, conductivity method, microwave method, radio frequency method, coaxial phase method, etc. These methods can realize dynamic real-time online monitoring, but they are mainly based on single-point measurement on the ground, which cannot meet the needs of monitoring water content changes in various production layers in the well. The rapid development of DAS technology has provided a new means for continuous, long-distance and real-time monitoring of water content changes in oil wells. Therefore, the use of machine learning methods to process DAS monitoring data has great advantages, that is, using machine learning algorithms to establish a water content range classification and identification method to determine the approximate range of water content in oil wells, providing technical support for reservoir dynamic analysis, oil well production optimization, and water production location identification. This is a technical issue that has always been the focus of attention in this technical field. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention discloses a method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data.
[0008] The invention also discloses a system for identifying the type of wellbore fluid using the above identification method.
[0009] The invention also discloses a method for subsequent application after outputting the wellbore fluid type result through the identification method.
[0010] The detailed technical scheme of the present invention is as follows:
[0011] A method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data, characterized in that:
[0012] Step 1: Preprocessing the acoustic wave monitoring data collected by the DAS system to obtain acoustic wave data after filtering and normalization related to the wellbore fluid type;
[0013] Step 2: Extracting acoustic wave characteristic parameters from the data preprocessed in step 1 to obtain acoustic wave characteristics related to the wellbore fluid type;
[0014] The acoustic wave features related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b;
[0015] Step 3: Input the acoustic wave features obtained in step 2 into the classification algorithm for training to obtain a wellbore fluid type recognition model;
[0016] Step 4: Input the real-time DAS system acoustic wave monitoring data into the wellbore fluid type identification model described in step 3, and the output result is the corresponding wellbore fluid type.
[0017] Preferably, according to the present invention, the pretreatment method in step 1 comprises:
[0018] 1-1 The acoustic wave monitoring data during the wellbore fluid flow process is processed using a filter to obtain the acoustic wave amplitude in the frequency range of [200 Hz, 2000 Hz];
[0019] 1-2 The sound wave amplitude obtained in step 1-1 is subjected to Z-score normalization processing. The Z-score normalization formula is expressed as:
[0020]
[0021] Among them, x is the acoustic wave amplitude; x′ is the normalized result, that is, the DAS acoustic wave data set; μ is the mean value of x, and σ is the standard deviation of x.
[0022] Preferably, according to the present invention, in step 2, the method of extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type includes:
[0023] 2-1 Using wavelet time scattering transform to extract low variance scattering feature set a of DAS acoustic wave data set; wherein the dimension of the low variance scattering feature set a is (w*k)×p, k is the number of DAS acoustic wave data set, p is the number of scattering paths obtained after the signal is scattering transformed, w is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system; wherein using wavelet time scattering transform refers to using the wavelet toolbox in the software Matlab to construct a wavelet time scattering network with two filter groups for feature extraction, and using the software Matlab in this step to obtain the low variance scattering feature set a is a prior art and does not belong to the content protected by the present invention;
[0024] At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform (STFT) to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm (PCA) for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r is the window overlap width used when the short-time Fourier transform (STFT) is used to process the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform (STFT) is a two-dimensional function of time and frequency:
[0025]
[0026] In formula (2), N represents the dimension of the DAS acoustic wave data time series; t is the time parameter; k' is the frequency parameter; fs is the sampling frequency of the DAS system; m = 1, 2.....N; j is the imaginary unit, x(t) is the time domain DAS acoustic wave data to be processed; w(tm / fs) represents a window function centered at time m / fs; preferably, in order to reduce spectrum leakage, the window is a Hamming window;
[0027] The principal component analysis algorithm (PCA) is a commonly used dimensionality reduction statistical technology. The present invention uses the PCA algorithm to calculate the eigenvector of the covariance matrix of the time-frequency data set. The eigenvalue of the first principal component is the largest, and the corresponding eigenvector contains the most information. The first principal component eigenvector can be used to obtain the short-term time-frequency feature set b that is most relevant to the wellbore fluid type;
[0028] 2-2 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c:
[0029] The data dimension of the low variance scattering feature set a is (w*k)×p, and the data dimension of the short-time frequency feature set b is k×r. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r).
[0030] 2-3 Using the classification algorithm to train and form a wellbore fluid type recognition module: the fused feature set c is used as input, and the known fluid type corresponding to the fused feature set c is used as output; the classification algorithm includes BP neural network, decision tree and random forest;
[0031] 2-4 Train the BP neural network, decision tree and random forest respectively and form the BP neural network training model, decision tree training model and random forest training model respectively; substitute the test set into the BP neural network training model, decision tree training model and random forest training model respectively, and verify the prediction effect through the mean square error: when the prediction accuracy meets the requirements, enter the subsequent link of using the actual on-site monitoring data to identify the fluid type; when the prediction accuracy requirements are not met, readjust the training parameters of the classification algorithm and restart the training process until the accuracy requirements are met. The training accuracy can be determined here according to the existing technology. These three training models are relatively classic classification methods. The technical means of stopping training according to the training accuracy belongs to the existing technology; randomly shuffle the DAS original acoustic wave data set and divide it into a training set and a test set in a ratio of 8:2.
[0032] A method for identifying the water content range in oil-water two-phase flow in a wellbore, characterized in that in the step 2, the method of extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow includes:
[0033] 3-1 Use the DAS system to collect the acoustic wave data corresponding to different water content ranges in the oil-water two-phase flow in the target wellbore in real time, and build a sample database; wherein the spatial sampling interval of the DAS system used is 0.25m, and the sampling frequency is 4096Hz; the sample data is randomly shuffled and divided into a training set and a test set in a ratio of 8:2;
[0034] 3-2 The water content range in the oil-water two-phase flow is divided into Y groups and labeled from 1 to Y;
[0035] 3-3 Use wavelet time scattering transform to extract low variance scattering feature set a of DAS acoustic wave data set; wherein the dimension of the low variance scattering feature set a is (w*k)×p, k is the number of DAS acoustic wave data sets, p is the number of scattering paths obtained after the signal is scattering transformed, w is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system;
[0036] At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r is the window overlap width used when the short-time Fourier transform is used to process the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform is a two-dimensional function of time and frequency:
[0037]
[0038] In formula (2), N represents the dimension of the DAS acoustic wave data time series; t is the time parameter; k' is the frequency parameter; fs is the sampling frequency of the DAS system; m = 1, 2.....N; j is the imaginary unit, x(t) is the time-domain DAS acoustic wave data to be processed; w(tm / fs) represents the window function centered at time m / fs;
[0039] 3-4 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c:
[0040] The data dimension of the low variance scattering feature set a is (w*k)×p, and the data dimension of the short-time frequency feature set b is k×r. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r).
[0041] 3-5 A recognition module for the water content range in the oil-water two-phase flow is formed by training using a classification algorithm: the fused feature set c is used as input, and the water content range in the oil-water two-phase flow corresponding to the fused feature set c is used as output; the classification algorithm includes a BP neural network, a decision tree, and a random forest;
[0042] 3-6 The BP neural network, decision tree and random forest are trained respectively to form a BP neural network training model, a decision tree training model and a random forest training model respectively.
[0043] Preferably, according to the present invention, the BP neural network training model is a three-layer network structure. In the process of forward propagation, the input data is processed from the input layer to the hidden layer to the output layer; if the output layer does not obtain the expected output, it enters the back propagation, and adjusts the network weights and thresholds according to the prediction error, so that the BP neural network prediction output continuously approaches the expected output. The BP neural network selects the scaled conjugate gradient (SCG) algorithm suitable for pattern recognition, selects cross entropy as the loss function, avoids overfitting, sets the maximum number of BP neural network training times to 5000-20000, and the learning rate range is 0.01-0.05.
[0044] Preferably, according to the present invention, the decision tree training model is a tree structure similar to a flowchart, consisting of nodes and directed edges; the nodes include internal nodes and leaf nodes, the internal nodes represent a feature or an attribute, and the leaf nodes represent a class; a top-down recursive method is adopted, starting from the root node of the tree, and the attribute values are tested and compared on its internal nodes, and then the corresponding branches are determined according to the attribute values of the instance, and finally the classification conclusion is obtained at the leaf nodes of the decision tree. The node splitting feature selected by the decision tree model is information gain, and the minimum number of samples contained in the leaf nodes in the model defaults to 1.
[0045] Preferably, according to the present invention, the basic unit of the random forest training model is a decision tree, which is resampled by the bootstrap method: the random forest repeatedly randomly extracts n' samples with replacement from the original training sample set to generate a new training sample set to train the decision tree, and generates m' decision trees to form a random forest according to the above steps. The random forest integrates all classification voting results, and designates the category with the most votes as the final output. The number of decision trees in the random forest is set to 50-500, and the maximum depth of the decision tree is not limited.
[0046] A system for identifying wellbore fluid types using the above identification method, characterized in that it comprises: a data preprocessing module, an acoustic wave characteristic parameter extraction module and a wellbore fluid type identification module;
[0047] The data preprocessing module is used to obtain acoustic wave data after filtering and normalization processing related to the wellbore fluid type;
[0048] The acoustic wave characteristic parameter extraction module is used to extract acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type; the acoustic wave characteristics related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b;
[0049] The wellbore fluid type recognition module is used to input the acoustic wave characteristics into the classification algorithm for training to obtain a wellbore fluid type recognition model;
[0050] Finally, the real-time DAS system acoustic wave monitoring data is input into the wellbore fluid type identification model, and the output result is the corresponding wellbore fluid type.
[0051] A method for describing the distribution of different fluids in a target wellbore to be tested, characterized by comprising:
[0052] (1) Using the DAS system to collect real-time acoustic wave data distributed at various locations in the target wellbore to be tested;
[0053] (2) inputting the acoustic wave data of step (1) into the wellbore fluid type identification model of step 3, and outputting the result: wellbore fluid type;
[0054] (3) Associating the wellbore fluid position information corresponding to the acoustic wave data with the wellbore fluid type outputted accordingly.
[0055] The application method of the present invention can facilitate the subsequent digital depiction of the dynamic distribution of different types of fluids in the wellbore based on the wellbore fluid types collected and identified according to the real-time distribution, and the application method is of great significance.
[0056] A method for describing the water content range of oil-water two-phase flow in a target wellbore to be tested, characterized by comprising:
[0057] (4) Using the DAS system to collect real-time acoustic wave data of different water content ranges in the oil-water two-phase flow in the target wellbore to be tested;
[0058] (5) Inputting the acoustic wave data of step (4) into a module for identifying the water content range in the oil-water two-phase flow in the wellbore, and outputting the result: the water content range in the oil-water two-phase flow.
[0059] The technical advantages of the present invention are:
[0060] (1) The present invention combines low-variance scattering features with short-time frequency features to form fusion features for fluid type identification. The fusion features are multi-source features that integrate the information contained in low-variance scattering features and short-time frequency features, providing more data sources for accurate identification of wellbore fluid types, effectively solving the problem of low accuracy in identifying fluid types with a single feature, and greatly improving the identification accuracy.
[0061] (2) The method of the present invention can accurately identify the type of wellbore fluid and can be used for on-site monitoring of downhole multiphase fluid flow and identification of water-gas breakthrough locations.
[0062] (3) Due to the differences in the properties of various fluids in the well, the acoustic wave data generated during the flow process in the well are different. The fluid type information carried in the acoustic wave data can be combined with a machine learning algorithm to realize the identification of the well fluid type. The classification algorithms used in the present invention are BP neural network, decision tree and random forest. These three methods are representative classification algorithms in machine learning algorithms. The classification results of fluid type and water content range in oil-water phases obtained by the three classification algorithms are compared, which can improve the final accuracy of fluid type identification and water content range identification in oil-water phases. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is a schematic diagram of the flow of the method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data of the present invention;
[0064] Figure 2 This is a schematic diagram of the original data of the sound wave data of Example 1 of the present invention;
[0065] Figure 3A A first filter group scattering characteristic graph of a low variance scattering characteristic set a of the acoustic wave data extracted in Example 1 of the present invention;
[0066] Figure 3B A second filter group scattering characteristic graph of the low variance scattering characteristic set a of the acoustic wave data extracted in Embodiment 1 of the present invention;
[0067] Figure 4 The short-time frequency feature set b of the sound wave data extracted in Example 1 of the present invention;
[0068] Figure 5A A confusion matrix diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the low variance scattering feature set a;
[0069] Figure 5B A confusion matrix diagram of the recognition test set results of the random forest algorithm used in Example 1 of the present invention for the low variance scattering feature set a;
[0070] Fig. 6A A confusion matrix diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the short-time time-frequency feature set b;
[0071] Figure 6B A confusion matrix diagram of the recognition test set results of the short-time frequency feature set b using the random forest algorithm used in Example 1 of the present invention;
[0072] Fig. 7A A confusion matrix diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the fusion feature set c;
[0073] Figure 7B A confusion matrix diagram of the recognition test set results of the random forest algorithm used in Example 1 of the present invention for the fusion feature set c;
[0074] Fig. 8A The ROC curve diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the low variance scattering feature set a;
[0075] Figure 8B The ROC curve diagram of the recognition test set results of the random forest algorithm used in Example 1 of the present invention for the low variance scattering feature set a;
[0076] Fig.9A The ROC curve diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the short-time frequency feature set b;
[0077] Fig. 9B The ROC curve diagram of the recognition test set results of the short-time frequency feature set b by the random forest algorithm used in Example 1 of the present invention;
[0078] Fig. 10A The ROC curve diagram of the recognition training set results of the random forest algorithm used in Example 1 of the present invention for the fusion feature set c;
[0079] Fig. 10BThe ROC curve diagram of the recognition test set results of the random forest algorithm used in Example 1 of the present invention for the fusion feature set c. DETAILED DESCRIPTION
[0080] The present invention will be described in detail below with reference to the embodiments and the accompanying drawings, but is not limited thereto.
[0081] Embodiment 1,
[0082] Using the wellbore multiphase flow physical simulation experimental device, distributed fiber optic acoustic wave monitoring experiments were carried out under different fluid types and flow conditions to obtain corresponding acoustic wave data and build a sample database. The spatial sampling interval of the distributed fiber optic acoustic wave monitoring system used was 0.25m and the sampling frequency was 4096Hz.
[0083] There are seven types of fluids: single-phase gas, single-phase water, single-phase oil, oil-water two-phase, oil-gas two-phase, water-gas two-phase, and oil-gas-water three-phase, respectively labeled 1 to 7. A total of 5286 samples of the original acoustic wave data set were obtained through the wellbore multiphase flow experiment. For each sample, the acoustic wave data of 1 meter downstream of the fluid entry point was extracted, that is, 4 sets of data were extracted near each fluid entry point, and a total of 21,144 sets of data were extracted from the original data set samples.
[0084] Figure 2 Shown is 0.2m 3 ·h -1 Acoustic monitoring results of single-phase water under flow. The original data set is randomly shuffled and divided into training set and test set in a ratio of 8:2, as shown in Table 1:
[0085] Table 1 Acoustic wave dataset
[0086]
[0087]
[0088] The constructed sample library is processed by using the data preprocessing module, the acoustic wave characteristic parameter extraction module and the wellbore fluid type identification module to establish a wellbore fluid type identification method, that is, Figure 1 As shown, a method for identifying wellbore fluid type based on distributed optical fiber acoustic wave monitoring data includes:
[0089] Step 1: Preprocessing the acoustic wave monitoring data collected by the DAS system to obtain acoustic wave data after filtering and normalization related to the wellbore fluid type;
[0090] Step 2: Extracting acoustic wave characteristic parameters from the data preprocessed in step 1 to obtain acoustic wave characteristics related to the wellbore fluid type;
[0091] The acoustic wave features related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b;
[0092] Step 3: Input the acoustic wave features obtained in step 2 into the classification algorithm for training to obtain a wellbore fluid type recognition model;
[0093] Step 4: Input the real-time DAS system acoustic wave monitoring data into the wellbore fluid type identification model described in step 3, and the output result is the corresponding wellbore fluid type.
[0094] The pretreatment method in step 1 comprises:
[0095] 1-1 The acoustic wave monitoring data during the wellbore fluid flow process is processed using a filter to obtain the acoustic wave amplitude in the frequency range of [200 Hz, 2000 Hz];
[0096] 1-2 The sound wave amplitude obtained in step 1-1 is subjected to Z-score normalization processing. The Z-score normalization formula is expressed as:
[0097]
[0098] Among them, x is the acoustic wave amplitude; x′ is the normalized result, that is, the DAS acoustic wave data set; μ is the mean value of x, and σ is the standard deviation of x.
[0099] In the step 2, the method of extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type includes:
[0100] 2-1 Using wavelet time scattering transform to extract low variance scattering feature set a of DAS acoustic wave data set; wherein the dimension of the low variance scattering feature set a is (w*k)×p, i.e., 8k×268, k is the number of DAS acoustic wave data set, p=268 is the number of scattering paths obtained after the signal is scattering transformed, w=8 is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system; wherein, using wavelet time scattering transform refers to using the wavelet toolbox in the software Matlab to construct a wavelet time scattering network with two filter groups for feature extraction, and using the software Matlab in this step to obtain the low variance scattering feature set a is a prior art and does not belong to the content protected by the present invention;
[0101] At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform (STFT) to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm (PCA) for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r=257 is the window overlap width used when the short-time Fourier transform (STFT) processes the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform (STFT) is a two-dimensional function of time and frequency:
[0102]
[0103] In formula (2), N represents the dimension of the DAS acoustic wave data time series; t is the time parameter; k' is the frequency parameter; fs is the sampling frequency of the DAS system; m = 1, 2.....N; j is the imaginary unit, x(t) is the time domain DAS acoustic wave data to be processed; w(tm / fs) represents a window function centered at time m / fs; preferably, in order to reduce spectrum leakage, the window is a Hamming window;
[0104] The principal component analysis algorithm (PCA) is a commonly used dimensionality reduction statistical technology. The present invention uses the PCA algorithm to calculate the eigenvector of the covariance matrix of the time-frequency data set. The eigenvalue of the first principal component is the largest, and the corresponding eigenvector contains the most information. The first principal component eigenvector can be used to obtain the short-term time-frequency feature set b that is most relevant to the wellbore fluid type;
[0105] 2-2 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c:
[0106] The data dimension of the low variance scattering feature set a is (w*k)×p=8k×268, and the data dimension of the short-time frequency feature set b is k×r=k×257. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r=8k×257. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r)=8k×525.
[0107] Take 0.2m in the wellbore 3 ·h -1 Taking the acoustic wave data of a single-phase water flow experiment under flow as an example, the extracted low-variance scattering feature set a is as follows Figure 3A , Figure 3B As shown, the short-time frequency feature set b is Figure 4 As shown;
[0108] 2-3 Using the classification algorithm to train and form a wellbore fluid type recognition module: the fused feature set c is used as input, and the known fluid type corresponding to the fused feature set c is used as output; the classification algorithm includes BP neural network, decision tree and random forest;
[0109] 2-4 Train the BP neural network, decision tree and random forest respectively and form the BP neural network training model, decision tree training model and random forest training model respectively; substitute the test set into the BP neural network training model, decision tree training model and random forest training model respectively, and verify the prediction effect through the mean square error: when the prediction accuracy meets the requirements, enter the subsequent link of using the actual on-site monitoring data to identify the fluid type; when the prediction accuracy requirements are not met, readjust the training parameters of the classification algorithm and restart the training process until the accuracy requirements are met. The training accuracy can be determined here according to the existing technology. These three training models are relatively classic classification methods. The technical means of stopping training according to the training accuracy belongs to the existing technology; randomly shuffle the DAS original acoustic wave data set and divide it into a training set and a test set in a ratio of 8:2.
[0110] Among them, the BP neural network training model is a three-layer network structure. In the process of forward propagation, the input data is processed from the input layer to the hidden layer until the output layer. If the output layer does not get the expected output, it will turn to back propagation and adjust the network weights and thresholds according to the prediction error, so that the BP neural network prediction output continues to approach the expected output. The BP neural network selects the scaled conjugate gradient (SCG) algorithm suitable for pattern recognition, selects cross entropy as the loss function to avoid overfitting, sets the maximum number of BP neural network training times to 10,000, and the learning rate to 0.01.
[0111] Among them, the decision tree training model is a tree structure similar to a flowchart, consisting of nodes and directed edges; the nodes include internal nodes and leaf nodes, the internal nodes represent a feature or an attribute, and the leaf nodes represent a class; a top-down recursive method is adopted, starting from the root node of the tree, and the attribute values are tested and compared on its internal nodes, and then the corresponding branches are determined according to the attribute values of the instance, and finally the classification conclusion is drawn at the leaf nodes of the decision tree. The node splitting feature selected by the decision tree model is information gain, and the minimum number of samples contained in the leaf nodes in the model defaults to 1.
[0112] The basic unit of the random forest training model is the decision tree, which is resampled by the bootstrap method: random forest repeatedly randomly extracts n' samples with replacement from the original training sample set to generate a new training sample set to train the decision tree. According to the above steps, m' decision trees are generated to form a random forest. The random forest integrates all classification voting results and designates the category with the most votes as the final output. The number of decision trees in the random forest is set to 400, and the maximum depth of the decision tree is not limited.
[0113] The fusion feature set c of the training set and test set above is trained and tested by using the wellbore fluid type recognition method based on distributed optical fiber acoustic wave monitoring data. The confusion matrix of the recognition result is as follows: Fig. 7A , 7B As shown, the ROC curve is Fig. 10A , 10B shown.
[0114] In the confusion matrix, the main diagonal squares show the number of samples of fluid type correctly classified and the percentage of the total number of samples, the squares around the main diagonal show the number of samples of fluid type incorrectly classified and the percentage of the total number of samples, the percentage of correct and incorrect classification of each row and column is shown in the bottom row and the rightmost column of squares, and the total percentage of correct and incorrect classification of all fluid types is shown in the lower right corner square.
[0115] The ROC curve explains the classification problem by describing the changing relationship between the true positive rate and the false positive rate. The true positive rate refers to the probability of classifying the correct sample, and the false positive rate refers to the probability of classifying the wrong sample as the correct sample. In the ROC curve, the horizontal axis is the false positive rate and the vertical axis is the true positive rate. The closer the result is to the upper left corner of the square grid, the better the classification effect. Figure 7B Taking the first category of the test set confusion matrix results as an example, the total number of samples in the first category is 1512, and the data volume accounts for 35.8% of the total data volume of the test set. The number of fluid types correctly identified is 1512, the number of false identifications is 0, the correct identification rate is 100%, and the average correct identification rate of the seven fluid types is 100%; Fig. 10B Taking the ROC curve of the test set as an example, the recognition results of the seven fluid types are all concentrated at a point in the upper left corner of the square grid, and the correct recognition rate is 100%, which verifies that the wellbore fluid type recognition method based on the fusion feature set c has a satisfactory recognition rate.
[0116] In this embodiment, the results of using the low variance scattering feature set a and the short-time frequency feature set b as input data of each classification algorithm to identify the fluid type are compared with the results of using the fusion feature set c proposed in the present invention as input data of each classification algorithm to identify the fluid type, so as to verify the advantages and effectiveness of using the fusion feature set proposed in the present invention to identify the fluid type. The results are shown in Table 2:
[0117] Table 2 Wellbore fluid type identification accuracy
[0118]
[0119] The confusion matrix of the fluid type recognition results of the low variance scattering feature set a and the short-time frequency feature set b is as follows: Figure 5A , 5B and Fig. 6A , 6B As shown, the ROC curve is Fig. 8A , 8B and Fig.9A , 9B As shown. From the confusion matrix Figure 5A , 5B and Fig. 6A , 6B It can be seen that the classification accuracy of the two fluid types, single-phase gas (label 1) and single-phase water (label 2), is low when the single acoustic wave feature is used for recognition and classification, which is also consistent with the ROC curve Fig. 8A , 8B and Fig.9A , 9B This is consistent with the phenomenon that the classification effects of the two categories with labels 1 and 2 are poor. It can be clearly seen from Table 2 that compared with the single acoustic wave feature, the fusion feature set c greatly improves the accuracy of fluid type recognition.
[0120] The present invention proposes a method for combining a low-variance scattering feature set a with a short-time frequency feature set b to form a fused feature set c. The recognition accuracy of the BP neural network is above 97%, and the recognition accuracy of the decision tree and random forest algorithms are as high as 99.9% and 100%, respectively. This indicates that the effectiveness of the fused feature set c proposed in the present invention for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data far exceeds the recognition method of a single acoustic wave feature, indicating the effectiveness and outstanding advantages of the method proposed in the present invention in solving the problem of wellbore fluid type identification. This also provides a reliable means for downhole multiphase fluid flow monitoring and water-gas breakthrough identification.
[0121] Embodiment 2,
[0122] The identification method described in Example 1 is a method for identifying the water content range in the oil-water two-phase flow in the wellbore. In step 2, the method for extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow includes:
[0123] 3-1 Use the DAS system to collect the acoustic wave data corresponding to different water content ranges in the oil-water two-phase flow in the target wellbore in real time, and build a sample database;
[0124] 3-2 The water content range in the oil-water two-phase flow is divided into Y groups and labeled from 1 to Y;
[0125] 3-3 Use wavelet time scattering transform to extract low variance scattering feature set a of DAS acoustic wave data set; wherein the dimension of the low variance scattering feature set a is (w*k)×p, k is the number of DAS acoustic wave data sets, p is the number of scattering paths obtained after the signal is scattering transformed, w is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system;
[0126] At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r is the window overlap width used when the short-time Fourier transform is used to process the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform is a two-dimensional function of time and frequency:
[0127]
[0128] In formula (2), N represents the dimension of the DAS acoustic wave data time series; t is the time parameter; k' is the frequency parameter; fs is the sampling frequency of the DAS system; m = 1, 2.....N; j is the imaginary unit, x(t) is the time-domain DAS acoustic wave data to be processed; w(tm / fs) represents the window function centered at time m / fs;
[0129] 3-4 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c:
[0130] The data dimension of the low variance scattering feature set a is (w*k)×p, and the data dimension of the short-time frequency feature set b is k×r. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r).
[0131] 3-5 A recognition module for the water content range in the oil-water two-phase flow is formed by training using a classification algorithm: the fused feature set c is used as input, and the water content range in the oil-water two-phase flow corresponding to the fused feature set c is used as output; the classification algorithm includes a BP neural network, a decision tree, and a random forest;
[0132] 3-6 The BP neural network, decision tree and random forest are trained respectively to form a BP neural network training model, a decision tree training model and a random forest training model respectively.
[0133] Specifically, a large number of fiber optic monitoring experiments of oil-water two-phase flow simulation under different water contents were carried out using a wellbore multiphase flow physical simulation experimental device to obtain corresponding acoustic wave data and build a sample database. The spatial sampling interval of the distributed optical fiber acoustic wave monitoring system used was 0.25m and the sampling frequency was 4096Hz.
[0134] The water content ranges are: 0-10%, 10-20%, 20-30%, 30-40%, 40-50%, 50-60%, 60-70%, 70-80%, 80-90% and 90-100%, a total of 10 types, respectively marked as 1 to 10. Through the experiment, a total of 613 samples of the original acoustic wave data set were obtained. Each sample extracted the acoustic wave data 2 meters downstream of the fluid entry point, that is, 8 groups of data were extracted near each fluid entry point. A total of five optical cables were arranged in the simulation experimental system, and a total of 40 groups of data were extracted from the five optical cables at each fluid entry point. The original data set samples extracted a total of 24,520 groups of data. After randomly shuffling the original data set, it was divided into a training set and a test set in a ratio of 8:2, as shown in Table 3:
[0135] Table 3 Oil-water two-phase flow acoustic wave data set
[0136]
[0137]
[0138] Table 4 Water content range recognition and classification accuracy
[0139]
[0140] The proposed method for identifying the water content range in oil-water two-phase flow is used to identify and classify the acoustic wave data set. The results are shown in Table 4. The low-variance scattering features and short-time frequency features are combined into multi-source data, and then combined with the random forest machine learning algorithm, the water content range in oil-water two-phase flow can be accurately identified.
[0141] Embodiment 3,
[0142] A system for identifying wellbore fluid types using the identification method described in Example 1, comprising: a data preprocessing module, an acoustic wave characteristic parameter extraction module and a wellbore fluid type identification module;
[0143] The data preprocessing module is used to obtain acoustic wave data after filtering and normalization processing related to the wellbore fluid type;
[0144] The acoustic wave characteristic parameter extraction module is used to extract acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type; the acoustic wave characteristics related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b;
[0145] The wellbore fluid type recognition module is used to input the acoustic wave characteristics into the classification algorithm for training to obtain a wellbore fluid type recognition model;
[0146] Finally, the real-time DAS system acoustic wave monitoring data is input into the wellbore fluid type identification model, and the output result is the corresponding wellbore fluid type.
[0147] Embodiment 4,
[0148] A system for identifying the water content range in oil-water two-phase flow in a wellbore using the identification method described in Example 2, comprising: a data preprocessing module, an acoustic wave characteristic parameter extraction module and a water content range identification module in oil-water two-phase flow in a wellbore;
[0149] The data preprocessing module is used to obtain acoustic wave data after filtering and normalization related to different water content ranges in the oil-water two-phase flow in the wellbore;
[0150] The acoustic wave characteristic parameter extraction module is used to extract acoustic wave characteristic parameters to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow in the wellbore; the acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow in the wellbore include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b;
[0151] The water content range recognition module in the oil-water two-phase flow in the wellbore is used to input the acoustic wave characteristics into the classification algorithm for training to obtain a water content range recognition model in the oil-water two-phase flow in the wellbore;
[0152] Finally, the real-time DAS system acoustic wave monitoring data is input into the water content range identification model in the oil-water two-phase flow in the wellbore, and the output result is the corresponding water content range in the oil-water two-phase flow.
[0153] Embodiment 5,
[0154] As in embodiments 1 and 3, a method for depicting the distribution of different fluids in a target wellbore to be tested includes:
[0155] 1) Use the DAS system to collect the acoustic wave data distributed at various locations of the target wellbore in real time;
[0156] 2) inputting the acoustic wave data of step 1) into the wellbore fluid type identification model of step 3, and outputting the result: wellbore fluid type;
[0157] 3) Associating the wellbore fluid position information corresponding to the acoustic wave data with the wellbore fluid type outputted accordingly.
[0158] The application method of the present invention can facilitate the subsequent digital depiction of the dynamic distribution of different types of fluids in the wellbore based on the wellbore fluid types collected and identified according to the real-time distribution, and the application method is of great significance.
[0159] Embodiment 6,
[0160] As in Examples 2 and 4, a method for depicting different water content ranges in an oil-water two-phase flow in a target wellbore to be tested includes:
[0161] (4) Using the DAS system to collect real-time acoustic wave data of different water content ranges in the oil-water two-phase flow in the target wellbore to be tested;
[0162] (5) Inputting the acoustic wave data of step (4) into a module for identifying the water content range in the oil-water two-phase flow in the wellbore, and outputting the result: the water content range in the oil-water two-phase flow.
Claims
1. A method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data, characterized in that: include, Step 1: Preprocessing the acoustic wave monitoring data collected by the DAS system to obtain acoustic wave data after filtering and normalization related to the wellbore fluid type; Step 2: Extracting acoustic wave characteristic parameters from the data preprocessed in step 1 to obtain acoustic wave characteristics related to the wellbore fluid type; The acoustic wave features related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b; Step 3: Input the acoustic wave features obtained in step 2 into the classification algorithm for training to obtain a wellbore fluid type recognition model; Step 4: input the real-time DAS system acoustic wave monitoring data into the wellbore fluid type identification model described in step 3, and the output result is the corresponding wellbore fluid type; In the step 2, the method of extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type includes: 2-1 Using wavelet time scattering transform to extract low-variance scattering feature set a of the DAS acoustic wave data set; wherein the dimension of the low-variance scattering feature set a is (w*k)×p, k is the number of DAS acoustic wave data sets, p is the number of scattering paths obtained after the signal is scattering transformed, w is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system; At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r is the window overlap width used when the short-time Fourier transform is used to process the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform is a two-dimensional function of time and frequency: In formula (2), N Indicates the time series dimension of DAS acoustic wave data; is the time parameter; ’ is the frequency parameter; fs is the sampling frequency of the DAS system; m =1,2.... .N ; j is an imaginary unit, ; The time domain DAS acoustic wave data that needs to be processed; The representative center is located at m / fs The window function of the moment; 2-2 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c: The data dimension of the low variance scattering feature set a is (w*k)×p, and the data dimension of the short-time frequency feature set b is k×r. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r). 2-3 Using the classification algorithm to train and form a wellbore fluid type recognition module: the fused feature set c is used as input, and the known fluid type corresponding to the fused feature set c is used as output; the classification algorithm includes BP neural network, decision tree and random forest; 2-4 The BP neural network, decision tree and random forest are trained respectively to form a BP neural network training model, a decision tree training model and a random forest training model respectively.
2. A method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data according to claim 1, characterized in that: The pretreatment method in step 1 comprises: 1-1 The acoustic wave monitoring data during the wellbore fluid flow process is processed using a filter to obtain the acoustic wave amplitude in the frequency range of [200 Hz, 2000 Hz]; 1-2 The sound wave amplitude obtained in step 1-1 is subjected to Z-score normalization processing. The Z-score normalization formula is expressed as: in, x is the sound wave amplitude; This is the normalized result, i.e., the DAS acoustic wave dataset; µ for x The average value of σ for x The standard deviation of .
3. A method for identifying wellbore fluid types based on distributed optical fiber acoustic wave monitoring data according to claim 1, characterized in that: The BP neural network training model is a three-layer network structure. In the process of forward propagation, the input data is processed from the input layer to the hidden layer and then to the output layer. If the output layer does not get the expected output, it will turn to back propagation and adjust the network weights and thresholds according to the prediction error, so that the BP neural network prediction output is constantly close to the expected output. The BP neural network selects the scaled conjugate gradient (SCG) algorithm suitable for pattern recognition, selects cross entropy as the loss function, sets the maximum number of BP neural network training times to 5000-20000, and the learning rate range is 0.01-0.
05. The decision tree training model is a tree structure consisting of nodes and directed edges; the nodes include internal nodes and leaf nodes, the internal nodes represent a feature or an attribute, and the leaf nodes represent a class; a top-down recursive method is adopted, starting from the root node of the tree, and the attribute values are tested and compared on its internal nodes, and then the corresponding branches are determined according to the attribute values of the instance, and finally the classification conclusion is drawn at the leaf nodes of the decision tree. The node splitting feature selected by the decision tree model is information gain, and the minimum number of samples contained in the leaf nodes in the model defaults to 1; The basic unit of the random forest training model is the decision tree, which is resampled by bootstrapping: the random forest repeatedly randomly extracts from the original training sample set with replacement. n’ Samples generate a new training sample set to train the decision tree. Follow the above steps to generate m’ A random forest is composed of decision trees. The random forest integrates all classification voting results and designates the category with the most votes as the final output. The number of decision trees in the random forest is set to 50-500, and the maximum depth of the decision tree is not limited.
4. A method for identifying the water content range in oil-water two-phase flow in a wellbore based on distributed optical fiber acoustic wave monitoring data, characterized in that: include: Step 1: Preprocessing the acoustic wave monitoring data collected by the DAS system to obtain acoustic wave data after filtering and normalization related to different water content ranges in the oil-water two-phase flow; Step 2: Extracting acoustic wave characteristic parameters from the data preprocessed in step 1 to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow; The acoustic wave features related to different water content ranges in the oil-water two-phase flow include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b; Step 3: Input the acoustic wave features obtained in step 2 into the classification algorithm for training to obtain a recognition model for different water content ranges in oil-water two-phase flow; Step 4: input the real-time DAS system acoustic wave monitoring data into the different water content range identification model in the oil-water two-phase flow described in step 3, and the output result is the corresponding different water content ranges in the oil-water two-phase flow; In the step 2, the method for extracting acoustic wave characteristic parameters to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow includes: 3-1 using the DAS system to collect acoustic wave data corresponding to different water content ranges in the oil-water two-phase flow in the target wellbore to be tested in real time, and constructing a sample database; 3-2 The water content range in the oil-water two-phase flow is divided into Y groups and labeled from 1 to Y; 3-3 Use wavelet time scattering transform to extract low variance scattering feature set a of DAS acoustic wave data set; wherein the dimension of the low variance scattering feature set a is (w*k)×p, k is the number of DAS acoustic wave data sets, p is the number of scattering paths obtained after the signal is scattering transformed, w is the number of time windows corresponding to each scattering path, and p and w are related to the sampling frequency of the DAS system; At the same time, the DAS acoustic wave data set is processed by short-time Fourier transform to obtain the time-frequency data set of DAS, and the time-frequency data set is input into the principal component analysis algorithm for processing to extract the short-time time-frequency feature set b of the DAS acoustic wave data set; wherein, the dimension of the short-time time-frequency feature set b is k×r, r is the window overlap width used when the short-time Fourier transform is used to process the acoustic wave data plus 1, the window overlap width is half of the window width, and the short-time Fourier transform is a two-dimensional function of time and frequency: In formula (2), N Indicates the dimension of DAS acoustic wave data time series; is the time parameter; ’ is the frequency parameter; fs is the sampling frequency of the DAS system; m =1,2.... .N ; j is an imaginary unit, ; The time domain DAS acoustic wave data to be processed; The representative center is located at m / fs The window function of the moment; 3-4 The low variance scattering feature set a is fused with the short-time frequency feature set b to form a fused feature set c: The data dimension of the low variance scattering feature set a is (w*k)×p, and the data dimension of the short-time frequency feature set b is k×r. Repeat the data of the short-time frequency feature set b to expand its dimension to (w*k)×r. Use the sequential arrangement method to obtain the fused feature set c, and the dimension of the fused feature set c is (w*k)×(p+r). 3-5 A recognition module for the water content range in the oil-water two-phase flow is formed by training using a classification algorithm: the fused feature set c is used as input, and the water content range in the oil-water two-phase flow corresponding to the fused feature set c is used as output; the classification algorithm includes a BP neural network, a decision tree, and a random forest; 3-6 The BP neural network, decision tree and random forest are trained respectively to form a BP neural network training model, a decision tree training model and a random forest training model respectively.
5. The method for identifying the water content range in oil-water two-phase flow in a wellbore based on distributed optical fiber acoustic wave monitoring data according to claim 4, characterized in that: The pretreatment method in step 1 comprises: 1-1 The acoustic wave monitoring data during the wellbore fluid flow process is processed using a filter to obtain the acoustic wave amplitude in the frequency range of [200 Hz, 2000 Hz]; 1-2 The sound wave amplitude obtained in step 1-1 is subjected to Z-score normalization processing. The Z-score normalization formula is expressed as: in, x is the sound wave amplitude; This is the normalized result, i.e., the DAS acoustic wave dataset; µ for x The average value of σ for x The standard deviation of .
6. A method for identifying the water content range in oil-water two-phase flow in a wellbore based on distributed optical fiber acoustic wave monitoring data according to claim 4, characterized in that: The BP neural network training model is a three-layer network structure. In the process of forward propagation, the input data is processed from the input layer to the hidden layer and then to the output layer. If the output layer does not get the expected output, it will turn to back propagation and adjust the network weights and thresholds according to the prediction error, so that the BP neural network prediction output is constantly close to the expected output. The BP neural network selects the scaled conjugate gradient (SCG) algorithm suitable for pattern recognition, selects cross entropy as the loss function, sets the maximum number of BP neural network training times to 5000-20000, and the learning rate range is 0.01-0.
05. The decision tree training model is a tree structure consisting of nodes and directed edges; the nodes include internal nodes and leaf nodes, the internal nodes represent a feature or an attribute, and the leaf nodes represent a class; a top-down recursive method is adopted, starting from the root node of the tree, and the attribute values are tested and compared on its internal nodes, and then the corresponding branches are determined according to the attribute values of the instance, and finally the classification conclusion is drawn at the leaf nodes of the decision tree. The node splitting feature selected by the decision tree model is information gain, and the minimum number of samples contained in the leaf nodes in the model defaults to 1; The basic unit of the random forest training model is the decision tree, which is resampled by bootstrapping: the random forest repeatedly randomly extracts from the original training sample set with replacement. n’ Samples generate a new training sample set to train the decision tree. Follow the above steps to generate m’ A random forest is composed of decision trees. The random forest integrates all classification voting results and designates the category with the most votes as the final output. The number of decision trees in the random forest is set to 50-500, and the maximum depth of the decision tree is not limited.
7. A system for identifying wellbore fluid type using the identification method according to claim 1, characterized in that: include: Data preprocessing module, acoustic wave characteristic parameter extraction module and wellbore fluid type identification module; The data preprocessing module is used to obtain acoustic wave data after filtering and normalization processing related to the wellbore fluid type; The acoustic wave characteristic parameter extraction module is used to extract acoustic wave characteristic parameters to obtain acoustic wave characteristics related to the wellbore fluid type; the acoustic wave characteristics related to the wellbore fluid type include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b; The wellbore fluid type recognition module is used to input the acoustic wave characteristics into the classification algorithm for training to obtain a wellbore fluid type recognition model; Finally, the real-time DAS system acoustic wave monitoring data is input into the wellbore fluid type identification model, and the output result is the corresponding wellbore fluid type.
8. A system for identifying the water content range of oil-water two-phase flow in a wellbore by using the method for identifying the water content range of oil-water two-phase flow in a wellbore as claimed in claim 4, characterized in that: include: Data preprocessing module, acoustic wave characteristic parameter extraction module and water content range identification module in oil-water two-phase flow in the wellbore; The data preprocessing module is used to obtain acoustic wave data after filtering and normalization related to different water content ranges in the oil-water two-phase flow in the wellbore; The acoustic wave characteristic parameter extraction module is used to extract acoustic wave characteristic parameters to obtain acoustic wave characteristics related to different water content ranges in the oil-water two-phase flow in the wellbore; The acoustic wave features related to different water content ranges in the oil-water two-phase flow in the wellbore include: a fusion feature set c formed by fusion of a low variance scattering feature set a and a short-time frequency feature set b; The water content range recognition module in the oil-water two-phase flow in the wellbore is used to input the acoustic wave characteristics into the classification algorithm for training to obtain a water content range recognition model in the oil-water two-phase flow in the wellbore; Finally, the real-time DAS system acoustic wave monitoring data is input into the water content range identification model in the oil-water two-phase flow in the wellbore, and the output result is the corresponding water content range in the oil-water two-phase flow.
