Adaptive Filtering Backstepping for Ships Steering Control without Velocity Measurements and with Input Constraints
We consider the problem of course tracking for ships with uncertainties and unknown external disturbances, in the presence of input magnitude and rate saturation. The combination of approximation-based adaptive technique and radial basis function (RBF) neural network allows us to handle the unknown disturbances from the environment and uncertain ship dynamics. By employing the adaptive filtering backstepping, the full-state feedback controller is first derived. Then the output feedback controller is designed with the unmeasurable state estimated by using a high-gain observer. In order to cope with the input constraints, an auxiliary system is introduced to the output feedback controller, and the semiglobal uniform boundedness of the modified control solution is verified. Simulation results are presented for the course tracking of a cargo ship, which are demonstrative of the excellent performance of the proposed controller.
Due to the presence of highly nonlinear dynamics of ships and time-varying environment disturbances, it is a great challenge to control ships to track the desired course. In recent years, sophisticated ship autopilots have been proposed based on advanced control engineering concepts, such as backstepping , model reference adaptive control , feedback linearization [3, 4], and so on. In , two configurations of nonlinear controllers using backstepping were designed for the ship course control system. An autopilot was designed based on the internal model control approach in . In , the technique of I/O linearization was proposed for the nonlinear ship course-keeping control problem. Reference  proposed Lyapunov and Hurwitz based control approaches for an input-output linearization applied nonlinear vessel steering system. However, these model-based methods may not be applicable since they are generally useful only when dealing with systems with explicit knowledge dynamics, which are often difficult to obtain.
To overcome the limitations of model-based controllers, we employ approximation-based control techniques to compensate the unknown disturbances from the external environment and uncertain ship dynamics, so that the proposed control algorithm can be easily applied to different ship autopilots. Some good results for ship course control in the literature have been presented by using neural networks or fuzzy logic systems to approximate the unknown terms. Adaptive fuzzy control was proposed for the ship steering problem in , where the unknown functions were approximated by using fuzzy logic systems. In , neural networks trained under back propagation were used for intelligent controlling of ships with the optimal guidance task. A direct adaptive RBF neural network control algorithm was presented for a class of ship course with uncertain discrete-time nonlinear systems, and the RBF network was used to emulate the desired feedback control and approximate the unknown function in .
Since it is convenient to construct the Lyapunov function, backstepping methods have attracted many attentions from researchers [1, 8, 9]. However, there are two main disadvantages for the conventional backstepping approach: (a) the knowledge of the accurate dynamic model is needed; (b) the complex computing is caused due to the high-order derivatives of the virtual control. Using the approximation-based techniques, the first shortcoming can be addressed. Some adaptive backstepping methods for the ship course control problem have been proposed [8, 9]. To deal with the second one, the dynamic surface control (DSC) was introduced in . A simpler algorithm using DSC for ship control system was proposed in . In , a novel command filtered backstepping method was provided, which included a second-order filter and avoided computing the derivatives of the virtual control. By the further study, Dong et al. in  researched the adaptive command filtered backstepping, in which the unknown terms in the model were considered.
From a practical perspective, the velocities of ships are usually difficult to be measured directly and likely to be corrupted by noises if the location differentiation is used. Hence, the output feedback controller should be developed to replace the full-state feedback controller. Thus, the observer needs to be designed during the control design. A passive nonlinear observer was designed for dynamic positioning ships . Furthermore, an augmented passive observer, with an adaptive wave filter, was developed in . However, these observer designs are all based on the ship dynamics. In this paper, an output feedback controller is derived with the unmeasurable state estimated by using a high-gain observer, which is simple to design and does not require the ship models. On the other hand, the actuator saturation commonly exists in many practical control systems. There have been few practical studies on the ship control design with input constraints considered. In , an adaptive steering control design for uncertain ship dynamics subject to input constraints was presented based on the antiwindup technique. To cope with input constraints for ships, the authors of  proposed an adaptive neural control of ship course autopilot with input saturation. Recently, we have considered the input constraints during the control design for surface ships , with an auxiliary design system introduced. However, in these papers, only the magnitude saturation is contained, whereas in the autopilot system, the rate saturation of rudder is similarly important as the magnitude saturation. In addition, researchers in  considered both the magnitude saturation and rate saturation in the control design, but using a model-based control approach.
The main contribution of this paper is an adaptive course controller designed by using the filtering backstepping and RBF neural network for ships subject to unknown external disturbances, model uncertainties, and input constraints, with only the heading angle measurable. The combination of approximation-based adaptive technique and RBF neural network is used to estimate the unknown disturbances from the environment and uncertain ship dynamics. Based on the full-state feedback controller, which is first designed by using adaptive filtering backstepping, an output feedback controller is derived via certainty equivalence principle, with the unmeasurable state estimated by a high-gain observer. To cope with the magnitude saturation and rate saturation of the rudder, a constrained controller is obtained by introducing an auxiliary system to the unconstrained controller. For both the unconstrained and constrained controllers, the semiglobal uniform boundedness of all closed-loop error signals is guaranteed through Lyapunov analysis.
The remainder of this paper is organized as follows. Section 2 formulates the course-tracking task for ships with input constraints. Section 3 presents the design of the adaptive filtering backstepping controller by using the unconstrained full-state feedback control, unconstrained output feedback control with a high-gain observer, and constrained output feedback control. In Section 4, simulation studies are shown to demonstrate the effectiveness of the proposed control scheme. Finally, conclusions are made in the last section.
2. Problem Formulation
2.1. Ship Autopilot Model with Input Constraints
Consider the commonly used nonlinear model of the ship autopilot as  where and denote the heading and rudder angle of the ship, respectively (see Figure 1), is the nonlinear maneuvering characteristic which is unknown and continuous here, denotes the model uncertainties, and is the external disturbance which is unknown and bounded. is the gain constant, and is the time constant.
In practical applications, the dynamic model of the ship is complemented by the model of the steering gear, and the control input signal passes the steering gear firstly. Hence, it is necessary to take account of the rudder dynamic while designing the controller. Generally, the steering gear dynamic characteristic can be described by the following equation : where is the input of the steering machine, is the gain constant, and is the time constant.
Moreover, the steering machine is highly nonlinear. During the ship steering control, the dominating nonlinearities are the magnitude and rate saturation of the rudder angle. Considering the presence of input constraints, the following nonlinear model of the control input saturation is presented : where the saturation functions and denote the magnitude saturation and rate saturation, respectively, which are defined as with and .
The model of the steering machine with saturation nonlinearities is schematically shown in Figure 2, where the signal denotes the output of the controller.
Define the state variables as , , and the control variables as , ; then considering the input constraints, the state-space model of the autopilot with the rudder dynamic characteristic is derived as with and , where denote the unknown disturbances from the environment and uncertain dynamics.
Lemma 1 (see ). For bounded initial conditions, if there exists a continuous and positive definite Lyapunov function satisfying , such that , where are class functions and is a positive constant, then the solution is uniformly bounded.
In practice, it is not easy to measure the angle velocity of ships directly, and the angle velocity is likely to be influenced by noises if the differentiation of the heading angle is used. Hence, the control objective of this paper is to design the control law without angle velocity measurement and with input constraints, while the output follows a desired heading , such that the resulting closed-loop system is stable in the sense of semiglobal uniform boundedness.
Assumption 2. For all , and are continuous and bounded.
Remark 3. Assumption 2 requires the desired signal to be sufficiently smooth to avoid the actuator saturation induced by sudden jumps of the tracking error due to discontinuous command inputs.
2.2. RBF Neural Network Approximator
In order to deal with the uncertain parts, the neural network is usually used to estimate the uncertain model. RBF neural network, which has been proved to approximate any continuous function with arbitrary precision, is commonly adopted in the modeling and controlling of nonlinear systems. Therefore, in this paper, the unknown function will be estimated online by using the RBF neural network.
Figure 3 shows the general structure of RBF network with inputs, nodes, and a single output. It is a single hidden layer feed-forward network, and the mapping from input to output layer is nonlinear while the mapping from hidden layer to output layer is linear. This property can speed up the learning process and avoid the local minimization problem.
Letting be the input vector and let be the radial basis vector of the network, where is Gaussian function, where is the central vector of the th node, and is the basis width parameter of the th node.
Then, using the RBF network, the continuous function can be represented as follows: where is the weight vector and is the approximation error which is bounded over the compact set, that is, , , where is an unknown positive constant.
According to the universal approximation property , the continuous function can be smoothly approximated over a compact set to arbitrary any degree of accuracy as where denotes the ideal constant weight vector and is the approximation error as . The ideal weight vector is defined as the value of that minimizes for all ; that is,
3. Adaptive Control Design
In this paper, we employ approximation-based adaptive filtering backstepping of the ship dynamics (5). Unlike the conventional backstepping, the filtering backstepping avoids the tedious algebra related to computing the command signal derivatives . Since the function is not known exactly in practice, the RBF network is used to approximate the unknown function online during the controller design. Unconstrained full-state feedback controller will be derived first. Based on this, an unconstrained output feedback controller will be subsequently designed via certainty equivalence principle , with the unmeasurable state estimated by a high-gain observer. At last, the output feedback controller with input constraints will be obtained with some modifications.
3.1. Unconstrained Adaptive Full-State Feedback Control
In the design of the unconstrained controller, the input constraints of the ship are not considered. Thus, the signals and in Figure 2 are equal; that is, ; then in this subsection, is the control law to be designed, and the controlled plant consists of the first three equations of (5).
Step 1. Define the tracking error variables as where and are the virtual controls.
According to the standard backstepping method, the virtual control can be easily derived as
In order to avoid computing derivatives of the virtual control in the next step, a filter (designed later) is introduced. The input of the filter, called pseudocontrol, needs to be designed, and the outputs of the filter are and , which will be used in the following steps.
The pseudocontrol signal is designed as
Step 2. Using the standard backstepping method, we can obtain the virtual control as
For the filtering backstepping, define pseudocontrol signal as where is the compensated tracking error and denotes the estimate of the unknown function by utilizing the RBF network; then, from (7) and (8), we have where are the input variables to the RBF network, and is the approximation error.
Substituting (16) into (14), (14) can be rewritten as
Define the compensated tracking error as where the dynamic of the signal is defined as with and defined as
Step 3. Similar to Step 2, define the compensated tracking error signals and as
Then, the control law and the adaptive law are designed as where and is a positive definite matrix.
As mentioned above, the command filter is introduced to compute and without differentiations. Define the state-space model of the command filter as  where are the input variables, and are the outputs of the filter, and the filter initial conditions are and . The filter design parameters are and , and the designer would select an appropriate so that and will accurately track and , respectively .
3.1.1. Stability Analysis
Firstly, we analyze the properties of the compensated tracking errors and the neural parameter estimation error by considering the following Lyapunov function candidate:
Differentiating the tracking errors yields
The dynamics of the compensated tracking errors are derived as follows:
Then, the derivative of is obtained as
Noting the following facts: it can be shown that where and are positive constants defined by
Secondly, the properties of the tracking errors are addressed. From Theorem 2 in  we have that and . That is, by increasing the command filter parameter , and can be made arbitrarily close to and , respectively. Then, from the differential equations (19) and (20), we can see that the signals will converge to an arbitrarily small neighborhood of zero. Finally, according to (18) and (21) and the convergence of , the tracking error signals are bounded.
3.2. Unconstrained Adaptive Output Feedback Control
As mentioned in the previous section, the angle velocity of the ship is unmeasurable in this paper. Therefore, the full-state feedback is not available in practice. In this section, we tackle the output feedback problem for ships by utilizing high-gain observers.
Lemma 4 (see ). Consider the following linear system: where is a small positive constant, and are chosen such that the polynomial is Hurwitz. Suppose that the system output and its first derivatives are bounded, so that ; then the following properties hold.(1)Consider the following: where and denotes the th derivative of .(2)There exist positive constants and (independent of ) such that for all .
According to Lemma 4, we can see that asymptotically converges to with a small time constant. Therefore, we can use to estimate the output derivatives up to the th order.
Generally, the heading of ships can be measured by using the compass, and the measured values are commonly in the range of . In the ship control system, the measured heading angles are translated to the range of ; that is, . Then, using Lemma 4, let and ; the estimate of the unmeasurable state can be expressed as where can be computed via the following model:
Now, we revisit the control law (22) and adaptive law (23) for the full-state feedback case. Based on the certainty equivalence principle, we modify them by replacing the unmeasurable variables with their estimates, such that where and .
Moreover, (17) is changed as
Then taking the time derivative of yields
Due to the boundedness of the basis function, we assume that , where is a positive constant. Then, using the techniques of inequalities, we have
According to the second property of Lemma 4, we have
Finally, the derivative of is derived as where
To ensure that , the control parameters are chosen to satisfy the following conditions:
That is, the error signals, including the compensated tracking errors and the neural parameter estimation error , are still semiglobally uniformly ultimately bounded, with the high-gain observer used.
Similar to the analysis in the last section, the tracking error signals in the output feedback control system are also bounded.
3.3. Constrained Adaptive Output Feedback Control
In the design of the constrained controller, the input constraints, including the magnitude saturation and rate saturation of the rudder, are considered. The control law (36) does not assure the constraints, and the control input may exceed the magnitude or rate limitation of the actuator. The saturated control input may cause an aggressive adaptation in the adaptive law (37). This can make the ship course unstable. In this section, the signal becomes the control law to be designed, and the fourth equation of (5) is contained in the control design.
In order to tackle the input saturation problem, a second-order nonlinear filter with limiters is introduced between the signals and . Figure 4 shows the visual description for the second-order filter, and the state-space model of the filter is defined as  where and are the natural frequency and damping ratio of the filter, is the filtered output of the input signal , and is the derivative of .
And the derivative of becomes
Meanwhile, the compensated tracking error defined in (20) is modified as where the signal is defined as: with .
Then we can obtain the derivative of as
It is clear that the derivative of is equal to (45) and satisfies the inequality (49) finally. Hence, the error signals, including and the neural parameter estimation error , are still semiglobally uniformly ultimately bounded with the nonlinear filter (52) introduced. Note that the definition of here is different from that in the last subsection.
Furthermore, among the dynamics of , only the dynamic of is changed (see (41) and (55)). Due to the property of the filter, we have ; hence, from (56), we can see that will be close to zero arbitrarily. Then, according to (55), is bounded. That is, the tracking error signals are all uniformly bounded.
4. Case Study
In this section, the simulation on a cargo ship is carried out by using Matlab/Simulink. The parameters of the ship autopilot model are s and , with the nonlinear function and the model uncertainty . The parameters of the rudder dynamic satisfy . Without loss of generality, we define the external disturbance as
The control objective is to track, using only the measurable signal , the desired course , in the presence of the maximum rudder and maximum rate of rudder . The initial heading of the ship is .
The RBF neural network approximator with 10 nodes and 2 inputs is used, where are the inputs. The parameters of the basis function are and , where denotes a matrix with all the elements being one. Choose the parameters of the weight updating law (37) as with being an identity matrix, and the initial weight is set as .
The high-gain observer is designed according to (35) with and , while the control law is based on (12), (38), and (53) with the filters designed as (24) and (52). We choose , , and . The parameters of the filter (24) for both and are and , while the parameters of the filter (52) are and .
To illustrate the effectiveness of the proposed scheme, we compare the tracking performance of the proposed controller with a PID controller, as well as a nonadaptive backstepping controller, as shown in Figure 5. The PID control law is where and can be obtained from (10) and (34), respectively, and the PID parameters are selected as , , and through lots of simulations. The nonadaptive backstepping adopts the same parameters as the proposed controller. From Figure 5, it can be shown that, using the PID control, both the steady-state and transient performances are less satisfactory, whereas, using the proposed method, the performances are best. Moreover, the proposed controller has faster decay of tracking error and lower steady-state value than the nonadaptive backstepping, and the reason is that the bounded unknown function is compensated by using the RBF network. In contrast, for the nonadaptive backstepping, one can estimate a conservative bound of and augment a robust term to dominate the disturbance, but this approach may lead to an overlarge control input if the bound of the disturbance is overestimated.
Besides, the proposed method avoids computing the derivatives of the virtual controls and consequently simplifies the backstepping implementation, so that it is beneficial from the practical application viewpoint.
Figure 6 shows the curve of control input by using the proposed method. In general, better tracking precision needs more control effort and may cause oscillations of the control. But as seen from Figure 6, using the proposed control, there are only a few slight oscillations at 50~100 s, and in the rest of the tracking process, the rudder changes smoothly. In addition, since the input constraints are considered in the control design, the magnitude and rate of the rudder are bounded within the maximum values.
Figure 7 shows the small time convergence of the high-gain observer estimate to the output derivative. Within about 1.5 s, the estimate peaks at its saturation value and then converges rapidly to the actual derivative of the rudder angle. After that, the estimate error remains in a small neighborhood of zero. The norm of the approximation weight is fast bounded as seen from Figure 8.
In this paper, the problem of course tracking for ships with uncertainties and unknown external disturbances has been investigated. During the control design, both the magnitude and rate saturation of the input signal are considered. An adaptive full-state feedback controller using RBF network and filtering backstepping is first derived, and the final controller is obtained by using a high-gain observer to estimate the unmeasurable angle velocity and introducing an auxiliary system to compensate the input saturations. Stability analysis is made to verify the semiglobal uniform boundedness of the final closed-loop system. The excellent performance of the aforementioned control scheme is validated through simulation tests for the course tracking of a cargo ship.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
X. Wang, T. Li, and B. Lin, “Direct adaptive neural network control for a class of ship course uncertain discrete-time nonlinear systems,” Marine Engineering Frontiers, vol. 1, no. 3, pp. 42–48, 2013.View at: Google Scholar
J. Li, T. Li, Z. Fan, R. Bu, Q. Li, and J. Hu, “Direct adaptive NN control of ship course autopilot with input saturation,” in Proceedings of the 4th International Workshop on Advanced Computational Intelligence (IWACI '11), pp. 655–661, Wuhan, China, October 2011.View at: Publisher Site | Google Scholar
J. van Amerongen, Adaptive steering of ships—a model reference approach to improved maneuvering and economical course keeping [Ph.D. thesis], Delft University of Technology, Delft, The Netherlands, 1982.
P. Ioannou and J. Sun, Robust Adaptive Control, Prentice Hall, New York, NY, USA, 1996.
S. S. Ge, C. C. Hang, T. H. Lee, and T. Zhang, Stable Adaptive Neural Network Control, Kluwer Academic, Boston, Mass, USA, 2001.
J. Farrell, M. Sharma, and M. Polycarpou, “Backstepping-based flight control with adaptive function approximation,” Journal of Guidance, Control, and Dynamics, vol. 28, no. 6, pp. 1089–1102, 2005.View at: Google Scholar