Underground water seal oil depot water inflow prediction method and device based on ensemble learning

By extracting and filtering features based on the method of integrated learning, and constructing the base learner and stacking integrated learning model, the problem of deviation in prediction of water inflow from underground water seal oil reservoirs in the existing technology is solved, and accurate prediction and efficient prediction accuracy are achieved, which meets the needs of engineering projects. need.

CN118627418APending Publication Date: 2024-09-10HENAN UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410715070.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing water inflow prediction method for underground oil-sealed reservoirs has large deviations and cannot meet engineering needs. In particular, due to the impact of groundwater conditions on changes in water inflow, there are problems in the construction and operation of caverns.

Method used

Using an ensemble learning-based method, by obtaining the target data set, extracting initial features and conducting correlation analysis and screening, a base learner and a stacking integrated learning model are constructed, and Bayesian parameter optimization and the K-Fold method are used for training to predict groundwater sealing. The amount of water inflow from the oil depot to avoid over-fitting problems.

Benefits of technology

It achieves accurate prediction of water inflow from underground water sealing reservoirs, improves the prediction accuracy, meets the needs of domestic groundwater sealing reservoir projects, reduces the risk of over-fitting, and improves the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627418A
    Figure CN118627418A
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of underground water seal oil depots, and provides an underground water seal oil depot water inflow prediction method and device based on integrated learning. The method comprises the steps that a target data set is acquired, and initial features in the target data set are extracted; screening the initial features to obtain an optimal feature subset; constructing a base learning device, optimizing hyper-parameters of the base learning device by using a Bayesian parameter optimization model, training the optimized base learning device, and obtaining the base learning device after optimization training; and constructing a Stacking ensemble learning model, training the Stacking ensemble learning model, and predicting the water inflow of the underground water seal oil depot through the trained Stacking ensemble learning model. In this way, the water inflow of the underground water-sealed oil depot can be predicted, effective information can be obtained from limited learning data as much as possible, local minimum is effectively avoided, and the problem of overfitting can be avoided to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of underground water-sealed oil depots, and more specifically, to an underground water-sealed oil depot water inflow prediction method and device based on integrated learning. Background Art

[0002] Underground water-sealed caverns are safe, environmentally friendly, and low-cost, and are currently being vigorously promoted as a petroleum storage method in my country. The water inflow of the cavern is an important indicator for evaluating the comprehensive technical and economic cost-effectiveness of underground water-sealed caverns and the quality and safety of the project. Therefore, the prediction of the water inflow of the cavern has long been a major problem that has plagued the construction and operation of caverns.

[0003] The current normatively recommended and engineering methods for predicting the water inflow of underground caverns are based on equivalent continuous media, such as empirical formula analysis, numerical simulation analysis, and hydrogeological analogy. Their predicted values ​​are greatly deviated from the actual values ​​after construction, and therefore cannot meet the needs of the project. Groundwater conditions have a great influence on the water inflow of caverns. The hydrological monitoring data of the reservoir area can truly reflect the changes in the state of the groundwater level, thereby affecting the changes in the water inflow. This patent collects real data on site, obtains the optimal data set by preprocessing the data set, and then realizes the accurate prediction of the water inflow of underground water-sealed oil depots based on the integrated learning method. Summary of the invention

[0004] According to an embodiment of the present invention, a method for predicting water inflow of underground water-sealed oil reservoirs based on ensemble learning is provided. This method can obtain as much effective information as possible from limited learning data, effectively avoid falling into a local minimum, and avoid overfitting problems to a certain extent.

[0005] In a first aspect of the present invention, a method for predicting water inflow of underground water-sealed oil reservoir based on ensemble learning is provided. The method comprises:

[0006] Acquire a target data set, and extract initial features from the target data set; the initial features include independent variable features and dependent variable features;

[0007] Using correlation analysis to screen the initial features to obtain an optimal feature subset; dividing the optimal feature subset into a training set and a test set;

[0008] Constructing a base learner, optimizing the hyperparameters of the base learner using a Bayesian parameter optimization model, and training the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model, an extreme gradient boosting tree, and a lightweight gradient boosting machine;

[0009] A Stacking ensemble learning model is constructed, and the Stacking ensemble learning model is trained using the training set to obtain a trained Stacking ensemble learning model, and the water inflow of the underground water-sealed oil depot is predicted by the trained Stacking ensemble learning model.

[0010] Furthermore, the initial features are screened using correlation analysis to obtain an optimal feature subset, including:

[0011] Calculating the Pearson correlation coefficient matrix of each independent variable feature in the initial features to obtain a plurality of independent variable correlation coefficients;

