A shale gas reservoir gas saturation prediction method and device

By combining quantum-encoded generative adversarial networks and attention-based convolutional neural networks, along with autoencoders and improved classifiers, the problems of insufficient training samples and inadequate data utilization in shale gas reservoir saturation prediction are solved, achieving high-precision prediction results.

CN118378154BActive Publication Date: 2026-11-20PETROCHINA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410423014.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-09
Publication Date
2026-11-20
Estimated Expiration
2044-04-09

AI Technical Summary

Technical Problem

Existing technologies for predicting gas saturation in shale gas reservoirs suffer from problems such as insufficient training samples, inadequate data utilization, low computational efficiency, weak model generalization ability, and poor adaptability, resulting in low prediction accuracy and efficiency.

Method used

Data augmentation is performed using quantum-encoded generative adversarial networks, followed by feature extraction using attention-based convolutional neural networks. Dimensionality reduction is achieved through an autoencoder, and an improved classifier is used for training, enabling high-precision prediction of gas saturation.

Benefits of technology

This improved the model's generalization ability and prediction efficiency, enabling high-precision prediction of gas saturation in shale gas reservoirs and solving the problems of insufficient training samples and inadequate data utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378154B_ABST
    Figure CN118378154B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of shale gas prediction, and particularly relates to a shale gas reservoir gas saturation prediction method and device. The present disclosure adopts an innovative quantum coding-based generative adversarial network to expand training samples, utilizes superposition and entanglement characteristics of quantum states to realize efficient and innovative data representation, thereby generating new data samples, enhancing the generalization ability of the model and improving the prediction accuracy. The present disclosure proposes an efficient and accurate shale gas reservoir gas saturation prediction method, solves the problem of insufficient training samples through innovative data enhancement technology, optimizes the feature extraction process by using the attention mechanism, and improves the generalization ability and prediction efficiency of the model through improved dimension reduction technology and optimized classifier design, finally realizes high-precision prediction of the shale gas reservoir gas saturation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of shale gas prediction technology, and in particular to a method and apparatus for predicting the gas saturation of shale gas reservoirs. Background Technology

[0002] Predicting gas saturation in shale gas reservoirs presents numerous challenges, particularly the need for accurate predictions under complex geological conditions and limited sample data. With advancements in shale gas development technology and increasing energy demand, accurately assessing the gas content of shale gas reservoirs has become crucial for improving extraction efficiency and economic benefits. However, traditional prediction methods are often limited by data incompleteness, quality issues, and the generalization ability of models, failing to meet the demands for high-precision predictions. Therefore, developing a novel prediction method that effectively utilizes existing logging data while possessing high accuracy and generalization ability has become an urgent need in this field.

[0003] There are many shortcomings in the existing technology, including:

[0004] 1. Existing technologies may not perform well when dealing with limited training samples, resulting in weak model generalization ability and an inability to accurately predict the gas saturation of shale gas reservoirs under different geological conditions.

[0005] 2. Traditional methods may not be able to fully utilize the information in complex well logging data and fail to effectively extract key features for predicting gas saturation, thus affecting the accuracy of the prediction.

[0006] 3. Existing technologies may suffer from low computational efficiency when processing large-scale data or performing complex model calculations, which prolongs analysis time and reduces work efficiency.

[0007] 4. Due to the lack of effective data augmentation and model optimization strategies, existing prediction models may exhibit weak adaptability and generalization ability when faced with different geological conditions or data distributions.

[0008] 5. Existing methods may not be efficient or advanced enough in dimensionality reduction and model parameter optimization, which may cause the model to fail to fully learn the inherent relationships in the data and affect the reliability of the prediction results. Summary of the Invention

[0009] To address the aforementioned issues, this disclosure provides a method and apparatus for predicting the gas saturation of shale gas reservoirs.

[0010] In a first aspect, a method for predicting the gas saturation of shale gas reservoirs, the method comprising:

[0011] Well logging curve data were collected, and the gas saturation of rock samples was measured to obtain a training dataset;

[0012] A quantum-encoded generative adversarial network augments the training dataset to obtain an augmented dataset.

[0013] For the augmented dataset, feature vectors are obtained by performing feature extraction using a convolutional neural network based on an attention mechanism;

[0014] The dimensionality of the feature vector is reduced by using an autoencoder to obtain the dimensionality-reduced feature vector;

[0015] The classifier is trained by reducing the dimensionality of the feature vectors to obtain the final classifier;

[0016] The gas saturation of newly drilled shale gas wells is predicted using a final classifier.

[0017] Furthermore, well logging data is collected, including:

[0018] The physical and chemical properties of underground rock formations are obtained in real time during the drilling process using logging instruments. The collected data is in structured format and stored in tabular form, where each row represents the data of a measurement point and each column represents a specific physical or chemical property.

[0019] Furthermore, well logging data was collected, and the gas saturation of rock samples was measured to obtain a training dataset, including:

[0020] Gas saturation was measured by laboratory analysis of rock samples.

[0021] The gas saturation measurement values ​​are matched with the corresponding well logging data by measuring the Euclidean distance between the depth and the measurement value to obtain the training dataset.

[0022] Furthermore, the training process for quantum-encoded generative adversarial networks is as follows:

[0023] Initialize qubits to represent the features of the input logging data, with each qubit corresponding to a logging parameter; initialize the network parameters of the generator and discriminator.

[0024] Well logging data is converted into qubits through a quantum encoding process;

[0025] Under the participation-limited mechanism, the generator receives random noise and quantum-encoded real data samples, and generates new data samples through quantum operations; the discriminator distinguishes between the generated data samples and the real data samples.

[0026] The generator and discriminator are optimized through iterative adversarial training until the model reaches a stable state.

[0027] After training, the optimized generator is used to generate new logging data samples for data augmentation.

[0028] Furthermore, the well logging data is converted into qubits through a quantum encoding process, including:

[0029] When converting well logging data into a qubit representation, for each well logging parameter b i , such as b GR b KTH Define quantum state |ψ i The encoding of a quantum state is represented by the following formula:

[0030]

[0031] Among them, B max For logging parameter b i The maximum possible value of θ i θ is the phase factor. i Used to introduce additional encoding information;

[0032] Phase factor θ i The calculation method is as follows: The parameters are dynamically adjusted based on their characteristics.

[0033]

[0034] Among them, B range For logging parameter b i The range of values ​​for θ is ensured. i It covers the entire range from 0 to 2π.

[0035] Furthermore, the generator G is used to generate data from random noise z, and the training process minimizes the following loss function L. G To achieve:

[0036]

[0037] Where D is the discriminator, N is the batch size, and z n This is the nth noise sample;

