- Original Article
- Open Access

# Adaptive Backstepping Terminal Sliding Mode Control Method Based on Recurrent Neural Networks for Autonomous Underwater Vehicle

- Chao Yang
^{1}Email authorView ORCID ID profile, - Feng Yao
^{1}and - Ming-Jun Zhang
^{1}

**31**:110

https://doi.org/10.1186/s10033-018-0307-5

© The Author(s) 2018

**Received:**2 September 2017**Accepted:**7 December 2018**Published:**26 December 2018

## Abstract

The trajectory tracking control problem is addressed for autonomous underwater vehicle (AUV) in marine environment, with presence of the influence of the uncertain factors including ocean current disturbance, dynamic modeling uncertainty, and thrust model errors. To improve the trajectory tracking accuracy of AUV, an adaptive backstepping terminal sliding mode control based on recurrent neural networks (RNN) is proposed. Firstly, considering the inaccurate of thrust model of thruster, a Taylor’s polynomial is used to obtain the thrust model errors. And then, the dynamic modeling uncertainty and thrust model errors are combined into the system model uncertainty (SMU) of AUV; through the RNN, the SMU and ocean current disturbance are classified, approximated online. Finally, the weights of RNN and other control parameters are adjusted online based on the backstepping terminal sliding mode controller. In addition, a chattering-reduction method is proposed based on sigmoid function. In chattering-reduction method, the sigmoid function is used to realize the continuity of the sliding mode switching function, and the sliding mode switching gain is adjusted online based on the exponential form of the sliding mode function. Based on the Lyapunov theory and Barbalat’s lemma, it is theoretically proved that the AUV trajectory tracking error can quickly converge to zero in the finite time. This research proposes a trajectory tracking control method of AUV, which can effectively achieve high-precision trajectory tracking control of AUV under the influence of the uncertain factors. The feasibility and effectiveness of the proposed method is demonstrated with trajectory tracking simulations and pool-experiments of AUV.

## Keywords

- Autonomous underwater vehicle (AUV)
- Trajectory tracking
- Neural networks
- Backstepping method
- Terminal sliding mode
- Adaptive control

## 1 Introduction

Autonomous underwater vehicle (AUV) is widely used to accomplish the assigned tasks in complex marine environment, and also the trajectory tracking control of AUV is one of the important contents of AUV tasks [1]. In complex marine environment, ocean current disturbance [2], dynamic modeling uncertainty (since the hydrodynamic parameters are difficult to measure accurately [3]) and other factors can directly affect the trajectory tracking control accuracy of AUV. Therefore, it has great research significance and practical value to develop the trajectory tracking control method of AUV in marine environment.

Generally, aiming at the problem of AUV trajectory tracking caused by the uncertain factors of ocean current disturbance and dynamic modeling uncertainty, some adaptive control algorithms for trajectory tracking of AUV have been proposed, such as fuzzy adaptive control [4, 5], neural network adaptive control [6–9], which overcome the relevant trajectory tracking control problems to some certain extent. Among them, in Refs. [4, 5], the fuzzy control is used to estimate the uncertain factors, but the acquisition of fuzzy rules depends on the knowledge of the designers. Ref. [6] provides a neural network direct adaptive control method, and this method is applied to the control of AUV with bounded external disturbances and bounded neural network approximation errors, and verified by dynamic positioning and single degree of freedom (DOF) trajectory tracking. In Ref. [8], the ocean current disturbances and AUV dynamic modeling uncertainty are considered as uncertainties, the above two uncertainties are combined; then the radial basis function (RBF) neural network is used to approximate the uncertainties online, and the adaptive sliding mode control is adopted to control the AUV. However, in Refs. [6–9], the forward neural network (such as RBF or BP neural network) is difficult to reflect the time series influence of system input and output variables. Therefore, when the target trajectory of AUV has an abrupt change, the neural network weights may take a long time to convergence, leading to poor transition characteristics in trajectory mutation process, and may result in the overshoot of trajectory tracking.

In the actual underwater operations, the motion control of each DOF of AUV is controlled by the control voltage signals, as the control input of thrusters. Due to the complex nonlinear mapping relation between the control voltage, thrust and the velocity of AUV, it is difficult to get the accurate thruster modeling by the typical thrust model identification method [10, 11], it means that there are thrust model errors in thruster model. In the practical control process of AUV, ignoring thrust model errors will lead to the decline of trajectory tracking control accuracy. Based on the above analysis, the thrust model errors factors will be added into the AUV control to improve the trajectory tracking accuracy of AUV.

For the above considerations, in this paper, under the influence of uncertain factors including ocean current disturbance, dynamic modeling uncertainty, and thrust model errors, an adaptive backstepping terminal sliding mode control method based on RNN is proposed for trajectory tracking of AUV. The basic idea of the proposed method is given as follow. Firstly, the thrust model errors are added to the uncertain factors, compared with the methods in Refs. [6, 8, 12, 13] which do not take the thrust model errors into account. And then, due to better transition characteristic and nonlinear identification ability of RNN [14, 15], the SMU and ocean current disturbance (two types of uncertain factors) are classified, approximated online; and the outputs of RNN are used in sliding mode controller. Finally, through the adaptive backstepping terminal controller, the weights of RNN and the control parameters are adjusted online.

