Research Article | Open Access

Xue Han, "Adaptive Neural Backstepping Sliding Mode Heading Control for Underactuated Ships with Drift Angle and Ship-Bank Interaction", *Computational Intelligence and Neuroscience*, vol. 2020, Article ID 8854055, 18 pages, 2020. https://doi.org/10.1155/2020/8854055

# Adaptive Neural Backstepping Sliding Mode Heading Control for Underactuated Ships with Drift Angle and Ship-Bank Interaction

**Academic Editor:**Rodolfo E. Haber

#### Abstract

In order to track the desired path under unknown parameters and environmental disturbances, an adaptive backstepping sliding mode control algorithm with a neural estimator is proposed for underactuated ships considering both ship-bank interaction effect and shift angle. Using the features of radial basis function neural network, which can approximate arbitrary function, the unknown parameters of the ship model and environmental disturbances are estimated. The trajectory tracking errors include stabilizing sway and surge velocities errors. Based on the Lyapunov stability theory, the tracking error will converge to zero and the system is asymptotically stable. The controlled trajectory is contractive and asymptotically tends to the desired position and attitude. The results show that compared with the basic sliding mode control algorithm, the overshoot of the adaptive backstepping sliding mode control with neural estimator is smaller and the regulation time of the system is shorter. The ship can adjust itself and quickly reach its desired position under disturbances. This shows that the designed RBF neural network observer can track both the mild level 3 sea state and the bad level 5 sea state, although the wave disturbance has relatively fast time-varying disturbance. The algorithm has good tracking performance and can realize the accurate estimation of wave disturbance, especially in bad sea conditions.

#### 1. Introduction

In ship heading control, the steering motion makes the bow produce a small lateral drift angle and changes the fluid distribution on both sides of the hull. This will result in the difference between the actual motion direction and the expected ship heading. The current steering control algorithm ignores the effect of the drift angle, but the existence of the drift angle will increase overshoot and reduce the steering control accuracy and performance. In bad sea conditions, the model dynamic uncertainty, time-varying parameters, and drift angle correction need to be considered. The shift angle was proposed by Yu in 2008 [1]. Liu proposed a horizontal-plane cascade-steering model with drift angle and developed an adaptive backstepping control algorithm based on the dynamic surface control and Nussbaum gain techniques [2]. Lu designed a backstepping heading controller with a sideslip angle amendment and a robust adaptive control method combining the nonlinear disturbance observer to estimate the wave disturbance effectively in the yaw direction [3]. Sun proposed a guidance control scheme based on finite-time observers for path following control of underactuated unmanned vehicles subjected to time-varying large sideslip angle and unknown external disturbances [4].

For large ships, the channel width is narrow and the water depth is shallow. The maneuverability of ships navigating in restricted waters is quite different from that in open waters, mainly due to the influence of the bottom and bank wall, and the hydrodynamic force is usually greater. For the ships running near the shore, the effect of the quay wall is a potentially unsafe factor, which often leads to collision accidents caused by ships too close to the shore wall, resulting in casualties and a large number of property losses. Therefore, it is necessary to study the ship-bank interaction effect [5].

