Drilling pump pressure prediction method based on artificial neural network

By using an artificial neural network-based approach, combined with multi-channel data fusion and adaptive weight optimization, a multi-layer feedforward neural network was constructed. This solved the problems of accuracy and real-time performance in drilling pump pressure prediction under complex operating conditions, achieving high-precision, low-complexity drilling pump pressure prediction, enhancing the model's adaptability and stability, and meeting the needs of intelligent drilling control.

CN121858914APending Publication Date: 2026-04-14CNOOC ENERGY TECHNOLOGY & SERVICES LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202610017471.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-07
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing drilling pump pressure prediction methods struggle to achieve high-precision, low-computational-complexity real-time predictions under complex drilling conditions. Traditional methods suffer from limitations such as high computational complexity, strong dependence on input parameters, gradient vanishing problem, and weak generalization ability.

Method used

A multi-layer feedforward neural network is constructed by using an artificial neural network-based approach, combining multi-channel data fusion, time synchronization optimization, adaptive weight calculation, and online update mechanisms. The nonlinear mapping capability of the model is improved by using the ReLU activation function and Dropout regularization, and the weight update is optimized by using the AdamW optimizer and momentum gradient descent to achieve real-time prediction and online update of drilling pump pressure.

Benefits of technology

It improves the accuracy and adaptability of drilling pump pressure prediction, realizes real-time and stable drilling pump pressure prediction, enhances the robustness and generalization ability of the model, supports online training and incremental learning, adapts to different well conditions, and improves drilling safety and operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121858914A_ABST
    Figure CN121858914A_ABST
Patent Text Reader

Abstract

The invention discloses a drilling pump pressure prediction method based on an artificial neural network, and the method comprises the following steps: S1, data collection; s2, data preprocessing; s3, constructing a neural network model; s4, model training and optimization; and S5, model verification and deployment. According to the method, multi-channel data fusion and time synchronization optimization are innovatively adopted, so that the data quality and consistency are improved; in combination with a deep neural network and a self-adaptive optimization strategy, the precision and generalization ability of pump pressure prediction of the drilling pump are improved; and an online updating mechanism is introduced, so that the model can be dynamically optimized according to real-time data, the defects of low prediction precision, poor adaptability and difficulty in real-time updating of a traditional method are overcome, and an efficient and reliable prediction means is provided for intelligent drilling control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of oil drilling engineering technology, and in particular relates to a drilling pump pressure prediction method based on artificial neural networks. Background Technology

[0002] In oil and gas drilling, drilling pump pressure is a crucial parameter for measuring downhole fluid flow, directly impacting the stability of the drilling fluid circulation system and the safety of drilling operations. Accurately predicting drilling pump pressure helps optimize drilling fluid flow control, prevent well kicks, blowouts, and lost circulation, and improve drilling safety and operational efficiency.

[0003] Currently, drilling pump pressure prediction mainly adopts the following three methods: traditional numerical simulation method, linear regression method, and BP neural network method. All of these methods have the following limitations and are difficult to adapt to complex drilling conditions.

[0004] 1. Traditional numerical simulation methods: Numerical simulations predict drilling pump pressure based on fluid dynamics equations (such as the Navier-Stokes equations) and downhole fluid dynamics models. Although they can characterize downhole fluid flow characteristics to some extent, they have high computational complexity, poor real-time performance, and are highly dependent on input parameters, making them difficult to adapt to dynamically changing downhole environments.

[0005] 2. Linear Regression Method: The linear regression model assumes a linear relationship between drilling pump pressure and drilling parameters, is simple to calculate, and is applicable to specific well conditions. However, this method ignores the multi-factor nonlinear coupling of drilling pump pressure, resulting in low prediction accuracy and failing to meet the needs of complex drilling conditions.

[0006] 3. Backpropagation Neural Network Method: Backpropagation neural networks overcome the shortcomings of linear regression to some extent and can fit the nonlinear relationship between drilling pump pressure. However, BP networks suffer from the vanishing gradient problem, slow convergence speed, sensitivity to data quality, difficulty in adapting to different downhole conditions, and weak generalization ability.

[0007] To address the limitations of existing methods, this invention proposes a drilling pump pressure prediction method based on artificial neural networks (ANN). By combining multi-channel data fusion, time synchronization optimization, adaptive weight calculation, and online update mechanism, it achieves high-precision drilling pump pressure prediction with low computational complexity. Summary of the Invention

[0008] The problem this invention aims to solve is to provide a drilling pump pressure prediction method based on artificial neural networks. This method employs ANN deep learning to enhance adaptability to complex drilling conditions and improve prediction accuracy. By optimizing the neural network structure, the computational burden is reduced, enabling real-time prediction of drilling pump pressure and enhancing real-time performance. The "exponential weighting + adaptive weighted fusion" method is used to improve data quality and model robustness. It supports online training and incremental learning, adapts to different well conditions, and improves long-term stability.

[0009] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a drilling pump pressure prediction method based on artificial neural networks, comprising the following steps, S1: Data Acquisition: Multi-dimensional parameters during drilling operations are acquired through surface and downhole sensors. A multi-channel data fusion and time synchronization mechanism is used to improve data integrity and consistency. S2: Data preprocessing: Outlier removal and missing value imputation are performed on the collected data, and the data distribution is optimized by standardization or normalization methods to improve the stability of model training; S3: Neural Network Model Construction: A multi-layer feedforward neural network is established. The input layer receives drilling parameters, the hidden layer uses the ReLU activation function for nonlinear mapping, and the output layer outputs the drilling pump pressure prediction value at a single node. S4: Model Training and Optimization: Adjust network weights using the backpropagation algorithm, combined with loss function optimization and adaptive learning rate strategy to improve training efficiency and convergence speed; S5: Model Validation and Deployment: Use independent test sets to evaluate prediction accuracy, ensure that the error is within the set threshold, deploy the trained model to the drilling control terminal to realize online prediction of drilling pump pressure, provide real-time error analysis and early warning, and support online model updates to adapt to different drilling conditions.

