Well wall stability control method, device and equipment for dynamically adjusting drilling fluid ratio and storage medium
Dynamically adjusting the drilling fluid ratio through deep learning technology, solving the problem that traditional drilling fluid ratio cannot adapt to the changes in the well wall, improving the stability of the well wall and drilling efficiency, and reducing costs.
Patent Information
- Application Number
- CN202411525891.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-10-30
AI Technical Summary
The ratio of traditional drilling fluid is based on experience or fixed formulas, and cannot be adjusted in real time according to the actual status of the well wall, resulting in low fit between the drilling fluid and the well wall, increasing the risk of well wall instability, and reducing drilling efficiency and safety.
Using deep learning technology, the drilling fluid ratio is dynamically adjusted through the correlation prediction model and the collaborative optimization model, and the optimal drilling fluid ratio and parameter combination are predicted using real-time drilling environment and geological data to ensure the close fit and height of the drilling fluid and the well wall. adaptation.
It improves the stability of the well wall, reduces the risk of well wall instability, optimizes the drilling process, reduces drilling shutdown and repair time, reduces drilling costs, and improves economic benefits.
Smart Images

Figure CN119047343A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of drilling, and specifically relates to a wellbore stability control method, device, equipment and storage medium for dynamically adjusting the ratio of drilling fluid. Background Art
[0002] With the continuous advancement of oil exploration and drilling technology, the requirements for wellbore stability are becoming increasingly stringent. Wellbore instability not only affects drilling efficiency but can also lead to serious safety incidents. Wellbore stability is a critical factor in oil and gas drilling. Wellbore instability can lead to a range of problems, such as wellbore collapse, lost circulation, and stuck pipe. This not only increases drilling costs but can also cause environmental pollution and safety incidents. Drilling fluid plays a vital role in maintaining wellbore stability by providing wellbore pressure, carrying cuttings, cooling the drill bit, and lubricating the drill string.
[0003] Currently, traditional drilling fluid ratios are often based on experience or fixed formulas, and cannot be adjusted in real time according to the actual state of the wellbore during the drilling process. This single ratio method cannot adapt to the complex and changeable underground environment, resulting in the drilling fluid performance being unable to meet the requirements of wellbore stability. Therefore, the mismatch of drilling fluid performance may aggravate wellbore instability, increase the risk of drilling accidents, and reduce drilling efficiency.
[0004] Specifically, different geological conditions, rock types and drilling depths have different requirements for the performance of drilling fluids. However, existing drilling fluid proportioning technologies are often based on experience or fixed formulas, lack specificity, and cannot ensure the close fit and high adaptability of the drilling fluid to the well wall. The low fit between the drilling fluid and the well wall will lead to the drilling fluid being unable to effectively support the well wall, aggravating well wall instability. At the same time, insufficient performance of the drilling fluid will also affect drilling efficiency and increase drilling costs. Although intelligent technology has been widely used in the drilling field in recent years, the degree of intelligence in drilling fluid proportioning and well wall stability control still needs to be improved. There is a lack of real-time monitoring and dynamic adjustment capabilities, and the drilling fluid proportioning cannot be adjusted according to changes in the well wall state. As a result, the drilling fluid proportioning cannot respond to changes in the well wall state in a timely manner, and cannot effectively prevent the occurrence of well wall instability.
[0005] The existing public patent document 1, with the publication number CN115438090A, discloses a method and system for analyzing and predicting the type of wellbore instability based on block drop image features, which belongs to the field of oil and natural gas drilling. The method first obtains various types of block drop image feature data, then performs data mining on the block drop image feature data to obtain a wellbore instability type analysis and prediction model, and finally uses the wellbore instability type analysis and prediction model to analyze and predict the wellbore instability type. The present invention uses advanced data analysis methods such as data mining to form a wellbore instability type analysis and prediction method based on block drop image feature data mining, which solves the problem that the existing wellbore instability type is difficult to identify, provides a more accurate and rapid classification and prediction method for wellbore instability, and provides a basis for forming wellbore stability control countermeasures.
[0006] Existing patent document No. 2, publication number CN104732064B, discloses a method for designing oil-based drilling fluid parameters, which includes the following steps in order: testing the physical and structural properties of formation rocks through experiments; establishing a comprehensive characterization model of the wettability of the formation rock and oil-based drilling fluid system based on typical minerals, the pore structure of the formation rock, and the oil-based drilling fluid parameters, and plotting a relationship between the oil-based drilling fluid parameters and the wettability; establishing a mechanical model of the wellbore stability of the formation rock and oil-based drilling fluid system under wettability conditions, and plotting a relationship between the oil-based drilling fluid parameters and the wellbore stability; and determining the oil-based drilling fluid parameters based on the relationship between the oil-based drilling fluid parameters and the wellbore stability. The oil-based drilling fluid parameter window designed by the present invention is accurate and reasonable, capable of quantitatively evaluating the effect of the oil-based drilling fluid on maintaining wellbore stability, preventing the occurrence of complex situations downhole, and reasonably controlling the cost of the oil-based drilling fluid.
[0007] The above two patent documents do not involve a method for achieving wellbore stability control based on dynamic adjustment of drilling fluid ratio. Although patent document 2 also uses a model to complete the design of oil-based drilling fluid parameters, the model and data used in the dynamic adjustment of drilling fluid process of the present invention are different. Summary of the Invention
[0008] The present invention provides a wellbore stability control method, device, equipment and storage medium for dynamically adjusting the drilling fluid ratio, which overcomes the shortcomings of the above-mentioned existing technologies. It can effectively solve the problem that the existing traditional drilling fluid ratio is often based on experience or a fixed formula, lacks specificity, and is prone to low adhesion between the drilling fluid and the wellbore wall, which easily leads to the drilling fluid being unable to effectively support the wellbore wall and aggravating the problem of wellbore instability.
[0009] One of the technical solutions of the present invention is achieved through the following measures: a wellbore stability control method for dynamically adjusting the drilling fluid ratio, comprising: Obtain current drilling environment data and real-time drilling data, where drilling environment data includes drilling fluid performance data and geological data, and real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement; The current drilling environment data and real-time drilling data are input into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model is obtained by deep learning the neural network using a number of first samples, and each first sample includes the identification of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, and each second sample includes the identification of the optimal drilling fluid ratio and drilling parameter combination, as well as the combination of the drilling fluid ratio and any corresponding drilling parameter.
[0010] The following are further optimizations and / or improvements to the above technical solutions: The above-mentioned drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The deep learning methods and neural networks used in the association prediction model and the collaborative optimization model are the same, but the sample types used in the deep learning of the two models are different. The deep learning methods of the association prediction model include: Obtaining a plurality of first samples and dividing them into a training sample set, a validation sample set, and a test sample set according to a certain ratio, wherein each first sample includes an identifier of a drilling fluid ratio, drilling fluid performance data, and geological data; A multi-layer feedforward neural network is trained using a training set. A loss function is introduced during training. When the value of the loss function stabilizes, the training is terminated to obtain an association prediction model. The multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data. The hidden layer includes one or more layers. Nonlinearity is introduced through an activation function to process the input data and extract features. The output layer outputs the predicted drilling fluid ratio. The trained association prediction model is verified and tested using the validation set and test set respectively, the model parameters of the association prediction model are optimized, and an association prediction model that meets the test evaluation requirements is output.
[0011] The above also includes dynamic adjustment of the drilling fluid ratio based on the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Confirm whether the drilling fluid ratio received is complete and accurate and meets the requirements of the current drilling operation; In response to this, the amount of various materials required for the drilling fluid is calculated based on the drilling fluid ratio and the current mud volume; Obtain the drilling fluid performance test results, and adjust the drilling fluid ratio in reverse according to the performance test results until the performance test requirements are met.
[0012] The above drilling fluid performance test results include the evaluation results of the oil-based drilling fluid system filtration performance, the evaluation results of the oil-based drilling fluid HTHP filtration performance, and the evaluation results of the water-based drilling fluid rheological properties.
[0013] The above also includes reverse optimization of the drilling fluid ratio control model group based on actual implementation results after dynamic adjustment of the drilling fluid ratio, including: Real-time monitoring and judgment of whether drilling fluid performance or downhole key parameters are abnormal, where drilling fluid performance or downhole key parameters are the data of the dynamically adjusted drilling fluid used at the drilling site; In response, the parameters of each model in the drilling fluid ratio control model group are adjusted, and the drilling fluid ratio control model group is deep-learned again.
[0014] The second technical solution of the present invention is achieved by the following measures: a wellbore stability control device for dynamically adjusting the drilling fluid ratio, comprising: An acquisition unit, which acquires current drilling environment data and real-time drilling data, wherein the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement; The ratio determination unit inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model is obtained by deep learning the neural network using a number of first samples, and each first sample includes the identification of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, and each second sample includes the identification of the optimal drilling fluid ratio and drilling parameter combination, as well as the combination of the drilling fluid ratio and any corresponding drilling parameter.
[0015] The following are further optimizations and / or improvements to the above technical solutions: The above-mentioned ratio determination unit includes: The model training module and the drilling fluid ratio control model group include an association prediction model and a collaborative optimization model. The deep learning methods and neural networks used in the association prediction model and the collaborative optimization model are the same, but the sample types used in the deep learning of the two models are different. The deep learning methods of the association prediction model include: Obtaining a plurality of first samples and dividing them into a training sample set, a validation sample set, and a test sample set according to a certain ratio, wherein each first sample includes an identifier of a drilling fluid ratio, drilling fluid performance data, and geological data; A multi-layer feedforward neural network is trained using a training set. A loss function is introduced during training. When the value of the loss function stabilizes, the training is terminated to obtain an association prediction model. The multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data. The hidden layer includes one or more layers. Nonlinearity is introduced through an activation function to process the input data and extract features. The output layer outputs the predicted drilling fluid ratio. Use the validation set and test set to verify and test the trained association prediction model respectively, optimize the model parameters of the association prediction model, and output an association prediction model that meets the test evaluation requirements; The ratio optimization module inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination.
[0016] The above also includes: The dynamic ratio adjustment unit dynamically adjusts the drilling fluid ratio based on the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Confirm whether the drilling fluid ratio received is complete and accurate and meets the requirements of the current drilling operation; In response to this, the amount of various materials required for the drilling fluid is calculated based on the drilling fluid ratio and the current mud volume; Obtain the drilling fluid performance test results, and adjust the drilling fluid ratio in reverse according to the performance test results until the performance test requirements are met; The model reverse optimization unit, after dynamically adjusting the drilling fluid ratio, reversely optimizes the drilling fluid ratio control model group based on the actual implementation results, including: Real-time monitoring and judgment of whether drilling fluid performance or downhole key parameters are abnormal, where drilling fluid performance or downhole key parameters are the data of the dynamically adjusted drilling fluid used at the drilling site; In response, the parameters of each model in the drilling fluid ratio control model group are adjusted, and the drilling fluid ratio control model group is deep-learned again.
[0017] The third technical solution of the present invention is achieved through the following measures: an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the steps in the wellbore stability control method of dynamically adjusting the drilling fluid ratio.
[0018] The fourth technical solution of the present invention is achieved through the following measures: a storage medium, on which a computer program that can be read by a computer is stored, and the computer program is configured to execute the steps in the wellbore stability control method for dynamically adjusting the drilling fluid ratio during operation.
[0019] The present invention utilizes current drilling fluid performance data, geological data, and real-time drilling data to dynamically predict the optimal drilling fluid ratio and drilling parameter combination to adapt to current geological conditions and drilling requirements, thereby increasing the pertinence of the drilling fluid, ensuring a close fit and high adaptability between the drilling fluid and the well wall, and avoiding the problem of low fit between the drilling fluid and the well wall resulting in the drilling fluid being unable to effectively support the well wall, aggravating the problem of well wall instability, improving well wall stability, and reducing the risk of well wall instability. Furthermore, the present invention uses an associated prediction model and a collaborative optimization model to make targeted adjustments to the drilling fluid ratio. The two models are obtained by deep learning of neural networks through different samples. Therefore, according to different geological conditions and drilling requirements, the model can be continuously optimized and updated, making it highly adaptable and stable, and able to more accurately and dynamically adjust the drilling fluid ratio. In addition, the associated prediction model outputs the predicted optimal drilling fluid ratio, and the collaborative optimization model can analyze the optimal drilling fluid ratio and drilling parameter combination, reducing unnecessary drilling fluid consumption, making the drilling process smoother and more efficient, not only reducing time losses such as drilling stoppages and well repairs, but also reducing drilling costs and improving economic benefits. In addition, the present invention can also dynamically adjust the drilling fluid ratio based on the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, combined with the corresponding drilling fluid performance, so that the drilling fluid ratio is more in line with the working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Attachment Figure 1 A schematic diagram of an implementation environment provided for one embodiment of the present invention.
[0021] Attachment Figure 2 A schematic flow chart of a method for adjusting the drilling fluid ratio provided in one embodiment of the present invention.
[0022] Attachment Figure 3 A flowchart of a model deep learning method provided for one embodiment of the present invention.
[0023] Attachment Figure 4 A schematic flow chart of a method for dynamically adjusting the drilling fluid ratio provided in one embodiment of the present invention.
[0024] Attachment Figure 5 A flow chart of a method for reversely optimizing a drilling fluid ratio control model group based on actual implementation results provided in one embodiment of the present invention.
[0025] Attachment Figure 6 A schematic diagram of the device structure provided in one embodiment of the present invention.
[0026] Attachment Figure 7 A schematic diagram of the device structure provided in yet another embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention is not limited to the following embodiments, and specific implementation methods can be determined based on the technical solutions of the present invention and actual conditions.
[0028] Those skilled in the art will understand that, unless otherwise specified, a "module" or "unit" in the embodiments of the present invention refers to a computer program or portion of a computer program that has a predetermined function and works together with other related components to achieve a predetermined goal. Such a program may be implemented in whole or in part using software, hardware (e.g., processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memories) may be used to implement one or more modules or units. Furthermore, each module or unit may be part of an overall module or unit that includes the functionality of that module or unit.
[0029] In addition, in the embodiments of the present invention, “plurality” refers to two or more than two, and “first” and “second” are used for distinguishing descriptions and should not be understood as implying relative importance.
[0030] Currently, traditional drilling fluid ratios are often based on experience or fixed formulas, and cannot be adjusted in real time according to the actual state of the wellbore during drilling. This single ratio method cannot adapt to the complex and changing underground environment, resulting in the drilling fluid's performance failing to meet the requirements for wellbore stability. Therefore, the mismatch of drilling fluid properties may exacerbate wellbore instability, increase the risk of drilling accidents, and reduce drilling efficiency. Specifically, different geological conditions, rock types, and drilling depths place varying demands on the performance of drilling fluids. However, existing drilling fluid proportioning technologies are often based on experience or fixed formulas, lacking specificity and failing to ensure close fit and high adaptability between the drilling fluid and the wellbore. Consequently, low fit between the drilling fluid and the wellbore results in the drilling fluid being unable to effectively support the wellbore, exacerbating wellbore instability. Furthermore, insufficient drilling fluid performance can also affect drilling efficiency and increase drilling costs. Although intelligent technology has been widely used in the drilling field in recent years, its intelligence level in drilling fluid proportioning and wellbore stability control still needs to be improved. The technology lacks the ability to monitor and dynamically adjust in real time, making it impossible to adjust the drilling fluid proportion according to changes in wellbore conditions. Consequently, the drilling fluid proportion cannot respond to changes in wellbore conditions in a timely manner, effectively preventing wellbore instability. Therefore, in order to achieve dynamic adjustment of the drilling fluid proportion, an embodiment of the present invention provides a wellbore stability control method for dynamically adjusting the drilling fluid proportion.
[0031] An embodiment of the present invention provides a wellbore stability control method for dynamically adjusting the drilling fluid ratio. By deep learning a neural network, a drilling fluid ratio control model group is obtained. The drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model can explore the correlation between the drilling fluid ratio and wellbore stability, and obtain the optimal drilling fluid ratio through prediction of current drilling fluid performance data and geological data. The collaborative optimization model collaboratively optimizes the drilling fluid ratio and drilling parameters, and obtains the optimal drilling fluid ratio and drilling parameter combination by comparing the optimal drilling fluid ratio output by the association prediction model with real-time drilling data, and dynamically adjusts the drilling fluid ratio.
[0032] Among them, the method provided by the embodiment of the present invention may involve artificial intelligence (AI) technology and can be implemented based on artificial intelligence technology, for example, using deep learning to obtain a corresponding model through sample training.
[0033] Machine Learning (ML) is a multidisciplinary field that encompasses probability theory, statistics, approximation theory, convex analysis, and algorithmic complexity theory. It specifically studies how computers can simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is at the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications span all areas of AI.
[0034] Deep learning (DL) specifically refers to machine learning based on deep neural network models and methods. It is developed based on statistical machine learning, artificial neural networks, and other algorithmic models, combined with the development of modern big data and massive computing power. The most important technical feature of deep learning is its ability to automatically extract features.
[0035] The above-mentioned machine learning and deep learning usually include technologies such as neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0036] During neural network training, the loss function aims to keep the output of the network as close as possible to the desired predicted value. This is done by comparing the current network's predicted value with the target value, and then updating the weight vectors of each layer of the neural network based on the difference between the two. (This first update typically involves an initialization process, preconfiguring parameters for each layer of the neural network, until the network can predict the target value or a value very close to it.) Therefore, deep learning requires pre-defining how to compare the difference between the predicted and target values, which is known as the loss function.
[0037] As attached Figure 1 FIG. 1 shows a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment may include: training equipment and user equipment.
[0038] Both the training device and the usage device are computer devices; optionally, the computer device is a terminal device, such as a mobile phone, tablet computer, PC (Personal Computer) and other electronic devices; or, the computer device is a server, which can be a single server, a server cluster composed of multiple servers, or a cloud computing service center, which is not limited in this embodiment of the present invention.
[0039] A training device refers to a computer device capable of training and learning a neural network. Optionally, the training device has the ability to acquire a neural network and train and learn it according to application requirements. For example, the training device acquires a neural network from another device via a network and then trains it using training samples according to application requirements, so that the neural network has the ability to obtain the optimal drilling fluid ratio and drilling parameter combination. Optionally, the training device has the ability to construct a neural network and can independently construct a neural network according to application requirements and then train and learn it. For example, in order to obtain the optimal drilling fluid ratio and drilling parameter combination based on drilling environment data and real-time drilling data, the training device independently constructs a neural network and then trains and learns it using samples according to application requirements.
[0040] The device used refers to a computer device that has the requirements for using a neural network. Optionally, the device uses the neural network according to application requirements and obtains the neural network from other devices through the network. For example, if the device uses the requirements for predicting the optimal drilling fluid ratio and drilling parameter combination, it can obtain the neural network that has completed training and learning to predict the optimal drilling fluid ratio and drilling parameter combination from other devices through the network, and use the neural network to predict the optimal drilling fluid ratio and drilling parameter combination.
[0041] Based on this, the technical solution of the present invention will be introduced and explained below with reference to several embodiments and drawings.
[0042] Example 1: As shown in the attached Figure 2 As shown, an embodiment of the present invention discloses a wellbore stability control method for dynamically adjusting the drilling fluid ratio, comprising: Step S110 , obtaining current drilling environment data and real-time drilling data, wherein the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes bit pressure, rotation speed, and mud pump displacement.
[0043] Specifically, the process of obtaining the current drilling environment data and real-time drilling data is as follows: (1) Determine the testing environment, locate the wellbore environment to be tested, and determine the current drilling fluid type, drilling equipment, drilling environment, and geological data in combination with drilling data. The geological data includes formation type, rock mechanics parameters, etc. (2) Use monitoring equipment installed at the drilling site (such as performance testing instruments and various sensors) to obtain drilling fluid performance data and real-time drilling data. The drilling fluid performance data includes density, viscosity, API filtration loss, etc., and the real-time drilling data includes temperature, drilling pressure, rotation speed, mud pump displacement, etc.
[0044] It should be noted that all data obtained here must be correlated with wellbore stability.
[0045] The sensors mentioned above may include but are not limited to: Temperature sensors utilize the material's ability to change resistance, capacitance, or potential with temperature to convert temperature into an electrical signal. Common temperature sensors include thermocouples and thermistors, which monitor downhole temperature changes in real time.
[0046] Pressure sensors measure pressure based on the piezoresistive, piezoelectric, or capacitive effects. Piezoresistive pressure sensors reflect pressure changes by measuring changes in the resistance of the piezoresistive element. Piezoelectric pressure sensors generate voltage signals by exploiting the uneven charge distribution in piezoelectric materials when subjected to force. Capacitive pressure sensors reflect pressure changes by measuring changes in capacitance, monitoring downhole pressures such as bottomhole pressure and wellbore pressure.
[0047] Vibration sensors: These sensors measure parameters such as frequency and amplitude to reflect an object's vibration state. Common vibration sensors include piezoelectric and eddy current sensors, which monitor the vibration of downhole equipment such as drilling machinery and pumps in real time.
[0048] In actual applications, selection and adjustment may be required based on specific needs and scenarios. At the same time, in order to achieve real-time monitoring of well wall stability, it is necessary to combine other sensors and monitoring equipment, such as liquid level sensors and pH sensors.
[0049] In step S120, the current drilling environment data and real-time drilling data are input into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model is obtained by deep learning the neural network using a number of first samples, and each first sample includes an identifier of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, and each second sample includes an identifier of the optimal drilling fluid ratio and drilling parameter combination, as well as a combination of the drilling fluid ratio and any corresponding drilling parameter.
[0050] In this embodiment, the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. Although the sample types used in the deep learning process of the association prediction model and the collaborative optimization model are different, the deep learning method and neural network used are the same. Therefore, in this embodiment, the deep learning method of the association prediction model is taken as an example to illustrate the deep learning process. Figure 3 Shown, including: Step S121: obtaining a plurality of first samples and dividing them into a training sample set, a validation sample set, and a test sample set according to a certain ratio, wherein each first sample includes an identifier of a drilling fluid ratio, drilling fluid performance data, and geological data; Each of the above-mentioned first samples includes an identifier of the drilling fluid ratio and drilling fluid performance data and geological data. The specific drilling fluid performance data and geological data are screened from the historical drilling fluid performance data and historical geological data corresponding to different drilling fluid ratios to screen out data closely related to wellbore stability. In this embodiment, the drilling fluid performance data may include but is not limited to drilling fluid density, viscosity, and API filtration loss, and the geological data includes formation type and rock mechanical parameters. After screening, all data are cleaned, sorted, outliers and missing values are removed, and standardized or normalized. Further, according to the input data requirements of the multi-layer feedforward neural network, corresponding data encoding and conversion are performed.
[0051] Step S122: The multi-layer feedforward neural network is trained using the training set. A loss function is introduced during training. When the value of the loss function is stable, the training is terminated to obtain an association prediction model. The multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data. The hidden layer includes one or more layers. Nonlinearity is introduced through an activation function to process the input data and extract features. The output layer outputs a predicted drilling fluid ratio.
[0052] The structure of the multi-layer feedforward neural network used in the above training is as follows: The multi-layer feedforward neural network consists of an input layer, a hidden layer, and an output layer; The input layer receives drilling fluid performance data and geological data as input data; Hidden layers (depending on the complexity of the problem, multiple hidden layers can be designed, each containing multiple neurons) introduce nonlinearity through activation functions to process the input data and extract features. The output of each neuron usually generates nonlinearity through an activation function (such as ReLU, Sigmoid, or tanh). Choose a function to build when using it. The output layer outputs the predicted drilling fluid ratio.
[0053] Among them, the multi-layer feedforward neural network formula is as follows: Where, is an activation function, such as ReLU; is the first neurons to the current layer The weights of neurons; is the first element of the input layer or the previous hidden layer. The output of a neuron; The current layer The bias term of each neuron; is the number of neurons in the input layer or the previous hidden layer.
[0054] Input layer Represents drilling fluid performance data and geological data, output layer represents the predicted drilling fluid ratio.
[0055] When training the multi-layer feedforward neural network using the training set as described above, optimization algorithms such as backpropagation and gradient descent can also be used to train the multi-layer feedforward neural network, and a suitable loss function, such as mean square error (MSE), can be set to measure the gap between the model prediction value and the true value.
[0056] Step S123 , using the validation set and the test set to respectively validate and test the trained association prediction model, optimize the model parameters of the association prediction model, and output an association prediction model that meets the test evaluation requirements.
[0057] The above-mentioned validation set is used to verify the association prediction model, adjust the model parameters of the association prediction model (that is, optimize the weights and bias parameters of the multi-layer feedforward neural network), use the test set to test the association prediction model, and evaluate and analyze the test results. The evaluation and analysis methods include the mean square error index (MSE), the mean absolute error index (MAE), the root mean square error index (RMSE), and the determination coefficient index (R2). When the evaluation result meets the test evaluation requirements (that is, the threshold condition of the evaluation and analysis index, and the specific threshold is set according to the actual situation), all training steps are terminated. When the evaluation result does not meet the test evaluation requirements, the weights and bias parameters of the multi-layer feedforward neural network can be optimized and then re-trained.
[0058] In this embodiment, the collaborative optimization model balances the optimization requirements between different drilling parameters through multi-objective optimization (such as a weighted loss function) to achieve collaborative optimization of the drilling fluid ratio and the drilling parameters. The specific process of using a number of second samples to perform deep learning on the neural network to obtain the collaborative optimization model is the same as steps S121 to S122, with the difference that each second sample includes an identifier of the optimal drilling fluid ratio and drilling parameter combination, and a combination of the drilling fluid ratio and any corresponding drilling parameter, wherein the combination of the drilling fluid ratio and any corresponding drilling parameter is the optimal combination of the drilling fluid ratio and any corresponding drilling parameter, and the corresponding combination of any drilling parameter here is the drilling parameters that are close to the drilling parameters in the optimal combination of drilling fluid ratio and drilling parameters.
[0059] The present invention discloses a wellbore stability control method for dynamically adjusting the drilling fluid ratio. The method utilizes current drilling fluid performance data, geological data, and real-time drilling data to dynamically predict the optimal drilling fluid ratio and drilling parameter combination to adapt to current geological conditions and drilling requirements. This increases the pertinence of the drilling fluid, ensures a close fit and high adaptability between the drilling fluid and the wellbore, avoids the problem of low fit between the drilling fluid and the wellbore wall, resulting in the drilling fluid being unable to effectively support the wellbore, thereby exacerbating wellbore instability. The method improves wellbore stability and reduces the risk of wellbore instability. Furthermore, the present invention uses an associated prediction model and a collaborative optimization model to make targeted adjustments to the drilling fluid ratio. The two are obtained by deep learning of the neural network through different samples. Therefore, the model can be continuously optimized and updated according to different geological conditions and drilling requirements, so that it has high adaptability and stability, and can more accurately and dynamically adjust the drilling fluid ratio. The associated prediction model outputs the predicted optimal drilling fluid ratio, and the collaborative optimization model can analyze the optimal drilling fluid ratio and drilling parameter combination, reduce unnecessary drilling fluid consumption, and make the drilling process smoother and more efficient. It can not only reduce the time loss such as stopping drilling and repairing wells, but also reduce drilling costs and improve economic benefits.
[0060] Example 2: As shown in the attached Figure 4 As shown, the embodiment of the present invention discloses a wellbore stability control method for dynamically adjusting the drilling fluid ratio, which is a further optimization of the above embodiment. It further includes dynamically adjusting the drilling fluid ratio based on the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Step S210: confirm whether the received drilling fluid ratio is complete and accurate and meets the requirements of the current drilling operation.
[0061] Step S220, in response to the above, the amount of various materials required for the drilling fluid is calculated according to the drilling fluid ratio and the current mud volume.
[0062] Specifically, if it is confirmed that the received drilling fluid ratio is complete and accurate and meets the needs of the current drilling operation, the batching work will be carried out. That is, after the material preparation and batching equipment inspection are completed, the drilling fluid ratio control model group outputs the optimal drilling fluid ratio and the current mud volume, and calculates the amount of various materials required for the drilling fluid.
[0063] For example, the optimal drilling fluid ratio output by the drilling fluid ratio control model group includes water, bentonite, soda ash, and other additives, as well as their respective proportions in the drilling fluid, where the other additives include additive 1 and additive 2. The corresponding process for calculating the amount of various materials required for the drilling fluid based on the drilling fluid ratio and the current mud volume is as follows: The drilling fluid ratio is: water: bentonite: soda ash: additive 1: additive 2 = 45:50:2:1:2 (for example only); The current mud volume is V; The amounts of various materials required for the drilling fluid are as follows: Step S230: Obtain the drilling fluid performance test result, and adjust the drilling fluid ratio in reverse according to the performance test result until the performance test meets the requirements.
[0064] Specifically, the performance test of the drilling fluid is set according to needs, for example, including tests of indicators such as solid content, specific gravity, funnel viscosity, water loss, mud cake thickness, sand content, and pH value. The process of performing the performance test of the drilling fluid is a well-known technique. The drilling fluid performance test results obtained in this embodiment may include, but are not limited to, the results of the filtration performance evaluation of the oil-based drilling fluid system, the results of the HTHP filtration performance evaluation of the oil-based drilling fluid, and the results of the rheological properties evaluation of the water-based drilling fluid, and are specifically selected according to the type of drilling fluid (oil-based or water-based).
[0065] It should be noted that the evaluation process corresponding to the filtration performance evaluation results of the base drilling fluid system, the HTHP filtration performance evaluation results of the oil-based drilling fluid, and the rheological performance evaluation results of the water-based drilling fluid is as follows: (1) Evaluation of the filtration performance of the oil-based drilling fluid system: A medium-pressure filtration instrument was used to measure the filtration volume of the oil-based drilling fluid containing the polymer anti-multivalent cation treatment agent prepared by the solution method. The specific process is as follows: Pour 150 mL of prepared drilling fluid into the medium-pressure filter loss meter, place the gasket and special filter paper, cover the lid and tighten the seal. Record the filtrate volume within 30 minutes at an output pressure of 0.69 MPa. This is the medium-pressure API filter loss of the drilling fluid, in mL.
[0066] (2) Evaluation of HTHP filtration performance of oil-based drilling fluid: 150 mL of prepared drilling fluid was poured into a mud cup. A special filter paper for testing HTHP filtration loss was installed, sealed, and placed in a high-temperature, high-pressure filtration tester (MJ-71, Modern Petroleum Technology Development Co., Ltd.). After heating to 150°C, the upper pressure valve stem and the back pressure valve stem were connected. The upper pressure was maintained at 4.2 MPa and the back pressure was maintained at 0.7 MPa. The filtrate volume after filtration for 30 minutes was recorded. The HTHP filtration loss was calculated by multiplying the filtrate volume by 2.
[0067] (3) Evaluation of rheological properties of water-based drilling fluid: The reference data of rheological properties of drilling fluid include apparent viscosity, plastic viscosity, dynamic shear force and static shear force. After the water-based drilling fluid was stirred at a high-frequency speed of 12,000 rpm for 20 minutes, the values of Φ600 and Φ300 were measured using a six-speed rotational viscometer in accordance with the standard GB / T16782-1997. The values of Φ3 were measured after stirring at 600 rpm for 1 minute and then standing for 10 seconds and 10 minutes respectively. The apparent viscosity (AV), plastic viscosity (PV) and dynamic shear force (YP) of the water-based drilling fluid were calculated using the following formulas.
[0068] (a) Apparent viscosity AV (unit: mPa·s) = 0.511*Φ600 (b) Plastic viscosity PV (unit: mPa·s) = Φ600-Φ300 (c) Dynamic shear force (unit: Pa) YP=0.511*(Φ300-PV) (d) Initial cutting (τ initial) = 0.511*Φ3 (standing for 10s) Final cut (τfinal) = 0.511*Φ3 (standing for 10 minutes) Example 3: As shown in the attached Figure 5As shown, the embodiment of the present invention discloses a wellbore stability control method for dynamically adjusting the drilling fluid ratio, which is a further optimization of the above embodiment. It further includes reversely optimizing the drilling fluid ratio control model group according to actual implementation results after dynamically adjusting the drilling fluid ratio, including: Step S310 , real-time monitoring and determination of whether drilling fluid performance or downhole key parameters are abnormal, wherein the drilling fluid performance or downhole key parameters are data of the dynamically adjusted drilling fluid used at the drilling site.
[0069] It should be noted that the real-time monitoring and judgment of whether the drilling fluid performance or downhole key parameters are abnormal is to communicate with the existing drilling monitoring equipment, and after the drilling fluid and the drilling parameters matching the optimal drilling fluid ratio obtained by the drilling fluid ratio control model group and dynamic adjustment processing according to this embodiment are put into use, the real-time drilling fluid performance and downhole key parameters obtained by the drilling monitoring equipment.
[0070] Step S320: If the response is yes, adjust the parameters of each model in the drilling fluid ratio control model group, and re-perform deep learning on the drilling fluid ratio control model group; if the response is no, return to step S310 to continue monitoring.
[0071] It should be understood that the process of adjusting the parameters of each model in the drilling fluid ratio control model group and re-performing deep learning on the drilling fluid ratio control model group in the embodiment of the present invention is the same as the corresponding model deep learning method mentioned above, and will not be repeated here.
[0072] Example 4: As shown in the attached Figure 6 As shown, an embodiment of the present invention discloses a wellbore stabilization control device for dynamically adjusting the drilling fluid ratio, comprising: The acquisition unit acquires current drilling environment data and real-time drilling data, wherein the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement.
[0073] The ratio determination unit inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model is obtained by deep learning the neural network using a number of first samples, and each first sample includes the identification of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, and each second sample includes the identification of the optimal drilling fluid ratio and drilling parameter combination, as well as the combination of the drilling fluid ratio and any corresponding drilling parameter.
[0074] The ratio determination unit includes: (1) Model training module. The drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The deep learning methods and neural networks used in the association prediction model and the collaborative optimization model are the same, but the sample types used in the deep learning of the two are different. The deep learning methods of the association prediction model include: Obtaining a plurality of first samples and dividing them into a training sample set, a validation sample set, and a test sample set according to a certain ratio, wherein each first sample includes an identifier of a drilling fluid ratio, drilling fluid performance data, and geological data; A multi-layer feedforward neural network is trained using a training set. A loss function is introduced during training. When the value of the loss function stabilizes, the training is terminated to obtain an association prediction model. The multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data. The hidden layer includes one or more layers. Nonlinearity is introduced through an activation function to process the input data and extract features. The output layer outputs the predicted drilling fluid ratio. The trained association prediction model is verified and tested using the validation set and test set respectively, the model parameters of the association prediction model are optimized, and an association prediction model that meets the test evaluation requirements is output.
[0075] It should be understood that in the embodiment of the present invention, the model training module uses several first samples and several second samples, and respectively trains the association prediction model and the collaborative optimization model through the same deep learning method described above. Therefore, the deep learning process of the collaborative optimization model will not be repeated here.
[0076] (2) The ratio optimization module inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination.
[0077] Specifically, the current drilling fluid performance data and geological data are input into the correlation prediction model to obtain the optimal drilling fluid ratio, and the optimal drilling fluid ratio and real-time drilling data are input into the collaborative optimization model to obtain the optimal drilling fluid ratio and drilling parameter combination.
[0078] Example 5: As shown in the attached Figure 7 As shown, an embodiment of the present invention discloses a wellbore stabilization control device for dynamically adjusting the drilling fluid ratio, comprising: The acquisition unit acquires current drilling environment data and real-time drilling data, wherein the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement.
[0079] The ratio determination unit inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The association prediction model is obtained by deep learning the neural network using a number of first samples, and each first sample includes the identification of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, and each second sample includes the identification of the optimal drilling fluid ratio and drilling parameter combination, as well as the combination of the drilling fluid ratio and any corresponding drilling parameter.
[0080] The dynamic ratio adjustment unit dynamically adjusts the drilling fluid ratio based on the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Confirm whether the drilling fluid ratio received is complete and accurate and meets the requirements of the current drilling operation; In response to this, the amount of various materials required for the drilling fluid is calculated based on the drilling fluid ratio and the current mud volume; Obtain the drilling fluid performance test results, and adjust the drilling fluid ratio in reverse according to the performance test results until the performance test requirements are met.
[0081] The model reverse optimization unit, after dynamically adjusting the drilling fluid ratio, reversely optimizes the drilling fluid ratio control model group based on the actual implementation results, including: Real-time monitoring and judgment of whether drilling fluid performance or downhole key parameters are abnormal, where drilling fluid performance or downhole key parameters are the data of the dynamically adjusted drilling fluid used at the drilling site; In response, the parameters of each model in the drilling fluid ratio control model group are adjusted, and the drilling fluid ratio control model group is deep-learned again.
[0082] Example 6: The embodiment of the present invention discloses a storage medium, on which a computer program readable by a computer is stored. The computer program is configured to execute a wellbore stability control method for dynamically adjusting the drilling fluid ratio when running.
[0083] The above storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory, a mobile hard disk, a magnetic disk, or an optical disk.
[0084] Example 7: An embodiment of the present invention discloses an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement a wellbore stability control method for dynamically adjusting the drilling fluid ratio.
[0085] The processor may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. It may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. Memory may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memories, removable hard drives, magnetic disks, or optical disks.
[0086] Those skilled in the art will appreciate that embodiments of the present invention may provide methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk drives, CD-ROMs, optical storage devices, etc.) containing computer-usable program code. The solutions in the embodiments of the present invention may be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0087] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts 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, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0089] The above content is only a specific implementation method of the present invention, which has strong adaptability and implementation effect, but the scope of protection of the present invention is not limited to this. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered by the scope of protection of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope covered by the present invention.
Claims
1. A wellbore stability control method for dynamically adjusting the drilling fluid ratio, characterized in that: include: Obtain current drilling environment data and real-time drilling data, where the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement; The current drilling environment data and real-time drilling data are input into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an associated prediction model and a collaborative optimization model. The associated prediction model is obtained by deep learning the neural network using a number of first samples, each of which includes the identification of the drilling fluid ratio and drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a number of second samples, each of which includes the identification of the optimal drilling fluid ratio and drilling parameter combination, and the combination of the drilling fluid ratio and any corresponding drilling parameter.
2. The wellbore stability control method for dynamically adjusting the drilling fluid ratio according to claim 1 is characterized in that: The drilling fluid ratio control model group includes an association prediction model and a collaborative optimization model. The deep learning methods and neural networks used in the association prediction model and the collaborative optimization model are the same, but the sample types used in the deep learning of the two are different. The deep learning method of the association prediction model includes: Acquire a number of first samples, and divide them into a training sample set, a verification sample set, and a test sample set according to a ratio, wherein each first sample includes an identifier of a drilling fluid ratio and drilling fluid performance data and geological data; The multi-layer feedforward neural network is trained using the training set, and a loss function is introduced during the training. When the value of the loss function is stable, the training is terminated to obtain an associated prediction model, wherein the multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data, the hidden layer includes one or more layers, nonlinearity is introduced through an activation function, the input data is processed and features are extracted, and the output layer outputs the predicted drilling fluid ratio; The trained association prediction model is verified and tested using the validation set and test set respectively, the model parameters of the association prediction model are optimized, and an association prediction model that meets the test evaluation requirements is output.
3. The wellbore stability control method for dynamically adjusting the drilling fluid ratio according to claim 1 or 2, characterized in that: It also includes dynamically adjusting the drilling fluid ratio according to the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Confirm whether the received drilling fluid ratio is complete and accurate and meets the requirements of the current drilling operation; In response to this, the amount of various materials required for the drilling fluid is calculated according to the drilling fluid ratio and the current mud volume; The drilling fluid performance test results are obtained, and the drilling fluid ratio is adjusted in reverse according to the performance test results until the performance test requirements are met.
4. The wellbore stability control method for dynamically adjusting the drilling fluid ratio according to claim 3 is characterized in that: The drilling fluid performance test results include the evaluation results of the filtration performance of the oil-based drilling fluid system, the evaluation results of the HTHP filtration performance of the oil-based drilling fluid, and the evaluation results of the rheological properties of the water-based drilling fluid.
5. The wellbore stability control method for dynamically adjusting the drilling fluid ratio according to claim 4 is characterized in that: It also includes reverse optimization of the drilling fluid ratio control model group according to the actual implementation results after the drilling fluid ratio is dynamically adjusted, including: Real-time monitoring and judgment of whether drilling fluid performance or downhole key parameters are abnormal, where drilling fluid performance or downhole key parameters are data of the dynamically adjusted drilling fluid used at the drilling site; In response, the parameters of each model in the drilling fluid ratio control model group are adjusted, and the drilling fluid ratio control model group is deep-learned again.
6. A wellbore stability control device for dynamically adjusting the drilling fluid ratio using the method as claimed in any one of claims 1 to 5, characterized in that: include: An acquisition unit, which acquires current drilling environment data and real-time drilling data, wherein the drilling environment data includes drilling fluid performance data and geological data, and the real-time drilling data includes drilling pressure, rotation speed, and mud pump displacement; The ratio determination unit inputs the current drilling environment data and the real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination, wherein the drilling fluid ratio control model group includes an associated prediction model and a collaborative optimization model. The associated prediction model is obtained by deep learning the neural network using a plurality of first samples, each of which includes the identification of the drilling fluid ratio and the drilling fluid performance data and geological data. The collaborative optimization model is obtained by deep learning the neural network using a plurality of second samples, each of which includes the identification of the optimal drilling fluid ratio and drilling parameter combination, and the combination of the drilling fluid ratio and any corresponding drilling parameter.
7. The wellbore stability control device for dynamically adjusting the drilling fluid ratio according to claim 6 is characterized in that: The ratio determination unit comprises: Model training module, drilling fluid ratio control model group includes association prediction model and collaborative optimization model. The deep learning methods and neural networks used in deep learning of association prediction model and collaborative optimization model are the same, but the sample types used in deep learning of the two are different. The deep learning methods of association prediction model include: Acquire a number of first samples, and divide them into a training sample set, a verification sample set, and a test sample set according to a ratio, wherein each first sample includes an identifier of a drilling fluid ratio and drilling fluid performance data and geological data; The multi-layer feedforward neural network is trained using the training set, and a loss function is introduced during the training. When the value of the loss function is stable, the training is terminated to obtain an associated prediction model, wherein the multi-layer feedforward neural network includes an input layer, a hidden layer, and an output layer. The input layer receives drilling fluid performance data and geological data as input data, the hidden layer includes one or more layers, nonlinearity is introduced through an activation function, the input data is processed and features are extracted, and the output layer outputs the predicted drilling fluid ratio; Use the validation set and test set to verify and test the trained association prediction model, optimize the model parameters of the association prediction model, and output an association prediction model that meets the test evaluation requirements; The ratio optimization module inputs the current drilling environment data and real-time drilling data into the drilling fluid ratio control model group to obtain the optimal drilling fluid ratio and drilling parameter combination.
8. The wellbore stability control device for dynamically adjusting the drilling fluid ratio according to claim 6 or 7, characterized in that: Also includes: The dynamic ratio adjustment unit dynamically adjusts the drilling fluid ratio according to the optimal drilling fluid ratio and drilling parameter combination output by the drilling fluid ratio control model group, including: Confirm whether the received drilling fluid ratio is complete and accurate and meets the requirements of the current drilling operation; In response to this, the amount of various materials required for the drilling fluid is calculated according to the drilling fluid ratio and the current mud volume; Obtain the drilling fluid performance test results, and adjust the drilling fluid ratio in reverse according to the performance test results until the performance test meets the requirements; The model reverse optimization unit, after dynamically adjusting the drilling fluid ratio, reversely optimizes the drilling fluid ratio control model group according to the actual implementation results, including: Real-time monitoring and judgment of whether drilling fluid performance or downhole key parameters are abnormal, where drilling fluid performance or downhole key parameters are data of the dynamically adjusted drilling fluid used at the drilling site; In response, the parameters of each model in the drilling fluid ratio control model group are adjusted, and the drilling fluid ratio control model group is deep-learned again.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the steps in the wellbore stability control method for dynamically adjusting the drilling fluid ratio as described in any one of claims 1 to 5.
10. A storage medium, characterized in that: The storage medium stores a computer program that can be read by a computer, and the computer program is configured to execute the steps of the wellbore stability control method for dynamically adjusting the drilling fluid ratio as described in any one of claims 1 to 5 when running.
Citation Information
Patent Citations
Method for evaluating action law of surfactants in drilling fluids in shale micro-cracks
CN108414405A
Borehole wall instability mechanism analysis and prediction method and system
CN115438823A
Petroleum drilling progress prediction model establishment method, progress prediction method and device
CN117910330A
Drilling fluid for enhancing stratum pressure bearing capacity and preparation method and method of using thereof
US11225594B1
Cited By
Intelligent slurry treatment system for pebble stratum cast-in-situ bored pile construction
CN119531753A
