Cement slurry formulation recommendation method and system based on similarity

By recommending cement slurry formulations through similarity calculation and neural network models, and combining user feedback for optimization, the problems of low efficiency and poor reliability in traditional methods have been solved, achieving efficient and reliable cement slurry formulation design and promoting the digital transformation of the oil and gas industry.

CN123142802APending Publication Date: 2026-11-20CHINA NAT PETROLEUM CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510652678.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Traditional cement slurry formulation design relies on the experience of technicians and repetitive experiments, which is inefficient and has poor data management, resulting in low reliability of cement slurry formulations and difficulty in meeting the construction needs in complex environments.

Method used

By adopting a similarity-based approach, the current construction data and historical construction datasets of the target area are obtained. The optimal cement slurry formula is recommended using similarity calculation and neural network model. This is further optimized by combining user feedback, forming a closed-loop architecture that reduces reliance on high-performance hardware and IT professional teams.

Benefits of technology

It improves the reliability and design efficiency of cement slurry formulations, reduces the number of experiments and costs, adapts to construction needs in complex environments, and promotes the digital transformation of the oil and gas industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142802A_ABST
    Figure CN123142802A_ABST
Patent Text Reader

Abstract

The application provides a cementing slurry formula recommendation method and system based on similarity, which comprises the following steps: obtaining a current construction data group and a historical construction data set of a target area, wherein the historical construction data set comprises a plurality of historical construction data groups and their respective corresponding cementing slurry formulas; performing similarity processing on each historical construction data group and the current construction data group respectively to obtain the overall similarity between each historical construction data group and the current construction data group, and determining an initial formula from the cementing slurry formula corresponding to each historical construction data group according to each overall similarity; obtaining environmental data corresponding to the initial formula, and determining a final recommended formula according to the initial formula and the environmental data. The application can improve the reliability of the recommended cementing slurry formula.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of oil and gas exploration and development technology, and in particular to a method and system for recommending cement slurry formulations based on similarity. Background Technology

[0002] Cementing operations, a crucial step in oil and gas extraction, directly impact wellbore safety and production lifespan. Traditional formulation design heavily relies on the experience of technical personnel and repetitive laboratory verification, resulting in low efficiency, difficulties in passing on technical experience, and outdated data management methods that hinder technological iteration.

[0003] Patent CN119560061A discloses a method, apparatus, and computing device for predicting the performance of cement slurry. The method includes: using a blank group experiment to determine the type and amount of admixtures used in the same batch of cement materials, thereby forming multiple sets of cement slurry admixture formulation data to be predicted; inputting the cement slurry admixture formulation data to be predicted into a pre-trained performance prediction model for processing to obtain cement slurry performance prediction data; comparing the target cement slurry performance data required for the operation with the multiple cement slurry performance prediction data; and determining the target cement slurry admixture formulation data from the multiple sets of cement slurry admixture formulation data corresponding to the multiple cement slurry performance prediction data based on the comparison results.

[0004] However, many factors influence the performance of cement slurry, including temperature, pressure, formulation type, and content. Often, even a small change in one factor can lead to a significant alteration in cement slurry performance. The methods described above do not consider the impact of environmental conditions on cement slurry performance, potentially resulting in low reliability of the final cement slurry admixture formulation. Furthermore, using blank control experiments to determine the predicted cement slurry admixture formulation data does not account for the impact of current construction data or new operational requirements, which may also lead to unreliable predicted cement slurry performance data.

[0005] Therefore, there is an urgent need for a method to recommend cement slurry formulations that can improve the reliability of recommended cement slurry formulations. Summary of the Invention

[0006] To address the problems in the existing technology, this application proposes a similarity-based method and system for recommending cement slurry formulations, which can improve the reliability of the recommended cement slurry formulations.

[0007] To address the aforementioned technical problems, this application provides the following technical solution:

[0008] Firstly, this application provides a method for recommending cement slurry formulations based on similarity, including:

[0009] Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their respective corresponding cementing slurry formulas.

[0010] Each set of historical construction data is compared with the current construction data set to obtain the overall similarity between each set of historical construction data and the current construction data set. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each set of historical construction data.

[0011] Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0012] In one embodiment, the current construction data set includes: construction data with multiple attributes; the historical construction data set includes: historical construction data for each of the aforementioned attributes; the data types of the multiple attributes include: text type and numeric type; the multiple attributes include: well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density.

[0013] In one embodiment, the step of performing similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group includes:

[0014] By applying the historical construction data in the historical construction data group, its corresponding construction data, and the similarity calculation model, the similarity between the historical construction data in the historical construction data group and its corresponding construction data is obtained. The construction data corresponding to the historical construction data is the construction data with the same attributes as the historical construction data. The similarity calculation model corresponding to the historical construction data is the similarity calculation model corresponding to the data type of its attributes. The similarity calculation models corresponding to each data type are different.

[0015] Obtain the weight values ​​of various attributes, and based on the weight values ​​of various attributes and the similarity between each historical construction data in the same historical construction data group and its corresponding construction data, obtain the overall similarity between the historical construction data group and the current construction data group.

[0016] In one embodiment, the step of performing similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group further includes:

[0017] Based on the overall similarity between each group of historical construction data and the current construction data group, it is determined whether to update the weight values ​​of each attribute. If so, the weight values ​​of each attribute are updated based on the weight values ​​of each attribute, the total number of historical construction data groups, and the overall similarity between each group of historical construction data and the current construction data group.

[0018] In one embodiment, determining the initial formula from the cement slurry formulas corresponding to each group of historical construction data based on the overall similarity includes:

[0019] The historical construction data groups with the highest overall similarity are all determined as the initial construction data groups, and the cement slurry formulas corresponding to each initial construction data group are determined as the formulas to be screened and output to the front end.

[0020] The user selects the initial recipe from the various recipes to be screened, as sent by the front end.

[0021] In one embodiment, determining the final recommended formulation based on the initial formulation and the environmental data includes:

[0022] The initial formula is used as the target initial formula, and an optimization step is performed. The optimization step includes: inputting the target initial formula and the environmental data into a preset performance prediction model to obtain predicted performance indicators.

[0023] Determine whether the predicted performance index meets the preset performance index conditions; if so, determine the target initial formula as the final recommended formula.

