Method for constructing relative water absorption prediction model and relative water absorption prediction method

Using machine learning algorithms to conduct model training on the influencing factors of water absorption and the historical data of relative water absorption of small layers, the optimal model is selected, which solves the problem of low prediction accuracy in traditional methods and achieves high accuracy of relative water absorption of small layers in water injection wells. prediction, improving the efficiency of oil field development.

CN112862140BActive Publication Date: 2024-09-24BEIJING GRIDSUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911181838.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-27
Publication Date
2024-09-24
Estimated Expiration
2039-11-27

AI Technical Summary

Technical Problem

Traditional methods cannot accurately capture the real-time changing characteristics of underground reservoirs, resulting in low accuracy in predicting relative water absorption in oilfield water injection development.

Method used

By obtaining historical data of factors affecting water absorption and historical data of relative water absorption of small layers, different machine learning algorithms are used for model training, and the model with the smallest error is selected as the relative water absorption prediction model to achieve supervised machine learning and support high-precision prediction. .

Benefits of technology

It improves the prediction accuracy of the relative water absorption of each small layer of the water injection well, reduces the time and cost of monitoring work, and improves the efficiency of oil field development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862140B
    Figure CN112862140B
Patent Text Reader

Abstract

The present application relates to the technical field of oil and gas field development, and in particular to a method, device, storage medium and electronic device for constructing a relative water absorption prediction model, as well as a relative water absorption prediction method, device, storage medium and electronic device. The method in one embodiment includes: obtaining historical data of water absorption influencing factors and corresponding historical data of relative water absorption of small layers; training different preset machine learning algorithms according to the historical data of water absorption influencing factors and the historical data of relative water absorption of small layers; selecting the optimal model from multiple trained machine learning models, and using the optimal model as the relative water absorption prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of oil and gas field development, and in particular to a method, device, storage medium and electronic device for constructing a relative water absorption prediction model, and a method, device, storage medium and electronic device for predicting relative water absorption. Background Art

[0002] Water injection is one of the key technologies for oilfield development. The water absorption profile information of water injection wells reflects the water absorption capacity of the formation. The vertical distribution of injected water can be known through the water absorption profile information, and the waterline advancement can be predicted and controlled, the water absorption of the oil layer can be monitored, and the remaining oil distribution analysis can be performed. Scientifically analyzing and applying the water absorption profile information is the main means to understand the underground changes of the reservoir and conduct oilfield development analysis. It is also an important link in guiding oilfield development and deploying plans.

[0003] Oilfield water injection development is a black box process. It is impossible to observe and identify the continuous flow of underground fluids with the naked eye. It can only be indirectly analyzed and determined by technical means. The relative water absorption between the vertical layers of the injected water is generally monitored by tracers or well-to-well interference tests, but traditional methods cannot capture the real-time change characteristics of underground reservoirs, resulting in low prediction accuracy. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, storage medium and electronic device for constructing a relative water absorption prediction model that improves prediction accuracy, as well as a relative water absorption prediction method, device, storage medium and electronic device to address the above technical problems.

[0005] A method for constructing a relative water absorption prediction model, the method comprising:

[0006] Obtain historical data of factors influencing water absorption and historical data of relative water absorption of corresponding small layers;

[0007] According to the historical data of the factors affecting water absorption and the historical data of the relative water absorption of the small layer, model training is performed on different preset machine learning algorithms respectively;

[0008] The optimal model is selected from multiple trained machine learning models, and the optimal model is used as the relative water absorption prediction model.

[0009] In one embodiment, after obtaining the historical data of factors affecting water absorption, the method further includes:

[0010] When it is detected that the data dimension of the historical data of the factors affecting water absorption is less than a preset threshold or the data distribution is uneven, obtaining a preset business relationship between each data item in the historical data of the factors affecting water absorption;

[0011] Perform calculation based on the preset business relationship to generate new data item data;

[0012] Adding the new data item data to the historical data of the water absorption influencing factors to obtain the historical data of the water absorption influencing factors after dimension increase processing;