[0010] Furthermore, S1 includes the following steps: S11: The multidimensional parameters include mechanical parameters, flow parameters, and target parameters, ensuring that the parameters cover key variables of the drilling state. The dataset is represented as follows: in, Represents a set of mechanical parameters; Represents a set of fluid parameters; Represents the target predicted value; S12: The measurements from sensors of different sources are integrated to improve data integrity and measurement accuracy. For multiple measurement sources of the same parameter, an adaptive weighted average fusion method is used, and its calculation formula is as follows: in, These are the parameter values ​​after fusion; For the first Raw data measured by each sensor; The number of sensors participating in data fusion; For the first The weights corresponding to each sensor satisfy the following conditions: ; The weights are calculated as follows: in, For the first Measurement variance of each sensor; The mean of the measured data; The variance of the measurement data; The exponential weighting term assigns lower weights to data points that deviate significantly from the mean, thereby suppressing the influence of outliers and improving the robustness of data fusion. S13: Time synchronization and noise suppression are performed using the unscented Kalman filter (UKF) method. The UKF state prediction formula is as follows: in, This is the current state vector; This is the previous time step; For control input; This is process noise; The state covariance matrix; , For the system matrix; The process noise covariance matrix; The observation update formula is as follows: in, Kalman gain; The observation matrix; To measure the noise covariance matrix; This is the current observation value; The identity matrix is ​​used to ensure the correct updating of the state covariance matrix; The adaptive time window smoothing formula is as follows: in, This represents the time step difference between the sensors; This is a smoothing factor, ranging from 0.5 to 0.9, used to adjust the degree of data smoothing.

[0011] Furthermore, S2 includes the following steps: S21: Outlier removal. The interquartile range (IQR) method is used to calculate the data distribution range and outlier data that exceeds the set threshold to improve data stability. S22: Missing value imputation. Short-term data imputation is performed using linear interpolation, or long-term missing data is handled using moving average to ensure the temporal continuity and integrity of the data. S23: Data standardization. Based on the data distribution characteristics, the Z-score method is used for standardization to ensure that the data mean is 0 and the standard deviation is 1, thereby improving the stability of neural network training. S24: Data normalization, using min-max normalization, maps the data to the range [0,1] to ensure uniform scale of input data and improve model training efficiency; S25: Feature selection: Calculate the correlation between input parameters and drilling pump pressure, and use the Pearson correlation coefficient method to remove variables with low correlation, reduce computational complexity, and improve the model's generalization ability.

[0012] Furthermore, S3 includes the following steps: S31: The input layer receives drill bit depth, mechanical drilling speed, hook load, drilling pressure, rotation speed, torque, pump speed, flow rate, active pool volume, and drilling fluid density, and performs standardization processing to make the mean of the input data 0 and the standard deviation 1, thereby improving the stability of the model. S32: The hidden layer adopts a three-layer structure, reducing the number of neurons layer by layer to reduce computational complexity and improve feature extraction capability; S33: The output layer contains a single node that outputs the predicted drilling pump pressure to enhance the model's nonlinear mapping capability. The calculation formula is as follows: in: This represents the final predicted drilling pump pressure value. The weight matrix of the output layer. This is the output layer bias term.

[0013] Furthermore, S32 includes the following steps: S321: The hidden layer structure is optimized, and the activation function is optimized. The hidden layer adopts the ReLU activation function, and the calculation method is as follows: Among them, ReLU retains positive inputs and masks negative inputs, which enhances the nonlinear mapping ability of neural networks, prevents gradient vanishing, and improves model stability; S322: Dropout regularization introduces the Dropout mechanism into the hidden layer. The Dropout rate is set between 0.2 and 0.5 to randomly drop some neurons in order to reduce overfitting and improve the model's generalization ability. S323: Weight initialization optimization, using the He initialization method to ensure gradient stability during deep propagation and prevent gradient vanishing or exploding. The formula is as follows: in, This represents the number of neurons in the previous layer.

[0014] Furthermore, S4 includes the following steps: S41: Momentum gradient descent is used to optimize backpropagation and alleviate gradient oscillations. The optimized weight update formula is as follows: in, For momentum; This represents the momentum value at the previous moment; This is the momentum coefficient, usually taken as 0.9; The learning rate; Here is the weight matrix for the l-th layer; This is the current gradient; S42: The Huber loss function is adopted, combining mean squared error and mean absolute error. For small errors, it is consistent with the mean squared error to maintain second-order differentiability and ensure smooth optimization. For large errors, i.e., outliers, a linear error function is used to reduce the impact of outliers and improve model robustness. The Huber loss function is defined as follows: in, This represents the prediction error; The loss switching point is usually set to 1.0. When the value is less than this, the mean square error is used, and when the value is greater than this, the mean absolute error is used to reduce the impact of outliers. S43: Adaptive Learning Rate Optimization: Based on the Adam optimizer, AdamW is adopted to avoid the influence of L2 regularization on Adam, making weight updates more stable. The optimized AdamW update formula is as follows: in, Let be the weight matrix of the l-th layer. This is a first-order gradient moment estimate; This is for estimating the second-order gradient moment; It is the first-order momentum decay coefficient; It is the second-order momentum decay coefficient; First-moment estimate for bias correction; Second-order moment estimate with bias correction; The learning rate; It is a numerically stable term; This is the weight decay coefficient; S44: Training Data Optimization: Based on the Dropout mechanism, adaptive Dropout is introduced, making the Dropout rate adjustable for different layers. This prevents excessive information loss in the early stages of training and overfitting in the later stages; it also improves generalization ability and adapts to the needs of different training stages. The optimized Dropout formula is as follows: in, This is the output after Dropout processing; For adaptive Dropout rate; Use a base Dropout rate of 0.2 to 0.5; This represents the current training loss; This is the loss threshold; Set the Dropout change rate to 5; S45: Training Termination Strategy Optimization: A dual Early Stopping mechanism is adopted, which simultaneously monitors the validation set loss and training set gradient changes to avoid premature or late termination. The optimized termination condition is as follows: Then training will be terminated; in, For the first Validation loss after each training round; The threshold number of rounds at which training terminates; The minimum value of gradient change (10) -6 ).

