Horizontal well fracture pressure prediction method driven by data mining and mechanism model fusion

Through the integration of data mining and mechanism models, combined with rock mechanics and machine learning, a horizontal well fracture pressure prediction model was established, which solved the problems of low computational efficiency and poor generalization ability in the existing technology, and achieved more accurate fracture pressure prediction. .

CN118673799APending Publication Date: 2024-09-20SOUTHWEST PETROLEUM UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410758834.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing mechanism models are difficult to accurately and efficiently calculate the fracture pressure of tight gas horizontal wells, and machine learning algorithms have poor generalization capabilities due to insufficient data and over-fitting phenomena, making it difficult to effectively predict fracture pressure.

Method used

Through the fusion of data mining and mechanism models, rock static parameters are collected, a dynamic-static conversion model of rock mechanics is established, the mechanism prediction model and field sample data are combined, a machine learning algorithm is used to establish an algorithm prediction model, and the fusion generates a horizontal well fracture pressure prediction model, and Hyperparameters are optimized through the TPE algorithm of Gaussian mixture models.

Benefits of technology

It improves the accuracy and generalization ability of horizontal well fracture pressure prediction, solves the problems of low iterative calculation efficiency and over-fitting, and achieves more accurate fracture pressure prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673799A
    Figure CN118673799A
Patent Text Reader

Abstract

The invention discloses a data mining and mechanism model fusion driven horizontal well fracture pressure prediction method, which comprises the following steps: obtaining rock mechanics static parameters and dynamic parameters through a rock mechanics experiment, and establishing a rock mechanics dynamic-static conversion model; establishing a mechanism prediction model through the mechanism model and obtaining mechanism sample data; acquiring field sample data, and establishing an algorithm prediction model through a machine algorithm; and fusing mechanism sample data into field sample data to establish a horizontal well fracture pressure prediction fusion model driven by fusion of data mining and a mechanism prediction model, so as to solve the problems that the iterative calculation efficiency of the mechanism prediction model is low, and the complex geological condition of a compact sandstone reservoir is difficult to comprehensively reflect. An algorithm prediction model established by pure field sample data has the problems of weak generalization ability and overfitting phenomenon.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of petroleum engineering, and in particular relates to a method for predicting horizontal well fracture pressure driven by the fusion of data mining and mechanism model. Background Art

[0002] Accurate calculation of formation breakdown pressure is the key to the success of tight gas horizontal well fracturing. Since the first use of hydraulic fracturing technology for oil development in 1947, domestic and foreign scholars have never stopped studying the mechanical model for calculating breakdown pressure. However, rock fracturing is an extremely complex multi-field coupling process. The mutual influence of various factors and the complexity of tight sandstone formation conditions, coupled with the influence of casing cement sheath and induced stress generated by pre-fracture, make it extremely difficult to calculate and study the breakdown pressure from the perspective of the mechanism model. The mechanical model for calculating the breakdown pressure is often based on certain specific assumptions, and then an approximate expression is obtained based on the theoretical assumptions, and then an approximate solution for the breakdown pressure is obtained. At the same time, the model requires complex iterative calculations during the calculation process, which makes the calculation efficiency of the breakdown pressure slow. Therefore, there is still no universal mechanism model that can accurately and efficiently calculate the hydraulic fracturing breakdown pressure.

[0003] With the explosive growth of the integration of machine learning and the oilfield industry, many scholars have used machine learning algorithms to predict the fracture pressure of rocks in fracturing operations. Since machine learning essentially uses algorithms to fit real data, the learning effect depends to a great extent on the quantity and quality of data. However, in terms of data scale, oilfield databases cannot be expanded as quickly as commercial databases, and there are only a small number of samples of the fracture pressure of the same block in actual fracturing operations; at the same time, there is a problem of missing data in some samples. Therefore, due to the limitation of the number of actual oilfield samples, when a single learner algorithm is used to model and predict the fracture pressure of a certain block, overfitting occurs and the generalization ability of the prediction model is poor. Summary of the invention

[0004] The purpose of the present invention is to provide a horizontal well fracture pressure prediction method driven by the fusion of data mining and mechanism model, which can improve the prediction accuracy and generalization ability of the horizontal well fracture pressure prediction fusion model by combining the mechanism prediction model with field sample data.

[0005] The present invention is achieved through the following technical solutions:

[0006] The method for predicting horizontal well fracture pressure driven by the fusion of data mining and mechanism model includes the following steps:

[0007] S1: Collect rocks from the target area and obtain rock mechanics static parameters through rock mechanics experiments.

[0008] S2: Calculate rock dynamic parameters through rock mechanics static parameters and establish a rock mechanics dynamic-static conversion model.

[0009] S3: Establish a mechanism prediction model through the mechanism model and obtain mechanism sample data.