[0013] The adopting different preset machine learning algorithms to perform model training according to the historical data of the water absorption influencing factors and the historical data of the relative water absorption of the small layer comprises:

[0014] According to the historical data of the factors affecting water absorption after the dimension increase processing and the historical data of the relative water absorption of the small layer, different preset machine learning algorithms are used to perform model training.

[0015] In one embodiment, the step of obtaining historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers includes:

[0016] Obtain data on factors influencing initial water absorption and data on relative water absorption of initial small layers;

[0017] Performing data volume statistical processing on the data of the factors influencing the initial water absorption and the data of the initial small-layer relative water absorption, eliminating data abnormal values ​​based on the statistical results, and obtaining historical data of the factors influencing the water absorption and the corresponding historical data of the small-layer relative water absorption;

[0018] and / or,

[0019] When it is detected that the water absorption influencing factor data and the initial small layer relative water absorption data have missing values, data supplementation processing is performed based on the preset logging curve and / or preset regional data to obtain the water absorption influencing factor historical data and the corresponding small layer relative water absorption historical data.

[0020] In one embodiment, the model training is performed on different preset machine learning algorithms according to the historical data of the water absorption influencing factors and the historical data of the relative water absorption of the small layer, and the optimal model is selected from the trained multiple machine learning models, including:

[0021] Grouping the historical data of the water absorption influencing factors and the historical data of the relative water absorption of the small layers into a training data set and a test data set;

[0022] Performing model training on different preset machine learning algorithms based on the training data set to obtain a trained machine learning model;

[0023] Inputting the test data set into each of the trained machine learning models respectively, and obtaining the error of each of the trained machine learning models according to the prediction results of the relative water absorption of the small layer output by each of the trained machine learning models and the corresponding historical data of the relative water absorption of the small layer in the test data set;

[0024] The trained machine learning model with the smallest error is selected as the optimal model.

[0025] A device for constructing a relative water absorption prediction model, the device comprising:

[0026] A data acquisition module is used to acquire historical data of factors affecting water absorption and historical data of relative water absorption of corresponding small layers;

[0027] A model training module, used to perform model training on different preset machine learning algorithms according to the historical data of the water absorption influencing factors and the historical data of the relative water absorption of the small layer;

[0028] The model determination module is used to select the optimal model from multiple trained machine learning models and use the optimal model as the relative water absorption prediction model.

[0029] A storage medium includes a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute a method for constructing a relative water absorption prediction model.

[0030] An electronic device comprising at least one processor, at least one memory connected to the processor, and a bus;

[0031] Wherein, the processor and the memory communicate with each other through the bus;

[0032] The processor is used to call the program instructions in the memory to execute the method for constructing the relative water absorption prediction model.

[0033] The above-mentioned relative water absorption prediction model construction method, device, storage medium and electronic device perform model training on different preset machine learning algorithms according to the historical data of water absorption influencing factors and the historical data of relative water absorption of small layers, select the optimal model from the multiple trained machine learning models, and use the optimal model as the relative water absorption prediction model. The relative water absorption prediction model is trained through historical data to realize supervised machine learning. Subsequently, the relative water absorption of each small layer of the injection well is predicted through the relative water absorption prediction model, which can support high-precision prediction of relative water absorption.

[0034] A relative water absorption prediction method, the method comprising:

[0035] Obtain data on factors affecting water absorption of the injection well to be predicted;

[0036] Reading a preset relative water absorption prediction model, wherein the relative water absorption prediction model is constructed by a relative water absorption prediction model construction method;

[0037] Inputting the water absorption influencing factor data into the preset relative water absorption prediction model;

[0038] The relative water absorption of the small layer of the water injection well to be predicted is obtained according to the output data of the preset relative water absorption prediction model.

[0039] A relative water absorption prediction device, comprising:

[0040] The water injection well data acquisition module is used to obtain the data of factors affecting the water absorption of the water injection well to be predicted;

[0041] A model acquisition module, used for reading a preset relative water absorption prediction model, wherein the relative water absorption prediction model is constructed by a relative water absorption prediction model construction method;