[0024] The preset performance prediction model is obtained by pre-training a neural network model based on a batch of training samples and their corresponding actual performance indicators. Each training sample includes: experimental recipe and experimental environment data.

[0025] In one embodiment, determining the final recommended formula based on the initial formula and the environmental data further includes:

[0026] If the predicted performance index does not meet the preset performance index conditions, the initial formula is adjusted, and the adjusted initial formula is used as the target initial formula, and the optimization step is executed again.

[0027] Secondly, this application provides a similarity-based cement slurry formulation recommendation system, including:

[0028] The acquisition module is used to acquire the current construction data set and historical construction data set of the target area. The historical construction data set includes: multiple sets of historical construction data sets and their corresponding cementing slurry formulas.

[0029] The formula recommendation module is used to perform similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group. Based on the overall similarity, the initial formula is determined from the cementing slurry formulas corresponding to each group of historical construction data.

[0030] The determination module is used to acquire environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0031] In one embodiment, the current construction data set includes: construction data with multiple attributes; the historical construction data set includes: historical construction data for each of the aforementioned attributes; the data types of the multiple attributes include: text type and numeric type; the multiple attributes include: well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density.

[0032] In one embodiment, the recipe recommendation module includes:

[0033] A similarity unit is determined, which is used to apply the historical construction data in the historical construction data group, its corresponding construction data, and the similarity calculation model to obtain the similarity between the historical construction data in the historical construction data group and its corresponding construction data. The construction data corresponding to the historical construction data is the construction data with the same attribute as the historical construction data. The similarity calculation model corresponding to the historical construction data is the similarity calculation model corresponding to the data type of its attribute. The similarity calculation models corresponding to each data type are different.

[0034] An overall similarity unit is determined to obtain the weight values ​​of various attributes. Based on the weight values ​​of various attributes and the similarity between each historical construction data in the same historical construction data group and its corresponding construction data, the overall similarity between the historical construction data group and the current construction data group is obtained.

[0035] In one embodiment, the similarity-based cement slurry formulation recommendation system further includes:

[0036] The update module is used to determine whether to update the weight values ​​of various attributes based on the overall similarity between each group of historical construction data and the current construction data group. If so, the update of the weight values ​​of various attributes is completed based on the weight values ​​of various attributes, the total number of historical construction data groups, and the overall similarity between each group of historical construction data and the current construction data group.

[0037] In one embodiment, the recipe recommendation module includes:

[0038] The determination unit is used to determine the historical construction data groups with the highest overall similarity as the initial selection construction data groups, and to determine the cement slurry formulas corresponding to each initial selection construction data group as the formulas to be screened and output them to the front end.

[0039] A filtering unit is used to receive, from the front end, a formula selected by the user from the various formulas to be filtered as the initial formula.

[0040] In one embodiment, the determining module includes:

[0041] An optimization unit is used to take the initial formula as a target initial formula and perform an optimization step, which includes: inputting the target initial formula and the environmental data into a preset performance prediction model to obtain a predicted performance index;

[0042] The judgment unit is used to determine whether the predicted performance index meets the preset performance index conditions. If so, the target initial formula is determined as the final recommended formula.

[0043] The preset performance prediction model is obtained by pre-training a neural network model based on a batch of training samples and their corresponding actual performance indicators. Each training sample includes: experimental recipe and experimental environment data.

[0044] In one embodiment, the determining module further includes:

[0045] An execution unit is configured to, if the predicted performance index does not meet the preset performance index conditions, adjust the target initial formula, use the adjusted target initial formula as the target initial formula, and execute the optimization step again.

[0046] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the similarity-based cement slurry formulation recommendation method.

[0047] Fourthly, this application provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, implement the similarity-based cement slurry formulation recommendation method.

[0048] Fifthly, this application provides a computer program product, which includes a computer program that, when executed by a processor, implements the similarity-based cement slurry formulation recommendation method.

[0049] As can be seen from the above technical solution, this application provides a method and system for recommending cement slurry formulations based on similarity. The method includes: acquiring current construction data sets and historical construction data sets for a target area, wherein the historical construction data sets include: multiple historical construction data sets and their corresponding cement slurry formulations; performing similarity processing on each historical construction data set with the current construction data set to obtain the overall similarity between each historical construction data set and the current construction data set; determining an initial formulation from the cement slurry formulations corresponding to each historical construction data set based on the overall similarity; acquiring environmental data corresponding to the initial formulation; and determining a final recommended formulation based on the initial formulation and the environmental data, which can improve the recommended cement slurry formulation. The reliability of the cement slurry formulation is improved. Specifically, by performing similarity processing on each group of historical construction data and the current construction data group, the relationship between the two groups can be quantified. This eliminates the need for blank group experiments, improving the accuracy of determining the initial formulation and reducing costs. Determining the final recommended formulation using environmental data further enhances the reliability of the initial formulation. In the process of designing cement slurry formulations, technicians typically need to conduct numerous, repetitive, and time-consuming cement slurry performance tests to determine the final formulation. Almost every minor adjustment to the formulation requires repeating a set of cement slurry performance tests, increasing the workload for technicians. This application integrates experimental data and work record databases, combining recommendation algorithms and neural network prediction models to form a closed-loop architecture of "formula recommendation - performance prediction - dynamic optimization" to recommend cement slurry formulations suitable for new construction requirements, providing technicians with some insights into cement slurry formulation selection. Attached Figure Description

[0050] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 This is a schematic diagram of the first process of the cement slurry formulation recommendation method based on similarity in the embodiments of this application;

[0052] Figure 2 This is a schematic diagram of the second process of the cement slurry formulation recommendation method based on similarity in the embodiments of this application;

[0053] Figure 3 This is a schematic diagram of the third process of the similarity-based cement slurry formulation recommendation method in the embodiments of this application;

[0054] Figure 4 This is a schematic diagram of the fourth process of the similarity-based cement slurry formulation recommendation method in the embodiments of this application;

[0055] Figure 5 This is a schematic diagram illustrating the relationship between the input values ​​and similarity in the numerical type similarity calculation in an application example of this application;

[0056] Figure 6 This is a schematic diagram of the Sigmoid function in an application example of this application;

[0057] Figure 7 This is a schematic diagram of the neural network model in the application example of this application;