[0015] Furthermore, S5 includes the following steps: S51: Model Validation: Use an independent test set to evaluate the model's prediction accuracy and ensure that the error meets the set threshold. S52: End-to-end model deployment: Deploy the trained model to the drilling control terminal or cloud computing platform to achieve automated prediction of drilling pump pressure throughout the entire process, including data acquisition, calculation, prediction output and real-time decision support; S53: Real-time prediction and monitoring: Dynamically calculate the predicted value of drilling pump pressure and draw the predicted value of drilling pump pressure curve to intuitively display the pressure change trend; compare the predicted value of drilling pump pressure with the actual measured value in real time to evaluate the accuracy of the prediction. When the error exceeds the preset threshold, an early warning is automatically triggered to remind the operator to adjust the drilling parameters and ensure the safety of drilling operations. S54: Dynamic error threshold adjustment: Based on historical drilling data analysis, the error threshold is dynamically adjusted to adapt to different drilling conditions and formation changes. An adaptive threshold adjustment strategy is adopted, and the threshold setting is optimized by combining historical error distribution with actual working conditions. S55: Online Updates and Model Optimization: Supports online updates, optimizes model parameters based on newly collected data, continuously improves prediction capabilities, and sets model update trigger conditions: when the cumulative amount of training data exceeds a set threshold, or when the model prediction error continues to exceed the standard, the model is automatically retrained and optimized.

[0016] Furthermore, the present invention also provides an apparatus for performing the above-described data processing method.

[0017] Furthermore, the present invention also provides an apparatus including a memory, a processor, and an algorithm stored in the memory and executable on the processor, wherein the processor implements the above-described data processing method when executing the computer program.

[0018] Furthermore, the present invention also provides a computer-readable storage medium storing a computer algorithm, which, when executed by a processor, performs the above-described data processing.

[0019] The advantages and positive effects of this invention are: 1. This invention improves data utilization through multi-parameter fusion. Existing drilling pump pressure prediction methods typically model based on single or limited drilling parameters (such as pump speed and flow rate), neglecting the coupling effect between mechanical and fluid parameters, resulting in limited prediction accuracy. This invention integrates drilling mechanical parameters (drill bit depth, ROP, hook load HKLD, WOB, RPM, torque Tr, SPM) and fluid parameters (flow rate Q, PVT, drilling fluid density MW) to construct multi-dimensional input features, improving the comprehensive characterization of drilling conditions and enabling the drilling pump pressure prediction model to more accurately reflect downhole fluid dynamics characteristics, thereby improving data utilization.

[0020] 2. This invention enhances nonlinear fitting capabilities through neural network modeling. Traditional drilling pump pressure prediction methods mainly rely on empirical formulas or linear regression, which struggle to effectively capture the complex nonlinear relationship between input parameters and drilling pump pressure, resulting in insufficient predictive ability and poor adaptability to different formations or drilling conditions. This invention employs a multilayer feedforward neural network (MLP) combined with the ReLU activation function to learn the complex relationship between drilling pump pressure and input parameters through nonlinear mapping, enhancing the model's adaptability to different downhole environments and improving generalization performance. Furthermore, He initialization is used to improve network stability, and Dropout regularization is combined to reduce overfitting, thereby improving long-term predictive ability.

[0021] 3. This invention improves model stability through dynamic weight optimization. Traditional drilling pump pressure prediction models use fixed weights or rely on simple gradient descent optimization, which easily gets trapped in local optima, leading to unstable prediction results, especially under complex operating conditions. This invention employs the AdamW optimizer + momentum optimization strategy, combined with adaptive learning rate (Learning Rate Scheduling), to dynamically adjust the network weight update step size during training, ensuring gradient stability, improving the model's robustness in complex drilling environments, enabling faster convergence and improved prediction accuracy.

[0022] 4. This invention employs end-to-end prediction and fully automated modeling. Existing drilling pump pressure prediction methods often rely on independent data processing, feature selection, and model calculation processes, lacking a complete automated workflow and making it difficult to achieve real-time prediction and decision support. This invention adopts an end-to-end prediction architecture, integrating data acquisition, data preprocessing, model training, and prediction output into an automated workflow, achieving real-time drilling pump pressure prediction, reducing manual intervention, improving drilling operation efficiency, and meeting the needs of intelligent drilling control.

[0023] 5. This invention improves prediction reliability through adaptive error adjustment. Existing methods using fixed error thresholds are ill-suited to different drilling conditions, leading to excessive errors or predictions exceeding limits in some cases, thus affecting prediction reliability. This invention employs a dynamic error adjustment mechanism, calculating an adaptive threshold based on historical error distribution. This allows the error threshold to automatically adjust with changes in drilling conditions, improving the stability and applicability of predictions.

[0024] 6. This invention continuously optimizes the model through an online update mechanism. Traditional drilling pump pressure prediction models are fixed after training and cannot adapt to new drilling environments, causing model performance to gradually decline over time and making it difficult to maintain high prediction accuracy in the long term. This invention employs an incremental training and online retraining strategy to optimize the neural network model in real time based on newly acquired data, ensuring that the model is continuously updated as drilling conditions change, thus improving long-term applicability. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of the overall process of an embodiment of the present invention.

[0026] Figure 2 This is a method architecture diagram of an embodiment of the present invention.

[0027] Figure 3 This is a schematic diagram of the structure of the artificial neural network according to an embodiment of the present invention.

[0028] Figure 4 This is a training and validation loss curve diagram of an embodiment of the present invention.

[0029] Figure 5 This is a comparison chart of errors when using different methods in embodiments of the present invention. Detailed Implementation

