Method and device for constructing yield prediction model, equipment and medium

By using the production data of multiple gas wells to train a time-domain convolutional network model with an attention mechanism, combined with fast Fourier transform blocks and fully connected layers, the problem of missing data from a single gas well is solved and the production prediction of shale gas wells is improved. accuracy and robustness.

CN118536667APending Publication Date: 2024-08-23HEFEI UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410672621.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the production prediction of shale gas wells in the existing technology, when the actual production data of a single gas well is missing or incomplete, the accuracy of the production prediction model decreases, and accurate production prediction results cannot be obtained.

Method used

Production data from multiple gas wells are used for training, and a time-domain convolutional network model with an attention mechanism is constructed. It combines fast Fourier transform blocks and fully connected layers to learn nonlinear and periodic feature information to improve the accuracy of production prediction. sex.

Benefits of technology

It enhances the generalization ability and robustness of the production prediction model, can be applied to different gas wells and production conditions, improves the accuracy of production prediction, and can better deal with the problem of incomplete production data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536667A
    Figure CN118536667A
Patent Text Reader

Abstract

The invention discloses a yield prediction model construction method and device, equipment and a medium, and relates to the technical field of deep learning. The method comprises the following steps: acquiring production data and actual yield data of a plurality of gas wells; and taking the production data of the plurality of gas wells as the input of a neural network model, taking the actual yield data of the plurality of gas wells as the output label of the neural network model, and training the neural network model to obtain a yield prediction model. Therefore, due to the fact that the production data of the multiple gas wells are used for training, even if the production data of a single gas well is small, the neural network model can still conduct yield prediction by learning the production data of other gas wells, the robustness of the generated yield prediction model is enhanced, and the yield prediction accuracy is improved. The problem of incomplete production data in actual production can be better solved, the generalization ability of the yield prediction model is also improved, and the yield prediction model can be suitable for yield prediction under different gas wells and different production conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of deep learning technology, and in particular to a method, device, equipment and medium for constructing a yield prediction model. Background Art

[0002] Shale gas refers to unconventional natural gas that exists in organic-rich mudstone and its interlayers, and exists mainly in adsorbed or free states. Due to its huge potential in the energy field, shale gas is regarded as a potential option to fill the energy gap. Therefore, how to accurately predict the production of shale gas is crucial for planning production plans in advance.

[0003] At present, machine learning technology and neural network technology are increasingly being used in the field of shale gas production prediction. Machine learning technology has powerful data processing capabilities and can quickly and accurately learn the characteristic data of shale gas wells such as geology, drilling, fracturing, and production. Subsequently, by inputting the characteristic data and actual production data into the neural network model, the neural network model can fully learn the inherent laws of the characteristic data and actual production data, thereby building a high-precision production prediction model.

[0004] However, the above technology is limited to using the actual production data of a single shale gas well (i.e., a single well) to build a production prediction model. When the actual production data of a single well is missing or incomplete, the accuracy of the production prediction model will be seriously affected, resulting in the inability to obtain accurate production prediction results, thereby reducing the accuracy of production prediction. Summary of the invention

[0005] Based on the above problems, the present application provides a method, device, equipment and medium for constructing a yield prediction model, which can improve the accuracy of yield prediction.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In a first aspect, the present application discloses a yield prediction method, the method comprising:

[0008] Acquire production data and actual production data of multiple gas wells, wherein the production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data, and daily gas production data of the multiple gas wells;

[0009] The production data of the multiple gas wells are used as the input of the neural network model, and the actual production data of the multiple gas wells are used as the output labels of the neural network model. The neural network model is trained to obtain a production prediction model. The neural network model consists of a time domain convolutional network block with an attention mechanism, a fast Fourier transform block and a fully connected layer.

[0010] Optionally, the using the production data of the multiple gas wells as input of a neural network model, using the actual production data of the multiple gas wells as output labels of the neural network model, training the neural network model, and obtaining a production prediction model comprises:

[0011] Inputting the production data of the multiple gas wells into the time-domain convolutional network block with attention mechanism of the neural network model, so that the neural network model learns characteristic information of the nonlinear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells;

[0012] Inputting the production data of the plurality of gas wells into the fast Fourier transform block of the neural network model, so that the neural network model acquires characteristic information of periodic changes in the production data of the plurality of gas wells;

[0013] After combining the characteristic information of the nonlinear mapping relationship and the characteristic information of the periodic change, the information is input into the fully connected layer, so that the neural network model learns the characteristic information of the linear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells to obtain a production prediction model.

