Computational Intelligence and Neuroscience

Volume 2016 (2016), Article ID 3013280, 11 pages

http://dx.doi.org/10.1155/2016/3013280

## Course Control of Underactuated Ship Based on Nonlinear Robust Neural Network Backstepping Method

College of Automation, Harbin Engineering University, Harbin 150001, China

Received 25 August 2015; Revised 25 November 2015; Accepted 31 January 2016

Academic Editor: Chaomin Luo

Copyright © 2016 Junjia Yuan et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

The problem of course control for underactuated surface ship is addressed in this paper. Firstly, neural networks are adopted to determine the parameters of the unknown part of ideal virtual backstepping control, even the weight values of neural network are updated by adaptive technique. Then uniform stability for the convergence of course tracking errors has been proven through Lyapunov stability theory. Finally, simulation experiments are carried out to illustrate the effectiveness of proposed control method.

#### 1. Introduction

Tracking control performance for surface vessel along the predefined route has been an essential control problem for marine autopilot system design, and it has received considerable attractions from control community. In 1922, proportional-integral-derivative (PID) autopilot for ship steering was presented by Nicholas Minosky [1]. PID controller greatly improved the performance of autopilots. Until the 1980s almost all makes of autopilots were based on these controllers. One challenge for tracking control of surface vessel based on above method is that the systems are often underactuated by the sway motion due to weight, complexity, and efficiency considerations and exhibit nonholonomic constraints, which meets Brocket’s theorem that there is no continuous or even smooth time-invariant state feedback law that can stabilize the system to the origin [2]. Another challenge is that the vessel model itself exhibits severe nonlinear characteristic and model uncertainties induced by the ocean environment [3, 4].

For the ship with nonlinear maneuvering characteristics and without uncertainties, a state feedback linearization control law was designed [5], while feedback linearization with saturation and slew rate limiting actuators was discussed [6]. Later, combined with a genetic algorithm, the backstepping method was employed to develop a nonlinear ship course controller by Witkowska and Smierzchalski [7], where the ship course parameters were automatically tuned to the optimal values with the aid of a genetic algorithm. Even considering the ship steering model with both constant parametric uncertainties and input disturbance with unknown bound, a robust adaptive nonlinear control law was presented based on projection approach and Lyapunov stability theory [8]. Recently many papers have tackled these problems based on Lyapunov theory [9–12]. In [13–15] a global tracking controller for underactuated ship is addressed with nonzero off-diagonal terms, the reference trajectory is generated by using a virtual target guidance algorithm, and the controller designed is facilitated by an introduction of changing the ship outputs, several coordinate transformations, and backstepping method. And the controller design is heavily depending on accurate dynamic model; the robustness against disturbance has not been addressed. A method using backstepping adaptive dynamical sliding mode control is presented for path following control of USV in [16], the control system takes account of the modeling errors and disturbances, and simplified tracking error dynamics are obtained by assuming that the sway velocity is small which can be neglected in the controller design and only for straight line path tracking can be achieved. The LOS based guidance law is also used in the controller design which causes the complexity of computing high-order derivative of virtual control. In [17], a transformation of vessel kinematics to the Serret-Frenet frame is introduced by exploring an extra degree of freedom by controlling explicitly the progression rate of the virtual target along the path and overcomes the major singular problem; approach angle is introduced for controller design via backstepping method. Neural networks are introduced to enhance system stability and transient performance, which can handle the known dynamics and uncertainties of systems well [18–20]. Particularly in [12] a single hidden layer neural network (SHLNN) is adopted to obtain the adaptive signal online, but the choice of the single hidden layer neural network is limited by the number of hidden layer node selections that will affect the online learning speed and accuracy and cannot produce a better estimation effect on the fast changing disturbances.

Therefore, a solution to the course control of underactuated surface vessel is addressed in this paper. In view of the characteristics of the underactuated performance, the backstepping control method is used to deal with above problem. The direct adaptive neural network is adopted to design control law by using the RBF neural network to overcome the problem that the ideal virtual control cannot be used directly in practice. The weights of the neural network are updated by adaptive technique to guarantee the stability of the closed-loop system through Lyapunov stability theory. Simulation results are illustrated to verify the performance of the proposed adaptive neural network controller with good precision.