[0042] A data processing module, used for inputting the water absorption influencing factor data into the preset relative water absorption prediction model;

[0043] The prediction result generation module is used to obtain the relative water absorption of the small layer of the water injection well to be predicted based on the output data of the preset relative water absorption prediction model.

[0044] A storage medium comprises a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute a relative water absorption prediction method.

[0045] An electronic device comprising at least one processor, at least one memory connected to the processor, and a bus;

[0046] Wherein, the processor and the memory communicate with each other through the bus;

[0047] The processor is used to call the program instructions in the memory to execute the relative water absorption prediction method.

[0048] The above-mentioned relative water absorption prediction method, device, storage medium and electronic device obtain the data of water absorption influencing factors of the injection well to be predicted, input the data of water absorption influencing factors into a preset relative water absorption prediction model, and obtain the relative water absorption of the sublayer of the injection well to be predicted based on the output data of the preset relative water absorption prediction model. The relative water absorption prediction model obtained by training based on historical data is used to predict the relative water absorption of each sublayer of the injection well, thereby realizing a high-precision prediction of the relative water absorption. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 FIG. 1 is an application environment diagram of a method for constructing a relative water absorption prediction model in one embodiment;

[0050] Figure 2 Schematic diagram of a process for constructing a relative water absorption prediction model in one embodiment;

[0051] Figure 3 Schematic diagram of a relative water absorption prediction method in one embodiment;

[0052] Figure 4 is a structural block diagram of a device for constructing a relative water absorption prediction model in one embodiment;

[0053] Figure 5 is a structural block diagram of a relative water absorption prediction device in one embodiment;

[0054] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] The method for constructing the relative water absorption prediction model provided in this application can be applied to Figure 1 In the application environment shown. The client terminal 102 communicates with the server 104 through the network. The user inputs the historical data of water absorption influencing factors and the corresponding historical data of small layer relative water absorption through the client terminal 102. The server 104 obtains the historical data of water absorption influencing factors and the corresponding historical data of small layer relative water absorption; according to the historical data of water absorption influencing factors and the historical data of small layer relative water absorption, different preset machine learning algorithms are used for model training; the optimal model is selected from the multiple trained machine learning models, and the optimal model is used as the relative water absorption prediction model. The client terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones and tablet computers, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0057] In one embodiment, Figure 2 As shown in FIG. 1 , a method for constructing a relative water absorption prediction model is provided, and this method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0058] Step 202, obtaining historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers.

[0059] The historical data of factors affecting water absorption refers to the data that affect the relative water absorption of each sublayer of the water injection well during the water injection development of the oil field, which may specifically include the historical data of sublayer attributes and the historical data of oil well attributes. Among them, the historical data of sublayer attributes refers to the data that characterizes the attributes of each sublayer of the water injection well during the water injection development of the oil field, such as the water injection well identification, sublayer identification, sublayer top depth, sublayer bottom depth, sublayer thickness, porosity, permeability, saturation, mud content, seepage gradient, etc. The historical data of oil well attributes refers to the relevant parameter data of the water injection well corresponding to the effective oil well during the water injection development of the oil field, such as the number of connected wells, the connection distance, the tubing pressure, the casing pressure, etc. The historical data of the relative water absorption of the sublayer refers to the relative water absorption of each sublayer in the vertical direction of the well in the water injection volume of the injection well. The relative water absorption refers to the percentage of the water absorption of a certain sublayer to the water absorption of the whole well under the same injection pressure. The relative water absorption is an indicator to measure the relative water absorption capacity of the stratification.

[0060] Step 204, using different preset machine learning algorithms to perform model training according to the historical data of water absorption influencing factors and the historical data of small layer relative water absorption.

[0061] The historical data of small layer attributes and oil well attributes are influencing factors of the historical data of small layer relative water absorption. Through machine learning methods, we learn and capture the characteristics of these data, establish the relationship between the historical data of small layer attributes, oil well attributes and the historical data of small layer relative water absorption, and realize the prediction of small layer relative water absorption.

