Oil-water two-phase flow pattern classification system and method based on scale attention learning
Through the phase space reconstruction and spatial multi-scale channel attention learning module, the problem of large data volume and nonlinearity in oil-water two-phase flow pattern identification is solved, the accuracy and robustness of flow pattern classification are improved, and the oil-water two-phase flow pattern recognition is realized. Accurate feature modeling of flow electromagnetic signals.
Patent Information
- Application Number
- CN202410919040.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-22
AI Technical Summary
The existing technology has a large amount of data in the identification of oil-water two-phase flow patterns and cannot intuitively reflect the flow characteristics. The time series is not conducive to complex nonlinear problems, resulting in a decrease in identification accuracy.
Phase space reconstruction is used to convert one-dimensional time series electromagnetic signals into two-dimensional images, and flow patterns are classified through the spatial multi-scale channel attention learning module to improve the ability to express chaotic features. Combined with the multi-scale channel attention and adaptive fusion modules, Improve flow pattern classification accuracy.
Without increasing parameters, robust position information is extracted to achieve effective feature modeling of oil-water two-phase flow electromagnetic signals and improve the accuracy and robustness of flow pattern classification.
Smart Images

Figure CN118820979A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent signal processing, and in particular to an oil-water two-phase flow pattern classification system and method based on phase space reconstruction coding and spatial multi-scale channel attention learning. Background Art
[0002] With the surge in global demand for crude oil products, the process of crude oil production is accelerating. The water injection and pressurization production method has caused most water injection oil fields to gradually enter the middle and late stages of high water content. The increase in oil field water holding rate makes the downhole environment complex and changeable, and the fluid flow model becomes complex, which brings more challenges to well logging workers. At present, oil and its derivatives are still energy products that cannot be completely replaced in the short term. The current situation of high water content and low yield oil well production in China is common. The ability to accurately identify the oil-water two-phase flow pattern is of great significance for realizing real-time monitoring of oil fields, increasing oil production, and tapping the remaining potential of oil wells. Therefore, more accurate and effective flow identification and flow characteristics analysis methods are needed.
[0003] Data in many engineering fields exist in the form of time series. Electromagnetic signals, as a time series, retain the temporal structure of vertical pipe oil-water two-phase flow observation data and are often studied, analyzed and classified as a whole. The methods of flow pattern recognition mainly include numerical simulation, experimental research and artificial intelligence. Due to the continuous increase in data volume and computational complexity and the expansion and deepening of analysis purposes, it is increasingly difficult to improve the recognition accuracy of traditional time series classification tasks using numerical simulation and experimental research methods. In recent years, popular recognition technology research has mostly adopted deep learning methods. Among them, recurrent neural networks (RNN) and long short-term memory networks (LSTM) can process time-dependent data and capture long-term dependencies in the data. When processing time series data such as electromagnetic signals, these models can automatically learn the features in the data and perform classification and recognition. However, time series are not conducive to complex nonlinear problems. Some complex nonlinear problems may exceed the modeling capabilities of time series models. Phase space reconstruction decoding can extract chaotic features in time series, and then analyze the periodicity and repeatability in time series. The existing neural network models cannot fully extract the chaotic features in the recursive graph obtained by phase space reconstruction and decoding, which may cause the performance of the neural network to be seriously affected, resulting in a decrease in recognition accuracy. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide an oil-water two-phase flow pattern classification system and method based on scale attention learning. It aims to solve the problems that the existing popular classification has a large amount of data, cannot intuitively reflect the flow characteristics, and the time series is not conducive to complex nonlinear problems. The one-dimensional time series electromagnetic signal is converted into a two-dimensional image using phase space reconstruction, and the flow pattern classification is performed through the spatial multi-scale channel attention learning module to improve the chaotic feature expression ability of the electromagnetic time series signal, thereby having a higher flow pattern classification accuracy.
[0005] To solve the above technical problems, the technical solution adopted by the present invention is: an oil-water two-phase flow type classification system based on scale attention learning, comprising a phase space reconstruction module and a spatial multi-scale channel attention learning module connected to each other, wherein the spatial multi-scale channel attention learning module comprises a primary feature extraction module, a secondary feature extraction module and a tertiary feature extraction module are connected to the primary feature extraction module, a primary multi-scale channel attention module is connected to the primary feature extraction module, a secondary multi-scale channel attention module is connected to the secondary feature extraction module, a third-level feature extraction module is connected to a third-level multi-scale channel attention module, the primary, secondary and third-level multi-scale channel attention modules are all connected to an adaptive fusion module, and the adaptive fusion module is connected to a pooling layer and three fully connected layers.
[0006] The further improvement of the technical solution of the present invention is that the specific structure of each module is as follows:
[0007] The phase space reconstruction module includes correlation integral, recursive matrix and Heaviside function in sequence;
[0008] The first-level feature extraction module includes two 3*3 convolutional layers, one maximum pooling layer, and two 3*3 convolutional layers in sequence. The number of feature map channels generated by each convolutional layer is 64, 64, 128, and 128 from input to output, respectively. The step size of the maximum pooling layer is 2;
[0009] The secondary feature extraction module includes a convolution block with a stride of 2 and a convolution kernel size of 3*3;
[0010] The three-level feature extraction module includes a convolution layer with a stride of 2 and a convolution kernel size of 3*3, and a maximum pooling layer with a stride of 2 and a convolution kernel size of 3*3;
[0011] The first-level, second-level, and third-level multi-scale channel attention modules have the same structure and include a feature extraction module and a feature activation module. The feature extraction module includes two 3*3 convolutional layers, and the number of feature map channels generated from input to output is 32 and 32, respectively. The feature activation module includes two 3*3 convolutional layers, and the number of feature map channels generated from input to output is 128 and 128, respectively.
[0012] The adaptive fusion module includes a Resize function, a convolution layer, a channel splicing function, a convolution layer, and a SoftMax function in sequence. The Resize function can adjust feature maps of different sizes to feature maps with a height and width of 112. The number of channels of the feature map generated by the convolution layer is 8 and 3 from input to output, respectively, and the convolution kernel size is 1.
[0013] The type of pooling layer connected to the adaptive fusion module is an average pooling layer with a step size of 2, and the types of fully connected layers are fully connected layers of 4096, 1024, and 4 neurons, respectively.
[0014] A method for classifying oil-water two-phase flow patterns based on scale-attention learning, the steps are as follows:
[0015] Step 1: Input the electromagnetic time series signal into the phase space reconstruction module for spatial reconstruction encoding to obtain a nonlinear recursive graph;
[0016] Step 2: Input the nonlinear recursive graph into the primary feature extraction module to obtain a primary feature graph;
[0017] Step 3: Input the primary feature map into the secondary feature extraction module to obtain the secondary feature map;
[0018] Step 4: Input the first-level feature map into the third-level feature extraction module to obtain the third-level feature map;
[0019] Step 5: Input the first-level feature map into the first-level multi-scale channel attention module to obtain the first-level multi-scale channel feature map;
[0020] Step 6: Input the secondary feature map into the secondary multi-scale channel attention module to obtain the secondary multi-scale channel feature map;
[0021] Step 7: Input the three-level feature map into the three-level multi-scale channel attention module to obtain the three-level multi-scale channel feature map;
[0022] Step 8: Input the first-level multi-scale channel feature map, the second-level multi-scale channel feature map and the third-level multi-scale channel feature map into the adaptive fusion module to obtain a spatial multi-scale fusion result map;
[0023] Step 9: Input the spatial multi-scale fusion result map into the average pooling layer to obtain the spatial multi-scale average result map;
[0024] Step 10: Input the spatial multi-scale average result map into the fully connected layer to obtain the classification result.
[0025] The further improvement of the technical solution of the present invention is that: the specific steps of step 1 are as follows:
[0026] Step 1.1: Input the electromagnetic time series signal into the correlation integral to obtain the optimal time interval and embedding dimension;
[0027] Step 1.2: Given the optimal time interval and embedding dimension for the electromagnetic time series signal, input it into the phase space reconstruction method to obtain the phase space state set;
[0028] Step 1.3: Calculate the vector norm for every two states of the phase space state set to obtain a nonlinear recurrence graph.
[0029] The further improvement of the technical solution of the present invention is as follows: Step 1.1 The specific steps are as follows: The electromagnetic time series signal X(i t ), i = 1, 2, ... N, t is the time sampling interval, N is the total number of sampling points, and phase space reconstruction coding is performed.
[0030] Right now:
[0031] The electromagnetic time series signal is associated with the sampling time interval t and the embedding dimension m as input and integrated, that is:
[0032] M=N-(m-1)τ
[0033]
[0034] S(m,N,r,t)=C(m,N,r,t)-C m (1,N,r,t)
[0035] Get the optimal time interval and embedding dimension.
[0036] The further improvement of the technical solution of the present invention is that: the specific steps of step 1.3 are as follows: the vector norm between each two states of the phase space state set is calculated, that is: i,j=1,2,...N where ε is the threshold, R ij is a recursive matrix, θ(x) is the Heaviside function:
[0037] A nonlinear recurrence graph is obtained.
[0038] The further improvement of the technical solution of the present invention is that the specific steps of step 5 are as follows:
[0039] Step 5.1: Slice the first-level feature map with 128 channels evenly into four parts according to the number of channels, namely the first first-level feature map, the second first-level feature map, the third first-level feature map and the fourth first-level feature map;
[0040] Step 5.2: Input the second first-level feature map into the feature extraction module to obtain the first first-level feature extraction map;
[0041] Step 5.3: Add the first level feature extraction map and the third level feature map and input them into the feature extraction module to obtain a second level feature extraction map;
[0042] Step 5.4: Add the second first-level feature extraction map and the fourth first-level feature map and input them into the feature extraction module to obtain the third first-level feature extraction map;
[0043] Step 5.5: Connect the first level feature map, the first level feature extraction map, the second level feature extraction map and the third level feature extraction map through channels to obtain a level one channel feature extraction result map;
[0044] Step 5.6: Input the first-level channel feature extraction result map into the feature activation module to obtain a first-level multi-scale channel feature map.
[0045] A further improvement of the technical solution of the present invention is that the specific operation methods of step 6 and step 7 are the same as step 5.
[0046] The further improvement of the technical solution of the present invention is that the specific steps of step 8 are as follows:
[0047] Step 8.1: Input the secondary multi-scale channel feature map into the Resize function to obtain the enlarged secondary multi-scale channel feature map;
[0048] Step 8.2: Input the three-level multi-scale feature map into the Resize function to obtain the enlarged three-level multi-scale channel feature map;
[0049] Step 8.3: Input the first-level multi-scale channel feature map into the convolution layer to obtain the first-level multi-scale channel feature map weight vector;
[0050] Step 8.4: Input the enlarged secondary multi-scale channel feature map into the convolutional layer to obtain the secondary multi-scale channel feature map weight vector;
[0051] Step 8.5: Input the expanded three-level multi-scale channel feature map into the convolution layer to obtain the three-level multi-scale channel feature map weight vector;
[0052] Step 8.6: Input the above-mentioned first-level multi-scale channel feature map weight vector, second-level multi-scale channel feature map weight vector, and third-level multi-scale channel feature map weight vector into the channel concatenation function to obtain a multi-scale channel fusion feature map weight vector group;
[0053] Step 8.7: Re-input the multi-scale channel fusion feature map weight vector group into the convolution layer to obtain the multi-scale fusion feature map weight;
[0054] Step 8.8: Input the weight of the multi-scale fusion feature map into the SoftMax function to obtain the weight of the first-level multi-scale channel feature map, the weight of the second-level multi-scale channel feature map, and the weight of the third-level multi-scale channel feature map;
[0055] Step 8.9: Multiply the first-level multi-scale channel feature map by the first-level multi-scale channel feature map weight to obtain the first-level multi-scale channel feature map result;
[0056] Step 8.10: multiply the enlarged secondary multi-scale channel feature map by the secondary multi-scale channel feature map weight to obtain the secondary multi-scale channel feature map result;
[0057] Step 8.11: multiply the expanded three-level multi-scale channel feature map by the three-level multi-scale channel feature map weight to obtain the three-level multi-scale channel feature map result;
[0058] Step 8.12: Add the above-mentioned first-level multi-scale channel feature map results, second-level multi-scale channel feature map results, and third-level multi-scale channel feature map results to obtain a spatial multi-scale fusion result map.
[0059] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is: without increasing parameters, the present invention uses initial features to provide some useful information, and organically combines multi-column scale perception feature maps to make the extracted features contain robust position information, thereby realizing effective feature modeling of electromagnetic signals of oil-water two-phase flow, thereby realizing accurate and robust flow type classification. The one-dimensional time series electromagnetic signal is converted into a two-dimensional image using phase space reconstruction; the first-level feature extraction module, the second-level feature extraction module and the third-level feature extraction module respectively learn spatial domain filtering between feature maps of different scales; the multi-scale channel attention module performs channel attention enhancement; the adaptive fusion module fuses the three different scale feature extraction modules with each other, and can learn more comprehensive features of different feature maps to improve the feature expression ability of the electromagnetic signal, thereby having a higher flow type classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention 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 of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 It is a structural schematic diagram of the oil-water two-phase flow pattern classification system of the present invention;
[0062] Figure 2 It is a schematic flow diagram of the oil-water two-phase flow pattern classification method of the present invention;
[0063] Figure 3 It is a schematic diagram of the flow type classification of electromagnetic signals of oil-water two-phase flow according to the present invention. DETAILED DESCRIPTION
[0064] The present invention is further described in detail below in conjunction with embodiments:
[0065] like Figure 1 As shown, it is a structural schematic diagram of an oil-water two-phase flow type classification system based on scale attention learning, including a phase space reconstruction module and a spatial multi-scale channel attention learning module that are interconnected, wherein the spatial multi-scale channel attention learning module includes a primary feature extraction module, a secondary feature extraction module and a tertiary feature extraction module are connected to the primary feature extraction module, a primary multi-scale channel attention module is connected to the primary feature extraction module, a secondary multi-scale channel attention module is connected to the secondary feature extraction module, a tertiary multi-scale channel attention module is connected to the tertiary feature extraction module, and the primary, secondary and tertiary multi-scale channel attention modules are all connected to the adaptive fusion module, and the adaptive fusion module is connected to a pooling layer and three fully connected layers. The specific structure of each module is as follows:
[0066] The phase space reconstruction module includes correlation integral, recursive matrix and Heaviside function in sequence;
[0067] The first-level feature extraction module includes two 3*3 convolutional layers, one maximum pooling layer, and two 3*3 convolutional layers in sequence. The number of feature map channels generated by each convolutional layer is 64, 64, 128, and 128 from input to output, respectively. The step size of the maximum pooling layer is 2;
[0068] The secondary feature extraction module includes a convolution block with a stride of 2 and a convolution kernel size of 3*3;
[0069] The three-level feature extraction module includes a convolution layer with a stride of 2 and a convolution kernel size of 3*3, and a maximum pooling layer with a stride of 2 and a convolution kernel size of 3*3;
[0070] The first-level multi-scale channel attention module includes a feature extraction module and a feature activation module. The feature extraction module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 32 and 32 from the input to the output direction, respectively. The feature activation module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 128 and 128 from the input to the output direction, respectively.
[0071] The secondary multi-scale channel attention module includes a feature extraction module and a feature activation module. The feature extraction module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 32 and 32 from input to output. The feature activation module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 128 and 128 from input to output.
[0072] The three-level multi-scale channel attention module includes a feature extraction module and a feature activation module. The feature extraction module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 32 and 32 from input to output. The feature activation module includes two 3*3 convolutional layers, and the number of channels of the generated feature map is 128 and 128 from input to output.
[0073] The adaptive fusion module includes a Resize function, a convolution layer, a channel splicing function, a convolution layer, and a SoftMax function in sequence. The Resize function can adjust feature maps of different sizes to feature maps with a height and width of 112. The number of channels of the feature map generated by the convolution layer is 8 and 3 from input to output, respectively, and the convolution kernel size is 1.
[0074] The type of pooling layer connected to the adaptive fusion module is an average pooling layer with a step size of 2, and the types of fully connected layers are fully connected layers of 4096, 1024, and 4 neurons, respectively.
[0075] With the help of the above classification system, the oil-water two-phase flow pattern classification method can be used. Figure 2 As shown, the steps are as follows:
[0076] Step 1: Input the electromagnetic time series signal into the phase space reconstruction module for spatial reconstruction encoding to obtain a nonlinear recursive graph;
[0077] Step 1.1: Input the electromagnetic time series signal into the correlation integral to obtain the optimal time interval and embedding dimension; t ), i = 1, 2, ... N, t is the time sampling interval, N is the total number of sampling points, and phase space reconstruction coding is performed.
[0078] Right now:
[0079] The electromagnetic time series signal is associated with the sampling time interval t and the embedding dimension m as input and integrated, that is:
[0080] M=N-(m-1)τ
[0081]
[0082] S(m,N,r,t)=C(m,N,r,t)-Cm (1,N,r,t)
[0083] Get the optimal time interval and embedding dimension.
[0084] Step 1.2: Given the optimal time interval and embedding dimension for the electromagnetic time series signal, input it into the phase space reconstruction method to obtain the phase space state set;
[0085] Step 1.3: Find the vector norm between each two states of the phase space state set to obtain a nonlinear recurrence graph. Find the vector norm between each two states of the phase space state set, that is: i,j=1,2,...N where ε is the threshold, R ij is a recursive matrix, θ(x) is the Heaviside function:
[0086] A nonlinear recurrence graph is obtained.
[0087] The nonlinear recursive graph is input into the spatial multi-scale channel attention learning module to learn the nonlinear recursive features and classify the different flow patterns of oil-water two-phase flow; the flow characteristic information in the original signal is converted into four flow patterns: water bubble area, disturbance flow area, oil bubble area and fine oil bubble area. The details are as follows:
[0088] Step 2: Input the nonlinear recursive graph into the primary feature extraction module for feature extraction to obtain a primary feature graph;
[0089] Step 3: Input the primary feature map into the secondary feature extraction module for feature extraction to obtain the secondary feature map;
[0090] Step 4: Input the first-level feature map into the third-level feature extraction module to extract features to obtain the third-level feature map;
[0091] Step 5: Input the first-level feature map into the first-level multi-scale channel attention module for channel attention enhancement to obtain a first-level multi-scale channel feature map;
[0092] Step 5.1: Slice the first-level feature map with 128 channels evenly into four parts according to the number of channels, namely the first first-level feature map, the second first-level feature map, the third first-level feature map and the fourth first-level feature map;
[0093] Step 5.2: Input the second first-level feature map into the feature extraction module to obtain the first first-level feature extraction map;
[0094] Step 5.3: Add the first level feature extraction map and the third level feature map and input them into the feature extraction module to obtain a second level feature extraction map;
[0095] Step 5.4: Add the second first-level feature extraction map and the fourth first-level feature map and input them into the feature extraction module to obtain the third first-level feature extraction map;
[0096] Step 5.5: Connect the first level feature map, the first level feature extraction map, the second level feature extraction map and the third level feature extraction map through channels to obtain a level one channel feature extraction result map;
[0097] Step 5.6: Input the first-level channel feature extraction result map into the feature activation module to obtain a first-level multi-scale channel feature map.
[0098] Step 6: Input the secondary feature map into the secondary multi-scale channel attention module for channel attention enhancement to obtain a secondary multi-scale channel feature map;
[0099] Step 6.1: Slice the secondary feature map with 128 channels evenly into four parts according to the number of channels, namely the first secondary feature map, the second secondary feature map, the third secondary feature map and the fourth secondary feature map.
[0100] Step 6.2: Input the second secondary feature map into the feature extraction module to obtain the first and second secondary feature extraction maps.
[0101] Step 6.3: Add the first and second-level feature extraction graphs and the third and second-level feature extraction graphs and input them into the feature extraction module to obtain the second and second-level feature extraction graphs.
[0102] Step 6.4: Add the second secondary feature extraction map and the fourth secondary feature map and input them into the feature extraction module to obtain the third secondary feature extraction map.
[0103] Step 6.5: Channel-connect the first and second-level feature maps, the first and second-level feature extraction maps, the second and second-level feature extraction maps, and the third and second-level feature extraction maps to obtain a second-level channel feature extraction result map.
[0104] Step 6.6: Input the secondary channel feature extraction result map into the feature activation module to obtain the secondary multi-scale channel feature map.
[0105] Step 7: Input the three-level feature map into the three-level multi-scale channel attention module for channel attention enhancement to obtain a three-level multi-scale channel feature map;
[0106] Step 7.1: Slice the three-level feature map with 128 channels evenly into four parts according to the number of channels, namely the first three-level feature map, the second three-level feature map, the third three-level feature map and the fourth three-level feature map.
[0107] Step 7.2: Input the second third-level feature map into the feature extraction module to obtain the first third-level feature extraction map.
[0108] Step 7.3: Add the first three-level feature extraction map and the third three-level feature map and input them into the feature extraction module to obtain a second three-level feature extraction map.
[0109] Step 7.4: Add the second third-level feature extraction map and the fourth third-level feature extraction map and input them into the feature extraction module to obtain the third third-level feature extraction map.
[0110] Step 7.5: Connect the first three-level feature map, the first three-level feature extraction map, the second three-level feature extraction map and the third three-level feature extraction map to obtain the three-level channel feature extraction result map
[0111] Step 7.6: Input the three-level channel feature extraction result map into the feature activation module to obtain a three-level multi-scale channel feature map.
[0112] Step 8: Input the first-level multi-scale channel feature map, the second-level multi-scale channel feature map and the third-level multi-scale channel feature map into the adaptive fusion module for image fusion to obtain a spatial multi-scale fusion result map;
[0113] Step 8.1: Input the secondary multi-scale channel feature map into the Resize function to obtain the enlarged secondary multi-scale channel feature map;
[0114] Step 8.2: Input the three-level multi-scale feature map into the Resize function to obtain the enlarged three-level multi-scale channel feature map;
[0115] Step 8.3: Input the first-level multi-scale channel feature map into the convolution layer to obtain the first-level multi-scale channel feature map weight vector;
[0116] Step 8.4: Input the enlarged secondary multi-scale channel feature map into the convolutional layer to obtain the secondary multi-scale channel feature map weight vector;
[0117] Step 8.5: Input the expanded three-level multi-scale channel feature map into the convolution layer to obtain the three-level multi-scale channel feature map weight vector;
[0118] Step 8.6: Input the above-mentioned first-level multi-scale channel feature map weight vector, second-level multi-scale channel feature map weight vector, and third-level multi-scale channel feature map weight vector into the channel concatenation function to obtain a multi-scale channel fusion feature map weight vector group;
[0119] Step 8.7: Re-input the multi-scale channel fusion feature map weight vector group into the convolution layer to obtain the multi-scale fusion feature map weight;
[0120] Step 8.8: Input the weight of the multi-scale fusion feature map into the SoftMax function to obtain the weight of the first-level multi-scale channel feature map, the weight of the second-level multi-scale channel feature map, and the weight of the third-level multi-scale channel feature map;
[0121] Step 8.9: Multiply the first-level multi-scale channel feature map by the first-level multi-scale channel feature map weight to obtain the first-level multi-scale channel feature map result;
[0122] Step 8.10: multiply the enlarged secondary multi-scale channel feature map by the secondary multi-scale channel feature map weight to obtain the secondary multi-scale channel feature map result;
[0123] Step 8.11: multiply the expanded three-level multi-scale channel feature map by the three-level multi-scale channel feature map weight to obtain the three-level multi-scale channel feature map result;
[0124] Step 8.12: Add the above-mentioned first-level multi-scale channel feature map results, second-level multi-scale channel feature map results, and third-level multi-scale channel feature map results to obtain a spatial multi-scale fusion result map.
[0125] Step 9: Input the spatial multi-scale fusion result map into the average pooling layer to obtain the spatial multi-scale average result map;
[0126] Step 10: Input the spatial multi-scale average result map into the fully connected layer to obtain the classification result.
[0127] like Figure 3 As shown, it is a schematic diagram of using the system and method of the present invention for oil-water two-phase flow pattern classification. With the help of the present invention, the existing popular classification has a large amount of data, cannot intuitively reflect the flow characteristics, and the time series is not conducive to complex nonlinear problems. A system and method for oil-water two-phase flow pattern classification based on phase space reconstruction encoding and spatial multi-scale channel attention learning is proposed, which can effectively solve the above problems. The one-dimensional time series electromagnetic signal is converted into a two-dimensional image using phase space reconstruction; the first-level feature extraction module, the second-level feature extraction module and the third-level feature extraction module respectively learn spatial domain filtering between feature maps of different scales; the multi-scale channel attention module performs channel attention enhancement; the adaptive fusion module fuses the three different scale feature extraction modules with each other, and can learn more comprehensive features of different feature maps to improve the feature expression ability of the electromagnetic signal, thereby having a higher flow pattern classification accuracy.
[0128] The embodiments described above are merely descriptions of preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A scale-attention learning-based oil-water two-phase flow pattern classification system, characterized by: It includes an interconnected phase space reconstruction module and a spatial multi-scale channel attention learning module, wherein the spatial multi-scale channel attention learning module includes a first-level feature extraction module, the first-level feature extraction module is connected to a second-level feature extraction module and a third-level feature extraction module, the first-level feature extraction module is connected to a first-level multi-scale channel attention module, the second-level feature extraction module is connected to a second-level multi-scale channel attention module, the third-level feature extraction module is connected to a third-level multi-scale channel attention module, the first-level, second-level and third-level multi-scale channel attention modules are all connected to an adaptive fusion module, and the adaptive fusion module is connected to a pooling layer and three fully connected layers.
2. The oil-water two-phase flow pattern classification system based on scale-attention learning according to claim 1 is characterized by: The specific structure of each module is as follows: The phase space reconstruction module includes correlation integral, recursive matrix and Heaviside function in sequence; The first-level feature extraction module includes two 3*3 convolutional layers, one maximum pooling layer, and two 3*3 convolutional layers in sequence. The number of feature map channels generated by each convolutional layer is 64, 64, 128, and 128 from input to output, respectively. The step size of the maximum pooling layer is 2; The secondary feature extraction module includes a convolution block with a stride of 2 and a convolution kernel size of 3*3; The three-level feature extraction module includes a convolution layer with a stride of 2 and a convolution kernel size of 3*3, and a maximum pooling layer with a stride of 2 and a convolution kernel size of 3*3; The first-level, second-level, and third-level multi-scale channel attention modules have the same structure and include a feature extraction module and a feature activation module. The feature extraction module includes two 3*3 convolutional layers, and the number of feature map channels generated from input to output is 32 and 32, respectively. The feature activation module includes two 3*3 convolutional layers, and the number of feature map channels generated from input to output is 128 and 128, respectively. The adaptive fusion module includes a Resize function, a convolution layer, a channel splicing function, a convolution layer, and a SoftMax function in sequence. The Resize function can adjust feature maps of different sizes to feature maps with a height and width of 112. The number of channels of the feature map generated by the convolution layer is 8 and 3 from input to output, respectively, and the convolution kernel size is 1. The type of pooling layer connected to the adaptive fusion module is an average pooling layer with a step size of 2, and the types of fully connected layers are fully connected layers of 4096, 1024, and 4 neurons, respectively.
3. A method for classifying oil-water two-phase flow patterns based on scale-attention learning, applied to the classification system as claimed in claim 1 or 2, characterized in that: Here are the steps: Step 1: Input the electromagnetic time series signal into the phase space reconstruction module for spatial reconstruction encoding to obtain a nonlinear recursive graph; Step 2: Input the nonlinear recursive graph into the primary feature extraction module for feature extraction to obtain a primary feature graph; Step 3: Input the primary feature map into the secondary feature extraction module for feature extraction to obtain the secondary feature map; Step 4: Input the first-level feature map into the third-level feature extraction module for feature extraction to obtain the third-level feature map; Step 5: Input the first-level feature map into the first-level multi-scale channel attention module for channel attention enhancement to obtain a first-level multi-scale channel feature map; Step 6: Input the secondary feature map into the secondary multi-scale channel attention module for channel attention enhancement to obtain a secondary multi-scale channel feature map; Step 7: Input the three-level feature map into the three-level multi-scale channel attention module for channel attention enhancement to obtain a three-level multi-scale channel feature map; Step 8: Input the first-level multi-scale channel feature map, the second-level multi-scale channel feature map and the third-level multi-scale channel feature map into the adaptive fusion module for image fusion to obtain a spatial multi-scale fusion result map; Step 9: Input the spatial multi-scale fusion result map into the average pooling layer to obtain the spatial multi-scale average result map; Step 10: Input the spatial multi-scale average result map into the fully connected layer to obtain the classification result.
4. The oil-water two-phase flow pattern classification method based on scale-attention learning according to claim 3 is characterized by: Step 1 The specific steps are as follows: Step 1.1: Input the electromagnetic time series signal into the correlation integral to obtain the optimal time interval and embedding dimension; Step 1.2: Given the optimal time interval and embedding dimension for the electromagnetic time series signal, input it into the phase space reconstruction method to obtain the phase space state set; Step 1.3: Calculate the vector norm for every two states of the phase space state set to obtain a nonlinear recurrence graph.
5. The oil-water two-phase flow pattern classification method based on scale-attention learning according to claim 4 is characterized by: Step 1.1 The specific steps are as follows: transform the electromagnetic time series signal X(i t ), i = 1, 2, ... N, t is the time sampling interval, N is the total number of sampling points, and phase space reconstruction coding is performed. Right now: The electromagnetic time series signal is associated with the sampling time interval t and the embedding dimension m as input and integrated, that is: M=N-(m-1)τ S(m,N,r,t)=C(n,N,r,t)-C m (1,N,r,t) Get the optimal time interval and embedding dimension.
6. The oil-water two-phase flow pattern classification method based on scale-attention learning according to claim 4 is characterized by: The specific steps of step 1.3 are as follows: Find the vector norm between every two states of the phase space state set, that is: Where ε is the threshold, R ij is a recursive matrix, θ(x) is the Heaviside function: A nonlinear recurrence graph is obtained.
7. The oil-water two-phase flow pattern classification method based on scale-attention learning according to claim 3 is characterized by: Step 5 The specific steps are as follows: Step 5.1: Slice the first-level feature map with 128 channels evenly into four parts according to the number of channels, namely the first first-level feature map, the second first-level feature map, the third first-level feature map and the fourth first-level feature map; Step 5.2: Input the second first-level feature map into the feature extraction module to obtain the first first-level feature extraction map; Step 5.3: Add the first level feature extraction map and the third level feature map and input them into the feature extraction module to obtain a second level feature extraction map; Step 5.4: Add the second first-level feature extraction map and the fourth first-level feature map and input them into the feature extraction module to obtain the third first-level feature extraction map; Step 5.5: Connect the first level feature map, the first level feature extraction map, the second level feature extraction map and the third level feature extraction map through channels to obtain a level one channel feature extraction result map; Step 5.6: Input the first-level channel feature extraction result map into the feature activation module to obtain a first-level multi-scale channel feature map.
8. The oil-water two-phase flow pattern classification method based on scale-attention learning according to claim 7 is characterized by: The specific operation methods of step 6 and step 7 are the same as step 5.
9. The oil-water two-phase flow pattern classification method according to claim 3, characterized in that: Step 8 The specific steps are as follows: Step 8.1: Input the secondary multi-scale channel feature map into the Resize function to obtain an enlarged secondary multi-scale channel feature map; Step 8.2: Input the three-level multi-scale feature map into the Resize function to obtain the enlarged three-level multi-scale channel feature map; Step 8.3: Input the first-level multi-scale channel feature map into the convolution layer to obtain the first-level multi-scale channel feature map weight vector; Step 8.4: Input the enlarged secondary multi-scale channel feature map into the convolution layer to obtain the secondary multi-scale channel feature map weight vector; Step 8.5: Input the expanded three-level multi-scale channel feature map into the convolution layer to obtain the three-level multi-scale channel feature map weight vector; Step 8.6: Input the above-mentioned first-level multi-scale channel feature map weight vector, second-level multi-scale channel feature map weight vector, and third-level multi-scale channel feature map weight vector into the channel concatenation function to obtain a multi-scale channel fusion feature map weight vector group; Step 8.7: Re-input the multi-scale channel fusion feature map weight vector group into the convolution layer to obtain the multi-scale fusion feature map weight; Step 8.8: Input the weight of the multi-scale fusion feature map into the SoftMax function to obtain the weight of the first-level multi-scale channel feature map, the weight of the second-level multi-scale channel feature map, and the weight of the third-level multi-scale channel feature map; Step 8.9: Multiply the first-level multi-scale channel feature map by the first-level multi-scale channel feature map weight to obtain the first-level multi-scale channel feature map result; Step 8.10: multiply the enlarged secondary multi-scale channel feature map by the secondary multi-scale channel feature map weight to obtain the secondary multi-scale channel feature map result; Step 8.11: multiply the expanded three-level multi-scale channel feature map by the three-level multi-scale channel feature map weight to obtain the three-level multi-scale channel feature map result; Step 8.12: Add the above-mentioned first-level multi-scale channel feature map results, second-level multi-scale channel feature map results, and third-level multi-scale channel feature map results to obtain a spatial multi-scale fusion result map.