#### 2. Adaptive Robust Neural Network Controller Design

##### 2.1. Problem Description

Consider the following nonlinear systems:where is system state, is control input, and is system output. The control objective is to design an adaptive neural network controller and make track . meets the smooth bounded reference model as follows:where is state constant, represents system output, and , , denote nonlinear function, assuming that the reference model for each state is bounded as , .

*Assumption 1. *There is an unknown constant to meet, , , and is a known positive smooth function.

##### 2.2. Direct Adaptive Neural Network Controller Design

In view of the problems and solutions described in the last section, the direct adaptive neural network controller for nonlinear systems with RBF neural network is chosen. Detailed design steps will be described in the following.

*Step 1. *Let , , and thenConsider the following Lyapunov function:where , represents the ideal weight vector of neural network, represents the estimated value of the neural network weight vector, represents the estimation error of weight vector, is the adaptive gain matrix, and the derivation of can be computed asAccording to Assumption 1, we can getThere is an ideal virtual feedback control law:where is designed controller parameter.

Because of the unknown smooth functions and , we cannot actually get the ideal feedback control law ; from (7) we can see that the unknown part is smooth function of and , so thatRBF neural network is used to approximate the unknown function , and can be expressed aswhere is estimated error and meets .

Because is unknown, the virtual control law is selected as follows:and thenAdaptive law can be chosen as follows:where and thenLet , where and , and then the upper equation becomesAccording to the complete square formula,Because , we can make by choosing the appropriate and obtain the following inequality:

The cross coupling in (16) will be eliminated in the next step.

*Step 2. *Let ; thenFrom (10) we can see that is a function of , , and , and can be written aswhere can be calculated.

Consider the following Lyapunov function:where is an adaptive gain matrix.

Then the derivation of can be calculated asAccording to Assumption 1 we can getThere is an ideal feedback control law:where is a designed controller parameter.

Because of the unknown smooth functions and , we cannot actually get the ideal feedback control law ; from (22) we can see that the unknown part is a smooth function of and ; letwhere . RBF neural network is used to approximate the unknown function , and can be expressed aswhere is expressed as the ideal constant weight vector and is the estimated error and meets .

Because is unknown, select the following virtual control law:where is the estimated value of ; thenwhere .

Adaptive law can be chosen aswhere ; thenLet , ; then the upper equation becomesAccording to the complete square formula,Because , then we can make by selecting the proper ; then

The cross coupling in (31) will be eliminated in the next step.

*Step *. The derivative of can be calculated as where

Consider the following Lyapunov function:where is an adaptive gain matrix.

Then the derivation of can be calculated as

According to Assumption 1 we can get

There is an ideal feedback control law aswhere is designed controller parameter.

Because of the unknown smooth functions and , we cannot actually get the ideal feedback control law ; from (37) we can see that the unknown part is a smooth function of and , and letwhere

By introducing the direct variable , , we can make the number of neural networks minimized. RBF neural network is used to approximate the unknown function , and can be expressed aswhere is estimated error and meets .

Because is unknown, select the following virtual control law:where is the estimated value of ; thenwhere .

The following adaptive law can be selected aswhere ; then

Let , ; then (44) can be rewritten as

According to the complete square formula,

Because , then we can make by selecting the proper ; then

The cross coupling in (47) will be eliminated in the next step.

*Step *. The derivative of can be calculated aswherewhere

Consider the following Lyapunov function:where is an adaptive gain matrix. Then the derivation of can be calculated as

According to Assumption 1 we can get

There is an ideal feedback control law aswhere is designed controller parameter.

Because of the unknown smooth functions and , we cannot actually get the ideal feedback control law ; from (54) we can see the unknown part is a smooth function of and , and letwhere .

RBF neural network is used to approximate the unknown function , and can be expressed aswhere is estimated error and meets .

Because is unknown, select the following virtual control law:where is the estimated value of ; thenwhere .

The following adaptive law can be selected aswhere ; then

Let , ; (60) can be rewritten as

According to the complete square formula,

Because , then we can make by selecting the proper ; then

Let ,,,, where ,,; then