[0062] Among them, the preset machine learning algorithms may include Huber Regressor, Lasso Regressor, Ridge Regressor, SGD Regressor, Linear SVR, SVR, Decision Tree Regressor, AdaBoost Regressor, Bagging Regressor, GradientBoost Regressor, Random Forest Regressor and other machine learning algorithms.

[0063] Step 206, selecting an optimal model from the multiple trained machine learning models, and using the optimal model as a relative water absorption prediction model.

[0064] When training based on historical data of small layer attributes, historical data of oil well attributes and historical data of small layer relative water absorption, evaluation indicators such as mean_absolute_error (mean absolute error), mean_squared_error (mean square error), median_absolute_error (absolute median difference) and r2_score (R square value) can be used as tuning standards to train each machine learning model separately, obtain the errors of each trained machine learning model, and use the trained machine learning model with the smallest error as the relative water absorption prediction model.

[0065] According to the historical data of water injection wells, different preset machine learning algorithms are trained respectively. For example, the lasso regression algorithm is trained through the historical data of water injection wells to obtain the error of the trained lasso regression model. The error specifically refers to the difference between the predicted results of the relative water absorption of each sublayer output by the trained lasso regression model and the actual relative water absorption of each sublayer of the water injection well. By training different machine learning algorithms, the trained machine learning model with the smallest error is selected as the relative water absorption prediction model.

[0066] The method for constructing the above-mentioned relative water absorption prediction model performs model training on different preset machine learning algorithms according to the historical data of water absorption influencing factors and the historical data of relative water absorption of small layers, selects the optimal model from the multiple trained machine learning models, and uses the optimal model as the relative water absorption prediction model. The relative water absorption prediction model is trained through historical data to realize supervised machine learning. Subsequently, the relative water absorption of each small layer of the injection well is predicted through the relative water absorption prediction model, which can support high-precision prediction of relative water absorption.

[0067] In one embodiment, after obtaining the historical data of water absorption influencing factors, it also includes: when it is detected that the data dimension of the historical data of water absorption influencing factors is less than a preset threshold or the data distribution is uneven, obtaining the preset business relationship between each data item in the historical data of water absorption influencing factors; performing calculations based on the preset business relationship to generate new data item data; adding the new data item data to the historical data of water absorption influencing factors to obtain the historical data of water absorption influencing factors after dimension increase processing; according to the historical data of water absorption influencing factors and the historical data of small layer relative water absorption, respectively using different preset machine learning algorithms for model training includes: according to the historical data of water absorption influencing factors after dimension increase processing and the historical data of small layer relative water absorption, respectively using different preset machine learning algorithms for model training. Perform calculations based on the preset business relationship, such as through logical operations, to generate new data item data. Among them, the logical operation includes at least one operation of multiplication and division between two or more data items. For example, the historical data of small layer attributes may include multiple data items, and logical operations may be performed based on the business relationships between existing data items to generate new data items. Similarly, the historical data of oil well attributes can also include multiple data items, and logical operations can be performed based on the business relationships between existing data items to generate new data items. Specifically, a new data item can be generated by combining any two or more data items in the existing data items through logical operations such as addition, subtraction, multiplication, and division, so as to improve the accuracy and generalization of model training.

[0068] If the data dimension is insufficient or the samples are unbalanced during the modeling process, it will greatly affect the accuracy and generalization of the model. Based on the business relationship and mathematical relationship between the existing data items, the dimension of the data items can be increased to ensure the availability of the model. For example, based on the existing sand layer thickness data items and porosity data items, a new data item effective thickness is generated, where effective thickness = sand layer thickness * porosity; for another example, based on the existing permeability data items, a new data item seepage range is generated, where seepage range = the maximum permeability of each layer tested on the same day in the same well / the permeability of each small layer on the same day in the well. By increasing the dimension of the historical data of factors affecting water absorption, the dimension of the original data is expanded, the breadth of the model training data is increased, and the prediction accuracy of the model is improved.