[0038] D(G(z n () represents the discriminator's score for the data samples generated by the generator, calculated through the forward propagation process of the discriminator network, and is expressed as:

[0039] D(G(z n ))=Sig(W d ·G(z n )+b d )

[0040] Among them, W d and b d These are the weights and biases of the discriminator network, respectively. Sig() is the Sig activation function, used to restrict the output to between 0 and 1.

[0041] Furthermore, the discriminator D is trained by minimizing the following loss function L. D accomplish:

[0042]

[0043] Where D is the discriminator, N is the batch size, and z n For the nth noise sample, x n This is the nth real data sample;

[0044] D(x n The score () represents the discriminator's rating of the real data sample, calculated as follows:

[0045] D(x n ) = Sig(W d ·x n +b d )

[0046] Among them, W d and b d These are the weights and biases of the discriminator network, respectively. Sig() is the Sig activation function, used to restrict the output to between 0 and 1.

[0047] Furthermore, participation restriction mechanisms include:

[0048] Ω G and Ω D These are the sets of layers in the generator and discriminator that are restricted from updating, respectively, and the update rules are as follows:

[0049]

[0050]

[0051] Where, ω g and ω d These are the parameters in the generator and discriminator, respectively, and η is the learning rate;

[0052] In each iteration, the generator and discriminator are updated according to the training process, by dynamically adjusting the participation constraint set Ω. G and Ω D This is to avoid premature convergence.

[0053] Furthermore, Ω G and Ω D The dynamic update frequency is dynamically adjusted based on the Kullback-Leibler divergence between the generated data and the real data. The calculation of the update increment is as follows:

[0054] ΔΩ=KL(P data ∥Pmodel )

[0055] Among them, P data For the true data distribution, P model Generate a data distribution for the model, where ΔΩ is the update increment of the participation constraint set adjusted according to the KL divergence.

[0056] Furthermore, the training process for an attention-based convolutional neural network is as follows:

[0057] The logging data is standardized, and for each logging parameter c... i The standardized processing method is calculated as follows:

[0058]

[0059] Among them, c' i These are the standardized parameter values. and These are the logging parameters c. i The mean and standard deviation;

[0060] The preprocessed data is input into a convolutional neural network based on an attention mechanism. The data first undergoes preliminary feature extraction through multiple convolutional layers, with an attention module following each convolutional layer to enhance the model's focus on key features. In the attention-based convolutional neural network, the output of each convolutional layer l is O. l The calculation is as follows:

[0061] O l =Re(W l *O l-1 +b l )

[0062] Among them, W l and b l These represent the kernel weights and biases of the l-th layer, respectively. * indicates the convolution operation, and Re() is the ReLU activation function. l-1 It is the output of the previous layer;

[0063] Convolutional neural networks based on attention mechanisms consist of three convolutional layers, with each convolutional layer followed by an attention module to enhance feature extraction capabilities.

[0064] For the weights W in convolutional layer l l Its initialization uses the He initialization method, calculated as follows:

[0065]

[0066] Where, n l The number of input units in layer l. This represents a normal distribution with a mean of 0 and a standard deviation of 1.

[0067] For each attention module m, its output A m The calculation is as follows:

[0068] A m =σ(W a *O l +b a )⊙O l

[0069] Among them, W a and b a Here, σ represents the weights and biases of the attention module, σ is the Sigmoid activation function used to generate the attention weights, and ⊙ represents element-wise multiplication.

[0070] In the attention module, the weight W a The computation is achieved through an attention learning mechanism, which is as follows:

[0071]

[0072] Where Q, K, and V are the query, key, and value matrices, respectively, and d k The dimension of the key vector is denoted by , and softmax is used to normalize the calculated attention weights.

[0073] During feature extraction, dynamic sampling is adopted. Dynamic sampling adjusts the sampling strategy according to the current model performance and prioritizes data samples that are more beneficial to model training.

[0074] The extracted features are integrated through a fusion layer to obtain the final feature representation, which is used for subsequent gas saturation prediction.

[0075] The parameters of the attention-based convolutional neural network are optimized using the backpropagation algorithm and gradient descent strategy; during training, the network parameters are iteratively updated until the model converges.

[0076] Furthermore, the weight D of dynamic sampling sw The adjustment is based on the model's performance on the training set, calculated as follows:

[0077] D sw =exp(-γ·Loss) train )

[0078] Where γ is a hyperparameter, representing the sensitivity of the sampling weights to the loss, and Loss train This represents the model's loss on the training set.

[0079] Furthermore, the extracted features are integrated through a fusion layer to obtain the final feature representation, including:

[0080] The feature fusion layer integrates the outputs of all attention modules to generate the final feature representation F, calculated as follows:

[0081] F = Concat(A1,A2,…,A) M W f +b f

[0082] Where Concat is the join operation, W f and b f These are the weights and biases of the feature fusion layer, and M is the number of attention modules;

[0083] The weights W of the feature fusion layer f Optimization can be achieved through multi-task learning or other fusion strategies, employing a weighted fusion strategy, W. f The calculation is as follows:

[0084]

[0085] Where, λ i It is the weight of the i-th feature. It is the fusion weight corresponding to the i-th feature.

[0086] Furthermore, the parameter updates of the attention-based convolutional neural network follow the gradient descent method. For each parameter θ, the update formula is calculated as follows:

[0087]

[0088] Where ηa is the learning rate and Loss is the total loss function of the model, including classification loss and possible regularization terms.

[0089] Furthermore, the training process for the autoencoder is as follows:

[0090] For encoder weights W e and decoder weights W d Initialization;

[0091] The encoder is trained by compressing the input data into a low-dimensional feature representation through forward propagation. The encoder part adopts a multi-layer fully connected network structure, with each layer introducing nonlinearity through an activation function. The encoder part processes the input data e' i The transformation to a low-dimensional feature representation z is as follows:

[0092] z = Re(W e e' i +b e )

[0093] Among them, W e Let b be the weight matrix of the autoencoder. e For the bias term, Re() is the ReLU activation function;

[0094] The decoder reconstructs the original data from the low-dimensional feature representation. Its structure is also a multi-layer fully connected network, with the output size of the last layer being the same as the input data. The decoder reconstructs the input data from the low-dimensional feature representation z, and the reconstruction process is as follows:

[0095]

[0096] in, For the reconstructed data, W d Let b be the weight matrix of the decoder. d As a bias term, Sig() is the Sigmoid activation function;

[0097] The model parameters are optimized using gradient descent, and the learning rate η is adjusted using cosine annealing. The adjustment of the learning rate as the training period t increases is expressed as follows:

[0098]

[0099] Where η0 is the initial learning rate and T is the total number of training cycles;

[0100] After training, a greedy algorithm is used to select features from the encoder output for gas saturation prediction.

[0101] Furthermore, regarding the encoder weights W e and decoder weights W d Initialization includes:

[0102] Using Glorot initialization, the calculations are as follows:

[0103]

[0104]

[0105] Where U(-1,1) represents the value uniformly sampled from the interval [-1,1], and n in n is the number of nodes in the input layer. out This represents the number of nodes in the output layer.

[0106] Furthermore, the autoencoder uses the mean squared error (MSE) as the loss function, calculated as follows:

[0107]

[0108] Where n is the number of samples.

[0109] Furthermore, a greedy algorithm is used to select features from the encoder output for gas saturation prediction, including:

[0110] In the features z output by the encoder, a greedy algorithm is used to select the most informative features for retention. Let the selected feature set be Z. selected The selection process can be simplified as follows:

[0111]

[0112] Where k is a pre-defined upper limit for the number of features, and Info(Z) represents the information content of feature set Z; the information content measurement method Info(Z) adopts the mutual information method, and the calculation method is expressed as follows:

[0113]

[0114] Where Y is the target variable, p(z,y) is the joint probability distribution of Z and Y, and p(z) and p(y) are the marginal probability distributions of Z and Y, respectively; the contribution of Z to the prediction of Y is evaluated by calculating the mutual information between the feature set Z and the target variable Y.

[0115] Furthermore, the classifier employs an extreme learning machine classifier based on the alternating direction multiplier method;

[0116] The training process for the extreme learning machine classifier based on the alternating direction multiplier method is as follows:

[0117] Input the dimensionality-reduced feature vector into the classifier. This is the feature vector of the i-th sample after dimensionality reduction;

[0118] Set the initial weights and biases of the hidden layer as follows:

[0119]

[0120]

[0121] Among them, W p b represents the weights of the hidden layer. p For bias;

[0122] Features for classification are quickly extracted using hidden layers. The hidden layer feature extraction is as follows:

[0123]

[0124] in, Let be the feature representation of the i-th sample in the hidden layer;

[0125] The alternating direction multiplier method is used to optimize the weights and biases of the hidden layer.

[0126] The network parameters are automatically adjusted based on the classification results. The adjustment method is as follows:

[0127]

[0128] in, The true classification label is used, and AdaptiveAdjust is the adaptive adjustment function.

[0129] The adaptive adjustment function adjusts its parameters based on the classification results, and its calculation method is as follows:

[0130]

[0131]

[0132] Among them, L adjust For adaptively adjusted loss function, and Let β be the gradient of the loss function with respect to the weights and biases, and let β be the adjustment rate.

[0133] Repeat the iterations until the predetermined number of iterations is reached;

[0134] The classifier output is represented as follows:

[0135]

[0136] in, For hidden layer features Classification prediction.

[0137] Furthermore, the alternating direction multiplier method is used to optimize the weights and biases of the hidden layer, including:

[0138] The optimization method using alternating direction multipliers is represented as follows:

[0139]

[0140] Where, p y Let ADMMOptimize be the target classification label for the sample, and ADMMOptimize be the optimization function based on the alternating direction multiplier method.

[0141] The optimization process is as follows:

[0142]

[0143]

[0144] Where L is the classification loss function, and α represents the gradient of the loss function with respect to the weights and biases, respectively, and α is the learning rate.

[0145] Furthermore, the training dataset is labeled according to thresholds: high gas saturation means gas saturation is above 75%, medium gas saturation means gas saturation is between 50% and 75%, and low gas saturation means gas saturation is below 50%.

[0146] The corresponding categories classified by the classifier include:

[0147] High gas saturation, medium gas saturation, and low gas saturation.

[0148] Secondly, a shale gas reservoir gas saturation prediction device includes: a data acquisition unit, a data expansion unit, a feature extraction unit, a feature dimensionality reduction unit, a classifier training unit, and a prediction unit;

[0149] The data acquisition unit is used to acquire well logging curve data and measure the gas saturation of rock samples to obtain a training dataset.

[0150] The data augmentation unit is used to augment the training dataset using a quantum-encoded generative adversarial network to obtain an augmented dataset.

[0151] The feature extraction unit is used to extract features from the augmented dataset using a convolutional neural network based on an attention mechanism to obtain feature vectors.

[0152] The feature reduction unit is used to reduce the dimensionality of the feature vector through an autoencoder to obtain a dimensionality-reduced feature vector.

[0153] The classifier training unit is used to train the classifier using dimensionality-reduced feature vectors to obtain the final classifier;

[0154] The prediction unit is used to predict the gas saturation of newly drilled shale gas wells through the final classifier.

[0155] Thirdly, an electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0156] Memory, which stores computer programs;

[0157] When a processor executes a computer program stored in memory, it implements the aforementioned method for predicting the gas saturation of shale gas reservoirs.

[0158] Fourthly, a computer-readable storage medium stores a computer program that, when executed by a processor, implements the aforementioned method for predicting the gas saturation of a shale gas reservoir.

[0159] This disclosure has at least the following beneficial effects:

[0160] This disclosure proposes an efficient and accurate method for predicting the gas saturation of shale gas reservoirs. It solves the problem of insufficient training samples through innovative data augmentation technology, optimizes the feature extraction process by utilizing an attention mechanism, and improves the generalization ability and prediction efficiency of the model through improved dimensionality reduction technology and optimized classifier design. Finally, it achieves high-precision prediction of the gas saturation of shale gas reservoirs.

[0161] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objects and other advantages of this disclosure may be realized and obtained by means of the structures pointed out in the description and the accompanying drawings. Attached Figure Description

[0162] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0163] Figure 1 This is a flowchart of the prediction method according to an embodiment of the present disclosure;

[0164] Figure 2 This is a schematic diagram of the predictive device structure according to an embodiment of the present disclosure;

[0165] Figure 3 This is a schematic diagram of the electronic device structure. Detailed Implementation

[0166] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0167] like Figure 1 As shown, a method for predicting gas saturation in shale gas reservoirs includes:

