Acoustic logging curve reconstruction method based on automatic machine learning
Automatic machine learning technology is used to perform data preprocessing and feature engineering of sonic logging curves, automatically select and optimize models, solve the problem of sonic logging data distortion, achieve efficient and stable curve reconstruction, and improve lithology and Fluids indicate sensitivity, forming a common workflow.
Patent Information
- Application Number
- CN202410567788.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the data is distorted or missing due to well wall collapse, instrument failure, etc. during the sonic logging process, which makes it difficult to reconstruct the logging curve. Moreover, the number of existing machine learning models is limited and lacks a common workflow, making it difficult to form a stable , a general curve reconstruction method.
Automatic machine learning technology is used, combined with data preprocessing and feature engineering, to realize automatic model selection and hyperparameter tuning, forming a workflow that can automatically select the best machine learning model for reconstruction and improvement of sonic logging curves. Lithology and fluids indicate sensitivity.
It achieves low-cost, high-efficiency and high-precision sonic logging curve reconstruction, ensures the applicability, stability and generalization of the model, enhances the sensitivity of lithology and fluid indications, and provides a universal application and practical value. workflow.
Smart Images

Figure CN118534544A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of geophysical logging in the field of oil and gas exploration and development, and in particular relates to an automatic machine learning method for reconstructing acoustic logging curves. Background Art
[0002] Acoustic curves are a commonly used type of logging curve in the fields of well logging, geophysical exploration, and oil and gas well engineering. They are highly sensitive to lithology changes, pore characteristics, and mechanical properties around the wellbore. However, in the actual logging process, acoustic logging data is often distorted or missing due to factors such as wellbore collapse and instrument failure, which brings great difficulties to subsequent interpretation and evaluation work. Re-measurement is costly and not feasible, so artificially reconstructing acoustic logging curves using existing logging curve data has high application value and economic value.
[0003] With the rise of big data, machine learning and deep learning technology in recent years, this technology has become a current research hotspot in the field of geophysical exploration. As a supervised regression task, logging curve reconstruction can better form data mapping and modeling of target features compared to traditional curve reconstruction methods, and achieve higher prediction accuracy. Its model representation ability and accuracy are often higher than traditional empirical formula methods.
[0004] In recent years, the tree model in machine learning models has achieved good application results in curve reconstruction tasks. Zhang Jiachen et al. (2022) conducted logging curve completion experiments and generation experiments based on the XGBoost model. Wang Hua et al. (2023) used the NGBoost algorithm to predict shear waves (DTC) and longitudinal waves (DTS), and compared them with tree models such as Random Forest (RandomForest), gradient boosting decision tree (GBDT), XGBoost, and LightGBM.
[0005] Existing studies are all comparative studies on limited models, the number of machine learning models involved is still limited, and there is little mention of the optimization of model hyperparameters, and the explanation of machine learning models is very scarce, making it difficult to form a stable and universal workflow that can be used in the field of well logging regression prediction. Therefore, the purpose of the present invention is to integrate key functions such as data preprocessing with feature engineering, automatic model selection, and automatic hyperparameter tuning to form an automatic machine learning workflow with universal properties, so as to achieve higher application and practical value. Summary of the invention
[0006] The purpose of the present invention is to provide a method for reconstructing acoustic logging curves based on automatic machine learning to solve the problem of missing well sections and poor quality of logging curves. On the one hand, the prediction target curve can be reconstructed in combination with existing curves to supplement the logging curve database. On the other hand, the lithology and fluid indication sensitivity of the reconstructed curve can be improved by fusing multiple curve information based on statistical laws.
[0007] The technical solution adopted by the present invention is as follows:
[0008] A method for reconstructing an acoustic logging curve based on automatic machine learning, comprising:
[0009] Step 1, logging file analysis and data preparation: parse the logging file format and load the logging curve data. In addition, other relevant information such as logging lithology and geological stratification needs to be loaded. Then check the data characteristics and integrity of the logging curve, select the valid data well sections, and obtain the data set. Finally, divide the data into training set, validation set and test set by well;
[0010] Step 2: Data preprocessing and feature engineering: preprocess the available data according to data type and features, including missing value interpolation, text feature encoding, standardization, etc.
[0011] Step 3: Automatic model selection and tuning: Apply automatic model selection and hyperparameter tuning techniques to obtain the top three best machine learning models and their parameter configurations;
[0012] Step 4: Model interpretation and fairness test: Based on the interpretability analysis and fairness test results, judge the applicability of the model, use the test set to judge the generalization performance of the model, and comprehensively determine and select the most appropriate model;
[0013] Step 5: Model preservation and prediction: Save the data preprocessing and model, predict the new data, and generate the prediction results of the target logging curve.
[0014] Further, the specific steps of step 1 are as follows:
[0015] Step 1.1: parse common well logging curve data file formats, such as las, txt, excel, csv, etc., to obtain the well logging curve data table containing depth column features;
[0016] Step 1.2, load the relevant data such as logging lithology and geological stratification, interpolate according to the depth column of the logging curve, and incorporate it into the logging curve data table;
[0017] Step 1.3, check the logging curves, select the effective well sections, and form a data table without null values and abnormal values. Ensure that the logging curves from different wells have a uniform value distribution range, and eliminate system errors caused by different instrument models and environmental factors;
[0018] Step 1.4: Divide the data set into training set, validation set and test set based on the well.
[0019] Further, the specific steps of step 2 are as follows:
[0020] Step 2.1, specify the curve to be predicted, then specify the input logging curve characteristics, and determine them as continuous numerical data characteristics, and specify the geological stratification and logging lithology data as discrete classification data characteristics;
[0021] Step 2.2: Use the classifier iterative calculation method to interpolate the missing values of the features. The algorithm used is one of the random forest, gradient boosting tree and K nearest neighbor algorithms.
[0022] Step 2.3, encode the text features. When the number of classification categories is less than 25, use the OneHot encoding method. When the number of classification categories is greater than 25, use the LeaveOneOut encoding method.
[0023] Step 2.4: Standardize the data. You can choose normalization (minmax) and standardization (z-score) methods, that is, the data features are unified into the range of 0-1 or the range of mean 0 and variance 1.
[0024] Furthermore, in step 3, the automatic model selection will automatically select the top three from 20 regression prediction algorithms based on the evaluation indicators, calculate and derive a total of seven evaluation indicators, including MAE, MSE, RMSE, R2, RMSLE, MAPE and TT, where TT represents the time for model training and evaluation.
[0025] Furthermore, in step 3, the automatic hyperparameter tuning technology preferably adopts a tree-structured Bayesian optimization search method based on Hyperopt.
[0026] Furthermore, in step 4, the model interpretation will output four types of graphs, including a residual graph, an error graph, a feature sensitivity analysis graph, and a feature importance analysis graph, which are used to judge the prediction bias and weight tendency of the model and ensure the prediction performance of the model.
[0027] Furthermore, in step 4, the model fairness test draws an accuracy histogram based on a certain classification feature to determine the low-precision bias and low prediction performance of each type of feature to ensure the stability of the model.
[0028] Furthermore, in step 4, the optimal model selection will be comprehensively judged based on model interpretation, fairness test and test set accuracy. The test set is only used in this process to test the generalization performance of the model.
[0029] Furthermore, in step 5, the data preprocessing and the model are saved in the form of a workflow file using the pkl format type.
[0030] Furthermore, in step 5, when predicting new data, the saved workflow file is read, and the new data that does not contain the prediction curve is input to obtain the prediction result.
[0031] Furthermore, in step 5, the prediction module can be independently applied to the prediction of new data based on the saved workflow file.
[0032] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0033] 1. In the present invention, automatic machine learning technology based on PyCaret is used to deeply customize the data preprocessing and feature engineering processes required for logging curve reconstruction. The best model can be automatically selected from 20 machine learning models, and the model parameters can be automatically tuned, which has the technical advantages of low cost, high efficiency and high precision.
[0034] 2. In the present invention, the interpretability of machine learning models, fairness test drawings combined with test set accuracy are adopted to comprehensively select the optimal model, thereby ensuring the applicability, stability and generalization of the model, making the prediction tendency and feature sensitivity of the model used easier to be perceived and understood by people. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the reconstruction method flow of the present invention;
[0036] Figure 2 This is the model accuracy ranking table output during the automatic model selection process;
[0037] Figure 3 This is the residual graph during the model interpretability analysis process;
[0038] Figure 4 Error graph during model interpretability analysis;
[0039] Figure 5 This is a feature sensitivity analysis diagram during the model interpretability analysis process;
[0040] Figure 6 This is a feature importance analysis diagram during the model interpretability analysis process;
[0041] Figure 7This is a fairness test diagram of the model based on geological stratification characteristics;
[0042] Figure 8 This is a workflow diagram for data preprocessing and models;
[0043] Fig. 9 This is a schematic diagram of the reconstruction results of the acoustic logging curve of the test well A;
[0044] Fig.10 Schematic diagram of the reconstruction results of the acoustic logging curve of test well B. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of protection of the present invention.
[0046] A method for reconstructing an acoustic logging curve based on automatic machine learning comprises the following steps:
[0047] Step 1, logging file analysis and data preparation: parse the logging file format and load the logging curve data. In addition, other relevant information such as logging lithology and geological stratification needs to be loaded. Then check the data characteristics and integrity of the logging curve, select the valid data well sections, and obtain the data set. Finally, divide the data into training set, validation set and test set by well;
[0048] Specifically, the details of step 1 are as follows:
[0049] Step 1.1, decode the original data, such as las, txt, excel, csv and other formats, and obtain the well logging curve data table containing depth column features;
[0050] Step 1.2, interpolate the logging lithology and geological stratification according to the depth column of the logging curve, and merge it with the logging curve data table to form a unified data table;
[0051] Step 1.3, through logging software judgment and mapping observation, select effective well sections to ensure that the effective data range and distribution of each logging curve are within a reasonable range, and eliminate system errors caused by different instrument models and environmental factors;
[0052] Step 1.4: Divide the data set into training set, validation set and test set based on the well;
[0053] Step 2: Data preprocessing and feature engineering: preprocess the available data according to data type and features, including missing value interpolation, text feature encoding, standardization, etc.
[0054] Specifically, the details of step 2 are as follows:
[0055] Step 2.1, specify the curve to be predicted, then specify the input logging curve characteristics, and determine them as continuous numerical data characteristics, and specify the geological stratification and logging lithology data as discrete classification data characteristics;
[0056] Step 2.2: Use the classifier iterative calculation method to interpolate the missing values of the features. The algorithm used is one of the random forest, gradient boosting tree and K nearest neighbor algorithms.
[0057] Step 2.3, encode the text features. When the number of classification categories is less than 25, use the OneHot encoding method. When the number of classification categories is greater than 25, use the LeaveOneOut encoding method.
[0058] Step 2.4: Standardize the data. You can choose normalization (minmax) and standardization (z-score) methods, that is, the data features are unified into the range of 0-1 or the range of mean 0 and variance 1;
[0059] Step 3: Automatic model selection and tuning: Apply automatic model selection and hyperparameter tuning techniques to obtain the top three best machine learning models and their parameter configurations;
[0060] Specifically, the automatic model selection will automatically select the top three from 20 regression prediction algorithms based on the evaluation indicators, calculate and derive seven evaluation indicators, including MAE, MSE, RMSE, R2, RMSLE, MAPE and TT. TT represents the time for model training and evaluation. The output table is as follows: Figure 2 As shown;
[0061] Specifically, the automatic hyperparameter tuning technology gives priority to the tree-structured Bayesian optimization search method based on Hyperopt.
[0062] Step 4: Model interpretation and fairness test: Based on the interpretability analysis and fairness test results, judge the applicability of the model, use the test set to judge the generalization performance of the model, and comprehensively determine and select the most appropriate model;
[0063] Specifically, the model interpretation will output four types of graphs, including residual graph, error graph, feature sensitivity analysis graph, and feature importance analysis graph, which are used to judge the prediction bias and weight tendency of the model and ensure the prediction performance of the model.
[0064] Specifically, the model fairness test draws an accuracy histogram based on a certain classification feature to determine the low-precision bias and low prediction performance of each type of feature to ensure the stability of the model.
[0065] Specifically, the optimal model selection will be comprehensively judged based on model explanation, fairness test and test set accuracy. The test set is only used in this process to test the generalization performance of the model.
[0066] Step 5: Model preservation and prediction: Save the data preprocessing and model, predict the new data, and generate the prediction results of the target logging curve.
[0067] Specifically, the data preprocessing process and model are saved in the pkl workflow file format type.
[0068] Specifically, when predicting new data, read the saved workflow file, pass in the new data that does not contain the prediction curve, get the prediction result, and save it in csv format.
[0069] Example 1
[0070] (1) This embodiment is implemented in a certain oil field area. There are 70 wells as data sets, which are divided into training wells, verification wells and test wells in a ratio of 5:1:1. Acoustic wave (AC) is used as the prediction target, and the input features are five curves of depth (Depth), well diameter (CAL), natural gamma (GR), compensated density (DEN), and compensated neutron (CNL) as continuous numerical features, and geological stratification (layer) and logging lithology (lithology) as discrete text features. In the data preprocessing and feature engineering process, the LightGBM algorithm is used for missing value interpolation, the OneHot encoding method is used for text feature encoding geological stratification, the LeaveOneOut encoding method is used for logging lithology, and the minmax normalization method is used for data normalization. During model training and selection, MAE is used as the model ranking indicator, and the verification set is used as the accuracy standard to obtain the accuracy ranking table of 20 machine learning models, such as Figure 2 When explaining the model and checking fairness, the output graph is as follows Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 As shown. The final comprehensive decision is to select the XGBoost model, and its workflow is as follows Figure 8 shown.
[0071] (2) The method proposed in this invention is used to perform data preprocessing, automatic model selection and hyperparameter tuning, and predict the reconstruction curve, and finally reconstruct the results. Fig. 9 , Fig.10As shown in the figure, the first channel is the depth channel, the second channel is the geological stratification channel, the third channel is the logging lithology channel, the fourth channel is the wellbore CAL and natural gamma GR curve, the fourth channel is the neutron CNL and density DEN curve, the fifth channel is the interpretation conclusion channel; the sixth, seventh and eighth channels are the comparison channels of the measured acoustic wave curve and the reconstructed acoustic wave curve.
[0072] (3) Test set A well, the overall predicted length of the well is 2830-3240m, the mean absolute error MAE is 12.453, R 2 is 0.818. Fig. 9 ,This well section is mainly composed of oil layers and oil-water layers. On the whole, the acoustic wave reconstruction curve and the measured curve basically coincide with the measured curve, which has a good matching effect.
[0073] (4) Test set B well, the overall prediction length of this well is 980-2165m, the mean absolute error MAE is 21.918, R 2 is 0.867. Fig.10 Taking the oil layer at 2040-2060m of the well as an example, the reservoir section has a good wellbore, and the reconstructed curve basically coincides with the true curve. The lower 2065-2075m section has a significant expansion, which leads to a decrease in density and an increase in neutrons, but there is no obvious fluctuation in GR. The reconstructed acoustic wave increases relatively, reflecting the increase in apparent porosity caused by the expansion of the diameter. The original acoustic wave does not show this feature, which shows the information gain advantage of the reconstructed curve compared to the original curve. On the whole, the acoustic wave reconstruction curve has a good matching effect with the measured curve.
[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. The present invention discloses a method for reconstructing an acoustic logging curve based on automatic machine learning. It is characterized in that Automatic machine learning technology is used to reconstruct logging curves. The method steps are as follows: Step 1.1, logging file analysis and data preparation: parse the logging file format and load the logging curve data. In addition, other relevant information such as logging lithology and geological stratification needs to be loaded. Then check the data characteristics and integrity of the logging curve, select the valid data well sections, and obtain the data set. Finally, divide the data into training set, validation set and test set by well; Step 1.2, data preprocessing and feature engineering: preprocess the available data according to data type and features, including missing value interpolation, text feature encoding, standardization, etc.; Step 1.3: Automatic model selection and tuning: Apply automatic model selection and hyperparameter tuning techniques to obtain the top three best machine learning models and their parameter configurations. Step 1.4, model explanation and fairness test: Based on the interpretability analysis and fairness test results, judge the applicability of the model, use the test set to judge the generalization performance of the model, and comprehensively judge and select the most appropriate model; Step 1.5, model saving and prediction: save the data preprocessing and model, predict the new data, and generate the prediction results of the target logging curve.
2. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: The specific steps of step 1.1 are as follows: Step 1.1.
1. Parse common well logging curve data file formats, such as las, txt, excel, csv, etc., to obtain the well logging curve data table containing depth column features; Step 1.1.2, load the relevant data such as logging lithology and geological stratification, interpolate according to the depth column of the logging curve, and incorporate it into the logging curve data table; Step 1.1.3, check the well logging curve, select the effective well section, and form a data table without null values and abnormal values; Step 1.1.4: Divide the dataset into training set, validation set, and test set based on the well.
3. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: The specific steps of step 1.2 are as follows: Step 1.2.1, specify the curve to be predicted, then specify the input logging curve characteristics, and determine them as continuous numerical data characteristics, and specify the geological stratification and logging lithology data as discrete classification data characteristics; Step 1.2.2: Use the classifier iterative calculation method to interpolate the missing values of the features. The algorithm used is one of the random forest, gradient boosting tree and K nearest neighbor algorithms. Step 1.2.3, encode the text features. When the features have less than 25 classification categories, use the OneHot encoding method. When the features have more than 25 classification categories, use the LeaveOneOut encoding method. Step 1.2.4: Standardize the data. You can choose normalization (minmax) and standardization (z-score) methods, that is, the data features are unified into the range of 0-1 or the range of mean 0 and variance 1.
4. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In the step 1.3, the automatic model selection will automatically select the top three from 20 regression prediction algorithms based on the evaluation indicators, calculate and derive a total of seven evaluation indicators, namely MAE, MSE, RMSE, R2, RMSLE, MAPE and TT, where TT represents the time for model training and evaluation.
5. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In step 1.3, the automatic hyperparameter tuning technology preferably adopts a tree-structured Bayesian optimization search method based on Hyperopt.
6. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In step 1.4, the model interpretation will output four types of graphs, including residual graph, error graph, feature sensitivity analysis graph, and feature importance analysis graph, which are used to judge the prediction bias and weight tendency of the model and ensure the prediction performance of the model.
7. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In step 1.4, the model fairness test draws an accuracy histogram based on a certain classification feature to determine the low-precision bias and low prediction performance of each type of feature to ensure the stability of the model.
8. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In step 1.4, the optimal model selection will be comprehensively judged based on model interpretation, fairness test and test set accuracy. The test set is only used in this process to test the generalization performance of the model.
9. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In the step 1.5, the data preprocessing and the model are saved in the form of a workflow file in the pkl format.
10. The method for reconstructing acoustic logging curves based on automatic machine learning according to claim 1, Features: In the step 1.5, the prediction module can be independently applied to the prediction of new data based on the saved workflow file.