[0012] The independent variable features whose correlation coefficients are greater than the preset importance threshold are screened out to generate the optimal feature subset.

[0013] Further, the calculating of the Pearson correlation coefficient matrix of each independent variable feature in the initial features includes:

[0014]

[0015] Among them, R is the correlation coefficient of the independent variable; x i is the i-th independent variable feature, y i is the water inflow of the underground water seal oil reservoir corresponding to the i-th independent variable feature, and n is the dimension of the independent variable feature.

[0016] Furthermore, the method further includes performing data preprocessing on the optimal feature subset, and using the preprocessed optimal feature subset as a training set and a test set.

[0017] Furthermore, the preprocessing of the optimal feature subset includes:

[0018] Using a random forest regression algorithm to fill in the missing data in the optimal feature subset to obtain a first subset;

[0019] Draw a box plot to detect and remove the noise of the first subset to obtain a second subset;

[0020] The second subset is normalized to obtain an optimal feature subset after preprocessing.

[0021] Furthermore, the Stacking ensemble learning model includes a first-level learner and a second-level learner; the first-level learner is a base learner after optimization training; the second-level learner is a meta-learner; the input of the first-level learner serves as the input of the Stacking ensemble learning model, the output of the first-level learner serves as the input of the second-level learner, and the output of the second-level learner serves as the output of the Stacking ensemble learning model.

[0022] Furthermore, it also includes: evaluating the generalization ability of the trained Stacking ensemble learning model, so as to predict the water inflow of the underground water-sealed oil reservoir by using the Stacking ensemble learning model that meets the evaluation requirements.

[0023] Furthermore, the evaluation requirements include:

[0024] The coefficient of determination of the stacking ensemble learning model is greater than the threshold of the coefficient of determination; and

[0025] The mean absolute percentage error of the stacking ensemble learning model is less than the mean absolute percentage error threshold; and

[0026] The root mean square error of the stacking ensemble learning model is less than the root mean square error threshold.

[0027] In a second aspect of the present invention, a device for predicting water inflow of underground water-sealed oil reservoir based on ensemble learning is provided. The device comprises:

[0028] An acquisition module is used to acquire a target data set and extract initial features from the target data set; the initial features include independent variable features and dependent variable features;

[0029] A screening module is used to screen the initial features by using correlation analysis to obtain an optimal feature subset; and divide the optimal feature subset into a training set and a test set;

[0030] The first construction module is used to construct a base learner, optimize the hyperparameters of the base learner using a Bayesian parameter optimization model, and train the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model, an extreme gradient boosting tree, and a lightweight gradient boosting machine;

[0031] The second construction module is used to construct a Stacking ensemble learning model, use the training set to train the Stacking ensemble learning model to obtain the trained Stacking ensemble learning model, and predict the water inflow of the underground water-sealed oil reservoir through the trained Stacking ensemble learning model.

[0032] In a third aspect of the present invention, an electronic device is provided. The electronic device has at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method of the first aspect of the present invention.

[0033] In a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method of the first aspect of the present invention.

[0034] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0036] Figure 1 A flow chart of a method for predicting water inflow of underground water-sealed oil reservoirs based on integrated learning according to an embodiment of the present invention is shown;

[0037] Figure 2 A block diagram of a device for predicting water inflow of underground water-sealed oil reservoirs based on integrated learning according to an embodiment of the present invention is shown;

[0038] Figure 3 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown;

[0039] Among them, 300 is an electronic device, 301 is a computing unit, 302 is a ROM, 303 is a RAM, 304 is a bus, 305 is an I / O interface, 306 is an input unit, 307 is an output unit, 308 is a storage unit, and 309 is a communication unit. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0042] The embodiment of the present invention adopts an integrated learning method which is simple and efficient, and in particular no longer involves complex problems that are difficult to determine, such as theoretical models and geological parameters. In addition, the prediction accuracy obtained by using the integrated learning method to predict the water inflow of underground water-sealed oil depots can meet the needs of domestic underground water-sealed oil depot projects at this stage, and can help solve the current difficulties in predicting the water inflow of underground water-sealed oil depots and provide an effective method.

[0043] Figure 1 A flow chart of a method for predicting water inflow of an underground water-sealed oil reservoir based on integrated learning according to an embodiment of the present invention is shown.

[0044] The method includes:

[0045] S101, obtaining a target data set, and extracting initial features from the target data set; the initial features include independent variable features and dependent variable features.

[0046] In this embodiment, the target data set is a measured record data set during the operation period of the oil cavern.