Recently, backstepping control is used for uncertain nonlinear systems to improve the global ultimate asymptotic stability. Chu proposed an adaptive global sliding mode fuzzy control using a radial basis function neural network based on the backstepping technique [6]. A RBF neural approximator was employed to estimate uncertainty. Wang deduced the control algorithm for the unmanned surface vehicle by the backstepping method with Lyapunov theory [7]. Liu proposed a backstepping adaptive dynamic sliding mode control method for the track tracking control system of underactuated surface ships [8]. Li proposed an adaptive backstepping sliding mode control method for a class of uncertain nonlinear systems with input constraints [9]. The explosion of complexity is avoided in the traditional backstepping design method by introducing a first-order filter. Chen applied an adaptive sliding mode controller based on the backstepping method to the robust trajectory tracking of the wheeled mobile manipulator [10]. The control algorithm adopted the backstepping method to improve the global ultimate asymptotic stability. Wang extended the iterative sliding mode controller based on reinforcement learning to bidirectional control, considering the trajectory tracking problem of Underactuated Ships under known and unknown conditions [11]. Disturbance, dynamic surface control technology, adaptive neural network, sliding mode control algorithm, and backstepping design method are combined to design neural network adaptive sliding mode control law bound for environmental disturbance. Meng proposed a robust sliding mode method for trajectory tracking of underactuated ships with uncertain parameters and time-varying disturbances [12]. In the dynamic loop, the trajectory tracking error is transformed into the steady surge and surge velocity error by using the backstepping technique. Wang used a RBF neural network to approximate the ship system function and external disturbance [13]. Lyapunov stability theory and backstepping method were used to design the controller of ship motion. Wen utilized the property of neural network compensation technique and backstepping method, to construct an adaptive output feedback controller [14]. Sun constructed an adaptive decentralized tracking controller via the backstepping method and neural network technique, where a sliding mode differentiator was presented to estimate the derivative of the virtual control law and reduce the complexity of the control scheme [15].

For dealing with systems with uncertainty, several methods have been used, such as fuzzy logic, neural network, and so on. Cheng presented a novel indirect neural observer with the ADALINE network incorporated into the conventional sliding mode term and utilized a radial basis function neural network approximation utilized to handle the system uncertainties [16]. Gajate presented the design and application of a novel transductive neurofuzzy inference method to control force in a high-performance drilling process [17]. Martín considered a neurofuzzy system, where fuzzy rules were obtained from input/output data [18]. The design of the control system was based on the internal model control paradigm. Kelly presented a fuzzy adaptation scheme for PD control with gravity compensation of robot manipulators [19]. It compensated for static friction in the robot joints and considered the real torque actuators capabilities to avoid torque saturation. Ramírez used a knowledge-based fuzzy controller, to keep the temperature as close to the set profile as possible. Such a controller was endowed with a set of 60 rule bases, which were dynamically switched depending on technological constraints and/or operating regions [20]. Guerra presented a procedure for digital twin-based optimization, in which the maximum absolute position error was minimized while maintaining accuracy with no significant increase in the control effort [21].

Sliding mode control is a branch of variable structure control proposed by Soviet scholars in the 1950s. Guo proposed a hybrid control algorithm based on backstepping control and nonsingular fast terminal sliding mode control to solve the tracking problem of the mobile robot [22]. Elmokadem proposed a robust control scheme for dynamic positioning and path tracking of the underactuated autonomous underwater vehicle (AUV) based on sliding mode control [23]. Sun proposed a new nonlinear robust adaptive control scheme with sliding mode control to track the desired path generated by the logic virtual ship under unknown parameters and environmental disturbances [24]. In order to solve the problem that the ship speed state vector cannot be measured, Wang designed an observer based on an output feedback sliding mode controller [25]. An adaptive sliding mode controller based on RBF neural network is designed to solve the problem of underactuated ship trajectory tracking with uncertain model parameters and large external disturbance. To solve the problem of track tracking of a three degree of freedom underactuated ship, Dai proposed an adaptive iterative sliding mode control method based on Reinforcement Learning [26]. Sui proposes a neural network sliding mode control strategy based on a dynamic virtual ship algorithm, which is controlled under the condition of model uncertainty and external disturbances such as wind, wave, and current [27]. To solve the problem of automatic berthing of 3-DOF ships, Zou proposed an iterative sliding mode control based on chaos particle swarm optimization [28].

However, how to design a robust controller for ships is still a challenging problem because of model errors, parameter changes, and external disturbances. First of all, the existence of a drift angle is usually ignored in course control, but the actual drift angle is not zero, which will cause a drift angle difference between the actual motion direction of the ship and the expected course. If not corrected, the performance of course control will be reduced. Secondly, the effect of ship-bank interaction is a common phenomenon in berthing, crossing bridge, and near-shore navigation. The large ship-bank interaction effect can even lead to ship capsizing. However, in ship motion control, the existence of the ship-bank interaction effect is usually ignored. Thirdly, the sudden disturbance will cause the control force to be too large, which will lead to the excessive driving power of the actuator. Any actuator has a certain range of execution; once the input exceeds the limit value, it will affect the operation of the actuator, resulting in system performance degradation, affecting the control effect, and maintaining too large control input for a long time will also increase the loss of rudder.