[0010] S4: Obtain on-site sample data and establish an algorithm prediction model through machine algorithms.

[0011] S5: Combine the mechanism prediction model with the algorithm prediction model to obtain a fusion model for horizontal well fracture pressure prediction.

[0012] Furthermore, in step S1, the rock mechanics static parameters obtained through the rock mechanics experiment include: static parameters of elastic modulus, static parameters of Poisson's ratio, static parameters of tensile strength and static parameters of ground stress.

[0013] Furthermore, the specific method for calculating the rock dynamic parameters through the rock mechanics static parameters in step S2 is: by combining the rock mechanics static parameters with the acoustic wave time difference logging calculation model, the dynamic parameters of elastic modulus, Poisson's ratio, tensile strength and ground stress are obtained.

[0014] Furthermore, in step S3, the specific operation steps of establishing the mechanism prediction model through the mechanism model include: establishing a stress field model around the well for staged fracturing of horizontal wells, combining the stress field model around the well for staged fracturing of horizontal wells with the rock fracture criterion to establish a mechanism prediction model, and generating mechanism sample data of feedback fracture pressure through the mechanism prediction model.

[0015] Furthermore, the superposition principle is adopted when establishing the horizontal well staged fracturing wellbore stress field model, including the parameter judgment of the original stress, the wellbore internal pressure, the rock thermal effect, the fracturing fluid seepage effect and the casing cement ring.

[0016] Furthermore, in step S4, the specific steps of establishing the algorithm prediction model through the machine algorithm include: after obtaining the field sample data, screening the machine algorithm input parameters based on the model evaluation index, and establishing the algorithm prediction model based on the combination of the field sample data and the machine algorithm.

[0017] Furthermore, the specific method for obtaining the field sample data is: integrating the field actual data of the target block's fracture pressure, and obtaining the field sample data of the field actual fracture pressure through data preprocessing.

[0018] Furthermore, the machine algorithm includes a machine learning algorithm and an integrated algorithm. The machine learning algorithm includes: KNN, linear regression, SVR and Lasso; the integrated algorithm includes: random forest, AdaBoost, GBDT and XGBoost.

[0019] Furthermore, in step S5, when the mechanism prediction model is combined with the algorithm prediction model, the ratio of the field sample data to the mechanism sample data is 1:1.5.

[0020] Furthermore, after obtaining the horizontal well fracture pressure prediction fusion model, a TPE algorithm based on a Gaussian mixture model is used to optimize the hyperparameters of the horizontal well fracture pressure prediction fusion model.

[0021] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0022] 1) In the present invention, a mechanism prediction model is established through a mechanism model and mechanism sample data is obtained, the field data is integrated, an algorithm prediction model is established through a machine algorithm, and the mechanism sample data is fused into the field sample data to establish a horizontal well fracture pressure prediction fusion model driven by data mining and mechanism prediction model fusion, which is used to solve the problems that the iterative calculation efficiency of the mechanism prediction model is slow and it is difficult to fully reflect the complex geological conditions of the tight sandstone reservoir, and the algorithm prediction model established with pure field sample data has weak generalization ability and overfitting phenomenon.

[0023] 2) In the present invention, the fusion ratio of the mechanism sample data and the field sample data is optimized and the TPE algorithm based on the Gaussian mixture model is adopted to optimize the fusion-driven horizontal well fracture pressure prediction fusion model, thereby improving the accuracy of the horizontal well fracture pressure prediction fusion model. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 It is a logic block diagram of the horizontal well fracture pressure prediction method driven by the fusion of data mining and mechanism model of the present invention.

[0026] Figure 2 It is a schematic diagram comparing the on-site construction fracture pressure at different perforation positions of Well A in the present invention and the fracture pressure predicted by the mechanism prediction model.

[0027] Figure 3 This is a schematic diagram comparing the on-site construction fracture pressure at different perforation positions of Well B in the present invention with the fracture pressure predicted by the mechanism prediction model.

[0028] Figure 4 This is a schematic diagram of the root mean square error of the 5-fold cross validation of the four integrated algorithms in the present invention.

[0029] Figure 5 Schematic diagram of the analysis of the prediction effect of the algorithm prediction model in the present invention on unknown data.

[0030] Figure 6 This is a comparison chart of the root mean square error before and after the data set is integrated into the present invention.

[0031] Figure 7 This is a comparison chart of correlation coefficients before and after the data set is integrated into the present invention.

[0032] Figure 8 This is a comparison chart of the mean absolute percentage error before and after the data set is integrated into the present invention.

[0033] Fig. 9 This is the RMSE graph of the 5-fold cross-validation training set and test set in the present invention.

[0034] Fig.10 It is a schematic diagram of comparative analysis before and after optimization of the horizontal well fracture pressure prediction fusion model in the present invention.