[0047] For example, the measured records of a certain national oil cavern in the second phase of Huizhou during its operation. The initial features include 7 independent variable features and 1 dependent variable feature; the independent variable features include: groundwater level at the site, rainfall in the site, terrain environment in the reservoir area, water curtain replenishment, oil and gas pressure above the cavern (operating pressure), oil storage status, and cavern volume. The dependent variable feature is the water inflow of the underground water-sealed oil reservoir.

[0048] S102, screening the initial features by using correlation analysis to obtain an optimal feature subset; dividing the optimal feature subset into a training set and a test set.

[0049] In this embodiment, the initial features are screened using correlation analysis to obtain an optimal feature subset, including:

[0050] First, the Pearson correlation coefficient matrix of each independent variable feature in the initial features is calculated to obtain a number of independent variable correlation coefficients;

[0051] Secondly, the independent variable features whose correlation coefficients are greater than the preset importance threshold are screened out to generate the optimal feature subset.

[0052] Specifically, the Pearson correlation coefficient matrix of each independent variable feature in the initial features is calculated, including:

[0053]

[0054] Among them, R is the correlation coefficient of the independent variable; x i is the i-th independent variable feature, y iis the water inflow of the underground water seal oil depot corresponding to the i-th independent variable feature, n is the dimension of the independent variable feature, if there are 7 independent variable features, then n=7.

[0055] In this embodiment, the importance threshold is preset. For example, the importance threshold is set to 0.3. By comparing the independent variable correlation coefficient R with the importance threshold 0.3, the independent variable features greater than 0.3 are retained, and the independent variable features less than 0.3 are eliminated. The purpose is to retain features with higher correlation coefficients and eliminate features with smaller correlation coefficients, so as to obtain the optimal feature subset for subsequent model training.

[0056] In this embodiment, the optimal feature subset is divided into a training set and a test set, for example, 80% of the optimal feature subset is used as a training set and 20% is used as a test set. The test set is used for testing after model training.

[0057] Screening the initial features using correlation analysis can improve model performance, that is, by selecting the most critical features, the model can more accurately capture the pattern of the data and improve the prediction performance.

[0058] Using correlation analysis to screen the initial features can reduce overfitting, that is, eliminating unimportant features can reduce the overfitting of the model to the training data and improve the generalization ability of the model.

[0059] Using fewer features for training and reasoning can significantly improve computing efficiency and shorten the time for model training and prediction.

[0060] As an embodiment of the present invention, after obtaining the optimal feature subset, the method further includes performing data preprocessing on the optimal feature subset, and using the preprocessed optimal feature subset as a training set and a test set.

[0061] Specifically, the preprocessing of the optimal feature subset includes:

[0062] Using a random forest regression algorithm to fill in the missing data in the optimal feature subset to obtain a first subset;

[0063] Draw a box plot to detect and remove the noise of the first subset to obtain a second subset;

[0064] The second subset is normalized to obtain an optimal feature subset after preprocessing.

[0065] Specifically, the normalization process includes:

[0066]

[0067] Among them, x i ′ is the normalized sample value; xmin is the minimum value of the sample; x max is the maximum value of the sample.

[0068] The random forest regression algorithm is used to fill in the missing values ​​by constructing multiple decision trees, making the filled data random and uncertain, which can better reflect the true distribution of these unknown data.

[0069] Since each branch node selects random partial features instead of all features in the process of constructing the decision tree, it can be well applied to filling in high-dimensional data; the random forest algorithm itself has good classification accuracy, which further ensures the accuracy and reliability of the obtained filling value.

[0070] By drawing a box plot to detect and remove the noise of the first subset, the discrete distribution of the data can be accurately and stably depicted without obeying a specific distribution form: the drawing of the box plot relies on real data, does not need to assume in advance that it obeys the distribution form to be determined, and does not make any restrictive requirements on the data. It just truly and intuitively shows the original appearance of the data shape. On the other hand, outliers will not affect the determination of quartiles: the standard for judging outliers in the box plot is based on quartiles and interquartile ranges. Quartiles have a certain resistance. Most 25% of the data can become arbitrarily far away without greatly disturbing the quartiles, so outliers cannot affect this standard. The results of identifying outliers in the box plot are relatively objective.

[0071] Normalization can eliminate dimensional differences, avoid weight imbalance, and improve model convergence speed.

[0072] S103, constructing a base learner, optimizing the hyperparameters of the base learner using a Bayesian parameter optimization model, and training the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model (RF), an extreme gradient boosting tree (XGB), and a lightweight gradient boosting machine (LGB).

[0073] In this embodiment, the hyperparameters of the base learner are optimized using a Bayesian parameter optimization model, and the specified hyperparameters are searched by setting a parameter space to find the optimal parameter combination.