In this paper, the small angle approximation and slow time-varying assumption are avoided. The unknown disturbances such as drift angle and ship-bank interaction effect are dynamically estimated by the neural network. The time-varying large drift angle is accurately compensated by using the weight parameter adaptive law of the RBF neural network. Based on backstepping control and adaptive sliding mode technology, the surge speed and heading tracking controllers are designed, respectively, to realize the precise path tracking control with unknown time-varying large drift angles and the influence of the bank wall effect. The stability of the closed-loop system is proved by the Lyapunov theory. The experimental results show that the algorithm can reduce the heading error, the overshoot, adjustment time, and the control torque of the actuator. It can improve the robustness and economy of path tracking control for underactuated ships under unknown sea conditions.

#### 2. Mathematical Model of Underactuated Ship

##### 2.1. Mathematical Model of Underactuated Ship

The coordinate system is established as follows: The stationary observer on the shore is defined as the origin *O*_{0}. The positive east direction is defined as the *X*_{0} axis and the positive north direction is defined as the *Y*_{0} axis. The three-degree-of-freedom motion of surge, sway, and yaw are considered. The motion model of the dynamic positioning system is shown in Figure 1. denotes the position and attitude vector of the ship. denotes the velocity vector of the ship. denotes the surge velocity. denotes the sway velocity. *r* denotes the yaw velocity. *x* denotes the position in surge direction. *y* denotes the position in sway direction. denotes the heading angle. denotes the desired heading angle. denotes the shift angle.

The mathematical model of the dynamic positioning ship is as follows:where is the rotation matrix, which can be calculated as follows:

The dynamic models of underactuated ships can be calculated as follows:

The velocity equation is as follows:where is the force of wind disturbance along the surge direction. is the force of wind disturbance along the sway direction. is the torque of wind disturbance along the yaw direction. is the force of current disturbance along the surge direction. is the force of current disturbance along the sway direction. is the torque of current disturbance along the yaw direction. is the force of wave disturbance along the surge direction. is the force of wave disturbance along the sway direction. is the torque of wave disturbance along the yaw direction. is the force of ship-bank interaction effect along the surge direction. is the torque of ship-bank interaction effect along the yaw direction. denotes the control input along the surge direction. denotes the control input along the yaw direction. are elements of the matrix composed of weight inertia and hydrodynamic additional inertia. are elements of linear hydrodynamic damping parameter matrix.

Denote the following:

Then (4) can be written as follows:

In the system model, the number of system state variables is 3 and the number of input control variables is 2, so the system is underactuated.

##### 2.2. Mathematical Model of Environmental Disturbing Force

The disturbance of external environment includes the disturbance of wind, sea wave, and current.

###### 2.2.1. Wind Disturbance Model

According to Isherwoodʼs research, the force and torque of wind disturbance can be calculated as follows:where are the wind coefficient. denotes the wind moment coefficient. denotes the projection area above the water line. denotes the projection area on the side. denotes the total length of the ship. denotes the air density.

###### 2.2.2. Current Disturbance Model

The forces and moments acting on ships by ocean currents can be calculated as follows:where denote the longitudinal force and the transverse force produced by the current. is the moment produced by the current. represents the velocity of the current. denotes the orthographic projection area of the ship underwater. denotes the side projection area of the ship underwater. denotes the length of the ship's waterline. denotes the drift angle. denotes the density of the sea water. denote the longitudinal flow force coefficient, transverse flow force coefficient and moment coefficient, respectively.

###### 2.2.3. Wave Disturbance Model

The forces and moments produced by wave disturbance can be calculated as follows:where denotes the average wave amplitude. denotes the encounter angle. denote the longitudinal wave drift force, transverse wave drift force, and moment coefficient, respectively. is the length of the wave.