The stability and control performance of the closed-loop adaptive system are demonstrated by the following theorem.

Theorem 2. *In the initial conditions, by formula (1), reference model (2), control law (57), and neural network weight update rate in (12), (27), (43), and (59), supposing that there is a large enough set of closed sets , , for any given moment , making , the following conclusions can be obtained as follows:*(1)*The signal of the whole closed-loop system is bounded, and the state variable and the neural network estimation errors will eventually converge to the closed set as follows:*(2)*By choosing the proper control parameters, the output tracking error is close to a small neighborhood of zero [21].*

*3. Adaptive Robust Neural Network Control for Ship Course*

*3.1. Problem Formulation*

*This section introduces a simplified dynamic model of an underactuated surface vehicle with only one control input for heading control. A surface ship usually has three degrees of freedom for path following control in horizontal plane. Assuming that the vessel has three planes of symmetry, for most underactuated vessels have port/starboard symmetry, it can be neglected to simplify the vessel model for controller design. The detailed model which considers the environment disturbances can be set as follows:where denotes transverse displacement in the earth inertial coordinates; is resultant velocity of ship; is course angle; is yawing angular velocity; represent performance index for ship steering; is coefficient of nonlinear term; is control rudder angle; represent system output.*

*The control objective is to design the controller to make the control output , achieve the setting value . Because the dimension of the system control input is less than the degree of freedom of the system, it is an underactuated system.*

*3.2. Dynamic Controller Design*

*Selection of coordinate transformation is as follows:*

*The original system can be transformed into a single input single output system:where , , , , , , and the output of whole system is .*

*For system model (67) and (68), the controller design is carried out by using backstepping method.*

*Step 1. *Let , ; thenFor the subsystem , is chosen as virtual control input. Select the Lyapunov function , and there isLet ; then ,Select the following virtual control law:, because is unknown function, , and we will adopt RBF NN to estimate and get . But the actual use of the NN for the system is . Actual virtual control input is ; thenwhere .

Select Lyapunov function asthenThe adaptive law of neural network can be designed aswhere . Let , where .

Furthermore,thenbecauseFinally we can get

*Step 2. *Let ; derivation of can be calculated asBecause , thenwhere , is unknown parameter, is known nonlinear function, and thenLetEquation (83) can be rewritten asIn the same way we use RBF NN estimate :The actual use of the NN for the system and controller can be expressed asSelect Lyapunov function asThe derivation of can be calculated asTherefore, all signals in the close loop of course tracking system are stable, and the tracking errors can be made arbitrarily small by selecting appropriate controller parameters. So the final control law can be designed as

*4. Numerical Simulations and Analysis*

*The simulation experiment can be operated based on an experimental ship. The nonlinear mathematical model for the ship has been presented in [22], which captures the fundamental characteristics of dynamics and offers good maneuverability in the open-loop test. To illustrate the effectiveness of the theoretical results, the proposed control scheme is implemented and simulated with the above nonlinear model with tracking task.*

*The characteristic parameters of the ship used in the simulation are given as , , and . Neural network contains 25 neurons; that is, ; the center vector is uniformly distributed in the width . Neural network contains 135 neurons; that is, ; the center vector is uniformly distributed in the width . The controller design parameters are given as follows which satisfy the condition mentioned in design procedure: , , , , , and , . The initial linear and angular velocity of ship used in the simulation are given as , is the initial position and orientation vector of ship, and the desired velocity of ship is given as (m/s). We choose the reference trajectory as .*

*In order to further verify the validity of the proposed control method, the algorithm of this paper is compared with the simulation results in [12]. So the robustness of trajectory tracking controller against the disturbance and model uncertainties can be evaluated. All the simulation results are depicted in Figures 1–4. Figure 1 shows the trajectory tracking of ship with the given path, and the ship can track and converge to the reference path with more accuracy in [12]. Figure 2 plots the position tracking errors; the along-track and cross-track errors asymptotically converge to zero faster. Figure 3 gives the control inputs response. Surge, sway, yaw velocities, and orientation of ship during the trajectory tracking control process are plotted in Figure 4, which gives a clear insight into the model response involved in nonlinear dynamics.*