Oil reservoir numerical simulation parameter inversion and optimization method based on intelligent agent
The intelligent agent technology automatically adjusts the parameters of the reservoir numerical simulation software, which solves the problems of long calculation time and cumbersome parameter adjustment of the reservoir numerical simulation software, achieves more efficient and accurate simulation results, and improves the automation of oil and gas reservoir simulation. .
Patent Information
- Application Number
- CN202410700880.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
AI Technical Summary
Existing reservoir numerical simulation software takes a long time to calculate, and there are problems with the cumbersome manual parameter adjustment in traditional simulations.
An intelligent agent-based reservoir numerical simulation parameter inversion and optimization method is adopted, including the establishment of an intelligent agent automatic simulation system, data processing, prediction model establishment and inversion parameter optimization. The parameters are automatically adjusted through technologies such as deep learning models and genetic algorithms. to improve simulation efficiency and accuracy.
It achieves rapid and accurate adjustment of model parameters, reduces calculation time and human resource investment, and improves the automation and fitting effect of oil and gas reservoir simulation.
Smart Images

Figure CN118609709A
Abstract
Description
Technical Field
[0001] The invention relates to an intelligent agent-based oil reservoir numerical simulation parameter inversion and optimization method, and belongs to the field of oil and gas reservoir development. Background Art
[0002] In the field of oil and gas exploration and production, despite the significant progress in computer hardware technology in recent years, the high computational cost of specific numerical simulation software remains a thorny issue. These software are often used to simulate complex reservoir dynamic processes, and their computational complexity and the need to fit numerous parameters make multiple simulations a time-consuming and expensive task. Intelligent agent models can quickly build efficient approximate models by learning from existing simulation data, thereby achieving fast and economical proxy for complex simulations. In practical applications, the combination of intelligent agent models based on artificial intelligence and intelligent optimization methods such as genetic algorithms can bring innovative breakthroughs to the development of reservoir simulation software and provide more economical and efficient solutions to practical problems. This intelligent agent modeling method will play a key role in the fields of oil and gas engineering and scientific research, and promote the continuous advancement of technology.
[0003] Therefore, it is an urgent problem for technicians in this field to establish an intelligent agent-based reservoir numerical simulation parameter inversion and optimization method to improve the accuracy and efficiency of reservoir numerical simulation software fitting. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of long calculation time of some current reservoir numerical simulation software and cumbersome manual parameter adjustment in traditional simulation.
[0005] In order to achieve the above purpose, the invention adopts the following technical solutions:
[0006] The present invention provides an intelligent agent-based reservoir numerical simulation parameter inversion and optimization method, including: intelligent agent automatic simulation system establishment, intelligent agent data processing, intelligent agent prediction model establishment, intelligent agent inversion parameter optimization and optimal parameter inversion.
[0007] S100, intelligent agent automatic simulation system is established, including the steps of:
[0008] S110, determining known data, including historical production data of existing wells, well locations, well depths, well types, oil PVT data, gas PVT data, and water PVT data, determining reservoir numerical simulation software, and establishing a reservoir numerical simulation model; the reservoir numerical simulation software includes tNavigator and Eclipse;
[0009] S120, determining inversion parameters and target quantities in the numerical simulation software, the inversion parameters including: porosity, permeability, water saturation, net-to-gross ratio, relative permeability, the target quantities including: daily oil production, daily gas production, daily water production, cumulative oil production, cumulative water production, cumulative gas production, and pressure;
[0010] S130. Establish a simple automated operation program. Given an inversion parameter range, the inversion parameter range is determined based on known data. In order to facilitate model adjustment, the parameters can be automatically adjusted to ensure that the parameters are adjusted. The inversion parameters are modified by modifying the source document. Random sampling is used to take values for each parameter. Such a parameter space covers a wide range of possibilities and helps to fully explore model behavior. The number of automatic simulations is set. These randomly selected parameter values are applied to the source document of the reservoir numerical simulation software through an automated program. The automated program controls the operation of the numerical simulation software and records the simulation results of the target quantity of each random example to obtain the automatic simulation of the intelligent agent.
[0011] S200, intelligent agent data processing, the specific steps are:
[0012] S210, integrating the simulation results described in step S130, using the root mean square error RMSE or the determination coefficient R 2 Quantify the simulation results of each random case in the reservoir numerical simulation software and the fitting effect of historical data to obtain the root mean square error RMSE or determination coefficient R of each case 2 , RMSE measures the overall error level between simulated data and observed data, R 2 It reflects the ability of simulated data to explain the variation of observed data;
[0013] S220, taking the inversion parameters as input features, and taking the root mean square error RMSE of each random example simulation result and the measured data as output values or the determination coefficient R of each random example simulation result and the measured data 2 As the output value, an intelligent agent dataset is established, and data preprocessing is performed on the intelligent agent dataset, including data regularization and data standardization;
[0014] S230, divide the data set, 70% is used to build the training set, and the other 30% is used to build the validation set. For some small sample data, data enhancement technology is used, including random perturbation, smoothing, filtering, and generative adversarial technology on the training set data.
[0015] S300, intelligent agent prediction model is established, the specific steps are:
[0016] S310, according to the intelligent agent data set described in S220, deeply analyze the characteristics of the data, for high-dimensional data sets, use deep learning models including recurrent neural networks, convolutional neural networks, recurrent neural networks, and genetic algorithms, and for small sample data sets, select traditional machine learning models including SVM, random forest, XGboost, lightGBM, and polynomial regression, and arbitrarily select three of the learning models;
[0017] S320, according to the three learning models selected in S310, the base models of the three learning models are established one by one as prediction models, and each model is comprehensively evaluated using cross-validation technology, and the evaluation indicators include root mean square error RMSE and determination coefficient R 2 Considering various evaluation indicators, we select the best performance, i.e., the smallest RMSE value, R 2 The learning model with the largest value is the most suitable learning model;
[0018] S330. For the most suitable learning model, hyperparameter optimization is performed. The hyperparameter optimization methods include: grid search, sparrow population, Bayesian optimization, and gradient method. Hyperparameter optimization aims to determine the best parameter configuration to further improve model performance. Through systematic parameter adjustment and verification, it is ensured that the model achieves the best fitting effect in complex oil and gas reservoir dynamic modeling tasks, improves its prediction accuracy and generalization ability, and according to the hyperparameter optimization results, substitutes the intelligent agent data set to train the most suitable learning model to obtain the intelligent agent prediction model.
[0019] S400, intelligent agent inversion parameter optimization, the specific steps are:
[0020] S410, selecting an intelligent agent inversion parameter optimization algorithm to perform inversion parameter optimization, wherein the intelligent agent inversion parameter optimization algorithm includes a dung beetle optimization algorithm and a differential evolution algorithm;
[0021] S420, set the objective function of the intelligent proxy inversion parameter optimization algorithm, and use the predicted value of the intelligent proxy prediction model described in step S330 as the objective function value. If the output value is the root mean square error RMSE of each random example simulation result and the measured data, then minimize the objective function. If the output value is the determination coefficient R of each random example simulation result and the measured data, then minimize the objective function. 2 , then maximize the objective function;
[0022] S430, according to the inversion parameter range, randomly generating a population within the range to determine an initial position;
[0023] S440, according to the iterative intelligent agent inversion parameter optimization algorithm, the number of iterations is set to 200 times, the population size of the intelligent agent inversion parameter optimization algorithm and the number of individuals in the population are set, and in each iteration, the position of the individuals in the population is updated. This process aims to gradually approach the optimal solution by continuously adjusting the inversion parameter value;
[0024] S450, setting the termination criteria of the intelligent proxy inversion parameter optimization algorithm, including reaching the maximum number of iterations, the objective function converging to a stable value, and the objective function not changing much after several consecutive iterations. A reasonable termination criterion is to ensure that the algorithm is neither terminated prematurely nor iterated excessively, so as to save computing resources;
[0025] S460, when the termination condition is met, the intelligent proxy inversion parameter optimization method outputs the optimal inversion parameters, which is the inversion parameter combination that can best fit the actual data after multiple iterative adjustments.
[0026] S500, optimal parameter inversion, the specific steps are:
[0027] S510, according to the optimal inversion parameters output by the intelligent agent inversion parameter optimization algorithm, substitute them into the reservoir numerical simulation software for parameter inversion, and apply the optimal parameters to the actual simulation, so as to reduce the number of manual parameter adjustment simulations, so as to obtain a result that better fits the model with the actual observation data;
[0028] S520, according to the target quantity result obtained by the parameter inversion of the reservoir numerical simulation software, the result is quantified according to the calculation method described in S220 and the fitting effect of the target quantity result of this parameter inversion and the historical data. In addition, this result can be added to the intelligent proxy data set to update the intelligent proxy data set; repeating this process can gradually optimize the intelligent proxy data set, by continuously searching for the optimal inversion parameters, reducing the optimization range of the intelligent proxy inversion parameter optimization method, improving the fitting performance of the numerical simulation to the actual data, and ensuring that the parameters with the best fitting effect are found.
[0029] Compared with the prior art, the present invention has the following beneficial effects: (1) improving the automation of oil and gas reservoir simulation operation, thereby reducing the time and human resource investment in the overall simulation calculation; (2) being able to quickly and accurately adjust model parameters, solving the cumbersome parameter adjustment problem in traditional simulation, and improving the accuracy and efficiency of fitting. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is the technical roadmap of this method.
[0031] Figure 2 It is a schematic diagram of the basic model established using tNavigator reservoir numerical simulation software in this application example.
[0032] Figure 3 This application example uses the original document to modify the inversion parameters.
[0033] Figure 4 This is the interface diagram of the intelligent agent automatic simulation program of this application example.
[0034] Figure 5 It is a numerical distribution diagram of the root mean square error RMSE of all random examples in this application.
[0035] Figure 6 This is a fitting effect diagram of the intelligent agent prediction model of this application example.
[0036] Figure 7 It is the convergence diagram of the intelligent agent inversion parameter optimization method of this application example. DETAILED DESCRIPTION
[0037] The present invention is further described below in conjunction with the embodiments and drawings.
[0038] The present invention provides a parameter inversion and optimization method for reservoir numerical simulation software based on intelligent agent. Figure 1 For the technical roadmap of this method, the following steps were implemented for history matching of tNavigator reservoir numerical simulation software:
[0039] The first step is to establish an intelligent agent automatic simulation system, including the following steps:
[0040] Determine the known data, including the historical production data of existing wells, well location, well depth, well type, oil PVT data, gas PVT data and water PVT data, determine the reservoir numerical simulation software, and establish the reservoir numerical simulation model. In this example, a basic model with 25,000 grids and a production well is established in the tNavigator reservoir numerical simulation software simulation system, such as Figure 2 shown.
[0041] Determine the inversion parameters and target quantities in the numerical simulation software. In this example, the key parameters are the permeability and porosity in the X, Y, and Z directions of the grid. These parameters can be modified through the source document, such as Figure 3 In this example, the daily gas production is fitted. It should be noted that the intelligent agent-based reservoir numerical simulation parameter inversion and optimization method is not only applicable to the fitting of one target quantity, but also to the fitting of multiple target quantities.
[0042] Establish a simple automated operation program, give an inversion parameter range, and the inversion parameter range is determined based on the known data. In this example, the porosity range is set between 0 and 1, and the permeability in the X, Y, and Z directions is between 0 and 100. Modify the inversion parameters by modifying the source document, use random sampling to take values for each parameter, set the number of automatic simulations, and apply the randomly selected parameter values to the source document of the reservoir numerical simulation software through an automated program. The automated program controls the operation of the numerical simulation software, records the simulation results of the target quantity of each random example, and obtains the intelligent agent automatic simulation. In this example, the interface of the intelligent agent automatic simulation program is as shown in the figure below. Figure 4 As shown, the number of simulations is set to 200, and 200 random examples are obtained.
[0043] The second step is the intelligent agent data processing method, the specific steps are:
[0044] Integrate the simulation results described in the first step and use the root mean square error RMSE or the coefficient of determination R 2 Quantify the simulation results of each random case in the reservoir numerical simulation software and the fitting effect of historical data to obtain the root mean square error RMSE or determination coefficient R of each case 2 The root mean square error RMSE measures the overall error level between the simulated data and the observed data, and the determination coefficient R 2 It reflects the ability of simulated data to explain the variation of observed data. In this example, the root mean square error (RMSE) is used to quantify the error of each case. The distribution of the root mean square error (RMSE) values of all random cases is shown in the figure below. Figure 5 shown.
[0045] It should be noted that the root mean square error RMSE and the determination coefficient R 2 You can choose one of them to quantify the error of each example, or you can choose both to quantify the error of each example.
[0046] The inversion parameters are used as input features, and the root mean square error (RMSE) of each random case simulation result and the measured data is used as the output value or the determination coefficient (R) of each random case simulation result and the measured data. 2 As the output value, an intelligent agent dataset is established, and data preprocessing is performed on the intelligent agent dataset, including data regularization and data standardization.
[0047] It should be noted that the root mean square error RMSE and the determination coefficient R are selected at the same time. 2 To quantify the error of each case, the root mean square error RMSE and the coefficient of determination R of each case need to be 2 As output, that is, two outputs.
[0048] The data set is then divided, 70% is used to construct the training set, and the other 30% is used to construct the validation set. For some small sample data, data enhancement techniques are used, including random perturbation, smoothing, filtering, and generative adversarial techniques on the training set data.
[0049] It should be noted that for small sample data sets, data augmentation technology is only used on the training set and not on the validation set.
[0050] The third step is to establish the intelligent agent prediction model. The specific steps are as follows:
[0051] According to the intelligent agent data set described in the second step, the characteristics of the data are deeply analyzed. For high-dimensional data sets, deep learning models including recurrent neural networks, convolutional neural networks, recurrent neural networks, and genetic algorithms are used. For small sample data sets, traditional machine learning models including SVM, random forest, XGboost, lightGBM, and polynomial regression are selected. Any three learning models are selected. In this example, three learning models, lightGBM, random forest, and XGboost, are selected.
[0052] According to the three selected learning models, the base models of the three learning models are established one by one as the prediction model, and each model is comprehensively evaluated using cross-validation technology. The evaluation indicators include root mean square error RMSE and determination coefficient R 2 Considering various evaluation indicators, we select the best performance, i.e., the smallest RMSE value, R 2 The learning model with the largest value is the most suitable learning model. In this example, lightGBM is selected as the most suitable learning model after comprehensive evaluation.
[0053] For the most suitable learning model, hyperparameter optimization is performed. The hyperparameter optimization methods include: grid search, sparrow population, Bayesian optimization, and gradient method. According to the hyperparameter optimization results, the most suitable learning model is substituted into the intelligent agent data set to train the intelligent agent prediction model. In this example, Bayesian optimization is performed on the lightGBM algorithm hyperparameters, and the optimal hyperparameters of the model are finally determined. The lightGBM algorithm fitting effect is shown in the figure below. Figure 6 shown.
[0054] The fourth step is the intelligent agent inversion parameter optimization method, the specific steps are:
[0055] An intelligent agent inversion parameter optimization algorithm is selected for inversion parameter optimization, wherein the intelligent agent inversion parameter optimization algorithm includes a dung beetle optimization algorithm and a differential evolution algorithm. In this example, the differential evolution algorithm is selected as the inversion parameter optimization algorithm.
[0056] Set the objective function of the intelligent proxy inversion parameter optimization algorithm, and use the predicted value of the intelligent proxy prediction model described in the third step as the objective function value. If the output value is the root mean square error RMSE of each random case simulation result and the measured data, then minimize the objective function. If the output value is the determination coefficient R of each random case simulation result and the measured data 2 , then the objective function is maximized. In this example, the predicted value is the root mean square error (RMSE) of the fitting effect, so the objective function is maximized. According to the inversion parameter range, a population is randomly generated within this range to determine the initial position.
[0057] According to the iterative intelligent agent inversion parameter optimization algorithm, the number of iterations is set to 200, the population size of the intelligent agent inversion parameter optimization algorithm and the number of individuals in the population are set, and the positions of the individuals in the population are updated in each iteration. In this example, the population size is set to 100.
[0058] It is worth noting that, depending on the selected inversion parameter optimization method, the specific number of iterations and population size also need to be adjusted according to actual conditions. 200 iterations is a reasonable recommended value in practical applications.
[0059] The termination criteria of the intelligent proxy inversion parameter optimization algorithm include reaching the maximum number of iterations, the objective function converges to a stable value, and the objective function does not change much after several consecutive iterations. In this example, the number of iterations is set to 100 and the maximum number of iterations is set to 100, but the algorithm considers that a solution that meets the stopping conditions has been found before reaching 100 iterations. The convergence diagram of the intelligent proxy inversion parameter optimization method is shown in Figure 7 As shown in the figure, when the termination criteria are met, the intelligent agent inversion parameter optimization algorithm outputs the optimal inversion parameter, i.e., the individual with the highest fitness in the population, and outputs the convergence graph of the intelligent agent inversion parameter optimization algorithm.
[0060] The fifth step is optimal parameter inversion. The specific steps are as follows:
[0061] According to the optimal inversion parameters output by the intelligent agent inversion parameter optimization algorithm, they are substituted into the reservoir numerical simulation software for parameter inversion. According to the target quantity result obtained by the parameter inversion of the reservoir numerical simulation software, the result is quantified according to the calculation method described in S20 to determine the fitting effect of the target quantity result of this parameter inversion and the historical data. In this example, a set of parameters is found to achieve a good fitting effect with the historical daily gas production in the tNavigator reservoir numerical simulation software.
[0062] It should be noted that a parameter inversion and optimization method for reservoir numerical simulation software based on intelligent agent is not limited to reservoir numerical simulation software. This method can also be applied to gas reservoir numerical simulation software and other numerical simulation software that can also perform history matching.
[0063] The above description is only the basic embodiment of the present application and the explanation of the technical principle used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by the specific combination of the above technical features, but also should cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above application concept. For example, the above features are replaced with the technical features with similar functions applied in the present application to form a technical solution.
Claims
1. A method for inversion and optimization of reservoir numerical simulation parameters based on intelligent agent, It is characterized in that The method includes: S100, intelligent agent automatic simulation system is established, including the following steps: S110, determining known data, including historical production data of existing wells, well locations, well depths, well types, oil PVT data, gas PVT data, and water PVT data, determining reservoir numerical simulation software, and establishing a reservoir numerical simulation model; S120, determining inversion parameters and target quantities in numerical simulation software; S130, establishing an automated operation program, giving an inversion parameter range, modifying the inversion parameter by modifying the source document, taking values for each inversion parameter by random sampling, setting the number of automatic simulations, applying the randomly selected inversion parameter values to the source document of the reservoir numerical simulation software through the automated operation program, controlling the operation of the reservoir numerical simulation software through the automated operation program, recording the simulation results of the target quantity of each random example, and obtaining the intelligent agent automatic simulation system; S200, intelligent agent data processing, the specific steps are: S210, integrating the simulation results described in step S130, using RMSE or R 2 Quantify the simulation results of each random case in the reservoir numerical simulation software and the fitting effect of historical production data to obtain the RMSE or R of each case. 2 ; S220, taking the inversion parameters as input features, and taking the RMSE of each random example simulation result and the measured data as output values or the R 2 As the output value, an intelligent agent dataset is established, and data preprocessing is performed on the intelligent agent dataset, including data regularization and data standardization; S230, divide the intelligent agent data set, 70% is used to build a training set, and the other 30% is used to build a validation set. For some small sample data, data enhancement technology is used, including random perturbation, smoothing, filtering and generative adversarial technology on the training set data; S300, intelligent agent prediction model is established, the specific steps are: S310, according to the intelligent agent data set described in S220, deeply analyze the characteristics of the data, for high-dimensional data sets, use deep learning models including recurrent neural networks, convolutional neural networks, recurrent neural networks, and genetic algorithms, and for small sample data sets, select traditional machine learning models including SVM, random forest, XGboost, lightGBM, and polynomial regression, and arbitrarily select three of the learning models; S320, according to the three learning models selected in S310, the base models of the three learning models are established one by one as prediction models, and each model is comprehensively evaluated by using cross-validation technology, and the evaluation indicators include RMSE and R 2 Considering various evaluation indicators, we select the best performance, i.e., the smallest RMSE value, R 2 The learning model with the largest value is the most suitable learning model; S330, for the most suitable learning model, perform hyperparameter optimization, the hyperparameter optimization method includes: grid search, sparrow population, Bayesian optimization, gradient method, according to the hyperparameter optimization result, substitute the intelligent agent data set to train the most suitable learning model, and obtain the intelligent agent prediction model; S400, intelligent agent inversion parameter optimization, the specific steps are: S410, selecting an intelligent agent inversion parameter optimization algorithm to perform inversion parameter optimization, wherein the intelligent agent inversion parameter optimization algorithm includes a dung beetle optimization algorithm and a differential evolution algorithm; S420, setting the objective function of the intelligent proxy inversion parameter optimization algorithm, taking the predicted value of the intelligent proxy prediction model described in step S330 as the objective function value, and minimizing the objective function if the output value is the RMSE of the simulation result and the measured data of each random example, and minimizing the objective function if the output value is the RMS of the simulation result and the measured data of each random example. 2 , then maximize the objective function; S430, according to the inversion parameter range, randomly generating a population within the range to determine an initial position; S440, according to the iterative intelligent agent inversion parameter optimization algorithm, set the number of iterations to 200 times, set the population size of the intelligent agent inversion parameter optimization algorithm and the number of individuals in the population, and update the position of the individuals in the population in each iteration; S450, setting the termination criteria of the intelligent proxy inversion parameter optimization algorithm to include reaching the maximum number of iterations, the objective function converging to a stable value, and the objective function not changing much after several consecutive iterations; S460, when the termination criterion is satisfied, the intelligent agent inversion parameter optimization algorithm outputs the optimal inversion parameter, i.e., the individual with the highest fitness in the population, and outputs a convergence graph of the intelligent agent inversion parameter optimization algorithm; S500, optimal parameter inversion, the specific steps are: S510, according to the optimal inversion parameters output by the intelligent agent inversion parameter optimization algorithm, substitute them into the reservoir numerical simulation software to perform parameter inversion; S520. According to the target quantity result obtained by parameter inversion of the reservoir numerical simulation software, the result is quantified according to the calculation method described in S20 to determine the fitting effect of the target quantity result of this parameter inversion and the historical production data.
2. The method for inversion and optimization of reservoir numerical simulation parameters based on intelligent agent according to claim 1, It is characterized in that The reservoir numerical simulation software includes tNavigator and Eclipse; The inversion parameters include: porosity, permeability, water saturation, net-to-gross ratio, and relative permeability; The target quantities include: daily oil production, daily gas production, daily water production, cumulative oil production, cumulative water production, cumulative gas production, and pressure; The inversion parameter range is determined according to the known data; The high-dimensional data set refers to a data set in which the number of features is greater than the number of samples, and the small sample data refers to data with a total number of data less than 30.
Citation Information
Patent Citations
Real-time inversion method for creep parameters of surrounding rock mass
CN111666671A
Underground oil-water seepage proxy model based on coupled neural network
CN115618750A
Historical fitting method based on deep autoregression network and continuous learning strategy
CN115935834A
Cited By
Reservoir parameter inversion modeling method integrating proxy model and online learning
CN119005027A
Construction method and system of low-permeability reservoir constant-speed mercury injection experiment agent model
CN119670584A
A method and system for constructing a proxy model for constant-rate mercury injection experiment in low-permeability reservoirs
CN119670584B
Model design simulation method and system based on artificial intelligence and computer medium
CN120654548A
Magnetic suspension bearing control parameter setting method and device, storage medium and electronic equipment
CN120926188A
