The present disclosure belongs to the technical field of drilling apparatuses, and particularly relates to a method and device for fault estimation of a measurement and control device for a rotary steerable drilling system.
A rotary steerable drilling system controls a drilling direction of a drill bit in a case that a drill string continuously rotates, which has been a significant change in a directional drilling technology since the 1990s.
In order to achieve high-precision steering drilling, a control device for the rotary steerable drilling system requires various types of sensors to measure and feed back working parameters of a drilling tool. However, a harsh environment having a downhole high temperature, high pressure and strong vibration easily causes sensor damage, thereby affecting construction efficiency of drilling. At present, methods for processing downhole faults of sensors mostly use hardware redundancy and screening of component performance, thereby ensuring reliability of an electronic circuit system for the drilling tool by means of quantity redundancy or performance redundancy of the components. However, a redundancy mode increases cost of the control device for the rotary steerable drilling system. Moreover, with constant increase in the number of the components and improvement in reliability requirements, a method for redundant layout is no longer able to satisfy reliability requirements of the current system. Furthermore, a measurement and control system for a drilling tool performs downhole data communication by means of a bus. With a bandwidth limitation and a signal conversion precision limitation of the communication bus, a quantization error of sensor data is inevitable. It is necessary to fully consider an influence of the error on fault diagnosis performance. A current means for processing a fault of a sensor is still in a stage of hardware redundancy and shutdown maintenance. In view of this, it is urgent to construct a more effective method for processing a fault of a downhole sensor, so as to satisfy reliability requirements of a modern high-performance drilling system.
Aiming at the defects of the prior art, the present disclosure provides a method and device for fault estimation of a measurement and control device for a rotary steerable drilling system. The technical solution can accurately determine a fault of a sensor under the condition of single and concurrent sensor faults, and compute a sensor fault value and an unknown input value according to a sensor measurement value, a system control input value and an established system model.
A method for fault estimation of a measurement and control device for a rotary steerable drilling system includes:
Further, a pseudo-measurement formula is established by constructing virtual measurement values having mean variances equal to 0 by using a constraint relation between the rotating speed ωn of the driving motor of the stable platform, the rotating speed ωg of the gyroscope and the rotating speed ωh(k) of the drill collar:
y
5=0=βωn−ωg+ωh
Further, the method for detecting a fault in S3 is determined as follows under the condition that a probability distribution of noise of the system is known: computing conditional probabilities p′wof and p′wf of the fault-free model filter and the fault model filter respectively, and considering that the system has no fault under the condition of p′wof>p′wf; and considering that the system has a fault under the condition of p′wof≤p′wf.
Further, the fault-free model filter is formed by augmenting unknown inputs d1 and d2 as a state of the system on the basis of the model of the measurement and control device for the rotary steerable drilling system, d1 is load torque TL, and d2 is a rotating speed ωh of a drill collar; a model state of the fault-free model filter is as follows:
and wf indicates a fault.
Further, under the condition that the probability distribution of the noise of the system is known, assuming that the conditional probability of the fault-free model filter and the fault model filter is p′i(k), and a1 and a2 correspond to a fault-free model filter model and a fault model filter model respectively:
p′
i(k)=Pr[a=ai|Y(k)=Yk],i=1,2
is historical sensor measurement data, and a probability density function of the model in step k is as follows:
Further, the fault-free model filter and the fault model filter are Kalman filters, and in S4, when the fault model filter is reinitialized by using the state estimation value {circumflex over (x)}wof and the state error covariance matrix Pwof of the fault-free model filter, due to different state dimensions of the two filters, initial values need to be given for state assignments of the current measurement fault fi
{circumflex over (x)}
wf,j
=x
f
0
,j=n+1, . . . ,n+3
P
wf,jj
=P
f
0
,j=n+1, . . . ,n+3
Further, the unknown input d(k) of the fault-free model filter and the sensor measurement fault f(k) of the fault model filter are random walk processes, i.e.
d(k+1)=d(k)+ωd(k)
f(k+1)=f(k)+ωf(k)
Further, Qd(k) is computed by using an adaptive method, which is specifically as follows:
M̆
wf
=C
1
QC
1
T+(C1Dd+C2)Qd(C2Dd+C2)T+
Further, under the condition that the probability distribution of the noise of the system is unknown but bounded, the method for detecting a fault in S3 detects the fault of the system by using the following set-membership fault detection filter:
p
r(k+1)=CRpe(k)−C(L1F+NF)f(k)+Ff(k+1)−CNFΔf(k+1)
H
r(k+1)=[CR↓He(k)C(L1F+NF)v(k)CNHΔvHvC(L1F+NF)q(k)CNHΔqHq]
and Hr,i(k) indicate a i-th element of a center vector of a residual and a i-th row of a residual generation matrix at the moment k respectively; and si and
The present disclosure further provides a device for fault estimation of a measurement and control device for a rotary steerable drilling system. The measurement and control device for the rotary steerable drilling system includes a stable platform, an electric motor connected to the stable platform, a sensor unit, a motor driving board connected to the electric motor, and a motor voltage controller, where the sensor unit includes a motor rotating speed sensor mounted on the electric motor, a motor current sensor mounted on the motor driving board, a gyroscope mounted on the stable platform, and a tool face angle measurement unit; and the device for fault estimation includes a data interaction unit, a fault detector, a fault-free model filter, a fault model filter and a state initializer, where
According to the method and device of the present disclosure, the state model of the measurement and control device for the rotary steerable drilling system is established, such that fault types existing in the measurement and control device for the rotary steer drilling system, and downhole limited data transmission bandwidth and interference are comprehensively considered; the fault-free model filter and the fault model filter are established on the basis of the state model of the measurement and control device for the rotary steerable drilling system, and the fault-free model filter and the fault model filter are initialized; whether the measurement and control device for the rotary steerable drilling system has a fault is detected; the fault model filter is reinitialized by using the state estimation value {circumflex over (x)}wof of the fault-free model filter and the state error covariance matrix Pwof of the fault-free model filter under the condition that the detection result is fault-free; the fault-free model filter is reinitialize by using the state estimation value {circumflex over (x)}wf of the fault model filter and the state error covariance matrix Pwf of the fault model filter under the condition that the detection result is faulty; and the fault filter estimates the fault in real time and obtains the estimation value.
An initialization algorithm is selected to alternately update initial state values and initial covariance matrix values of the two filters, thereby ensuring real-time accuracy of filter estimation. A fault amplitude and a disappearance moment of fault occurrence can be accurately estimated for both a constant deviation and an intermittent fault of multiple sensors, and a drilling tool does not need to be taken out from a wellbore, thereby prolonging working time of the downhole drilling tool, and reducing drilling cost.
In the figures, 1—motor current sensor, 2—motor rotating speed sensor, 3—gyroscope, 4—tool face angle measurement unit, 5—motor voltage controller, 6—data interaction unit, 7—fault detector, 8—state initializer, 9—fault-free model filter, and 10—fault model filter.
In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below in combination with the specific examples and the corresponding accompanying drawings of the present disclosure. Apparently, the examples described are merely some examples rather than all examples of the present disclosure. All other examples obtained by those of ordinary skill in the art on the basis of the examples of the present disclosure without making creative efforts fall within the scope of protection of the present disclosure.
The technical solutions disclosed in various examples of the present disclosure are described in detail below in combination with the accompanying drawings.
The differences between the examples are emphatically described in the above examples of the present disclosure, and as long as there is no contradiction between different optimization features of the examples, the examples can be combined to form preferred examples, which is not repeated herein in consideration of brevity.
The examples of the present disclosure are described above in combination with the accompanying drawings, but the present disclosure is not limited to the above specific embodiments. The above specific embodiments are only illustrative and not restrictive. With the motivation of the present disclosure, those of ordinary skill in the art can further make many forms that fall within the scope of protection of the present disclosure without departing from the purpose and claims of the present disclosure.
A measurement and control device for a rotary steerable drilling system includes a stable platform, an electric motor connected to the stable platform, a sensor unit, a motor driving board connected to the electric motor, and a motor voltage controller 5, where the sensor unit includes a motor rotating speed sensor 2 mounted on the electric motor, a motor current sensor 1 mounted on the motor driving board, a gyroscope 3 mounted on the stable platform, and a tool face angle measurement unit 4.
With increase in the number of sensors and electronic components of the measurement and control device for the rotary steerable drilling system, a redundant fault processing method cannot satisfy field engineering requirements of drilling, and therefore a method for fault estimation of a measurement and control device for a rotary steerable drilling system is provided. As shown in
In the prior art, a common model of the measurement and control device for the rotary steerable drilling system is as follows:
Synthetically, firstly, steering torque TL directly acts on the stable platform by means of a bit connecting shaft, and a change of the steering torque affects the load torque of the driving motor of the stable platform, thereby affecting a motor output current; secondly, the stable platform works in a dynamic balance state, when the rotating speed ωn of the driving motor of the stable platform and the rotating speed ωh of the drill collar are the same in reverse directions, the stable platform is stationary to the ground, and if the rotating speed of the drill collar fluctuates, the electric motor of the stable platform must also make a rapid response to stabilize a tool face angle; thirdly, with a change of system components along with a working condition or the influence by parameter identification precision, it is impossible to achieve complete accurate modeling, and there is process noise ω(k) during system modeling; fourthly, vibration of a downhole drilling tool inevitably generates sensor measurement noise v(k); fifthly, with the limitation of a downhole data transmission bandwidth and signal conversion precision, a sensor data quantization error q(k) is inevitably generated; and sixthly, the sensor measurement fault f(k) is caused by high temperature and high pressure, environmental humidity and vibration impact. Therefore, a system complete model of the measurement and control device for the rotary steerable drilling system is established as follows:
is an unknown input quantity, ω(k) is process noise at the moment k, y(k) is a measurement output value of the measurement and control device at the moment k, f(k)=[fi
On the basis that the complete model of the rotary steerable drilling system is established, the fault condition of the measurement and control device for the rotary steerable drilling system is determined, and the fault-free model filter and the fault model filter are cross-initialized according to whether the system has a fault, such that the state, the unknown input and the fault of the measurement and control device for the rotary steerable drilling system can be accurately estimated no matter whether the system has the fault. Under a hardware structure of an existing drilling tool measurement and control system, permanent fault and intermittent fault estimation of multiple sensors can be achieved without replacing sensors or arranging multiple redundant sensors, and continuous operation of the drilling tool measurement and control system is ensured, thereby prolonging downhole fault-free working time of the drilling tool.
After the fault-free model filter or the fault model filter is initialized according to the detected system fault condition, S3 and S4 can be repeatedly executed.
In the example, by using the constraint relation determined between the rotating speed ωn of the driving motor of the stable platform, the rotating speed ωg of the gyroscope, and the rotating speed ωh(k) of the drill collar, state estimation accuracy is improved by constructing virtual measurement values having mean variances equal to 0, and a pseudo-measurement formula can be established:
y
5=0=βωn−ωg+ωh
In practical engineering applications, some prior constraints can affect the precision of state estimation. If constraint information can be effectively utilized, the relation between state variables can be further clarified, thereby reducing the uncertainty of the model of the system. On the premise that the control system stably has an effect of control, the system state variables, ωn, ωg and ωh have certain mathematical relations. A virtual measurement value having mean variance equal to 0 is constructed to determine the constraint, so as to improve estimation accuracy. Specifically, a pseudo-measurement formula may be established in an output equation:
y
5=0=βωn−ωg+ωh
Specifically, load torque TL and a rotating speed ωh of a drill collar may be introduced in a drilling process. Therefore, the fault-free model filter is formed by augmenting unknown inputs d1 and d2 as a state of the system on the basis of the model of the measurement and control device for rotary steerable drilling system, d1 is load torque TL, and d2 is a rotating speed ωh of a drill collar; and moreover, a pseudo-measurement output is increased in a measurement equation in combination with a constraint relation between states, and therefore a model state of the fault-free model filter is as follows:
The fault model filter is formed by adding the current measurement fault fi
and wf indicates a fault.
In the example, the conditional probability of the fault-free model filter and the fault model filter is as follows:
p′
i(k)=Pr[a=ai|Y(k)=Yk],i=1,2
is historical sensor measurement data, and a probability density function of the model in step k is as follows:
Thus, weighted state estimation values computed by the probabilities of the two filters can be obtained:
In the example, assuming that the unknown input d(k) and the fault f(k) in the model of the system are random walk processes, i.e.
d(k+1)=d(k)+ωd(k)
f(k+1)=f(k)+ωf(k)
Qd(k) is computed by using an adaptive method, which is specifically as follows:
M̆
wf
=C
1
QC
1
T+(C1Dd+C2)Qd(C2Dd+C2)T+
In an iterative computation process, the conditional probability p′i(k) always remains zero as long as the conditional probability is computed to be zero at one time. Therefore, in order to avoid such a condition, a lower bound of the conditional probability p′i(k) is limited as 0.001, and an upper bound of the conditional probability is limited as 0.999.
In the example, a specific method of S4 includes: reinitialize the fault model filter by using a state estimation value is {circumflex over (x)}wof of the fault-free model filter and a state error covariance matrix Pwof of the fault-free model filter under the condition that a detection result in S302a is fault-free; reinitialize the fault-free model filter by using a state estimation value {circumflex over (x)}wf of the fault model filter and a state error covariance matrix Pwf of the fault model filter under the condition that the detection result in S302a is faulty; and estimate, by the fault model filter, the fault in real time, and obtain, by the fault model filter, the state estimation value {circumflex over (x)}wf of the fault model filter.
The two filters may be Kalman filters, state initial values {circumflex over (x)}wof and {circumflex over (x)}wf of the two filters need to be initialized. The state error covariance matrix Pwof of the fault-free model filter and the state error covariance matrix Pwf of the fault model filter are initialized. Moreover, in order to solve the problem of unequal state dimensions when the two filters are initialized with each other, x0f and P0f need to be initialized to ensure that state dimensions are consistent.
A first Kalman filter is designed on the basis of a fault-free model, a second Kalman filter is designed on the basis of a fault model, and the first Kalman filter and the second Kalman filter achieve parallel state estimation for the measurement and control device for the rotary steerable drilling system. The first Kalman filter estimates the state estimation value {circumflex over (x)}wof of the fault-free model filter, and computes the conditional probability p′wof of the fault-free model filter and the state error covariance matrix Pwof of the fault-free model filter; and the second Kalman filter estimates the state estimation value {circumflex over (x)}wof {circumflex over (x)}wf of the fault model filter, and computes the conditional probability p′wf of the fault model filter and the state error covariance matrix Pwf of the fault model filter.
It is considered that the system actually has no fault under the condition of p′wof>p′wf. The fault model filter is reinitialized by using the state estimation value {circumflex over (x)}wof and the state error covariance matrix Pwof of the fault-free model filter, and since the state dimension of the fault-free model filter is less than that of the fault model filter, dimension data added by the fault filter model relative to the fault-free filter model uses the initial value of the state quantity in S2. The initial value is manually set, i.e.
{circumflex over (x)}
wf,j
=x
f
0
,j=n+1, . . . ,n+3
P
wf,jj
=P
f
0
,j=n+1, . . . ,n+3
It is considered that the system actually has a fault under the condition of p′wof≤p′wf. The fault-free model filter is reinitialized by using the state estimation value {circumflex over (x)}wf and the state error covariance matrix Pwf of the fault model filter.
According to the principle of a linear Kalman filter, at the moment k, the filter may compute an innovation γi(k). A filter that more closely matches the actual system has a relatively small innovation. According to the conditional probability formula, the conditional probability computed may be higher, which indicates that the filter more closely matches the actual system, thereby determining whether the system has a fault.
Table 1 shows a specific process for selecting reinitialization.
In a table, imax,k is a model label that best match the actual system; {circumflex over (x)}wof0({circumflex over (x)}wf0) and {circumflex over (x)}wof({circumflex over (x)}wf) indicate posterior state estimation values of the fault-free model (faulty model) filter before and after reinitialization separately; and Pwof0(Pwf0) and Pwof(Pwf) indicate posteriori state estimation error covariance matrices of the fault-free model filter before and after reinitialization separately.
p
r(k+1)=CRpe(k)−C(L1F+NF)f(k)+Ff(k+1)−CNFΔf(k+1)
H
r(k+1)=[CR↓He(k)C(L1F+NF)v(k)CNHΔvHvC(L1F+NF)q(k)CNHΔqHq]
and Hr,i(k) indicate an i-th element of a center vector of a residual and an i-th row of the residual generation matrix at the moment k respectively; and si and
After determination of the fault of the system is completed, S4 is executed: reinitialize the fault model filter by using a state estimation value {circumflex over (x)}wof of the fault-free model filter and a state error covariance matrix Pwof of the fault-free model filter under the condition that a detection result in S302b is fault-free; reinitialize the fault-free model filter by using a state estimation value {circumflex over (x)}wf of the fault model filter and a state error covariance matrix Pwf of the fault model filter under the condition that the detection result in S302b is faulty; and estimate, by the fault model filter, the fault in real time, and obtain, by the fault model filter, the state estimation value of the fault model filter. The state estimation value {circumflex over (x)}wf of the fault model filter is the state estimation value of the fault of the measurement and control device.
Specific construction methods for the fault-free model filter and the fault model filter may be the construction method in the examples above, which will not be described herein in order to avoid repetition.
In another example, a device for fault estimation of a measurement and control device for a rotary steerable drilling system is further provided. As shown in
The data interaction unit 6 is configured to obtain sensor data and motor voltage controller data, is connected to the fault detector 7, the fault-free model filter 9 and the fault model filter 10, and transmits obtained data to the fault detector 7, the fault-free model filter 9 and the fault model filter 10 for processing.
The fault-free model filter 9 computes a state estimation value {circumflex over (x)}wof of the fault-free model filter and a state error covariance matrix Pwof of the fault-free model filter; and the fault model filter 10 computes a state estimation value {circumflex over (x)}wf of the fault model filter and a state error covariance matrix Pwf of the fault model filter.
The fault detector 7 is connected to the state initializer 8, selects a method for detecting a fault according to noise characteristics, determines a fault condition of the system according to the data obtained by the data interaction unit 6, and sends the fault condition to the state initializer 8.
The state initializer 8 is connected to the fault-free model filter 9 and the fault model filter 10, and initializes the fault-free model filter 9 and the fault model filter 10 according to a fault result.
The device for fault estimation according to the example of the present disclosure can implement each process in the example corresponding to the method for fault estimation in the example above, which will not be described herein in order to avoid repetition.
It should be noted that the device for fault estimation according to the example of the present disclosure and the method for fault estimation according to the example of the present disclosure are based on the same inventive concept, and therefore the specific implementation of the example can refer to the implementation of the method for fault estimation of a measurement and control device for a rotary steerable drilling system, and the repetitions are not described.
The fault types of the measurement and control device for the rotary steerable drilling system include a current fault, a gyroscope fault and a tool face angle fault, and the processing effect of the present disclosure is described by taking the current fault as an example.
As shown in
In another test, a current fault is set,
and the fault is detected by using the method for detecting a fault summarized in S301b-S302b:
Table 2 shows a root-mean-square error (RMSE) of unknown input estimation under different quantization errors under the conditions of a current fault, a gyroscope fault and a tool face angle fault. A root-mean-square error of 16 bits is the smallest, and root-mean-square errors of 10 bits, 14 bits and 16 bits are sequentially reduced, but a difference is not large.
Finally, it should be noted that the above examples merely serve to describe the technical solutions of the present disclosure, rather than limiting the present disclosure. Although the present disclosure is described in detail with reference to the above examples, those of ordinary skill in the art should understand that the technical solutions described in the above examples may still be modified, or some of the technical features in the technical solutions may be equivalently replaced. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solution of each example of the present disclosure. In summary, what are described above are merely preferred examples of the present disclosure, and any equivalent changes and modifications made according to the scope of the application patent of the present disclosure should fall within the scope of the patent of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2023107759337 | Jun 2023 | CN | national |
Number | Date | Country | |
---|---|---|---|
20240133285 A1 | Apr 2024 | US |