[0168] S101: Collect well logging curve data and measure the gas saturation of rock samples to obtain the training dataset;

[0169] S102, a quantum-encoded generative adversarial network is used to augment the training dataset to obtain an augmented dataset;

[0170] S103, for the expanded dataset, feature vectors are obtained by performing feature extraction through a convolutional neural network based on an attention mechanism;

[0171] S104, the dimensionality of the feature vector is reduced by an autoencoder to obtain a dimensionality-reduced feature vector;

[0172] S105, the classifier is trained using dimensionality-reduced feature vectors to obtain the final classifier;

[0173] S106 uses a final classifier to predict the gas saturation of newly drilled shale gas wells.

[0174] The specific implementation details are as follows:

[0175] S101, Data Acquisition and Labelling

[0176] The data disclosed herein originates from 27 shale gas wells in the Changning area of ​​the southern margin of the Sichuan Basin. The selected data includes nine logging curves corresponding to the Wufeng-Longmaxi Formation shale: natural gamma (GR), uranium-free gamma (KTH), uranium (U), potassium (K), acoustic transit time (AC), neutron density (CNL), density (DEN), deep lateral resistivity (RT), and shallow lateral resistivity (RXO). In addition, gas saturation labels for 1436 rock samples are included for training and validating the accuracy of the prediction model. In one embodiment, the data features are respectively denoted by the symbol a. GR a KTH a U a K a AC a CNL a DEN a RT , and a RXO This indicates that the gas saturation label uses the a symbol. S express.