[0058] Figure 8(a) is a schematic diagram of the first mean absolute error curve in an application example of this application;

[0059] Figure 8(b) is a schematic diagram of the second mean absolute error curve in an application example of this application;

[0060] Figure 9 This is a schematic diagram of the similarity-based cement slurry formulation recommendation system in an embodiment of this application;

[0061] Figure 10 This is a logical diagram of the similarity-based cement slurry formulation recommendation method in an application example of this application;

[0062] Figure 11 This is a schematic block diagram of the system configuration of an electronic device according to an embodiment of this application. Detailed Implementation

[0063] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0064] The digital transformation of the oil and gas industry, driven by information technology, is reshaping traditional production models through technologies such as the Internet of Things and big data. Cementing operations, a crucial step in oil and gas extraction, directly impact wellbore safety and production lifespan. This process requires injecting cement slurry into the gap between the casing and the formation to form a sealing barrier. However, the high-temperature and high-pressure environment of deep and ultra-deep extraction significantly increases the complexity of cement slurry formulation design. Traditional formulation design heavily relies on the experience of technical personnel and repetitive laboratory verification, resulting in low efficiency, difficulty in passing on technical experience, and outdated data management methods that hinder technological iteration.

[0065] Addressing industry pain points, machine learning technology has opened up new avenues for cement slurry design. Existing research has demonstrated the effectiveness of various intelligent algorithms in performance prediction: artificial neural networks can predict slurry compressive strength and thickening time, Gaussian process regression can inversely derive formulation parameters, and cluster analysis can assess the long-term stability of cement. Experimental verification shows that machine learning models achieve a prediction accuracy of over 90% for key performance indicators, significantly reducing the number of laboratory verifications required.

[0066] Based on this, this application provides a similarity-based cement slurry formulation recommendation method and system, which can overcome the limitations of traditional methods that rely on technical experience, historical data, and repeated experiments. The model recommends the optimal formulation set by calculating the similarity between the new design target and historical data, iteratively optimizes using a Bayesian personalized ranking algorithm combined with user feedback, and uses a trained artificial neural network to predict slurry performance. When the initial recommendation fails to meet the requirements, the system proposes formulation adjustment suggestions using a gradient descent algorithm. By integrating historical data and user feedback, and combining a recommendation system with predictive analysis technology, this research provides a scalable intelligent solution for cementing operations, significantly improving the accuracy of formulation design and engineering efficiency, and promoting the digital transformation of the oil and gas industry. The system can be built using any development language, environment, and tools to develop related modules. This solution addresses the problems in existing technologies: 1. The selection of cement slurry formulations relies on a large number of cement slurry performance tests, which is time-consuming and costly; 2. Cement slurry formulation design is highly dependent on human experience; 3. Complex models have high requirements for computing hardware performance and are difficult to implement and maintain.

[0067] This application relates to the implementation of similarity-based cement slurry formulation recommendation in oil and gas exploration and development, integrating multiple technologies such as databases, data analysis, text analysis, and machine learning. Specifically, the intelligent solution proposed in this application can build a lightweight system adapted to industry characteristics: by integrating experimental data and work record databases, and combining recommendation algorithms with neural network prediction models, a closed-loop architecture of "formula recommendation - performance prediction - dynamic optimization" is formed. It can innovatively adopt a user feedback mechanism to replace complex unsupervised learning, reducing reliance on IT professional teams and high-performance hardware. With limited initial data, the system achieves incremental optimization through user interaction, especially suitable for the business scenarios of cementing service providers with fixed additive combinations. This solution not only provides a practical technical tool for the digital transformation of the oil and gas industry but also provides a cross-domain reference paradigm for the intelligent transformation of process industries.

[0068] The following examples illustrate this in detail.

[0069] To improve the reliability of recommended cement slurry formulations, this embodiment provides a similarity-based cement slurry formulation recommendation method, where the execution entity is a similarity-based cement slurry formulation recommendation system. Figure 1 As shown, this method specifically includes the following:

[0070] Step 100: Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their corresponding cementing slurry formulas.

[0071] Specifically, the historical construction dataset can be collected in advance and continuously stored and maintained in a designated database. The historical construction data set can be a pre-collected construction data set. The current construction data set can reflect the current construction requirements. Both the historical and current construction data sets can be real construction data. The current construction data set can include construction data with multiple attributes. The historical construction data set includes historical construction data for each of the aforementioned attributes. The data types of the multiple attributes can include text and numeric types. The attributes can include well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density, etc. The construction data for each attribute can represent the attribute value.

[0072] Step 200: Perform similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group. Based on the overall similarity, determine the initial formula from the cementing slurry formula corresponding to each group of historical construction data.

[0073] Step 300: Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0074] Specifically, an initial cementing slurry can be formed using an initial formula. After the cementing slurry solidifies, it serves as a sample, and its parameters are measured. These parameters include sample size, time taken, sample length, and sample diameter. The sample parameters can be pre-stored in a designated database along with historical construction data. The formula selection and determination are for new operational design requirements and should be based on these new requirements. Before cementing, the well depth and related temperature and pressure information for new drilling operations are known in advance. The environmental data can represent the new cementing operation requirements and may include the sample parameters, downhole pressure, and downhole temperature from the current construction data set.

[0075] like Figure 2 As shown, in one embodiment, step 200, which involves performing similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group, includes:

[0076] Step 201: Apply the historical construction data in the historical construction data group, its corresponding construction data, and the similarity calculation model to obtain the similarity between the historical construction data in the historical construction data group and its corresponding construction data. The construction data corresponding to the historical construction data is the construction data with the same attributes as the historical construction data. The similarity calculation model corresponding to the historical construction data is the similarity calculation model corresponding to the data type of its attributes. The similarity calculation models corresponding to each data type are different.

[0077] Specifically, the similarity calculation model for text types can be as follows:

[0078]

[0079] The similarity calculation model for numerical data types can be shown below:

[0080]

[0081] Where x represents historical construction data, and a represents the construction data corresponding to x.

[0082] Step 202: Obtain the weight values ​​of various attributes, and based on the weight values ​​of various attributes and the similarity between each historical construction data in the same historical construction data group and its corresponding construction data, obtain the overall similarity between the historical construction data group and the current construction data group.