###### 2.2.4. Ship-Bank Interaction Effect

When the ship is sailing near the bank of a channel or the pier of a bridge, the water flow near the bank accelerates and the pressure decreases. This results in the additional force which makes the ship close to the bank. This force is called the bank suction. Shore suction may cause the ship to touch the shore. At the same time, there is a moment which makes the bow deviate from the shore; that is, the shore thrust moment. Bank suction and bank thrust moment are generally called ship-bank interaction effects. The ship-bank interaction effect of a vertical wall is shown in Figure 2.

The force and moment of a vertical bank are calculated by Norrbin’s formula [29].where is the water density. is the block coefficient. *T* is the draught. *h* is the depth of the water. *L* is the length of the ship. *B* is the width of the ship. is the ratio of ship width to distance between ship and shore.

#### 3. Neural Backstepping Sliding Mode Control

##### 3.1. RBF Neural Network

In 1985, Powell proposed a radial basis function (RBF) method for multivariate interpolation. The most frequently used Radial Basis Function is the Gauss function:where is the input vector. denotes the Euclidean Norm of . denotes the Radial Basis Function. denotes the central vector of the function. denotes the width of the Radial Basis Function. denotes the threshold vector. denotes the number of hidden layer nodes. Denotes the number of input training samples. denotes the output of the neural network:

Figure 3 shows the RBF structure.

In this system, the input of the RBF neural network is system state *x* and the output is and . is the approximation of by RBF neural network. is the approximation of by RBF neural network.

##### 3.2. Neural Backstepping Sliding Mode Control

The shift angle is computed as follows:

The heading error is computed as follows:

Taking the derivative of (14) can obtain the following:

Construct new variables:where is a positive real number.

The following sliding surface functions are constructed:where is a positive real number.

The control rate is designed as follows:where is a positive real number.

Denote as the approximation of by RBF neural network:where is the approximation error of the RBF neural network.

Subtracting (20) from (21) can obtain the following:

Denote the following:

Equation (22) can be written as follows:

An adaptive control law is constructed as follows:

##### 3.3. Stability Analysis

Theorem 1. *Based on the Lyapunov stability theory, for the ship dynamic model (4) with control input (19) and an adaptive control law (25), the tracking error of the system converges to zero and the system is asymptotically stable.*

*Proof. *The Lyapunov function is constructed as follows:Taking the derivative of (16) can obtain the following:Substituting (17) into (27) can obtain the following:The derivative of (23) can obtain the following:Substituting (25) into (29) can obtain the following:Taking the derivative of (18) can obtain the following:Substituting fd28(28) into fd31(31) can obtain the following:Taking the derivative of (17) can obtain the following:Substituting fd6(6) into fd33(33) can obtain the following:Substituting fd34(34) into fd32(32) can obtain the following:Substituting fd19(19) into fd35(35) can obtain the following:Substituting (24) into (36) can obtain the following:The derivative of (26) can obtain the following:Substituting (28), (30) and (37) into (38) can obtain the following:Substituting (18) into (39) can obtain the following:When the conditions are established:We have the following:Based on the Lyapunov stability theory, the tracking error converges to zero and the system is asymptotically stable.

#### 4. Simulation Studies

##### 4.1. Example Introduction and Parameter Configuration

In order to verify the control effect of the adaptive backstepping sliding mode control algorithm on the ship, a supply ship [30] in the literature is used. The length of the ship is 76.2 meters and the weight is 6000 tons. The relevant parameters of the ship are as follows: *m*_{11} = 1.1274, *m*_{22} = 1.8902, *m*_{23} = −0.0744, *m*_{32} = −0.0744, *m*_{33} = 0.1278, *d*_{11} = 0.0358, *d*_{22} = 0.1183, *d*_{23} = −0.0124, *d*_{32} = −0.0041, *d*_{33} = 0.0308. The initial position is [−2 m, 2 m, rad]. The initial speed is [0 m/s, 0 m/s, 0.07 rad/s]. The desired position is [0 m, 0 m, 0 rad]. The desired speed is [0 m/s, 0 m/s, 0 rad/s].

