A drilling speed prediction method based on BP neural network and a drilling speed optimization method based on BP neural network and particle swarm algorithm
Through the BP neural network and particle swarm algorithm optimization methods, the problem of difficult to determine the relationship between drilling speed and parameters in drilling parameter optimization is solved, rapid and accurate optimization of drilling parameters is achieved, and drilling efficiency and cost control are improved.
Patent Information
- Application Number
- CN201911075820.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-11-06
AI Technical Summary
Existing drilling parameter optimization methods are difficult to accurately determine the quantitative relationship between drilling rate and drilling parameters, resulting in an optimization process that is not automated and intelligent enough, and the adjustment standards and reference values are difficult to control, affecting drilling efficiency and cost control.
Using the drilling speed prediction method based on BP neural network and the drilling speed optimization method of particle swarm algorithm, by collecting the torque, drilling pressure, pump pressure and displacement of drilling tools, a neural network model is established and the fitness function is optimized to achieve drilling speed, Optimization of torque, bit weight, pump pressure and displacement.
The quantitative relationship between drilling engineering parameters and drilling rate is clarified, parameter adjustment is simplified, drilling operation efficiency and cost control are improved, manual adjustment time is reduced, and faster and more accurate drilling parameter optimization is achieved.
Smart Images

Figure CN110807557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of petroleum exploration and drilling engineering, and more specifically, to a drilling speed prediction method based on a BP neural network and a drilling speed optimization method based on a BP neural network and a particle swarm algorithm. Background Art
[0002] In the process of oil and gas exploration and exploitation, drilling engineering is a very critical link. How to effectively control the cost of drilling construction, reduce operational risks, and ultimately achieve safe and fast drilling has become the main goal of experts and scholars from domestic and foreign oil companies and schools to study new technologies. For drilling engineering, the primary goal must be safe production and cost savings. Safety and stability mainly rely on standardized operations and safety systems. Cost savings lie in reducing mechanical wear, especially the wear of expensive drill bits, and increasing drilling speed to shorten drilling hours. Especially for large well sites, the impact of mechanical wear is generally ignored, and the engineering cycle is completely pursued. Because in the vast drilling process, as time goes by, the labor and energy costs required are even greater. Therefore, it is particularly important to study how to configure various drilling parameters to achieve the optimization of drilling speed, and to study the impact of various drilling parameters on mechanical drilling speed under certain conditions. Today, the process of optimizing the selection of drilling parameters and ultimately achieving optimized drilling is a topic that has received widespread attention in the field of drilling engineering.
[0003] In order to optimize drilling parameters, patent CN103046918A proposes a method for optimizing drilling parameters, in which the drilling parameters of the drilling, such as rotary table speed, torque, drilling pressure, mechanical drilling speed, etc., which are fed back by real-time geological environment changes, are used to calculate the virtual strength index VSI, and the drilling parameters are continuously adjusted according to the measured rock real strength index and the various drilling parameters obtained in real time, as well as the real-time calculated virtual strength index, so as to reduce the virtual strength index and improve the drilling efficiency. The method believes that the more the drilling parameters deviate from the optimal optimization value, the more the calculated virtual strength index is higher than the real strength index, the lower the drilling efficiency, and the lower the drilling speed. The method is simple to implement, but the real strength index of the rock is difficult to estimate and measure, the reference value of the virtual strength index is difficult to determine, and the standard of the adjusted virtual strength index is difficult to control. There are many parameters that can be adjusted, including drilling pressure, speed, torque, etc. Although the adjustment parameters are diverse and flexible, the adjustment standards and the quantitative relationship between the corresponding optimal values of each drilling parameter and the drilling speed cannot be determined.
[0004] Patent CN101899969 proposes a real-time field full-parameter optimization method, which mainly includes three parts: hydraulic optimization, drilling pressure optimization and speed optimization. The characteristic relationship between the pump displacement and the mud pressure drop outside the drill bit is determined by the values of the pump displacement and pump pressure measured in the field, and then the optimized pump displacement and the corresponding drill bit nozzle total flow area are determined according to the coefficient of the characteristic relationship. The optimization of drilling pressure and speed is based on the drilling pressure, mechanical drilling speed, speed, torque, drill bit area and other parameter values, and the mathematical relationship expression between them to determine the unit rock breaking work. The ideal unit rock breaking work baseline is determined by measuring the formation rock. The unit rock breaking work calculated in the actual drilling process is compared with the baseline to adjust the parameters such as drilling pressure and speed accordingly, so that the calculated unit rock breaking work is closer to the baseline, thereby determining the optimized drilling pressure and speed, and then maximizing the drilling efficiency and the drilling speed of the drilling machine. Similarly, in this method, the baseline value of the ideal unit rock-breaking work is affected by other factors, has a large fluctuation range, and is difficult to determine its specific value. As in the above-mentioned patent, drilling parameters such as drilling pressure and rotation speed need to be continuously adjusted in a cycle, and only after multiple manual adjustments can the optimized value of a specific formation be achieved. The optimization process is not automated and intelligent enough.
[0005] It can be seen that the above two methods are still insufficient in optimizing drilling parameters. There are currently two main research approaches to achieve the optimization of drilling parameters. One is to list multivariate equations based on drilling speed or other indicators according to the method of mathematical modeling, and then use optimization theory to solve the equations to obtain the optimal solution. The second is to design relevant algorithms, use computers to solve them, optimize the results selected by the computer, and then optimize them to obtain the optimal results. In the field of drilling engineering, choosing an effective drilling parameter optimization method can effectively improve the rock breaking efficiency of the drill bit, which is of great significance to reducing drilling costs and improving drilling efficiency. Summary of the invention
[0006] One purpose of the present invention is to design and develop a drilling speed prediction method based on BP neural network, which can collect the torque, drilling pressure, pump pressure and displacement of the drilling tool, and predict the drilling speed value based on the BP neural network.
[0007] Another object of the present invention is to design and develop a drilling speed optimization method based on BP neural network and particle swarm algorithm, which can establish a fitness function optimized by neural network model and particle swarm algorithm, and obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool through particle swarm algorithm optimization.
[0008] The technical solution provided by the present invention is:
[0009] A drilling speed prediction method based on BP neural network collects the torque, drilling pressure, pump pressure and displacement of the drilling tool, and predicts the drilling speed based on the BP neural network, specifically comprising the following steps:
[0010] Step 1: Measure the torque N of the drilling tool through the sensor according to the sampling period m , drilling pressure P m , pump pressure P b and displacement Q m parameter;
[0011] Step 2: Normalize the parameters in turn to determine the input layer vector x = {x1, x2, x3, x4} of the three-layer BP neural network; where x1 is the torque coefficient of the drilling tool, x2 is the drilling pressure coefficient, x3 is the pump pressure coefficient, and x4 is the displacement coefficient;
[0012] Step 3: The input layer vector is mapped to the middle layer, and the middle layer vector y={y1,y2,…,y m}; m is the number of middle layer nodes;
[0013] Step 4: Get the output layer vector o={o1}; o1 is the drilling speed prediction coefficient;
[0014] Step 5: Predict the drilling speed of the drilling tool as:
[0015]
[0016] in, is the drilling speed prediction coefficient of the output layer vector of the i-th sampling period, ω m_max is the maximum drilling speed of the drilling tool, ω m(i+1) is the predicted drilling speed of the drilling tool at the i+1th sampling period.
[0017] Preferably, in step 1, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m Correction is performed, and the correction coefficient satisfies:
[0018]
[0019]
[0020] In the formula, Respectively, the torque N m , drilling pressure P m , pump pressure P b and displacement Q mThe correction coefficient is , h is the current drilling depth, h0 is the expected drilling depth, T0 is the set temperature, T is the ambient temperature, G2 is the hardness of the drilling tool bit, and G1 is the hardness of the current drilling riverbed.
[0021] Preferably, in step 2, the torque N of the drilling tool is m , drilling pressure P m , pump pressure P b and displacement Q m The normalized formula is:
[0022]
[0023] Among them, x j is the parameter in the input layer vector, X j The measurement parameters N m , P m , P b , Q m , j = 1, 2, 3, 4; X jmax and X jmin are the maximum and minimum values of the corresponding measurement parameters, respectively.
[0024] Preferably, the number m of the intermediate layer nodes satisfies: Where n is the number of nodes in the input layer, and p is the number of nodes in the output layer; the activation functions of the intermediate layer and the output layer both use the S-type function f j (x) = 1 / (1+e -x ).
[0025] A drilling speed optimization method based on BP neural network and particle swarm algorithm includes the following steps:
[0026] Step 1: Get the original drilling sample data, randomly assign training sets and test sets, and establish a neural network model. After determining the threshold, weight, and activation function of each network layer, establish the fitness function optimized by the particle swarm algorithm:
[0027] ROP = F(X);
[0028] X = [x1, x2, x3, x4];
[0029] In the formula, ROP is the drilling speed coefficient particle, F(.) is the fitness function, x1 is the torque coefficient particle of the drilling tool, x2 is the drilling pressure coefficient particle, x3 is the pump pressure coefficient particle, and x4 is the displacement coefficient particle;
[0030] Step 2: Assign initial values to the drilling parameter particles in the sample data, and assign initial values to the flight speed of the drilling parameter particles. According to the fitness function optimized by the particle swarm algorithm, solve the maximum or minimum value of the drilling speed coefficient particle, and obtain the sample values of the torque coefficient particle, the drilling pressure coefficient particle, the pump pressure coefficient particle, and the displacement coefficient particle corresponding to the maximum or minimum value of the drilling speed coefficient particle;
[0031] Step 3: Iterate and optimize the drilling speed coefficient particles, torque coefficient particles, drilling pressure coefficient particles, pump pressure coefficient particles, and displacement coefficient particles, as follows:
[0032]
[0033] Among them, c k1 ,c k2 is the acceleration constant, r k1 ,r k2 is a random number and r k1 ,r k2 ∈[0,1], k is the number of current iterations, is the optimal value of the torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle at the kth iteration number, is the optimal value of the drilling speed coefficient particle at the kth iteration number, is the position value of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle, is the update speed of the flight and position of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle at the k+1th iteration;
[0034] Step 4: Determine whether the number of iterations meets the set number of iterations. When the number of iterations is less than the set number of iterations, repeat step 3 until the number of iterations is greater than or equal to the set number of iterations. When the number of iterations is greater than or equal to the set number of iterations, output the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient.
[0035] Preferably, in step 1, establishing a neural network model includes:
[0036] According to the sampling period, the torque N of the drilling tool is measured by the sensor. m , drilling pressure P m , pump pressure P b and displacement Q m Parameters are calculated and corrected, and the correction coefficients satisfy:
[0037]
[0038]
[0039] In the formula, Respectively, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m The correction coefficient is: h is the current drilling depth, h0 is the expected drilling depth, T0 is the set temperature, T is the ambient temperature, G2 is the hardness of the drilling tool bit, and G1 is the hardness of the current drilling riverbed;
[0040] The parameters are normalized in turn to determine the input layer vector x={x1,x2,x3,x4} of the three-layer BP neural network; wherein x1 is the torque coefficient of the drilling tool, x2 is the drilling pressure coefficient, x3 is the pump pressure coefficient, and x4 is the displacement coefficient;
[0041] The input layer vector is mapped to the middle layer, and the middle layer vector y={y1,y2,…,y m}; m is the number of middle layer nodes;
[0042] The output layer vector o={o1} is obtained; o1 is the drilling speed prediction coefficient;
[0043] The predicted drilling speed of the drilling tool is:
[0044]
[0045] in, is the drilling speed prediction coefficient of the output layer vector of the i-th sampling period, ω m_max is the maximum drilling speed of the drilling tool, ω m(i+1) is the predicted drilling speed of the drilling tool at the i+1th sampling period.
[0046] Preferably, the torque N of the drilling tool is m , drilling pressure P m , pump pressure P b and displacement Q m The normalized formula is:
[0047]
[0048] Among them, x j is the parameter in the input layer vector, X j The measurement parameters N m , P m , P b , Q m , j = 1, 2, 3, 4; X jmax and X jmin are the maximum and minimum values of the corresponding measurement parameters, respectively.
[0049] Preferably, in step 4, it also includes denormalizing the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient to obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool.
[0050] Preferably, the number m of intermediate layer nodes in the neural network model satisfies: Where n is the number of nodes in the input layer, and p is the number of nodes in the output layer.
[0051] Preferably, the activation functions of the intermediate layer and the output layer in the neural network model are both S-type functions f j (x) = 1 / (1+e -x ).
[0052] The beneficial effects of the present invention are:
[0053] (1) The drilling speed prediction method based on BP neural network designed and developed by the present invention can collect the torque, drilling pressure, pump pressure and displacement of the drilling tool, and predict the drilling speed value based on the BP neural network.
[0054] (2) The drilling speed optimization method based on BP neural network and particle swarm algorithm designed and developed by the present invention can establish the fitness function of neural network model and particle swarm algorithm optimization, and obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool through particle swarm algorithm optimization.
[0055] (3) The drilling speed optimization method based on BP neural network and particle swarm algorithm designed and developed by the present invention has a clear model, and the quantitative relationship between other drilling engineering parameters and drilling speed is also clear. The parameters are easy to adjust, and there is no problem of fuzzy adjustment and fuzzy boundary between optimization standard and reference value. Therefore, the drilling speed optimization design can be performed more accurately.
[0056] (4) The drilling speed optimization method based on BP neural network and particle swarm algorithm designed and developed by the present invention can quickly match and optimize drilling engineering parameters without the need for repeated manual adjustment of drilling parameter values, thus saving the time of drilling parameter optimization operations and improving the speed and efficiency of drilling engineering parameter optimization during on-site drilling operations, thereby improving the efficiency of drilling operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 FIG. 1 is a flowchart of the training process of the neural network described in the present invention.
[0058] Figure 2 It is a flow chart of the drilling speed optimization method based on BP neural network and particle swarm algorithm described in the present invention. DETAILED DESCRIPTION
[0059] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.
[0060] The present invention provides a drilling speed prediction method based on BP neural network, which collects the torque N of the drilling tool. m , drilling pressure P m , pump pressure P b and displacement Q m , and make corrections, and the correction coefficients satisfy:
[0061]
[0062] In the formula, Respectively, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m The correction coefficient is: h is the current drilling depth, h0 is the expected drilling depth, T0 is the set temperature, T is the ambient temperature, G2 is the hardness of the drilling tool bit, and G1 is the hardness of the current drilling riverbed;
[0063] The drilling speed is predicted based on the BP neural network, which specifically includes the following steps:
[0064] Step 1: Establish BP neural network model.
[0065] The BP network architecture adopted by the present invention consists of three layers. The first layer is the input layer, which has n nodes in total, corresponding to n detection signals representing the working status of the drilling tool, and these signal parameters are given by the data preprocessing module. The second layer is the hidden layer, which has m nodes in total, which is determined in an adaptive manner by the training process of the network. The third layer is the output layer, which has p nodes in total, which is determined by the response that the system actually needs to output.
[0066] The mathematical model of the network is:
[0067] Input vector: x = (x1, x2, ..., x n ) T
[0068] Intermediate layer vector: y=(y1,y2,...,y m ) T
[0069] Output vector: O = (o1, o2, ..., o p ) T
[0070] In the present invention, the number of input layer nodes is n=4, and the number of output layer nodes is p=1. The number of hidden layer nodes m is estimated by the following formula:
[0071]
[0072] The four parameters of the input signal are expressed as follows: x1 is the torque coefficient of the drilling tool, x2 is the drilling pressure coefficient, x3 is the pump pressure coefficient, and x4 is the displacement coefficient.
[0073] Since the data acquired by the sensor belong to different physical quantities and have different dimensions, the data needs to be normalized to a number between 0 and 1 before being input into the artificial neural network.
[0074] Specifically, for the torque N m , after normalization, we get the torque coefficient x1:
[0075]
[0076] Among them, N m,min and N m,max are the minimum torque and maximum torque of the drilling tool respectively.
[0077] Similarly, for drilling pressure P m The drilling pressure coefficient x2 is obtained by normalizing it with the following formula:
[0078]
[0079] Among them, p m,min and p m,max They are the minimum and maximum drilling pressure of the drilling tool respectively.
[0080] For pump pressure P b , after normalization, the pump pressure coefficient x3 is obtained:
[0081]
[0082] Among them, p b,min and p b,max are the minimum pump pressure and maximum pump pressure of the drilling tool respectively.
[0083] For displacement Q m , after normalization, we get the displacement coefficient x4:
[0084]
[0085] Among them, Q m,min and Q m,max are the minimum and maximum displacement of the drilling tool respectively.
[0086] One parameter of the output signal is expressed as follows: o1 is the drilling speed prediction coefficient.
[0087] The drilling speed prediction coefficient o1 of the drilling tool is expressed as the ratio of the drilling speed in the next sampling cycle to the maximum drilling speed set for the drilling tool in the current sampling cycle, that is, in the i-th sampling cycle, the drilling speed of the drilling tool collected is ω mi , output the drilling speed prediction coefficient of the i-th sampling period through the BP neural network After that, the drilling speed of the drilling tool in the i+1th sampling period is predicted to be ω m(i+1) , so that it satisfies
[0088]
[0089] Step 2: Train the BP neural network.
[0090] After the BP neural network node model is established, the BP neural network training can be carried out. Figure 1 shown.
[0091] The original drilling engineering parameter data samples or the drilling engineering parameter data samples after preprocessing (such as outlier cleaning, data parameter dimension reduction, etc.) are randomly assigned to disrupt the order of the original samples. This step is mainly to establish a prediction model with good generalization and robustness in the subsequent implementation method.
[0092] The drilling engineering sample data after shuffling are divided into training set and test set. The training set is used to train the drilling speed prediction model, and the test set is used to test the performance of the prediction model.
[0093] In order to improve the convergence speed and accuracy of the model in the subsequent steps, the drilling input parameters of torque, drilling pressure, pump pressure and displacement in the training set and the predicted target parameter - mechanical drilling speed are normalized respectively, and the parameter values corresponding to each sample are mapped to the [0 1] interval.
[0094] Construct a neural network and initialize it, set the number of layers of the BP neural network and the number of nodes in each layer, initialize the weights and thresholds, and the output value of each layer of the neural network is determined by the following formula:
[0095]
[0096] In formula (1), f(x) is the activation function of a certain layer of the neural network. In this embodiment, the S-type function f is used. j (x) = 1 / (1+e -x ), W represents the weight parameter of BP neural network, represents the weight between the jth neuron in the lth layer of the neural network and the ith neuron in the (l+1)th layer, and b represents the threshold in the neural network. It represents the threshold of the i-th neuron in the (l+1)-th layer. It represents the output value of the ith neuron in the lth layer after the activation function is calculated. Each time a BP neural network is established and initialized, the thresholds and weights between the neuron nodes in each layer of the neural network are randomly selected.
[0097] After building the BP neural network structure, set some hyperparameters related to the neural network itself, such as the number of learning times, learning rate, target error value, etc. After setting these hyperparameters, train the neural network. During the training process, the weights and thresholds of the neural network are updated according to the gradient descent algorithm in the following formula:
[0098]
[0099] In the above formula, represents the learning rate of the neural network, Represents the loss function of the neural network versus the weights The error gradient of Represents the loss function of the neural network versus the threshold The error gradient. The loss function of a neural network is used to represent the gap between the predicted data and the actual data, which can generally be represented by the minimum mean square error function.
[0100] When the neural network terminates training, the prediction model generated after the neural network terminates training is used to identify and test the samples in the test set.
[0101] According to the drilling speed value and actual value predicted by the neural network for the sample in the test sample set, the prediction error of each sample is calculated. The prediction error can be calculated by the following formula:
[0102]
[0103] In the above formula, preresult represents the predicted value of the neural network, realdata represents the actual value of the neural network, and || represents the absolute value. And find the ratio P of the number of test samples with error <= 10% to the total number of test samples.
[0104] Determine whether the prediction requirements of the neural network prediction model have met the specified prediction error requirements. Here, we assume that the set prediction error requirements are that the ratio of the test samples with error <= 10% to the total number of test samples must not be less than the threshold T. If P is greater than or equal to T, the prediction performance of the trained neural network prediction model meets the requirements, and turn to execute step S111, save the neural network model at this time, and end the neural network training process and number of times. If P is less than the threshold T, the prediction performance of the trained neural network prediction model does not meet the specified requirements, and determine whether the number of training times for the neural network to start training from the beginning has been reached. If not, continue training, rebuild a new neural network, and train a new prediction model. If the number of training times we specified is reached at this time, the entire training process of the neural network ends.
[0105] Save the neural network prediction model with the smallest classification error. Because the prediction accuracy of each prediction model generated by each training is different, we select the prediction model with the best prediction performance for the next step of drilling parameter optimization.
[0106] As shown in Table 1, a set of training samples and the values of each node during the training process are given.
[0107] Table 1 Node values during training
[0108]
[0109]
[0110] Step 3: Collect the drilling tool operating parameters and input them into the neural network to obtain the prediction coefficient.
[0111] The trained artificial neural network is solidified in the FPGA chip, so that the hardware circuit has the prediction function, thus forming intelligent hardware. After the intelligent hardware is powered on, the initial torque N of the drilling tool is measured. m0 , drilling pressure P m0 , pump pressure P b0 and displacement Q m0 By normalizing the above parameters, we get the initial input vector of the BP neural network. The initial output vector is obtained through the operation of BP neural network
[0112] Step 4: Predict the drilling speed of the drilling tool.
[0113] Get the initial output vector After that, the drilling speed prediction can be performed to predict the drilling speed of the drilling tool. The drilling speed of the drilling tool in the next sampling period is predicted as:
[0114]
[0115] Get the torque N of the i-th sampling period mi , drilling pressure P mi , pump pressure P bi and displacement Q mi , the input vector of the i-th sampling period is obtained by formatting The output vector of the i-th sampling period is obtained through the operation of the BP neural network. Then the drilling speed of the drilling tool at the i+1th sampling period is predicted as:
[0116]
[0117] The drilling speed prediction method based on BP neural network designed and developed by the present invention can collect the torque, drilling pressure, pump pressure and displacement of the drilling tool, and predict the drilling speed value based on the BP neural network.
[0118] The present invention also provides a drilling speed optimization method based on BP neural network and particle swarm algorithm, comprising the following steps: Figure 2 As shown:
[0119] Step 1: Get the original drilling sample data, randomly assign training sets and test sets, and establish a neural network model (the establishment process is the above-mentioned neural network establishment and training process, which will not be repeated here), determine the threshold, weight and activation function of each network layer, and establish the fitness function optimized by the particle swarm algorithm:
[0120] ROP = F(X);
[0121] X = [x1, x2, x3, x4];
[0122] In the formula, ROP is the drilling speed coefficient particle, F(.) is the fitness function, x1 is the torque coefficient particle of the drilling tool, x2 is the drilling pressure coefficient particle, x3 is the pump pressure coefficient particle, and x4 is the displacement coefficient particle;
[0123] Step 2: Assign initial values to the drilling parameter particles in the sample data, and assign initial values to the flight speed of the drilling parameter particles. According to the fitness function optimized by the particle swarm algorithm, solve the maximum or minimum value of the drilling speed coefficient particle, and obtain the sample values of the torque coefficient particle, the drilling pressure coefficient particle, the pump pressure coefficient particle, and the displacement coefficient particle corresponding to the maximum or minimum value of the drilling speed coefficient particle;
[0124] Step 3: Iterate and optimize the drilling speed coefficient particles, torque coefficient particles, drilling pressure coefficient particles, pump pressure coefficient particles, and displacement coefficient particles, as follows:
[0125]
[0126] Among them, c k1 ,c k2 is the acceleration constant, r k1 ,r k2 is a random number and r k1 ,r k2 ∈[0,1], k is the number of current iterations, is the optimal value of the torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle at the kth iteration number, is the optimal value of the drilling speed coefficient particle at the kth iteration number, is the position value of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle, is the update speed of the flight and position of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle at the k+1th iteration;
[0127] Step 4: Determine whether the number of iterations meets the set number of iterations. When the number of iterations is less than the set number of iterations, repeat step 3 until the number of iterations is greater than or equal to the set number of iterations. When the number of iterations is greater than or equal to the set number of iterations, output the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient.
[0128] Step 5: Denormalize the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient to obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool.
[0129] The drilling speed optimization method based on BP neural network and particle swarm algorithm designed and developed by the present invention can establish the fitness function optimized by the neural network model and particle swarm algorithm, and obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool through the particle swarm algorithm optimization. The model is clear, the quantitative relationship between other drilling engineering parameters and the drilling speed is also clear, the parameters are easy to adjust, and there is no problem of fuzzy adjustment and the problem of fuzzy boundaries between optimization standards and reference values, and the drilling speed optimization design can be performed more accurately. The drilling speed optimization method based on BP neural network and particle swarm algorithm designed and developed by the present invention can quickly match and optimize drilling engineering parameters, and does not require repeated manual adjustment of drilling parameter values, saving the time of drilling parameter optimization operation, improving the speed and efficiency of drilling engineering parameter optimization during on-site drilling operations, and thus improving the efficiency of drilling operations.
[0130] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A drilling speed prediction method based on BP neural network, It is characterized in that The torque, drilling pressure, pump pressure and displacement of the drilling tool are collected, and the drilling speed is predicted based on the BP neural network, which specifically includes the following steps: Step 1: Measure the torque N of the drilling tool through the sensor according to the sampling period m , drilling pressure P m , pump pressure P b and displacement Q m parameter; Among them, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m Correction is performed, and the correction coefficient satisfies: In the formula, Respectively, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m The correction coefficient is h, where h is the current drilling depth and h 0 is the estimated drilling depth, T 0 is the set temperature, T is the ambient temperature, G 2 is the hardness of the drilling tool bit, G 1 is the hardness of the current drilling riverbed; Step 2: Normalize the parameters in turn and determine the input layer vector x = {x 1 ,x 2 ,x 3 ,x 4 }; where x 1 is the torque coefficient of the drilling tool, x 2 is the drilling pressure coefficient, x 3 is the pump pressure coefficient, x 4 is the displacement coefficient; Step 3: The input layer vector is mapped to the middle layer, and the middle layer vector y = {y 1 ,y 2 ,…,y m }; m is the number of middle layer nodes; Step 4: Get the output layer vector o = {o 1 };o 1 is the drilling speed prediction coefficient; Step 5: Predict the drilling speed of the drilling tool as: in, is the drilling speed prediction coefficient of the output layer vector of the i-th sampling period, ω m_max is the maximum drilling speed of the drilling tool, ω m(i+1) is the predicted drilling speed of the drilling tool at the i+1th sampling period.
2. The drilling speed prediction method based on BP neural network as claimed in claim 1, It is characterized in that In step 2, the torque N of the drilling tool is m , drilling pressure P m , pump pressure P b and displacement Q m The normalized formula is: Among them, x j is the parameter in the input layer vector, X j The measurement parameters N m , P m , P b , Q m , j = 1, 2, 3, 4; X jmax and X jmin are the maximum and minimum values of the corresponding measurement parameters, respectively.
3. The drilling speed prediction method based on BP neural network as claimed in claim 1, It is characterized in that The number m of intermediate layer nodes satisfies: Where n is the number of nodes in the input layer, and p is the number of nodes in the output layer; the activation functions of the intermediate layer and the output layer both use the S-type function f j (x) = 1 / (1 + e -x ).
4. A drilling speed optimization method based on BP neural network and particle swarm algorithm, It is characterized in that The steps include: Step 1: Get the original drilling sample data, randomly assign training sets and test sets, and establish a neural network model. After determining the threshold, weight, and activation function of each network layer, establish the fitness function optimized by the particle swarm algorithm: ROP = F(X); X=[x 1 ,x 2 ,x 3 ,x 4 ]; In the formula, ROP is the drilling speed coefficient particle, F(.) is the fitness function, x 1 is the torque coefficient particle of the drilling tool, x 2 is the drilling pressure coefficient particle, x 3 is the pump pressure coefficient particle, x 4 is the displacement coefficient particle; Wherein, the establishing of the neural network model comprises: According to the sampling period, the torque N of the drilling tool is measured by the sensor. m , drilling pressure P m , pump pressure P b and displacement Q m Parameters are calculated and corrected, and the correction coefficients satisfy: In the formula, Respectively, the torque N m , drilling pressure P m , pump pressure P b and displacement Q m The correction coefficient is h, where h is the current drilling depth and h 0 is the estimated drilling depth, T 0 is the set temperature, T is the ambient temperature, G 2 is the hardness of the drilling tool bit, G 1 is the hardness of the current drilling riverbed; Normalize the parameters in turn to determine the input layer vector x={x 1 ,x 2 ,x 3 ,x 4 }; where x 1 is the torque coefficient of the drilling tool, x 2 is the drilling pressure coefficient, x 3 is the pump pressure coefficient, x 4 is the displacement coefficient; The input layer vector is mapped to the middle layer, and the middle layer vector y={y 1 ,y 2 ,…,y m }; m is the number of middle layer nodes; The output layer vector o = {o 1 };o 1 is the drilling speed prediction coefficient; The predicted drilling speed of the drilling tool is: in, is the drilling speed prediction coefficient of the output layer vector of the i-th sampling period, ω m_max is the maximum drilling speed of the drilling tool, ω m(i+1) is the predicted drilling speed of the drilling tool at the i+1th sampling period; Step 2: Assign initial values to the drilling parameter particles in the sample data, and assign initial values to the flight speed of the drilling parameter particles. According to the fitness function optimized by the particle swarm algorithm, solve the maximum or minimum value of the drilling speed coefficient particle, and obtain the sample values of the torque coefficient particle, the drilling pressure coefficient particle, the pump pressure coefficient particle, and the displacement coefficient particle corresponding to the maximum or minimum value of the drilling speed coefficient particle; Step 3: Iterate and optimize the drilling speed coefficient particles, torque coefficient particles, drilling pressure coefficient particles, pump pressure coefficient particles, and displacement coefficient particles, as follows: Among them, c k1 ,c k2 is the acceleration constant, r k1 ,r k2 is a random number and r k1 ,r k2 ∈[0,1], k is the number of current iterations, is the optimal value of the torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle at the kth iteration number, is the optimal value of the drilling speed coefficient particle at the kth iteration number, is the position value of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle and displacement coefficient particle, is the update speed of the flight and position of the i-th torque coefficient particle, drilling pressure coefficient particle, pump pressure coefficient particle, and displacement coefficient particle at the k+1th iteration; Step 4: Determine whether the number of iterations meets the set number of iterations. When the number of iterations is less than the set number of iterations, repeat step 3 until the number of iterations is greater than or equal to the set number of iterations. When the number of iterations is greater than or equal to the set number of iterations, output the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient. Step 5: Denormalize the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient to obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool.
5. The drilling speed optimization method based on BP neural network and particle swarm algorithm as claimed in claim 4, It is characterized in that The torque of the drilling tool is N m , drilling pressure P m , pump pressure P b and displacement Q m The normalized formula is: Among them, x j is the parameter in the input layer vector, X j The measurement parameters N m , P m , P b , Q m , j = 1, 2, 3, 4; X jmax and X jmin are the maximum and minimum values of the corresponding measurement parameters, respectively.
6. The drilling speed optimization method based on BP neural network and particle swarm algorithm as claimed in claim 5, It is characterized in that In the step 4, it also includes denormalizing the updated drilling speed coefficient, torque coefficient, drilling pressure coefficient, pump pressure coefficient and displacement coefficient to obtain the drilling speed, torque, drilling pressure, pump pressure and displacement of the drilling tool.
7. The drilling speed optimization method based on BP neural network and particle swarm algorithm as claimed in claim 4, It is characterized in that The number m of intermediate layer nodes in the neural network model satisfies: Where n is the number of nodes in the input layer, and p is the number of nodes in the output layer.
8. The drilling speed optimization method based on BP neural network and particle swarm algorithm as claimed in claim 7, It is characterized in that The activation functions of the intermediate layer and the output layer in the neural network model are both S-type functions f j (x) = 1 / (1+e -x ).