[0083] Specifically, the initial values ​​of the weights of various attributes can be preset according to the actual situation; the overall similarity between any historical construction data group and the current construction data group can be determined according to the following formula:

[0084]

[0085] Where n represents the total number of attributes, w represents the weight, and S i This represents the similarity between the i-th historical construction data in the historical construction data group and the i-th construction data in the current construction data group, where the i-th historical construction data and the i-th construction data have the same attributes.

[0086] For example, historical construction data sets include: historical construction data sets A1 and A2; historical construction data set A1 includes: casing type 1 and well depth 1; historical construction data set A2 includes: casing type 2 and well depth 2; current construction data set includes: casing type 3 and well depth 3. A similarity calculation model corresponding to text types can be applied to determine the similarity between casing type 1 and casing type 3, and between casing type 2 and casing type 3; a similarity calculation model corresponding to numerical types can be applied to determine the similarity between well depth 1 and well depth 3, and between well depth 2 and well depth 3. The overall similarity between historical construction data set A1 and the current construction data set can be determined based on the similarity between casing type 1 and casing type 3, between well depth 1 and well depth 3, the weight corresponding to casing type, and the weight corresponding to well depth. Similarly, the overall similarity between historical construction data set A2 and the current construction data set can be determined based on the similarity between casing type 2 and casing type 3, between well depth 2 and well depth 3, the weight corresponding to casing type, and the weight corresponding to well depth.

[0087] As can be seen from the above description, the similarity-based cement slurry formulation recommendation method provided in this embodiment can effectively take into account both the physical meaning and classification characteristics of engineering parameters, ensure the engineering applicability of the recommendation results, highlight the core parameters, and also take into account the influence of auxiliary attributes, thus achieving multi-dimensional optimal matching.

[0088] like Figure 3 As shown, in one embodiment, step 200 further includes:

[0089] Step 203: Based on the overall similarity between each group of historical construction data and the current construction data group, determine whether to update the weight values ​​of each attribute. If so, update the weight values ​​of each attribute based on the weight values ​​of each attribute, the total number of historical construction data groups, and the overall similarity between each group of historical construction data and the current construction data group.

[0090] Specifically, after updating the weight values ​​of various attributes, it is convenient to apply the updated weight values ​​in the next application to obtain the overall similarity between each group of historical construction data and the current construction data group. The overall similarity between each group of historical construction data and the current construction data group can be input into the Bayesian personalized ranking loss function to obtain its output. If the output is greater than the output threshold, then the weight values ​​of each attribute are updated. Historical construction data groups can correspond one-to-one with cement slurry formulations, and cement slurry formulations can represent recommended solutions. The Bayesian personalized ranking loss function can be as follows:

[0091] L=∑ k,j ∈m and k≠j-ln(sigmoid(os k -os j ))

[0092] Where m represents the total number of historical construction data sets; k represents the historical construction data set corresponding to the initial formula; j represents the historical construction data set other than k; os k os represents the overall similarity between k and the current construction data set. j This indicates the overall similarity between j and the current construction data group.

[0093] Specifically, the updated weight value w' of attribute y can be obtained according to the following formula. y :

[0094]

[0095]

[0096] Among them, w y This represents the current weight value of attribute y, where a represents the learning rate, and s represents the current weight value of attribute y. k,w s represents the similarity between construction data with attribute y and historical construction data with attribute y in k. j,w This represents the similarity between construction data with attribute y and historical construction data with attribute y in j.

[0097] As described above, the similarity-based cement slurry formulation recommendation method provided in this embodiment can effectively reduce the complexity of determining the overall similarity by utilizing user feedback. Each user's use can help correct the weights, making the weight values ​​more accurate and the resulting initial formulation more reliable.

[0098] In one embodiment, step 200, determining the initial formula from the cement slurry formulas corresponding to each group of historical construction data based on the overall similarity, includes:

[0099] Step 211: Determine the historical construction data groups with the highest overall similarity as the initial construction data groups, and determine the cement slurry formulas corresponding to each initial construction data group as the formulas to be screened and output them to the front end.

[0100] Specifically, the preset number of groups can be set according to actual conditions, and this application does not impose any restrictions on this. Alternatively, the historical construction data group with the highest overall similarity can be used as the initial formula.

[0101] Step 212: Receive the initial recipe as the recipe selected by the user from each of the recipes to be screened, sent by the front end.

[0102] As can be seen from the above description, the cement slurry formulation recommendation method based on similarity provided in this embodiment can improve the flexibility in determining the initial formulation and can reflect user preferences.

[0103] like Figure 4 As shown, in one embodiment, step 300, determining the final recommended formula based on the initial formula and the environmental data, includes:

[0104] Step 301: Using the initial formula as the target initial formula, perform an optimization step, which includes: inputting the target initial formula and the environmental data into a preset performance prediction model to obtain predicted performance indicators.

[0105] Specifically, the environmental data may include: sample size, test pressure, and test temperature, etc. The predicted performance indicators may include: cement strength, Young's modulus, and Poisson's ratio, etc.

[0106] Step 302: Determine whether the predicted performance index meets the preset performance index conditions. If so, determine the target initial formula as the final recommended formula. The preset performance prediction model is obtained by pre-training a neural network model based on a batch of training samples and their corresponding actual performance indicators. Each training sample includes: experimental formula and experimental environment data.

[0107] Specifically, the preset performance index conditions can be set according to actual conditions, and this application does not impose any restrictions on this. For example, if the cement strength is within a preset strength range, the Young's modulus is within a preset Young's modulus range, and the Poisson's ratio is within a preset Poisson's ratio range, then the predicted performance index is determined to meet the preset performance index conditions. The preset strength range, the preset Young's modulus range, and the preset Poisson's ratio range can all be set according to actual conditions, and this application does not impose any restrictions on this. The neural network model can be an artificial neural network model.

[0108] Furthermore, to improve the reliability of the performance prediction model, experimental data can be obtained before step 301. The experimental data includes: batch training samples and their corresponding actual performance indicators; the neural network model is trained using the experimental data to obtain the preset performance prediction model.

[0109] As described above, the similarity-based cement slurry formulation recommendation method provided in this embodiment can fine-tune the admixture dosage and re-predict when the predicted performance indicators do not meet the requirements, further improving the reliability of the predicted performance indicators. Using experimental formulations and experimental environment data can increase the training sample size, thereby improving the reliability of model training.