[0074] In this embodiment, the optimized base learner is trained by the K-Fold method, including:

[0075] Based on the K-fold cross-validation method, the optimal feature subset after data processing is divided into K subsets of the same size A = {A1, A2, A3, ..., A K}; A={A1,A2,A3,…,A KEach subset in} is divided into K times as the prediction set B C , the other subsets are used as training set B X , the training set B X Input the first layer base learner model for training and obtain A = {A1, A2, A3, ..., A K}. The “other subsets” are K-1 subsets, because only one subset is selected as the prediction set each time, and the remaining K-1 subsets are used as training sets. Repeat k times so that each subset is used as a prediction set once.

[0076] S104, constructing a Stacking ensemble learning model, using the training set to train the Stacking ensemble learning model to obtain a trained Stacking ensemble learning model, and using the trained Stacking ensemble learning model to predict the water inflow of the underground water-sealed oil reservoir.

[0077] In this embodiment, the Stacking ensemble learning model includes a first-level learner and a second-level learner; the first-level learner is a base learner after optimization training; the second-level learner is a meta-learner; the input of the first-level learner serves as the input of the Stacking ensemble learning model, the output of the first-level learner serves as the input of the second-level learner, and the output of the second-level learner serves as the output of the Stacking ensemble learning model.

[0078] In this embodiment, in order to avoid overfitting, a linear regression (LR) with a simple structure and strong generalization ability is selected as the meta-learner.

[0079] In some optional implementations of this embodiment, in order to verify whether the data set can be well applied to the model and obtain a higher prediction accuracy, it is also necessary to evaluate the generalization ability of the trained Stacking ensemble learning model so as to predict the water inflow of the underground water-seal oil reservoir using the Stacking ensemble learning model that meets the evaluation requirements.

[0080] Specifically, the evaluation requirements need to meet the following three conditions at the same time:

[0081] Condition 1: The coefficient of determination of the stacking ensemble learning model is greater than the coefficient of determination threshold;

[0082] Condition 2: The mean absolute percentage error (MAPE) of the stacking ensemble learning model is less than the mean absolute percentage error threshold;

[0083] Condition 3: The root mean square error (RMSE) of the stacking ensemble learning model is less than the root mean square error threshold.

[0084] The parameter setting threshold for evaluating the generalization ability of the Stacking ensemble learning model is:

[0085] The coefficient of determination indicates how accurately the model fits the data. For example, a model with a coefficient of determination greater than 0.5 is used. The coefficient of determination can be expressed as R 2 , which is the square of the correlation coefficient R of the independent variable.

[0086] The mean absolute percentage error (MAPE) represents the average of the absolute errors between the predicted values ​​and the true values. For example, a model with a mean absolute percentage error of less than 5 is used;

[0087] The root mean square error (RMSE) reflects the degree of deviation between the model prediction value and the measured value. Here, a model with a root mean square error less than 100 is used.

[0088] In this embodiment, the larger the determination coefficient, the better the model performance; the smaller the mean absolute percentage error (MAPE) value, the better the model performance; the smaller the root mean square error (RMSE) value, the better the model performance.

[0089] According to an embodiment of the present invention, prediction is performed by using a Stacking ensemble learning regression prediction algorithm based on machine learning, and the optimal feature subset is selected through feature correlation analysis. The Bayesian optimization algorithm is used to optimize the hyperparameters of the established base model, and combined with the five-fold cross-validation method, the algorithm can obtain as much effective information as possible from limited learning data, effectively avoid falling into the local minimum, and avoid the overfitting problem to a certain extent.

[0090] Through the feature importance analysis of the XGB algorithm model, the importance of each feature is calculated according to the degree of influence of each feature on the model output, and the most important factors affecting the model output are determined in turn, providing certain reference opinions for on-site staff.

[0091] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0092] The above is an introduction to a method embodiment. The following is a further explanation of the scheme of the present invention through a device embodiment having the same inventive concept as the method in the aforementioned embodiment.

[0093] like Figure 2 As shown, the device 200 includes:

[0094] An acquisition module 210 is used to acquire a target data set and extract initial features from the target data set; the initial features include independent variable features and dependent variable features;

[0095] A screening module 220 is used to screen the initial features using correlation analysis to obtain an optimal feature subset; and divide the optimal feature subset into a training set and a test set;

[0096] The first construction module 230 is used to construct a base learner, optimize the hyperparameters of the base learner using a Bayesian parameter optimization model, and train the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model, an extreme gradient boosting tree, and a lightweight gradient boosting machine;