[0030] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0031] The embodiments of the present invention will be further described below with reference to the accompanying drawings: like Figure 1 , Figure 2 As shown, a drilling pump pressure prediction method based on artificial neural networks includes the following steps: S1: Data Acquisition: Mechanical parameters such as drill bit depth (Depth), mechanical drilling rate (ROP), hook load (HKLD), drilling weight (WOB), rotational speed (RPM), torque (Tr), and pump speed (SPM) are acquired through surface and downhole sensors, along with flow rate parameters such as flow rate (Q), pumping volume (PVT), drilling fluid density (MW), and target parameters such as drilling pump pressure. A multi-channel data fusion and time synchronization mechanism is adopted to improve data integrity and consistency.

[0032] Specifically, S1 includes the following steps: S11: Real-time acquisition of multi-dimensional parameters during drilling operations via surface and downhole sensors. These parameters include mechanical parameters, flow parameters, and target parameters, ensuring that the parameters cover key variables of the drilling status. The dataset is represented as follows: in, Represents a set of mechanical parameters; Represents a set of fluid parameters; This represents the target predicted value.

[0033] S12: Measurements from sensors of different sources are integrated to improve data integrity and measurement accuracy. Existing weighted average fusion methods are simple, weighting based on measurement variance to reduce noise impact, but they cannot effectively handle outliers. This embodiment employs "exponential weighting + adaptive weighted average fusion," which can better filter outliers, improve the accuracy of fused data, and is suitable for the high-dynamic environment of drilling pump pressure. For multiple measurement sources of the same parameter, an adaptive weighted average fusion method is used, and its calculation formula is as follows: in, These are the parameter values ​​after fusion; For the first Raw data measured by each sensor; The number of sensors participating in data fusion; For the first The weights corresponding to each sensor satisfy the following conditions: .

[0034] The weights are calculated as follows: in, For the first Measurement variance of each sensor; The mean of the measured data; The variance of the measurement data; The exponential weighting term assigns lower weights to data points that deviate significantly from the mean, thereby suppressing the impact of outliers and improving the robustness of data fusion.

[0035] S13: Due to potential discrepancies in the sampling frequencies and time bases of different sensors, an unscented Kalman filter (UKF) method is used for time synchronization and noise suppression to ensure that all parameter data are processed on the same time base. However, the traditional UKF method has a large computational load, which may affect real-time performance. Therefore, the formula needs to be optimized. The optimized state update equation for the unscented Kalman filter is as follows: The UKF state prediction formula is as follows: in, This is the current state vector; This is the previous time step; For control input; This is process noise; The state covariance matrix; , For the system matrix; Let be the process noise covariance matrix.

[0036] The observation update formula is as follows: in, Kalman gain; The observation matrix; To measure the noise covariance matrix; This is the current observation value; It is the identity matrix, ensuring the correct updating of the state covariance matrix.

[0037] The adaptive time window smoothing formula is as follows: in, This represents the time step difference between the sensors; This is a smoothing factor, ranging from 0.5 to 0.9, used to adjust the degree of data smoothing.

[0038] Compared to the traditional UKF, it adds a state covariance matrix, which enables the system to better smooth time errors; it adds Kalman gain calculation, which improves estimation accuracy; and it adds an error update step, which makes sensor data more stable.

[0039] S2: Data Preprocessing: Outlier removal and missing value imputation are performed on the collected data, and standardization or normalization methods are used to optimize the data distribution and improve the stability of model training. Specifically, S2 includes the following steps: S21: Outlier removal. The interquartile range (IQR) is used to calculate the data distribution range, and outliers exceeding a set threshold are removed to improve data stability. The IQR calculation formula is as follows: If data points satisfy: If it is an outlier, it will be removed.

[0040] in, (First quartile) The value at the 25th percentile of all data; (Third quartile) The value at the 75th percentile of all data; The interquartile range (IQR) is used to measure the distribution range of data.

[0041] S22: Missing value imputation. Linear interpolation is used for short-term data imputation, or moving average is used for long-term missing data to ensure the temporal continuity and integrity of the data. Linear interpolation is used for short-term data imputation, with the following formula: in, These are the missing data points to be filled. , These are the known data points before and after the missing data; , For the corresponding time point; The time points corresponding to the missing values.

[0042] For handling data that has been missing for a long time, the moving average method is used for imputation. The calculation formula is as follows: in, This is the window size, usually 3 or 5.

[0043] S23: Data standardization. Based on the data distribution characteristics, the Z-score method is used for standardization to ensure the data mean is 0 and the standard deviation is 1, improving the stability of neural network training. The formula is: in, For standardized data, This is the original data. The mean of the data. denoted as the standard deviation of the data.

[0044] S24: Data normalization, using min-max normalization, maps the data to the range [0,1], ensuring uniform scale of input data and improving model training efficiency. The formula is: Where X represents the original data; The minimum value in the dataset; The maximum value in the dataset; The data is normalized and ranges from [0,1].

[0045] S25: Feature selection calculates the correlation between input parameters and drilling pump pressure. The Pearson correlation coefficient (PCC) method is used to remove variables with low correlation, reducing computational complexity and improving model generalization ability. The formula is: in, For variables (Drilling parameters) and The correlation coefficient between (drilling pump pressure); and For the first The variable values ​​of each data point; and For variables and The mean is calculated using the following formula: Correlation range: Indicates a positive correlation; Indicates a negative correlation; This indicates no correlation. A correlation threshold is set during the drilling parameter screening process. (Typically taken as 0.1 to 0.3), when a certain drilling parameter satisfy: Therefore, this parameter is considered to contribute little to the prediction of drilling pump pressure and can be removed to reduce computational complexity and improve training efficiency.

[0046] S3: Neural Network Model Construction: A multi-layer feedforward neural network (MLP) is established. The input layer receives drilling parameters, preferably excluding drilling pump pressure. The hidden layers use the ReLU activation function for nonlinear mapping. The output layer outputs the predicted drilling pump pressure value at a single node. Specifically, such as... Figure 3 As shown, S3 includes the following steps: S31: The input layer receives 10 drilling parameters, including bit depth (Depth), mechanical rate of penetration (ROP), hook load (HKLD), weight on bit (WOB), rotational speed (RPM), torque (Tr), pump speed (SPM), flow rate (Q), active pool volume (PVT), and drilling fluid density (MW), and performs standardization processing to make the input data mean 0 and the standard deviation 1, thereby improving the stability of the model.