[0069] In one embodiment, obtaining historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers includes: obtaining initial data of factors influencing water absorption and initial data of relative water absorption of small layers; performing data quantity statistical processing on the initial data of factors influencing water absorption and initial data of relative water absorption of small layers, eliminating data outliers based on the statistical results, and obtaining historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers; and / or, when it is detected that there are missing values ​​in the data of factors influencing water absorption and initial data of relative water absorption of small layers, performing data supplementation processing based on preset logging curves and / or preset regional data, and obtaining historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers.

[0070] By statistically analyzing the data volume corresponding to each data item, the data that is obviously not in the main data range is screened. For example, the sum of the relative water absorption of each sub-layer should be 100% under normal circumstances. If the sum of the relative water absorption of each sub-layer in the historical data of the relative water absorption of the sub-layer is not equal to 100%, then it can be determined that there are abnormal values ​​in the historical data of the relative water absorption of the sub-layer, and the data abnormal values ​​are found and eliminated based on the data statistical results.

[0071] The initial data of water injection wells collected may have some quality problems due to the long time span and the level of data collection personnel. Therefore, it is necessary to analyze and clean the initial data of water injection wells before modeling. Data quality problems include numerical errors, outliers, missing data, etc. For example, the input data items include small layer thickness, porosity, permeability, water saturation, mud content, etc. If there is data missing, the missing data can be supplemented by using relevant logging curves combined with preset regional model data, where regional model data refers to parameter models obtained according to regional laws, such as regional porosity models, saturation models, permeability models, etc. Well logging is an indirect logging method using physical methods. It can continuously measure physical parameters such as the gas layer to be observed and studied. According to physical differences, different changes are expressed on the logging curve to show their respective characteristics. Well logging curves include natural gamma logging curves, natural potential logging curves, resistivity logging curves, acoustic time difference logging curves, density logging curves, etc.

[0072] In one embodiment, according to the historical data of water absorption influencing factors and the historical data of small layer relative water absorption, different preset machine learning algorithms are respectively trained, and the optimal model is selected from the multiple trained machine learning models, including: grouping the historical data of water absorption influencing factors and the historical data of small layer relative water absorption into training data sets and test data sets; training different preset machine learning algorithms based on the training data sets to obtain trained machine learning models; inputting the test data sets into each trained machine learning model, and obtaining the error of each trained machine learning model according to the prediction results of small layer relative water absorption output by each trained machine learning model and the corresponding historical data of small layer relative water absorption in the test data set; selecting the trained machine learning model with the smallest error as the optimal model. The historical data of water injection wells are grouped and configured, for example, the historical data of water injection wells are divided into 10 parts, of which 8 parts are used as training data sets for training machine learning models, and the remaining 2 parts are used as test data sets.

[0073] In one embodiment, Figure 3 As shown in the figure, a relative water absorption prediction method is provided. Figure 1 The server in the example is used to illustrate the following steps:

[0074] Step 302, obtaining data of factors influencing water absorption of the injection well to be predicted;

[0075] Step 304, reading a preset relative water absorption prediction model, where the relative water absorption prediction model is constructed by a relative water absorption prediction model construction method;

[0076] Step 306, inputting the water absorption influencing factor data into a preset relative water absorption prediction model;

[0077] Step 308, obtaining the relative water absorption of the sublayer of the injection well to be predicted based on the output data of the preset relative water absorption prediction model.

[0078] The relative water absorption prediction method also includes processing the relative water absorption of the small layer of the injection well to be predicted based on a preset display method, and outputting and displaying the processing results, for example, outputting and displaying the predicted relative water absorption results in the form of graphics or tables.

[0079] The above-mentioned relative water absorption prediction method obtains the data of water absorption influencing factors of the injection well to be predicted, inputs the data of water absorption influencing factors into a preset relative water absorption prediction model, and obtains the relative water absorption of the sublayer of the injection well to be predicted based on the output data of the preset relative water absorption prediction model. The relative water absorption prediction model trained based on historical data is used to predict the relative water absorption of each sublayer of the injection well, which can achieve a high-precision prediction of the relative water absorption.

