Core saturation prediction model construction method and core saturation prediction method
By constructing a core saturation prediction model based on machine learning, the problem of poor accuracy and generalizability of core saturation calculation in traditional methods is solved, and accurate prediction of core saturation and processing of nonlinear relationships in complex formations are achieved.
Patent Information
- Application Number
- CN201911190561.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2039-11-28
AI Technical Summary
The traditional core saturation calculation method has problems of poor generalization and large result errors. It is impossible to accurately know the core saturation of each well, and the relationship between well logging curves and saturation is complex and nonlinear.
A machine learning model is used to build a core saturation prediction model. By obtaining sample logging curves and corresponding core saturation, the training and test sample sets are divided, multiple machine learning models are trained, and the optimal model is selected for prediction, depth correction and anomalies value processing to realize multi-dimensional nonlinear regression of well logging curves.
It improves the accuracy and generalization of core saturation prediction, can effectively handle complex nonlinear stratigraphic relationships, reduces the influence of human factors, and provides more accurate core saturation prediction results.
Smart Images

Figure CN112859192B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data prediction, and in particular to a method, device, computer equipment and storage medium for constructing a core saturation prediction model, and a method, device, computer equipment and storage medium for predicting core saturation. Background Art
[0002] Core saturation refers to the process of using professional methods to extract underground rocks to the ground during the oil drilling process. The rocks taken to the ground are called cores. The core samples are then measured in the laboratory and the saturation of the core samples is calculated. This saturation is called core saturation.
[0003] At present, conventional core analysis methods include atmospheric retort method, distillation extraction method and chromatography, and special core analysis methods include determining oil and water saturation from relative permeability curves or capillary pressure curves. In the oil and gas industry, traditional saturation calculation methods use theoretical formulas, including Archie formula, Simandoux formula, Modified Simandoux formula, Indonesian formula, Modified Indonesian formula, Dual Water formula, etc., combined with resistivity logging curves and related parameters to calculate, and then verified with the results of core test.
[0004] The saturation calculated by the theoretical formula in the above method has been verified by core saturation, and the result is suitable for this well. However, cores are not taken from every well for core saturation testing, that is, not every well has the corresponding core saturation tested. In addition, there are many human factors involved in the acquisition of relevant parameters during the test, which makes the results have large errors and it is impossible to get accurate core saturation test results for each well. Summary of the invention
[0005] Based on this, it is necessary to provide a core saturation prediction model construction method, device, computer equipment and storage medium that support obtaining accurate core saturation, as well as a core saturation prediction method, device, computer equipment and storage medium that can obtain accurate core saturation in response to the above technical problems.
[0006] A method for constructing a core saturation prediction model, the method comprising:
[0007] Acquire sample data, the sample data including a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, the sample well logging curve being obtained by calibrating the depth of the original well logging curve;
[0008] Dividing the sample data into a training sample set and a test sample set;
[0009] Training different machine learning models according to the training sample sets to obtain multiple trained machine learning models;
[0010] The multiple trained machine learning models are tested according to the test sample set, and the trained machine learning model with the best test result is selected as the core saturation prediction model.
[0011] In one embodiment, obtaining sample data includes:
[0012] Get the original logging curve;
[0013] Randomly select any one of the original logging curves as a reference curve;
[0014] Comparing other curves in the original logging curve with the reference curve to obtain depth errors between other curves in the original logging curve and the reference curve;
[0015] Calibrate the depth of other curves in the original logging curve according to the depth error to obtain a sample logging curve;
[0016] The sample core saturation corresponding to the sample logging curve is obtained.
[0017] In one embodiment, the core saturation prediction model construction method further includes:
[0018] Traversing the sample logging curves, and identifying abnormal logging curves having abnormal values in the sample logging curves;
[0019] Obtaining normal logging curves of the same type as the abnormal logging curve from sample logging curves of other wells;
[0020] Reconstructing the abnormal logging curve according to the acquired normal logging curve, removing the abnormal value in the abnormal logging curve, and obtaining a sample logging curve after curve reconstruction;
[0021] The sample data includes the sample logging curve after the curve is reconstructed.
[0022] In one embodiment, the core saturation prediction model construction method further includes:
[0023] Performing secondary feature establishment and curve dimension reduction processing on the sample logging curve to obtain an optimized sample logging curve;
[0024] Wherein, the sample data includes the optimized sample logging curve.
[0025] In one embodiment, establishing secondary features of the sample logging curves includes: performing derivatives of related curves, multiplication or division of curves to increase the number and types of samples of the sample logging curves;
[0026] The dimensionality reduction processing of the sample logging curve includes:
[0027] Performing principal component analysis and sensitivity analysis on the sample logging curves to obtain analysis results; and removing redundant logging curves from the sample logging curves based on the analysis results.
[0028] A core saturation prediction method, the method comprising:
[0029] According to the preset sampling rules, the well to be logged is sampled to obtain the original logging curve of the well to be logged;
[0030] Performing well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged;
[0031] Inputting the logging curve of the well to be logged into the core saturation prediction model;
[0032] According to the output data of the core saturation prediction model, a core saturation prediction result of the well to be tested is obtained;
[0033] Wherein, the core saturation prediction model is a model constructed according to the method described in any one of claims 1-5.
[0034] A core saturation prediction model construction device, the device comprising:
[0035] A data acquisition module, used to acquire sample data, wherein the sample data includes a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, wherein the sample well logging curve is obtained by calibrating the depth of the original well logging curve;
[0036] A division module, used for dividing the sample data into a training sample set and a test sample set;
[0037] A training module, used to train different machine learning models according to the training sample set to obtain multiple trained machine learning models;
[0038] A model building module is used to test the multiple trained machine learning models according to the test sample set, and select the trained machine learning model with the best test result as the core saturation prediction model.
[0039] A core saturation prediction device, comprising:
[0040] The sampling module is used to sample the well to be logged according to the preset sampling rules to obtain the original logging curve of the well to be logged;
[0041] A preprocessing module, used for performing well depth correction on the original logging curve of the well to be logged, so as to obtain the logging curve of the well to be logged;
[0042] An input module, used for inputting the logging curve of the well to be logged into the core saturation prediction model;
[0043] A prediction module, used to obtain the core saturation prediction result of the well to be tested according to the output data of the core saturation prediction model;
[0044] Among them, the core saturation prediction model is a model constructed according to the above method.
[0045] A storage medium includes a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute the above-mentioned core saturation prediction model construction method or the above-mentioned core saturation prediction method.
[0046] An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor;
[0047] Wherein, the processor and the memory communicate with each other through the bus;
[0048] The processor is used to call the program instructions in the memory to execute the above-mentioned core saturation prediction model construction method or the above-mentioned core saturation prediction method.
[0049] The above-mentioned core saturation prediction model construction method, device, computer equipment and storage medium obtain sample logging curves and their corresponding sample core saturations, wherein the sample logging curves are obtained after the original logging curves are calibrated for depth, which can improve the accuracy of the obtained sample data. In the model training process, a combination of training and testing is adopted to divide the sample data into a training sample set and a test sample set. The training sample set is used to train multiple machine learning models, and the trained machine learning models are then tested by the test sample set. The optimal trained machine learning model is selected as the final core saturation prediction model. On the one hand, multi-dimensional linear regression of the logging curve is realized based on the machine learning model; on the other hand, the optimal machine learning model is selected as the final model so that the core saturation prediction model finally obtained can support the subsequent accurate prediction of core saturation.
[0050] In addition, the present application also provides a core saturation prediction method, which performs well depth correction on the logging curve of the well to be logged to improve the accuracy of the data. In addition, the core saturation prediction is performed with the help of a constructed core saturation prediction model. Since the core saturation prediction model is constructed based on a machine learning model, multi-dimensional linear regression of the logging curve can be realized. In addition, the core saturation prediction model is the optimal machine learning model in the model construction process, so it can achieve accurate prediction of core saturation. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 An application environment diagram of a method for building a core saturation prediction model in an embodiment;
[0052] Figure 2 A schematic diagram of a process for constructing a core saturation prediction model in one embodiment;
[0053] Figure 3 A schematic diagram of a process for constructing a core saturation prediction model in another embodiment;
[0054] Figure 4 This is a schematic diagram of the depth calibration of the logging curve;
[0055] Figure 5 A schematic diagram of a process of predicting core saturation in one embodiment;
[0056] Figure 6 It is a structural block diagram of a core saturation prediction model building device in one embodiment;
[0057] Figure 7 is a structural block diagram of a core saturation prediction device in one embodiment;
[0058] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0060] In order to further explain in detail the technical solution of the core saturation prediction model construction and the core saturation prediction method of the present application and its remarkable effects, the core technical principles of the solution are first explained in detail below.
[0061] The study of core saturation found that the saturation calculated by the theoretical formula in the traditional method is suitable for the well after core saturation verification, but not every well is cored and has core saturation, so this method is not widely applicable; and there are few logging curves involved, and the acquisition of relevant parameters is mixed with many human factors, which makes the results have large errors, which brings inconvenience to subsequent work. In fact, there will be more or less correlation between the saturation of the formation and each curve, and these correlations are not all linear. Most of the logging curves and saturation are nonlinear. The pursuit of multidimensional nonlinear regression has always been the goal of further research. Machine learning methods can achieve true multidimensional nonlinear regression, which can effectively solve the limitations of traditional methods. The automatic machine learning prediction saturation model uses as many logging curves as possible as input and core saturation results as labels to perform supervised machine learning, organize multidimensional nonlinear regression into linear regression, and construct a saturation prediction model to support accurate prediction of core saturation.
[0062] In practical applications, the core saturation prediction model construction method provided in this application can be applied to Figure 1 In the application environment shown. Device 102 obtains a sample well logging curve and its corresponding sample core saturation, the sample well logging curve is obtained after the original well logging curve is calibrated, and the sample data is divided into a training sample set and a test sample set; different machine learning models are trained according to the training sample set to obtain multiple trained machine learning models; multiple trained machine learning models are tested according to the test sample set, and the trained machine learning model with the best test result is selected as the core saturation prediction model, and the device 102 generates the core saturation prediction model for storage.
[0063] This application also provides a core saturation prediction, which can be applied to Figure 1 In the application environment shown. Among them, the device 102 pre-stores a core saturation prediction model constructed based on the above-mentioned core saturation prediction model construction method. In actual use, the device 102 samples the well to be logged according to the preset sampling rules to obtain the original logging curve of the well to be logged; performs well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged; inputs the logging curve of the well to be logged into the core saturation prediction model; outputs data according to the core saturation prediction model to obtain the core saturation prediction result of the well to be logged. The device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices; in addition, the device 102 can also be implemented as an independent server or a server cluster composed of multiple servers.
[0064] In one embodiment, Figure 2 As shown in the figure, a method for constructing a core saturation prediction model is provided. Figure 1 Taking the device 102 in the example as an example, the following steps are included:
[0065] S210: Acquire sample data, the sample data including a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, the sample well logging curve being obtained by calibrating the depth of the original well logging curve.
[0066] Sample logging curves and sample core saturation data can be obtained based on historical operations. Among them, the sample logging curve is obtained by calibrating the original logging curve. The original logging curve is obtained by directly collecting the logging curve. After obtaining this part of the curve, it is calibrated to obtain the sample logging curve. Depth calibration can be simply understood as the correction of depth. Specifically, since the original logging curve is affected by the weight and tension changes of the instrument itself during the field acquisition process, different instruments will have different depth displays for the same formation during data acquisition. The original logging curve needs to be calibrated to ensure that each curve has a corresponding response at the same depth. The core saturation must also be aligned in depth, that is, the core saturation is matched with the logging curve according to the depth, so that the change characteristics of the core saturation are consistent with the change characteristics of the related logging curve. Taking the core saturation test in oil wells as an example, in the historical oil well exploration process, the well logging curves (sample well logging curves) after the depth calibration of multiple oil wells in a certain area are obtained, and the core samples are collected and sent to the laboratory for accurate measurement. After a series of processing, the sample core saturation is obtained, and this part of the data is recorded and stored as the data basis for building the core saturation prediction model. Specifically, the original well logging curves include natural gamma GR, natural potential SP, resistivity RESD, acoustic time difference DT, density RHOB, neutron CNL, etc.
[0067] S220: Divide the sample data into a training sample set and a test sample set.
[0068] Step S210 may be to select sample data corresponding to multiple wells within a certain area, the sample data including sample logging curves and matching core saturation, and divide the obtained sample data into a training sample set and a test sample set, the training sample set is used for subsequent model training, and the test sample set is used for subsequent model testing to detect the optimal model. Taking oil wells as an example, here we first obtain sample data corresponding to the oil wells selected in the same area, such as sample data corresponding to the oil wells selected in the No. 1 oil field area, and randomly divide the obtained sample data into a training sample set and a test sample set. In the random division process, more sample data can be used as a training sample set, and less sample data can be used as a test sample set. Further, the sample data can be equally divided into 10 parts, 8 of which are used as training sample sets, and 2 of which are used as test sample sets. In practical applications, sample data corresponding to 1# to 10# oil wells in the No. 1 oil field area can be obtained, sample data corresponding to 1# to 8# oil wells can be selected as training sample sets, and sample data corresponding to 9# to 10# oil wells can be used as test sample sets.
[0069] S230: Train different machine learning models according to the training sample sets to obtain multiple trained machine learning models.
[0070] Different machine learning models refer to multiple different machine learning models, which can specifically include up to 10 of the following: HuberRegressor, Lasso, Ridge, SGDRegressor, LinearSVR, SVR, DecisionTreeRegressor, AdaBoostRegressor, BaggingRegressor, GradientBoostRegressor, RandomForestRegressor. Each of the above 10 machine learning models has a corresponding core regression algorithm to implement regression processing of nonlinear curves to construct linear curves. The training sample set obtained in step S230 is trained on these machine learning models to obtain multiple trained machine learning models. If the above 10 machine learning models are specifically used, a total of 10 trained machine learning models 1#-10# can be obtained in the end.
[0071] S240: Testing multiple trained machine learning models according to the test sample set, and selecting the trained machine learning model with the best test result as the core saturation prediction model.
[0072] Multiple trained machine learning models are tested separately through the test sample set to obtain test results. The best trained machine learning model is selected as the core saturation prediction model according to the test results. Specifically, the test results include core saturation test accuracy, test accuracy, hardware resource usage of model operation, and processing efficiency. The test results of each trained machine learning model are sorted with test accuracy as the main consideration indicator, and the best trained machine learning model is selected as the core saturation prediction model.
[0073] The above-mentioned core saturation prediction model construction method obtains a sample logging curve and its corresponding sample core saturation, wherein the sample logging curve is obtained after the original logging curve is calibrated for depth, which can improve the accuracy of the obtained sample data. In the model training process, a combination of training and testing is adopted to divide the sample data into a training sample set and a test sample set. The training sample set is used to train multiple machine learning models, and then the trained machine learning model is tested by the test sample set. The optimal trained machine learning model is selected as the final core saturation prediction model. On the one hand, multi-dimensional linear regression of the logging curve is realized based on the machine learning model; on the other hand, the optimal machine learning model is selected as the final model so that the core saturation prediction model finally obtained can support the subsequent accurate prediction of core saturation.
[0074] like Figure 3 As shown, in one embodiment, step S210 includes:
[0075] S211: Obtaining original logging curve.
[0076] S212: Randomly select any one of the original logging curves as a reference curve.
[0077] S213: Compare other curves in the original logging curve with the reference curve to obtain depth errors between the other curves in the original logging curve and the reference curve.
[0078] S214: Calibrate the depths of other curves in the original logging curve according to the depth error to obtain a sample logging curve.
[0079] S215: Obtain the sample core saturation corresponding to the sample logging curve.
[0080] The process of logging curve depth calibration can be found in Figure 4 The example shown is Figure 4 For example, first select a curve as the benchmark ( Figure 4 GR curve in the middle); compare other curves with the reference curve. If there is an error in depth, add or subtract the corresponding number from the depth of the curve with error to make the curves match in depth, such as Figure 4The deep resistivity RESD depth was increased by 32.213 ft to match the GR depth, and then the sample core saturation corresponding to the sample logging curve after depth calibration was obtained.
[0081] In one embodiment, the core saturation prediction model construction method further includes:
[0082] Traversing the sample logging curves, identifying abnormal logging curves with abnormal values in the sample logging curves; obtaining normal logging curves of the same type as the abnormal logging curves in the sample logging curves of other wells; reconstructing the abnormal logging curves according to the obtained normal logging curves, removing the abnormal values in the abnormal logging curves, and obtaining the sample logging curves after the curve reconstruction; wherein the sample data includes the sample logging curves after the curve reconstruction.
[0083] Further outlier processing is performed on the sample logging curves. The outliers in the abnormal logging curves are removed by curve reconstruction to obtain the sample logging curves after curve reconstruction. The sample logging curves after curve reconstruction are used to construct sample data, which can remove abnormal data and improve the accuracy of the machine learning model training data, ensuring that a qualified core saturation prediction model that supports accurate prediction of core saturation can be obtained in the end. Specifically, the logging curves are affected by various factors such as the environment during the measurement process, and some outliers will be generated. These values are not a true reflection of the formation properties, so the outliers must be processed, such as curve reconstruction, removal of outliers, etc. This curve reconstruction process is to use the same curves without abnormalities in other wells, establish a regression equation with other curves, and then use this equation to calculate the outlier part of this well, remove the outlier part in this well, reconstruct the abnormal logging curves that originally had outliers in this well, and obtain the sample logging curve after curve reconstruction.
[0084] In practical applications, all sample logging curves are traversed, and the abnormal logging curve with abnormal values in the sample logging curves is identified as the GR curve corresponding to well 1#, and the GR curves corresponding to wells 2#-10# are normal curves. The GR curves corresponding to wells 2#-10# are obtained, and a regression equation is established based on the obtained GR curves corresponding to wells 2#-10#. The abnormal value part in the GR curve corresponding to well 1# is calculated using the regression equation, and the abnormal value part in the GR curve corresponding to well 1# is removed to obtain the logging curve after curve reconstruction corresponding to well 1#. The above curve reconstruction process is repeated for other wells and other types of logging curves to finally obtain the sample logging curve after curve reconstruction.
[0085] In one of the embodiments, the above-mentioned core saturation prediction model construction method further includes: performing secondary feature establishment and curve dimension reduction processing on the sample logging curve to obtain an optimized sample logging curve; wherein the sample data includes the optimized sample logging curve.
[0086] Since the sample logging curves may have a small number of samples and types, in order to ensure that the subsequent training sample set has sufficient data volume and logging curve types, it is necessary to establish secondary features for the sample logging curves to enrich the quantity and types of sample logging curves. In addition, there may be some repeated logging curves in the sample logging curves. This part of the data will increase the amount of data processing in the subsequent training process. Therefore, it is necessary to perform curve dimensionality reduction processing on the sample logging curves to obtain optimized sample logging curves with abundant quantity, diverse types and no meaningless repeated curves, and use the optimized sample logging curves as part of the sample data. Specifically, the establishment of secondary features is a method to increase the sample volume. It is to obtain another curve by adding, subtracting, multiplying and dividing the logging curves we use. In order to increase the dimension of the input parameters, the establishment of secondary features can be specifically to take the derivative of the relevant curves, multiply or divide the curves to obtain the quotient, etc., so as to generate secondary feature curves for input.
[0087] Furthermore, the above-mentioned logging curve outlier processing may be performed on the sample logging curve first, and then the above-mentioned secondary feature establishment and curve dimension reduction processing may be performed, and the logging curves after these processing may be used as part of the final sample data.
[0088] In one embodiment, performing dimensionality reduction processing on the sample logging curves includes: performing principal component analysis and sensitivity analysis on the sample logging curves to obtain analysis results; and removing redundant logging curves from the sample logging curves according to the analysis results.
[0089] In macroscopic terms, principal component analysis (PCA) is a multivariate statistical analysis method that selects a small number of important variables by linear transformation of multiple variables. It is also called principal component analysis. In actual subjects, in order to comprehensively analyze the problem, many related variables (or factors) are often proposed, because each variable reflects certain information of the subject to varying degrees. Principal component analysis was first introduced by K. Pearson for non-random variables, and then H. Hotelling extended this method to the case of random vectors. The size of information is usually measured by the sum of squares of deviations or variance. Sensitivity analysis is to analyze the sensitivity of parameters to the result variables through mathematical statistical methods; through these two methods, parameters with less influence on the result variables or parameters with similar influence (redundancy) can be removed, thereby improving the calculation efficiency. In this embodiment, some redundant data (logging curves) in the sample logging curve are obtained according to principal component analysis and sensitivity analysis, and these redundant logging curves in the sample logging curve are removed to optimize the entire sample logging curve.
[0090] In addition, if Figure 5 As shown, a core saturation prediction method comprises:
[0091] S520: Sampling the well to be logged according to a preset sampling rule to obtain an original logging curve of the well to be logged.
[0092] The preset sampling rule refers to the sampling rule that is pre-set according to the needs of the scene. For oil wells, the preset sampling rule can be to sample the oil well to be tested in the form of 8 evenly distributed sampling points at a well depth of 1 meter to obtain the original logging curve of the oil well to be tested. Specifically, the raw data of the logging curve can be recorded at 8 sampling points per meter, and the data value of each point is connected to form the shape of the logging curve. The shape of the curve directly reflects the lithology, physical properties and electrical properties of the formation, and the various forms of the curve reflect the nature of the formation. The raw data of the logging curve specifically includes the raw data including natural gamma GR, natural potential SP, resistivity RESD, acoustic time difference DT, density RHOB, neutron CNL, etc.
[0093] S540: Performing well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged.
[0094] Well depth correction means that the overall depth of the curve differs by a difference, and other curves only need to be moved up or down to be consistent with the reference curve. The specific process and effect of well depth correction can be found in the previous description, and will not be repeated here.
[0095] S560: Input the logging curve of the well to be logged into the core saturation prediction model, which is a model constructed according to the above method.
[0096] The core saturation prediction model is a model generated by the above core saturation prediction model construction method, which can support accurate prediction of core saturation.
[0097] S580: According to the output data of the core saturation prediction model, the core saturation prediction result of the well to be tested is obtained.
[0098] The above-mentioned core saturation prediction method performs well depth correction on the logging curve of the well to be logged to improve the accuracy of the data. In addition, the core saturation prediction is performed with the help of the constructed core saturation prediction model. Since the core saturation prediction model is constructed based on the machine learning model, it can realize multi-dimensional linear regression of the logging curve. In addition, the core saturation prediction model is the optimal machine learning model in the model construction process, so it can realize accurate prediction of core saturation.
[0099] It should be understood that although Figure 2 , Figure 3 as well as Figure 5The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 as well as Figure 5 At least part of the steps in the above method may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0100] like Figure 6 As shown, a core saturation prediction model construction device comprises:
[0101] The data acquisition module 610 is used to acquire sample data, wherein the sample data includes a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, wherein the sample well logging curve is obtained by calibrating the depth of the original well logging curve;
[0102] A division module 620, used to divide the sample data into a training sample set and a test sample set;
[0103] A training module 630 is used to train different machine learning models according to the training sample set to obtain multiple trained machine learning models;
[0104] The model building module 640 is used to test multiple trained machine learning models according to the test sample set, and select the trained machine learning model with the best test result as the core saturation prediction model.
[0105] The above-mentioned core saturation prediction model construction device obtains a sample logging curve and its corresponding sample core saturation, wherein the sample logging curve is obtained after the original logging curve is calibrated for depth, which can improve the accuracy of the obtained sample data. In the model training process, a combination of training and testing is adopted to divide the sample data into a training sample set and a test sample set. The training sample set is used to train multiple machine learning models, and then the trained machine learning model is tested by the test sample set. The optimal trained machine learning model is selected as the final core saturation prediction model. On the one hand, multi-dimensional linear regression of the logging curve is realized based on the machine learning model; on the other hand, the optimal machine learning model is selected as the final model so that the core saturation prediction model finally obtained can support the subsequent accurate prediction of core saturation.
[0106] In one embodiment, the data acquisition module 610 is also used to obtain the original logging curve, randomly select any curve in the original logging curve as a reference curve; compare other curves in the original logging curve with the reference curve to obtain the depth error between the other curves in the original logging curve and the reference curve; calibrate the depth of other curves in the original logging curve according to the depth error to obtain a sample logging curve, and obtain the sample core saturation corresponding to the sample logging curve.
[0107] In one of the embodiments, the core saturation prediction model construction device also includes an outlier processing module, which is used to traverse the sample logging curves and identify abnormal logging curves with abnormal values in the sample logging curves; obtain normal logging curves of the same type as the abnormal logging curves in the sample logging curves of other wells; reconstruct the abnormal logging curves according to the obtained normal logging curves, remove the outliers in the abnormal logging curves, and obtain the sample logging curves after the curve reconstruction; wherein the sample data includes the sample logging curves after the curve reconstruction.
[0108] In one of the embodiments, the core saturation prediction model building device further includes an optimization module for performing secondary feature establishment and curve dimension reduction processing on the sample logging curve to obtain an optimized sample logging curve; wherein the sample data includes the optimized sample logging curve.
[0109] In one embodiment, the optimization module is also used to perform derivatives of related curves, multiply or divide the curves to obtain the quotient, so as to increase the number and types of samples of the sample logging curves; perform principal component analysis and sensitivity analysis on the sample logging curves to obtain analysis results; and remove redundant logging curves in the sample logging curves based on the analysis results.
[0110] For the specific limitations of the core saturation prediction model construction device, please refer to the limitations of the core saturation prediction model construction method above, which will not be repeated here. Each module in the above-mentioned core saturation prediction model construction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0111] like Figure 7 As shown, the present application also provides a core saturation prediction device, the device comprising:
[0112] The sampling module 720 is used to sample the well to be logged according to a preset sampling rule to obtain an original logging curve of the well to be logged;
[0113] A preprocessing module 740 is used to perform well depth correction on the original logging curve of the well to be logged, so as to obtain the logging curve of the well to be logged;
[0114] An input module 760 is used to input the logging curve of the well to be logged into the core saturation prediction model;
[0115] The prediction module 780 is used to obtain the core saturation prediction result of the well to be tested according to the core saturation prediction model output data; wherein the core saturation prediction model is a model constructed according to the above method.
[0116] The above-mentioned core saturation prediction device performs well depth correction on the logging curve of the well to be logged to improve the accuracy of the data. In addition, the core saturation prediction is performed with the help of the constructed core saturation prediction model. Since the core saturation prediction model is constructed based on the machine learning model, it can realize multi-dimensional linear regression of the logging curve. In addition, the core saturation prediction model is the optimal machine learning model in the model construction process, so it can realize accurate prediction of core saturation.
[0117] For the specific definition of the core saturation prediction device, please refer to the definition of the core saturation prediction method above, which will not be repeated here. Each module in the above-mentioned core saturation prediction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0118] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as logging curves in historical records. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a core saturation prediction model construction method or a core saturation prediction method is implemented.
[0119] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0120] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0121] Acquire sample data, the sample data including a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, the sample well logging curve is obtained by calibrating the depth of the original well logging curve;
[0122] Divide the sample data into a training sample set and a test sample set;
[0123] Different machine learning models are trained respectively according to the training sample sets to obtain multiple trained machine learning models;
[0124] Multiple trained machine learning models are tested according to the test sample set, and the trained machine learning model with the best test result is selected as the core saturation prediction model.
[0125] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0126] The original logging curve is obtained, and any curve in the original logging curve is randomly selected as the reference curve; other curves in the original logging curve are compared with the reference curve to obtain the depth error between the other curves in the original logging curve and the reference curve; the other curves in the original logging curve are calibrated according to the depth error to obtain the sample logging curve, and the sample core saturation corresponding to the sample logging curve is obtained.
[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0128] Traversing the sample logging curves, identifying abnormal logging curves with abnormal values in the sample logging curves; obtaining normal logging curves of the same type as the abnormal logging curves in the sample logging curves of other wells; reconstructing the abnormal logging curves according to the obtained normal logging curves, removing the abnormal values in the abnormal logging curves, and obtaining the sample logging curves after the curve reconstruction; wherein the sample data includes the sample logging curves after the curve reconstruction.
[0129] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0130] The sample logging curve is subjected to secondary feature establishment and curve dimension reduction processing to obtain an optimized sample logging curve; wherein the sample data includes the optimized sample logging curve.
[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0132] The sample logging curves are differentiated by related curves, and the curves are multiplied or divided to obtain the quotient, so as to increase the number and types of sample logging curves; the sample logging curves are subjected to principal component analysis and sensitivity analysis to obtain analysis results; according to the analysis results, the redundant logging curves in the sample logging curves are removed.
[0133] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0134] According to the preset sampling rules, the well to be logged is sampled to obtain the original logging curve of the well to be logged;
[0135] Performing well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged;
[0136] Inputting the logging curve of the well to be logged into the core saturation prediction model;
[0137] According to the output data of the core saturation prediction model, the core saturation prediction result of the well to be tested is obtained;
[0138] Among them, the core saturation prediction model is the model constructed by the above method.
[0139] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0140] Obtain original well logging curves and sample core saturation;
[0141] The original well logging curve is calibrated to obtain a sample well logging curve, and the sample well logging curve is matched with the sample core saturation;
[0142] Obtain sample data corresponding to the wells selected in the same area, and divide the sample data into a training sample set and a test sample set;
[0143] Different machine learning models are trained respectively according to the training sample sets to obtain multiple trained machine learning models;
[0144] Multiple trained machine learning models are tested according to the test sample set, and the trained machine learning model with the best test result is selected as the core saturation prediction model.
[0145] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0146] Randomly select any curve in the original logging curve as the benchmark curve; compare other curves in the original logging curve with the benchmark curve to obtain the depth error between other curves in the original logging curve and the benchmark curve; calibrate the depth of other curves in the original logging curve according to the depth error to obtain the sample logging curve.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0148] Traversing the sample logging curves, identifying abnormal logging curves with abnormal values in the sample logging curves; obtaining normal logging curves of the same type as the abnormal logging curves in the sample logging curves of other wells; reconstructing the abnormal logging curves according to the obtained normal logging curves, removing the abnormal values in the abnormal logging curves, and obtaining the sample logging curves after the curve reconstruction; wherein the sample data includes the sample logging curves after the curve reconstruction.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0150] The sample logging curve is subjected to secondary feature establishment and curve dimension reduction processing to obtain an optimized sample logging curve; wherein the sample data includes the optimized sample logging curve.
[0151] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0152] The sample logging curves are differentiated by related curves, and the curves are multiplied or divided to obtain the quotient, so as to increase the number and types of sample logging curves; the sample logging curves are subjected to principal component analysis and sensitivity analysis to obtain analysis results; according to the analysis results, the redundant logging curves in the sample logging curves are removed.
[0153] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0154] According to the preset sampling rules, the well to be logged is sampled to obtain the original logging curve of the well to be logged;
[0155] Performing well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged;
[0156] Inputting the logging curve of the well to be logged into the core saturation prediction model;
[0157] According to the output data of the core saturation prediction model, the core saturation prediction result of the well to be tested is obtained;
[0158] Among them, the core saturation prediction model is the model constructed by the above method.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for constructing a core saturation prediction model, the method comprising: Acquire sample data, the sample data including a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, the sample well logging curve is obtained by calibrating the depth of the original well logging curve, the core saturation in the sample data matches the well logging curve according to the depth, and the change characteristics of the core saturation are consistent with the change characteristics of the related well logging curve; Dividing the sample data into a training sample set and a test sample set; Training different machine learning models according to the training sample sets to obtain multiple trained machine learning models; The multiple trained machine learning models are tested according to the test sample set, and the trained machine learning model with the best test result is selected as the core saturation prediction model.
2. The method according to claim 1, characterized in that The obtaining of sample data comprises: Get the original logging curve; Randomly select any one of the original logging curves as a reference curve; Comparing other curves in the original logging curve with the reference curve to obtain depth errors between other curves in the original logging curve and the reference curve; Calibrate the depth of other curves in the original logging curve according to the depth error to obtain a sample logging curve; The sample core saturation corresponding to the sample logging curve is obtained.
3. The method according to claim 1, characterized in that Also includes: Traversing the sample logging curves, and identifying abnormal logging curves having abnormal values in the sample logging curves; Obtaining normal logging curves of the same type as the abnormal logging curve from sample logging curves of other wells; Reconstructing the abnormal logging curve according to the acquired normal logging curve, removing the abnormal value in the abnormal logging curve, and obtaining a sample logging curve after curve reconstruction; The sample data includes the sample logging curve after the curve is reconstructed.
4. The method according to claim 1, characterized in that: Also includes: Performing secondary feature establishment and curve dimension reduction processing on the sample logging curve to obtain an optimized sample logging curve; Wherein, the sample data includes the optimized sample logging curve.
5. The method according to claim 4, characterized in that Establishing secondary features of the sample logging curves includes: performing derivatives of related curves, multiplication or division of curves to increase the number and types of samples of the sample logging curves; The dimensionality reduction processing of the sample logging curves includes: performing principal component analysis and sensitivity analysis on the sample logging curves to obtain analysis results; and removing redundant logging curves from the sample logging curves according to the analysis results.
6. A method for predicting core saturation, the method comprising: According to the preset sampling rules, the well to be logged is sampled to obtain the original logging curve of the well to be logged; Performing well depth correction on the original logging curve of the well to be logged to obtain the logging curve of the well to be logged; Inputting the logging curve of the well to be logged into the core saturation prediction model; According to the output data of the core saturation prediction model, a core saturation prediction result of the well to be tested is obtained; Wherein, the core saturation prediction model is a model constructed according to the method described in any one of claims 1-5.
7. A core saturation prediction model construction device, characterized in that: The device comprises: A data acquisition module is used to acquire sample data, wherein the sample data includes a sample well logging curve and a sample core saturation corresponding to the sample well logging curve, wherein the sample well logging curve is obtained by calibrating the depth of the original well logging curve, wherein the core saturation in the sample data matches the well logging curve according to the depth, and the change characteristics of the core saturation are consistent with the change characteristics of the related well logging curve; A division module, used for dividing the sample data into a training sample set and a test sample set; A training module, used to train different machine learning models according to the training sample set to obtain multiple trained machine learning models; A model building module is used to test the multiple trained machine learning models according to the test sample set, and select the trained machine learning model with the best test result as the core saturation prediction model.
8. A core saturation prediction device, characterized in that: The device comprises: The sampling module is used to sample the well to be logged according to the preset sampling rules to obtain the original logging curve of the well to be logged; A preprocessing module, used for performing well depth correction on the original logging curve of the well to be logged, so as to obtain the logging curve of the well to be logged; An input module, used for inputting the logging curve of the well to be logged into the core saturation prediction model; A prediction module, used to obtain the core saturation prediction result of the well to be tested according to the output data of the core saturation prediction model; Wherein, the core saturation prediction model is a model constructed according to the method described in any one of claims 1-5.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the core saturation prediction model construction method described in any one of claims 1 to 5 or the core saturation prediction method described in claim 6.
10. An electronic device, characterized in that: The electronic device includes at least one processor, and at least one memory and a bus connected to the processor; Wherein, the processor and the memory communicate with each other through the bus; The processor is used to call the program instructions in the memory to execute the core saturation prediction model construction method described in any one of claims 1 to 5 or the core saturation prediction method described in claim 6.
Citation Information
Cited By
Machine learning lithofacies automatic identification method based on imaging gravel content
CN116168224A
Machine learning-based automatic lithofacies identification method based on imaging gravel content
CN116168224B