[0110] To optimize the initial formulation, in one embodiment, step 300, which involves determining the final recommended formulation based on the initial formulation and the environmental data, further includes:

[0111] Step 303: If the predicted performance index does not meet the preset performance index conditions, the initial formula is adjusted, and the adjusted initial formula is used as the target initial formula. The optimization step is then executed again.

[0112] To further illustrate this solution, this application provides an application example of a similarity-based cement slurry formulation recommendation method, as described in detail below:

[0113] Step 1: Apply the initial recipe recommendation model to complete the initial recipe recommendation.

[0114] When designing cement slurry formulations for cementing operations, experienced engineers typically prioritize searching historical operation cases within the same oilfield or block with similar wellbore configurations and design objectives. Table 1 presents a historical construction data table, showcasing an example table structure design that must include necessary field operation data and design data. The operation objective parameters include all attribute information listed in Table 1, including: number, block, oilfield, well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density (excluding the cement slurry formulation). The system will generate an initial formulation based on these inputs. The specific process is as follows: First, the independent similarity between the new objective and each attribute of the historical data is calculated, and the overall similarity index is calculated by assigning different weights. Then, the formulations are sorted in descending order of similarity, and the top n optimal formulations are recommended as initial candidate schemes. Table 1 can be stored in a designated database used to store historical operation data and experimental data. There are no special requirements for the database type; a simple relational database can be used for data storage.

[0115] Table 1

[0116]

[0117] To improve computational efficiency, the system uses block and oilfield attributes for preliminary data filtering, excluding historical records from irrelevant areas. If using a relational database, it is recommended to index the block and oilfield attributes to accelerate queries. As shown in Table 1, data attributes are divided into two categories: numerical (e.g., well depth, temperature) and textual (e.g., well name, casing type). A differentiated similarity calculation method should be used. This hybrid similarity calculation mechanism can effectively take into account both the physical meaning and classification characteristics of engineering parameters, ensuring the engineering applicability of the recommended results.

[0118] Text type similarity calculation: There are various algorithms for text similarity calculation, and common methods include cosine similarity and Longest Common Subsequence (LCS). All algorithms output numerical similarity results between 0 and 1: 0 indicates that the two texts are completely different, and 1 indicates that they are completely identical. This application example uses the LCS algorithm for text matching. Its principle is to calculate the length of the longest common subsequence of consecutive characters in two strings, and determine the similarity based on the ratio of this length to the length of the original string. The specific algorithm is shown in formula (1). This algorithm is particularly suitable for engineering text data with fixed naming rules, such as well names and casing types, and can effectively identify patterned features in historical data.

[0119]

[0120] Taking the "block location" attribute as an example, the similarity calculation process is as follows: First, extract the location description from historical data and the location text of the new cementing operation block. Calculate the sum of the lengths of all common subsequences between the two. Then, divide this sum by the total number of characters in the new cementing operation block text. The resulting ratio is the location attribute similarity. This method is implemented using the Longest Common Subsequence (LCS) algorithm, which can effectively capture key geographic identifiers in the location description (such as hierarchical information like "XX Basin-Tectonic Zone"), avoiding misjudgments of similarity due to differences in expression formats, and ensuring accurate matching of regional geological features.

[0121] Numerical similarity calculation: For numerical attributes (such as well depth, temperature, etc.), normalization is required to ensure that the similarity result is within the range of 0 to 1. This application example uses formula (2) to calculate numerical similarity. This method effectively eliminates dimensional differences, making engineering parameters of different orders of magnitude (such as pressure unit MPa and well depth unit meter) comparable, while retaining the physical meaning of parameter changes.

[0122]

[0123] Formula (2) defines a method for calculating numerical attribute similarity, with the calculation result limited to the interval [0,1]. Here, a represents the target value of the new task, and x is the corresponding attribute value in the historical data. This formula is a function symmetric about the line x = a, as shown below. Figure 5As shown: when x = a, the similarity reaches its maximum value of 1; when x = 2a, the similarity calculation result is 0.25. The parameter a can be any non-zero real number (in actual engineering, the design benchmark values ​​such as temperature, pressure, and well depth cannot be 0). For example, when calculating the well depth similarity, if the target well depth of the new operation is 3000 meters and the well depth of a certain historical data entry is 2700 meters, the similarity can be calculated as 0.91 by formula (2). This method highlights the correlation of neighboring data through the exponential decay function, while ensuring that the similarity of extreme difference data approaches 0, which meets the actual needs of sensitivity to key parameters in engineering scenarios.

[0124] Overall similarity calculation: Overall similarity is achieved through user-defined weights, which are calculated by weighted summation of the similarity of each attribute and its corresponding weight, as shown in formula (3). Users assign initial weights to different attributes according to project requirements, reflecting the differences in importance of each parameter. Then, the weights are normalized using the softmax function to ensure that the sum of all weights is 1 and the overall similarity value remains within the [0,1] range.

[0125]

[0126] Where n is the total number of attributes, w is the weight normalized by the softmax function, and s is the similarity of a single attribute. Since the sum of the normalized weights w is 1, and the range of single attribute similarity is between [0,1], the overall similarity is also guaranteed to fall within the interval [0,1]. After filtering historical data by specific attributes such as blocks or oil fields, the overall similarity between the new operation target and the historical operation data is calculated. The historical operation entries are sorted in descending order of overall similarity, and the entries with the highest overall similarity are output. For example, when the well depth weight is set to 0.3 and the temperature weight is 0.2, the system will focus on matching historical cases with similar wellbore structures. This method gives users flexible weight adjustment capabilities, which can highlight the core parameters while taking into account the influence of auxiliary attributes, achieving multi-dimensional optimal matching.

[0127] Step 2: The weights of the initial recipe recommendation model are automatically updated.

[0128] Overall similarity is calculated based on user-assigned weights, but the initial weights are only roughly set based on user experience. Users have only a vague understanding of the importance of each attribute in cementing design, making it difficult to accurately quantify the weights. However, designing cement slurry formulations based on purely data-driven schemes is challenging, requiring overly complex models that are difficult to deploy and maintain and require significant computational resources. Therefore, utilizing user feedback can effectively reduce model complexity, and each user interaction can help refine the recommended model.