[0080] In one embodiment, the user can import historical data of water injection wells through the terminal, such as historical data of small layer attributes, historical data of oil well attributes, and historical data of corresponding small layer relative water absorption. The server obtains historical data of small layer attributes, historical data of oil well attributes, and historical data of corresponding small layer relative water absorption; according to the historical data of small layer attributes, historical data of oil well attributes, and historical data of small layer relative water absorption, the model training is performed on different preset machine learning algorithms respectively to obtain the error of each trained machine learning model; the trained machine learning model with the smallest error is selected as the relative water absorption prediction model. When the relative water absorption prediction scenario is required in the future, the user only needs to send the small layer attribute data and the corresponding oil well attribute data of the water injection well to be predicted to the server through the terminal, the server reads the relative water absorption prediction model, inputs the small layer attribute data and the oil well attribute data into the relative water absorption prediction model, and obtains the small layer relative water absorption of the water injection well to be predicted according to the output data of the relative water absorption prediction model.

[0081] Based on the historical data of water injection wells, the machine learning model is trained. The relative water absorption of each small layer in the vertical direction of the injection well can be predicted by the trained machine learning model, which can maximize the utilization rate and value of the historical data of water injection wells. Moreover, the repeated calculation of a large amount of historical data can be realized through machine learning methods, that is, the model relationship calculation between the relevant data items in the historical data of water injection wells and the relative water absorption of each small layer in the vertical direction can be realized, which can achieve the calculation amount and calculation accuracy that cannot be achieved by manual calculation. In addition, based on big data and machine learning, the original data items are added from the perspectives of business and algorithm using the original data, which reaches the extreme in the use of data dimensions. The underground dynamics of oilfield water injection development is a constantly changing process. After the oilfield generates new production data for each period of production, the model can be corrected and optimized by adding the newly generated data to the latest production status, so as to realize the continuous iterative optimization of the model. Users use the optimized relative water absorption prediction model to calculate the vertical flow direction of injected water, which can reduce the time and cost of monitoring work and greatly improve efficiency.

[0082] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0083] In one embodiment, Figure 4 As shown, a device for constructing a relative water absorption prediction model is provided, the device comprising:

[0084] Data acquisition module 402, used to acquire historical data of water absorption influencing factors and corresponding historical data of small layer relative water absorption;

[0085] A model training module 404 is used to perform model training on different preset machine learning algorithms according to the historical data of water absorption influencing factors and the historical data of small layer relative water absorption;

[0086] The model determination module 406 is used to select the optimal model from the multiple trained machine learning models and use the optimal model as the relative water absorption prediction model.

[0087] In one embodiment, the device for constructing the relative water absorption prediction model also includes a dimensionality increase processing module, which is used to obtain the preset business relationship between each data item in the historical data of water absorption influencing factors when it is detected that the data dimension of the historical data of water absorption influencing factors is less than a preset threshold or the data distribution is uneven; perform calculations based on the preset business relationship to generate new data item data; add the new data item data to the historical data of water absorption influencing factors to obtain the historical data of water absorption influencing factors after dimensionality increase processing; the model training module is also used to use different preset machine learning algorithms to perform model training according to the historical data of water absorption influencing factors after dimensionality increase processing and the historical data of relative water absorption of small layers.

[0088] In one embodiment, the data acquisition module is also used to obtain the data of factors affecting initial water absorption and the data of initial small layer relative water absorption; perform data quantity statistical processing on the data of factors affecting initial water absorption and the data of initial small layer relative water absorption, eliminate data outliers based on the statistical results, and obtain historical data of factors affecting water absorption and the corresponding historical data of small layer relative water absorption; and / or, when it is detected that there are missing values ​​in the data of factors affecting water absorption and the data of initial small layer relative water absorption, perform data supplementation processing based on the preset logging curve and / or preset regional data to obtain historical data of factors affecting water absorption and the corresponding historical data of small layer relative water absorption.

[0089] In one embodiment, the model training module is also used to group the historical data of factors affecting water absorption and the historical data of relative water absorption of small layers into training data sets and test data sets; perform model training on different preset machine learning algorithms based on the training data sets to obtain trained machine learning models; input the test data sets into each trained machine learning model respectively, and obtain the errors of each trained machine learning model based on the prediction results of relative water absorption of small layers output by each trained machine learning model and the corresponding historical data of relative water absorption of small layers in the test data sets; select the trained machine learning model with the smallest error as the optimal model.

