Abstract
The core task of the stabilized platform in the rotary steerable system is to control the toolface angle, so that the trajectory of the whole bit can move forward to the set direction. Due to many downhole interference factors, the uncertainties of parameters related to internal friction and interference torque of stabilized platform always exist, which poses great challenges to model establishment and controller design. Moreover, the actuator dead-zone nonlinearity makes the control more complicated. Hence, a dynamic model of stabilized platform considering a variety of nonlinear factors is established, and an observer-based adaptive neural network (NN)-control law is proposed. An NN state observer is developed to cope with the uncertain states composed of unknown friction parametric uncertainties and unmodeled disturbances, the dead-zone inverse is constructed to compensate for a dead-zone, and the dynamic surface control (DSC) strategy is used to solve the “differential explosion,” all signals in the system are proved to be semi-global uniformly ultimately bounded (SGUUB) by the Lyapunov function. Finally, the MATLAB simulation is set up, and the accurate tracking effect of the system is proved by the simulation in the presence of friction, modeling error, and dead-zone nonlinearity. The validity and the superior performance of the proposed control method under the downhole harsh environment and parameter perturbation is verified by the comparison simulation experiments.
Keywords
Introduction
Currently, the industry classifies directional drilling technology to two common groups, steerable motor drilling and rotary steerable drilling system. Several works (de Wardt and Rogers, 2011; Zhong et al., 2019) have found that steerable motor drilling is a relatively inefficient process, due to the large sliding friction resistance of drill string, the adjustment of toolface angle is rather slow, and most drilling operations rely on multiple groups of personnel to perform various tasks required for measurement manually. Compared with this, rotary steerable system offers the potential to drill longer horizontal sections faster and more safely. Its penetration rate is 50% faster, delivering substantially higher overall Rate of Penetration (ROP) especially in extended reach and horizontal applications where orienting is particularly difficult. It enhances accuracy and precision in True Vertical Depth (TVD) control and improves production in comparison with traditionally drilled horizontal well. There are fewer stuck pipe incidents, fewer washout conditions, and a lower, more constant Equivalent Circulating Density (ECD) (Molayee and Teymoori, 2006), with its value, rotary steerable system has gradually become a research hotspot.
In steerable drilling, toolface angle is an important parameter in well trajectory control (Sheng et al., 2021), Liu (2017) established directional deflection equations for steerable drilling tools and presented a process control technique for wellbore trajectory by establishing the relation curves between the build-up rate and toolface angel and the relationship between built-up rate and orientation azimuth angle of steerable drilling tool. He has confirmed build-up rate of the drilling tool determines the well trajectory curvature (WTC) and the toolface determines the distribution relationship between tool build-up rate and azimuth angle. The stabilized platform located within the drill collar is responsible for adjusting the toolface angle and the Electronic Control Unit in the platform will set the direction and magnitude of the force vector applied to the bit by the Bias Unit, adjust the toolface angle to make it track the given toolface angle command quickly and smoothly, and remain stable under external interference.
Han et al. (2004) studied the control principle of the stabilized platform of a modulated rotary steerable drilling tool. Based on the analysis of the internal motor torque control principle, a three-loop control scheme was proposed, the mathematical model of the stabilized platform was established, and the transfer function was obtained. It is proved that the stability control of the platform is a typical closed-loop system, which can be controlled by mature control theory. In order to ensure the state variables required in the process of rotary steerable drilling, Tang et al. (2004) established a state-space model of the stabilized platform, and they carried out the pole assignment of the state feedback to verify that the system can meet the control requirements of the toolface angle, which also provided the basis for the advanced control theory. In practical engineering, traditional proportional–integral–derivative (PID) control is generally used. Based on the requirements of system performance, Duan and Peng (2009) compared the traditional PID and Fuzzy Adaptive proportional–integral (PI)-variable damping control schemes of modulated rotary steering drilling tool (MRST) stabilized platform and it was proved that the fuzzy adaptive PI-variable damping schemes have better control effect than the traditional PID control, having ability to adapt to more than one diverse drilling condition. But this modeling is too simplistic, it is necessary to explain the system further. For nonlinear moment problem in stabilized platform, Wang et al. (2014) proposed an output feedback linearizing control method to eliminate the effect of nonlinear eccentric torque and change the closed-loop system into a linear one. Besides, an online estimation method is also proposed by for the unmeasurable nonlinear factors caused by eccentric torque and friction torque which will make instability of the platform. In this method, an external force will be applied to the system and it needs to record the angular velocity and acceleration at each moment to change the applied force, and use the least squares method to get a best estimate. The platform needs to interrupt the closed-loop angle control, and change to open-loop control, and the estimated time is 10–20 seconds, which is too complex. Recently, Wang et al. (2019) proposed a three-loop compound toolface control method using a Model-based Active Disturbance Rejection Control algorithm, which can obtain external disturbances and traces the directional command well. But it depends on exact model excessively, and the dead-zone nonlinear was not considered in it. It must be pointed out that due to the harsh downhole conditions and limitations of measuring equipment, nonlinear factors and modeling uncertainties exist in stabilized platform system widely, and an accurate model is impossible to get.
According to the structure of the stabilized platform, Huo et al. (2009) analyzed the causes producing friction torque. The theoretical derivation and numerical analysis of bearing friction torques, viscous friction torques, and pulsating friction torques are carried out, which provide a theoretical basis for control and decision-making of the stabilized platform. It is also pointed out that there will be some phenomena of creeping and the dead-zone in the platform due to the existence of these frictions. But there have not been any dead-zone considered in the control research of the stabilized platform of the rotary steerable system. Tang et al. (2009) found in hydraulic experiments on the dynamic characteristics of the stabilized platform that because of the factors such as the connection clearance and the sensitivity limit of the measurement system, the dead-zone nonlinear factors existing in the stabilized platform object have a great influence on the platform control results, and necessary control measures should be taken.
In the above papers, the modeling of the controlled object is simply based on the structure of the stabilized platform, without considering the model error, friction forces and the actuator dead-zone, causing these proposed controllers have no adaptive ability and cannot overcome the nonlinearities, which will quickly fail when they encounter unknown friction downhole, so their references to engineering practice are very limited. In order to improve the system control performance and make the control effect of stabilized platform can meet various complex practical working conditions, it is necessary to study the structure and control mechanism, establish the control object model including frictions, the dead-zone, and other disturbances, and discuss the control strategy and control algorithm to meet the requirements of downhole microprocessor and adapt to downhole working conditions, so as to further improve the intelligent level of stabilized platform control procedures and provide the basis for the control strategy of guided drilling tools.
Actually, nonlinear characteristics such as frictions, interferences, crawling, and the dead-zone are very common in practical mechanical systems. Their existence seriously restricts the performance of the system, and has been widely studied in the control field. When the nonlinearity is known, it can be parameterized first, but many mechanical systems are unknown or unmeasurable. In this case, many adaptive fuzzy and neural network (NN) backstepping control methods have been developed. Lu et al. (2020) presented an adaptive NN dynamic surface control (DSC) approach for the post-capture tethered spacecraft, where model uncertainties, input saturation, and state constraints exist. The NN is adopted to compensate the model uncertainties and the effects of input saturation. Wan and Huang (2020) investigated a novel adaptive output feedback control scheme for non-strict feedback nonlinear systems with uncertainties, disturbances, and asymmetric time-varying output constraints and used an adaptive fuzzy state observer to obtain the estimated values of the states. An adaptive fuzzy backstepping controller was developed for a two continuous stirred tank reactors process based on DSC approach (Xin et al., 2020). Xu (2015) proposed an adaptive NN DSC method for ultrasonic vehicle with unknown dynamics and input dead-zone. Radial basis function neural network (RBFNN) is used to approximate unknown dynamic systems, no precise model is required, which is useful in many systems with unmodeled parts (Dai et al., 2016; Van Cuong and Nan, 2016). Wu et al. (2019) took full account of the dead-zone of the actuator, proposing a robust adaptive backstepping controller for the photoelectric gyro stabilized platform widely used in rockets and missiles, and the controller can effectively compensate for the uncertainties caused by the parameter uncertainties and the dead-zone of the actuator. As a stabilized platform similar to rotary steering system, the research is very valuable.
The innovation of this paper lies in the fact that we aim to make the output toolface angle track the input command quickly and smoothly under uncertain conditions. To accomplish this mission, a three-loop control method is designed and a backstepping control method is proposed. To avoid “integral explosion,” speed up the operation, a DSC method is introduced. The adaptive law of NN is derived by proper transformation to approximate the friction force, unmodeled term is handled by the state observer, and the dead-zone will be compensated in the process. Finally, the stability of the system is analyzed, and the effectiveness of the control law is verified by some simulation experiments.
The main contributions of this paper are summarized as follows:
Motivated by the above studies, a three loop-control method of stabilized platform is proposed; unknown friction, unmodeled disturbances, and dead-zone nonlinear are catered for the system.
Different from Wang et al. (2014), the RBFNN is used to overcome the influence of unknown friction torque instead of using a constant external force or the least square method for estimation calculation, the redundant calculation is reduced and it is unnecessary to record the speed and acceleration of the platform all the time. For the unmodeled part, a state observer is introduced to compensate it. Then, an observer-based NN controller is designed to achieve asymptotic tracking performance, mean while ensuring the stability of the closed-loop system. This method appears for the first time in the study of stabilized platform control, in this way, not only in the case of friction and external interferences system can maintain stability, and even in the case of error caused by parameter changes can have adaptability.
The dead-zone is considered for the first time in the stabilized platform of the rotary steerable system. It is difficult to obtain the dead-zone in the stabilized platform, and it is impossible to measure the specific structure of the dead-zone so far, so parameterization of dead-zone is avoided, for the unknown slope and width, using the dead-zone smooth inverse can obtain perfect tracking performance and well compensate the influence of the nonlinearity of the dead-zone on the system.
This paper is arranged as follows. In section “System nonlinear model,” the structure and nonlinear model of the stabilized platform will be presented and influences of the dead-zone and friction torques will be discussed. Section “Adaptive NN controller design” gives the adaptive NN dynamic surface controller; the unmodeled part and the dead-zone are solved by the state observer and smooth inverse, respectively, and then the stability of the system will be proved. The simulation results will be given in section “Simulation results” and section “Conclusion” draws a conclusion.
System nonlinear model
The structure of stabilized platform
As it is shown in Figure 1, the stabilized platform is mounted on bearings so that it is able to rotate independently relative to the drill collar, which spins with the bottom hole assembly (BHA) and drill string about a common longitudinal axis (Alturbeh et al., 2019; Wang et al., 2018).