[0097] The second construction module 240 is used to construct a Stacking ensemble learning model, use the training set to train the Stacking ensemble learning model to obtain the trained Stacking ensemble learning model, and predict the water inflow of the underground water-sealed oil reservoir through the trained Stacking ensemble learning model.

[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0099] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0100] According to an embodiment of the present invention, the present invention further provides an electronic device and a readable storage medium.

[0101] Figure 3 A schematic block diagram of an electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0102] The electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0103] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0104] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as methods S101 to S104. For example, in some embodiments, methods S101 to S104 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the methods S101 to S104 described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute methods S101 to S104 in any other appropriate manner (eg, by means of firmware).

[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0107] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0109] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0110] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0112] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting water inflow of underground water-sealed oil depot based on ensemble learning, characterized in that: include: Acquire a target data set, and extract initial features from the target data set; The initial features include independent variable features and dependent variable features; Using correlation analysis to screen the initial features to obtain an optimal feature subset; dividing the optimal feature subset into a training set and a test set; Constructing a base learner, optimizing the hyperparameters of the base learner using a Bayesian parameter optimization model, and training the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model, an extreme gradient boosting tree, and a lightweight gradient boosting machine; A Stacking ensemble learning model is constructed, and the Stacking ensemble learning model is trained using the training set to obtain a trained Stacking ensemble learning model, and the water inflow of the underground water-sealed oil depot is predicted by the trained Stacking ensemble learning model.

2. The method according to claim 1, characterized in that The initial features are screened by correlation analysis to obtain an optimal feature subset, including: Calculating the Pearson correlation coefficient matrix of each independent variable feature in the initial features to obtain a plurality of independent variable correlation coefficients; The independent variable features whose correlation coefficients are greater than the preset importance threshold are screened out to generate the optimal feature subset.

3. The method according to claim 2, characterized in that The calculating of the Pearson correlation coefficient matrix of each independent variable feature in the initial features includes: Among them, R is the correlation coefficient of the independent variable; x i is the i-th independent variable feature, y i is the water inflow of the underground water seal oil reservoir corresponding to the i-th independent variable feature, and n is the dimension of the independent variable feature.

4. The method according to claim 1 or 2, characterized in that: The method also includes performing data preprocessing on the optimal feature subset, and using the preprocessed optimal feature subset as a training set and a test set.

5. The method according to claim 4, characterized in that The preprocessing of the optimal feature subset includes: Using a random forest regression algorithm to fill in the missing data in the optimal feature subset to obtain a first subset; Draw a box plot to detect and remove the noise of the first subset to obtain a second subset; The second subset is normalized to obtain an optimal feature subset after preprocessing.

6. The method according to claim 1, characterized in that The Stacking ensemble learning model includes a first-level learner and a second-level learner; the first-level learner is a base learner after optimization training; the second-level learner is a meta-learner; the input of the first-level learner is used as the input of the Stacking ensemble learning model, the output of the first-level learner is used as the input of the second-level learner, and the output of the second-level learner is used as the output of the Stacking ensemble learning model.

7. The method according to claim 1, characterized in that Also includes: The generalization ability of the trained Stacking ensemble learning model is evaluated, and the water inflow of the underground water-sealed oil reservoir is predicted by the Stacking ensemble learning model that meets the evaluation requirements.

8. The method according to claim 7, characterized in that The assessment requirements include: The coefficient of determination of the stacking ensemble learning model is greater than the threshold of the coefficient of determination; and The mean absolute percentage error of the stacking ensemble learning model is less than the mean absolute percentage error threshold; and The root mean square error of the stacking ensemble learning model is less than the root mean square error threshold.

9. A device for predicting water inflow of underground water-sealed oil depot based on ensemble learning, characterized in that: include: An acquisition module, used to acquire a target data set and extract initial features from the target data set; The initial features include independent variable features and dependent variable features; A screening module is used to screen the initial features by using correlation analysis to obtain an optimal feature subset; and divide the optimal feature subset into a training set and a test set; The first construction module is used to construct a base learner, optimize the hyperparameters of the base learner using a Bayesian parameter optimization model, and train the optimized base learner using a K-Fold method to obtain an optimized and trained base learner; the base learner includes a random forest model, an extreme gradient boosting tree, and a lightweight gradient boosting machine; The second construction module is used to construct a Stacking ensemble learning model, use the training set to train the Stacking ensemble learning model to obtain the trained Stacking ensemble learning model, and predict the water inflow of the underground water-sealed oil reservoir through the trained Stacking ensemble learning model.

10. An electronic device comprising at least one processor; and A memory communicatively connected to the at least one processor; characterized in that The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

Citation Information

Cited By

  • Underground water level prediction model training method and underground ecological water level prediction method

    CN119670934A