A coal bed gas production prediction method based on LSTM time series deep learning
By combining LSTM time-series deep learning with feature engineering of static and dynamic data, the problem of insufficient accuracy and feasibility in coalbed methane production prediction in existing technologies has been solved, and high-accuracy prediction of coalbed methane production for low-rank coal has been achieved.
Patent Information
- Application Number
- CN202510682610.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for coalbed methane production prediction suffer from poor prediction results for new wells, cumbersome model construction and complex calculations, and weak generalization ability, especially in the prediction of coalbed methane production of low-rank coal seams, where accuracy and feasibility are insufficient.
A time-series deep learning method based on LSTM is adopted, which combines static and dynamic production data of single coalbed methane wells. The method uses feature engineering and multi-layer neural network model to predict coalbed methane production, including a combination of convolutional layers, fully connected layers, fusion layers and LSTM networks. The prediction is made by fusing static geological factors and dynamic production factors.
It improves the accuracy of single-well production capacity prediction for coalbed methane by comprehensively considering static geological and dynamic production factors, thereby enhancing the accuracy and reliability of the prediction.
Smart Images

Figure CN123180409A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of coalbed methane well technology, specifically to a coalbed methane production prediction method based on LSTM time-series deep learning. Background Technology
[0002] Forecasting coalbed methane production is of great significance for assessing the economic benefits of development blocks, planning development strategies, and evaluating environmental impacts.
[0003] Existing technologies for predicting coalbed methane production include the decline curve method, numerical simulation method, and simple artificial neural network method. The traditional decline curve method relies heavily on historical data, resulting in poor production prediction performance for new wells. The numerical simulation method involves cumbersome model construction and high computational complexity. Traditional artificial intelligence methods rely on single time-series production data for prediction, exhibiting weak generalization ability. While these methods have shown some effectiveness in practical applications, they fall short in terms of prediction accuracy and feasibility. Therefore, developing a more accurate method for predicting low-rank coalbed methane production has become a crucial issue urgently needing resolution in this field. Summary of the Invention
[0004] To address the problems in the prior art, embodiments of the present invention provide a method and apparatus for predicting coalbed methane production based on LSTM time-series deep learning, which can at least partially solve the problems existing in the prior art.
[0005] In a first aspect, this invention proposes a coalbed methane production prediction method based on LSTM time-series deep learning, comprising:
[0006] Based on the static data and production dynamic data of a single coalbed methane well, the first and second prediction data of the single coalbed methane well are obtained.
[0007] Feature engineering is performed on the first predicted data of the coalbed methane single well to obtain the first characteristic data of the coalbed methane single well; and feature engineering is performed on the second predicted data of the coalbed methane single well to obtain the second characteristic data of the coalbed methane single well.
[0008] Based on the first and second feature data of the coalbed methane single well and the coalbed methane production prediction model, the production prediction result of the coalbed methane single well is obtained; wherein, the coalbed methane production prediction model is obtained by training based on sample data of coalbed methane wells and corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
[0009] Furthermore, the coalbed methane production prediction model includes convolutional layers, fully connected layers, fusion layers, and an LSTM network; correspondingly, obtaining the production prediction result of the coalbed methane single well based on the first and second feature data and the coalbed methane production prediction model includes:
[0010] The first feature data is input into the convolutional layer to obtain the first intermediate feature data; and the first intermediate feature data is input into the fully connected layer to obtain the second intermediate feature data.
[0011] The second intermediate feature data and the second feature data are input into the fusion layer to obtain the third intermediate feature data;
[0012] The third intermediate feature data is input into the LSTM network to obtain the production prediction result of the coalbed methane single well.
[0013] Further, the step of inputting the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data includes:
[0014] According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, W2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
[0015] Furthermore, the coalbed methane production prediction model trained based on sample data from coalbed methane wells and corresponding production labels includes:
[0016] Obtain sample data of coalbed methane wells. The sample data of coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production tag.
[0017] Feature engineering is performed on each set of sample data, including static production sample data and dynamic production sample data, to obtain the first training feature data and the second training feature data for each set of training feature data.
[0018] The coalbed methane production prediction model is trained based on the preset model, each set of training feature data, and the production labels corresponding to each set of training feature data; wherein the preset model and the coalbed methane production prediction model have the same model structure.
[0019] Furthermore, obtaining sample data from coalbed methane wells includes:
[0020] Acquire historical production data of coalbed methane wells, including historical static data and historical dynamic production data;
[0021] Static control factor analysis is performed on the historical static data to obtain the importance ranking results of each static parameter; dynamic control factor analysis is performed on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter.
[0022] Based on the importance ranking results of each static parameter, the data corresponding to the main control static parameters are selected to form the production static sample data; and based on the importance ranking results of each dynamic parameter, the data corresponding to the main control dynamic parameters are selected to form the production dynamic sample data.
[0023] Furthermore, the step of performing dynamic control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter included in the historical production dynamic data includes:
[0024] The historical production dynamic data is preprocessed to obtain production dynamic characteristic data;
[0025] A dynamic feature prediction model is trained based on the LSTM model, production dynamic feature data, and the output labels corresponding to the production dynamic feature data.
[0026] Based on the production dynamic feature data, predictive feature data corresponding to each dynamic parameter is obtained; wherein, the predictive feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data from the production dynamic feature data;
[0027] Based on the predicted feature data and dynamic feature prediction model corresponding to each dynamic parameter, the yield prediction result corresponding to each dynamic parameter is obtained;
[0028] Based on the output prediction results corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter, the relative error corresponding to each dynamic parameter is obtained.
[0029] Based on the relative error corresponding to each dynamic parameter, the importance ranking results of each dynamic parameter are obtained.
[0030] Secondly, the present invention provides a coalbed methane production prediction device based on LSTM time-series deep learning, comprising:
[0031] The acquisition module is used to obtain the first and second prediction data of the coalbed methane well based on the static data and production dynamic data of the coalbed methane well.
[0032] The feature engineering module is used to perform feature engineering on the first prediction data of the coalbed methane single well to obtain the first feature data of the coalbed methane single well; and to perform feature engineering on the second prediction data of the coalbed methane single well to obtain the second feature data of the coalbed methane single well.
[0033] The prediction module is used to obtain the production prediction result of the coalbed methane single well based on the first feature data and the second feature data of the coalbed methane single well and the coalbed methane production prediction model; wherein, the coalbed methane production prediction model is obtained by training based on the sample data of the coalbed methane well and the corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
[0034] Furthermore, the coalbed methane production prediction model includes convolutional layers, fully connected layers, fusion layers, and an LSTM network; correspondingly, the prediction module includes:
[0035] The first obtaining unit is configured to input the first feature data into the convolutional layer to obtain first intermediate feature data; and input the first intermediate feature data into the fully connected layer to obtain second intermediate feature data;
[0036] The second obtaining unit is used to input the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data;
[0037] The prediction unit is used to input the third intermediate feature data into the LSTM network to obtain the production prediction result of the coalbed methane single well.
[0038] Furthermore, the second obtaining unit is specifically used for:
[0039] According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, W2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
[0040] Furthermore, the coalbed methane production prediction device based on LSTM time-series deep learning provided in this embodiment of the invention further includes:
[0041] The sample acquisition module is used to acquire sample data of coalbed methane wells. The sample data of coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production tag.
[0042] The sample feature engineering module is used to perform feature engineering on each set of sample data, including static production sample data and dynamic production sample data, to obtain the first training feature data and the second training feature data for each set of training feature data.
[0043] The training module is used to train the coalbed methane production prediction model based on the preset model, each set of training feature data, and the production labels corresponding to each set of training feature data; wherein the preset model and the coalbed methane production prediction model have the same model structure.
[0044] Furthermore, the coalbed methane production prediction device based on LSTM time-series deep learning provided in this embodiment of the invention further includes:
[0045] The historical data acquisition module is used to acquire historical production data of coalbed methane wells, including historical static data and historical dynamic production data.
[0046] The main control factor analysis module is used to perform static main control factor analysis on the historical static data to obtain the importance ranking results of each static parameter; and to perform dynamic main control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter.
[0047] The sample selection module is used to select data corresponding to the main control static parameters to form production static sample data based on the importance ranking results of each static parameter; and to select data corresponding to the main control dynamic parameters to form production dynamic sample data based on the importance ranking results of each dynamic parameter.
[0048] Furthermore, the controlling factor analysis module includes:
[0049] The preprocessing unit is used to preprocess the historical production dynamic data to obtain production dynamic characteristic data;
[0050] The training unit is used to train a dynamic feature prediction model based on the LSTM model, production dynamic feature data, and the output labels corresponding to the production dynamic feature data.
[0051] The third obtaining unit is used to obtain the predicted feature data corresponding to each dynamic parameter based on the production dynamic feature data; wherein, the predicted feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data from the production dynamic feature data;
[0052] The prediction unit is used to obtain the yield prediction result corresponding to each dynamic parameter based on the prediction feature data and dynamic feature prediction model corresponding to each dynamic parameter.
[0053] The error acquisition unit is used to obtain the relative error corresponding to each dynamic parameter based on the output prediction result corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter.
[0054] The sorting unit is used to obtain the importance ranking results of each dynamic parameter based on the relative error corresponding to each dynamic parameter.
[0055] Thirdly, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the program to implement the coalbed methane production prediction method based on LSTM time-series deep learning as described in any of the above embodiments.
[0056] Fourthly, the present invention provides a computer-readable storage medium storing a computer program / instruction that, when executed by a processor, implements the coalbed methane production prediction method based on LSTM time-series deep learning described in any of the above embodiments.
[0057] Fifthly, the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the coalbed methane production prediction method based on LSTM time-series deep learning as described in any of the above embodiments.
[0058] The coalbed methane production prediction method based on LSTM temporal deep learning provided in this invention obtains first and second prediction data for a single coalbed methane well based on static and dynamic production data. Feature engineering is performed on the first prediction data to obtain first feature data for the single coalbed methane well. Feature engineering is also performed on the second prediction data to obtain second feature data for the single coalbed methane well. Based on the first and second feature data and the coalbed methane production prediction model, the production prediction result for the single coalbed methane well is obtained. The coalbed methane production prediction model is trained based on sample data of the coalbed methane well and corresponding production labels. The model includes a fusion layer, which integrates the first and second feature data to predict production capacity by combining static geological factors and dynamic production factors, thereby improving the accuracy of single coalbed methane well production capacity prediction. Attached Figure Description
[0059] To more clearly illustrate the technical solutions in the embodiments of the present invention 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 only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0060] Figure 1 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM temporal deep learning provided in the first embodiment of the present invention.
[0061] Figure 2 This is a schematic diagram of the structure of the coalbed methane production prediction model provided in the second embodiment of the present invention.
[0062] Figure 3 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM temporal deep learning provided in the third embodiment of the present invention.
[0063] Figure 4 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM temporal deep learning provided in the fourth embodiment of the present invention.
[0064] Figure 5 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM temporal deep learning provided in the fifth embodiment of the present invention.
[0065] Figure 6 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM temporal deep learning provided in the sixth embodiment of the present invention.
[0066] Figure 7 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the seventh embodiment of the present invention.
[0067] Figure 8 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the eighth embodiment of the present invention.
[0068] Figure 9 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the ninth embodiment of the present invention.
[0069] Figure 10 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the tenth embodiment of the present invention.
[0070] Figure 11 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the eleventh embodiment of the present invention.
[0071] Figure 12 This is a schematic diagram of the physical structure of a computer device provided in the twelfth embodiment of the present invention. Detailed Implementation
[0072] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with relevant laws and regulations. The user information in the embodiments of this application is obtained through legal and compliant means, and the acquisition, storage, use, and processing of user information have been authorized and agreed upon by the customer.
[0073] To facilitate understanding of the technical solution provided in this application, the relevant content of the technical solution in this application will be explained below.
[0074] Coalbed methane (CBM) refers to hydrocarbon gases, primarily composed of methane, that exist within coal seams. These gases are mainly adsorbed onto the surface of coal matrix particles, with some remaining free in coal pores or dissolved in coal seam water. It is a associated mineral resource of coal and belongs to unconventional natural gas. It is formed by the storage and migration of gases produced during coal formation and metamorphism within the coal seam.
[0075] Low-rank coal is an important type of coal classification. Low-rank coal usually refers to coal types with a lower degree of metamorphism, such as lignite and long-flame coal.
[0076] Low-rank coalbed methane refers to coalbed methane found in low-rank coal, which typically includes lignite, long-flame coal, etc., and has a relatively low degree of coalification.
[0077] This application analyzes the static and dynamic controlling factors affecting coalbed methane production and constructs a multimodal, multi-layer coalbed methane well production prediction model based on Convolutional Neural Network (CNN) and Long Short-Term Memory (LSTM). This model predicts coalbed methane well production, improving the accuracy of production prediction and providing a scientific and reasonable production prediction method for actual coalbed methane extraction.
[0078] Figure 1 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM time-series deep learning provided in the first embodiment of the present invention, as shown below. Figure 1As shown in the embodiment of the present invention, the coalbed methane production prediction method based on LSTM time-series deep learning includes:
[0079] S101. Based on the static data and production dynamic data of a single coalbed methane well, obtain the first and second prediction data of the single coalbed methane well.
[0080] Specifically, static and dynamic production data of a single coalbed methane well are acquired. Static data includes, but is not limited to, porosity, permeability, burial depth, and net coal thickness. Dynamic production data includes, but is not limited to, daily gas production, dynamic fluid level, bottom hole flowing pressure, tubing pressure, and casing pressure. Based on the static data of the single coalbed methane well, first predicted data can be obtained; based on the dynamic production data of the single coalbed methane well, second predicted data can be obtained. The second predicted data uses dynamic production data for a continuously preset number of days. The preset number of days is set according to actual needs, and this embodiment of the invention does not impose a limitation.
[0081] For example, parameter data that has a major impact on coalbed methane production is selected from the static data of a single coalbed methane well as the first prediction data. Parameter data that has a major impact on coalbed methane production is selected from the dynamic production data of a single coalbed methane well as the second prediction data.
[0082] S102. Perform feature engineering on the first prediction data of the coalbed methane single well to obtain the first feature data of the coalbed methane single well; and perform feature engineering on the second prediction data of the coalbed methane single well to obtain the second feature data of the coalbed methane single well.
[0083] Specifically, feature engineering is performed on the first predicted data of the coalbed methane single well to obtain the first characteristic data of the coalbed methane single well; feature engineering is performed on the second predicted data of the coalbed methane single well to obtain the second characteristic data of the coalbed methane single well. Feature engineering includes, but is not limited to, data cleaning, standardization, and normalization, and is selected according to actual needs; this embodiment of the invention does not impose any limitations.
[0084] S103. Based on the first and second feature data of the coalbed methane single well and the coalbed methane production prediction model, obtain the production prediction result of the coalbed methane single well; wherein, the coalbed methane production prediction model is obtained by training based on the sample data of the coalbed methane well and the corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
[0085] Specifically, the first and second feature data of the coalbed methane (CBM) well are input into the CBM production prediction model to output the production prediction result of the CBM well. The CBM production prediction model includes a fusion layer, which is used to fuse the first and second feature data. Integrating static geological factors with dynamic production factors in production capacity prediction helps improve the accuracy of the prediction. The CBM production prediction model is trained based on sample data of CBM wells and corresponding production labels.
[0086] The coalbed methane production prediction method based on LSTM temporal deep learning provided in this invention obtains first and second prediction data for a single coalbed methane well based on static and dynamic production data. Feature engineering is performed on the first prediction data to obtain first feature data for the single coalbed methane well. Feature engineering is also performed on the second prediction data to obtain second feature data for the single coalbed methane well. Based on the first and second feature data and the coalbed methane production prediction model, the production prediction result for the single coalbed methane well is obtained. The coalbed methane production prediction model is trained based on sample data of the coalbed methane well and corresponding production labels. The model includes a fusion layer, which integrates the first and second feature data to predict production capacity by combining static geological factors and dynamic production factors, thereby improving the accuracy of single coalbed methane well production capacity prediction.
[0087] Figure 2 This is a schematic diagram of the structure of the coalbed methane production prediction model provided in the second embodiment of the present invention, as shown below. Figure 2 As shown, the coalbed methane production prediction model includes a convolutional layer, a fully connected layer, a fusion layer, and an LSTM network. The convolutional layer is connected to the fully connected layer, the fully connected layer is connected to the fusion layer, and the fusion layer is connected to the LSTM network. The LSTM network may include an encoding layer and a decoding layer.
[0088] The first feature data is input into the convolutional layer, which is used to extract features from the first feature data. The feature data output from the convolutional layer is input into the fully connected layer, which is used to adjust the dimensions. The feature data output from the fully connected layer and the second feature data are input into the fusion layer, which is used to fuse the first feature data and the second feature data. The feature data output from the fusion layer is input into the LSTM network, which is used to process the input feature data and output the prediction result.
[0089] In predicting the production of low-rank coalbed methane (CBM), static reservoir geological data has a significant impact on the prediction of dynamic production data from multiple wells. Therefore, a method combining static and dynamic production data is adopted to predict CBM production. Convolutional neural networks (CNNs) excel at extracting features from static data, while LSTM neural networks are adept at processing dynamic time-series data. Therefore, combining the advantages of both, CNNs are used to extract features from static data, and LSTM neural networks are used in conjunction with corresponding dynamic production data to predict CBM production, thereby improving prediction accuracy.
[0090] Figure 3 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM time-series deep learning provided in the third embodiment of the present invention, as shown below. Figure 3 As shown, based on the above embodiments, further, obtaining the production prediction result of the coalbed methane single well based on the first characteristic data and second characteristic data of the coalbed methane single well and the coalbed methane production prediction model includes:
[0091] S301. Input the first feature data into the convolutional layer to obtain the first intermediate feature data; and input the first intermediate feature data into the fully connected layer to obtain the second intermediate feature data;
[0092] Specifically, the first feature data is input into the convolutional layer, and after convolution processing by the convolutional layer, first intermediate feature data can be output. Then, the first intermediate feature data is input into the fully connected layer, and after dimensionality adjustment by the fully connected layer, second intermediate feature data can be output.
[0093] S302. Input the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data;
[0094] Specifically, the second intermediate feature data and the second feature data are input into the fusion layer, the fusion layer performs weighted calculation on the second intermediate feature data and the second feature data, merges the second intermediate feature data and the second feature data, and outputs the third intermediate feature data.
[0095] S303. Input the third intermediate feature data into the LSTM network to obtain the production prediction result of the coalbed methane single well.
[0096] Specifically, the third intermediate feature data is input into the LSTM network, and after processing by the LSTM network, the production prediction result of the coalbed methane single well can be output.
[0097] Based on the above embodiments, further, the step of inputting the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data includes:
[0098] According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, w2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
[0099] Specifically, W1, W2, b, and σ are obtained through model training and are constants. Substituting the second intermediate feature data x1 and the second feature data x2 into the formula R = σ(W1x1 + W2x2 + b), we calculate R. Then, substituting the second intermediate feature data x1, the second feature data x2, and R into the formula x... r From the formula = Rx1 + (1-R)x2, the third intermediate feature data x can be calculated. r .
[0100] Figure 4 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM time-series deep learning provided in the fourth embodiment of the present invention, as shown below. Figure 4 As shown, based on the above embodiments, further, the coalbed methane production prediction model is trained using sample data from coalbed methane wells and corresponding production labels, including:
[0101] S401. Obtain sample data of coalbed methane wells. The sample data of coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production tag.
[0102] Specifically, historical static data and historical production dynamic data of coalbed methane wells are acquired, and sample data of coalbed methane wells are obtained from these data. The sample data includes multiple sets of sample data, each set comprising static production sample data and dynamic production sample data. The static production sample data originates from the historical static data of the coalbed methane wells, and the dynamic production sample data originates from the historical dynamic production data. The historical production of the coalbed methane well under each set of sample data is used as the production label corresponding to each set. The number of sets of sample data included in the sample data of the coalbed methane wells is set according to actual needs, and this embodiment of the invention does not impose a limitation.
[0103] S402. Perform feature engineering on each set of sample data, including static production sample data and dynamic production sample data, to obtain the first training feature data and the second training feature data for each set of training feature data.
[0104] Specifically, feature engineering is performed on the static production sample data included in each set of sample data to obtain the first training feature data included in each set of training feature data; feature engineering is performed on the dynamic production sample data included in each set of sample data to obtain the second training feature data included in each set of training feature data.
[0105] S403. Based on the preset model, each set of training feature data, and the production labels corresponding to each set of training feature data, the coalbed methane production prediction model is trained to obtain the coalbed methane production prediction model; wherein, the preset model and the coalbed methane production prediction model have the same model structure.
[0106] Specifically, the coalbed methane production prediction model can be obtained by training a preset model based on each set of training feature data and the corresponding production labels. The preset model has the same model structure as the coalbed methane production prediction model, but the model parameters differ. The initial model parameters of the preset model can be randomly generated or set based on practical experience. To accelerate the training process and make the model's performance more stable during training, a Teacher Forcing strategy can be used.
[0107] Figure 5 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM time-series deep learning provided in the fifth embodiment of the present invention, as shown below. Figure 5 As shown, based on the above embodiments, further obtaining sample data from coalbed methane wells includes:
[0108] S501. Obtain historical production data of coalbed methane wells, wherein the historical production data includes historical static data and historical dynamic production data;
[0109] Specifically, the historical production data of coalbed methane wells may include historical production data from multiple individual coalbed methane wells. This historical production data includes both historical static data and historical dynamic production data.
[0110] S502. Perform static control factor analysis on the historical static data to obtain the importance ranking results of each static parameter; perform dynamic control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter;
[0111] Specifically, a static controlling factor analysis is performed on the historical static data to analyze the impact of each static parameter on the production of coalbed methane wells. The static parameters are then ranked according to their importance, yielding a ranking of the importance of each static parameter included in the historical static data. These static parameters include, for example, porosity, permeability, burial depth, and net coal thickness.
[0112] Dynamic control factor analysis is performed on the historical production data to analyze the impact of various dynamic parameters on the production of coalbed methane wells. The dynamic parameters are then ranked according to their importance, yielding a ranking of their importance. These dynamic parameters include, for example, daily gas production, dynamic fluid level, bottom hole flowing pressure, tubing pressure, and casing pressure.
[0113] S503. Based on the importance ranking results of each static parameter, select the data corresponding to the main control static parameter to form the production static sample data; and based on the importance ranking results of each dynamic parameter, select the data corresponding to the main control dynamic parameter to form the production dynamic sample data.
[0114] Specifically, after obtaining the importance ranking results of each static parameter, the static parameters that have a significant impact on the production of coalbed methane wells can be selected as the main control static parameters based on the importance ranking results of each static parameter. The data corresponding to the main control static parameters can be obtained from the historical production data of coalbed methane wells as the production static sample data included in the sample data of coalbed methane wells.
[0115] After obtaining the importance ranking results of each dynamic parameter, dynamic parameters that have a significant impact on the production of coalbed methane wells can be selected as the main control dynamic parameters based on the importance ranking results of each dynamic parameter. The data corresponding to the main control dynamic parameters can be obtained from the historical production data of coalbed methane wells as the production dynamic sample data of coalbed methane wells.
[0116] For example, a random forest method can be used to perform principal control factor analysis on the historical static data to obtain the importance value of each static parameter's impact on coalbed methane well production. Then, the importance values of each static parameter are sorted from high to low to obtain the importance ranking result. Based on the ranking result, a bar chart is plotted with static parameters on the x-axis and importance values on the y-axis. Static parameters before the inflection point in the bar chart are considered principal control factors, significantly impacting coalbed methane well production, and can be used as principal control static parameters. The data corresponding to these principal control static parameters is then obtained as production static sample data. The inflection point occurs when the absolute value of the difference between the importance values of two adjacent static parameters exceeds a threshold. The threshold is set based on practical experience, and this embodiment of the invention does not impose any limitations.
[0117] This study employs a random forest regression algorithm to analyze the relationship between the average daily production of coalbed methane wells and various static geological and engineering parameters (i.e., static data). It quantifies the influence weight of each parameter on daily production and identifies the main static controlling factors affecting coalbed methane production through feature importance analysis. The specific implementation process is as follows:
[0118] (1) Data processing and preprocessing
[0119] Geological and engineering parameters of coalbed methane wells, along with their corresponding average daily gas production, are collected, and high-quality data is obtained from databases, well logging analysis, and well testing. The data is then cleaned, including handling missing and outlier values, and numerically encoded to ensure that data variables can be recognized by the model.
[0120] (2) Construction of the Random Forest Model
[0121] A Random Forest Regressor model is established, and hyperparameters such as the number of decision trees, the complexity of a single tree, the maximum depth, and feature randomness are set. During model construction and training, multiple decision trees are generated through random sampling with replacement using the Bootstrap method. During the splitting of each tree, some features are randomly selected for optimal splitting to reduce the risk of overfitting and improve prediction stability.
[0122] (3) Feature Importance Calculation Method
[0123] Each time a decision tree is built, a certain amount of static data is obtained through repeated sampling for decision tree training. At this point, approximately one-third of the data remains unused. This unused data can be used to evaluate the performance of the decision tree and to calculate the model's prediction error rate; this data is called out-of-bag (OOB) data. For each feature parameter in the dataset, the steps for calculating feature importance are as follows:
[0124] 1) For each decision tree, select the corresponding out-of-bag data to calculate the out-of-bag error value, denoted as eer1.
[0125] 2) Randomly add noise interference to this feature of all samples in the out-of-bag (OOB) data, and then calculate the error value of the out-of-bag data, denoted as err2.
[0126] 3) Assuming there are N decision trees in the random forest, the importance of this feature is ∑(err2-err1) / N.
[0127] Adding random noise significantly reduced the accuracy of out-of-bag data, indicating that this feature has a great influence on the prediction results of the training samples. It also shows that the feature is of high importance. Therefore, the calculated values of different features can indicate the importance of the feature.
[0128] (4) Results Analysis
[0129] Based on the calculation results, the importance of each static parameter is visualized and analyzed, such as drawing a bar chart of feature importance to determine the main static controlling factors affecting coalbed methane production.
[0130] Figure 6 This is a flowchart illustrating the coalbed methane production prediction method based on LSTM time-series deep learning provided in the sixth embodiment of the present invention, as shown below. Figure 6 As shown, based on the above embodiments, the further step of performing dynamic control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter includes:
[0131] S601. Preprocess the historical production dynamic data to obtain production dynamic characteristic data;
[0132] Specifically, the historical production dynamic data can be preprocessed to obtain production dynamic feature data for model training. The preprocessing includes, but is not limited to, data cleaning and smoothing, and is selected according to actual needs; this embodiment of the invention does not impose any limitations.
[0133] S602. Based on the LSTM model, production dynamic feature data, and the output labels corresponding to the production dynamic feature data, a dynamic feature prediction model is trained.
[0134] Specifically, based on dynamic production feature data and corresponding output labels, an LSTM model is trained to obtain a dynamic feature prediction model. This dynamic feature prediction model is used for output prediction.
[0135] S603. Based on the production dynamic feature data, obtain the predicted feature data corresponding to each dynamic parameter; wherein, the predicted feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data from the production dynamic feature data;
[0136] Specifically, the production dynamic feature data includes feature data corresponding to each dynamic parameter. For each dynamic parameter, the feature data corresponding to that dynamic parameter in the production dynamic feature data is removed from the production dynamic feature data to obtain the predicted feature data excluding that dynamic parameter.
[0137] S604. Based on the predicted feature data and dynamic feature prediction model corresponding to each dynamic parameter, obtain the yield prediction result corresponding to each dynamic parameter.
[0138] Specifically, for each dynamic parameter, the predicted feature data corresponding to the dynamic parameter is input into the dynamic feature prediction model to obtain the yield prediction result corresponding to the dynamic parameter.
[0139] S605. Based on the output prediction results corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter, obtain the relative error corresponding to each dynamic parameter.
[0140] Specifically, for each dynamic parameter, the relative error between the predicted output and the actual output corresponding to that dynamic parameter is calculated, and this relative error is taken as the relative error for that dynamic parameter. By iterating through each dynamic parameter and performing the above calculation, the relative error for each dynamic parameter can be obtained.
[0141] For example, the absolute value of the difference between the predicted output corresponding to the dynamic parameter and the actual output corresponding to the dynamic parameter is calculated as the relative error corresponding to the dynamic parameter.
[0142] S606. Based on the relative error corresponding to each dynamic parameter, obtain the importance ranking result of each dynamic parameter.
[0143] Specifically, by sorting the relative errors of each dynamic parameter in order of magnitude, we can obtain a ranking of the importance of each dynamic parameter. The larger the relative error, the greater the impact of the dynamic parameter on yield, and therefore the more important the dynamic parameter.
[0144] Figure 7 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the seventh embodiment of the present invention, as shown below. Figure 7 As shown, the coalbed methane production prediction device based on LSTM time-series deep learning provided in this embodiment of the invention includes an acquisition module 701, a feature engineering module 702, and a prediction module 703, wherein:
[0145] The acquisition module 701 is used to obtain first and second predicted data for a single coalbed methane well based on static and dynamic production data. The feature engineering module 702 is used to perform feature engineering on the first predicted data of the single coalbed methane well to obtain first feature data of the single coalbed methane well, and to perform feature engineering on the second predicted data of the single coalbed methane well to obtain second feature data of the single coalbed methane well. The prediction module 703 is used to obtain the production prediction result of the single coalbed methane well based on the first and second feature data and the coalbed methane production prediction model. The coalbed methane production prediction model is trained based on sample data of the coalbed methane well and corresponding production labels. The coalbed methane production prediction model includes a fusion layer, which is used to fuse the first and second feature data.
[0146] Specifically, module 701 acquires static and dynamic production data for a single coalbed methane well. Static data includes, but is not limited to, porosity, permeability, burial depth, and net coal thickness. Dynamic production data includes, but is not limited to, daily gas production, dynamic fluid level, bottom hole flowing pressure, tubing pressure, and casing pressure. Based on the static data of the single coalbed methane well, first predicted data for that well can be obtained; based on the dynamic production data, second predicted data for that well can be obtained. The second predicted data uses dynamic production data for a continuously preset number of days. The preset number of days is set according to actual needs, and this embodiment of the invention does not impose a limitation.
[0147] The feature engineering module 702 performs feature engineering on the first prediction data of the coalbed methane single well to obtain the first feature data of the coalbed methane single well; it also performs feature engineering on the second prediction data of the coalbed methane single well to obtain the second feature data of the coalbed methane single well. Feature engineering includes, but is not limited to, data cleaning, standardization, and normalization, and is selected according to actual needs; this embodiment of the invention does not impose any limitations.
[0148] The prediction module 703 inputs the first and second feature data of the coalbed methane well into the coalbed methane production prediction model, and can output the production prediction result of the coalbed methane well. The coalbed methane production prediction model includes a fusion layer, which is used to fuse the first and second feature data. Integrating static geological factors and dynamic production factors in production capacity prediction helps improve the accuracy of the prediction. The coalbed methane production prediction model is trained based on sample data of coalbed methane wells and corresponding production labels.
[0149] The coalbed methane production prediction device based on LSTM temporal deep learning provided in this invention obtains first and second prediction data for a single coalbed methane well based on static and dynamic production data. It then performs feature engineering on the first prediction data to obtain first feature data for the well, and performs feature engineering on the second prediction data to obtain second feature data. Finally, it obtains the production prediction result for the single coalbed methane well based on the first and second feature data and the coalbed methane production prediction model. The coalbed methane production prediction model is trained using sample data and corresponding production labels from the coalbed methane well. The model includes a fusion layer, which integrates the first and second feature data to predict production capacity by combining static geological factors with dynamic production factors, thereby improving the accuracy of production capacity prediction for single coalbed methane wells.
[0150] Figure 8 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the eighth embodiment of the present invention, as shown below. Figure 8 As shown, based on the above embodiments, the coalbed methane production prediction model further includes a convolutional layer, a fully connected layer, a fusion layer, and an LSTM network; correspondingly, the prediction module 703 includes a first acquisition unit 7031, a second acquisition unit 7032, and a prediction unit 7033, wherein:
[0151] The first obtaining unit 7031 is used to input the first feature data into the convolutional layer to obtain the first intermediate feature data; and input the first intermediate feature data into the fully connected layer to obtain the second intermediate feature data; the second obtaining unit 7032 is used to input the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data; the prediction unit 7033 is used to input the third intermediate feature data into the LSTM network to obtain the production prediction result of the coalbed methane single well.
[0152] Based on the above embodiments, the second obtaining unit 7032 is further specifically used for:
[0153] According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, W2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
[0154] Figure 9This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the ninth embodiment of the present invention, as shown below. Figure 9 As shown, based on the above embodiments, the coalbed methane production prediction device based on LSTM time-series deep learning provided in this embodiment of the invention further includes a sample acquisition module 704, a sample feature engineering module 705, and a training module 706, wherein:
[0155] The sample acquisition module 704 is used to acquire sample data from coalbed methane wells. The sample data from the coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production label. The sample feature engineering module 705 is used to perform feature engineering on the static production sample data and dynamic production sample data included in each set of sample data to obtain the first training feature data and the second training feature data included in each set of training feature data. The training module 706 is used to train the coalbed methane production prediction model according to the preset model, each set of training feature data and the production label corresponding to each set of training feature data. The preset model and the coalbed methane production prediction model have the same model structure.
[0156] Figure 10 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the tenth embodiment of the present invention, as shown below. Figure 10 As shown, based on the above embodiments, the coalbed methane production prediction device based on LSTM time-series deep learning provided in this embodiment of the invention further includes a historical data acquisition module 707, a main control factor analysis module 708, and a sample selection module 709, wherein:
[0157] The historical data acquisition module 707 is used to acquire historical production data of coalbed methane wells, including historical static data and historical dynamic production data; the main control factor analysis module 708 is used to perform static main control factor analysis on the historical static data to obtain the importance ranking results of each static parameter; and to perform dynamic main control factor analysis on the historical dynamic production data to obtain the importance ranking results of each dynamic parameter; the sample selection module 709 is used to select data corresponding to the main control static parameters to form static production sample data based on the importance ranking results of each static parameter; and to select data corresponding to the main control dynamic parameters to form dynamic production sample data based on the importance ranking results of each dynamic parameter.
[0158] Figure 11 This is a schematic diagram of the structure of the coalbed methane production prediction device based on LSTM time-series deep learning provided in the eleventh embodiment of the present invention, as shown below. Figure 11As shown, based on the above embodiments, the main control factor analysis module 708 further includes a preprocessing unit 7081, a training unit 7082, a third acquisition unit 7083, a prediction unit 7084, an error acquisition unit 7085, and a sorting unit 7086, wherein:
[0159] The preprocessing unit 7081 is used to preprocess the historical production dynamic data to obtain production dynamic feature data; the training unit 7082 is used to train a dynamic feature prediction model based on the LSTM model, the production dynamic feature data, and the output labels corresponding to the production dynamic feature data; the third obtaining unit 7083 is used to obtain the prediction feature data corresponding to each dynamic parameter based on the production dynamic feature data; wherein, the prediction feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data; the prediction unit 7084 is used to obtain the output prediction result corresponding to each dynamic parameter based on the prediction feature data corresponding to each dynamic parameter and the dynamic feature prediction model; the error obtaining unit 7085 is used to obtain the relative error corresponding to each dynamic parameter based on the output prediction result corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter; the ranking unit 7086 is used to obtain the importance ranking result of each dynamic parameter based on the relative error corresponding to each dynamic parameter.
[0160] The embodiment of the coalbed methane production prediction device based on LSTM time-series deep learning provided in this invention can be used to execute the processing flow of the above-described method embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the above-described method embodiments.
[0161] Figure 12 This is a schematic diagram of the physical structure of the computer device provided in the twelfth embodiment of the present invention, as shown below. Figure 12As shown, the computer device may include: a processor 1201, a communications interface 1202, a memory 1203, and a communication bus 1204, wherein the processor 1201, the communications interface 1202, and the memory 1203 communicate with each other through the communication bus 1204. The processor 1201 can call logical instructions in the memory 1203 to execute the methods provided in the above-described method embodiments, such as: obtaining first and second predicted data of a coalbed methane well based on static data and production dynamic data of the coalbed methane well; performing feature engineering on the first predicted data of the coalbed methane well to obtain first feature data of the coalbed methane well; performing feature engineering on the second predicted data of the coalbed methane well to obtain second feature data of the coalbed methane well; and obtaining a production prediction result of the coalbed methane well based on the first and second feature data of the coalbed methane well and a coalbed methane production prediction model; wherein, the coalbed methane production prediction model is obtained by training based on sample data of coalbed methane wells and corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
[0162] Furthermore, the logical instructions in the aforementioned memory 1203 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0163] This embodiment discloses a computer program product, which includes a computer program / instructions stored on a computer-readable storage medium. When the computer program / instructions are executed by a computer, the computer can perform the methods provided in the above-described method embodiments, including, for example: obtaining first and second prediction data for a single coalbed methane well based on static data and production dynamic data; performing feature engineering on the first prediction data of the single coalbed methane well to obtain first feature data of the single coalbed methane well; performing feature engineering on the second prediction data of the single coalbed methane well to obtain second feature data of the single coalbed methane well; and obtaining a production prediction result for the single coalbed methane well based on the first and second feature data and a coalbed methane production prediction model; wherein, the coalbed methane production prediction model is obtained by training based on sample data of coalbed methane wells and corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
[0164] This embodiment provides a computer-readable storage medium storing a computer program / instruction. When executed by a processor, the computer program / instruction causes the computer to perform the methods provided in the above-described method embodiments, including, for example: obtaining first and second predicted data for a single coalbed methane well based on static and dynamic production data; performing feature engineering on the first predicted data to obtain first feature data for the single coalbed methane well; performing feature engineering on the second predicted data to obtain second feature data for the single coalbed methane well; and obtaining a production prediction result for the single coalbed methane well based on the first and second feature data and a coalbed methane production prediction model; wherein the coalbed methane production prediction model is trained based on sample data of coalbed methane wells and corresponding production labels; the coalbed methane production prediction model includes a fusion layer for fusing the first and second feature data.
[0165] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0166] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0167] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0168] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0169] In the description of this specification, the references to terms such as "an embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0170] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for predicting coalbed methane production based on LSTM time-series deep learning, characterized in that, include: Based on the static data and production dynamic data of a single coalbed methane well, the first and second prediction data of the single coalbed methane well are obtained. Feature engineering is performed on the first predicted data of the coalbed methane single well to obtain the first characteristic data of the coalbed methane single well; and feature engineering is performed on the second predicted data of the coalbed methane single well to obtain the second characteristic data of the coalbed methane single well. Based on the first and second feature data of the coalbed methane single well and the coalbed methane production prediction model, the production prediction result of the coalbed methane single well is obtained; wherein, the coalbed methane production prediction model is obtained by training based on sample data of coalbed methane wells and corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
2. The method according to claim 1, characterized in that, The coalbed methane production prediction model includes convolutional layers, fully connected layers, fusion layers, and an LSTM network; correspondingly, obtaining the production prediction result of the coalbed methane single well based on the first and second feature data and the coalbed methane production prediction model includes: The first feature data is input into the convolutional layer to obtain the first intermediate feature data; and the first intermediate feature data is input into the fully connected layer to obtain the second intermediate feature data. The second intermediate feature data and the second feature data are input into the fusion layer to obtain the third intermediate feature data; The third intermediate feature data is input into the LSTM network to obtain the production prediction result of the coalbed methane single well.
3. The method according to claim 2, characterized in that, The step of inputting the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data includes: According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, W2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
4. The method according to claim 1, characterized in that, The coalbed methane production prediction model, trained based on sample data from coalbed methane wells and corresponding production labels, includes: Obtain sample data of coalbed methane wells. The sample data of coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production tag. Feature engineering is performed on each set of sample data, including static production sample data and dynamic production sample data, to obtain the first training feature data and the second training feature data for each set of training feature data. The coalbed methane production prediction model is trained based on the preset model, each set of training feature data, and the production labels corresponding to each set of training feature data; wherein the preset model and the coalbed methane production prediction model have the same model structure.
5. The method according to claim 4, characterized in that, The sample data obtained from coalbed methane wells includes: Acquire historical production data of coalbed methane wells, including historical static data and historical dynamic production data; Static control factor analysis is performed on the historical static data to obtain the importance ranking results of each static parameter; dynamic control factor analysis is performed on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter. Based on the importance ranking results of each static parameter, the data corresponding to the main control static parameters are selected to form the production static sample data; and based on the importance ranking results of each dynamic parameter, the data corresponding to the main control dynamic parameters are selected to form the production dynamic sample data.
6. The method according to claim 5, characterized in that, The step of performing dynamic control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter included in the historical production dynamic data includes: The historical production dynamic data is preprocessed to obtain production dynamic characteristic data; A dynamic feature prediction model is trained based on the LSTM model, production dynamic feature data, and the output labels corresponding to the production dynamic feature data. Based on the production dynamic feature data, predictive feature data corresponding to each dynamic parameter is obtained; wherein, the predictive feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data from the production dynamic feature data; Based on the predicted feature data and dynamic feature prediction model corresponding to each dynamic parameter, the yield prediction result corresponding to each dynamic parameter is obtained; Based on the output prediction results corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter, the relative error corresponding to each dynamic parameter is obtained. Based on the relative error corresponding to each dynamic parameter, the importance ranking results of each dynamic parameter are obtained.
7. A coalbed methane production prediction device based on LSTM time-series deep learning, characterized in that, include: The acquisition module is used to obtain the first and second prediction data of the coalbed methane well based on the static data and production dynamic data of the coalbed methane well. The feature engineering module is used to perform feature engineering on the first prediction data of the coalbed methane single well to obtain the first feature data of the coalbed methane single well; and to perform feature engineering on the second prediction data of the coalbed methane single well to obtain the second feature data of the coalbed methane single well. The prediction module is used to obtain the production prediction result of the coalbed methane single well based on the first feature data and the second feature data of the coalbed methane single well and the coalbed methane production prediction model; wherein, the coalbed methane production prediction model is obtained by training based on the sample data of the coalbed methane well and the corresponding production labels; the coalbed methane production prediction model includes a fusion layer, which is used to fuse the first feature data and the second feature data.
8. The apparatus according to claim 7, characterized in that, The coalbed methane production prediction model includes convolutional layers, fully connected layers, fusion layers, and an LSTM network; correspondingly, the prediction module includes: The first obtaining unit is configured to input the first feature data into the convolutional layer to obtain first intermediate feature data; and input the first intermediate feature data into the fully connected layer to obtain second intermediate feature data; The second obtaining unit is used to input the second intermediate feature data and the second feature data into the fusion layer to obtain the third intermediate feature data; The prediction unit is used to input the third intermediate feature data into the LSTM network to obtain the production prediction result of the coalbed methane single well.
9. The apparatus according to claim 8, characterized in that, The second obtaining unit is specifically used for: According to formula x r =Rx1+(1-R)x2, calculate to obtain the third intermediate feature data x r x1 represents the second intermediate feature data, x2 represents the second feature data, R = σ(W1x1 + W2x2 + b), W1 represents the weight corresponding to x1, W2 represents the weight corresponding to x2, b represents the bias, and σ represents the activation function.
10. The apparatus according to claim 7, characterized in that, Also includes: The sample acquisition module is used to acquire sample data of coalbed methane wells. The sample data of coalbed methane wells includes multiple sets of sample data. Each set of sample data includes static production sample data and dynamic production sample data. Each set of sample data corresponds to a production tag. The sample feature engineering module is used to perform feature engineering on each set of sample data, including static production sample data and dynamic production sample data, to obtain the first training feature data and the second training feature data for each set of training feature data. The training module is used to train the coalbed methane production prediction model based on the preset model, each set of training feature data, and the production labels corresponding to each set of training feature data; wherein the preset model and the coalbed methane production prediction model have the same model structure.
11. The apparatus according to claim 10, characterized in that, Also includes: The historical data acquisition module is used to acquire historical production data of coalbed methane wells, including historical static data and historical dynamic production data. The main control factor analysis module is used to perform static main control factor analysis on the historical static data to obtain the importance ranking results of each static parameter; and to perform dynamic main control factor analysis on the historical production dynamic data to obtain the importance ranking results of each dynamic parameter. The sample selection module is used to select data corresponding to the main control static parameters to form production static sample data based on the importance ranking results of each static parameter; and to select data corresponding to the main control dynamic parameters to form production dynamic sample data based on the importance ranking results of each dynamic parameter.
12. The apparatus according to claim 11, characterized in that, The controlling factor analysis module includes: The preprocessing unit is used to preprocess the historical production dynamic data to obtain production dynamic characteristic data; The training unit is used to train a dynamic feature prediction model based on the LSTM model, production dynamic feature data, and the output labels corresponding to the production dynamic feature data. The third obtaining unit is used to obtain the predicted feature data corresponding to each dynamic parameter based on the production dynamic feature data; wherein, the predicted feature data corresponding to the dynamic parameter is obtained by removing the feature data corresponding to the dynamic parameter in the production dynamic feature data from the production dynamic feature data; The prediction unit is used to obtain the yield prediction result corresponding to each dynamic parameter based on the prediction feature data and dynamic feature prediction model corresponding to each dynamic parameter. The error acquisition unit is used to obtain the relative error corresponding to each dynamic parameter based on the output prediction result corresponding to each dynamic parameter and the actual output corresponding to each dynamic parameter. The sorting unit is used to obtain the importance ranking results of each dynamic parameter based on the relative error corresponding to each dynamic parameter.
13. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program / instructions that, when executed by a processor, implement the method according to any one of claims 1 to 6.
15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.