[0035] Fig.11 It is a schematic diagram of the fracture pressure prediction results after the horizontal well fracture pressure prediction fusion model is optimized in the present invention.

[0036] Fig.12 It is a schematic diagram of the prediction results of unknown data by the horizontal well fracture pressure prediction fusion model in the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0038] The horizontal well fracture pressure prediction method driven by the fusion of data mining and mechanism model, such as Figure 1 As shown, the following steps are included:

[0039] S1: Collect rocks from the target area and obtain rock mechanics static parameters through rock mechanics experiments.

[0040] S2: Calculate rock dynamic parameters through rock mechanics static parameters and establish a rock mechanics dynamic-static conversion model.

[0041] S3: Establish a mechanism prediction model through the mechanism model and obtain mechanism sample data.

[0042] S4: Obtain on-site sample data and establish an algorithm prediction model through machine algorithms.

[0043] S5: Combine the mechanism prediction model with the algorithm prediction model to obtain a fusion model for horizontal well fracture pressure prediction.

[0044] In step S1, the rock mechanics static parameters obtained through rock mechanics experiments include: static parameters of elastic modulus, static parameters of Poisson's ratio, static parameters of tensile strength and static parameters of ground stress; the specific method for calculating rock dynamic parameters through rock mechanics static parameters in step S2 is: by combining the rock mechanics static parameters with the acoustic time difference logging calculation model, the dynamic parameters of elastic modulus, dynamic parameters of Poisson's ratio, dynamic parameters of tensile strength and dynamic parameters of ground stress are obtained.

[0045] First, we collected dense sandstone in the target area and conducted rock mechanics experiments indoors to obtain static parameters of rock mechanics, including static parameters of elastic modulus, Poisson's ratio, tensile strength and ground stress, etc. Then, we combined the static parameters of rock mechanics with the acoustic time difference logging calculation model to obtain dynamic parameters of rock mechanics, including:

[0046] Dynamic parameters of elastic modulus:

[0047] Poisson's ratio dynamic parameters:

[0048] Dynamic parameters of tensile strength:

[0049] Dynamic parameters of geostress, which include minimum horizontal principal stress and maximum horizontal principal stress;

[0050] Minimum horizontal principal stress:

[0051] Maximum horizontal principal stress:

[0052] Where E d ——dynamic elastic modulus (GPa);

[0053] E s ——Static elastic model (GPa);

[0054] ρ——Rock density (g / cm 3 );

[0055] Δt p ——Longitudinal wave time difference (us / m);

[0056] Δt s ——S-wave time difference (us / m);

[0057] μ d ——Dynamic Poisson's ratio.

[0058] μs ——Static Poisson's ratio.

[0059] R 2 ——Correlation coefficient

[0060] σ v ——overlying stratum stress (MPa);

[0061] σ H ——maximum horizontal principal stress (MPa);

[0062] σ h ——minimum horizontal principal stress (MPa);

[0063] P p ——Formation pore pressure (MPa);

[0064] α——effective stress coefficient;

[0065] The rock mechanics dynamic-static conversion model provides data support for subsequent fracture pressure calculations.

[0066] Embodiment 1:

[0067] In the above step S3, the specific operation steps of establishing the mechanism prediction model through the mechanism model include: establishing a horizontal well staged fracturing well surrounding stress field model, combining the horizontal well staged fracturing well surrounding stress field model with the rock fracture criterion to establish the mechanism prediction model, and generating mechanism sample data of feedback fracture pressure through the mechanism prediction model; the superposition principle is adopted when establishing the horizontal well staged fracturing well surrounding stress field model, including parameter judgment of in situ stress, wellbore internal pressure, rock thermal effect, fracturing fluid seepage effect and casing cement ring.

[0068] In the above step S4, the specific steps of establishing the algorithm prediction model by the machine algorithm include: after obtaining the field sample data, implementing the screening of the machine algorithm input parameters based on the model evaluation index, and establishing the algorithm prediction model based on the field sample data and the machine algorithm; the specific method of obtaining the field sample data is: integrating the field actual data of the fracture pressure of the target block, and obtaining the field sample data of the actual fracture pressure by data preprocessing;

[0069] The machine algorithms include machine learning algorithms and integrated algorithms. The machine learning algorithms include: KNN, linear regression, SVR and Lasso; the integrated algorithms include: random forest, AdaBoost, GBDT and XGBoost;

[0070] In the above step S5, when the mechanism prediction model is combined with the algorithm prediction model, the ratio of the field sample data to the mechanism sample data is 1:1.5.

[0071] In this embodiment, it is first necessary to establish a mechanism prediction model. In order to calculate the fracture pressure, the superposition principle is used to comprehensively consider the original stress, wellbore internal pressure, rock thermal effect, fracturing fluid seepage effect, casing cement ring influence, etc. to establish a stress field model around the casing completion horizontal well staged fracturing wellbore. Combined with the rock fracture criterion, an iterative algorithm is used to establish the mechanism prediction model.