Rotary steerable control unit.
It is composed of upper turbine motor, electronic control unit, turbine torque motor, and position sensors. The two motors here are permanent magnet synchronous motor (PMSM). The control unit provides a regulated voltage power supply using energy extracted from the inner annular mud flow (between the collar and the control unit outside diameter) pumped from the surface using the torquer rotor-mounted impellers. The upper one supplies constant power for all the platforms because of its constant load resistance, the output torque will not change. As a torque generator, the lower turbine torque motor adjusts the output torque by changing the current, so as to change the toolface and speed. Position sensors are in the electronic control unit, which include gyroscope, linear accelerometer, amplifier, and so on (Li et al., 2015; Noureldin et al., 2000).
Figure 2 shows the three-loop control method, including position loop, current loop, and speed loop. The position loop controls the tool rotation by checking the feedback signal of the accelerometer to make the steering tool reach the ideal toolface position. The current loop can ensure the load current generated by the lower generator meets the control requirements, so that the appropriate torque can be reached. In the speed loop, the gyroscope is used for detection and feedback to ensure the stable working state of the stabilized platform. When the toolface angle changes, motor speed loop outputs a voltage signal different from the original one because of the toolface angle deviation, and the difference between this voltage through pulse-width modulation (PWM) circuit of PWM effects on MOS tube and exports a new current. The electromagnetic torque emitted by the lower motor varies with the armature current, drive disk valve rotating shaft to control the direction of the changes, until the toolface angle error goes to zero, then a control action is completed. In this way, the stabilized platform can tack the command toolface angle quickly, and steady the control axis of the stabilized platform at the required toolface angle. So broadly, we regard a bias voltage signal as the input signal, the toolface angle as output signal and the system model can be obtained.