The experiment was conducted in Intel(R) Core(TM) i7-3612QE CPU @ 2.10 GHz 2.10 GHz, 16.0 GB memory, and 64 bit OS.

The RBF neural network is composed of three layers, that is the input layer, the hidden layer, and the output layer. There are six nodes in the input layer, that is . There are seven nodes in the hidden layer, and the Gauss function is used as the radial basis function. There are one node in the output layer, that is , the approximation of by RBF neural network. The initial weight of the RBF neural network is zero. The parameters of the radial basis function are set as follows:

##### 4.2. Results without Disturbance

The initial forward position is −2 m, the initial sway position is 2 m, the initial yaw angle is −1.5 rad, the initial forward velocity is 0 m/s, the initial yaw velocity is 0 m/s, and the initial yaw rate is −1.5 rad/s. The desired forward position is set to 0 M. The desired sway position is 0 M. The expected yaw angle is 0 rad. The expected forward speed is 0 m/s. The desired yaw velocity is set to 0 m/s. The expected yaw rate is 0 rad/s.

Figure 4 shows the position response curve of the ship. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 5 shows the ship speed response curves. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 6 shows the shift angle and heading error curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents the shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 7 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

**(c)**

**(d)**

Figures 4–7 shows that the adaptive backstepping sliding mode control with a neural estimator can make the ship reach the desired position and attitude.

##### 4.3. Results at Different Levels of Sea Conditions

###### 4.3.1. At the Third Level of Sea Conditions

The control algorithm is performed at the third level of sea conditions, and other conditions are the same as those in Section 4.2. Figure 8 shows the position response at the third level of sea conditions. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 9 shows the ship speed response curve at the third level of sea condition. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 10 shows the shift angle and heading error curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents the shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 11 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

###### 4.3.2. At the Fifth Level of Sea Conditions

The control algorithm is performed at the fifth level of sea conditions, and other conditions are the same as those in Section 4.2. Figure 12 shows the position response at the fifth level of sea conditions. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 13 shows the ship speed response curve at the fifth level of sea condition. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 14 shows the shift angle and heading error curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 15 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

Figures 8–15 show that the designed RBF neural network observer can track both the mild level 3 sea state and the bad level 5 sea state, although the wave disturbance has relatively fast time-varying disturbance. The algorithm has good tracking performance and can realize the accurate estimation of wave disturbance, especially in bad sea conditions.

##### 4.4. Results considering Ship-Bank Interaction Effect

The Ship-bank interaction effect is considered, and other conditions are the same as those in Section 4.2. Figure 16 shows the position response with the ship-bank interaction effect. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 17 shows the ship speed response curve with ship-bank interaction. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 18 shows the shift angle and heading error curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents the shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 19 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

Figures 16–19 show that the adaptive backstepping sliding mode control with a neural estimator can make the ship reach the desired position and attitude under disturbance.

##### 4.5. Results with Different Parameters of Ship

Different parameters of a ship are also tested, and other conditions are the same as those in Section 4.4. A mariner class vessel [30] is used. The length of the ship is 160.93 meters. The relevant parameters of the ship are as follows: *m*_{11} = 0.0084, *m*_{22} = 0.0155, *m*_{23} = −0.00009, *m*_{32} = −0.00023, *m*_{33} = 0.00083, *d*_{11} = 0.0018, *d*_{22} = 0.0116, *d*_{23} = 0.0050, *d*_{32} = 0.0026, *d*_{33} = 0.0017.

Figure 20 shows the position response of a mariner class vessel. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 21 shows the ship speed response curve of a mariner class vessel. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 22 shows the shift angle and heading error curve of ship control of a mariner class vessel. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents the shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 23 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

Figures 20–23 show that the adaptive backstepping sliding mode control with neural estimator can deal with ships of different parameters considering drift angle and ship-bank interaction.

##### 4.6. Results with Different Initial Conditions