[0014] Optionally, the time domain convolutional network block consists of L layers of residual connection blocks and a one-dimensional convolutional layer, L is a positive integer, and the residual connection block is composed of an attention block, a causal and dilated convolutional layer, a batch normalization layer, an activation function layer, a one-dimensional spatial attenuation layer and a one-dimensional convolutional layer in sequence.

[0015] Optionally, the fast Fourier transform block is composed of a dense layer, a one-dimensional spectral convolution layer, a batch normalization layer and two dense layers in sequence, and the one-dimensional spectral convolution layer is composed of a fast Fourier transform block, a normal distribution randomly initialized weight block and an inverse real fast Fourier transform block in sequence.

[0016] Optionally, after performing the step of acquiring production data of a plurality of gas wells, the method further comprises:

[0017] If the production data of the plurality of gas wells include abnormal values, denoising the abnormal values ​​by using a third-order median filter;

[0018] The step of using the production data of the plurality of gas wells as input of the neural network model comprises:

[0019] The production data of multiple gas wells after denoising are used as the input of the neural network model.

[0020] Optionally, taking the production data of the plurality of gas wells as input of a neural network model comprises:

[0021] Using the production data of the plurality of gas wells of a first target ratio as an input of a neural network model, wherein the ratio value of the first target ratio is less than 1;

[0022] The method further comprises:

[0023] Inputting the production data of the plurality of gas wells of the second target ratio into the production prediction model to obtain predicted production data corresponding to the production data of the plurality of gas wells of the second target ratio, wherein the sum of the ratio value of the first target ratio and the ratio value of the second target ratio is less than or equal to 1;

[0024] When the accuracy of the production prediction model is obtained by calculating the predicted production data corresponding to the production data of the multiple gas wells at the second target ratio and the actual production data corresponding to the production data of the multiple gas wells at the second target ratio is less than or equal to a preset value, the production prediction model is updated.

[0025] In a second aspect, the present application discloses a yield prediction device, the device comprising: an acquisition module and a training module;

[0026] The acquisition module is used to acquire production data and actual production data of multiple gas wells, wherein the production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data and daily gas production data of the multiple gas wells;

[0027] The training module is used to use the production data of the multiple gas wells as the input of the neural network model, and the actual production data of the multiple gas wells as the output labels of the neural network model, train the neural network model, and obtain a production prediction model. The neural network model is composed of a time domain convolutional network block with an attention mechanism, a fast Fourier transform block and a fully connected layer.

[0028] Optionally, the training module is specifically used to: input the production data of the multiple gas wells into the time domain convolutional network block with attention mechanism of the neural network model, so that the neural network model learns the characteristic information of the nonlinear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells; input the production data of the multiple gas wells into the fast Fourier transform block of the neural network model, so that the neural network model obtains the characteristic information of the periodic changes of the production data of the multiple gas wells; after combining the characteristic information of the nonlinear mapping relationship and the characteristic information of the periodic changes, input them into the fully connected layer, so that the neural network model learns the characteristic information of the linear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells to obtain a production prediction model.

[0029] Optionally, the time domain convolutional network block consists of L layers of residual connection blocks and a one-dimensional convolutional layer, L is a positive integer, and the residual connection block is composed of an attention block, a causal and dilated convolutional layer, a batch normalization layer, an activation function layer, a one-dimensional spatial attenuation layer and a one-dimensional convolutional layer in sequence.

[0030] Optionally, the fast Fourier transform block is composed of a dense layer, a one-dimensional spectral convolution layer, a batch normalization layer and two dense layers in sequence, and the one-dimensional spectral convolution layer is composed of a fast Fourier transform block, a normal distribution randomly initialized weight block and an inverse real fast Fourier transform block in sequence.

[0031] Optionally, the yield prediction device further includes: an exception handling module;

[0032] The abnormality processing module is used for, if the production data of the plurality of gas wells include abnormal values, to perform denoising processing on the abnormal values ​​by using a third-order median filter;

[0033] The training module is used to use the production data of multiple gas wells after denoising as the input of the neural network model.

[0034] Optionally, the training module is specifically used to use the production data of multiple gas wells of a first target ratio as input of the neural network model, and the ratio value of the first target ratio is less than 1;

[0035] The device also includes: a prediction module and an update module;

[0036] The prediction module is used to input the production data of the plurality of gas wells of the second target ratio into the production prediction model to obtain predicted production data corresponding to the production data of the plurality of gas wells of the second target ratio, wherein the sum of the ratio value of the first target ratio and the ratio value of the second target ratio is less than or equal to 1;