[0072] First, a stress field model of the horizontal well staged fracturing well is established. The stress state of the horizontal wellbore and perforation holes in the actual formation is relatively complex. This embodiment makes the following assumptions to facilitate analysis and calculation:

[0073] 1: The rock is a homogeneous and isotropic body;

[0074] 2: Rock deformation is in a linear elastic state;

[0075] 3: The inside of the wellbore and the hole are subject to uniform liquid pressure;

[0076] 4: Not considering the changes in mechanical properties caused by the physical and chemical interactions between rocks and well fluids

[0077] 5: The cement ring is well bonded.

[0078] The in-situ stress field, the perforation hole stress field, the casing cement sheath and the fracturing fluid seepage effect, and the induced stress field generated by the rock thermal effect are superimposed by the superposition principle to obtain the perforation hole wall stress distribution. The calculation formula is:

[0079]

[0080] Where σ xx , σ yy , σ zz ——normal stress component in the coordinate system (x, y, z) (MPa);

[0081] τ xy , τ yz , τ xz ——shear stress component in the coordinate system (x, y, z) (MPa);

[0082] β——Horizontal wellbore azimuth (°).

[0083] σ rc , σ θc ——Radial stress and circumferential stress induced by casing around the wellbore (MPa);

[0084] P w ——Wellbore fracturing fluid pressure (MPa);

[0085] R o , R i——Outer and inner diameters of casing (m);

[0086] E C ——elastic modulus of the casing (GPa);

[0087] ν c ——Poisson’s ratio of casing.

[0088] α T ——Coefficient of thermal expansion (1 / ℃);

[0089] φ——rock porosity;

[0090] ΔT——formation temperature increment (℃);

[0091] σ z ——Radial stress and circumferential stress induced by casing around the wellbore (MPa);

[0092] p p ——Formation pore pressure (MPa);

[0093] θ′——crack initiation angle (°).

[0094] δ——permeability coefficient;

[0095] c——correction coefficient;

[0096] τ rθ , τ θz , τ rz ——shear stress component at the wellbore wall (MPa);

[0097] σ r ——wellbore radial stress (MPa);

[0098] σ z ——Axial stress of wellbore (MPa);

[0099] α——porous elastic coefficient.

[0100] Then, the mechanism prediction model is solved and the error is analyzed. By calculating the friction under different construction displacements, the wellhead fracture pressure is converted into the bottom hole fracture pressure one by one in combination with the liquid column pressure. The fracture pressure calculated by the mechanism prediction model is compared with the actual fracture pressure on site. Figure 2 and Figure 3 As shown in the figure, the average absolute error between the calculation results of the established mechanism prediction model and the actual fracture pressure of the on-site construction is 13.96%, indicating that the mechanism prediction model established based on the stress field distribution of horizontal wells can have a good prediction effect, and provide relatively reliable data support for the subsequent fusion of mechanism prediction model and data mining to predict the fracture pressure of horizontal wells.

[0101] Then, the prediction model of the horizontal well fracture pressure prediction algorithm is established through machine algorithms and field sample data is obtained. The machine algorithms include traditional machine learning algorithms and integrated algorithms; the integrated algorithms will train multiple weak evaluators and combine their output results in some way to solve a problem. Weak classifier integration mainly focuses on the integration of traditional machine learning algorithms, such as bagging and boosting. Bagging is one of the most famous, simplest and most effective operations among all integrated algorithm methods. In the bagging integration, multiple weak evaluators are established in parallel, usually decision trees, or other nonlinear algorithms; when the target of the integrated algorithm is a regression task, the output result of the integrated algorithm is the average of the results output by the weak evaluators. In the field of "weak classifier integration" of integrated algorithms, in addition to bagging, which reduces variance to reduce overall generalization error, there is also boosting, which reduces overall deviation to reduce generalization error; compared with the bagging algorithm, the boosting algorithm is more difficult in operation and principle, but because it focuses on reducing deviation, the boosting algorithms have outstanding performance in model effects.

[0102]

[0103] Table 1: Classification comparison of ensemble algorithms

[0104] Integration algorithms usually include the following:

[0105] Random Forest Algorithm

[0106] Random forest is one of the most commonly used algorithms in the field of machine learning. Its algorithm construction process is very simple: randomly sample different subsets from the provided data to build multiple different decision trees, and integrate the results of a single decision tree according to the rules of bagging (average for regression and majority rule for classification). Although it is simple in principle, random forest has an extremely powerful learning ability, high algorithm complexity, and a certain ability to resist overfitting. It is fundamentally a superior algorithm to a single decision tree.

[0107] AdaBoost algorithm