[0177] The data acquisition method disclosed herein is achieved through geological exploration technology, using logging instruments to obtain the physical and chemical properties of underground rock formations in real time during the drilling process. The acquired data is in the format of structured data and stored in tabular form, where each row represents the data of a measurement point and each column represents a specific physical or chemical property.

[0178] The data annotation disclosed herein is achieved by conducting laboratory analysis on rock samples, measuring their gas saturation, and then matching these measurements with corresponding well logging data to form a complete training dataset. The data annotation categories are different levels of gas saturation.

[0179] In one embodiment, five examples of shale gas well data collected from the Changning area on the southern edge of the Sichuan Basin include measurements of natural gamma, uranium-free gamma, uranium, potassium, sonic transit time, neutrons, density, deep lateral resistivity, and shallow lateral resistivity, as shown in Table 1:

[0180] Table 1

[0181]

[0182]

[0183] In this embodiment, the labeling categories for gas saturation include:

[0184] Category 1: High gas saturation;

[0185] Category 2: Medium gas saturation;

[0186] Category 3: Low gas saturation.

[0187] The training dataset is labeled according to thresholds: high gas saturation means gas saturation is above 75%, medium gas saturation means gas saturation is between 50% and 75%, and low gas saturation means gas saturation is below 50%.

[0188] S102, Training Sample Expansion

[0189] Understandably, in this task, the acquisition, annotation, and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor model generalization ability and affect model accuracy. To address the problem of insufficient training samples in the shale gas reservoir gas saturation prediction task, this disclosure employs a quantum-encoded generative adversarial network for sample generation, thereby achieving data augmentation.

[0190] Specifically, the training process for the quantum-encoded generative adversarial network algorithm is as follows:

[0191] S1021. Initialize qubits to represent the characteristics of the input logging data, with each qubit corresponding to a specific logging parameter. Simultaneously, initialize the network parameters of the generator and discriminator.

[0192] S1022. Well logging data is converted into qubits through a quantum encoding process. This step utilizes the superposition and entanglement properties of quantum states to achieve efficient data representation. Specifically, when converting well logging data into qubit representation, for each well logging parameter b... i , such as b GR b KTH Define quantum state |ψ i The encoding of a quantum state can be represented by the following formula:

[0193]

[0194] Among them, B max It is logging parameter b i The maximum possible value of θ i It is a phase factor used to introduce additional encoded information.

[0195] Phase factor θ i The calculation method, which dynamically adjusts the logging parameters based on their characteristics, can be expressed as follows:

[0196]

[0197] Among them, B range It is logging parameter b i The range of values ​​for θ is ensured. i It can cover the entire range from 0 to 2π.

[0198] S1023. Within the participation-constrained framework, the generator receives random noise and quantum-encoded real data samples, and generates new data samples through quantum operations. Some layers of the generator are restricted to frequent updates to encourage the model to explore more diverse data distributions. Specifically, the goal of the generator G is to generate data from random noise z, and its training process can be achieved by minimizing the following loss function:

[0199]

[0200] Where D is the discriminator, N is the batch size, and z n This is the nth noise sample. In one embodiment, the dimension of the random noise vector z is set to 100 to ensure sufficient randomness and diversity of generated samples.

[0201] D(G(z n () represents the discriminator's score for the data samples generated by the generator, calculated through the forward propagation process of the discriminator network, and can be expressed as:

[0202] D(G(z n ))=Sig(W d ·G(z n )+b d )

[0203] Among them, W d and b d These are the weights and biases of the discriminator network, respectively. Sig() is the Sig activation function, which limits the output to between 0 and 1, representing the probability of fake data and real data.

[0204] S1024. The discriminator also operates within the participation-constrained framework, its task being to distinguish between generated and real data samples. The discriminator's accuracy in identifying genuine and fake samples is improved through iterative optimization. Specifically, the discriminator D is trained by minimizing the following loss function:

[0205]

[0206] Where, x n It is the nth real data sample.

[0207] D(x n () represents the score of the discriminator on the real data sample, calculated in the same way as D(G(z)). n Similar to )), but with real data as input instead of generated data, it can be represented as:

[0208] D(x n ) = Sig(W d ·x n +b d )

[0209] S1025. Repeat steps S1023 and S1024 to continuously optimize the generator and discriminator through adversarial training until the model reaches a stable state. In each iteration, the participation constraint mechanism is dynamically adjusted based on the model's performance to balance exploration and exploitation and prevent premature convergence. Specifically, the participation constraint mechanism is implemented by adjusting the update frequency of certain network layers in the generator and discriminator. If Ω is defined... G and Ω D Let be the sets of layers restricted to updating in the generator and discriminator, respectively. Then the update rule can be expressed as:

[0210]

[0211]

[0212] Where, ω g and ω d These are the parameters in the generator and discriminator, respectively, and η is the learning rate. In one embodiment, the learning rate η of the generator and discriminator is set to 0.001.

[0213] In each iteration, the generator and discriminator are updated according to the training process described above, by dynamically adjusting the participation constraint set Ω. G and Ω D The algorithm can find a balance between exploration and exploitation, avoiding premature convergence. The strategy for updating the participation constraint set can be based on feedback from performance metrics, such as the diversity and authenticity of the generated data. Specifically, Ω G and Ω DDynamic updates are based on the Kullback-Leibler (KL) divergence between generated and real data to dynamically adjust the update frequency. The calculation method for the update increment can be expressed as:

[0214] ΔΩ=KL(P data ∥P model )

[0215] Among them, P data It is the actual data distribution, P model The model generates the data distribution, and ΔΩ is the update increment of the participation constraint set adjusted according to the KL divergence. In one embodiment, the layer Ω is the constrained update layer. G and Ω D Update every 5 training cycles to balance exploration and exploitation.

[0216] S1026. After training, the optimized generator is used to generate new well logging data samples for data augmentation. These generated data are highly consistent with the real data in terms of feature distribution, but introduce new variations, enhancing the model's generalization ability.

[0217] S103, Data Feature Extraction Model Training

[0218] The expanded data is input into the feature extraction model for training. This disclosure employs a convolutional neural network based on an attention mechanism for feature extraction, aiming to extract key features from well logging data of shale gas reservoirs to more accurately predict gas saturation. The attention-based convolutional neural network combines the powerful feature extraction capabilities of traditional convolutional neural networks with the efficient information focusing characteristics of the attention mechanism. Each convolutional layer is followed by an attention module, which dynamically adjusts the network's focus area based on contextual information, thereby highlighting important features and suppressing irrelevant information.

[0219] Specifically, the training process for an attention-based convolutional neural network is as follows:

[0220] S1031 standardizes the logging data to ensure it's on the same scale, thus improving the stability of model training. Specifically, for each logging parameter c... i Its standardized processing method can be expressed as:

[0221]

[0222] Among them, c' i These are the standardized parameter values. and These are the logging parameters c. i The mean and standard deviation.

[0223] S1032. The preprocessed data is input into a convolutional neural network based on an attention mechanism. The data first undergoes preliminary feature extraction through multiple convolutional layers, with an attention module following each convolutional layer to enhance the model's focus on key features. Specifically, in the attention-based convolutional neural network, the output O of each convolutional layer l... l It can be represented as:

[0224] O l =Re(W l *O l-1 +b l )

[0225] Among them, W l and b l These represent the kernel weights and biases of the l-th layer, respectively. * indicates the convolution operation, and Re() is the ReLU activation function. l-1 It is the output of the previous layer.

[0226] In one embodiment, the attention-based convolutional neural network comprises three convolutional layers, each followed by an attention module to enhance feature extraction capabilities. The kernel size of each convolutional layer is set to 3x3.

[0227] In one embodiment, for the weights W in convolutional layer l l Its initialization uses the He initialization method, and the calculation formula is:

[0228]

[0229] Where, n l It is the number of input units in layer l. This represents a normal distribution with a mean of 0 and a standard deviation of 1.

[0230] For each attention module m, its output A m It can be represented as:

[0231] A m =σ(W a *O l +b a )⊙O l

[0232] Among them, W a and b a σ represents the weights and biases of the attention module, σ is the Sigmoid activation function used to generate attention weights, and ⊙ represents element-wise multiplication.

[0233] In one embodiment, in the attention module, the weight W aThe calculation can be achieved through an attention learning mechanism, and its calculation formula may involve a self-attention mechanism, such as:

[0234]

[0235] Where Q, K, and V are the query, key, and value matrices, respectively, and d k It represents the dimension of the key vector, and softmax is used to normalize the attention weights obtained from the calculation.

[0236] S1033. During feature extraction, dynamic sampling technology adjusts the sampling strategy based on the current model performance, prioritizing data samples that are more beneficial for model training. Specifically, the dynamic sampling weight D... sw The adjustment is based on the model's performance on the training set, and can be expressed as:

[0237] D sw =exp(-γ·Loss) train )