[0037] The updating module is used to update the production prediction model when the accuracy of the production prediction model obtained based on the predicted production data corresponding to the production data of the multiple gas wells at the second target ratio and the actual production data corresponding to the production data of the multiple gas wells at the second target ratio is less than or equal to a preset value.

[0038] In a third aspect, the present application discloses an electronic device, characterized in that it includes: a memory and a processor;

[0039] The memory is used to store programs;

[0040] The processor is used to execute the program to implement the various steps of the method described in the first aspect.

[0041] In a fourth aspect, the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, each step of the method described in the first aspect is implemented.

[0042] Compared with the prior art, this application has the following beneficial effects:

[0043] The present application discloses a method, device, equipment and medium for constructing a production prediction model. Since the method uses the production data of multiple gas wells for training, it can improve the generalization ability of the production prediction model, making it applicable to production prediction under different gas wells and different production conditions. Moreover, even when the production data of a single gas well is small, the neural network model can still predict production by learning the production data of other gas wells, thereby enhancing the robustness of the generated production prediction model and enabling it to better cope with the problem of incomplete production data in actual production. Furthermore, by using a neural network model including a time-domain convolutional network block that introduces an attention mechanism for model training, the neural network model can automatically learn and focus on features that are more important for production prediction, thereby improving the accuracy of production prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 A flowchart of a method for constructing a yield prediction model provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of the composition structure of a TCN block provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a residual connection block with an attention mechanism provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the composition structure of an FFT block provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the composition structure of a SpectralConv1D layer provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of an application of a yield prediction model provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of a device for constructing a yield prediction model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] As described above, machine learning and neural network technologies are increasingly being used in the field of shale gas production prediction. Machine learning technology has powerful data processing capabilities and can quickly and accurately learn the characteristic data of shale gas wells such as geology, drilling, fracturing, and production. Subsequently, by inputting the characteristic data and actual production data into a deep neural network, the neural network model can fully learn the inherent laws of the characteristic data and actual production data, thereby building a high-precision production prediction model.

[0053] However, the above technology is limited to using the actual production data of a single shale gas well (i.e., a single well) to build a production prediction model. When the actual production data of a single well is missing or incomplete, the accuracy of the production prediction model will be seriously affected, resulting in the inability to obtain accurate production prediction results, thereby reducing the accuracy of production prediction.

[0054] After research, the inventors proposed a method, device, equipment and medium for constructing a production prediction model. The method includes: obtaining production data and actual production data of multiple gas wells; using the production data of multiple gas wells as the input of a neural network model, using the actual production data of multiple gas wells as the output label of the neural network model, training the neural network model, and obtaining a production prediction model. Since the method uses the production data of multiple gas wells for training, it can improve the generalization ability of the production prediction model, so that it can be applied to production prediction under different gas wells and different production conditions. Moreover, even when the production data of a single gas well is small, the neural network model can still predict production by learning the production data of other gas wells, thereby enhancing the robustness of the generated production prediction model and enabling it to better cope with the problem of incomplete production data in actual production. Furthermore, by using a neural network model including a time-domain convolutional network block that introduces an attention mechanism for model training, the neural network model can automatically learn and focus on features that are more important to production prediction, thereby improving the accuracy of production prediction.

[0055] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] See also Figure 1 , which is a flow chart of a method for constructing a yield prediction model provided in an embodiment of the present application. The method includes:

[0057] S101: Acquire production data of multiple shale gas wells and actual production data of multiple shale gas wells.

[0058] Production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data and daily gas production data. Among them, production date data refers to the specific date when the shale gas well starts production, which helps to analyze the impact of the length of production time on the actual production data. Daily production time data refers to the production time or production duration of the shale gas well every day, which can reflect the relationship between production efficiency and actual production data. Production stage data refers to the production stage of the shale gas well, such as the well opening stage and the well closing stage. The change characteristics of the actual production data in different stages are different. Wellhead pressure data refers to the pressure value at the shale gas wellhead. Daily gas production data refers to the daily production of the shale gas well.

[0059] It should be noted that the obtained production data may be incomplete or missing, which will have a negative impact on the accuracy of the subsequent production forecast model. Therefore, in order to improve the accuracy of the subsequent production forecast model, the production data can be preprocessed after obtaining it to fill in the missing values ​​(i.e., missing data) in the production data.