Based on the Lyapunov theory and Barbalat’s lemma, it is demonstrated that the proposed method can ensure that the tracking error converges to zero in finite time. The trajectory tracking method of AUV combined with neural network and sliding mode control is a typical and commonly used method, as shown in Ref. [8]. Then, based on simulations and pool-experiments, compared with the method in Ref. [8], the feasibility and effectiveness of the proposed method are verified in this paper.

In addition, due to the neural network has approximation errors, the authors and the previous researchers [16, 17] have used neural network and sliding mode control mode to ensure the asymptotic stability of the closed-loop system, but it will introduce the sliding mode chattering problem in AUV control. The chattering problem will lead to the high frequency, high amplitude beating of controller output and affected the trajectory tracking accuracy. Aiming at the chattering problem, a chattering-reduction method is proposed by using sigmoid function instead of discontinuous sliding mode switching term in sliding control. And in the proposed method, the sliding mode switching gain is adjusted online based on the exponential form of sliding mode function. Compared with boundary layer method [18], the simulations are carried out to verify the effectiveness of the proposed method.

This paper is organized as follows. In Section 2, under the influence of the uncertain factors, an adaptive back-stepping terminal sliding mode control based on RNN is proposed. Section 3, the stability of the proposed method is analyzed based on Lyapunov theory and Barbalat’s lemma. The chattering-reduction method of AUV control variable is presented and analyzed in Section 4. In Section 5, the simulations and pool-experiments of AUV are presented. Finally, conclusions are drawn in Section 6.

## 2 Control Method Design of AUV

### 2.1 Basic Ideas of the Method and Problem Statement

- (1)
The influence of thrust model errors factors is considered in this method, the thrust model errors are obtained by the Taylor expansion of thruster model. Due to the same nature of thrust model errors and dynamic modeling uncertainty, these two items are combined as the system model uncertainty (in short, SMU) of AUV.

- (2)
In order to avoid mutual interference of the uncertain factors of SMU and ocean current disturbance, two groups of separate RNN are used to approximate the uncertain factors online, and the RNN outputs are used in the sliding mode controller.

- (3)
Based on backstepping sliding mode control has a good robustness [13] and the terminal sliding mode can be converged in finite time [19], the backstepping terminal sliding mode is proposed to reduce the convergence time and improve the trajectory tracking accuracy.

To sum up, the control objectives of this paper is to design an adaptive backstepping terminal sliding mode controller *u* with the target trajectory [\(\eta_{d} ,\dot{\eta }_{d}\)]^{T} (*η*, *η*_{d} are the vectors of actual value and target value of AUV) and make the tracking error *z* uniformly ultimately bounded, and converges to zero in finite time, under the influence of SMU and ocean current disturbance.

In conclusion, the main process of the proposed method is divided into the following two parts. In Section 2.2, the dynamic model of AUV with thrust model errors is established, and then used two groups of RNN to approximate SMU and ocean current disturbance online. In Section 2.3, an adaptive backstepping terminal sliding mode controller is designed, including the design of the sliding mode surface, sliding mode control law and adaptive control law.

### 2.2 Dynamic Model of AUV

#### 2.2.1 Typical Dynamic Model in Ocean Environment

*η =*[

*x y z φ θ ψ*]

^{T}denotes the vector of location and orientation in the earth-fixed frame;

*v =*[

*u v w p q r*]

^{T}is the vector of velocity expressed in the body-fixed frame;

*M*is the inertial matrix, containing the added mass;

*C*

_{RB}is the rigid-body Coriolis and Centripetal matrix;

*C*

_{A}is the added mass Coriolis and Centripetal matrix;

*D*is hydrodynamic drag matrix;

*g*(

*η*) is the vector of combined gravitational and buoyancy forces;

*v*

_{r}is the AUV velocity relative to ocean currents (

*v*

_{r}

*= v*−

*v*

_{c},

*v*

_{c}is ocean currents velocity in body-fixed frame);

*τ*

_{d}is the external disturbance force and the torque vector;

*τ*(

*u*) is the thruster force and

*B*is the distribution matrix of thrusters;

*J*(

*η*) is the transformation matrix between body-fixed frame and earth-fixed frame. The coordinate system definition is shown in Figure 1.

*τ*(

*u*) is thruster model.

In Eqs. (4) and (5), it only considered the influence of the ocean current disturbance and the dynamic modeling uncertainty on trajectory tracking. However, in the actual underwater operations, due to the complex nonlinear mapping relation between the control voltage, the thruster thrust and the velocity of AUV, it is difficult to obtain the accurate thruster model *τ*(*u*), based on the typical identification method [10, 11]. And the thrust model errors can directly affect the accuracy of AUV dynamic model, affected the trajectory tracking accuracy of AUV.

Based on the analysis, the dynamic model of AUV with thrust model errors is proposed in Section 2.2.2.

#### 2.2.2 Dynamic Model of AUV with Thrust Model Errors

