Oil and gas layer identification method based on HHO-RCNN in petroleum well logging
By using the residual convolutional neural network model optimized by the Harris Eagle optimization algorithm in petroleum logging, the problems of model complexity and long training time in high-dimensional logging data processing are solved, and higher accuracy of oil and gas layer identification is achieved. reliability and stability, providing a more effective intelligent means for oil and gas exploration.
Patent Information
- Application Number
- CN202111535742.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-15
AI Technical Summary
When existing logging data mining technology processes high-dimensional logging data, the model complexity and training time are long, and it is difficult to effectively extract massive amounts of complex information, which affects the accuracy of oil and gas exploration.
The residual convolutional neural network model (HHO-RCNN) based on the Harris Eagle optimization algorithm is used. By optimizing the parameters of the RCNN network model, a structure adapted to the one-dimensional causal expansion convolution layer and dropout layer is constructed. Combined with the Adam optimization algorithm, use Identification of oil and gas layers in petroleum logging.
It improves the accuracy and stability of oil and gas layer identification, overcomes the complexity and long training time of traditional models in high-dimensional data processing, and achieves higher identification accuracy and performance.
Smart Images

Figure CN114218862B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of petroleum detection, and in particular relates to a petroleum well logging oil and gas layer identification method based on HHO-RCNN. Background Art
[0002] Well logging is the "eye" of the oil industry. It uses instruments in boreholes to measure physical parameters such as electricity, sound, heat, and radioactivity to identify the properties of underground rocks and fluids. It is an important means of exploring and developing oil and gas fields. Well logging data includes a variety of data such as sound, electricity, and nuclear. With the continuous collection and storage of well logging data, well logging data presents the characteristics of massive, multi-scale, multi-type, multi-format, real-time, and dynamic. Well logging data contains rich geological information. Facing massive and complex well logging information, how to use its data set to extract effective information to provide a basis for well logging interpretation, oil and gas exploration and development, and geological engineering evaluation is a task of great significance and a technical problem to be solved by oil well logging data mining.
[0003] In the existing logging data mining, for limited sample information, the support vector machines (SVM), related vector machines (RVM) and extreme learning machines (ELM), which seek a compromise between model complexity and learning ability, can obtain good generalization ability. These three models have replaced the traditional neural network method and are widely used. Although the SVM and RVM models have strong generalization ability and no overfitting phenomenon, for the high-dimensional information of logging data, even though the sample information has been attribute simplified, the network structure is complex and the training time is long due to the large spatial dimension of the input information.
[0004] In recent years, deep learning technology has become a research hotspot in the field of artificial intelligence. Deep learning networks have the advantages of strong learning ability, wide coverage, strong adaptability and good portability. Therefore, the present invention proposes a petroleum logging oil and gas layer identification method based on a residual convolutional neural network model (HHO-RCNN) of the Harris Eagle optimization algorithm. This method overcomes the defect of insufficient capability shown by conventional logging technology and provides an intelligent means for oil and gas exploration. Summary of the invention
[0005] In view of the deficiencies in the prior art, the technical problem to be solved by the present invention is to propose a method for identifying oil and gas layers in oil well logging based on HHO-RCNN.
[0006] The technical solution adopted by the present invention to solve the technical problem is:
[0007] A method for identifying oil and gas layers in oil well logging based on HHO-RCNN, characterized in that the specific steps include:
[0008] Step 1: Obtain various logging data of oil wells;
[0009] Step 2: preprocess the logging data and normalize the preprocessed logging data;
[0010] Step 3: Build the RCNN network model, which contains multiple RCNN residual units;
[0011] Step 4: Optimize the parameters of the RCNN network model using the Harris Eagle optimization algorithm to obtain the HHO-RCNN model; train the HHO-RCNN model, and use the trained HHO-RCNN model for oil and gas layer identification in oil well logging;
[0012] The parameters of the RCNN network model include the number of RCNN residual units, the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters of the one-dimensional causal dilated convolution layer, the learning rate of the Adam optimization algorithm, the hyperparameter ε, and the weight decay factor.
[0013] Each RCNN residual unit includes a one-dimensional causal dilated convolutional layer, a batch normalization layer, a Relu layer, and a Dropout layer connected in sequence. The output of the Dropout layer is added to the input of the RCNN residual unit to obtain the output of the RCNN residual unit; the output of the previous RCNN residual unit is used as the input of the next RCNN residual unit; the output of the last RCNN residual unit passes through the maximum pooling layer, the flatten layer, and the fully connected layer in sequence, and finally the output of the fully connected layer is classified using the softmax classifier.
[0014] The specific process of optimizing the parameters of the RCNN network model is:
[0015] 1) Each parameter to be optimized in the RCNN network model represents a dimension of the search space. The population size, the maximum number of iterations, and the upper and lower bounds of each dimension of the search space are set. The upper bounds of the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters in the one-dimensional causal dilated convolution layer, the number of RCNN residual units, the learning rate, the hyperparameter ε, and the weight decay factor are {6, 10, 12, 0.01, 0.000001, 0.01}, and the lower bounds are {3, 2, 1, 0.0001, 0.0000000001, 0};
[0016] 2) Initialize the position of the Harris Hawk individual and calculate the fitness value of the Harris Hawk individual according to the fitness function fitness of formula (1);
[0017]
[0018] In the formula, m is the number of samples, f(x i ) is the predicted label of the i-th sample, y i is the true label of the i-th sample, I(f(x i )=y i ) is the judgment function. If f(x i )=yi, then I(f(x i )=y i ) is 1, otherwise it is 0;
[0019] 3) The Harris hawk individual with the smallest fitness value is recorded as the optimal individual, and the position information of the optimal individual is recorded. The position of the optimal individual is set as the prey position. The next iteration is carried out and the position of the population is updated. The fitness value of the Harris hawk individual after the position update is calculated and compared with the fitness value of the optimal individual. The position of the optimal individual is used as the new prey position. Repeat the iteration until the maximum number of iterations is reached, output the position of the current optimal individual, obtain the optimal solution of the RCNN network model parameters, and obtain the HHO-RCNN model.
[0020] The optimal solution for the RCNN network model parameters is: the number of RCNN residual units is 12, the convolution kernel size of the one-dimensional causal dilated convolution layer is 6, the number of filters of the one-dimensional causal dilated convolution layer is 7, and the learning rate, hyperparameter ε, and weight decay factor of the Adam optimization algorithm are 0.00572, 0.0000000692, and 0.00431, respectively.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] 1. The present invention is based on the Harris Hawk Optimization algorithm (HHO) and the residual convolutional neural network (RCNN), and proposes a HHO-RCNN model. The structure of the RCNN network model is uncertain, but the HHO optimizes the RCNN network model including the number of RCNN residual units, the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters of the one-dimensional causal dilated convolution layer, and the learning rate, hyperparameters, and weight decay factor of the Adam optimization algorithm. The parameters of the Adam optimization algorithm no longer use the default values. The traditional model design idea is to judge the performance of the model through continuous trial and error and adjust the individual parameters of the model, while the present application obtains an optimal RCNN network model through HHO optimization modeling. For different recognition or classification tasks, the structure of the RCNN network model may be different.
[0023] 2. Since the logging data is time series data with multiple dimensions, for example, the data of a well may have 28 logging curves, the RCNN network model of the present invention is different from the traditional RCNN based on two-dimensional convolution, but is based on one-dimensional causal dilated convolution RCNN to adapt to the logging data.
[0024] 3. The experimental results show that compared with other classification models, the classification results obtained by the method of the present invention are closer to the actual value, have higher accuracy and better stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is the overall flow chart of the present invention;
[0026] Figure 2 It is the structural diagram of the RCNN residual unit;
[0027] Figure 3 It is the structural diagram of the RCNN network model;
[0028] Figure 4 It is the actual oil layer distribution map;
[0029] Figure 5 It is the HHO-RCNN oil layer identification distribution map;
[0030] Figure 6 It is the LSTM oil layer identification distribution map;
[0031] Figure 7 It is the BiLSTM oil layer identification distribution map;
[0032] Figure 8 It is the ELM oil layer identification distribution map;
[0033] Fig. 9 It is the BiLSTM-Attention oil layer identification distribution map;
[0034] Fig.10 This is the SA-BiLSTM oil layer identification distribution map. DETAILED DESCRIPTION
[0035] The technical solution of the present invention is described in detail below in conjunction with specific embodiments and drawings, but the protection scope of the present application is not limited thereto.
[0036] The present invention is a method for identifying oil and gas layers in oil well logging based on HHO-RCNN (hereinafter referred to as method, see Figure 1-10 ), the specific steps include:
[0037] Step 1: Obtain various logging data of oil wells. Considering the continuity of well sections, all logging data of the 2750-3550 meter well section are used as the original data set. According to the core sampling conclusion and the comprehensive logging interpretation experience, the logging data of the typical well section in the original data set are labeled. The logging data of the 3336-3500 meter well section are labeled and used as the training sample set, and the unlabeled logging data of the 3275-3336 meter well section is used as the test sample set.
[0038] Since oil wells are mainly divided into oil wells and gas wells, and the two cannot exist at the same time, the present application can identify oil layers or gas layers. In this embodiment, the oil layer is taken as an example, label 0 represents a non-oil layer, and 1 represents an oil layer; the logging data includes the original data of 11 logging curves, including spontaneous potential (SP), acoustic wave time difference (AC), permeability (PERM), porosity (POR), natural gamma (GR), well diameter (CAL), shallow dual lateral resistivity logging (RLLS), effective photoelectric absorption cross-section index (PE), density (DEN), compensated neutron (CNL) and deep dual lateral resistivity logging (RLLD); the data set of this embodiment is derived from the real logging data of an oil well in my country, and the logging data of the oil well is selected from the logging warehouse.
[0039] Step 2: preprocess the logging data and normalize the preprocessed logging data;
[0040] Since there are outliers and missing values in the logging data, it is necessary to detect outliers for each logging data, clean up outliers beyond the normal range, and use chain equations to fill in the outliers and missing values by multivariate interpolation. Since there is random noise in the logging data, the filled logging data is denoised by smoothing filtering to remove the random noise. Since the dimensions of various logging data are inconsistent and the numerical ranges are different, the denoised logging data is normalized to normalize each logging data to between [0,1].
[0041] Step 3: Construct an RCNN network model, which contains multiple RCNN residual units; each RCNN residual unit includes a one-dimensional causal expansion convolution layer, a batch normalization layer, a Relu layer, and a Dropout layer connected in sequence. The output of the Dropout layer is then added to the input of the RCNN residual unit to obtain the output of the RCNN residual unit; the output of the previous RCNN residual unit is used as the input of the next RCNN residual unit; the number and size of convolution kernels of the one-dimensional causal expansion convolution layer of each RCNN residual unit are the same, and the expansion factor of each one-dimensional causal expansion convolution layer is different; the output of the last RCNN residual unit passes through the maximum pooling layer, the flatten layer, and the fully connected layer in sequence, and finally the output of the fully connected layer is classified using the softmax classifier; the flatten layer converts the feature data output by the maximum pooling layer into a one-dimensional vector.
[0042] Step 4: Optimize the parameters of the RCNN network model using the Harris Hawk Optimization algorithm (HHO) to obtain the HHO-RCNN model; train the HHO-RCNN model, and use the trained HHO-RCNN model for oil and gas layer identification in oil well logging;
[0043] In the RCNN network model training process, the Adam optimization algorithm is used to update the weights and biases of the convolution kernels in the RCNN network model. Therefore, the parameters of the RCNN network model include the number of RCNN residual units, the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters of the one-dimensional causal dilated convolution layer, and the learning rate, hyperparameter ε, and weight decay factor of the Adam optimization algorithm.
[0044] Harris Hawks Optimization (HHO) algorithm establishes a mathematical model by observing the unique chasing style and cooperative hunting behavior of Harris Hawks during the hunting process, so that the Harris Hawks gradually approach the position of the prey during the hunting process, that is, the optimal solution of the optimization parameters is obtained. It has the advantages of few parameters, simple structure and fast convergence speed. The specific process of optimization is:
[0045] 1) The six parameters to be optimized in the RCNN network model represent the six dimensions of the search space. The population size is set to 30, the maximum number of iterations is set to 100, and the upper and lower bounds of each dimension of the search space are set. The convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters of the one-dimensional causal dilated convolution layer, the number of RCNN residual units, the learning rate, the hyperparameter ε, and the upper bound of the weight decay factor are {6, 10, 12, 0.01, 0.000001, 0.01}, and the lower bounds are {3, 2, 1, 0.0001, 0.0000000001, 0};
[0046] 2) Initialize the position of the Harris Hawk individual, and calculate the fitness value of the Harris Hawk individual according to the fitness function of formula (1). The fitness function is expressed by the classification error rate;
[0047]
[0048] In the formula, m is the number of samples, f(x i ) is the predicted label of the i-th sample, y i is the true label of the i-th sample, I(f(x i )=y i ) is the judgment function. If f(x i )=yi, then I(f(x i )=y i ) is 1, otherwise it is 0;
[0049] 3) The Harris Hawk individual with the smallest fitness value is recorded as the optimal individual, and the position information of the optimal individual is recorded. The position of the optimal individual is set as the prey position, and the next iteration is performed, that is, the position of the population is updated according to the position update strategy of the HHO algorithm, and the fitness value of the Harris Hawk individual after the position update is calculated and compared with the fitness value of the optimal individual. The position of the optimal individual is used as the new prey position, and the iteration is repeated until the maximum number of iterations is reached. The position of the current optimal individual is output, and the optimal solution of the RCNN network model parameters is obtained. At this time, the number of RCNN residual units and the one-dimensional causal dilation volume The convolution kernel size of the convolution layer, the number of filters of the one-dimensional causal expansion convolution layer, the learning rate of the Adam optimization algorithm, the hyperparameter ε, and the weight decay factor are optimal, and the optimized RCNN network model, i.e., the HHO-RCNN model, is obtained; the optimal values of each parameter in this embodiment are: the number of RCNN residual units is 12, the convolution kernel size of the one-dimensional causal expansion convolution layer is 6, the number of filters of the one-dimensional causal expansion convolution layer is 7, the learning rate of the Adam optimization algorithm, the hyperparameter ε, and the weight decay factor are 0.00572, 0.0000000692, and 0.00431, respectively;
[0050] The HHO-RCNN model is trained using the training sample set, and the cross entropy loss function is used to calculate the training loss of the HHO-RCNN model during the training process. The trained HHO-RCNN model and the test sample set are used to identify the oil layers of oil well logging.
[0051] In order to verify the superiority of the HHO-RCNN model proposed in the present invention, the HHO-RCNN model of the present invention and the common LSTM, BiLSTM, BiLSTM-Attention, ELM and SA-BiLSTM models in the prior art are used to identify the oil and gas layers of oil well logging using the same data set and in the same test environment. The recognition results of the model are compared with the oil test conclusions to verify the accuracy of the model recognition results. Accuracy (ACC), root mean square error (RMSE) and mean absolute error (MAE) are used as evaluation indicators to evaluate the recognition effect of each model, and the results shown in Table 1 are obtained. The actual oil layer distribution and the oil layer recognition distribution corresponding to each model can be seen in Figure 5-10 The expressions of each evaluation index are as follows:
[0052]
[0053]
[0054]
[0055] Table 1 Oil layer identification results of each model
[0056]
[0057] As can be seen from Table 1, the recognition accuracy of the HHO-RCNN model of the present invention is better than that of ELM, LSTM, BiLSTM, SA-BiLST and BiLSTM-Attention models, with an accuracy rate of 94.1677%, and the root mean square error and mean absolute error are both the lowest; in addition, the oil layer distribution map obtained by the present invention is closest to the actual oil layer distribution, so the recognition performance of the HHO-RCNN model is the best. The HHO-RCNN model uses the input of the RCNN residual unit and the output of the Dropout layer to obtain the output of the RCNN residual unit, that is, the input information of the RCNN residual unit is bypassed to the output, which not only protects the integrity of the information, but also effectively avoids the gradient disappearance or gradient explosion phenomenon caused by the increase in depth of the network model, and the modeling of the network structure is optimized by HHO for specific recognition or classification tasks. For different tasks, the structure of the optimal RCNN model may be different. The structures of the ELM, LSTM, BiLSTM, SA-BiLST and BiLSTM-Attention models are relatively fixed. They only adjust individual parameters through continuous training for data sets of different tasks to improve the recognition performance of the models, which is completely different from the modeling idea of this application. Therefore, this application can obtain an optimal RCNN network model for different recognition or classification tasks, and the recognition accuracy will not decrease with the change of tasks.
[0058] In summary, the method of the present invention can effectively identify the oil layers of oil logging and improve the recognition accuracy, overcome the defects of insufficient capabilities of conventional logging technology, provide an effective basis for oil and gas exploration, have more advantages in practical application, meet the basic needs of existing oil logging reservoir characteristics identification, and can be used as an identification model for oil layers or gas layers in oil logging, thereby improving the intelligence level of oil exploration.
[0059] Any matters not described in the present invention are applicable to the prior art.
Claims
1. A method for identifying oil and gas layers in oil well logging based on HHO-RCNN, characterized in that: The specific steps include: Step 1: Obtain various logging data of oil wells; Step 2: preprocess the logging data and normalize the preprocessed logging data; Step 3: Build the RCNN network model, which contains multiple RCNN residual units; Step 4: Optimize the parameters of the RCNN network model using the Harris Eagle optimization algorithm to obtain the HHO-RCNN model; train the HHO-RCNN model, and use the trained HHO-RCNN model for oil and gas layer identification in oil well logging; The parameters of the RCNN network model include the number of RCNN residual units, the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters of the one-dimensional causal dilated convolution layer, the learning rate of the Adam optimization algorithm, the hyperparameter ε, and the weight decay factor; The specific process of optimizing the parameters of the RCNN network model is: 1) Each parameter to be optimized in the RCNN network model represents a dimension of the search space. The population size, the maximum number of iterations, and the upper and lower bounds of each dimension of the search space are set. The upper bounds of the convolution kernel size of the one-dimensional causal dilated convolution layer, the number of filters in the one-dimensional causal dilated convolution layer, the number of RCNN residual units, the learning rate, the hyperparameter ε, and the weight decay factor are {6, 10, 12, 0.01, 0.000001, 0.01}, and the lower bounds are {3, 2, 1, 0.0001, 0.0000000001, 0}; 2) Initialize the position of the Harris Hawk individual and calculate the fitness value of the Harris Hawk individual according to the fitness function fitness of formula (1); In the formula, m is the number of samples, f(x i ) is the predicted label of the i-th sample, y i is the true label of the i-th sample, I(f(x i )=y i ) is the judgment function. If f(x i )=y i , then I(f(x i )=y i ) is 1, otherwise it is 0; 3) The Harris hawk individual with the smallest fitness value is recorded as the optimal individual, and the position information of the optimal individual is recorded. The position of the optimal individual is set as the prey position. The next iteration is carried out and the position of the population is updated. The fitness value of the Harris hawk individual after the position update is calculated and compared with the fitness value of the optimal individual. The position of the optimal individual is used as the new prey position. Repeat the iteration until the maximum number of iterations is reached, output the position of the current optimal individual, obtain the optimal solution of the RCNN network model parameters, and obtain the HHO-RCNN model.
2. The oil well logging oil and gas layer identification method based on HHO-RCNN according to claim 1 is characterized in that: Each RCNN residual unit includes a one-dimensional causal dilated convolutional layer, a batch normalization layer, a Relu layer, and a Dropout layer connected in sequence. The output of the Dropout layer is added to the input of the RCNN residual unit to obtain the output of the RCNN residual unit; the output of the previous RCNN residual unit is used as the input of the next RCNN residual unit; the output of the last RCNN residual unit passes through the maximum pooling layer, the flatten layer, and the fully connected layer in sequence, and finally the output of the fully connected layer is classified using the softmax classifier.
3. The oil well logging oil and gas layer identification method based on HHO-RCNN according to claim 1 is characterized in that: The optimal solution for the RCNN network model parameters is: the number of RCNN residual units is 12, the convolution kernel size of the one-dimensional causal dilated convolution layer is 6, the number of filters of the one-dimensional causal dilated convolution layer is 7, and the learning rate, hyperparameter ε, and weight decay factor of the Adam optimization algorithm are 0.00572, 0.0000000692, and 0.00431, respectively.
Citation Information
Patent Citations
Horizontal well fracturing section segmentation method, system and equipment and storage medium
CN112906760A
Stainless steel weld defect detection method based on multi-domain expression data enhancement and model self-optimization
CN113129266A