[0060] In some specific implementations, when a single piece of production data is missing, the before-after average method can be used to fill it. This method assumes that the production data around the missing data has a similar change trend, and estimates the missing value based on the average value of the production data before and after the missing data. This method of filling missing data is simple and effective, and is suitable for situations where there are few missing production data and the missing locations are relatively scattered.

[0061] In some other specific implementations, linear interpolation can be used to fill in the missing production data in a short period of time. The linear interpolation method assumes that the production data changes linearly within the missing interval, and estimates the missing data by the production data before and after the missing data. Exemplarily, the formula of the above linear interpolation method can be shown as the following formula (1):

[0062] x m =x f +(mf)·(x f -x l ) / (fl) (1)

[0063] Among them, x m 、x f and x lThey represent missing data, production data before the missing position, and production data after the missing position, respectively. m, f, and l represent the index labels of missing data, production data before the missing position, and production data after the missing position, respectively.

[0064] It should be noted that in actual applications, production data may be affected by a variety of factors, resulting in outliers at certain time points. These outliers may not only mask the true trend of the production data, but may also interfere with the subsequent training steps of the production forecast model and reduce the prediction accuracy of the production forecast model. Therefore, in order to improve the accuracy of the subsequent production forecast model construction, it is also necessary to perform data denoising and smoothing on the production data.

[0065] In some specific implementations, a third-order median filter or a Savitzky-Golay filter can be used for data denoising. The median filter is a nonlinear filter that eliminates isolated outliers by calculating the median of the production data in a sliding window to replace the value in the center of the window. Using a third-order median filter means that the window size of the filter is 3, which can smooth the production data to a certain extent while maintaining the local characteristics of the production data. After smoothing with the third-order median filter, the outliers in the production data will be effectively removed or reduced, making the production data as a whole more stable, which is conducive to the convergence of the training process of the subsequent production prediction model and improving the stability and prediction accuracy of the production prediction model.

[0066] S102: Divide the production data into a training set and a test set.

[0067] First, all shale gas wells are divided into training shale gas wells and test shale gas wells according to a certain ratio. The production data of the training shale gas wells is used to train the neural network model to obtain the production prediction model; and the production data of the test shale gas wells is used to evaluate the performance of the production prediction model. Exemplarily, the ratio can be 70% and 30%, etc., and this application does not limit this.

[0068] Subsequently, all the production data of the training shale gas wells are used as the training set, and all the production data of the testing shale gas wells are used as the testing set.

[0069] It should be noted that in the process of dividing production data into training sets and test sets, it is necessary to ensure the independence between the test set and the training set, that is, the production data of any test set should not appear in the training set, and vice versa, which helps to improve the generalization ability of the yield prediction model.

[0070] In addition, a series of preprocessing operations can be performed on the production data. For example, for daily production time data, a slicing operation (also called time slicing or time windowing) can be performed to select the time period that is most valuable for neural network model training and input it into the neural network model. For example, if production is most frequent in a specific time period (such as 8 am to 5 pm), the specific time period can be selected for slicing, and only the daily production time data of the specific time period can be input into the neural network model.

[0071] Exemplarily, the production phase data can be divided into a well opening phase and a well closing phase, and the two phases are respectively marked as 1 and 0. Subsequently, only the production phase data of the well opening phase is selected to be input into the neural network model.

[0072] For example, a threshold value can be set for daily gas production data to identify and process abnormally low values ​​that may be caused by equipment failure, measurement error or other reasons. For example, a threshold value is set to 15,000, and daily gas production data below the threshold value is set to 0 (or other reasonable values), thereby constructing a more accurate production prediction model.

[0073] S103: Using the production data of the training set as input, using the actual production data of the shale gas wells corresponding to the production data of the training set as output labels, training the neural network model, and obtaining a production prediction model.

[0074] In the production prediction method disclosed in the embodiment of the present application, the neural network model is mainly composed of a temporal convolutional network (TCN) block with an attention mechanism, a fast Fourier transform (FFT) block, and two fully connected layers. Through the above TCN block, FFT block and fully connected layer, the neural network model aims to achieve accurate prediction of shale gas production by integrating information in the time domain and frequency domain.

[0075] Specifically, after the production data of the training set is input into the neural network model, the TCN block in the neural network model can learn the nonlinear mapping relationship between the input training set production data and the output actual production data. The attention mechanism can help the neural network model focus on the key features related to the actual production data when processing production data, thereby improving the accuracy of production prediction.