[0238] Where γ is a hyperparameter that controls the sensitivity of the sampling weights to the loss. train γ is the model's loss on the training set. In one embodiment, γ is set to 0.1.

[0239] S1034. The extracted features are integrated through a fusion layer to form a comprehensive feature representation, which will be used for subsequent gas saturation prediction. Specifically, the feature fusion layer integrates the outputs of all attention modules to generate the final feature representation F, which can be expressed as:

[0240] F = Concat(A1,A2,…,A) M W f +b f

[0241] Where Concat is the join operation, W f and b f represents the weights and biases of the feature fusion layer, and M is the number of attention modules.

[0242] The weights W of the feature fusion layer f Optimization is achieved through multi-task learning or other fusion strategies. In one embodiment, a weighted fusion strategy is employed, W. f The calculation formula is:

[0243]

[0244] Where, λ i It is the weight of the i-th feature. These are the fusion weights corresponding to the i-th feature, which are obtained through learning.

[0245] S1035. The parameters of an attention-based convolutional neural network are optimized using backpropagation and gradient descent. During training, the network parameters are iteratively updated until the model converges. Specifically, the model parameters are updated using gradient descent; for each parameter θ, the update formula is:

[0246]

[0247] Where ηa is the learning rate, and Loss is the model's total loss function, including classification loss and possible regularization terms. In one embodiment, the learning rate ηa is set to 0.001.

[0248] S104, Feature Dimensionality Reduction Model Training

[0249] The extracted features are input into a feature dimensionality reduction model for dimensionality reduction. This disclosure employs an improved autoencoder for dimensionality reduction. The autoencoder learns a compressed, lossy representation using training data. The autoencoder structure is designed with an encoder and a decoder. The encoder compresses the input data into a low-dimensional feature representation, while the decoder attempts to reconstruct the original data from this low-dimensional representation. In this way, the model can learn the inherent structure and patterns of the data. This disclosure improves the autoencoder algorithm by dynamically adjusting the learning rate using an ingress cosine annealing strategy. This allows the model to learn quickly in the early stages of training and finely adjust in the later stages, thereby improving the model's generalization ability while ensuring training efficiency. Furthermore, a greedy algorithm is used in the feature selection stage to select the most informative features from those learned by the autoencoder, further compressing the feature space while minimizing information loss.

[0250] Specifically, the training process for the improved autoencoder is as follows:

[0251] S1041, First, perform encoder weight W e and decoder weights W d For initialization, this disclosure uses Glorot initialization, which can be represented as:

[0252]

[0253]

[0254] Where U(-1,1) represents the value uniformly sampled from the interval [-1,1], and n in n is the number of nodes in the input layer. out It represents the number of nodes in the output layer.

[0255] The encoder is trained by compressing the input data into a low-dimensional feature representation through forward propagation. The encoder part adopts a multi-layer fully connected network structure, with each layer introducing non-linearity through an activation function. Specifically, the encoder part compresses the input data e' i The transformation to a low-dimensional feature representation z can be represented as follows:

[0256] z = Re(W e e' i +b e )

[0257] Among them, W e It is the encoder's weight matrix, b e It is a bias term, and Re() is the ReLU activation function.

[0258] S1042. Decoder training is performed. The decoder attempts to reconstruct the original data from the low-dimensional feature representation. Its structure is also a multi-layer fully connected network, with the output size of the last layer being the same as the input data. Specifically, the decoder reconstructs the input data from the low-dimensional feature representation z. The reconstruction process can be represented as follows:

[0259]

[0260] in, It is reconstructed data, W d It is the weight matrix of the decoder, b d It is a bias term, and Sig() is the Sigmoid activation function.

[0261] S1043. Calculate the loss function, using the reconstruction error as the loss function. In one embodiment, the mean squared error (MSE) is selected as the loss function, which can be expressed as:

[0262]

[0263] Where n is the number of samples.

[0264] S1044. Gradient descent is used to optimize the model parameters. Cosine annealing is used to adjust the learning rate η at this stage. As the training period t increases, the adjustment of the learning rate can be expressed as:

[0265]

[0266] Where η0 is the initial learning rate and T is the predetermined total number of training cycles. In one embodiment, the initial learning rate η0 is set to 0.001.

[0267] In this embodiment, the total number of training cycles is set to 1000.

[0268] S1045. Feature Selection: After training, a greedy algorithm is used to select the most representative features from the encoder output for subsequent gas saturation prediction. Specifically, among the features z output by the encoder, the greedy algorithm selects the most informative features for retention. Let the selected feature set be Z. selected The selection process can be simplified as follows:

[0269]

[0270] Where k is a pre-defined upper limit for the number of features, and Info(Z) represents the information content of feature set Z. In one embodiment, k is set to 50, and the information content measurement method Info(Z) uses mutual information method, which can be calculated as follows:

[0271]

[0272] Here, Y is the target variable (e.g., gas saturation), p(z,y) is the joint probability distribution of Z and Y, and p(z) and p(y) are the marginal probability distributions of Z and Y, respectively. By calculating the mutual information between the feature set Z and the target variable Y, the contribution of Z to the prediction of Y can be evaluated.

[0273] S105, Training the classifier

[0274] The dimensionality-reduced data is input into the classifier for classifier training. This disclosure proposes an extreme learning machine algorithm based on the alternating direction multiplier method. By combining the fast learning capability of the extreme learning machine with the optimization efficiency of the alternating direction multiplier method, the classification accuracy and computational efficiency are improved.

[0275] The structure of the extreme learning machine classifier based on the alternating direction multiplier method mainly includes the following parts:

[0276] 1. Input layer: Receives the dimensionality-reduced feature data.

[0277] 2. Hidden layer: Quickly processes input data and extracts features for classification.

[0278] 3. Output layer: Makes the final classification judgment based on the extracted features.

[0279] 4. Alternating Direction Multiplier Optimization Module: Optimizes the weights and biases of the hidden layer to improve classification accuracy.

[0280] The training process of the Extreme Learning Machine classifier algorithm based on the alternating direction multiplier method is as follows:

[0281] S1051, Data Input: Input the dimensionality-reduced feature data into the classifier, assuming... Let be the feature vector of the i-th sample after dimensionality reduction.

[0282] S1052. Initialize network parameters: Set the initial weights and biases of the hidden layers. The weight and bias initialization method can be expressed as follows:

[0283]

[0284]

[0285] Among them, W p It is the weight of the hidden layer, b p It is a bias.

[0286] S1053. Fast Feature Extraction: Features for classification are quickly extracted using hidden layers. The method of hidden layer feature extraction can be represented as follows:

[0287]

[0288] in, It is the feature representation of the i-th sample in the hidden layer.

[0289] S1054. Alternating Direction Multiplier Optimization Process: The alternating direction multiplier method is used to optimize the weights and biases of the hidden layer, improving classification accuracy. Specifically, the optimization method of alternating direction multipliers can be represented as follows:

[0290]

[0291] Where, p y It is the target classification label of the sample, and ADMMOptimize is an optimization function based on the alternating direction multiplier method.

[0292] In one embodiment, the optimization process is as follows:

[0293]

[0294]

[0295] Where L is the classification loss function, and These are the gradients of the loss function with respect to the weights and biases, respectively, and α is the learning rate. In one embodiment, the learning rate α is set to 0.01.

[0296] S1055, Adaptive Adjustment: Automatically adjusts network parameters based on classification results. The specific adjustment method can be expressed as follows:

[0297]

[0298] in, It is the actual category label, and AdaptiveAdjust is the adaptive adjustment function.

[0299] In one embodiment, the adaptive adjustment function adjusts its parameters based on the classification result, and the specific calculation method can be expressed as follows:

[0300]

[0301]

[0302] Among them, L adjust It is an adaptively adjusted loss function. and β is the gradient of the loss function with respect to the weights and biases, and β is the adjustment rate. In one embodiment, the adjustment rate β is set to 0.1.

[0303] S1056. Iterative optimization: Repeat the above steps until the predetermined number of iterations is reached. In one embodiment, the number of iterations is 100.

[0304] S1057, Classifier Output: The final classification decision can be expressed as:

[0305]

[0306] in, Based on hidden layer features Classification prediction.

[0307] S106, Prediction of Gas Saturation in Shale Gas Reservoirs

[0308] The trained model is applied to predict the gas saturation of newly drilled shale gas wells. For the sample to be predicted, after feature processing using the trained feature extraction and feature dimensionality reduction model, the sample is input into a classifier for classification. In one embodiment, the categories to be classified include:

[0309] Category 1: High gas saturation;

[0310] Category 2: Medium gas saturation;

[0311] Category 3: Low gas saturation.

[0312] like Figure 2 As shown, a shale gas reservoir gas saturation prediction device includes: a data acquisition unit 201, a data expansion unit 202, a feature extraction unit 203, a feature dimensionality reduction unit 204, a classifier training unit 205, and a prediction unit 206.

[0313] The data acquisition unit 201 is used to acquire well logging curve data and measure the gas saturation of rock samples to obtain a training dataset.

[0314] The data augmentation unit 202 is used to augment the training dataset using a quantum-encoded generative adversarial network to obtain an augmented dataset.

[0315] The feature extraction unit 203 is used to extract features from the augmented dataset using a convolutional neural network based on an attention mechanism to obtain feature vectors.

[0316] The feature reduction unit 204 is used to reduce the dimension of the feature vector through an autoencoder to obtain a dimension-reduced feature vector;

[0317] The classifier training unit 205 is used to train the classifier using dimensionality-reduced feature vectors to obtain the final classifier;

[0318] Prediction unit 206 is used to predict the gas saturation of newly drilled shale gas wells through a final classifier.

[0319] like Figure 3 As shown, this disclosure provides an electronic device, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304;

[0320] Memory 303 stores computer programs;

[0321] The processor 301 implements the above method when executing a computer program stored in the memory 303.

[0322] This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0323] The computer-readable storage medium may be included in the device / apparatus described in the above embodiments; or it may exist independently and not assembled into the device / apparatus. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0324] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0325] This disclosure employs an innovative quantum-encoded generative adversarial network to augment training samples, leveraging the superposition and entanglement properties of quantum states to achieve efficient and innovative data representation, thereby generating new data samples, enhancing the model's generalization ability and improving prediction accuracy.

[0326] In the feature extraction stage, this disclosure employs a convolutional neural network that integrates an attention mechanism. By adding an attention module after each convolutional layer, it can dynamically focus on key features, thereby improving the ability to extract useful information from complex well logging data.

[0327] In the dimensionality reduction stage, this disclosure employs an improved autoencoder model that dynamically adjusts the learning rate through a cosine annealing strategy and combines a greedy algorithm for feature selection, thereby reducing feature dimensionality while retaining the most important information.