In this subsection, a mathematical Taylor method is proposed to expand the nonlinear thruster model *τ*(*u*), the specific idea is given as follow. Firstly, through the Taylor expansion of *τ*(*u*), it will get the thrust voltage linear mapping part and thrust model errors part. Then, the thrust voltage linear mapping part will be obtained by the adaptive control law (in Eq. 19); the thrust model errors combined with dynamic modeling uncertainty as the SMU are approximated online, based on RNN.

- (1)
Taylor Expansion of

*τ*(*u*)

*τ*(

*u*) is applied to the Taylor expansion at the control voltage \(u_{i}^{*}\). As shown in Eq. (6):

*i =*1, 2,…,

*n*is number of AUV thruster; \(\lambda_{i}\) is scale factor (unknown positive constant) between voltage and thrust.

*F*(

*η*) and

*G*(

*η*) are the SMU and ocean current disturbance, respectively:

*F*(

*η*) and

*G*(

*η*) cannot be obtained accurately in practice process, and the

*F*(

*η*) and

*G*(

*η*) are nonlinear unknown item; therefore, the authors will use neural network to approximate

*F*(

*η*),

*G*(

*η*) online.

- (2)
Online Approximation of RNN

In this paper, the RNN can be reflecting the time series influence through the recurrent layer, and it has a better transition characteristic [14, 15]. And also, in order to avoid mutual interference between *F*(*η*) and *G*(*η*), two groups of separate RNN is used for online approximation of *F*(*η*) and *G*(*η*) (these means the classification, online approximation), and the RNN outputs are used in sliding mode controller.

*η*(\(\eta = \left[ {\eta_{1} , \ldots ,\;\eta_{n} } \right]^{\text{T}}\)) is input layer vector,

*R*

_{1}(\(R_{1} = \left[ {R_{11} , \ldots ,\;R_{1m} } \right]^{\text{T}}\)) is recurrent layer output vector. The output of RNN can be expressed as:

*n*,

*m*are the numbers of input and recurrent layers, respectively;

*h*(

*VR*) is the output of hidden layer,

*R =*[

*η*,

*R*

_{1}]

^{T};

*W*is the network weight matrix between hidden layer and output layer.

*V*is the network weight matrix between input layer, recurrent layer and hidden layer.

*W*

_{F},

*V*

_{F},

*W*

_{G},

*V*

_{G}, to make the following equations, such as Eqs. (10a) and (10b), and the

*F*(

*η*) and

*G*(

*η*) are approximated online by two groups of separate RNN:

*ε*

_{F},

*ε*

_{G}are approximation errors of RNN, meet \(\left\| {\varepsilon_{F} } \right\| \le \bar{\varepsilon }_{F}\), \(\left\| {\varepsilon_{G} } \right\| \le \bar{\varepsilon }_{G}\), and \(\bar{\varepsilon }_{F}\) and \(\bar{\varepsilon }_{G}\) are positive constant.

### 2.3 Adaptive Sliding Mode Controller Design

- (1)
Backstepping Terminal Sliding Surface

*k*> 0 is positive constant, 1 <

*γ = p*/

*q*< 2; sliding mode surface \(s = \left[ {s_{1} ,s_{2} , \ldots ,\;s_{6} } \right]^{\text{T}}\).

*z*

_{1}and

*z*

_{2}can be rewritten as:

*c*

_{1}is positive constant;

*η*,

*η*

_{d}are the vectors of actual value and target value of AUV in the earth-fixed frame, respectively.

- (2)
Sliding Mode Control Laws and Adaptive Laws

Based on the Lyapunov stability theory and nonlinear sliding mode surface in Eq. (12), the main control laws are given as follows.

*k*

_{i}(

*i =*1,2,…,5) is positive constant, \(\hat{\lambda }\) is estimated value of scale factor

*λ*,

*h*is positive constant.

In order to design and verify the stability and finite time convergence of the backstepping terminal sliding mode control, we need to use the following lemma.

###
**Lemma 1**

*x*

_{i},

*i =*1,…,

*n*, and 0 <

*b*< 1, the following inequality holds

###
**Lemma 2**

*V*(

*t*) satisfies the following differential inequality:

*τ*> 0, 0 <

*θ*< 1 are constant. For any

*t*

_{0},

*V*(

*t*) satisfy the following inequality:

*t*

_{1}is described as follows:

*V*(

*t*

_{0}) is the initial value and

*t*

_{0}is the initial time.

## 3 Stability Analysis

The positive definite matrix Q which is constructed in this paper is shown by the following Eq. (22):

_{3 × 3}and O

_{3 × 3}are third order identity matrix and third order null matrix, respectively. Then, Eq. (21) can be expressed by the positive definite matrix Q as follows:

*F*(

*η*) and

*G*(

*η*) are the online approximation term of RNN, the approximation error is given as follows:

*w*

_{1},

*w*

_{2}after Taylor expansion are shown in Eq. (28):

*w*

_{1},

*w*

_{2}in Eq. (28) would be bounded. Assuming that there exists an unknown positive constant

*λ*(the scale factor in Eq. (6) which is adjusted online by the adaptive controller) to ensure

*w*

_{1},

*w*

_{2}to satisfy the following equation:

Through Eq. (31), it can be proving that \(\dot{V} \le 0\).

