Intelligent optimization method and system for infilled well location of oil field and medium
By randomly selecting grids, numerical simulations and machine learning model predictions in high-water-cut oil fields, the problem of large errors and heavy calculations in determining infill well locations in the existing technology is solved, and fast and accurate determination of optimal infill well locations is achieved. .
Patent Information
- Application Number
- CN202410868176.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-01
AI Technical Summary
The existing methods for determining the location of infill wells have problems such as large errors, large amounts of calculations, and easy falling into local optimal solutions. It is difficult to quickly and accurately determine the optimal location of infill wells in oil fields with high water cut.
By randomly selecting a preset number of grids within the effective grid range where no wells have been drilled in the target reservoir, numerical simulations are performed to screen the factors influencing key infill well locations, and machine learning models are used to train and predict the optimal infill well locations.
It achieves the rapid and accurate determination of the optimal infill well location in high water-cut oil fields, improves calculation efficiency, reduces errors, and avoids local optimal solutions.
Smart Images

Figure CN118855447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of oil and gas field development, and in particular to an intelligent optimization method, system and medium for infill well locations in an oil field. Background Art
[0002] More than 70% of my country's oil reserves and production come from water-driven oilfields. After more than 50 years of development, it has entered a high water-cut stage. Well network densification can improve the spread of injected water and is an important means of flow field regulation in high-water-cut oilfields. Well network densification is a measure to adjust the well network in the oilfield block based on the known number of densified wells and the types of densified wells for injection and production, which can effectively improve the recovery rate of water-driven oilfields.
[0003] Commonly used methods for determining infill well locations include artificial experience methods, reservoir engineering methods, vector well network methods, and optimization methods based on numerical simulation. The empirical method is based on artificial experience to screen the best solution, which may miss the optimal solution and is difficult to comprehensively consider the influence of multiple factors; the reservoir engineering method has a fast solution speed, but the assumptions are too ideal, and the scope of application is limited. It is mainly suitable for homogeneous reservoirs and simple regular well networks; the vector well network method aims to maximize balanced displacement, but there is a problem of incomplete consideration of factors; the optimization method based on numerical simulation requires multiple calls to the reservoir numerical simulator during the optimization process, which has problems such as large amount of calculation, easy to fall into local optimal solutions, and inconvenient application. Summary of the invention
[0004] The purpose of the present invention is to provide an intelligent optimization method, system and medium for oilfield infill well locations, which can quickly and accurately determine the locations of optimal infill wells.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] The present invention provides an intelligent optimization method for infill well locations in an oil field, comprising:
[0007] Randomly select a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled, and obtain a variety of spatial location layout plans for infill wells;
[0008] For each of the spatial position layout schemes of the infill wells, numerical simulation is performed under the preset infill well conditions to obtain a variety of different infill well numerical simulation results; based on the infill well numerical simulation results, the simulation data of the cumulative oil production of the entire area of the target oil reservoir at a preset time or the simulation data of the economic net present value is determined;
[0009] Determine the factors affecting the infill well locations in the target reservoir and select the key infill well location influencing factors;
[0010] For each of the spatial location layout plans of the infill wells, the key infill well location influencing factors are used as input, and the corresponding cumulative oil production simulation data of the entire area or the economic net present value simulation data are used as output to train a machine learning model to obtain a prediction model;
[0011] Obtain all valid grid positions of the oil reservoir to be optimized at the target time without drilling wells, input the key infill well location influencing factors at each valid grid position into the prediction model, and obtain the cumulative oil production prediction data or economic net present value prediction data of the whole area corresponding to each valid grid position;
[0012] The optimal infill well location is determined based on the cumulative oil production forecast data for the entire area or the economic net present value forecast data.
[0013] The present invention also provides an intelligent optimization system for infill well locations in an oil field, comprising:
[0014] A layout scheme determination module is used to randomly select a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled, and obtain spatial position layout schemes for multiple infill wells;
[0015] A numerical simulation module is used to perform numerical simulation on the spatial position layout of each infill well under a preset infill well condition to obtain a variety of different infill well numerical simulation results; and to determine the total oil production simulation data or economic net present value simulation data of the target oil reservoir at a preset time according to the infill well numerical simulation results;
[0016] A key influencing factor determination module is used to determine the influencing factors of the infill well locations in the target reservoir and screen out the key infill well location influencing factors;
[0017] A model training module is used to train a machine learning model for the spatial location layout plan of each infill well, taking the key infill well location influencing factors as input and the corresponding cumulative oil production simulation data of the entire area or the economic net present value simulation data as output to obtain a prediction model;
[0018] A prediction module is used to obtain all valid grid positions of the oil reservoir to be optimized at the target time without drilling wells, input the key infill well position influencing factors at each valid grid position into the prediction model, and obtain the predicted data of the cumulative oil production of the whole area or the predicted data of the economic net present value corresponding to each valid grid position;
[0019] The optimal location determination module is used to determine the optimal infill well location based on the cumulative oil production forecast data of the entire area or the economic net present value forecast data.
[0020] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the intelligent optimization method for infilling well locations in a high-water-content oilfield.
[0021] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0022] The present invention provides an intelligent optimization method, system and medium for infill well positions in an oil field, which randomly determines the spatial position of infill wells within an effective grid range, and performs numerical simulation in combination with well condition data, thereby obtaining the simulated data of the cumulative oil production of the entire area (or the simulated data of the economic net present value NPV) of the target oil reservoir at different spatial positions of the infill wells based on the results of the numerical simulation, thereby using the simulated data of the cumulative oil production of the entire area (or the simulated data of the economic net present value NPV) and the corresponding key infill well position influencing factors to train a machine learning model to obtain a prediction model, thereby using the prediction model to predict the predicted data of the cumulative oil production of the entire area (or the economic net present value NPV) of the target oil reservoir at each effective grid position where no wells are drilled at the target time, and then determining the optimal infill well position according to the predicted data. The present invention can efficiently and accurately determine the optimal infill well position based on the optimization process of the above-mentioned optimal infill well position. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 A flow chart of an intelligent optimization method for infill well locations in an oil field provided in Example 1 of the present invention.
[0025] Figure 2 This is a schematic diagram of the design of a numerical simulation model scheme for well pattern encryption provided in Example 1 of the present invention.
[0026] Figure 3 A flow chart of the screening process of key infill well location influencing factors provided in Example 1 of the present invention.
[0027] Figure 4 This is the R-type clustering process provided in Example 1 of the present invention.
[0028] Figure 5 This is a NPV comparison chart of the predicted results and actual results of the reservoir model C provided in Example 1 of the present invention.
[0029] Figure 6This is an NPV diagram of the transfer learning prediction and actual results of reservoir model B provided in Example 1 of the present invention.
[0030] Figure 7 An intelligent optimization system for infill well locations in an oil field is provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0032] The technical idea of the present invention:
[0033] 1. Construct a sample set for optimizing infill well locations in high water-cut oil fields;
[0034] (1) Generate a numerical simulation plan for infill wells and perform numerical simulation of infill wells in the target reservoir:
[0035] A preset number of grids are randomly selected within the effective grid range of the target oil reservoir where no wells are drilled, and the random grid coordinates form the spatial location scheme of the infilled wells. The spatial location scheme of the infilled wells and the preset well conditions of the infilled wells (the well conditions of the infilled wells include but are not limited to: the working system of the infilled wells) form different numerical simulation schemes for the infilled wells. Numerical simulation is performed according to the numerical simulation scheme for the infilled wells, and then the simulation data of the cumulative oil production of the whole area at the preset time corresponding to the infilled wells in different numerical simulation schemes (or the simulation data of the economic net present value NPV) are determined from the numerical simulation results.
[0036] (2) A sample set is established based on the numerical simulation results of the infill wells in the target reservoir. The input variables of the data set are: overall water content (the overall water content here refers to the overall water content of the reservoir used when constructing the sample set), the location of the infill wells, the type of the infill wells, the perforation layer of the infill wells, the location of the old wells, the well spacing, the porosity, permeability, saturation, pressure, thickness, water content of each old well, cumulative oil production of each old well, cumulative water production of each old well, and cumulative water injection volume of each old well. The response variable of the data set is: the simulated data of the cumulative oil production of the whole area at the preset time corresponding to the infill wells (or the economic net present value). The variables of different numerical simulation schemes correspond to the response variables one by one and together constitute the sample set. The sample set is subjected to data preprocessing and divided into a training set and a validation set according to a preset ratio.
[0037] 2. Analysis of the main controlling factors for infill well locations;
[0038] Based on the optimized sample set of infill well locations, the key control factors of infill well locations are determined by feature selection method;
[0039] 3. Using the training data set to train a machine learning model;
[0040] According to the constructed encrypted well sample library, the overall water content, encrypted well coordinates, water content of each old well, cumulative oil production of each old well, cumulative water production of each old well, and cumulative injection volume of each old well are used as the model input, and the cumulative oil production of the whole area at different times (or economic net present value) is used as the output. Finally, the production dynamic prediction model based on the machine learning model is trained. Among them, the machine learning model can be an XGBoost model, or a random forest, support vector machine, multivariate linear regression, etc., which is not limited here and can be selected according to actual needs.
[0041] 4. Use the prediction model to predict the cumulative oil production (or economic net present value NPV) of the entire area corresponding to the infill wells of the target oil reservoir, and then obtain the optimal infill well location of the target oil reservoir at any time.
[0042] The purpose of the present invention is to provide an intelligent optimization method, system and medium for infill well locations in an oil field, by randomly determining the spatial location of infill wells within an effective grid range, and performing numerical simulation in combination with well condition data, thereby obtaining the simulated data of the total cumulative oil production of the target reservoir at different spatial locations of the infill wells (or the simulated data of the economic net present value NPV) based on the results of the numerical simulation, thereby using the simulated data of the total cumulative oil production (or the simulated data of the economic net present value NPV) and the corresponding key infill well location influencing factors to train an XGBoot prediction model, thereby using the trained XGBoot prediction model to predict the predicted data of the total cumulative oil production (or the predicted data of the economic net present value NPV) of the target reservoir at each effective grid location where no wells are drilled at the target time, and then determining the optimal infill well location based on the predicted data. The present invention can efficiently and accurately determine the optimal infill well location based on the above-mentioned optimization process of the optimal infill well location.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] Embodiment 1
[0045] like Figure 1 As shown, this embodiment provides an intelligent optimization method for infilling well locations in an oil field, which can be specifically applied to high-water-content oil fields, such as oil fields with an overall water content of more than 80% in the entire area, and can also be applied to oil fields with other water content values. The intelligent optimization method for infilling well locations in an oil field includes:
[0046] S1: Randomly select a preset number of grids within the effective grid range of the target oil reservoir without wells, obtain multiple spatial position layout schemes for infilled wells, and for each of the spatial position layout schemes for infilled wells. For the randomly selected preset number of grids, the preset number is no more than 20% of the effective grid number of the target oil reservoir without wells. In this embodiment, the preset number is 10% of the effective grid number of the target oil reservoir without wells.
[0047] S2: Perform numerical simulation under the preset infill well conditions to obtain a variety of different infill well numerical simulation results. Determine the simulated cumulative oil production data (or economic net present value simulation data NPV) of the target reservoir at the preset time according to the infill well numerical simulation results. The cumulative oil production is obtained by direct simulation, and the economic net present value simulation data is calculated based on the simulated cumulative oil production and cumulative water production.
[0048] A sample set for optimizing the infill well locations in high-water-cut oil fields is constructed through numerical simulation. For a typical oil reservoir, a numerical simulation model of a typical well group in the reservoir is designed and established for different injection-production well network forms and locations of new infill wells, taking into account the influence of geological factors, development factors and other factors. An interface between the numerical simulator and the machine learning platform is written to carry out numerical simulation research and quickly construct a sample library for infill well locations in old oil fields.
[0049] In order to make the sample library more representative, a large number of samples need to be constructed for different actual reservoirs. At the same time, the infill well location is also affected by different infill timings. Therefore, for different reservoir models, different water cuts are set as infill timings, and the infill well locations are randomly determined from the model and reservoir numerical simulation calculations are performed. The NPV is calculated based on the simulation results to construct a sample library for machine learning. The model scheme is as follows: Figure 2 shown.
[0050] In this example, two reservoir models were used and four different water cuts were set as infill opportunities. A total of 20 groups of different initial conditions were used and multiple numerical simulations were performed to construct an infill well location sample set, as shown in Table 1.
[0051] Table 1 Composition of the encrypted well sample library
[0052]
[0053]
[0054] S3: Determine the factors affecting the infill well locations in the target reservoir and screen out the key infill well location affecting factors.
[0055] Reservoir physical property characteristic parameters, seepage characteristic parameters and reservoir production control parameters will affect the determination of infill well locations during the development process, so they need to be considered comprehensively. Based on the information available when designing the infill well plan on site, the influencing factors are initially determined to be the overall water content, infill well location, infill well type, infill well perforation layer, old well location, well spacing, porosity, permeability, saturation, pressure, thickness at the infill well location, and production dynamic data of old wells (including the cumulative oil production, cumulative water production, cumulative water injection volume, and water content of each old well). A total of 15 parameters were determined.
[0056] First, data collection and preprocessing are performed on the 15 identified influencing factors. After obtaining the data of each influencing factor, the influencing factors of the infill well location are determined by the feature selection method. The specific process of the feature selection method is as follows: Figure 3 As shown. First, the scores of each factor are comprehensively ranked using multiple variable selection methods to select the top influencing factors. Then, the independence of each influencing factor is analyzed using the R-type clustering method to eliminate the influencing factors with strong correlation, and finally determine the influencing factors of the encrypted well location. Feature selection methods can be generally divided into three types: filtering method, embedding method and packaging method based on their feature selection methods.
[0057] The filtering method is to score and rank each feature in a statistical way, set a certain threshold, select and delete some features. Among them, the methods suitable for analyzing the main control factors are linear correlation degree (C), Pearson correlation test (PCC), and maximum information coefficient method (MIC). The features are ranked by measuring the nonlinear strength between the independent variable and the dependent variable.
[0058] The embedding method uses certain machine learning algorithms and models for training to obtain the weight coefficients of each feature, and select features according to the coefficients from large to small. The embedding method includes linear regression method (LR), L1 regularization (Lasso), L2 regularization (Ridge), and random forest (RFR), all of which can be used to evaluate the relationship between independent variables and dependent variables. The first three mainly use the linear or nonlinear regression relationship between the target and the feature, and use mathematical models to solve it. The last one is based on the idea of decision tree, using the random forest method in machine learning, based on the idea of bagging, and using information gain to judge the relationship between each feature and the target. The greater the information gain, the better the selectivity of this feature.
[0059] The packaging method uses the prediction effect of machine learning to give the score or effect display of the objective function, and select or exclude some feature variables. Here, the recursive feature selection method (RFE_lr) is used to analyze the relationship between each feature and the target. The core idea is to use a base model for multiple rounds of training. After each round of training, the features of several weight coefficients are removed, and then the next round of training is based on the new feature set.
[0060] For the above three types of feature selection methods, the filtering method mainly considers the impact of a single feature variable on the target, with fast operation speed and simple model, but it cannot consider the correlation between multiple variables; while the packaging method and the embedding method both process multivariate data through machine learning, and can perform multivariate and big data calculations, but the calculation process is relatively complex, and the calculation results depend on the accuracy of machine learning. In this embodiment, all of the above methods, namely C, PCC, MICLR, LR, Lasso, Ridge, RFR and RFE_lr, are used to obtain comprehensive feature selection results, and the main control factor variables are effectively screened to balance the advantages and disadvantages of each method, so that the obtained main control factors are more reasonable.
[0061] Taking the above reservoir model C as an example, data were collected for 15 influencing factors. Since the model has multiple wells, a total of 67 influencing variables were obtained. A certain influencing factor may correspond to multiple influencing variables. For example, for the influencing factor "water content of old wells", the 9 old wells in model C correspond to one water content respectively. Therefore, this influencing factor corresponds to the water content of the 9 old wells, that is, 9 influencing variables. After calculating the scores of each variable under different methods (referring to the scoring results of evaluating the "importance" of a certain factor), each score is normalized, and then all the scores of each variable under the same influencing factor are added together to obtain the influence coefficient S of the influencing factor x on the NPV evaluation index of the encrypted well location. ex , as shown in the following formula. Further, based on the influence coefficient of each variable, the main control factors affecting the infill well location can be preliminarily screened out. The screening criterion used here is that the influence coefficient of a certain variable is greater than 0.2.
[0062]
[0063] Among them, S ix S is the result of normalizing the evaluation score of the influencing factor x by the i-th feature selection model; ex is the influence coefficient of influencing factor x on the NPV of the infill well location evaluation index; n is the number of feature selection models.
[0064] The factors with an influence coefficient greater than 0.2 that were initially screened out include: overall water content, infill well location, well type of infill well, perforation layer of infill well, well spacing, cumulative oil production of old wells, cumulative water production of old wells, cumulative water injection of old wells, and water content of old wells. These variables were further subjected to R-type cluster analysis. Since the production dynamic data of old wells were normalized according to the well spacing in advance (i.e., the production dynamics were divided by the well spacing), the well spacing and the production dynamics of old wells showed a strong correlation in the clustering process, so the well spacing was removed from the influencing factors. Finally, 8 factors affecting the infill well location were determined: overall water content, infill well location, well type of infill well, perforation layer of infill well, water content of old wells, cumulative oil production of old wells, cumulative water production of old wells, and cumulative water injection of old wells. Table 2 shows some of the scoring results of the factors affecting the infill well location.
[0065] Table 2 Some scoring results of factors affecting infill well locations
[0066]
[0067]
[0068] Therefore, step S3 specifically includes:
[0069] (1) Preliminarily determine the factors affecting the infill well location in the target reservoir.
[0070] (2) Using a comprehensive feature selection method to perform feature selection on various influencing factors of the infill well locations in the target oil reservoir, and obtain preliminary influencing factors; the comprehensive feature selection method includes linear correlation degree, Pearson correlation test, maximum information coefficient method, linear regression method, L1 regularization, L2 regularization, random forest and recursive feature selection method.
[0071] (3) Using the R-type clustering algorithm, the correlation between the influencing factors of the initial well location is analyzed, and the influencing factors with correlations higher than a preset correlation threshold are eliminated to obtain the key influencing factors of the well location.
[0072] Among them, a comprehensive feature selection method is used to select the influencing factors of the infill well location in the target reservoir, and the preliminary influencing factors are obtained, which specifically include:
[0073] Analyzing each influencing factor of the infill well location in the target reservoir by using each feature selection method, and obtaining a score of each influencing factor corresponding to each feature selection method;
[0074] Using each feature selection method, the scores of the same influencing factor of the infilled well locations in the target oil reservoir are summed to obtain a comprehensive score of each influencing factor of the infilled well locations in the target oil reservoir;
[0075] The preliminary influencing factors are obtained by comparing the comprehensive score of each influencing factor of the infill well locations in the target oil reservoir with a preset threshold.
[0076] Regarding the R-type clustering method: First, determine the similarity measure of each influencing factor. The similarity measure is expressed as a correlation coefficient, and the single sample x in a single influencing factor is recorded as ij The value of (x 1j ,x 2j ,…,x nj ) T ∈R n (j=1,2,…,m). Then the two influencing factors x ij With x ik The correlation coefficient is calculated as follows:
[0077]
[0078] Where r jk is the correlation coefficient between the jth influencing factor and the kth influencing factor, x ij is the i-th sample in the j-th influencing factor, x ik is the i-th sample in the k-th influencing factor, is the arithmetic mean of the total samples in the jth influencing factor, is the arithmetic mean of the total samples in the kth influencing factor, n is the total number of samples in a single influencing factor, and each of the m influencing factors has n samples.
[0079] Secondly, the correlation coefficient is used to calculate the shortest distance between multiple influencing factors. The shortest distance is calculated as follows:
[0080]
[0081] Next, construct m classes, each of which contains a single influencing factor (G1, G2, G3, ..., G m ), merge the classes with the shortest distance in sequence until m classes are merged into one class, and the clustering is completed.
[0082] Finally, the clustering results were analyzed and the correlation coefficients of the influencing factors in the same category were calculated. ij The influencing factors with a value ≥0.8 were eliminated.
[0083] Specifically, the R-type clustering method is used to analyze the independence of various influencing factors, eliminate the influencing factors with strong correlation, and finally determine the influencing factors of the infill well location, which include:
[0084] (1) Determine the correlation coefficient between each two primary influencing factors.
[0085] (2) Treat each primary election influencing factor as a class.
[0086] (3) Determine the distance between each two classes based on the correlation coefficients between the primary influencing factors contained in each class; and regard the two classes corresponding to the shortest distance among all distances as the same class.
[0087] Return to step (3) "determine the distance between each two categories based on the correlation coefficients between the primary influencing factors contained in the current categories" until the clustering is finally completed into one category.
[0088] (4) Eliminate the primary influencing factors whose correlation coefficients are greater than a preset correlation threshold in the results of each clustering to obtain the key encrypted well location influencing factors.
[0089] The following is an example process of a specific clustering method:
[0090] First, each influencing factor is regarded as a class; for example, the six influencing factors shown in Table 3 constitute six classes.
[0091] Table 3 Initially, the six influencing factors constitute six categories
[0092] kind Influencing factors G1 X1 G2 X2 G3 X3 G4 X4 G5 X5 G6 X6
[0093] The correlation coefficient is symmetrical, so you can look at only half of it. In addition, all the data are directly assumed in the table here, and the actual data needs to be calculated based on r jk Table 4 shows the correlation coefficients among the six influencing factors.
[0094] Table 4 Correlation coefficients among the 6 influencing factors
[0095] X1 X2 X3 X4 X5 X6 X1 1 0.7 0.8 0.4 0.2 0.9 X2 0.7 1 0.5 0.8 0.4 0.3 X3 0.8 0.5 1 0.5 0.5 0.4 X4 0.4 0.8 0.5 1 0.9 0.5 X5 0.2 0.4 0.5 0.9 1 0.7 X6 0.9 0.3 0.4 0.5 0.7 1
[0096] First judgment: directly judge the minimum value in all data, and find that X1 and X5 have the shortest distance. After combining X1 and X5, recalculate the distance between classes and combinations and between combinations (hereinafter also called correlation coefficient). The calculation method is shown in the following formula:
[0097]
[0098] Table 5. Clustering process based on correlation coefficient
[0099] (X1, X5) X2 X3 X4 X6 (X1, X5) 1 0.55 0.65 0.65 0.8 X2 0.55 1 0.5 0.8 0.3 X3 0.65 0.5 1 0.5 0.4 X4 0.65 0.8 0.5 1 0.5 X6 0.8 0.3 0.4 0.5 1
[0100] Second judgment: First, we need to update the data in the table because we have changed from the initial 6 classes to 5 classes. At this time, we continue to judge the minimum value of all data and find that X2 and X6 have the shortest distance, so we continue to merge. From 5 classes to 4 classes. Table 6 shows the secondary clustering process based on the correlation coefficient.
[0101] Table 6 Secondary clustering process based on correlation coefficient
[0102] (X1, X5) (X2, X6) X3 X4 (X1, X5) 1 0.675 0.65 0.65 (X2, X6) 0.675 1 0.45 0.65 X3 0.65 0.45 1 0.5 X4 0.65 0.65 0.5 1
[0103] In the third judgment, similarly, it is found that X3 and X4 have the shortest distance, so continue to merge, reducing from 4 categories to 3. Table 7 shows the three-time clustering process based on the correlation coefficient.
[0104] Table 7 Three-dimensional clustering process based on correlation coefficient
[0105] (X1, X5) (X2, X6) (X3, X4) (X1, X5) 1 0.675 0.65 (X2, X6) 0.675 1 0.55 (X3, X4) 0.65 0.55 1
[0106] In the fourth judgment, similarly, it is found that (X2, X6) and (X3, X4) have the shortest distance, so continue to merge and reduce from 3 categories to 2 categories.
[0107] In the fifth judgment, (X2, X3, X4, X6) and (X1, X5) are combined into 1 category, and the clustering is completed. Figure 4 shown.
[0108] Furthermore, “Finally, the clustering results were analyzed and the correlation coefficients of the influencing factors in the same category were ij The factors with a correlation coefficient of ≥0.8 are eliminated. "For example, in the fourth judgment, (X2, X3, X4, X6) are merged, and in the original matrix, the correlation coefficient between X2 and X4 is 0.8, so X2 or X4 is eliminated.
[0109] S4: For each of the spatial layout plans of the infilled wells, the key infilled well location influencing factors are used as input, and the corresponding simulated data of the cumulative oil production in the whole area (or simulated data of the economic net present value NPV) is used as output to train the XGBoot model to obtain a prediction model. Here, the machine learning model uses the XGBoost model as an example.
[0110] The overall water content, the location of the infill wells, the well type of the infill wells, the perforation layer of the infill wells, the water content of each old well, the cumulative oil production of each old well, the cumulative water production of each old well, and the cumulative injection volume of each old well were used as the model input, and the cumulative oil production of the whole area at different times (or the economic net present value NPV) was used as the output. Finally, a prediction model based on XGBoost was constructed. After data processing, the input data (overall water content, the location of the infill wells, the well type of the infill wells, the perforation layer of the infill wells, the water content of each old well, the cumulative oil production of each old well, the cumulative water production of each old well, and the cumulative injection volume of each old well) totaled 8 variables, and the data label was the cumulative oil production at 10 moments, and finally 4816 groups of sample data were formed.
[0111] The prediction model based on XGBoost was trained with the above model input and output. The model hyperparameter values are shown in Table 8. After 20 trainings, a prediction model for predicting the total oil production (or economic net present value NPV) of the entire area at each effective grid position was obtained.
[0112] Table 8 XGBoost prediction model parameters
[0113] Parameter name Value Number of trees 374 Learning Rate 0.06 The maximum depth of each tree 5 The proportion of data used by each tree 0.7 The proportion of features used by each tree 0.9 Minimum splitting loss for each tree 0.2
[0114] In this embodiment, after executing step S4, the following steps are further included:
[0115] (1) inputting the verification samples of the key infill well location influencing factors into the prediction model to obtain the corresponding verification data of the total oil production of the whole area or the verification data of the economic net present value;
[0116] (2) Comparing the total oil production verification data of the whole area with the total oil production simulation data of the whole area at the same time, or comparing the economic net present value verification data with the economic net present value simulation data at the same time, to determine the prediction effect of the prediction model.
[0117] (3) If the prediction effect of the prediction model does not reach the preset effect, the number of spatial location layout plans for the infill wells is increased, and the process returns to step S1 of "randomly selecting a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled" to obtain more spatial location layout plans for the infill wells.
[0118] (4) If the prediction effect of the prediction model reaches the preset effect, the prediction model is used to predict the cumulative oil production data of the entire area or the economic net present value of the oil reservoir to be optimized.
[0119] S5: Obtain all valid grid positions of the oil reservoir to be optimized at the target time without drilling wells, input the key infill well location influencing factors at each valid grid position into the prediction model, and obtain the cumulative oil production prediction data or economic net present value prediction data of the entire area corresponding to each valid grid position. Figure 5 The NPV diagram of the predicted and actual results of reservoir model C. The left side shows the economic net present value corresponding to each effective grid position obtained by numerical simulation, and the right side shows the economic net present value corresponding to each effective grid position predicted by the trained prediction model. For reservoir model C, the R 2 The value is 0.9477, which is basically consistent with the data of the two methods, indicating that the method proposed by the present invention has high accuracy. Moreover, the calculation amount of the method proposed by the present invention is only 10% of that of the numerical simulation method, and the calculation efficiency is high.
[0120] Before executing step S5 of "obtaining all valid grid positions of the reservoir to be optimized at the target time without drilling wells", the following steps are included:
[0121] (1) Determine whether the oil reservoir to be optimized and the target oil reservoir are in the same block.
[0122] (2) If yes, then obtain the valid grid positions of all undrilled wells in the reservoir to be optimized at the target time.
[0123] (3) If not, a preset number of grids are randomly selected within the effective grid range of the oil reservoir to be optimized without drilling wells, and the corresponding spatial position layout schemes of multiple infill wells are obtained. The spatial position layout schemes of each infill well corresponding to the oil reservoir to be optimized are numerically simulated to obtain the simulated data of the cumulative oil production or the economic net present value of the whole area corresponding to the oil reservoir to be optimized; the prediction model is trained with the key infill well location influencing factors as input and the simulated data of the cumulative oil production or the economic net present value of the whole area of the corresponding oil reservoir to be optimized as output to obtain the prediction model after transfer learning, and the prediction model after transfer learning is used as the prediction model; the prediction model after transfer learning is used to predict the predicted data of the cumulative oil production or the economic net present value of the whole area of the oil reservoir to be optimized. The preset number of grids here can be grids within 10% of the number of all effective grids without drilling wells.
[0124] For the reservoir blocks corresponding to the sample set used in the prediction model training, the prediction model can be directly used for subsequent predictions. However, for the reservoir blocks other than the reservoir blocks corresponding to the sample set, a small number of numerical simulation schemes for infill wells in the reservoir blocks to be optimized are regenerated and numerical simulations are performed, and a supplementary sample data set is established based on the numerical simulation results. Then, the trained prediction model is retrained and parameter fine-tuned using the above supplementary sample data set, so that the model can determine the optimal infill well location for the reservoir blocks to be optimized other than the reservoir blocks corresponding to the sample set.
[0125] For reservoir model B, based on the prediction model trained by reservoir model C, 1% data of reservoir model B at different water contents were added as supplementary sample sets, totaling 892 groups of sample data. Then, the prediction model for reservoir model C that has been trained was retrained and parameter fine-tuned by adding 892 groups of sample data to obtain the prediction model after transfer learning. The hyperparameters of the prediction model after transfer learning are shown in Table 9.
[0126] Table 9 Prediction model parameters after transfer learning
[0127] Parameter name Value Number of trees 300 Learning Rate 0.1 The maximum depth of each tree 5 The proportion of data used by each tree 0.8 The proportion of features used by each tree 0.7 Minimum splitting loss for each tree 0.4
[0128] Figure 6The figure is a comparison chart of the transfer learning prediction results and the actual NPV of reservoir model B. For reservoir model B, although only 1% of the data of reservoir model B at different water cuts in the sample set in Table 1 was added as a supplementary sample set for transfer learning, it still achieved a high accuracy. The economic net present value of its numerical simulation and the economic net present value predicted by transfer learning R 2 The value is 0.9238. Therefore, the method proposed in the present invention can still ensure accurate and fast prediction when adding very little data, and has high portability.
[0129] S6: Determine the optimal location of the infill wells based on the predicted data of cumulative oil production in the entire area or the predicted data of economic net present value.
[0130] The infill well location corresponding to the maximum value among all the predicted cumulative oil production data or economic net present value predicted data for the entire area is determined as the optimal infill well location.
[0131] Obtain all valid grid positions of the target reservoir that have not been drilled at the target time, and use the XGBoost prediction model to predict the economic net present value of the infill wells for all positions one by one. The input parameters of the XGBoost prediction model are the x and y coordinates of each position, the well type of the infill well, the perforation layer of the infill well, the overall water content, the water content of each old well, the cumulative oil production of each old well, the cumulative water production of each old well, and the cumulative injection volume of each old well. The output parameter is the cumulative oil production (or economic net present value) of the infill wells at each position at the preset time. After completing the prediction of all positions of the target reservoir, the position corresponding to the maximum value of all predicted values is determined as the optimal infill well position of the target reservoir at the target time.
[0132] The advantages of the present invention are:
[0133] (1) The prediction model based on the machine learning model trained by the present invention can be used to efficiently determine the optimal infill well locations in other oil reservoirs through transfer learning. In simple terms, for example, for a block, if you want to obtain an XGBoost prediction model for infill well locations, you may need to perform numerical simulations of 5,000 schemes to construct a sample set. However, assuming that there is an XGBoost model trained in other blocks before, then on the basis of this model, you only need to add 50 groups of samples, and then train the XGBoost model again through transfer learning to obtain better results. Therefore, the method provided by the present invention has high portability;
[0134] (2) The key infill well location influencing factors input into the XGBoost prediction model of the present invention, such as the overall water content, the location of the infill well, the water content of each old well, the cumulative oil production of each old well, the cumulative water production of each old well, and the cumulative water injection volume of each old well, are all production dynamic parameters that are easy to obtain in the actual field. Therefore, when the trained XGBoost prediction model is used, it is only necessary to input the production dynamic parameters directly obtained on site, and no numerical simulation is required. In this way, even if there is no numerical simulation model for other oil reservoir blocks, the model can still be used to determine the optimal infill well location, so this method has stronger operability.
[0135] Embodiment 2
[0136] like Figure 7 As shown, this embodiment provides an intelligent optimization system for infilling wells in a high water-cut oil field, comprising:
[0137] The layout scheme determination module 100 is used to randomly select a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled, and obtain spatial position layout schemes for multiple infill wells.
[0138] The numerical simulation module 200 is used to perform numerical simulation on the spatial position layout of each infill well under the preset infill well conditions to obtain a variety of different infill well numerical simulation results. According to the infill well numerical simulation results, the cumulative oil production simulation data or the economic net present value simulation data of the target oil reservoir at a preset time is determined.
[0139] The key influencing factor determination module 300 is used to determine the influencing factors of the infill well locations in the target reservoir and screen out the key infill well location influencing factors.
[0140] The model training module 400 is used to train a machine learning model for the spatial location layout plan of each of the infill wells, using the key infill well location influencing factors as input and the corresponding cumulative oil production simulation data of the entire area or the economic net present value simulation data as output to obtain a prediction model.
[0141] The prediction module 500 is used to obtain all valid grid positions of the oil reservoir to be optimized at the target time, input the key infill well location influencing factors at each valid grid position into the prediction model, and obtain the cumulative oil production prediction data or economic net present value prediction data of the entire area corresponding to each valid grid position.
[0142] The optimal location determination module 600 is used to determine the optimal infill well location based on the cumulative oil production prediction data of the entire area or the economic net present value prediction data.
[0143] Embodiment 3
[0144] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the intelligent optimization method for infill well locations in an oil field according to the first embodiment.
[0145] In addition, this embodiment also provides an electronic device, including a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the intelligent optimization method for densely packed well locations in an oil field of embodiment one.
[0146] Optionally, the above-mentioned electronic device may be a server.
[0147] Embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0148] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0151] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0152] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. An intelligent optimization method for infill well locations in an oil field, characterized in that: include: Randomly select a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled, and obtain a variety of spatial location layout plans for infill wells; For each of the spatial position layout schemes of the infill wells, numerical simulation is performed under the preset infill well conditions to obtain a variety of different infill well numerical simulation results; Determine the total cumulative oil production simulation data or the economic net present value simulation data of the target oil reservoir at a preset time according to the numerical simulation results of the infill wells; Determine the factors affecting the infill well locations in the target reservoir and select the key infill well location influencing factors; For each of the spatial location layout plans of the infill wells, the key infill well location influencing factors are used as input, and the corresponding cumulative oil production simulation data of the entire area or the economic net present value simulation data are used as output to train a machine learning model to obtain a prediction model; Obtain all valid grid positions of the oil reservoir to be optimized at the target time without drilling wells, input the key infill well location influencing factors at each valid grid position into the prediction model, and obtain the cumulative oil production prediction data or economic net present value prediction data of the whole area corresponding to each valid grid position; The optimal infill well location is determined based on the cumulative oil production forecast data for the entire area or the economic net present value forecast data.
2. The intelligent optimization method for infill well locations in an oil field according to claim 1, characterized in that: Determine the factors affecting the infill well location in the target reservoir and screen out the key factors affecting the infill well location, including: Preliminarily determine the factors affecting the infill well locations in the target reservoir; Using a comprehensive feature selection method to select the influencing factors of the infill well location in the target reservoir, and obtain the preliminary influencing factors; the comprehensive feature selection method includes linear correlation degree, Pearson correlation test, maximum information coefficient method, linear regression method, L1 regularization, L2 regularization, random forest and recursive feature selection method; The correlation between the primary influencing factors is analyzed using an R-type clustering algorithm, and the influencing factors with correlations higher than a preset correlation threshold are eliminated to obtain the key encrypted well location influencing factors.
3. The intelligent optimization method for infill well locations in an oil field according to claim 1, characterized in that: A comprehensive feature selection method is used to select the influencing factors of the infill well location in the target reservoir, and the preliminary influencing factors are obtained, which specifically include: Analyzing each influencing factor of the infill well location in the target reservoir by using each feature selection method, and obtaining a score of each influencing factor corresponding to each feature selection method; Using each feature selection method, the scores of the same influencing factor of the infilled well locations in the target oil reservoir are summed to obtain a comprehensive score of each influencing factor of the infilled well locations in the target oil reservoir; The preliminary influencing factors are obtained by comparing the comprehensive score of each influencing factor of the infill well locations in the target oil reservoir with a preset threshold.
4. The intelligent optimization method for infilling wells in an oil field according to claim 3 is characterized in that: The correlation between the primary influencing factors is analyzed using the R-type clustering algorithm, and the influencing factors with correlations higher than the preset correlation threshold are eliminated to obtain the key infill well location influencing factors, which specifically include: Determine the correlation coefficient between each two primary influencing factors. Treat each primary election influencing factor as a class; According to the correlation coefficients between the primary influencing factors contained in the current categories, the distance between each two categories is determined, and the two categories corresponding to the shortest distance among all distances are regarded as the same category; Return to step "determine the distance between each two categories based on the correlation coefficients between the primary influencing factors contained in the current categories" until the clustering is finally completed into one category; The primary influencing factors with correlation coefficients greater than a preset correlation threshold in the results of each clustering are eliminated to obtain the key encrypted well location influencing factors.
5. The intelligent optimization method for infilling wells in an oil field according to claim 4, characterized in that: The key factors affecting the location of infill wells include: overall water content, location of infill wells, type of infill wells, perforation layer of infill wells, water content of old wells, cumulative oil production of old wells, cumulative water production of old wells and cumulative water injection of old wells.
6. The intelligent optimization method for infill well locations in an oil field according to claim 1, characterized in that: Determine the optimal infill well location based on the total oil production forecast data or economic net present value forecast data for the entire area, including: The infill well position corresponding to the maximum value among all the predicted data of cumulative oil production in the whole area or the predicted data of economic net present value is determined as the optimal infill well position.
7. The intelligent optimization method for infilling wells in an oil field according to claim 1, characterized in that: Before executing the step "obtaining all valid grid positions of the reservoir to be optimized at the target time without drilling wells", include: Determining whether the oil reservoir to be optimized and the target oil reservoir are in the same block; If so, then obtain the valid grid positions of all undrilled wells in the reservoir to be optimized at the target time; If not, a preset number of grids are randomly selected within the effective grid range of the oil reservoir to be optimized without drilling wells, and the corresponding spatial position layout schemes of multiple infill wells are obtained, and the spatial position layout schemes of each infill well corresponding to the oil reservoir to be optimized are numerically simulated to obtain the simulated data of the cumulative oil production of the whole area or the simulated data of the economic net present value corresponding to the oil reservoir to be optimized; Taking the key encrypted well location influencing factors as input and the corresponding simulated data of the cumulative oil production in the entire area or the simulated data of the economic net present value of the oil reservoir to be optimized as output, the prediction model is trained to obtain the prediction model after transfer learning, and the prediction model after transfer learning is used as the prediction model; the prediction model after transfer learning is used to predict the predicted data of the cumulative oil production in the entire area or the predicted data of the economic net present value of the oil reservoir to be optimized.
8. The intelligent optimization method for infilling wells in an oil field according to claim 1, characterized in that: After executing the step of "for each of the spatial location layout plans of the infilled wells, taking the key infilled well location influencing factors as input and the corresponding simulated data of the cumulative oil production of the entire area or the simulated data of the economic net present value as output, training the machine learning model to obtain a prediction model", it also includes: Input the verification samples of the key infill well location influencing factors into the prediction model to obtain the corresponding verification data of the total oil production in the whole area or the verification data of the economic net present value; Comparing the total oil production verification data of the whole area with the total oil production simulation data of the whole area at the same time, or comparing the economic net present value verification data with the economic net present value simulation data at the same time, to determine the prediction effect of the prediction model; If the prediction effect of the prediction model does not reach the preset effect, the number of spatial location layout schemes of the infill wells is increased, and the process returns to the step of "randomly selecting a preset number of grids within the effective grid range of the target reservoir where no wells have been drilled"; If the prediction effect of the prediction model reaches the preset effect, the prediction model is used to predict the total oil production data or the economic net present value of the oil reservoir to be optimized.
9. An intelligent optimization system for infill well locations in oil fields, characterized in that: The system comprises: A layout scheme determination module is used to randomly select a preset number of grids within the effective grid range of the target oil reservoir where no wells have been drilled, and obtain spatial position layout schemes for multiple infill wells; A numerical simulation module is used to perform numerical simulation on the spatial position layout of each infill well under a preset infill well condition to obtain a variety of different infill well numerical simulation results; and to determine the total oil production simulation data or economic net present value simulation data of the target oil reservoir at a preset time according to the infill well numerical simulation results; A key influencing factor determination module is used to determine the influencing factors of the infill well locations in the target reservoir and screen out the key infill well location influencing factors; A model training module is used to train a machine learning model for the spatial location layout plan of each infill well, taking the key infill well location influencing factors as input and the corresponding cumulative oil production simulation data of the entire area or the economic net present value simulation data as output to obtain a prediction model; A prediction module is used to obtain all valid grid positions of the oil reservoir to be optimized at the target time without drilling wells, input the key infill well position influencing factors at each valid grid position into the prediction model, and obtain the predicted data of the cumulative oil production of the whole area or the predicted data of the economic net present value corresponding to each valid grid position; The optimal location determination module is used to determine the optimal infill well location based on the cumulative oil production forecast data of the entire area or the economic net present value forecast data.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the intelligent optimization method for infill well locations in an oil field as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Horizontal well gel profile control parameter optimization method
CN113297740A
Fault block oil reservoir remaining oil prediction method based on generative adversarial neural network
CN114764546A
Well location and injection-production parameter joint optimization method based on time sequence multi-target prediction model
CN115906675A
Oil reservoir production index machine learning prediction method fusing spatial-temporal characteristics
CN116542429A
Water-drive reservoir well pattern and perforation interval comprehensive adjustment optimization method and system
CN117291125A
Cited By
Intelligent oil reservoir simulation and safety prediction system
CN119962013A
Injection-production regulation and control method, device and equipment
CN121803209A
Single-well water control measure decision-making method and system based on mechanical subdivision
CN121875671A