[0129] Bayesian Personalized Recommendation Algorithm: If the system requires users to choose the best recommendation based on their understanding of cementing operations, then user selection can be considered a reward mechanism for the recommendation system, similar to the concept of reinforcement learning. To make the model simpler and more effective, Bayesian Personalized Ranking (BPR) can be used. BPR is a probability-based framework specifically designed for personalized ranking tasks, which can model user preferences based on feedback. For weight-based similarity calculations, BPR can dynamically adjust these weights by using user selections as feedback. The BPR loss function used in this application example is defined as shown in Equation (4). This method can uncover potential patterns in user behavior, thereby achieving continuous optimization of the model.

[0130] L=∑ k,j ∈m and k≠j -ln(sigmoid(os k -os j (4)

[0131] Where k is the recommended option selected by the user; j is the recommended option that was not selected; m is the total number of recommended options; and os is the overall similarity (ranging from 0 to 1). Figure 6 As shown, if the user selects the recommendation scheme with the highest overall similarity, the output of the sigmoid function will approach 1, and the result of the loss function will be 0, which means that the recommendation model does not need to be updated. If the user selects a recommendation scheme with a low overall similarity, the output of the sigmoid function will be close to 0, and the loss function will be a large positive value, so the model will be automatically updated, that is, the weights in formula (3) will be automatically updated.

[0132] Weight update method: After the user assigns weights, the normalized weights can be updated using the gradient descent algorithm. Combining formulas (3) and (4), the derivative of the BPR loss function with respect to the normalized weights can be calculated as formula (5).

[0133]

[0134] Where k is the recommended option selected by the user; j is the unselected recommended option; m is the total number of recommended options; os is the overall similarity (ranging from 0 to 1); y is the index of a specific attribute; w y is the normalized weight of attribute y; s is the attribute similarity. By presetting a learning rate (usually 0.1 or 0.01), each normalized weight can be updated according to formula (6).

[0135]

[0136] Step 3: Construction and application of cement slurry performance prediction model.

[0137] Although formulations can be recommended from a database based on new construction requirements, the performance of the cement slurry may not meet the current operational requirements. For example, the compressive strength of the initial cement stone formulation may not be suitable for the downhole temperature and pressure conditions of a new well. Therefore, predicting cement slurry performance and adjusting the formulation is essential. Cement slurry performance prediction is viewed as a multi-input multi-output regression model, and this technique can be used for modeling due to the good nonlinear fitting ability of artificial neural networks.

[0138] Network construction: Traditional deep neural network structures can be used to predict the performance of cement paste formulations, such as... Figure 7 As shown, the input neurons are the cement slurry formulation and test environment data, and the output neurons are the cement slurry performance. When preparing training data, some text processing algorithms need to be applied. For example, assuming the formulation is recorded as "600g Grade G cement + 10% BBB + 20% CCC + ..." (where BBB and CCC are additives used in the formulation), the algorithm can traverse all training data to identify the names of all additives and collect all unique additive names into a list (list = [Grade G cement, BBB, CCC, ...]), then use each additive in the list as the input neuron of the neural network. The algorithm can also generate corresponding input vectors based on the presence and quantity of additives in each formulation. For example, if the formulation contains BBB (10%) and CCC (20%), the input vector can be represented as [0.1, 0.2, 0, 0, ...], with a value of 0 for additives that do not appear. For example, for the mechanical test data listed in Table 2, in addition to the cement paste formula, the textual environment data such as sample size, test pressure, and test temperature should also be used as input neurons, while cement strength, Young's modulus, and Poisson's ratio are obviously output neurons.

[0139] Table 2

[0140]

[0141]

[0142] The laboratory's experimental data package contains experimental conditions and test results information, which can be used to train neural networks. Cement slurry experiments typically include five types of laboratory tests (thickening time, rheology, stability, filtrate loss, and mechanical properties) to determine slurry performance. This application example only uses mechanical property experimental data of the consolidated cement slurry to validate the system and model, including core parameters such as compressive strength and elastic modulus. Table 2 shows an example of the table structure for experimental data in mechanical testing, covering key fields such as curing conditions (temperature / pressure / duration), sample number, test items, and measured values, providing standardized data input for the machine learning model. This design ensures an effective mapping between experimental data and work records, supporting a closed-loop validation system for formulation recommendation and performance prediction. The experimental temperature can be equivalent to the simulated downhole temperature in the laboratory; the experimental pressure can be equivalent to the simulated downhole pressure in the laboratory. Although this application example uses mechanical property experiments, it can be extended and applied to other cement slurry performance experiments.

[0143] Training an artificial neural network (ANN) is relatively simple and requires no special techniques. Since all input and output data are considered to have the same impact on the ANN, normalization of the input and output training data is necessary. This prevents a single input or output value from having a larger impact on the model. Normalization and denormalization methods are shown in equations (7) and (8):

[0144]

[0145] Original value = Normalized value × (maximum value - minimum value) + minimum value (8)

[0146] After normalization, all training input and output values ​​will be limited to the range of 0 to 1. Batch normalization is recommended to improve training speed and stabilize the model. The loss function can be either mean absolute error (MAE) or mean squared error (MSE). To ensure the non-linearity of the model, ReLU and LeakyReLU have been tested as activation functions for neurons, with LeakyReLU generally providing better training results. Furthermore, cross-validation should be used to minimize the model's variance and bias.

[0147] If the prediction results do not meet the construction requirements after the formulation performance is predicted, the dosage of additives in the formulation can be fine-tuned and the prediction can be repeated through the neural network, or the laboratory formulation can be directly compounded.

[0148] To further illustrate this approach, this application provides an example of a similarity-based cement slurry formulation recommendation method, incorporating cement slurry mechanical experimental data, including:

[0149] By summarizing and cleaning existing experimental data, the prediction model was trained using approximately 20,000 experimental records. Due to computational limitations and the relatively simple nature of the model, the artificial neural network in the prediction model could run on a single computer. The number of input neurons in the neural network was 262, determined by the total number of different cement paste materials and additives and the experimental environment; the number of output neurons was 4, predicting the maximum compressive strength, average compressive strength, Young's modulus, and Poisson's ratio, respectively. The network contained 6 hidden layers, and different numbers of hidden layer neurons were tested. The artificial neural network was built and trained using the TensorFlow framework, with the mean absolute error (MAE) loss function and ADAM as the backpropagation optimizer. Different epochs and learning rates were tested to adjust the artificial neural network (ANN), primarily by selecting the number of neurons in the hidden layers. As shown in Figures 8(a) and 8(b), based on the current training dataset, the number of hidden layer neurons is considered to be 2100. In Figure 8(a), Epoch = 1 and learning rate = 0.001; in Figure 8(b), Epoch = 100 and learning rate = 0.0001. Curve 1 in Figures 8(a) and 8(b) represents the mean absolute error (MAE) curve corresponding to cross-validation, and curve 2 represents the mean absolute error (MAE) curve corresponding to training. If the number of hidden layer neurons exceeds 2100, although overfitting is unlikely, it will not produce better prediction results and will reduce the computational speed during training. According to the analysis, the normalized output of the current structure may still have 10% MAE. Furthermore, although a formulation can be recommended, its prediction performance can be improved, and the formulation can be adjusted, laboratory testing can be conducted to further improve the reliability of the formulation.

[0150] From a software perspective, to improve the reliability of recommended cement slurry formulations, this application provides an embodiment of a similarity-based cement slurry formulation recommendation system for implementing all or part of the aforementioned similarity-based cement slurry formulation recommendation method. See [link to relevant documentation]. Figure 9 The similarity-based cement slurry formulation recommendation system specifically includes the following:

[0151] The acquisition module 01 is used to acquire the current construction data set and the historical construction data set of the target area. The historical construction data set includes: multiple sets of historical construction data sets and their corresponding cementing slurry formulas.

[0152] The formula recommendation module 02 is used to perform similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each group of historical construction data.

[0153] The determination module 03 is used to obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0154] In one embodiment, the current construction data set includes: construction data with multiple attributes; the historical construction data set includes: historical construction data for each of the aforementioned attributes; the data types of the multiple attributes include: text type and numeric type; the multiple attributes include: well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density.

[0155] In one embodiment, the recipe recommendation module includes:

[0156] A similarity unit is determined, which is used to apply the historical construction data in the historical construction data group, its corresponding construction data, and the similarity calculation model to obtain the similarity between the historical construction data in the historical construction data group and its corresponding construction data. The construction data corresponding to the historical construction data is the construction data with the same attribute as the historical construction data. The similarity calculation model corresponding to the historical construction data is the similarity calculation model corresponding to the data type of its attribute. The similarity calculation models corresponding to each data type are different.

[0157] An overall similarity unit is determined to obtain the weight values ​​of various attributes. Based on the weight values ​​of various attributes and the similarity between each historical construction data in the same historical construction data group and its corresponding construction data, the overall similarity between the historical construction data group and the current construction data group is obtained.

[0158] In one embodiment, the similarity-based cement slurry formulation recommendation system further includes:

[0159] The update module is used to determine whether to update the weight values ​​of various attributes based on the overall similarity between each group of historical construction data and the current construction data group. If so, the update of the weight values ​​of various attributes is completed based on the weight values ​​of various attributes, the total number of historical construction data groups, and the overall similarity between each group of historical construction data and the current construction data group.

[0160] In one embodiment, the recipe recommendation module includes:

[0161] The determination unit is used to determine the historical construction data groups with the highest overall similarity as the initial selection construction data groups, and to determine the cement slurry formulas corresponding to each initial selection construction data group as the formulas to be screened and output them to the front end.

[0162] A filtering unit is used to receive, from the front end, a formula selected by the user from the various formulas to be filtered as the initial formula.

[0163] In one embodiment, the determining module includes:

[0164] An optimization unit is used to take the initial formula as a target initial formula and perform an optimization step, which includes: inputting the target initial formula and the environmental data into a preset performance prediction model to obtain a predicted performance index;

[0165] The judgment unit is used to determine whether the predicted performance index meets the preset performance index conditions. If so, the target initial formula is determined as the final recommended formula.

[0166] The preset performance prediction model is obtained by pre-training a neural network model based on a batch of training samples and their corresponding actual performance indicators. Each training sample includes: experimental recipe and experimental environment data.

[0167] In one embodiment, the determining module further includes:

[0168] An execution unit is configured to, if the predicted performance index does not meet the preset performance index conditions, adjust the target initial formula, use the adjusted target initial formula as the target initial formula, and execute the optimization step again.

[0169] The embodiments of the similarity-based cement slurry formulation recommendation system provided in this specification can be used to execute the processing flow of the embodiments of the similarity-based cement slurry formulation recommendation method described above. Its functions will not be repeated here, but can be referred to the detailed description of the embodiments of the similarity-based cement slurry formulation recommendation method described above.

[0170] To further illustrate this solution, this application provides an application example of a similarity-based cement slurry formulation recommendation system. In this application example, the system includes:

[0171] Database: Used to store historical data and cement slurry test data.

[0172] Formula Recommendation Module: Used for initial cement slurry formula recommendation. Users can pre-set the weights of each construction parameter. Based on the overall similarity, the module recommends several most similar historical formulas from the database. Users can choose the formula that best meets the new construction requirements as the initial formula according to their personal preferences. The formula recommendation model weights are automatically updated after the user's selection.

[0173] Cement slurry performance prediction module: This module trains a prediction model based on experimental cement slurry data from a database. A recommended initial formulation is input into the model to predict its performance. The user then determines whether the formulation meets construction requirements. If not, the input parameters can be fine-tuned (i.e., the amount of additives in the formulation can be adjusted) or a new formulation can be designed through laboratory testing. The functions of the cement slurry performance prediction module are equivalent to those of the aforementioned determination module.

[0174] To further illustrate this solution, and in conjunction with the application example of the similarity-based cement slurry formulation recommendation system described above, this application also provides an application example of a similarity-based cement slurry formulation recommendation method, such as... Figure 10 As shown, the database stores construction records and cement slurry test records. The user inputs cementing construction design parameters (which can be equivalent to the current construction data group mentioned above). The formula recommendation module recommends several formulas from the database based on similarity according to the cementing construction design parameters. The user selects a formula as the initial formula, and updates the formula recommendation model based on the user's selection (which can be equivalent to the formula (3) mentioned above). The cement slurry performance prediction module is trained by the historical data stored in the database. After selecting the initial formula, it performs cement slurry performance prediction and judges whether the formula performance index meets the requirements. If it does, the formula is output; otherwise, the initial formula is fine-tuned and input into the cement slurry performance prediction module again. It can also be tested and verified through experimental composite. In other words, this application example can calculate the total similarity in the historical construction records based on new construction requirements, such as casing size, block, depth and other attribute information. The historical construction data with the highest total similarity are arranged and displayed to the user. After the user selects a historical record, the recommendation model will automatically update the weight. Through the Bayesian similarity algorithm, the more the user uses the system and the more times they select, the more the recommendation will be biased towards the user's actual orientation. The cement slurry formula from the selected construction record is used as the initial formula and input into the performance prediction module, which is essentially a neural network. The performance prediction module is trained using cement slurry test records, and the database stores both construction records and cement slurry test records.

[0175] Figure 11 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as... Figure 11As shown, the electronic device includes: a memory 1101, a processor 1102, and a computer program stored in the memory 1101 and executable on the processor 1102. When the processor 1102 executes the computer program, it implements the following method:

[0176] Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their respective corresponding cementing slurry formulas.

[0177] Each set of historical construction data is compared with the current construction data set to obtain the overall similarity between each set of historical construction data and the current construction data set. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each set of historical construction data.

[0178] Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0179] This embodiment discloses a computer program product, which includes a computer program that, when executed by a processor, implements the following method:

[0180] Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their respective corresponding cementing slurry formulas.

[0181] Each set of historical construction data is compared with the current construction data set to obtain the overall similarity between each set of historical construction data and the current construction data set. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each set of historical construction data.

[0182] Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0183] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the following method:

[0184] Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their respective corresponding cementing slurry formulas.

[0185] Each set of historical construction data is compared with the current construction data set to obtain the overall similarity between each set of historical construction data and the current construction data set. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each set of historical construction data.

[0186] Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

[0187] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0188] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0189] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0190] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0191] In the description of this specification, the references to terms such as "an embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0192] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for recommending cement slurry formulations based on similarity, characterized in that, include: Obtain the current construction data set and historical construction data set for the target area. The historical construction data set includes: multiple sets of historical construction data sets and their respective corresponding cementing slurry formulas. Each set of historical construction data is compared with the current construction data set to obtain the overall similarity between each set of historical construction data and the current construction data set. Based on the overall similarity, the initial formula is determined from the cementing slurry formula corresponding to each set of historical construction data. Obtain the environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

2. The method for recommending cement slurry formulations based on similarity according to claim 1, characterized in that, The current construction data group includes construction data with multiple attributes; the historical construction data group includes historical construction data with various attributes; the data types of the multiple attributes include text type and numeric type; the multiple attributes include: well name, construction location, well depth, downhole pressure, downhole temperature, casing size, casing depth, and cement slurry density.