According to the Lyapunov theory and Eq. (31), the tracking error *z*_{1}, sliding mode surface *s*, neural network weight \(\tilde{W}_{F} ,\tilde{W}_{G} ,\tilde{V}_{F} ,\tilde{V}_{G}\) and scale factor \(\tilde{\lambda }\) are bounded. Due to the boundedness of \(\dot{\eta }\) and \(\dot{\eta }_{d}\), the parameters of *α* and *z*_{2} are also bounded.

Next, the authors will prove that the system states in Eq. (12) can reach nonsingular backstepping terminal sliding surface *s* = 0 within a finite time.

*t*≥ 0. Similar to the Ref. [20], the following Lyapunov function is used to analyze whether the system states can converge to zero in finite time:

*r*

_{0}is a known positive constant.

*w*

_{1},

*w*

_{2}are bounded. Therefore, \(\tilde{W}_{F} h\left( {\hat{V}_{F} R_{F} } \right)\), \(\tilde{W}_{G} h\left( {\hat{V}_{G} R_{G} } \right),\;\;\hat{W}_{F} h^{\prime}\left( {\hat{V}_{F} R_{F} } \right)\tilde{V}_{F} R,\;\;\hat{W}_{G} h^{\prime}\left( {\hat{V}_{G} R_{G} } \right)\tilde{V}_{G} R_{G}\)are bounded. Then, based on Eq. (27), the approximation error of system uncertainty item \(\left( {F\left( \eta \right) - \hat{F}\left( \eta \right)} \right) + \left( {G\left( \eta \right) - \hat{G}\left( \eta \right)} \right)\) is bounded. Hence, there exists a positive definite matrix \(N = {\text{diag}}(N_{1} ,N_{2} , \ldots ,N_{n} )\) for \(N_{n} \ge 0\) satisfies the following equations:

Then, based on Barbalat’s lemma (Lemma 2), AUV tracking error system can converge to zero (it also means sliding surface *s = *0) in a finite time under the control of the proposed method. The specific convergence time is:

Proof is completed.

## 4 Chattering-Reduction Method

The sliding mode control can drive system state variables to equilibrium by a discontinuous feedback control law [26]. Aiming at the chattering problem caused by the discontinuous sliding mode switching term, some typical chattering-reduction methods have been proposed, such as adaptive learning method [27, 28], boundary layer method [18, 29], and so on. Among them, the adaptive learning method needs to simultaneously online learning the model uncertainties and sliding mode switching gain, which could affect the convergence speed of neural network online learning, so it is not suitable for the AUV control system in this paper. The boundary layer method replaces the discontinuous switching terms in the traditional sliding mode control by the saturation function to achieve the continuity of sliding mode switching, and then reduces the chattering problem which caused by the discontinuous switching of the sliding mode. Due to the method is simple and effective; the boundary layer method is one of the commonly used methods to reduce the chattering problem, as shown in Refs. [13, 18, 27, 29]. However, in the experimental study of the boundary layer method, it is found that the method can reduce the chattering amplitude of control variable to a certain extent, but the reduction effect of chattering frequency is not effective.

To reduce the chattering phenomenon, a chattering-reduction method of control variables is proposed in this paper. In the method, the discontinuous switching term of sliding mode control is replaced by the combination of sigmoid function and sliding surface *s*, to realize the continuity of sliding mode switching function. And the sliding mode switch gain is dynamically adjusted online through the exponential function of sliding surface *s*.

- (1)
Continuous function of chattering-reduction method

*s*are incorporated as follows:

*ρ*< 1, \({\text{sig}}(s)\) is the continuous sigmoid function.

- (2)
Sliding mode switch gain

*K*_{2}

*K*

_{2}should have a larger value, so as to ensure the quickly convergence. While AUV is close to the target, the

*K*

_{2}should be decreased to reduce the chattering of the control system. For this purpose, the sliding mode switch gain

*K*

_{2}is shown as follows:

*ε*is a positive definite diagonal matrix;

*d*

_{1}is positive constant.

Based on the above analysis, under the influence of the uncertain factors, an adaptive backstepping terminal sliding mode control based on RNN is proposed, and under the controller of the proposed method (Eq. (41), Eq. (16), Eq. (17)), it can be guaranteed that the tracking error can achieve finite-time stability.

## 5 Simulations and Pool-Experiments

In order to validate the feasibility and effectiveness of the proposed adaptive backstepping sliding mode control method based on RNN and the proposed chattering-reduction method, serial simulations of ROPOS AUV and pool-experiments of UVIC-I AUV are carried out.

### 5.1 Simulation Verification

Under the influence of the ocean current disturbance, dynamic modeling uncertainty, and thrust model errors, the tracking performance of the proposed method is verified by comparison with the method in Ref. [8]. And compared with the boundary layer method in Ref. [18], the effectiveness of the proposed chattering-reduction method is verified.

Hydrodynamic parameters

Surge | Lateral | Heave | Roll | Pitch | Yaw | |
---|---|---|---|---|---|---|

Linear drag (N·s/m) | 725 | 1240 | 825 | 3000 | 3000 | 1840 |