[0076] The FFT block is responsible for converting the input training set production data from the time domain to the frequency domain. By converting the time domain signal into a frequency domain representation, the neural network model can capture the periodic change characteristics and frequency characteristics in the production data. In addition, by removing certain frequency features, the production data can be compressed or denoised.

[0077] After being processed by the TCN block and the FFT block, the neural network model obtains feature representations in two different dimensions: time domain and frequency domain. These features are superimposed on the feature dimension to form a richer feature vector. This superposition operation allows the model to utilize information in both the time domain and the frequency domain at the same time, improving the accuracy and stability of yield prediction.

[0078] The superimposed feature vectors are then fed into two fully connected layers for further processing. The fully connected layers can learn the linear relationship between production data and actual production data. By adjusting the weights and biases of the fully connected layers, the neural network model can gradually optimize the prediction results. In this way, a highly accurate production prediction model can be constructed.

[0079] It should be noted that in practical applications, in addition to using the TCN model, you can also use the FNN model, RNN model, LSTM model, etc., for which this application does not limit.

[0080] See also Figure 2 , which is a schematic diagram of the composition structure of a TCN block provided in an embodiment of the present application. The TCN block is composed of L layers of residual connection blocks (RC blocks) and a one-dimensional convolutional layer (Conv1D). Where L is a positive integer.

[0081] Among them, the RC block is used to make the neural network model learn the discrepancy between the input production data and the output actual production data. The production data and the actual production data pass through each RC block in turn. The convolution kernel (k) of the L-th layer RC block is 2, and the dilation factor (d) is 2L-1. The TCN block composed of L-layer RC blocks can achieve a receptive field size of 2L. At the same time, the production data and the actual production data also pass through the residual Conv1D and are added to the output of the RC block to obtain the output of the TCN block.

[0082] See also Figure 3 , which is a schematic diagram of the structure of a residual connection block with an attention mechanism provided in an embodiment of the present application. Each RC block is, from top to bottom, an attention block, a causal and dilated convolution layer, a batch normalization layer, an activation function (Relu) layer, a one-dimensional spatial attenuation (Spatial Dropout1D) layer, and a Conv1D for residual connection.

[0083] Among them, the attention block allows the neural network model to focus on production data that is critical to predicting actual production data, while ignoring unimportant production data. This is crucial to improving the prediction accuracy and efficiency of the production prediction model. It should be noted that in addition to introducing the attention mechanism, multi-head attention layers, position encoding, etc. can also be added to allow the model to assign different attention weights when processing different parts of the input sequence, thereby increasing the focus on important production data.

[0084] Causal convolution ensures that the neural network model does not "peek" into future production data when processing production data, which is a key requirement when processing production data in the form of time series. Dilated convolution expands the receptive field by increasing the interval between convolution kernels, allowing the neural network model to capture the dependency between longer-term production data and actual output data.

[0085] The batch normalization layer is used to normalize the input production data so that the production data falls into a more sensitive area after passing through the activation function layer, and the gradient becomes larger to promote back propagation and accelerate convergence.

[0086] The one-dimensional spatial attenuation layer is used as regularization. The one-dimensional spatial attenuation layer randomly disconnects certain features of the production data by setting weights, thereby improving the independence between the features of the production data and preventing overfitting, which helps to improve the generalization ability of the yield prediction model.

[0087] See also Figure 4 , which is a schematic diagram of the composition structure of an FFT block provided in an embodiment of the present application. The FFT block is divided into a dense layer, a one-dimensional spectral convolution layer, a batch normalization layer, and two dense layers.

[0088] See also Figure 5 , which is a schematic diagram of the composition structure of a Spectral Conv1D layer provided in an embodiment of the present application. The Spectral Conv1D layer is a neural network layer designed specifically for processing production data of a one-dimensional time series. This design combines the Fourier transform technology in signal processing with the trainable weights of deep learning, enabling the neural network model to learn and process production data more effectively in the frequency domain.

[0089] Specifically, first, the input production data and actual output data are subjected to fast Fourier transform (RFFT). RFFT is a variant of fast Fourier transform (FFT) that is specifically used to process real input signals. Since production data and actual output data are usually real numbers in practical applications, RFFT uses this feature to achieve more efficient calculations than standard FFT. RFFT converts the input production data and actual output data signals from the time domain to the frequency domain, so that different frequency components of the signal can be analyzed and processed separately.

[0090] Next, two weights are randomly initialized using a normal distribution, applying different weights to the low-frequency and high-frequency parts of the signal, respectively. These weights are randomly initialized using a normal distribution and are adjustable during the training process.