Three-loop control method of the stabilized platform.
Mathematics model of the stabilized platform
The lower turbine uses field-oriented control (FOC) method to adjust the output torque, in the standard version of FOC schemes, the current component is used as the torque control quantity. Under constant rotor flux amplitude, it adjusts the torque directly. Ignoring the coupling of two motors, according to Newton’s second law, the dynamic model of the motor can be summarized as
where u denotes motor voltage, i denotes the motor current, R denotes the motor resistance, L denotes the motor inductance, J denotes the motor inertia moment,
On the basis of the principle of PWM power converter (Liang and Nwankpa, 1999), when the control voltage changes, the output voltage will not change until the next cycle, so we regard it as a time-delay part and its transfer function is

Toolface angle control block diagram.
Define state variables as
Combined with the above, the stabilized platform state equation is obtained as follows
In addition, in theoretical analysis, the phenomenon of dead-zone in PMSM-based drive system is often ignored, but it is proved by Huo et al. (2009) and Tang et al. (2009) that the nonlinearity of dead-zone is inevitable because of frictions, actuator clearances, and other factors (Wang and Wang, 2016). We describe the dead-zone term as follows, although it is a simplified model, it can describe the servomotor well
where v is actual input signal,
Friction torque analysis
Generally, the existence of nonlinear characteristic of friction torques to the control axis cannot be ignored in rotary steerable drilling stabilized platform control. In this paper, the friction model analyzed by Huo et al. (2009) is introduced to describe the nonlinear friction characteristics in rotary steerable drilling stabilized platform. Considering the friction torque of three parts on the stabilized platform.
Friction torque of the upper and lower main support bearing
Structurally, stabilized platform is fixed inside the drill collar through the upper and lower support bearing, during drilling, the bearing rotates with the drill collar and the stabilized platform remains stationary; thus, the stabilized platform and the support bearings are in a state of relative rotation with relatively low rotational speed, so the mechanical friction torque between these two bearings and the stabilized platform are in the same direction, and the control torque in opposite direction. The lubrication of bearings is constant ignoring the change of temperature, the rolling bearing friction torque is given by
Friction torque of the upper and lower turbine motors bearing
When mud is driving two turbine motors, there will be dynamic frictions, and because the upper turbine generator is the same as the rotation direction, the torque motor is opposite to the rotation direction, they will provide the opposite two friction torque
Viscous friction torque caused by drilling collar annular mud
As rotating of drill collar, drill collar drives rotating annulus mud and also drives the rotary lower valve plate during drilling. So, the rotation of the slurry produces a viscous friction torque
where G is the total weight of stabilized platform,
Assuming that there is no coupling among all parts, they act simultaneously at runtime, and there is a total friction torque
The state variables
Adaptive NN controller design
Based on the stabilized platform’s model (3), a dead-zone model (4), and the friction torque (9), we rewrite the system model in a state-space form as
where
and
Since there are model errors and disturbances in the system, making some available states, causing poor control effect and even instability. The state observer is a dynamic system, which estimates the state variables according to feedback of the input and output errors of the controlled system and a state observer is incorporated to estimate the unmeasured states here, which is always an effective method to deal with unmodeled dynamics (Lin et al., 2020; Zhu et al., 2020).
The basic state observer is designed as follows
where
is the observer gain vector, and
and there P and Q are any positive definite matrices.
Dead-zone equivalence inverse
As it is discussed, there is a dead-zone nonlinear part in the system, which is described as
before designing the controller, some assumptions (Tong et al., 2016) should be given as follows.
Assumption 1
Unknown constants satisfy
Assumption 2
Unknown slopes of the dead-zone
Define
where
Based on that, one resulting error between them can be obtained as
where
RBF NNs approximator system
RBFNN has been proved by Hartman et al. (1990) to be universal approximators of nonlinear functions; the control architecture consists of a linear input layer, a linear output layer, and a nonlinear hidden layer with neurons, each having a radial basis activation function. In this paper, the Gaussian activation function is used to design the algorithm, which is given by
the parameter
Lemma 1
Suppose
Define optimal weight as
Besides,
According to Lemma 1, the NN estimation value of
RBF NNs state observer design
The RBFNNs state observer is designed as
Define observation error as
where
To evaluate the property of the state observer, the following Lyapunov function candidate
where
Using inequality
In addition, the following inequality is true for a positive definite matrix Q (Shojaei et al., 2019)
Then, we have
It is noticeable that if
DSC controller design
In order to solve the “differential explosion” problem of traditional backstepping control algorithm, DSC technology will be introduced (Han et al., 2019). Regard
so we can obtain
The filter error generated by the definition is
Step 1. Define toolface angle tracking error as
and
By substituting equations (31) and (32) into equation (33), we have
Consider the Lyapunov function candidate as
where
In order to ensure the derivative is negative, the virtual control law is set as
where
Using
So substituting equations (37)–(39) into equation (36), we can obtain
Step 2. The velocity error is
where
Consider the following Lyapunov function
where
So far, the control input signal and adaptive laws can be determined as
in order to deal with the dead-zone, the adaptive laws are employed as
where the positive constants
From equations (40), (44), and (45), equation (43) can be rearranged as
Using inequality
According to Young’s inequality, we have
Substituting equations (47)–(52) into equation (46) results in
In order to show the overall controller structure, a diagram of the configuration of the stabilized platform control scheme proposed above is shown in Figure 4.