Quad. drag (N·s | 1000 | 525 | 400 | 100 | 100 | 72 |

Added mass (kg) | 4380 | 9518 | 4268 | 5000 | 5000 | 5000 |

The parameters in the proposed controller are given as follows: *k = *0.1; *γ = *1.2; *c*_{1}* = *0.2; *d*_{1}* = *1; *k*_{1}* = *0.5, *k*_{2}* = *0.5, *k*_{3}* = *1, *k*_{4}* = *1, *k*_{5}* = *10; *h = *0.05, *ε = *diag(10, 10, 10, 10, 10, 10); *Γ*_{WF}* = Γ*_{WG}* = *diag(1, 1, 1, 1, 1, 1); *Γ*_{VF}* = Γ*_{VG}* = *diag(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1). The numbers of the input layer, recurrent layer, hidden layer and output layer of RNN are 6, 6, 12 and 6, respectively.

#### 5.1.1 Trajectory Tracking Simulation

- (1)
Tracking effect of the mutation target trajectory

The vertical DOF of AUV is easy to reflect the tracking effect of mutation target trajectory. In this section, the simulations will be conducted in 0.3 m/s ocean current environment and 0.5 m/s ocean current environment, respectively, and the 0.5 m/s is the maximum flow rate generated by the current-generating device in Section 5.2. In different ocean current environments, the target trajectories in vertical DOF are given as follows. During the experiments, the target trajectories are different, but the mutation amplitude of the trajectories is constant.

Simulation data in different ocean current environment

From Table 2, in the 0.3 m/s ocean current environment, compared with the Ref. [8], the evaluation index of AVTE, MSETE, OTE of proposed method are reduced by 29.06%, 7.05%, 65.72%, respectively. However, the AVTE, MSETE, OTE are reduced by 26.85%, 2.87%, 37.71%, respectively, in the 0.5 m/s ocean current environment. The simulation results show that the proposed method has a better transition characteristics and higher tracking accuracy.

In Table 2, in the 0.3 m/s and 0.5 m/s ocean current environment, compared with the Ref. [8], the ATTM of the proposed method is reduced by 48.84% and 42.86%, respectively. The result verified the quick convergence effect of the terminal sliding mode controller in the proposed method.

Further analysis, in different current environments, the simulation data of AVTE, MSETE, and OTE are roughly the same under the control of proposed method. However, the ATTM of 0.5 m/s ocean current environment is 5.6 s; compared with the ATTM (4.4 s) of 0.3 m/s, the data of 0.5 m/s increased by 21.43%.

- (2)
Tracking effect for continuous target trajectory

Simulation data in 0.3 m/s ocean current environment

AVTE (m, m, m, rad, rad, rad) | MSETE (m, m, m, rad, rad, rad) | |
---|---|---|

The proposed method | [0.0090, 0.0059, 0.0078, 0.0026, 0.0025, 0.0069] | [0.0402, 0.0366, 0.0438, 0.0167, 0.0166, 0.0397] |

Ref. [8] | [0.0125, 0.0125, 0.0094, 0.0061, 0.0061, 0.0106] | [0.0496, 0.0491, 0.0430, 0.0242, 0.0247, 0.0482] |

Reduced by | [28.02%, 52.47%, 16.58%, 57.38%, 58.52%, 34.88%] | [18.89%, 25.60%, − 1.77%, 30.78%, 32.77%, 17.56%] |

From Table 3, compared with the Ref. [8], the AVTE is reduced [28.02%, 52.47%, 16.58%, 57.38%, 58.52%, 34.88%], respectively, in the direction of six DOF (X, Y, Z, Roll, Pitch, Yaw). And the MSETE is reduced [18.89%, 25.60%, − 1.77%, 30.78%, 32.77%, 17.56%], respectively. The simulation results show the effectiveness of the proposed method in improving the tracking accuracy.

Simulation data in 0.5 m/s ocean current environment

AVTE (m, m, m, rad, rad, rad) | MSETE (m, m, m, rad, rad, rad) | |
---|---|---|

The proposed method | [0.0117, 0.0076, 0.0082, 0.0031, 0.0029, 0.0071] | [0.0382, 0.0368, 0.0436, 0.0168, 0.0168, 0.0397] |

Ref. [8] | [0.0123, 0.0121, 0.0094, 0.0063, 0.0052, 0.0098] | [0.0498, 0.0469, 0.0428, 0.0179, 0.0184, 0.0449] |

Reduced by | [4.68%, 37.29%, 13.42%, 50.56%, 43.96%, 27.85%] | [23.33%, 21.55%, − 1.84%, 6.31%, 8.65%, 11.69%] |

From Table 4, the trajectory tracking accuracy of the proposed method has been improved in 0.5 m/s ocean current environment, the simulation shows the effective-ness of the proposed method. Compared with the simulation data of Table 3 and Table 4 under the control of the proposed method, the tracking accuracy is approximately the same in 0.5 m/s and 0.3 m/s ocean current environments.

In summary, based on the simulation experiments, the proposed method has a better tracking accuracy and the convergence time of the tracking error is shorter than the Ref. [9] method. The results demonstrate the feasibility and effectiveness of the proposed method. Within 0.5 m/s, the data shows that different ocean current environments have less influence on the tracking accuracy under the control of the proposed method, but it has a certain influence on the adjustment time in mutation trajectory.

#### 5.1.2 Contrast Simulation for Chattering-reduction Methods

In simulations, the mean square error of the control variables (MSECV), mean square error of the derivatives of control variables (MSEDCV) are used as the evaluation indexes of chattering amplitude and chattering frequency.

The chattering simulation experimental data

MSECV (V) | MSEDCV (V) | MSETE (m, m, m, rad, rad, rad) | |
---|---|---|---|

The proposed chattering-reduction method | [15.708, 16.424, 10.119, 11.139, 5.705, 2.682, 4.953, 2.184] | [1.047, 1.067, 1.194, 0.976, 0.998, 0.865, 0.871, 0.852] | [0.0489, 0.0404, 0.0436, 0.0178, 0.0175, 0.0403] |

Ref. [19] | [16.177, 16.049, 11.725, 11.845, 7.702, 6.171, 7.047, 5.248] | [2.782, 3.256, 3.847, 4.735, 5.248, 5.729, 3.001, 5.771] | [0.0503, 0.0431, 0.0490, 0.0174, 0.0179, 0.0436] |

Reduced by | [2.89%, − 2.34%, 13.69%, 5.95%, 25.92%, 56.54%, 29.71%, 58.38%] | [62.37%, 67.24%, 68.96%, 79.39%, 80.98%, 84.90%, 71.00%, 85.24%] | [2.59%, 6.13%, 10.99%, 2.31%, 2.05%, 7.38%] |

From Table 5, compared with the Ref. [18], the MSECV of thruster are reduced [2.89%, − 2.34%, 13.69%, 5.95%, 25.92%, 56.54%, 29.71%, 58.38%], respectively, based on the proposed method. The MSEDCV of thruster are reduced [62.37%, 67.24%, 68.96%, 79.39%, 80.98%, 84.90%, 71.00%, 85.24%], respectively. The simulation results verify the effectiveness of the proposed method in reducing the chattering phenomenon.

Meanwhile, compared with the Ref. [18], the MSETE of the proposed chattering-reduction method is reduced [2.59%, 6.13%, 10.99%, 2.31%, 2.05%, 7.38%], based on the proposed method. The simulation results show that the proposed method can effectively reduce the sliding mode chattering, and the trajectory tracking accuracy of AUV can be increased a little.

### 5.2 Pool-Experiments of AUV Prototype

Furthermore, in order to demonstrate the feasibility and effectiveness of the adaptive backstepping terminal sliding mode control method based on RNN in actual experiments, the trajectory tracking of pool-experiments are conducted with self-developed UVIC-I AUV experimental prototype. Compared with the method in Ref. [8], the pool-experiments are carried out to verify the effectiveness of the proposed method in improving the tracking accuracy.

- (1)
Tracking effect of the mutation target trajectory

Consistent with the simulation experiments, the trajectories tracking of pool-experiments were conducted in the ocean current environments of 0.3 m/s and 0.5 m/s. The desired trajectories are the same as the target trajectory in Section 5.1.1(1).

Experimental data in different ocean current environments

From Table 6, compared with Ref. [8], the AVTE, MSETE, OTE, ATTM of the proposed method are reduced by 28.82%, 18.49%, 71.98%, 30.28%, respectively, in 0.3 m/s environment. However, in 0.5 m/s environment, AVTE, MSETE, OTE, ATTM are reduced by 24.51%, 10.43%, 68.56%, 21.37%, respectively. The results show that the proposed method has a better transition characteristics, higher tracking accuracy and quick convergence effect.

Consistent with the trend of simulation experiments, the experimental data of AVTE, MSETE, and OTE are approximately the same under the control of the proposed method. However, compared with 0.3 m/s ocean current environment, the ATTM of 0.5 m/s is increased by 17.39 %. The pool experimental conclusion is the same with the simulation experiments.

- (2)
Tracking effect for continuous target trajectory

In the pool-experiments, the tracking experiments of continuous target trajectory of AUV are carried out to test the tracking effect of the proposed method. Furthermore, in order to simplify the AUV pool-experiments, the target trajectory is the continuous trajectory of “vertical + heading” DOF.

Experimental data in 0.3 m/s ocean current environment

AVTE (m, rad) | MSETE (m, rad) | |
---|---|---|

The proposed method | [0.0229, 0.0162] | [0.0256, 0.0209] |

Ref. [8] | [0.0311, 0.0256] | [0.0349, 0.0308] |

Reduced by | [26.37%, 36.72%] | [26.65%, 32.14%] |

From Table 7, compared with Ref. [8], in the direction of the vertical and heading, the AVTE and MSETE of the proposed method are reduced by [26.37%, 36.72%], [26.65%, 32.14%], respectively. The pool-experimental results show the effectiveness of the proposed method on continuous target trajectory tracking.

Experimental data in 0.5 m/s ocean current environment

AVTE (m, rad) | MSETE (m, rad) | |
---|---|---|

The proposed method | [0.0229, 0.0218] | [0.0280, 0.0251] |

Ref. [8] | [0.0386, 0.0366] | [0.0441, 0.0394] |

Reduced by | [40.61%, 40.53%] | [36.44%, 36.24%] |

From Table 8, compared with Ref. [8], the AVTE, MSETE of the proposed method were reduced by [40.61%, 40.53%] and [36.44%, 36.24%], respectively. And the experimental data shows the effectiveness of the proposed method. Compared with Table 7 and Table 8, under the control of the proposed method, the changes of AUV trajectory tracking accuracy is relatively small in the 0.5 m/s and 0.3 m/s environments.

In conclusion, based on the pool-experiments, the proposed method has a higher trajectory tracking accuracy for the trajectory tracking, and the tracking accuracy and convergence time are also better than the method in Ref. [9]. And the experimental data shows that the different ocean current environments have less influence on the tracking accuracy, but it has a certain influence on the adjustment time in mutation trajectory, the conclusion is consistent with the simulation experiments.

## 6 Conclusions

- (1)
In this paper, an adaptive backstepping terminal sliding mode control method based on RNN is proposed to solve the trajectory tracking problem of AUV under the influence of ocean current disturbance, dynamic modeling uncertainty, and thrust model errors. The SMU and ocean current disturbance are approximated online based on the RNN. And then through the backstepping terminal sliding mode controller, the neural network weight and control parameters are adjusted online. Based on Lyapunov theory and Barbalat’s lemma, it is proved theoretically that the trajectory tracking error of AUV can quickly converge to zero in finite time. Simulations and pool-experimental results demonstrated that the proposed method has a superior trajectory tracking control accuracy and a better convergence time of trajectory tracking error. Under the control of the proposed method, the different flow velocities of the ocean current environment have less impact on trajectory tracking accuracy.

- (2)
Moreover, in order to solve the chattering problem of sliding mode control, a chattering-reduction method based on the sigmoid function is proposed. And according to the compared simulation results with traditional boundary layer method, it is indicated that the proposed method can effectively reduce the chattering phenomenon, and the experimental results show the effectiveness of the proposed method.

## Declarations

### Authors’ Contributions

M-JZ was in charge of the whole trial; CY wrote the manuscript; CY and FY assisted with sampling and laboratory analyses. All authors read and approved the final manuscript.

### Authors’ Information

Chao Yang, born in 1988, is currently a PhD candidate at *College of Mechanical and Electrical Engineering, Harbin Engineering University, China.* He received his bachelor degree and master degree in 2011 and 2013, from *Harbin Engineering University*, *China*. His research interests include underwater manipulator, AUV and intelligent control of manipulator.

Feng Yao, born in 1985, is currently a lecturer at *Harbin Engineering University, China.* His research interests include AUV, ROV and intelligent control.

Ming-Jun Zhang, born in 1963, is currently a professor at *Harbin Engineering University, China.* His research interests include mechanical engineering, ocean engineering and intelligent control of underwater vehicle.

### Competing interests

The authors declare that they have no competing interests.

### Funding

Supported by Basic Research Program of Ministry of Industry and Information Technology of China (Grant No. B2420133003) and National Natural Science Foundation of China (Grant Nos. 51779060, 51679054).

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Y R Xu, P C Li. The development trend of underwater vehicle.
*Chinese Journal of Nature*, 2011, 33(3): 125-131. (in Chinese)Google Scholar - C Z Pan, X Z Lai, S X Yang, et al. A bioinspired neural dynamics-based approach to tracking control of autonomous surface vehicles subject to unknown ocean currents.
*Neural Computing & Applications*, 2015, 26(8): 1929-1938.View ArticleGoogle Scholar - O Hassanein, S G Anavatti, H Shim, T Ray. Model-based adaptive control system for autonomous underwater vehicles.
*Ocean Engineering*, 2016, 127: 58-69.View ArticleGoogle Scholar - P S Londhe, M Santhakumar, B M Patre, et al. Task space control of an autonomous underwater vehicle manipulator system by robust single-input fuzzy logic control scheme.
*IEEE Journal of Oceanic Engineering*, 2017, 42(1): 13-28.Google Scholar - B Xu, S R Pandian, N Sakagami, et al. Neuro-fuzzy control of underwater vehicle-manipulator systems.
*Journal of the Franklin Institute*, 2012, 349(3): 1125-1138.MathSciNetView ArticleGoogle Scholar - J C Yu, Q Li, A Q Zhang, et al. Neural network adaptive control for underwater vehicles.
*Control Theory & Applications*, 2008, 25(1): 9-13. (in Chinese)Google Scholar - A Bagheri, J J Moghaddam. Simulation and tracking control based on neural-network strategy and sliding-mode control for underwater remotely operated vehicle.
*Neurocomputing*, 2009, 72(7-9): 1934-1950.View ArticleGoogle Scholar - Y J Wang, M J Zhang, P A Wilson, et al. Adaptive neural network-based backstepping fault tolerant control for underwater vehicles with thruster fault.
*Ocean Engineering*, 2015, 110: 15-24.View ArticleGoogle Scholar - M J Zhang, Z Z Chu. Adaptive region tracking control for autonomous underwater vehicle.
*Journal of Mechanical Engineering*, 2014, 50(19): 50-57. (in Chinese)View ArticleGoogle Scholar - JPJ Avila, DC Donha, JC Adamowski. Experimental model identification of open-frame underwater vehicles.
*Ocean Engineering*, 2013, 60(2): 81-94.View ArticleGoogle Scholar - P Ridao, A Tiano, A El-Fakdi, et al. On the identification of nonlinear models of unmanned underwater vehicles.
*Control Engineering Practice*, 2004, 12(12): 1483-1499.View ArticleGoogle Scholar - A Bagheri, T Karimi, N Amanifard. Tracking performance control of a cable communicated underwater vehicle using adaptive neural network controllers.
*Applied Soft Computing*, 2010, 10(3): 908-918.View ArticleGoogle Scholar - M J Zhang, X Liu, B J Yin, et al. Adaptive terminal sliding mode based thruster fault tolerant control for underwater vehicle in time-varying ocean currents.
*Journal of the Franklin Institute*, 2015, 352(11): 4935-4961.MathSciNetView ArticleGoogle Scholar - M J Zhang, Z Z Chu. Adaptive sliding mode control based on local recurrent neural networks for underwater robot.
*Ocean Engineering*, 2012, 45(2): 56-62.View ArticleGoogle Scholar - Z Z Chu, D Q Zhu, G E Jan. Observer-based adaptive neural network control for a class of remotely operated vehicles.
*Ocean Engineering*, 2016, 127: 82-89.View ArticleGoogle Scholar - Q Khan, R Akmeliawati. Neuro-adaptive dynamic integral sliding mode control design with output differentiation observer for uncertain higher order MIMO nonlinear systems.
*Neurocomputing*, 2017, 226: 126-134.View ArticleGoogle Scholar - Z Z Chu, D Q Zhu, S X Yang, et al. Adaptive sliding mode control for depth trajectory tracking of remotely operated vehicle with thruster nonlinearity.
*Journal of Navigation*, 2017, 70: 149-164.View ArticleGoogle Scholar - Y Wang, L Gu, M Gao, et al. Multivariable output feedback adaptive terminal sliding mode control for underwater vehicles.
*Asian Journal of Control*, 2016, 18(1): 247-265.MathSciNetView ArticleGoogle Scholar - Y Feng, X Yu, Z Man. Non-singular terminal sliding mode control of rigid manipulators.
*Automatica*, 2002, 38(12): 2159-2167.MathSciNetView ArticleGoogle Scholar - M D Tran, H J Kang. Adaptive terminal sliding mode control of uncertain robotic manipulators based on local approximation of a dynamic system.
*Neurocomputing*, 2017, 228: 231-240.View ArticleGoogle Scholar - T Chatchanayuenyong, M Parnichkun. Neural network based-time optimal sliding mode control for an autonomous underwater robot.
*Mechatronics*, 2006, 16(8): 471-478.View ArticleGoogle Scholar - S Yu, X Yu, B Shirinzadeh, et al. Continuous finite-time control for robotic manipulators with terminal sliding mode.
*Automatica*, 2005, 41(11): 1957-1964.MathSciNetView ArticleGoogle Scholar - B Cong, X Liu, Z Chen. Backstepping based adaptive sliding mode control for spacecraft attitude maneuvers.
*Aerospace Science & Technology*, 2013, 30(1): 1-7.View ArticleGoogle Scholar - G H Hardy, J E Littlewood, G Plya. Inequalities. Cambridge: University Press, Cambridge.Google Scholar
- Y Tang. Terminal sliding mode control for rigid robots.
*Automatica*, 1998, 34(1): 51-56.MathSciNetView ArticleGoogle Scholar - V Nekoukar, A Erfanian. Adaptive fuzzy terminal sliding mode control for a class of MIMO uncertain nonlinear systems.
*Fuzzy Sets & Systems*, 2011, 179(1): 34-49.MathSciNetView ArticleGoogle Scholar - J Yu, M Chen, C S Jiang. Adaptive sliding mode control for nonlinear uncertain systems based on disturbance observer.
*Control Theory & Applications*, 2014, 31(8): 993-999. (in Chinese)MATHGoogle Scholar - W M Bessa, M S Dutra, E Kreuzer. Depth control of remotely operated underwater vehicles using an adaptive fuzzy sliding mode controller.
*Robotics & Autonomous Systems*, 2008, 56(8): 670-677.View ArticleGoogle Scholar - S Soylu, B J Buckham, R P Podhorodeski. A chattering-free sliding-mode controller for underwater vehicles with fault-tolerant infinity-norm thrust allocation.
*Ocean Engineering*, 2008, 35(16): 1647-1659.View ArticleGoogle Scholar - D Steinke.
*Design and simulation of a Kalman filter for ROV navigation*. Canada: University of Victoria, 2006.Google Scholar - T I Fossen.
*Handbook of marine craft hydrodynamics and motion control*. Wiley, New York, 2011.View ArticleGoogle Scholar - W X Liu, Y J Wang, X Liu, et al. Weak thruster fault detection for AUV based on stochastic resonance and wavelet reconstruction.
*Journal of Central South University*, 2016, 23(11): 2883-2895.View ArticleGoogle Scholar