[0091] In this process, it is necessary to separate the real and imaginary parts of the weights, and combine the separated real and imaginary parts into complex weights. In this way, each frequency component can be applied with a unique complex weight, thereby achieving more refined control. Specifically, the low-frequency part of the frequency domain signal is selected, and the weight is multiplied by the custom complex multiplication bis, ios→bos, where b, i, s represent the input dimensions, i, o, s represent the dimensions of the complex weights, and b, o, s represent the output dimensions, so as to apply different complex weights to each frequency component, thereby achieving specific processing of the low-frequency part of the signal. Then the high-frequency part is processed similarly. The processed low-frequency and high-frequency parts are spliced ​​together along the last dimension to form a complete frequency domain signal.

[0092] Finally, the processed frequency domain signal is converted back to the time domain through the inverse real fast Fourier transform (IRFFT). IRFFT is the inverse process of RFFT, which converts the complex representation in the frequency domain back to a real signal in the time domain.

[0093] It should be noted that in practical applications, in addition to RFFT, wavelet transform can also be used to separate and process the high-frequency and low-frequency components of data, which is used to simultaneously analyze the time and frequency characteristics of the signal. It can better process signals with non-stationary characteristics by decomposing signals using wavelet functions of different scales.

[0094] S104: Verify the accuracy of the yield prediction model by using the actual yield data corresponding to the production data of the test set and the predicted yield data obtained by inputting the production data of the test set into the yield prediction model.

[0095] The test set is an independent dataset that does not participate in model training and is used to evaluate the performance of the yield prediction model on unseen data.

[0096] Specifically, first use the production data of the test set as the input of the yield prediction model, and make predictions through the yield prediction model to obtain predicted yield data. Subsequently, compare the predicted yield data with the actual yield data corresponding to the production data of the test set, and verify the accuracy of the yield prediction model by calculating the evaluation index. Exemplarily, commonly used evaluation indicators include mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE). These indicators can help us quantify the difference between the predicted yield data and the actual yield data corresponding to the production data of the test set.

[0097] S105: If the accuracy is higher than a preset threshold, the production prediction model is deployed for use in an actual environment.

[0098] By analyzing the evaluation results of the evaluation indicators, we can understand the performance of the yield prediction model on the test set. If the performance of the yield prediction model meets the requirements, for example, the accuracy is higher than the preset threshold, then the yield prediction model can be deployed in the actual environment. It should be noted that the preset threshold can be determined based on business requirements, industry standards and historical data.

[0099] It should be noted that even if the yield prediction model has been deployed in the actual environment, it is necessary to continuously monitor the accuracy of the yield prediction model. If it is found that the accuracy of the yield prediction model has decreased or the accuracy no longer meets the business needs, it is necessary to promptly analyze the reasons and optimize and update the yield prediction model, such as adjusting model parameters, updating training data, and improving model structure.

[0100] On the contrary, if the performance of the yield prediction model is poor, for example, the accuracy is lower than or equal to the preset threshold, then further analysis is needed. For example, possible reasons include inappropriate model structure, insufficient or poor quality training data, unreasonable parameter settings, etc. For these problems, you can try to improve the model performance by adjusting the model structure, optimizing parameters, adding data, etc.

[0101] S106: Input the production data to be predicted into the output prediction model to obtain predicted output data corresponding to the production data to be predicted.

[0102] See also Figure 6 , which is a schematic diagram of an application of a production prediction model provided in an embodiment of the present application. In the actual prediction stage, by inputting the production data to be predicted of the new well into the production prediction model, the predicted production data of the new well can be output. Among them, the production data to be predicted of the new well includes one or more of the production date data, daily production time data, production stage data, wellhead pressure data and daily gas production data of the new well.

[0103] In summary, the present application discloses a method for constructing a production prediction model. Since the method uses the production data of multiple gas wells for training, it can improve the generalization ability of the production prediction model, so that it can be applied to production prediction under different gas wells and different production conditions. Moreover, even when the production data of a single gas well is small, the neural network model can still predict production by learning the production data of other gas wells, thereby enhancing the robustness of the generated production prediction model and enabling it to better cope with the problem of incomplete production data in actual production. Furthermore, by using a neural network model including a time-domain convolutional network block that introduces an attention mechanism for model training, the neural network model can automatically learn and focus on features that are more important for production prediction, thereby improving the accuracy of production prediction.