[0047] S32: The hidden layer adopts a three-layer structure, with the number of neurons decreasing layer by layer. The first, second, and third layers have 64, 32, and 16 neurons respectively, in order to reduce computational complexity and improve feature extraction capability.

[0048] Preferably, S32 includes the following steps: S321: Hidden layer structure optimization. The hidden layer adopts a three-layer feedforward structure with the number of neurons decreasing layer by layer from 64 to 32 to 16, reducing computational complexity and improving feature extraction capability. Activation function optimization: ReLU activation function is used for nonlinear mapping, enhancing the model's expressive power and avoiding the gradient vanishing problem. The hidden layer employs multi-layer nonlinear mapping, and the forward propagation calculation of the hidden layer is as follows: in, For the first Neuron output of the layer; For the first Layer weight matrix; This is the bias term for this layer; For the output of the previous layer (for the first hidden layer), That is, the input layer ); ReLU is the activation function used for nonlinear transformations, enabling neural networks to learn nonlinear features and avoid the vanishing gradient problem. The formula for calculating the ReLU activation function is as follows: ReLU sets negative inputs to zero while preserving positive inputs, effectively avoiding the vanishing gradient problem, improving the training stability of neural networks, and accelerating convergence.

[0049] S322: Dropout regularization introduces the Dropout mechanism into the hidden layer. The Dropout rate is set between 0.2 and 0.5 to randomly drop some neurons in order to reduce overfitting and improve the model's generalization ability.

[0050] Training phase: The Dropout calculation formula is as follows: in, , indicating that the neuron has a probability reserve; Original hidden layer activation values ​​(without Dropout applied); The activation value after applying Dropout. This represents element-wise multiplication, indicating that the Dropout mask is applied to each neuron.

[0051] Testing Phase: Since neurons are randomly dropped during training, scaling is required during testing to maintain the expected activation values. The formula is: in, The Dropout rate (e.g., 0.5) is used to control the proportion of neurons that are deactivated, preventing overfitting.

[0052] S323: Weight initialization optimization, using the He initialization method to ensure gradient stability during deep propagation and prevent gradient vanishing or exploding. The formula is as follows: in, This represents the number of neurons in the previous layer.

[0053] S33: The output layer contains a single node, outputting the predicted drilling pump pressure to enhance the model's nonlinear mapping capability. The calculation formula is as follows: in: This represents the final predicted drilling pump pressure value. The weight matrix of the output layer. This is the output layer bias term.

[0054] S4: Model Training and Optimization: The backpropagation algorithm is used to adjust the network weights, combined with loss function optimization and adaptive learning rate strategy, and the Adam optimizer is used for parameter updates; combined with the adaptive learning rate algorithm, the learning rate is dynamically adjusted according to the training error, and momentum optimization strategy and gradient descent are used for joint optimization to improve the training convergence speed of the neural network and enhance the robustness of the model under complex drilling conditions.

[0055] Specifically, S4 includes the following steps: S41: Backpropagation Optimization: Traditional gradient descent in deep networks suffers from significant gradient oscillations, resulting in slow convergence in the early stages of training and potential stagnation in flatter regions of the loss curve. Momentum gradient descent optimizes gradient calculation, mitigating gradient oscillations and smoothing the optimization process, thus improving training stability. Particularly in regions of the flatter loss curve, it reduces oscillations and improves optimization efficiency. The optimized weight update formula is: in, For momentum; This represents the momentum value at the previous moment; This is the momentum coefficient, usually taken as 0.9; The learning rate; Here is the weight matrix for the l-th layer; This is the current gradient.

[0056] S42: Loss Function Optimization: Traditionally, Mean Squared Error (MSE) is used. MSE is sensitive to outliers; extreme data points can cause significant errors, affecting model stability. The Huber loss function is adopted, combining MSE and Mean Absolute Error (MAE). For small errors, it matches the MSE, maintaining second-order differentiability and ensuring smooth optimization, which helps with fast convergence. For large errors (outliers), a linear error function is used to reduce the impact of outliers and improve model robustness. The optimized loss function is: in, This represents the total loss value. This represents the number of training samples; The predicted drilling pump pressure value; This represents the actual drilling pump pressure. The Huber loss function is defined as: in, This represents the prediction error; This is the loss switching point (usually set to 1.0). When the value is less than this, MSE is used, and when the value is greater than this, MAE is used to reduce the impact of outliers.

[0057] S43: Adaptive Learning Rate Optimization: Adam can cause weight inflation, rendering L2 regularization ineffective and leading to model overfitting. This invention, based on the Adam optimizer, employs AdamW (Adam with weight decay) to avoid the impact of L2 regularization on Adam, resulting in more stable weight updates. The optimized AdamW update formula is as follows: in, Let be the weight matrix of the l-th layer. This is a first-order gradient moment estimate; This is for estimating the second-order gradient moment; It is the first-order momentum decay coefficient; It is the second-order momentum decay coefficient; First-moment estimate for bias correction; Second-order moment estimate with bias correction; The learning rate is 0.001 to 0.01. For numerical stability (10⁻⁸); The weight decay coefficient is (10⁻⁴).

[0058] S44: Training Data Optimization: Traditional methods use fixed Dropout, which may result in an excessively high dropout rate in the early stages of training, affecting learning; conversely, an insufficient dropout rate in the later stages of training may lead to overfitting. This embodiment introduces adaptive Dropout on top of the Dropout mechanism, making the Dropout rate adjustable for different layers. This prevents excessive information loss in the early stages of training and avoids overfitting in the later stages; it also improves generalization ability and adapts to the needs of different training stages. The optimized Dropout formula is as follows: in, This is the output after Dropout processing; For adaptive Dropout rate; Use a base Dropout rate of 0.2 to 0.5; This represents the current training loss; This is the loss threshold; The Dropout change rate is set to 5.