Block diagram of the control scheme.
Stability analysis
According to equation (25), we can get its time derivative
According to Shojaei et al. (2019),
Using Young’s inequality, we can get that
Substituting equations (55) and (56) into equation (53) results in
where
The parameters
Let
Consequently, equation (57) can be expressed as
The differential solution of equation (55) can be obtained as follows
Equation (61) shows all the signals in this stability system are semi-global uniformly ultimately bounded (SGUUB), and the tack error
which means the error is bounded, and we can select appropriate parameters to have corresponding control law, so that the tracking error converges to a very small neighborhood of zero. In addition, the value of
Simulation results
Control effects
This section will research on real-time simulation experience of control system using Simulink toolkit in MATLAB 2019 to verify above designed controller in high accuracy tracking control ability of the stabilized platform with friction torque and input dead-zone and to provide a theoretical basis for practical engineering. We will conduct simulation experiments according to the parameters of the stabilized platform and the friction torque characteristics measured by Huo et al. (2009), which are listed in Table 1.
Model parameters of stabilized platform for rotary steerable system.
Suppose that u is the output of a dead-zone described by
In simulation verification, five nerve nodes were selected to RBFNN, the center and width are chosen as
to overcome model errors. The dead-zone adaptive law parameter is set to
Based on these parameters, the actual trajectory and track error of toolface angle are shown in Figures 5 and 6. Figure 7 shows the input control signal through the dead-zone