[0108] Although AdaBoost (Adaptive Boosting) is not the first algorithm to practice the boosting idea, it is the first algorithm to successfully promote the boosting idea. The construction process of the AdaBoost algorithm is as follows: First, a decision tree is established on all samples. According to the prediction results and loss function values ​​of the decision tree, the sample weights of the samples that are predicted incorrectly in the data set are increased, and the weighted data set is used to train the next decision tree. This process is equivalent to intentionally increasing the weight of "samples that are difficult to be classified correctly" and reducing the weight of "samples that are easy to be classified correctly", and directing the attention of the weak evaluators to be established later to samples that are difficult to be classified correctly. In this process, the results of the previous decision tree affect the establishment of the next decision tree by affecting the sample weights, that is, affecting the data distribution. The whole process is adaptive. When all weak evaluators are established, the output H(x) of the integrated algorithm is equal to the weighted average of the output values ​​of all weak evaluators, and the weights used for weighting are also adaptively calculated during the tree building process.

[0109] GBDT Algorithm

[0110] Gradient Boosting Decision Tree (GBDT) is a representative algorithm in the boosting method. It is the basis of algorithms such as XGBoost and LGBM. It is also one of the most widely used and most stable ensemble algorithms in practical scenarios. It combines the ideas of bagging and boosting, and can accept various weak evaluators as input. However, unlike the AdaBoost algorithm, the GBDT algorithm makes several key changes in the overall tree building process: the output type of the weak evaluator of the GBDT algorithm is no longer consistent with the output type of the overall ensemble algorithm; in GBDT, the range of loss functions is no longer limited to a fixed or single loss function, but is extended to any differentiable function from a mathematical principle; GBDT directly affects the structure of subsequent weak evaluators by modifying the fitting target of subsequent weak evaluators. GBDT incorporates the idea of ​​random sampling in random forests. Before each tree building, it allows samples and features to be sampled to increase the independence between weak evaluators.

[0111] XGBoost Algorithm

[0112] Extreme Gradient Boosting (XGBoost) is a new generation of boosting algorithm based on the comprehensive upgrade of gradient boosting tree GBDT. XGBoost is an algorithm system with boosting tree as the core. It covers at least 3+ tree building processes and 10+ loss functions, and can realize various types of gradient boosting trees. At the same time, XGBoost is designed to support huge amounts of data, so it can be freely connected to GPU / distributed / database systems, and has also innovated many new methods for accelerating traditional boosting algorithms in engineering. In AdaBoost and GBDT, our goal is to find the minimum value of the loss function, that is, to minimize the difference between the predicted result and the actual result. This process only cares about accuracy, not complexity and overfitting. To address this problem, XGBoost draws experience from the anti-overfitting process of classic algorithms such as decision tree pre-pruning process, logistic regression, ridge regression, Lasso, etc., and adds a structural risk term to control overfitting in the loss function. It can be said that XGBoost is a milestone in the Boosting algorithm in the 21st century.

[0113] like Figure 4 As shown in the figure, this embodiment selects four integrated algorithms, namely random forest, AdaBoost, GBDT and XGBoost, to predict the field bursting pressure data of 200 sets of casing horizontal wells and build an algorithm prediction model. The eight geological parameters such as tensile strength are also used as model inputs, and the bursting pressure is used as model output. The prediction results of the four integrated algorithms for the bursting pressure are compared by 5-fold cross validation and other methods, and the optimal algorithm prediction model suitable for the prediction of the bursting pressure of tight sandstone casing completion horizontal wells is obtained.