[0090] In one embodiment, Figure 5 As shown, a relative water absorption prediction device is provided, the device comprising:

[0091] The water injection well data acquisition module 502 is used to acquire the data of the factors affecting the water absorption of the water injection well to be predicted;

[0092] A model acquisition module 504 is used to read a preset relative water absorption prediction model, where the relative water absorption prediction model is constructed by a relative water absorption prediction model construction method;

[0093] The data processing module 506 is used to input the water absorption influencing factor data into a preset relative water absorption prediction model;

[0094] The prediction result generation module 508 is used to obtain the relative water absorption of the small layer of the water injection well to be predicted based on the output data of the preset relative water absorption prediction model.

[0095] In one embodiment, the relative water absorption prediction device further includes a prediction result display module, which is used to process the relative water absorption of the small layer of the injection well to be predicted based on a preset display method, and output the processing result for display.

[0096] For the specific definition of the relative water absorption prediction model construction device / relative water absorption prediction device, please refer to the definition of the relative water absorption prediction model construction method / relative water absorption prediction method mentioned above, which will not be repeated here. Each module in the above-mentioned relative water absorption prediction model construction device / relative water absorption prediction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0097] In one embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 6As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data such as historical data of small layer attributes, historical data of oil well attributes, historical data of corresponding small layer relative water absorption, and a relative water absorption prediction model. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for constructing a relative water absorption prediction model or a relative water absorption prediction method is implemented.

[0098] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0099] In one embodiment, an electronic device is provided, comprising at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute a relative water absorption prediction model construction method or a relative water absorption prediction method in any embodiment.

[0100] In one embodiment, a computer-readable storage medium is provided, the storage medium including a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute the relative water absorption prediction model construction method or the relative water absorption prediction method in any embodiment.