[0059] S45: Optimization of training termination strategy: such as... Figure 4 As shown, the dual Early Stopping mechanism, considering only the validation loss, may terminate too early or too late. The improved method employs a dual Early Stopping mechanism, simultaneously monitoring both the validation set loss and training set gradient changes to avoid premature or late termination. The optimized termination condition is as follows: Training will terminate if the above conditions are met. For the first Validation loss after each training round; The threshold number of rounds at which training terminates; The minimum gradient change is (10⁻⁶).

[0060] In summary, such as Figure 5 As shown in Table 2, the optimization content and improvement methods in model training and optimization are summarized below: S5: Model Validation and Deployment: Use independent test sets to evaluate prediction accuracy, ensure that the error is within the set threshold, deploy the trained model to the drilling control terminal to realize online prediction of drilling pump pressure, provide real-time error analysis and early warning, and support online model updates to adapt to different drilling conditions.

[0061] Specifically, S5 includes the following steps: S51: Model Validation: The model's prediction accuracy is evaluated using an independent test set to ensure that the error meets the set threshold. Mean Squared Error (MSE) and Mean Absolute Percentage Error (MAPE) are used as error metrics to measure the prediction accuracy of the final model, but they are not used for gradient updates. The error calculation formula is as follows: in, The drilling pump pressure value predicted by the neural network; This refers to the actual measured drilling pump pressure. Set the number of samples in the test set. Set the upper limit of error. ,like: If so, the model needs to be re-optimized or the training data adjusted to improve prediction accuracy.

[0062] S52: End-to-End Model Deployment: Deploy the trained model to the drilling control terminal or cloud computing platform to achieve automated prediction of drilling pump pressure throughout the entire process, including data acquisition, calculation, prediction output, and real-time decision support. The end-to-end process includes: real-time acquisition of drilling parameters (such as WOB, RPM, MW, etc.) from drilling sensors; cleaning outliers, filling in missing data, and standardizing; calling the trained neural network model to calculate the current drilling pump pressure prediction value; transmitting the drilling pump pressure prediction value to the drilling control system to assist operators in adjusting parameters and optimizing the operation process.

[0063] S53: Real-time Prediction and Monitoring: Dynamically calculates the predicted drilling pump pressure and plots the predicted drilling pump pressure curve to visually display the pressure change trend; compares the predicted drilling pump pressure with the actual measured value in real time to assess the accuracy of the prediction; automatically triggers an early warning when the error exceeds a preset threshold, reminding operators to adjust drilling parameters to ensure drilling operation safety. The sliding window method is used to calculate the short-cycle drilling pump pressure change trend, with the following formula: in, For the current moment Predicted drilling pump pressure; For the previous moment Predicted drilling pump pressure; For the current moment The actual measured value; The smoothing coefficient (generally set to 0.1 ≤ ≤0.9), to control the smoothness of short-term forecasts.

[0064] An error monitoring and early warning mechanism dynamically adjusts the early warning threshold to improve intelligence and reduce the impact of false alarms. The formula for calculating and predicting error trends is as follows: like Triggering an early warning signal in, For the first The absolute error of the round prediction; For the first Predicted pump pressure of rotary drilling pump; For the first Actual value of the drilling pump pressure; This is a warning threshold. When the error exceeds this threshold, an early warning is triggered, reminding operators to adjust drilling parameters (such as pump speed, drilling pressure, etc.) to ensure drilling operation safety.

[0065] S54: Dynamic Error Threshold Adjustment: Based on historical drilling data analysis, the error threshold is dynamically adjusted to adapt to different drilling conditions and formation changes. An adaptive threshold adjustment strategy is adopted, combining historical error distribution with actual operating conditions to optimize the threshold setting. Specifically, the formula is: in, This is the dynamically adjusted error threshold. This represents the historical average error. The standard deviation of the error; This is an adjustment factor (usually set to 1.5 or 2.0).

[0066] Based on changes in drilling conditions, online adjustments are made to the operating conditions, with the adjustment error threshold range being: in, This is the error threshold adjusted based on real-time operating conditions; This is an error threshold calculated based on historical data; This is the error threshold under the current drilling conditions; The adjustment coefficient (usually set to 0.6 to 0.9) ensures that the error threshold is updated smoothly and avoids large fluctuations.

[0067] S55: Online Updates and Model Optimization: Supports online updates, optimizes model parameters based on newly collected data to continuously improve predictive capabilities, and allows setting model update trigger conditions. When the cumulative training data volume Exceeding the set threshold At this time, incremental training is initiated, updating the neural network weights to gradually adapt the model to the new data distribution.

[0068] When the prediction error continuously exceeds the error threshold When this happens, online retraining is triggered to fully optimize the model to adapt to the new working conditions.

[0069] in, For window sizes that consistently exceed the limit; For the first The error value of the round prediction; This is the maximum error threshold that is set.

[0070] Model optimization strategy: Incremental training is employed, introducing new data and updating some neural network weights based on the original model to maintain model stability and generalization ability. Based on online retraining methods, key network layers are adjusted according to existing model parameters to improve the model's adaptability under different drilling conditions.

[0071] The advantages and positive effects of this invention are: 1. This invention improves data utilization through multi-parameter fusion. Existing drilling pump pressure prediction methods typically model based on single or limited drilling parameters (such as pump speed and flow rate), neglecting the coupling effect between mechanical and fluid parameters, resulting in limited prediction accuracy. This invention integrates drilling mechanical parameters (drill bit depth, ROP, hook load HKLD, WOB, RPM, torque Tr, SPM) and fluid parameters (flow rate Q, PVT, drilling fluid density MW) to construct multi-dimensional input features, improving the comprehensive characterization of drilling conditions and enabling the drilling pump pressure prediction model to more accurately reflect downhole fluid dynamics characteristics, thereby improving data utilization.