3. The method for recommending cement slurry formulations based on similarity according to claim 2, characterized in that, The step of performing similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group includes: By applying the historical construction data in the historical construction data group, its corresponding construction data, and the similarity calculation model, the similarity between the historical construction data in the historical construction data group and its corresponding construction data is obtained. The construction data corresponding to the historical construction data is the construction data with the same attributes as the historical construction data. The similarity calculation model corresponding to the historical construction data is the similarity calculation model corresponding to the data type of its attributes. The similarity calculation models corresponding to each data type are different. Obtain the weight values ​​of various attributes, and based on the weight values ​​of various attributes and the similarity between each historical construction data in the same historical construction data group and its corresponding construction data, obtain the overall similarity between the historical construction data group and the current construction data group.

4. The method for recommending cement slurry formulations based on similarity according to claim 3, characterized in that, The step of performing similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group also includes: Based on the overall similarity between each group of historical construction data and the current construction data group, it is determined whether to update the weight values ​​of each attribute. If so, the weight values ​​of each attribute are updated based on the weight values ​​of each attribute, the total number of historical construction data groups, and the overall similarity between each group of historical construction data and the current construction data group.

5. The method for recommending cement slurry formulations based on similarity according to claim 1, characterized in that, The process of determining the initial formula from the cement slurry formulas corresponding to each group of historical construction data based on the overall similarity includes: The historical construction data groups with the highest overall similarity are all determined as the initial construction data groups, and the cement slurry formulas corresponding to each initial construction data group are determined as the formulas to be screened and output to the front end. The user selects the desired formula from the various formulas to be screened, which is sent from the front end, as the initial formula.

6. The method for recommending cement slurry formulations based on similarity according to claim 1, characterized in that, The step of determining the final recommended formula based on the initial formula and the environmental data includes: The initial formula is used as the target initial formula, and an optimization step is performed. The optimization step includes: inputting the target initial formula and the environmental data into a preset performance prediction model to obtain predicted performance indicators. Determine whether the predicted performance index meets the preset performance index conditions; if so, determine the target initial formula as the final recommended formula. The preset performance prediction model is obtained by pre-training a neural network model based on a batch of training samples and their corresponding actual performance indicators. Each training sample includes: experimental recipe and experimental environment data.

7. The method for recommending cement slurry formulations based on similarity according to claim 6, characterized in that, The step of determining the final recommended formula based on the initial formula and the environmental data further includes: If the predicted performance index does not meet the preset performance index conditions, the target initial formula is adjusted, and the adjusted target initial formula is used as the target initial formula, and the optimization step is executed again.

8. A similarity-based cement slurry formulation recommendation system, characterized in that, include: The acquisition module is used to acquire the current construction data set and historical construction data set of the target area. The historical construction data set includes: multiple sets of historical construction data sets and their corresponding cementing slurry formulas. The formula recommendation module is used to perform similarity processing on each group of historical construction data and the current construction data group to obtain the overall similarity between each group of historical construction data and the current construction data group. Based on the overall similarity, the initial formula is determined from the cementing slurry formulas corresponding to each group of historical construction data. The determination module is used to acquire environmental data corresponding to the initial formula, and determine the final recommended formula based on the initial formula and the environmental data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the similarity-based cement slurry formulation recommendation method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the similarity-based cement slurry formulation recommendation method according to any one of claims 1 to 7.

11. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the similarity-based cement slurry formulation recommendation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Well cementation cement slurry performance prediction method and device and computing equipment

    CN119560061A