[0104] See also Figure 7 , which is a device for constructing a yield prediction model provided in an embodiment of the present application. The device for constructing a yield prediction model 70 includes: an acquisition module 701 and a training module 702;

[0105] An acquisition module 701 is used to acquire production data and actual production data of multiple gas wells, where the production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data, and daily gas production data of multiple gas wells;

[0106] The training module 702 is used to use the production data of multiple gas wells as the input of the neural network model, and the actual production data of multiple gas wells as the output label of the neural network model, train the neural network model, and obtain the production prediction model. The neural network model is composed of a time domain convolutional network block with an attention mechanism, a fast Fourier transform block and a fully connected layer.

[0107] In some specific implementations, the training module 702 is specifically used to: input the production data of multiple gas wells into the time domain convolutional network block with an attention mechanism of the neural network model, so that the neural network model learns the characteristic information of the nonlinear mapping relationship between the production data of multiple gas wells and the actual production data of multiple gas wells; input the production data of multiple gas wells into the fast Fourier transform block of the neural network model, so that the neural network model obtains the characteristic information of the periodic changes of the production data of multiple gas wells; after combining the characteristic information of the nonlinear mapping relationship and the characteristic information of the periodic changes, input them into the fully connected layer, so that the neural network model learns the characteristic information of the linear mapping relationship between the production data of multiple gas wells and the actual production data of multiple gas wells to obtain a production prediction model.

[0108] In some specific implementations, the time domain convolutional network block consists of L layers of residual connection blocks and a one-dimensional convolutional layer, where L is a positive integer, and the residual connection block is composed of an attention block, a causal and dilated convolutional layer, a batch normalization layer, an activation function layer, a one-dimensional spatial attenuation layer, and a one-dimensional convolutional layer in sequence.

[0109] In some specific implementations, the fast Fourier transform block is composed of a dense layer, a one-dimensional spectral convolution layer, a batch normalization layer and two dense layers in sequence, and the one-dimensional spectral convolution layer is composed of a fast Fourier transform block, a normal distribution randomly initialized weight block and an inverse real fast Fourier transform block in sequence.

[0110] In some specific implementations, the device 70 for constructing the production prediction model further includes: an exception handling module;

[0111] An abnormality processing module is used to denoise the abnormal values ​​by using a third-order median filter if the production data of multiple gas wells include abnormal values;

[0112] The training module 702 is used to use the production data of multiple gas wells after denoising as the input of the neural network model.

[0113] In some specific implementations, the training module is specifically used to use the production data of multiple gas wells of a first target ratio as input of the neural network model, and the ratio value of the first target ratio is less than 1;

[0114] In some specific implementations, the device 70 for constructing the production prediction model further includes: a prediction module and an update module;

[0115] A prediction module, used for inputting the production data of the plurality of gas wells of the second target ratio into the production prediction model, obtaining predicted production data corresponding to the production data of the plurality of gas wells of the second target ratio, wherein the sum of the ratio value of the first target ratio and the ratio value of the second target ratio is less than or equal to 1;

[0116] An updating module is used to update the production prediction model when the accuracy of the production prediction model obtained based on the predicted production data corresponding to the production data of multiple gas wells with the second target ratio and the actual production data corresponding to the production data of multiple gas wells with the second target ratio is less than or equal to a preset value.

[0117] In summary, the present application discloses a device for constructing a production prediction model. Since the device uses the production data of multiple gas wells for training, it can improve the generalization ability of the production prediction model, so that it can be applied to production prediction under different gas wells and different production conditions. Moreover, even when the production data of a single gas well is small, the neural network model can still predict production by learning the production data of other gas wells, thereby enhancing the robustness of the generated production prediction model and enabling it to better cope with the problem of incomplete production data in actual production. Furthermore, by using a neural network model including a time-domain convolutional network block that introduces an attention mechanism for model training, the neural network model can automatically learn and focus on features that are more important for production prediction, thereby improving the accuracy of production prediction.

[0118] The embodiments of the present application also provide corresponding electronic devices and computer storage media for implementing the solutions provided by the embodiments of the present application.

[0119] Among them, the electronic device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute instructions or codes so that the device executes a method for constructing a yield prediction model in any embodiment of the present application.

[0120] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the method for constructing the yield prediction model described in any embodiment of the present application.

[0121] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.