[0072] 2. This invention enhances nonlinear fitting capabilities through neural network modeling. Traditional drilling pump pressure prediction methods mainly rely on empirical formulas or linear regression, which struggle to effectively capture the complex nonlinear relationship between input parameters and drilling pump pressure, resulting in insufficient predictive ability and poor adaptability to different formations or drilling conditions. This invention employs a multilayer feedforward neural network (MLP) combined with the ReLU activation function to learn the complex relationship between drilling pump pressure and input parameters through nonlinear mapping, enhancing the model's adaptability to different downhole environments and improving generalization performance. Furthermore, He initialization is used to improve network stability, and Dropout regularization is combined to reduce overfitting, thereby improving long-term predictive ability.

[0073] 3. This invention improves model stability through dynamic weight optimization. Traditional drilling pump pressure prediction models use fixed weights or rely on simple gradient descent optimization, which easily gets trapped in local optima, leading to unstable prediction results, especially under complex operating conditions. This invention employs the AdamW optimizer + momentum optimization strategy, combined with adaptive learning rate (Learning Rate Scheduling), to dynamically adjust the network weight update step size during training, ensuring gradient stability, improving the model's robustness in complex drilling environments, enabling faster convergence and improved prediction accuracy.

[0074] 4. This invention employs end-to-end prediction and fully automated modeling. Existing drilling pump pressure prediction methods often rely on independent data processing, feature selection, and model calculation processes, lacking a complete automated workflow and making it difficult to achieve real-time prediction and decision support. This invention adopts an end-to-end prediction architecture, integrating data acquisition, data preprocessing, model training, and prediction output into an automated workflow, achieving real-time drilling pump pressure prediction, reducing manual intervention, improving drilling operation efficiency, and meeting the needs of intelligent drilling control.

[0075] 5. This invention improves prediction reliability through adaptive error adjustment. Existing methods using fixed error thresholds are ill-suited to different drilling conditions, leading to excessive errors or predictions exceeding limits in some cases, thus affecting prediction reliability. This invention employs a dynamic error adjustment mechanism, calculating an adaptive threshold based on historical error distribution. This allows the error threshold to automatically adjust with changes in drilling conditions, improving the stability and applicability of predictions.

[0076] 6. This invention continuously optimizes the model through an online update mechanism. Traditional drilling pump pressure prediction models are fixed after training and cannot adapt to new drilling environments, causing model performance to gradually decline over time and making it difficult to maintain high prediction accuracy in the long term. This invention employs an incremental training and online retraining strategy to optimize the neural network model in real time based on newly acquired data, ensuring that the model is continuously updated as drilling conditions change, thus improving long-term applicability.

[0077] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.

Claims

1. A drilling pump pressure prediction method based on artificial neural networks, characterized in that: Includes the following steps, S1: Data Acquisition: Multi-dimensional parameters during drilling operations are acquired through surface and downhole sensors. A multi-channel data fusion and time synchronization mechanism is used to improve data integrity and consistency. S2: Data preprocessing: Outlier removal and missing value imputation are performed on the collected data, and the data distribution is optimized by standardization or normalization methods to improve the stability of model training; S3: Neural Network Model Construction: A multi-layer feedforward neural network is established. The input layer receives drilling parameters, the hidden layer uses the ReLU activation function for nonlinear mapping, and the output layer outputs the predicted value of drilling pump pressure at a single node. S4: Model Training and Optimization: Adjust network weights using the backpropagation algorithm, combined with loss function optimization and adaptive learning rate strategy to improve training efficiency and convergence speed; S5: Model Validation and Deployment: Use independent test sets to evaluate prediction accuracy, ensure that the error is within the set threshold, deploy the trained model to the drilling control terminal, realize online prediction of drilling pump pressure, provide real-time error analysis and early warning, and support online model updates to adapt to different drilling conditions.

2. The drilling pump pressure prediction method based on artificial neural networks according to claim 1, characterized in that: S1 includes the following steps: S11: The multidimensional parameters include mechanical parameters, flow parameters, and target parameters, ensuring that the parameters cover key variables of the drilling state. The dataset is represented as follows: in, Represents a set of mechanical parameters; Represents a set of fluid parameters; Represents the target predicted value; S12: The measurements from sensors of different sources are integrated to improve data integrity and measurement accuracy. For multiple measurement sources of the same parameter, an adaptive weighted average fusion method is used, and its calculation formula is as follows: in, These are the parameter values ​​after fusion; For the first Raw data measured by each sensor; The number of sensors participating in data fusion; For the first The weights corresponding to each sensor satisfy the following conditions: ; The weights are calculated as follows: in, For the first Measurement variance of each sensor; The mean of the measured data; The variance of the measurement data; The exponential weighting term assigns lower weights to data points that deviate significantly from the mean, thereby suppressing the influence of outliers and improving the robustness of data fusion. S13: Time synchronization and noise suppression are performed using the unscented Kalman filter (UKF) method. The UKF state prediction formula is as follows: in, This is the current state vector; This is the previous time step; For control input; This is process noise; Here is the state covariance matrix; , For the system matrix; The process noise covariance matrix; The observation update formula is as follows: in, Kalman gain; The observation matrix; To measure the noise covariance matrix; This is the current observation value; The identity matrix is ​​used to ensure the correct updating of the state covariance matrix; The adaptive time window smoothing formula is as follows: in, This represents the time step difference between the sensors; This is a smoothing factor, ranging from 0.5 to 0.9, used to adjust the degree of data smoothing.

3. A drilling pump pressure prediction method based on artificial neural networks according to claim 1 or 2, characterized in that: S2 includes the following steps: S21: Outlier removal. The interquartile range (IQR) method is used to calculate the data distribution range and outlier data that exceeds the set threshold to improve data stability. S22: Missing value imputation. Short-term data imputation is performed using linear interpolation, or long-term missing data is handled using moving average to ensure the temporal continuity and integrity of the data. S23: Data standardization. Based on the characteristics of data distribution, the Z-score method is used for standardization to ensure that the data mean is 0 and the standard deviation is 1, thereby improving the stability of neural network training. S24: Data normalization, using min-max normalization, maps the data to the range [0,1] to ensure uniform scale of input data and improve model training efficiency; S25: Feature selection: Calculate the correlation between input parameters and drilling pump pressure, and use the Pearson correlation coefficient method to remove variables with low correlation, reduce computational complexity, and improve the model's generalization ability.