The trajectories of the toolface.

The error of toolface tracking.

Input control signal trajectories.

Toolface observed trajectories.

Friction torque approaching trajectories.

Dead-zone adaptive parameters.
Comparative simulation results
In order to better illustrate the effectiveness of the proposed control law and the reason of designing the controller for the actual stabilized platform, the traditional PID controller, DSC controller without NNs state observer, and the adaptive neural network dynamic surface control (ANNDSC) controller proposed in this paper are compared. Traditional PID controller is widely used in practical engineering because of its simple and reliable characteristics, we select the three gains as kp = 800, ki = 0.5, kd = 500 by error-and-try method. As for DSC controller, we choose the same parameters as ANNDSC for the sake of fairness and the designed control law is
Figures 11 and 12 shows the tracking errors under the three controllers, it can be seen that ANNDSC controller has the best performance among the three in not only amplitude but also final tracking errors. Even in the case of high parameters, the error of PID controller only converges to 0.02, and although the error decreases quickly under the control of DSC controller, the final error is not as good as ANNDSC controller.

Tracking errors of three controllers.

Tracking error comparison.
Control effects under parameter variations
Considering the actual downhole operation, due to temperature and drilling fluid, which will cause parameters such as moment of inertia, load resistance changes, and in fact, the friction term considered in this paper is not all the friction torque, there are other friction interferences not considered. The friction torque is double, the resistance and moment of inertia are reduced by 20% and the disturbance
It can be seen from Figures 13 and 14 that the control effect of toolface angle is not greatly affected when the parameter perturbations and errors increase under ANNDSC controller, the friction torques can still be well-compensated and the control input signal does not increase significantly. However, the control errors of the PID controller and DSC controller are affected to varying degrees. Under the parameter perturbation, the amplitude and magnitude of the error increase, but the error under the controller ANNDSC has no obvious change. The traditional PID controller can only work under one set of parameters, and has no adaptability to the unknown environment and changing parameters in the well, so it cannot meet the control effect at all. The DSC method needs precise object, friction model, and so on, which is difficult to achieve in the well. And it is doubt that we have errors in the controlled object, and the friction items are not considered well. The effect of such a controller in the actual underground is not satisfactory. Since the ANNDSC controller employed both the RBFNN to approach unknown friction model and the state observer to reduce model error, then the adaptability and robustness are enhanced which is enough to cope with changing downhole conditions.

Tracking errors of three controllers under parameter variations.

Tracking error comparison under parameter variations.
Conclusion
In order to achieve high-speed and high-precision tracking control of stabilized platform in rotary steerable system with input dead-zone, friction torque, and modeling error. The structure, friction torque, and dead-zone actuator of the stable platform are analyzed, the controlled object is established, and an NN DSC strategy based on state observer is proposed, in which NN adaptive law is used to handle unknown friction parametric uncertainty and the state observer to attenuate unmodeled disturbance, and it results in an excellent asymptotic tracking performance even under parametric perturbation. All signals in the system are proved to be SGUUB by the Lyapunov function, and the superior performance was verified by comparative simulations, which provides a certain reference for the engineering practice. In the future, we will focus on the research of real-time experiments in order to better reveal the actual performance of the controller.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Key R&D Program of China (2019YFC0312303-05) and the National Natural Science Foundation of China (51875489).
