Gas well yield calculation method, device and equipment based on carbon isotope and medium
By cleaning and analyzing the carbon isotope data of shale gas wells, a production model is established, which solves the accuracy and efficiency problems of shale gas well production calculations in the existing technology, and achieves fast and accurate production analysis.
Patent Information
- Application Number
- CN202310295084.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
Existing shale gas well production calculation technology is based on the empirical decline method, which is greatly affected by production methods and time, resulting in diverse and large differences in calculation results, low accuracy, and low efficiency.
By obtaining historical gas well production data and experimental shale gas data, cleaning and extracting the carbon isotope difference data of methane and ethane, establishing a primary shale gas production model, performing data fitting, and obtaining a shale gas production analysis model for use Real-time analysis of gas well production.
It realizes the rapid and objective calculation of shale gas well production, improves the accuracy and efficiency of production analysis, and reduces the complexity of analysis.
Smart Images

Figure CN118690522A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shale gas exploration and development, and in particular to a method, device, equipment and medium for calculating gas well production based on carbon isotopes. Background Art
[0002] Shale gas refers to natural gas of biological origin, pyrolysis origin or a mixture of the two that is rich in organic matter, mature dark mud shale or high-carbon mud shale, which stores and preserves certain commercially valuable natural gas due to the adsorption of organic matter or the existence of cracks and matrix pores in the rock. The production of shale gas wells is the main parameter for the development and economic evaluation of shale gas reservoirs. The isotopic composition of shale gas can reflect the source of gas, the preservation conditions of shale gas reservoirs and the gas content of shale, and can reflect the stable production capacity of shale gas wells. Therefore, shale gas isotopes can be used to analyze the production of shale gas wells.
[0003] The existing shale gas well production calculation technology is based on the shale gas well production curve and is obtained through the empirical decline method. In practical applications, due to the influence of production methods, different production methods lead to large differences in production curves, large differences in the prediction of single well production, and large differences in the production time period. The shale gas production curves vary greatly, and the calculation models used may be completely different. The calculation results are diverse and vary greatly. Each model and calculation method requires a long production time, and the calculation model needs to be adjusted in real time according to the production curve, resulting in poor accuracy in shale gas well production calculation, which leads to low efficiency in shale gas well production calculation. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention provide a method, device, equipment and medium for calculating gas well production based on carbon isotopes.
[0005] In a first aspect, an embodiment of the present invention provides a method for calculating gas well production based on carbon isotopes, comprising:
[0006] Respectively obtaining historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, cleaning the experimental shale gas data into standard shale gas data, and cleaning the historical gas well production data into standard gas well production data;
[0007] Extracting a shale gas methane dataset and a shale gas ethane dataset from the standard shale gas data, and generating a methane and ethane carbon isotope difference dataset based on the shale gas methane dataset and the shale gas ethane dataset;
[0008] The standard gas well production data is split into single well production data sets according to the gas well model, and a primary shale gas production model is established according to the ethane and ethane carbon isotope difference data sets;
[0009] Performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model;
[0010] Isotope analysis is performed on the gas well to be tested to obtain real-time shale gas data, and the gas well production of the gas well to be tested is analyzed based on the real-time shale gas data and the shale gas production analysis model.
[0011] According to an embodiment of the present invention, the step of cleaning the experimental shale gas data into standard shale gas data includes:
[0012] Splitting the experimental shale gas data into multiple gas well experimental data according to gas well models;
[0013] Selecting the gas well experimental data one by one as target gas well experimental data, and replacing the noise data and offside data in the target gas well experimental data with a preset placeholder to obtain target initial experimental data;
[0014] Selecting experimental data from the target initial experimental data one by one as target experimental data, vectorizing the target experimental data into target data vectors according to data types, and collecting all target data vectors of the target initial experimental data into a target initial data vector set;
[0015] Performing vector clustering on the target initial data vector set to obtain multiple target experimental vector classes;
[0016] The placeholders in the target experimental data are replaced according to the target experimental vector class to obtain target standard experimental data, and all target standard experimental data are aggregated into standard shale gas data.
[0017] According to an embodiment of the present invention, vectorizing the target experimental data into a target data vector according to the data type includes:
[0018] The data type of the target experimental data is used as the target data type, and the character string corresponding to the target data type is used as the target type character string;
[0019] Vectorize the target experimental data into a primary experimental vector, and vectorize the target type character string into a primary type vector;
[0020] The primary type vector is used as a position vector and concatenated with the primary experimental vector to obtain a target data vector.
[0021] According to an embodiment of the present invention, generating a methane and ethane carbon isotope difference data set according to the shale gas methane data set and the shale gas ethane data set includes:
[0022] Selecting methane carbon isotope data in the shale gas methane data set one by one as target methane isotope data, and selecting ethane isotope data corresponding to the target methane isotope data in the shale gas ethane data set as target ethane isotope data;
[0023] The difference between the target methane isotope data and the target ethane isotope data is used as target isotope difference data, and all the target isotope difference data are compiled into a methane and ethane carbon isotope difference data set.
[0024] According to an embodiment of the present invention, the step of establishing a primary shale gas production model based on the carbon isotope difference data set of ethane and ethane includes:
[0025] Extracting carbon isotope difference data from the ethane and ethane carbon isotope difference data sets;
[0026] The following primary shale gas production model is established based on the carbon isotope difference data and the single well production data:
[0027] Q(x)=a(0.0979e -0.477x )+b
[0028] Among them, Q refers to the analytical production data in the primary shale gas production model, x refers to the carbon isotope difference data, Q(x) refers to the analytical production data in the primary shale gas production model when the carbon isotope difference data is x, a and b are model production coefficients in the primary shale gas production model, and e refers to the natural logarithm base.
[0029] According to an embodiment of the present invention, the data fitting of the primary shale gas production model according to the carbon isotope difference data set of methane and ethane and the single well production data set to obtain a shale gas production analysis model includes:
[0030] The fitting error of the primary shale gas production model is calculated according to the following fitting error formula, the carbon isotope difference data set of ethane and ethane and the single well production data set:
[0031]
[0032] Wherein, S refers to the fitting error, i refers to the i-th, m refers to the total number of data in the ethane and ethane carbon isotope difference data set, and the total number of data in the ethane and ethane carbon isotope difference data set is equal to the total number of data in the single well production data set, y i refers to the i-th single well production data in the single well production data set, Q refers to the analytical production data in the primary shale gas production model, Q(x i ) means that the carbon isotope difference data is xi The analytical production data in the primary shale gas production model, x i Refers to the i-th carbon isotope difference data in the a-ethane and ethane carbon isotope difference data set;
[0033] Determining whether the fitting error is greater than a preset error threshold;
[0034] If so, the model production coefficient in the primary shale gas production model is updated according to the fitting error, and the step of calculating the fitting error of the primary shale gas production model according to the preset fitting error formula, the ethane and ethane carbon isotope difference data set and the single well production data set is returned;
[0035] If not, the updated primary shale gas production model is used as the shale gas production analysis model.
[0036] In a second aspect, an embodiment of the present invention provides a gas well production calculation device based on carbon isotopes, characterized in that it includes:
[0037] A data cleaning module, used to respectively obtain historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, clean the experimental shale gas data into standard shale gas data, and clean the historical gas well production data into standard gas well production data;
[0038] A difference calculation module is used to extract a shale gas methane data set and a shale gas ethane data set from the standard shale gas data, and generate a methane and ethane carbon isotope difference data set according to the shale gas methane data set and the shale gas ethane data set;
[0039] A model building module, used to split the standard gas well production data into single well production data sets according to the gas well model, and to build a primary shale gas production model according to the ethane and ethane carbon isotope difference data sets;
[0040] A model training module, used for performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model;
[0041] The production analysis module is used to perform isotope analysis on the gas well to be tested to obtain real-time shale gas data, and analyze the gas well production of the gas well to be tested based on the real-time shale gas data and the shale gas production analysis model.
[0042] In a third aspect, an embodiment of the present invention provides an electronic device, comprising:
[0043] processor;
[0044] a memory for storing instructions executable by the processor;
[0045] Wherein, the processor is configured to execute the instructions to implement a method for calculating gas well production based on carbon isotopes as described in the first aspect.
[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for calculating gas well production based on carbon isotopes as described in the first aspect.
[0047] In a fifth aspect, an embodiment of the present invention provides a computer program, which, when executed by a processor, implements a method for calculating gas well production based on carbon isotopes as described in the first aspect.
[0048] Compared with the prior art, the above technical solution of the present invention has the following beneficial effects:
[0049] The embodiment of the present invention obtains the carbon isotope data of methane and ethane in a specific layer section and the single well production data of existing shale gas wells, establishes a relationship between the isotope difference of methane and ethane and the single well production, and obtains a calculation method for shale gas well production through comprehensive analysis, so that the shale gas well production can be calculated relatively quickly and objectively. Therefore, the gas well production calculation method, device and equipment based on carbon isotopes proposed by the present invention can solve the problem of low rationality of the full process analysis of structural analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 A flowchart showing a method for calculating gas well production based on carbon isotopes according to the first embodiment of the present invention is shown;
[0052] Figure 2 A functional module diagram of a gas well production calculation device based on carbon isotopes according to a second embodiment of the present invention is shown;
[0053] Figure 3 A schematic diagram of the composition structure of an electronic device for implementing the carbon isotope-based gas well production calculation method according to the third embodiment of the present invention is shown. DETAILED DESCRIPTION
[0054] The present disclosure is further described below in conjunction with the embodiments shown in the accompanying drawings.
[0055] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0056] The present invention proposes a shale gas well production calculation method based on geological exploration technology. The method is based on the carbon isotope determination method, obtains the carbon isotope data of methane and ethane in a specific layer, and the single well production data of existing shale gas wells, establishes a relationship between the isotope difference of methane and ethane and the single well production, and obtains a calculation model for the shale gas well production through comprehensive analysis. The method can calculate the shale gas well production relatively quickly and objectively, and has application value in the field of shale gas well exploration.
[0057] Embodiment 1
[0058] like Figure 1 As shown, the present invention proposes a method for calculating gas well production based on carbon isotopes, comprising the following steps:
[0059] S1. respectively obtain historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, clean the experimental shale gas data into standard shale gas data, and clean the historical gas well production data into standard gas well production data.
[0060] In the embodiment of the present invention, the historical gas well production data refers to data such as shale gas production in each shale gas well in the past time period, and the experimental shale gas data refers to carbon isotope data obtained after multiple carbon isotope experiments in each shale gas well.
[0061] In the embodiment of the present invention, the step of cleaning the experimental shale gas data into standard shale gas data includes:
[0062] Splitting the experimental shale gas data into multiple gas well experimental data according to gas well models;
[0063] Selecting the gas well experimental data one by one as target gas well experimental data, and replacing the noise data and offside data in the target gas well experimental data with a preset placeholder to obtain target initial experimental data;
[0064] Selecting experimental data from the target initial experimental data one by one as target experimental data, vectorizing the target experimental data into target data vectors according to data types, and collecting all target data vectors of the target initial experimental data into a target initial data vector set;
[0065] Performing vector clustering on the target initial data vector set to obtain multiple target experimental vector classes;
[0066] The placeholders in the target experimental data are replaced according to the target experimental vector class to obtain target standard experimental data, and all target standard experimental data are aggregated into standard shale gas data.
[0067] In detail, the gas well model refers to the model of a shale gas well, such as Jiaoye 1 well, Pengye 1 well, etc., and the gas well experimental data refers to the data obtained after experimental testing of shale gas in a shale gas well of a single gas well model.
[0068] Specifically, the preset placeholder is a pre-set replacement character, the noise data refers to garbled data or data without practical meaning in the data, the offside data refers to data in the data that exceeds the value range corresponding to the data, and the data type refers to the type of experimental item corresponding to the data, such as carbon isotope test data of methane and carbon isotope test data of ethane.
[0069] In the embodiment of the present invention, vectorizing the target experimental data into a target data vector according to the data type includes:
[0070] The data type of the target experimental data is used as the target data type, and the character string corresponding to the target data type is used as the target type character string;
[0071] Vectorize the target experimental data into a primary experimental vector, and vectorize the target type character string into a primary type vector;
[0072] The primary type vector is used as a position vector and concatenated with the primary experimental vector to obtain a target data vector.
[0073] In detail, the target type string is a standardized string used to characterize the data type of the target experimental data. For example, the target type string of the carbon isotope test data of methane is “δ 13 CH4".
[0074] Specifically, the target experimental data may be vectorized into a primary experimental vector or the target type character string may be vectorized into a primary type vector using a character encoding method such as one-hot encoding.
[0075] Specifically, the target initial data vector set is subjected to vector clustering to obtain a plurality of target experimental vector classes, including:
[0076] Splitting the target initial data vector set into a plurality of primary data vector groups, and randomly selecting a primary data center vector for each of the primary data vector groups;
[0077] Calculating the vector distance between each of the target data vectors in the target initial vector set and each of the primary data center vectors;
[0078] updating each primary data vector group into a secondary data vector group according to the proximity principle and the vector distance, and calculating a secondary data center vector corresponding to each secondary data vector group;
[0079] Calculate the center distance between each secondary data center vector and the corresponding primary data center vector, and take the sum of all the center distances as the standard center distance;
[0080] Each secondary data vector group is updated into a target experimental vector class according to the size relationship between the standard center distance and a preset distance threshold.
[0081] Specifically, the vector distance may refer to a cosine vector distance, and updating each primary data vector group into a secondary data vector group according to the proximity principle and the vector distance refers to regrouping the target initial data vector set according to the proximity principle of the vector distance to obtain a secondary data vector group.
[0082] In detail, updating each secondary data vector group into a target experimental vector class according to the size relationship between the standard center distance and a preset distance threshold means that when the standard center distance is greater than the distance threshold, each secondary data vector group is used as a primary data vector group and returns to the step of calculating the vector distance between each target data vector in the target initial vector set and each primary data center vector, until the standard center distance is less than or equal to the distance threshold, and the secondary data vector group at this time is used as the target experimental vector class.
[0083] In detail, replacing the placeholders in the target experimental data according to the target experimental vector class to obtain target standard experimental data means replacing the placeholders in the target experimental data with data corresponding to the word set data center vector of the target experimental vector class.
[0084] Specifically, the method of cleaning the historical gas well production data into standard gas well production data is consistent with the above-mentioned method of cleaning the experimental shale gas data into standard shale gas data, which will not be repeated here.
[0085] In an embodiment of the present invention, by cleaning the experimental shale gas data into standard shale gas data and cleaning the historical gas well production data into standard gas well production data, data noise can be removed, the accuracy of the data set can be improved, and the accuracy of the shale gas production analysis model obtained during subsequent fitting can be improved.
[0086] S2. Extracting a shale gas methane dataset and a shale gas ethane dataset from the standard shale gas data, and generating a methane and ethane carbon isotope difference dataset based on the shale gas methane dataset and the shale gas ethane dataset.
[0087] In the embodiment of the present invention, the shale gas methane data set refers to a data set composed of carbon isotope experimental data related to methane in shale gas measured in various shale gas wells, and the shale gas ethane data set refers to a data set composed of carbon isotope experimental data related to ethane in shale gas measured in various shale gas wells.
[0088] In detail, the methane and ethane carbon isotope difference data set is a data set composed of multiple carbon isotope difference data, and each of the carbon isotope difference is the difference between the carbon isotope data of shale gas methane and the carbon isotope data of shale gas ethane in the same experiment.
[0089] In the embodiment of the present invention, the step of generating a methane and ethane carbon isotope difference dataset based on the shale gas methane dataset and the shale gas ethane dataset includes:
[0090] Selecting methane carbon isotope data in the shale gas methane data set one by one as target methane isotope data, and selecting ethane isotope data corresponding to the target methane isotope data in the shale gas ethane data set as target ethane isotope data;
[0091] The difference between the target methane isotope data and the target ethane isotope data is used as target isotope difference data, and all the target isotope difference data are compiled into a methane and ethane carbon isotope difference data set.
[0092] In an embodiment of the present invention, a shale gas methane data set and a shale gas ethane data set are extracted from the standard shale gas data, and a methane and ethane carbon isotope difference data set is generated according to the shale gas methane data set and the shale gas ethane data set. The gas storage capacity of a shale gas well can be determined according to the carbon isotope difference of methane and ethane detected simultaneously in the same shale gas well, thereby facilitating the construction of a subsequent primary shale gas production model.
[0093] S3. Split the standard gas well production data into single well production data sets according to the gas well models, and establish a primary shale gas production model according to the ethane and ethane carbon isotope difference data sets.
[0094] In the embodiment of the present invention, the single-well production data set refers to a data set consisting of a plurality of single-well production data, and each of the single-well production data refers to the production of a shale gas well of a single gas well model.
[0095] In the embodiment of the present invention, the method of establishing a primary shale gas production model based on the carbon isotope difference data set of ethane and ethane includes:
[0096] Extracting carbon isotope difference data from the ethane and ethane carbon isotope difference data sets;
[0097] The following primary shale gas production model is established based on the carbon isotope difference data and the single well production data:
[0098] Q(x)=a(0.0979e -0.477x )+b
[0099] Among them, Q refers to the analytical production data in the primary shale gas production model, x refers to the carbon isotope difference data, Q(x) refers to the analytical production data in the primary shale gas production model when the carbon isotope difference data is x, a and b are model production coefficients in the primary shale gas production model, and e refers to the natural logarithm base.
[0100] In an embodiment of the present invention, by splitting the standard gas well production data into single well production data sets according to the gas well model, the subsequent training of the primary shale gas production model can be facilitated. By establishing a primary shale gas production model based on the ethane and ethane carbon isotope difference data sets, the shale gas source, shale gas content and existing shale gas well production are taken into account, which is more in line with geological reality. The production data of the shale gas well can be obtained according to the stage of shale gas well drilling and coring analysis, thereby improving reliable production data.
[0101] S4. Performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model.
[0102] In the embodiment of the present invention, the data fitting of the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain the shale gas production analysis model includes:
[0103] The fitting error of the primary shale gas production model is calculated according to the following fitting error formula, the carbon isotope difference data set of ethane and ethane and the single well production data set:
[0104]
[0105] Wherein, S refers to the fitting error, i refers to the i-th, m refers to the total number of data in the ethane and ethane carbon isotope difference data set, and the total number of data in the ethane and ethane carbon isotope difference data set is equal to the total number of data in the single well production data set, y i refers to the i-th single well production data in the single well production data set, Q refers to the analytical production data in the primary shale gas production model, Q(x i ) means that the carbon isotope difference data is x i The analytical production data in the primary shale gas production model, x iRefers to the i-th carbon isotope difference data in the a-ethane and ethane carbon isotope difference data set;
[0106] Determining whether the fitting error is greater than a preset error threshold;
[0107] If so, the model production coefficient in the primary shale gas production model is updated according to the fitting error, and the step of calculating the fitting error of the primary shale gas production model according to the preset fitting error formula, the ethane and ethane carbon isotope difference data set and the single well production data set is returned;
[0108] If not, the updated primary shale gas production model is used as the shale gas production analysis model.
[0109] In an embodiment of the present invention, by calculating the fitting error of the primary shale gas production model based on the fitting error formula, the methane and ethane carbon isotope difference data set and the single well production data set, the difference distance between each analytical production data and the single well production data during each fitting can be determined, thereby improving the representativeness of the fitting error.
[0110] Specifically, the model production coefficient in the primary shale gas production model may be updated according to the fitting error using a gradient descent algorithm.
[0111] In an embodiment of the present invention, by performing data fitting on the primary shale gas production model according to the methane and ethane carbon isotope difference data set and the single well production data set, a shale gas production analysis model is obtained, which can reduce the complexity of the shale gas well production analysis curve and improve the analysis accuracy.
[0112] S5. Perform isotope analysis on the gas well to be tested to obtain real-time shale gas data, and analyze the gas well production of the gas well to be tested based on the real-time shale gas data and the shale gas production analysis model.
[0113] In the embodiment of the present invention, the gas well to be tested refers to a shale gas well for which gas well production analysis is required, and the real-time shale gas data refers to the real-time methane isotope data and real-time ethane isotope data of the gas well to be tested.
[0114] In an embodiment of the present invention, analyzing the gas well production of the gas well to be tested based on the real-time shale gas data and the shale gas production analysis model means taking the difference between the real-time methane isotope data and the real-time ethane isotope data in the real-time shale gas data as the real-time isotope difference, substituting the real-time isotope difference as carbon isotope difference data into the shale gas production analysis model to obtain corresponding single well production data, and taking the single well production data as the gas well production of the gas well to be tested.
[0115] In an embodiment of the present invention, the gas well production of the gas well to be tested is analyzed based on the real-time shale gas data and the shale gas production analysis model, and the gas well production can be quickly, conveniently and reasonably calculated based on the relationship between the carbon isotope data of methane and ethane in a specific layer of the shale gas well, thereby improving the accuracy of the gas well production analysis.
[0116] The embodiments of the present invention can remove data noise, improve the accuracy of the data set, and improve the accuracy of the shale gas production analysis model obtained during subsequent fitting by cleaning the experimental shale gas data into standard shale gas data and cleaning the historical gas well production data into standard gas well production data. A shale gas methane data set and a shale gas ethane data set are extracted from the standard shale gas data, and a methane and ethane carbon isotope difference data set is generated according to the shale gas methane data set and the shale gas ethane data set. The gas storage capacity of the shale gas well can be determined according to the carbon isotope difference of methane and ethane detected simultaneously in the same shale gas well, thereby facilitating the construction of a subsequent primary shale gas production model. The standard gas well production data is split into single well production data sets according to the gas well model, which can facilitate the training of the subsequent primary shale gas production model. The primary shale gas production model is established according to the methane and ethane carbon isotope difference data set. The model takes into account the source of shale gas, shale gas content and the production of existing shale gas wells, which is more in line with geological reality, and can obtain the production data of shale gas wells according to the stage of shale gas well drilling and coring analysis, thereby improving the reliability of production data. By fitting the primary shale gas production model according to the methane and ethane carbon isotope difference data set and the single well production data set, a shale gas production analysis model is obtained, which can reduce the complexity of the shale gas well production analysis curve and improve the analysis accuracy. The gas well production of the gas well to be tested is analyzed according to the real-time shale gas data and the shale gas production analysis model, and the gas well production can be quickly, conveniently and reasonably calculated according to the relationship between the carbon isotope data of methane and ethane in a specific layer of the shale gas well, thereby improving the accuracy of the gas well production analysis. Therefore, the gas well production calculation method based on carbon isotopes proposed in the present invention can solve the problem of low efficiency in shale gas well production calculation.
[0117] Embodiment 2
[0118] like Figure 2 As shown, this embodiment also provides a functional module diagram of a gas well production calculation device based on carbon isotopes.
[0119] The gas well production calculation device 100 based on carbon isotopes described in this embodiment can be installed in an electronic device. According to the functions to be implemented, the gas well production calculation device 100 based on carbon isotopes may include a data cleaning module 101, a difference calculation module 102, a model building module 103, a model training module 104 and a production analysis module 105. The module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0120] In this embodiment, the functions of each module / unit are as follows:
[0121] The data cleaning module 101 is used to respectively obtain historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, clean the experimental shale gas data into standard shale gas data, and clean the historical gas well production data into standard gas well production data;
[0122] The difference calculation module 102 is used to extract a shale gas methane data set and a shale gas ethane data set from the standard shale gas data, and generate a methane and ethane carbon isotope difference data set according to the shale gas methane data set and the shale gas ethane data set;
[0123] The model building module 103 is used to split the standard gas well production data into single well production data sets according to the gas well models, and to build a primary shale gas production model according to the ethane and ethane carbon isotope difference data sets;
[0124] The model training module 104 is used to perform data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model;
[0125] The production analysis module 105 is used to perform isotope analysis on the gas well to be tested to obtain real-time shale gas data, and analyze the gas well production of the gas well to be tested based on the real-time shale gas data and the shale gas production analysis model.
[0126] In detail, each module described in the carbon isotope-based gas well production calculation device 100 described in the embodiment of the present invention adopts the same technical means as the carbon isotope-based gas well production calculation method described in Example 1 when used, and can produce the same technical effects, which will not be repeated here.
[0127] Embodiment 3
[0128] like Figure 3As shown, this embodiment also provides a computer electronic device, which may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a gas well production calculation program based on carbon isotopes.
[0129] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a product recommendation program based on user portraits, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0130] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a product recommendation program based on a user portrait, but can also be used to temporarily store data that has been output or is to be output.
[0131] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0132] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0133] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0134] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0135] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0136] The product recommendation program based on user portrait stored in the memory 11 of the electronic device is a combination of multiple instructions, and when running in the processor 10, it can achieve:
[0137] Respectively obtaining historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, cleaning the experimental shale gas data into standard shale gas data, and cleaning the historical gas well production data into standard gas well production data;
[0138] Extracting a shale gas methane dataset and a shale gas ethane dataset from the standard shale gas data, and generating a methane and ethane carbon isotope difference dataset based on the shale gas methane dataset and the shale gas ethane dataset;
[0139] The standard gas well production data is split into single well production data sets according to the gas well model, and a primary shale gas production model is established according to the ethane and ethane carbon isotope difference data sets;
[0140] Performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model;
[0141] Isotope analysis is performed on the gas well to be tested to obtain real-time shale gas data, and the gas well production of the gas well to be tested is analyzed based on the real-time shale gas data and the shale gas production analysis model.
[0142] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0143] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0144] Embodiment 4
[0145] This embodiment provides a storage medium storing a computer program. When the computer program is executed by a processor, the steps of the method for calculating gas well production based on carbon isotopes as described above are implemented.
[0146] These program codes can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.
[0147] Storage media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of storage media can include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0148] Embodiment 5
[0149] An embodiment of the present invention provides a computer program, which, when executed by a processor, implements the steps of a method for calculating gas well production based on carbon isotopes as described in the first aspect above.
[0150] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer programs can also be stored in a computer-readable storage medium, which enables the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the computer program includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0151] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. When the terms "include" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or their combinations.
[0152] It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or described herein.
[0153] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0154] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0155] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0156] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0157] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0158] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0159] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for calculating gas well production based on carbon isotopes, characterized in that: The method comprises: Respectively obtaining historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, cleaning the experimental shale gas data into standard shale gas data, and cleaning the historical gas well production data into standard gas well production data; Extracting a shale gas methane dataset and a shale gas ethane dataset from the standard shale gas data, and generating a methane and ethane carbon isotope difference dataset based on the shale gas methane dataset and the shale gas ethane dataset; The standard gas well production data is split into single well production data sets according to the gas well model, and a primary shale gas production model is established according to the ethane and ethane carbon isotope difference data sets; Performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model; Isotope analysis is performed on the gas well to be tested to obtain real-time shale gas data, and the gas well production of the gas well to be tested is analyzed based on the real-time shale gas data and the shale gas production analysis model.
2. The method for calculating gas well production based on carbon isotopes according to claim 1, characterized in that: The step of cleaning the experimental shale gas data into standard shale gas data comprises: Splitting the experimental shale gas data into multiple gas well experimental data according to gas well models; Selecting the gas well experimental data one by one as target gas well experimental data, and using preset placeholders to replace noise data and offside data in the target gas well experimental data to obtain target initial experimental data; Selecting experimental data from the target initial experimental data one by one as target experimental data, vectorizing the target experimental data into target data vectors according to data types, and collecting all target data vectors of the target initial experimental data into a target initial data vector set; Performing vector clustering on the target initial data vector set to obtain multiple target experimental vector classes; The placeholders in the target experimental data are replaced according to the target experimental vector class to obtain target standard experimental data, and all target standard experimental data are aggregated into standard shale gas data.
3. The method for calculating gas well production based on carbon isotopes according to claim 2, characterized in that: The step of vectorizing the target experimental data into a target data vector according to the data type includes: The data type of the target experimental data is used as the target data type, and the character string corresponding to the target data type is used as the target type character string; Vectorize the target experimental data into a primary experimental vector, and vectorize the target type character string into a primary type vector; The primary type vector is used as a position vector and concatenated with the primary experimental vector to obtain a target data vector.
4. The method for calculating gas well production based on carbon isotopes according to claim 1, characterized in that: The step of generating a methane and ethane carbon isotope difference data set according to the shale gas methane data set and the shale gas ethane data set comprises: Selecting methane carbon isotope data in the shale gas methane data set one by one as target methane isotope data, and selecting ethane isotope data corresponding to the target methane isotope data in the shale gas ethane data set as target ethane isotope data; The difference between the target methane isotope data and the target ethane isotope data is used as target isotope difference data, and all the target isotope difference data are compiled into a methane and ethane carbon isotope difference data set.
5. The method for calculating gas well production based on carbon isotopes according to claim 1, characterized in that: The method of establishing a primary shale gas production model based on the carbon isotope difference data set of ethane and ethane includes: Extracting carbon isotope difference data from the ethane and ethane carbon isotope difference data sets; The following primary shale gas production model is established based on the carbon isotope difference data and the single well production data: Q(x)=a(0.0979e -0.477x )+b Among them, Q refers to the analytical production data in the primary shale gas production model, x refers to the carbon isotope difference data, Q(x) refers to the analytical production data in the primary shale gas production model when the carbon isotope difference data is x, a and b are model production coefficients in the primary shale gas production model, and e refers to the natural logarithm base.
6. The method for calculating gas well production based on carbon isotopes according to claim 4, characterized in that: The step of performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model includes: The fitting error of the primary shale gas production model is calculated according to the following fitting error formula, the carbon isotope difference data set of ethane and ethane and the single well production data set: Wherein, S refers to the fitting error, i refers to the i-th, m refers to the total number of data in the ethane and ethane carbon isotope difference data set, and the total number of data in the ethane and ethane carbon isotope difference data set is equal to the total number of data in the single well production data set, y i refers to the i-th single well production data in the single well production data set, Q refers to the analytical production data in the primary shale gas production model, Q(x i ) means that the carbon isotope difference data is x i The analytical production data in the primary shale gas production model, x i Refers to the i-th carbon isotope difference data in the a-ethane and ethane carbon isotope difference data set; Determining whether the fitting error is greater than a preset error threshold; If so, the model production coefficient in the primary shale gas production model is updated according to the fitting error, and the step of calculating the fitting error of the primary shale gas production model according to the preset fitting error formula, the ethane and ethane carbon isotope difference data set and the single well production data set is returned; If not, the updated primary shale gas production model is used as the shale gas production analysis model.
7. A gas well production calculation device based on carbon isotopes, characterized in that: The device comprises: A data cleaning module, used to respectively obtain historical gas well production data and experimental shale gas data corresponding to the historical gas well production data, clean the experimental shale gas data into standard shale gas data, and clean the historical gas well production data into standard gas well production data; A difference calculation module is used to extract a shale gas methane data set and a shale gas ethane data set from the standard shale gas data, and generate a methane and ethane carbon isotope difference data set according to the shale gas methane data set and the shale gas ethane data set; A model building module, used to split the standard gas well production data into single well production data sets according to the gas well model, and to build a primary shale gas production model according to the ethane and ethane carbon isotope difference data sets; A model training module, used for performing data fitting on the primary shale gas production model according to the carbon isotope difference data set of ethane and ethane and the single well production data set to obtain a shale gas production analysis model; The production analysis module is used to perform isotope analysis on the gas well to be tested to obtain real-time shale gas data, and analyze the gas well production of the gas well to be tested based on the real-time shale gas data and the shale gas production analysis model.
8. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for calculating gas well production based on carbon isotopes as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method for calculating gas well production based on carbon isotopes as described in any one of claims 1 to 6 is implemented.
10. A computer program, characterized in that When the computer program is executed by a processor, the method for calculating gas well production based on carbon isotopes as described in any one of claims 1 to 6 is implemented.