Different initial conditions are also tested, and other conditions are the same as those in Section 4.4. The initial position is [−50 m, 50 m, rad]. The initial speed is [0 m/s, 0 m/s, 0.07 rad/s]. The desired position is [0 m, 0 m, 0 rad]. The desired speed is [0 m/s, 0 m/s, 0 rad/s]. Figure 24 shows the position response with different initial conditions. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure shows the surge position with unit of m. The vertical axis in the middle subfigure shows the sway position with unit of m. The vertical axis in the lower subfigure shows the yaw angle with unit of rad.

**(a)**

**(b)**

**(c)**

Figure 25 shows the ship speed response curve with different initial conditions. The horizontal axis represents the time in seconds. The vertical axis in the middle subfigure shows the sway speed with unit of in m/s. The vertical axis in the lower subfigure shows the yaw angle speed with unit of in rad/s.

**(a)**

**(b)**

**(c)**

Figure 26 shows the shift angle and heading error curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents shift angle in rad. The horizontal axis in the lower subfigure represents the heading error in rad.

**(a)**

**(b)**

Figure 27 shows the input curve of ship control. The horizontal axis represents the time in seconds. The vertical axis in the upper subfigure represents in N. The horizontal axis in the lower subfigure represents in N·m.

**(a)**

**(b)**

Figures 24–27 show that the adaptive backstepping sliding mode control with neural estimator can deal with ships with different initial conditions considering drift angle and ship-bank interaction.

##### 4.7. Performance Comparison

In order to verify the effectiveness of the algorithm, the control effects of different algorithms are compared, including basic sliding mode control (SMC), backstepping sliding mode control (BPSMC), and adaptive neural backstepping sliding mode control (ANBPSMC). The remaining parameters remain unchanged as in Section 4.4. Figure 28 shows the surge response of different algorithms.

Figure 29 shows the sway response of different algorithms.

Figure 30 shows the yaw response of different algorithms.

Figure 31 shows the surge speed response of different algorithms.

Figure 32 shows the sway speed response of different algorithms.

Figure 33 shows the yaw angle speed response of different algorithms.

Figure 34 shows the input curve of different algorithms.

Figure 35 shows the input curve of different algorithms.

Figures 28–35 show that, compared with the basic sliding mode control algorithm, the adaptive backstepping sliding mode control with neural estimator has smaller overshoot, shorter system regulation time, smaller heading angle error, and smaller control torque.

#### 5. Conclusion

This paper presents an adaptive backstepping sliding mode control algorithm with a neural estimator for underactuated ships considering both ship-bank interaction effect and shift angle. Based on the feature that the RBF neural network can approach any function, the unknown parameters of the ship model and environmental disturbance are estimated. Based on the Lyapunov stability theory, the tracking error will converge to zero and the system is asymptotically stable. The design of the switching function makes the system robust to uncertainties and external disturbances and avoids chattering. The results show that compared with the basic sliding mode control algorithm and backstepping sliding mode control, the neural estimator adaptive backstepping sliding mode control has less overshoot, shorter system regulation time, less heading error, and less control torque of the actuator. The technical contributions of the control method are summarized as follows:(1)The Ship-bank interaction effect is considered in underactuated ship motion control, especially in berthing, crossing bridge, and near-shore navigation.(2)The time-varying shift angle is estimated by a radial basis function (RBF) neural network with weight parameter adaptive law in an underactuated ship heading control.(3)An adaptive backstepping sliding mode control with a neural estimator is designed. Based on the Lyapunov stability theory, the tracking error converges to zero and the system is asymptotically stable.

The next step is to improve the control algorithm to improve the control accuracy and robustness of the underactuated ship motion control.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The author declares no financial and personal relationships with other people or organizations that can inappropriately influence this work. There is no professional or other personal interest of any nature or kind in any product, service, and company that could be construed as influencing the position presented in the manuscript.

#### Acknowledgments

The work was supported by the National Natural Science Foundation of China (51879119), Natural Science Foundation of Fujian Province (2018J05085), and the high level research and cultivation fund of transportation engineering discipline in Jimei University (202003).

#### References