4. A drilling pump pressure prediction method based on artificial neural networks according to claim 1 or 2, characterized in that: S3 includes the following steps: S31: The input layer receives drill bit depth, mechanical drilling speed, hook load, drilling pressure, rotation speed, torque, pump speed, flow rate, active pool volume, and drilling fluid density, and performs standardization processing to make the mean of the input data 0 and the standard deviation 1, thereby improving the stability of the model. S32: The hidden layer adopts a three-layer structure, reducing the number of neurons layer by layer to reduce computational complexity and improve feature extraction capability; S33: The output layer contains a single node that outputs the predicted drilling pump pressure to enhance the model's nonlinear mapping capability. The calculation formula is as follows: in: This represents the final predicted drilling pump pressure value. This is the weight matrix of the output layer. This is the output layer bias term.

5. The drilling pump pressure prediction method based on artificial neural networks according to claim 4, characterized in that: S32 includes the following steps: S321: The hidden layer structure is optimized, and the activation function is optimized. The hidden layer adopts the ReLU activation function, and the calculation method is as follows: Among them, ReLU retains positive inputs and masks negative inputs, which enhances the nonlinear mapping ability of neural networks, prevents gradient vanishing, and improves model stability; S322: Dropout regularization introduces the Dropout mechanism into the hidden layer. The Dropout rate is set between 0.2 and 0.5 to randomly drop some neurons in order to reduce overfitting and improve the model's generalization ability. S323: Weight initialization optimization, using the He initialization method to ensure gradient stability during deep propagation and prevent gradient vanishing or exploding. The formula is as follows: in, This represents the number of neurons in the previous layer.

6. A drilling pump pressure prediction method based on artificial neural networks according to claim 1 or 2, characterized in that: S4 includes the following steps: S41: Momentum gradient descent is used to optimize backpropagation and alleviate gradient oscillations. The optimized weight update formula is as follows: in, For momentum; This represents the momentum value at the previous moment; This is the momentum coefficient, usually taken as 0.9; The learning rate; Here is the weight matrix for the l-th layer; The current gradient; S42: The Huber loss function is adopted, combining mean squared error and mean absolute error. For small errors, it is consistent with the mean squared error to maintain second-order differentiability and ensure smooth optimization. For large errors, i.e., outliers, a linear error function is used to reduce the impact of outliers and improve model robustness. The Huber loss function is defined as follows: in, This represents the prediction error; The loss switching point is usually set to 1.

0. When the value is less than this, the mean square error is used, and when the value is greater than this, the mean absolute error is used to reduce the impact of outliers. S43: Adaptive Learning Rate Optimization: Based on the Adam optimizer, AdamW is adopted to avoid the influence of L2 regularization on Adam, making weight updates more stable. The optimized AdamW update formula is as follows: in, Let be the weight matrix of the l-th layer. This is a first-order gradient moment estimate; This is for estimating the second-order gradient moment; The first-order momentum decay coefficient; It is the second-order momentum decay coefficient; First-moment estimate for bias correction; Second-order moment estimate with bias correction; The learning rate; It is a numerically stable term; This is the weight decay coefficient; S44: Training Data Optimization: Based on the Dropout mechanism, adaptive Dropout is introduced, making the Dropout rate adjustable for different layers. This prevents excessive information loss in the early stages of training and overfitting in the later stages; it also improves generalization ability and adapts to the needs of different training stages. The optimized Dropout formula is as follows: in, This is the output after Dropout processing; For adaptive Dropout rate; Use a base Dropout rate of 0.2 to 0.5; This represents the current training loss; This is the loss threshold; Set the Dropout change rate to 5; S45: Training Termination Strategy Optimization: A dual Early Stopping mechanism is adopted, which simultaneously monitors the validation set loss and training set gradient changes to avoid premature or late termination. The optimized termination condition is as follows: Then training will be terminated; in, For the first Validation loss after each training round; The threshold number of rounds at which training terminates; The minimum value of gradient change (10) -6 ).

7. A drilling pump pressure prediction method based on artificial neural networks according to claim 1 or 2, characterized in that: S5 includes the following steps: S51: Model Validation: Use an independent test set to evaluate the model's prediction accuracy and ensure that the error meets the set threshold. S52: End-to-end model deployment: Deploy the trained model to the drilling control terminal or cloud computing platform to achieve automated prediction of drilling pump pressure throughout the entire process, including data acquisition, calculation, prediction output and real-time decision support; S53: Real-time prediction and monitoring: Dynamically calculate the predicted value of drilling pump pressure and draw the predicted value of drilling pump pressure curve to intuitively display the pressure change trend; compare the predicted value of drilling pump pressure with the actual measured value in real time to evaluate the accuracy of the prediction. When the error exceeds the preset threshold, an early warning is automatically triggered to remind the operator to adjust the drilling parameters and ensure the safety of drilling operations. S54: Dynamic error threshold adjustment: Based on historical drilling data analysis, the error threshold is dynamically adjusted to adapt to different drilling conditions and formation changes. An adaptive threshold adjustment strategy is adopted, and the threshold setting is optimized by combining historical error distribution with actual working conditions. S55: Online Updates and Model Optimization: Supports online updates, optimizes model parameters based on newly collected data, continuously improves prediction capabilities, and sets model update trigger conditions: when the cumulative amount of training data exceeds a set threshold, or when the model prediction error continues to exceed the standard, the model is automatically retrained and optimized.

8. An apparatus, characterized in that: The data processing method described in any one of claims 1 to 7 is executed.

9. An apparatus comprising a memory, a processor, and an algorithm stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the data processing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer algorithm, characterized in that, When the computer algorithm is executed by the processor, it performs the data processing as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Real-time prediction method, device and system for wellhead temperature and pressure of geothermal resources

    CN122221183A