[0122] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0123] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for constructing a yield prediction model, characterized in that: The method comprises: Acquire production data and actual production data of multiple gas wells, wherein the production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data, and daily gas production data of the multiple gas wells; The production data of the multiple gas wells are used as the input of the neural network model, and the actual production data of the multiple gas wells are used as the output labels of the neural network model. The neural network model is trained to obtain a production prediction model. The neural network model consists of a time domain convolutional network block with an attention mechanism, a fast Fourier transform block and a fully connected layer.

2. The method according to claim 1, characterized in that The method uses the production data of the multiple gas wells as input of the neural network model, uses the actual production data of the multiple gas wells as output labels of the neural network model, trains the neural network model, and obtains a production prediction model, including: Inputting the production data of the multiple gas wells into the time-domain convolutional network block with attention mechanism of the neural network model, so that the neural network model learns characteristic information of the nonlinear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells; Inputting the production data of the plurality of gas wells into the fast Fourier transform block of the neural network model, so that the neural network model acquires characteristic information of periodic changes in the production data of the plurality of gas wells; After combining the characteristic information of the nonlinear mapping relationship and the characteristic information of the periodic change, the information is input into the fully connected layer, so that the neural network model learns the characteristic information of the linear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells to obtain a production prediction model.

3. The method according to claim 1, characterized in that The time domain convolutional network block consists of L layers of residual connection blocks and a one-dimensional convolutional layer, where L is a positive integer, and the residual connection block is composed of an attention block, a causal and dilated convolutional layer, a batch normalization layer, an activation function layer, a one-dimensional spatial attenuation layer and a one-dimensional convolutional layer in sequence.

4. The method according to claim 1, characterized in that: The fast Fourier transform block is composed of a dense layer, a one-dimensional spectrum convolution layer, a batch normalization layer and two dense layers in sequence, and the one-dimensional spectrum convolution layer is composed of a fast Fourier transform block, a normal distribution random initialization weight block and an inverse real fast Fourier transform block in sequence.

5. The method according to claim 1, characterized in that After performing the step of acquiring production data of a plurality of gas wells, the method further comprises: If the production data of the plurality of gas wells include abnormal values, denoising the abnormal values ​​by using a third-order median filter; The step of using the production data of the plurality of gas wells as input of the neural network model comprises: The production data of multiple gas wells after denoising are used as the input of the neural network model.

6. The method according to claim 1, characterized in that The step of using the production data of the plurality of gas wells as input of the neural network model comprises: Using the production data of the plurality of gas wells of a first target ratio as an input of a neural network model, wherein the ratio value of the first target ratio is less than 1; The method further comprises: Inputting the production data of the plurality of gas wells of the second target ratio into the production prediction model to obtain predicted production data corresponding to the production data of the plurality of gas wells of the second target ratio, wherein the sum of the ratio value of the first target ratio and the ratio value of the second target ratio is less than or equal to 1; When the accuracy of the production prediction model is obtained by calculating the predicted production data corresponding to the production data of the multiple gas wells at the second target ratio and the actual production data corresponding to the production data of the multiple gas wells at the second target ratio is less than or equal to a preset value, the production prediction model is updated.

7. A device for constructing a yield prediction model, characterized in that: The device comprises: an acquisition module and a training module; The acquisition module is used to acquire production data and actual production data of multiple gas wells, wherein the production data includes one or more of production date data, daily production time data, production stage data, wellhead pressure data and daily gas production data of the multiple gas wells; The training module is used to use the production data of the multiple gas wells as the input of the neural network model, and the actual production data of the multiple gas wells as the output labels of the neural network model, train the neural network model, and obtain a production prediction model. The neural network model is composed of a time domain convolutional network block with an attention mechanism, a fast Fourier transform block and a fully connected layer.

8. The device according to claim 7, characterized in that The training module is specifically used to: input the production data of the multiple gas wells into the time domain convolutional network block with attention mechanism of the neural network model, so that the neural network model learns the characteristic information of the nonlinear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells; input the production data of the multiple gas wells into the fast Fourier transform block of the neural network model, so that the neural network model obtains the characteristic information of the periodic changes of the production data of the multiple gas wells; after combining the characteristic information of the nonlinear mapping relationship and the characteristic information of the periodic changes, input them into the fully connected layer, so that the neural network model learns the characteristic information of the linear mapping relationship between the production data of the multiple gas wells and the actual production data of the multiple gas wells to obtain a production prediction model.

9. An electronic device, characterized in that: include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the method according to any one of claims 1 to 6.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Yield prediction method and device for produced product, storage medium and program product

    CN121212427A

  • Production yield prediction method, apparatus, storage medium, and program product for a product

    CN121212427B