- Z. Yu, X. Bao, and K. Nonami, “Course keeping control of an autonomous boat using low cost sensors,”
*Journal of System Design and Dynamics*, vol. 2, no. 1, pp. 389–400, 2008. View at: Publisher Site | Google Scholar - Z. Liu and R. Chu, “Robust adaptive heading control for a surface vessel with drift angles,”
*Ocean Engineering*, vol. 205, Article ID 107310, 2020. View at: Publisher Site | Google Scholar - X. Y. Lu, Z. Q. Liu, and Z. Z. Chu, “Robust adaptive heading control for underactuated ships with sideslip angle amendment,”
*Journal of Shanghai Maritime University*, vol. 41, no. 1, pp. 15–19, 2020. View at: Google Scholar - S. Zhuo,
*Path following Control of Underactuated Unmanned Vehicles with Time-Varying*, Dalian Maritime University, Dalian, China, 2019. - E. Lataire and M. Vantorre, “Ship-bank interaction induced by irregular bank geometries,” in
*Proceedings of the 27th Symposium on Naval Hydrodynamics*, Seoul, Korea, October 2008. View at: Google Scholar - Y. Chu, J. Fei, and S. Hou, “Adaptive neural backstepping PID global sliding mode fuzzy control of MEMS gyroscope,”
*IEEE Access*, vol. 7, pp. 37918–37926, 2019. View at: Publisher Site | Google Scholar - R. Wang, K. Miao, J. Sun, J. Li, and D. Chen, “Intelligent control algorithm for USV with input saturation based on RBF network compensation,”
*International Journal of Reasoning-Based Intelligent Systems*, vol. 11, no. 3, pp. 235–241, 2019. View at: Publisher Site | Google Scholar - C. Liu, Z. J. Zou, and X. G. Wang, “Path following and stabilization of underactuated surface ships based on hierarchical sliding mode,” in
*Proceedings of the 32th Chinese Control Conference*, pp. 3124–3128, Xi’an, China, July 2013. View at: Google Scholar - F. Li, J. Hu, J. Wang, and T. Wang, “Adaptive backstepping sliding mode control for a class of uncertain nonlinear systems with input constraints,”
*Xi Tong Gong Cheng Yu Dian Zi Ji Shu/Systems Engineering and Electronics*, vol. 39, no. 8, pp. 1823–1833, 2017. View at: Publisher Site | Google Scholar - N. Chen, F. Song, G. Li, X. Sun, and C. Ai, “An adaptive sliding mode backstepping control for the mobile manipulator with nonholonomic constraints,”
*Communications in Nonlinear Science and Numerical Simulation*, vol. 18, no. 10, pp. 2885–2899, 2013. View at: Publisher Site | Google Scholar - R. Wang,
*Adaptive Sliding Mode Control for Trajectory Tracking of Underactuated Ship*, Dalian Maritime University, Dalian, China, 2018. - W. J. Meng, C. Guo, and Y. Yu, “Sliding-mode robust tracking control for an underactuated ship with nonzero off-diagonal terms,” in
*Proceedings of the 36th Chinese Control Conference*, pp. 3112–3117, Dalian, China, July 2017. View at: Google Scholar - R. Wang, K. Miao, Y. Zhao, H. Deng, J. Sun, and J. Du, “Robust sliding mode control of ship based on neural network under uncertain conditions,”
*Advances in Intelligent Systems and Computing*, College of Navigation, Jiangsu Maritime Institute, Nanjing, China, 2020. View at: Google Scholar - Y. Wen and X. Ren, “Neural observer-based adaptive compensation control for nonlinear time-varying delays systems with input constraints,”
*Expert Systems with Applications*, vol. 39, no. 2, pp. 1944–1955, 2012. View at: Publisher Site | Google Scholar - H. Sun, L. Hou, G. Zong, and X. Yu, “Adaptive decentralized neural network tracking control for uncertain interconnected nonlinear systems with input quantization and time delay,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 31, no. 4, pp. 1401–1409, 2020. View at: Publisher Site | Google Scholar - C. Cheng, Y. Zhang, and S. Liu, “Neural observer-based adaptive prescribed performance control for uncertain nonlinear systems with input saturation,”
*Neurocomputing*, vol. 370, pp. 94–103, 2019. View at: Publisher Site | Google Scholar - A. Gajate, R. E. Haber, P. I. Vega, and J. R. Alique, “A transductive neuro-fuzzy controller: application to a drilling process,”
*IEEE Transactions on Neural Networks*, vol. 21, no. 7, pp. 1158–1167, 2010. View at: Publisher Site | Google Scholar - A. G. Martin and R. E. H. Guerra, “Internal model control based on a neurofuzzy system for network applications. a case study on the high-performance drilling process,”
*IEEE Transactions on Automation Science and Engineering*, vol. 6, no. 2, pp. 367–372, 2009. View at: Publisher Site | Google Scholar - R. Kelly, R. Haber, R. E. Haber-Guerra, and F. Reyes, “Lyapunov stable control of robot manipulators: a fuzzy self-tuning procedure,”
*Intelligent Automation & Soft Computing*, vol. 5, no. 4, pp. 313–326, 1999. View at: Publisher Site | Google Scholar - M. Ramírez, R. Haber, V. Peña, and I. Rodríguez, “Fuzzy control of a multiple hearth furnace,”
*Computers in Industry*, vol. 54, no. 1, pp. 105–113, 2004. View at: Publisher Site | Google Scholar - R. H. Guerra, R. Quiza, A. Villalonga, J. Arenas, and F. Castano, “Digital twin-based optimization for ultraprecision motion systems with backlash and friction,”
*IEEE Access*, vol. 7, pp. 93462–93472, 2019. View at: Publisher Site | Google Scholar - X. Guo, Z. Liang, and C. Li, “Finite time tracking control of mobile robot based on non-singular fast terminal sliding mode,”
*Systems Science & Control Engineering*, vol. 6, no. 1, pp. 492–500, 2018. View at: Publisher Site | Google Scholar - T. Elmokadem, M. Zribi, and K. Youcef-Toumi, “Control for dynamic positioning and way-point tracking of underactuated autonomous underwater vehicles using sliding mode control,”
*Journal of Intelligent & Robotic Systems*, vol. 4, pp. 1–20, 2018. View at: Google Scholar - Z. Sun, G. Zhang, B. Yi, and W. Zhang, “Practical proportional integral sliding mode control for underactuated surface ships in the fields of marine practice,”
*Ocean Engineering*, vol. 142, pp. 217–223, 2017. View at: Publisher Site | Google Scholar - Y. L. Wang,
*Research of Nonlinear Sliding Mode Control for Underactuated Surface Vessel Trajectory Tracking*, Dalian Maritime University, Dalian, China, 2015. - C. S. Dai,
*Research on Adaptive Iterative Sliding Mode Control for Underactuated Ship Motion*, Dalian Maritime University, Dalian, China, 2017. - S. Jiang-hua and He Zhang, “Neural network sliding mode path following control based on the DVS algorithm of underactuated ships,” in
*Proceedings of the 31th Chinese Control and Decision Conference (2019 CCDC)*, pp. 2166–2171, Chongqing, China, May 2019. View at: Google Scholar - T. Y. Zou, Z. P. Shen, and C. S. Dai, “Adaptive iterative sliding mode berthing control for underactuated ship based on chaotic particle swarm,” in
*Proceedings of the 37th Chinese Control Conference*, pp. 2881–2886, Wuhan, China, July 2018. View at: Google Scholar - S. J. Gao, “Ship-bank interaction effect and ship maneuvering security,”
*Tianjin Navigation*, no. 2, pp. 24–27, 2019. View at: Google Scholar - T. I. Fossen, S. I. Sagatun, and A. J. Sørensen, “Identification of dynamically positioned ships,”
*Control Engineering Practice*, vol. 4, no. 3, pp. 369–376, 1996. View at: Publisher Site | Google Scholar

#### Copyright

Copyright © 2020 Xue Han. 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.