[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for constructing a relative water absorption prediction model, the method include: Acquire historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers; the historical data of factors influencing water absorption includes historical data of small layer attributes and historical data of oil well attributes, and the historical data of small layer attributes and the historical data of oil well attributes respectively include multiple data items; When it is detected that the data dimension of the historical data of the factors affecting water absorption is less than a preset threshold or the data distribution is uneven, obtaining a preset business relationship between each data item in the historical data of the factors affecting water absorption; Calculating based on the preset business relationship between the existing data items in the historical data of the small layer attributes to generate new data item data corresponding to the historical data of the small layer attributes, and calculating based on the preset business relationship between the existing data items in the historical data of the oil well attributes to generate new data item data corresponding to the historical data of the oil well attributes; Adding all the generated new data items to the historical data of the factors affecting water absorption to obtain the historical data of the factors affecting water absorption after dimension increase processing; According to the historical data of water absorption influencing factors after the dimensionality increase processing and the historical data of the relative water absorption of the small layer, different preset machine learning algorithms are used for model training, and the optimal model is selected from the multiple trained machine learning models. The optimal model is used as the relative water absorption prediction model. After new production data is generated in the oil field, the relative water absorption prediction model is optimized based on the new production data.

2. The method according to claim 1, It is characterized in that The historical data of small layer attributes include: water injection well identification, small layer identification, small layer top depth, small layer bottom depth, and small layer thickness.

3. The method according to claim 1, It is characterized in that The acquisition of historical data of water absorption influencing factors and corresponding historical data of relative water absorption of small layers includes: Obtain data on factors influencing initial water absorption and data on relative water absorption of initial small layers; Performing data volume statistical processing on the data of the factors influencing the initial water absorption and the data of the initial small-layer relative water absorption, eliminating data abnormal values ​​based on the statistical results, and obtaining historical data of the factors influencing the water absorption and the corresponding historical data of the small-layer relative water absorption; and / or, When it is detected that the water absorption influencing factor data and the initial small layer relative water absorption data have missing values, data supplementation processing is performed based on the preset logging curve and / or preset regional data to obtain the water absorption influencing factor historical data and the corresponding small layer relative water absorption historical data.

4. The method according to claim 1, It is characterized in that According to the historical data of the water absorption influencing factors after the dimension increase processing and the historical data of the relative water absorption of the small layer, different preset machine learning algorithms are used for model training, and the optimal model is selected from the trained multiple machine learning models, including: Grouping the historical data of water absorption influencing factors after the dimension enhancement process and the historical data of relative water absorption of the small layers into a training data set and a test data set; Performing model training on different preset machine learning algorithms based on the training data set to obtain a trained machine learning model; Inputting the test data set into each of the trained machine learning models respectively, and obtaining the error of each of the trained machine learning models according to the prediction results of the relative water absorption of the small layer output by each of the trained machine learning models and the corresponding historical data of the relative water absorption of the small layer in the test data set; The trained machine learning model with the smallest error is selected as the optimal model.

5. A relative water absorption prediction method, the method include: Obtain data on factors affecting water absorption of the injection well to be predicted; Reading a preset relative water absorption prediction model, wherein the relative water absorption prediction model is constructed by the method according to any one of claims 1 to 4; Inputting the water absorption influencing factor data into the preset relative water absorption prediction model; The relative water absorption of the small layer of the water injection well to be predicted is obtained according to the output data of the preset relative water absorption prediction model.

6. The method according to claim 5, It is characterized in that The method further comprises: The relative water absorption of the small layer of the water injection well to be predicted is processed based on a preset display method, and the processing result is output for display.

7. A device for constructing a relative water absorption prediction model, It is characterized in that The device comprises: A data acquisition module, used to acquire historical data of factors influencing water absorption and corresponding historical data of relative water absorption of small layers; the historical data of factors influencing water absorption includes historical data of small layer attributes and historical data of oil well attributes, and the historical data of small layer attributes and the historical data of oil well attributes respectively include multiple data items; A dimension-increasing processing module is used to obtain the preset business relationship between each data item in the historical data of the water absorption influencing factors when it is detected that the data dimension of the historical data of the water absorption influencing factors is less than a preset threshold value or the data distribution is uneven; perform calculations based on the preset business relationship between the existing data items in the historical data of the small layer attributes to generate new data item data corresponding to the historical data of the small layer attributes, and perform calculations based on the preset business relationship between the existing data items in the historical data of the oil well attributes to generate new data item data corresponding to the historical data of the oil well attributes; add the generated new data item data to the historical data of the water absorption influencing factors to obtain the historical data of the water absorption influencing factors after the dimension-increasing processing; A model training module, used to perform model training using different preset machine learning algorithms according to the historical data of water absorption influencing factors after the dimension increase processing and the historical data of the relative water absorption of the small layer; The model determination module is used to select the optimal model from multiple trained machine learning models, use the optimal model as the relative water absorption prediction model, and optimize the relative water absorption prediction model based on the new production data after the oil field generates new production data.

8. A relative water absorption prediction device, It is characterized in that The device comprises: The water injection well data acquisition module is used to obtain the data of factors affecting the water absorption of the water injection well to be predicted; A model acquisition module, used for reading a preset relative water absorption prediction model, wherein the relative water absorption prediction model is constructed by the method according to any one of claims 1 to 4; A data processing module, used for inputting the water absorption influencing factor data into the preset relative water absorption prediction model; The prediction result generation module is used to obtain the relative water absorption of the small layer of the water injection well to be predicted based on the output data of the preset relative water absorption prediction model.

9. A storage medium, It is characterized in that The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for constructing a relative water absorption prediction model described in any one of claims 1 to 4 or the relative water absorption prediction method described in claims 5 to 6.

10. An electronic device, It is characterized in that The electronic device comprises at least one processor, at least one memory connected to the processor, and a bus; Wherein, the processor and the memory communicate with each other through the bus; The processor is used to call the program instructions in the memory to execute the method for constructing the relative water absorption prediction model described in any one of claims 1 to 4 or the relative water absorption prediction method described in claims 5 to 6.