[0328] In the classifier training phase, this disclosure proposes a novel algorithm that combines Extreme Learning Machine (ELM) and Alternating Direction Multiplier (ADM). This algorithm not only utilizes the rapid learning capability of ELM, but also optimizes the model's weights and biases through ADM, thereby improving classification accuracy and computational efficiency.

[0329] Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A method for predicting gas saturation in shale gas reservoirs, characterized in that, The method includes: Well logging curve data were collected, and the gas saturation of rock samples was measured to obtain a training dataset; A quantum-encoded generative adversarial network (GAN) is used to augment the training dataset, resulting in an augmented dataset. The training process of the quantum-encoded GAN is as follows: Initialize qubits to represent the features of the input well logging data, with each qubit corresponding to a well logging parameter; initialize the network parameters of the generator and discriminator; convert the well logging data into qubits through a quantum encoding process; under a participation-limited mechanism, the generator receives random noise and quantum-encoded real data samples, and generates new data samples through quantum operations; the discriminator distinguishes between the generated data samples and the real data samples; optimize the generator and discriminator through iterative adversarial training until the model reaches a stable state; after training, use the optimized generator to generate new well logging data samples for data augmentation. The iterative adversarial training, conducted under a participation-limited mechanism, includes: and These are the sets of layers in the generator and discriminator that are restricted from updating, respectively, and the update rules are as follows: in, and These are the parameters in the generator and discriminator, respectively. The learning rate; In each iteration, the generator and discriminator are updated according to the training process, by dynamically adjusting the participation constraint set. and To avoid premature convergence; For generator Loss function, loss function For discriminator Loss function; in, For discriminator, For batch size, For the first One noise sample, For the first One real data sample; and The dynamic update frequency is dynamically adjusted based on the Kullback-Leibler divergence between the generated data and the real data. The calculation of the update increment is as follows: in, For the true data distribution, Generate data distribution for the model. The update increment of the participation constraint set adjusted according to KL divergence; For the augmented dataset, feature vectors are obtained by performing feature extraction using a convolutional neural network based on an attention mechanism; The dimensionality of the feature vector is reduced by using an autoencoder to obtain the dimensionality-reduced feature vector; The classifier is trained by reducing the dimensionality of the feature vectors to obtain the final classifier; The gas saturation of newly drilled shale gas wells is predicted using a final classifier.

2. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, Acquire well logging data, including: The physical and chemical properties of underground rock formations are obtained in real time during the drilling process using logging instruments. The collected data is in structured format and stored in tabular form, where each row represents the data of a measurement point and each column represents a specific physical or chemical property.

3. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, Well logging data was collected, and the gas saturation of rock samples was measured to obtain a training dataset, including: Gas saturation was measured by laboratory analysis of rock samples. The gas saturation measurement values ​​are matched with the corresponding well logging data by measuring the Euclidean distance between the depth and the measurement value to obtain the training dataset.

4. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, Converting well logging data into qubits through a quantum encoding process includes: When converting well logging data into a qubit representation, for each well logging parameter Define quantum state The encoding of a quantum state is represented by the following formula: in, For logging parameters The maximum possible value, For phase factor, Used to introduce additional encoding information; Phase factor The calculation method is as follows: The parameters are dynamically adjusted based on their characteristics. in, For logging parameters The range of values, ensuring cover arrive The entire range.

5. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, Generator Used to extract random noise Data is generated, and the training process minimizes the loss function. To achieve; The score given by the discriminator to the data samples generated by the generator is calculated through the forward propagation process of the discriminator network and is expressed as: in, and These are the weights and biases of the discriminator network, respectively. It is the Sig activation function, used to restrict the output to... arrive between.

6. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, Discriminator Training is achieved by minimizing the loss function. accomplish; The score given by the discriminator to the real data sample is calculated as follows: in, and These represent the weights and biases of the discriminator network, respectively. The Sig activation function is used to restrict the output to... arrive between.

7. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, The training process for a convolutional neural network based on the attention mechanism is as follows: The logging data is standardized for each logging parameter. The standardized processing method is calculated as follows: in, These are the standardized parameter values. and These are the logging parameters. The mean and standard deviation; The preprocessed data is input into an attention-based convolutional neural network. The data first undergoes preliminary feature extraction through multiple convolutional layers, with an attention module following each convolutional layer to enhance the model's focus on key features. In the attention-based convolutional neural network, each convolutional layer... Output The calculation is as follows: in, and The first The kernel weights and biases of the layers. This represents the convolution operation. It is the ReLU activation function. It is the output of the previous layer; Convolutional neural networks based on attention mechanisms consist of three convolutional layers, with each convolutional layer followed by an attention module to enhance feature extraction capabilities. For convolutional layers Weights in Its initialization uses the He initialization method, calculated as follows: in, For layer The number of input units, This represents a normal distribution with a mean of 0 and a standard deviation of 1. For each attention module Its output The calculation is as follows: in, and For the weights and biases of the attention module, The sigmoid activation function is used to generate attention weights. Indicates element-wise multiplication; In the attention module, weights The computation is achieved through an attention learning mechanism, which is as follows: in, , and These are the query, key, and value matrices, respectively. The dimension of the key vector is denoted by , and softmax is used to normalize the calculated attention weights. During feature extraction, dynamic sampling is adopted. Dynamic sampling adjusts the sampling strategy according to the current model performance and prioritizes data samples that are more beneficial to model training. The extracted features are integrated through a fusion layer to obtain the final feature representation, which is used for subsequent gas saturation prediction. The parameters of the attention-based convolutional neural network are optimized using the backpropagation algorithm and gradient descent strategy; during training, the network parameters are iteratively updated until the model converges.

8. The method for predicting gas saturation in shale gas reservoirs according to claim 7, characterized in that, Weights of dynamic sampling The adjustment is based on the model's performance on the training set, calculated as follows: in, For hyperparameters, This indicates the sensitivity of the control sampling weights to the loss. This represents the model's loss on the training set.

9. The method for predicting gas saturation in shale gas reservoirs according to claim 7, characterized in that, The extracted features are integrated through a fusion layer to obtain the final feature representation, including: The feature fusion layer integrates the outputs of all attention modules to generate the final feature representation. The calculation is as follows: in, It's a connection operation. and These are the weights and biases of the feature fusion layer. It refers to the number of attention modules; Weights of the feature fusion layer Optimization can be achieved through multi-task learning or other fusion strategies, employing a weighted fusion strategy. The calculation is as follows: in, It is the first The weights of each feature, It corresponds to the first The fusion weights of each feature.

10. The method for predicting gas saturation in shale gas reservoirs according to claim 7, characterized in that, The parameter updates of attention-based convolutional neural networks follow the gradient descent method, for each parameter... The updated formula is calculated as follows: in, For learning rate, This is the model's total loss function, which includes classification loss and possible regularization terms.

11. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, The training process for the autoencoder is as follows: Encoder weights and decoder weights Initialization; Encoder training involves compressing the input data into a low-dimensional feature representation through forward propagation. The encoder part employs a multi-layer fully connected network structure, with each layer introducing non-linearity through an activation function. The encoder part processes the input data... Transform into low-dimensional feature representation The conversion process is as follows: in, Here is the weight matrix of the autoencoder. For bias terms, It is the ReLU activation function; The decoder reconstructs the original data from the low-dimensional feature representation. Its structure is also a multi-layer fully connected network, with the output size of the last layer being the same as the input data. The input data is reconstructed, and the reconstruction process is as follows: in, For the reconstructed data, Here is the weight matrix of the decoder. For bias terms, Use the Sigmoid activation function; Gradient descent was used to optimize the model parameters, and cosine annealing was used to adjust the learning rate. With the training cycle As increases, the learning rate is adjusted as follows: in, It is the initial learning rate. This is the total number of training cycles planned. After training, a greedy algorithm is used to select features from the encoder output for gas saturation prediction.

12. The method for predicting gas saturation in shale gas reservoirs according to claim 11, characterized in that, Encoder weights and decoder weights Initialization includes: Using Glorot initialization, the calculations are as follows: in, Indicates from The value is uniformly sampled within the interval. The number of nodes in the input layer. This represents the number of nodes in the output layer.

13. The method for predicting gas saturation in shale gas reservoirs according to claim 11, characterized in that, The autoencoder uses the mean squared error (MSE) as the loss function, calculated as follows: in, It refers to the number of samples.

14. The method for predicting gas saturation in shale gas reservoirs according to claim 11, characterized in that, Features for gas saturation prediction are selected from the encoder output using a greedy algorithm, including: Features in encoder output In this process, a greedy algorithm is used to select and retain the features with the most information content. Let the selected feature set be... The selection process can be simplified as follows: in, The upper limit of the number of features is set in advance. Representation of feature set Information content; methods for measuring information content The mutual information method is used, and the calculation method is expressed as follows: in, For the target variable, for and The joint probability distribution, and They are respectively and Marginal probability distribution; by calculating the feature set and target variable mutual information between them, assessment For prediction The extent of their contribution.

15. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, The classifier is an extreme learning machine classifier based on the alternating direction multiplier method; The training process for the extreme learning machine classifier based on the alternating direction multiplier method is as follows: Input the dimensionality-reduced feature vector into the classifier. For the dimensionality reduction of the first Each sample feature vector; Set the initial weights and biases of the hidden layer as follows: in, The weights of the hidden layer, For bias; Features for classification are quickly extracted using hidden layers. The hidden layer feature extraction is as follows: in, For the first Feature representation of each sample in the hidden layer; The alternating direction multiplier method is used to optimize the weights and biases of the hidden layer. The network parameters are automatically adjusted based on the classification results. The adjustment method is as follows: in, For real category tags, It is an adaptive adjustment function; The adaptive adjustment function adjusts its parameters based on the classification results, and its calculation method is as follows: in, For adaptively adjusted loss function, and Let the gradient of the loss function be the weights and biases. For adjustment rate; Repeat the iterations until the predetermined number of iterations is reached; The classifier output is represented as follows: in, For hidden layer features Classification prediction.

16. The method for predicting gas saturation in shale gas reservoirs according to claim 15, characterized in that, The alternating direction multiplier method is used to optimize the weights and biases of the hidden layer, including: The optimization method using alternating direction multipliers is represented as follows: in, The target classification label for the sample. This is an optimization function based on the alternating direction multiplier method; The optimization process is as follows: in, For the loss function of classification, and These are the gradients of the loss function with respect to the weights and biases, respectively. This is the learning rate.

17. The method for predicting gas saturation in shale gas reservoirs according to claim 1, characterized in that, The training dataset is labeled according to thresholds: high gas saturation means gas saturation is above 75%, medium gas saturation means gas saturation is between 50% and 75%, and low gas saturation means gas saturation is below 50%. The corresponding categories classified by the classifier include: High gas saturation, medium gas saturation, and low gas saturation.

18. A device for predicting the gas saturation of shale gas reservoirs, characterized in that, include: The system includes a data acquisition unit, a data augmentation unit, a feature extraction unit, a feature dimensionality reduction unit, a classifier training unit, and a prediction unit. The data acquisition unit is used to acquire well logging curve data and measure the gas saturation of rock samples to obtain a training dataset. The data augmentation unit is used to augment the training dataset using a quantum-encoded generative adversarial network (GAN) to obtain an augmented dataset. The training process of the quantum-encoded GAN is as follows: Initialize qubits to represent the features of the input well logging data, with each qubit corresponding to a well logging parameter; initialize the network parameters of the generator and discriminator; convert the well logging data into qubits through a quantum encoding process; under an engagement constraint mechanism, the generator receives random noise and quantum-encoded real data samples, and generates new data samples through quantum operations; the discriminator distinguishes between the generated data samples and the real data samples; optimize the generator and discriminator through iterative adversarial training until the model reaches a stable state; after training, use the optimized generator to generate new well logging data samples for data augmentation. The iterative adversarial training, conducted under a participation-limited mechanism, includes: and These are the sets of layers in the generator and discriminator that are restricted from updating, respectively, and the update rules are as follows: in, and These are the parameters in the generator and discriminator, respectively. The learning rate; In each iteration, the generator and discriminator are updated according to the training process, by dynamically adjusting the participation constraint set. and To avoid premature convergence; For generator Loss function, loss function For discriminator Loss function; in, For discriminator, For batch size, For the first One noise sample, For the first One real data sample; and Dynamic updates are based on the Kullback-Leibler divergence between generated data and real data, and the update frequency is dynamically adjusted. The calculation of the update increment is as follows: in, For the true data distribution, Generate data distribution for the model. The update increment of the participation constraint set adjusted according to KL divergence; The feature extraction unit is used to extract features from the augmented dataset using a convolutional neural network based on an attention mechanism to obtain feature vectors. The feature reduction unit is used to reduce the dimensionality of the feature vector through an autoencoder to obtain a dimensionality-reduced feature vector. The classifier training unit is used to train the classifier using dimensionality-reduced feature vectors to obtain the final classifier; The prediction unit is used to predict the gas saturation of newly drilled shale gas wells through the final classifier.

19. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, which stores computer programs; A processor, when executing a computer program stored in a memory, implements a method for predicting the gas saturation of a shale gas reservoir according to any one of claims 1-17.

20. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements a method for predicting the gas saturation of shale gas reservoirs according to any one of claims 1-17.

Citation Information

Patent Citations

  • Train running state detection data missing processing model and reconstruction method

    CN113569928A

  • Tight reservoir wettability identification method and system based on improved deep residual network

    CN117671319A