[0114] algorithm Random Forest GBDT AdaBoost XGBoost average 50% off verification run time 1.841 1.432 1.812 1.809 1.724 RMSE of 5-fold validation test set 9.409 9.791 9.575 9.223 9.500 RMSE of 5-fold validation training set 3.450 2.061 6.055 0.208 2.944 5-fold validation MAPE 15.65% 19.16% 17.46% 13.31% 16.39% <![CDATA[50% off verification R 2 > 0.859 0.791 0.822 0.887 0.840

[0115] Table 2: Comparative analysis of the prediction results of the four integrated algorithms for field burst pressure data

[0116] From the comparison table of evaluation results of different algorithm prediction models in Table 2, it can be obtained that the average determination coefficient of the four integrated algorithms is 0.840, which is 13.8% higher than the average determination coefficient of the four single machine learning algorithms; the RMSE and MAPE of the integrated algorithm are 9.500 and 16.39%, respectively, which are 29% and 26% lower than those of the four single machine learning algorithms, respectively, indicating that the use of integrated algorithms for fracture pressure prediction has higher accuracy than that of single machine learning algorithms.

[0117] Among the four ensemble algorithms, the random forest algorithm has the longest running time, the GBDT algorithm is the fastest, and the running time of the AdaBoost algorithm and the XGBoost algorithm is similar. Under the default parameters, the RMSE of the XGBoost algorithm on the training set and the test set is 0.208 and 9.223, and the root mean square error is 13.31%, which are lower than other algorithms; the prediction determination coefficient is 0.887, which is higher than other algorithms. Therefore, the prediction results of the XGBoost algorithm are better than those of several other machine algorithms, and there is room for parameter adjustment in the model.

[0118] like Figure 5 As shown in the figure, although the XGBoost algorithm has good fitting and test results for the horizontal well fracture pressure, it is still necessary to further verify the algorithm's prediction ability for unknown data. Therefore, the XGBoost algorithm is used to predict the fracture pressure of 10 fracturing points in the new well.

[0119] Compared with the actual fracture pressure on site, the maximum absolute percentage error is 36.62%, the minimum is 3.93%, and the average is 17.90%, indicating that the generalization ability and stability of the algorithm prediction model are relatively weak when applied. This is because the fracture pressure samples of field data have a small fluctuation range, insufficient diversity and quantity. When directly simulating through data mining, the basis of the approximate function space is uncertain and directionless, and can only be fitted blindly using parameters, and the stability of the fitting cannot be guaranteed.

[0120] Finally, the mechanism prediction model is combined with the field sample data of the algorithm prediction model to obtain a fusion model for predicting the fracture pressure of horizontal wells; by establishing a dynamic-static conversion relationship model of rock mechanics in the target area and comprehensively considering the induction of multiple factors, a stress field model around the well for staged fracturing of horizontal wells is established, and 200 sets of mechanism sample data are calculated. In order to eliminate the influence of the number of samples on the results of the model and ensure that the total number of samples used in the algorithm prediction model established with pure field data is consistent, the total number of samples is set to 200 groups, including 100 groups of mechanism sample data and 100 groups of field sample data. Based on the four integrated algorithms, the fracture pressure of horizontal wells with casing completion in the target block is predicted and the corresponding algorithm prediction models are established. In order to prevent overfitting of the model, the average RMSE, R 2 And MAPE is used as a reference for the accuracy of machine algorithms. The comparison results of the four integrated algorithms are shown in the following table:

[0121] algorithm Random Forest GBDT AdaBoost XGBoost RMSE 9.216 8.931 8.459 7.796 MAPE 15.24% 14.69% 14.32% 10.35% <![CDATA[R 2 ]]> 0.863 0.846 0.871 0.915

[0122] Table 3: Comparative analysis of the prediction results of fusion rupture pressure data using four integrated algorithms

[0123] like Figure 6 , Figure 7 and Figure 8 As shown in the figure, the rupture pressure test results after the fusion of the field sample data of the algorithm prediction model and the mechanism sample data of the mechanism prediction model are compared with the rupture pressure test results of the simple field sample data:

[0124] from Figure 6 , 7 It can be seen from Figure 8 that, when the total number of samples remains unchanged, after adding the mechanism sample data to the field sample data, the prediction accuracy of the four integrated algorithm models for the fracture pressure is higher than that of the pure field data model, among which the XGBoost algorithm has the best prediction effect. When the ratio of field sample data to mechanism sample data is 1:1, the average absolute percentage error of the fracture pressure prediction is 10.35%, the correlation coefficient is 0.915, and the root mean square error is 7.796. The evaluation indicators of the horizontal well fracture pressure prediction fusion model are better than the prediction model established with the fracture pressure of pure field sample data, which further shows that the training process of constraining the data with the correct mechanism prediction model can effectively improve the prediction quality of the fracture pressure of the horizontal well.

[0125] Embodiment 2:

[0126] Based on the above embodiments, this embodiment further optimizes the horizontal well fracture pressure prediction fusion model. After obtaining the horizontal well fracture pressure prediction fusion model, the TPE algorithm based on the Gaussian mixture model is used to optimize the hyperparameters of the horizontal well fracture pressure prediction fusion model.

[0127] Bayesian optimization is a search method for automatically optimizing the hyperparameters of the horizontal well fracture pressure prediction fusion model. The principle is to establish a surrogate function based on the probability model based on the previous evaluation results of the objective function. The important work of the hyperparameter optimization algorithm is to optimize the expected increment; the TPE algorithm is a non-standard Bayesian optimization algorithm based on tree-structured Parzen density estimation proposed by Bergstra et al., which uses the method of simultaneously modeling p(x|y) and p(y) instead of the Gaussian process modeling only p(y|x).

[0128] The expected increment is calculated as:

[0129] Where EI – expected increment;

[0130] y * ——threshold of the objective function;

[0131] y——measured value of the objective function;

[0132] x – set of hyperparameters;

[0133] p(x|y) – alternative probability model, representing the probability of y under the hyperparameter set x;

[0134] p(x)——Probability under hyperparameter set x

[0135] p(y)——Probability under hyperparameter set y

[0136] According to Bayes' theorem:

[0137]

[0138] In the TPE algorithm, p(x|y) is defined as follows:

[0139]

[0140] Where l(x) is the loss function ratio of the observation x(i) to y * Small density composition;

[0141] g(x)——the loss function of observation x(i) compared to y * Large density composition.

[0142] That is, TPE is * The observations x on both sides have different distribution structures. We set a hyperparameter γ, which is the quantile of y. Therefore:

[0143] p(y<y * )=γ........(4)

[0144] By dividing formula (3), we can get:

[0145] p(x)=γl(x)+(1-γ)g(x)......(5)

[0146] Substituting formulas (4) and (5) into the following formula (6), the final expression of the expected increment can be obtained as follows:

[0147]

[0148] Where EI – expected increment;

[0149] y * ——threshold of the objective function;

[0150] y——measured value of the objective function;

[0151] x – set of hyperparameters;

[0152] γ——super parameter;

[0153] l(x)——the loss function ratio of observation x(i) to y * Small density composition;

[0154] g(x)——the loss function of observation x(i) compared to y * Large density composition.

[0155] From formula (6), we can see that in order to maximize the expected increment and obtain the optimal hyperparameters, we should find x so that g(x) / l(x) takes the minimum value, that is, approaching the minimum probability g(x) and the maximum probability l(x).

[0156] The XGBoost algorithm may cause the horizontal well fracture pressure prediction fusion model to be unstable, so it is necessary to try Bayesian optimization several times to observe the stability of the model. First, 5 Bayesian optimizations were completed, and the results are shown in the following table:

[0157]

[0158]

[0159] Table 4: Comparison of 5 Bayesian optimization results

[0160] According to the comparison of Bayesian optimization results in Table 4, it can be seen that the evaluation indicator is selected as "reg:squarederror" in all iterations, so the parameter is no longer searched. Similarly, the weak evaluator parameter is selected as "gbtree" in 5 runs, so it can be basically confirmed that using the "gbtree" tree is a better choice for the current data. For other parameters, the following three adjustment methods are used: if the selected optimal value has reached the end point (touched the top), the overall parameter space is adjusted to a larger direction; if it reaches the starting point (touched the bottom), the overall parameter space is adjusted to a smaller direction; if it is between the starting point and the end point, the optimal value range is expanded, the step size is reduced, and the parameter density is increased. For example, the number of iterations hits the bottom once and approaches the upper limit twice, so the original range (50, 150, 5) can be modified to (20, 180, 5); the result of the feature sampling ratio before node branching is more inclined to 1.0, so you can consider raising the lower limit (0.5, 1, 0.05); the result of the feature sampling ratio before tree building is evenly distributed between 0.3 and 1, so you can consider not changing the range but reducing the step size (0.3, 1, 0.05).

[0161] The other parameters are calculated in the same way, and the adjusted parameter space is shown in the following table:

[0162] parameter scope Iterations (20,180,5) Learning Rate (0.5,2,0.05) Weak Evaluator "gbtree" Feature sampling ratio: before tree building (0.3,1,0.05) Feature sampling ratio: before node branching (0.5,1,0.05) The coefficient before the number of leaf nodes (0,200,10) Regularization coefficient (100,700,25) The number of samples allowed on any node (0,50,1) Maximum Depth (2,15,1) The proportion of samples drawn (0.5,1,0.05) Evaluation Metrics "reg:squarederror"

[0163] Table 5: Adjusted parameter space

[0164] Five more Bayesian searches were performed on the adjusted parameter space, and the results are shown in the following table:

[0165]

[0166]

[0167] Table 6: Comparison of the results of five Bayesian optimizations on the adjusted parameter space

[0168] From the comparison of the results of five Bayesian optimizations in the adjusted parameter space, we can see in Table 6 that the best score obtained in the five searches is 5.861. Now try to verify this set of parameters on the validation function: perform a 5-fold cross validation after each iteration, and collect the mean RMSE of the training set and the mean RMSE of the test set on the cross validation. The validation results are as follows: Fig. 9 As shown;

[0169] like Fig.10 As shown in the figure, the comparative analysis before and after the optimization of the horizontal well fracture pressure prediction fusion model shows that after the TPE algorithm optimizes XGBoost, the average RMSE of the 5-fold cross-validation training set is 2.624, and the average RMSE of the test set is 5.936, which is 6.62% lower than before optimization, and the model quality is greatly improved; at the same time, compared with the RMSE before optimization, the test set score is improved, the training set score is reduced, and the overfitting phenomenon of the horizontal well fracture pressure prediction fusion model is reduced.

[0170]

[0171] Table 7: Comparative analysis of rupture pressure predictions of different models

[0172] From the comparative analysis of the fracture pressure prediction of different models in Table 7, it can be seen that the TPE-XGBoost algorithm, a fusion model for predicting fracture pressure in horizontal wells, is superior to the traditional mechanism prediction model, the algorithm prediction model established by pure field data, and the XGBoost model without parameter optimization in predicting fracture pressure. When the ratio of field sample data to mechanism sample data is 1:1.5, for example Fig.11 As shown in the figure, the optimized XGBoost model predicts the fracture pressure and compares it with the actual field value. The average relative error of the fracture pressure prediction is 5.87%, which can accurately predict the fracture pressure of the casing-completed horizontal well in the target block.

[0173] like Fig.12 As shown in Figure 2, in order to verify the generalization ability of the horizontal well fracture pressure prediction fusion model driven by the fusion of the data mining algorithm prediction model and the mechanism prediction model, the optimized horizontal well fracture pressure prediction fusion model is used to predict the fracture pressure of 10 fracturing points in the new well. The prediction results are shown in Figure 2. Fig.12As shown in the figure, compared with the actual fracture pressure in the field, the maximum absolute percentage error is 11.58%, the minimum is 2.21%, and the average is 7.45%. Compared with the generalization ability of the pure field data mining model, MAPE is reduced by 58.34%, indicating that the generalization ability of the horizontal well fracture pressure prediction fusion model is significantly improved after adding mechanism constraints, and it has a good prediction effect on unknown fracture pressure data.

[0174] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. A horizontal well fracture pressure prediction method driven by the fusion of data mining and mechanism model, characterized in that: The following steps are involved: S1: Collect rocks from the target area and obtain rock mechanics static parameters through rock mechanics experiments. S2: Calculate rock dynamic parameters through rock mechanics static parameters and establish a rock mechanics dynamic-static conversion model. S3: Establish a mechanism prediction model through the mechanism model and obtain mechanism sample data. S4: Obtain on-site sample data and establish an algorithm prediction model through machine algorithms. S5: Combine the mechanism prediction model with the algorithm prediction model to obtain a fusion model for horizontal well fracture pressure prediction.

2. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 1, characterized in that: In step S1, the rock mechanics static parameters obtained through rock mechanics experiments include: static parameters of elastic modulus, static parameters of Poisson's ratio, static parameters of tensile strength and static parameters of ground stress.

3. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 2, characterized in that: The specific method for calculating the rock dynamic parameters by the rock mechanics static parameters in step S2 is: by combining the rock mechanics static parameters with the acoustic time difference logging calculation model, the dynamic parameters of elastic modulus, Poisson's ratio, tensile strength and ground stress are obtained.

4. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 1, characterized in that: In step S3, the specific operation steps of establishing the mechanism prediction model through the mechanism model include: establishing a stress field model around the well of staged fracturing of a horizontal well, combining the stress field model around the well of staged fracturing of a horizontal well with the rock fracture criterion to establish a mechanism prediction model, and generating mechanism sample data of feedback fracture pressure through the mechanism prediction model.

5. The method for predicting horizontal well fracture pressure driven by the fusion of data mining and mechanism model as claimed in claim 4, characterized in that: The superposition principle is adopted when establishing the horizontal well staged fracturing well peripheral stress field model, including the parameter judgment of the original stress, the wellbore internal pressure, the rock thermal effect, the fracturing fluid seepage effect and the casing cement ring.

6. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 1, characterized in that: In step S4, the specific steps of establishing the algorithm prediction model through the machine algorithm include: after obtaining the field sample data, screening the machine algorithm input parameters based on the model evaluation index, and establishing the algorithm prediction model based on the combination of the field sample data and the machine algorithm.

7. The method for predicting horizontal well fracture pressure driven by the fusion of data mining and mechanism model as claimed in claim 6, characterized in that: The specific method for obtaining the field sample data is: integrating the field actual data of the target block's fracture pressure, and obtaining the field sample data of the field actual fracture pressure through data preprocessing.

8. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 6, characterized in that: The machine algorithms include machine learning algorithms and integrated algorithms. The machine learning algorithms include: KNN, linear regression, SVR and Lasso; the integrated algorithms include: random forest, AdaBoost, GBDT and XGBoost.

9. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 1, characterized in that: In step S5, when the mechanism prediction model is combined with the algorithm prediction model, the ratio of the field sample data to the mechanism sample data is 1:1.

5.

10. The method for predicting horizontal well fracture pressure driven by fusion of data mining and mechanism model as claimed in claim 1, characterized in that: After the horizontal well fracture pressure prediction fusion model is obtained, the TPE algorithm based on the Gaussian mixture model is used to optimize the hyper parameters of the horizontal well fracture pressure prediction fusion model.

Citation Information

Cited By

  • Carbon dioxide sequestration prediction method and device based on mechanism and data fusion driving

    CN120278043A