Next Article in Journal
An Optimal Choice of Profile Shift Coefficients for Spur Gears
Previous Article in Journal
Design and Thermal Stability Analysis of Swing Micro-Mirror Structure for Gravitational Wave Observatory in Space
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Adaptive RBF-NMPC Architecture for Trajectory Tracking Control of Underwater Vehicles

1
Logistics Engineering College, Shanghai Maritime University, Shanghai 201306, China
2
College of Information Engineering, Shanghai Maritime University, Shanghai 201306, China
3
Department of System Science, University of Shanghai for Science and Technology, Shanghai 201306, China
*
Author to whom correspondence should be addressed.
Machines 2021, 9(5), 105; https://doi.org/10.3390/machines9050105
Submission received: 19 April 2021 / Revised: 15 May 2021 / Accepted: 17 May 2021 / Published: 20 May 2021
(This article belongs to the Section Vehicle Engineering)

Abstract

:
An adaptive control algorithm based on the RBF neural network (RBFNN) and nonlinear model predictive control (NMPC) is discussed for underwater vehicle trajectory tracking control. Firstly, in the off-line phase, the improved adaptive Levenberg–Marquardt-error surface compensation (IALM-ESC) algorithm is used to establish the RBFNN prediction model. In the real-time control phase, using the characteristic that the system output will change with the external environment interference, the network parameters are adjusted by using the error between the system output and the network prediction output to adapt to the complex and uncertain working environment. This provides an accurate and real-time prediction model for model predictive control (MPC). For optimization, an improved adaptive gray wolf optimization (AGWO) algorithm is proposed to obtain the trajectory tracking control law. Finally, the tracking control performance of the proposed algorithm is verified by simulation. The simulation results show that the proposed RBF-NMPC can not only achieve the same level of real-time performance as the linear model predictive control (LMPC) but also has a superior anti-interference ability. Compared with LMPC, the tracking performance of RBF-NMPC is improved by at least 43% and 25% in the case of no interference and interference, respectively.

1. Introduction

With the progress of intelligent control technology, the development of underwater vehicles has entered a new stage. Whether it is the exploration and exploitation of marine mineral resources, the investigation of marine topography, or military applications, it is inseparable from the participation of underwater vehicles [1]. Trajectory tracking is one of the key technologies in the field of underwater vehicles. It is the premise and guarantee for underwater vehicles to complete the specified tasks [2]. Therefore, the research of trajectory tracking control technology is particularly important.
At present, the main research methods of underwater vehicle trajectory tracking control are proportional-integral-derivative (PID) control, fuzzy control, backstepping control, sliding mode control, etc. In [3], a variable integral PID controller based on disturbance observer has been designed to realize the heading control of an underwater vehicle. In [4], good trajectory tracking results have been achieved for underactuated underwater vehicles using terminal sliding mode control. In [5], a bio-inspired backstepping control method and a three-dimensional trajectory tracking controller have been proposed for the deep-diving control. However, most of these methods do not consider the constraints of system state and input, which leads to the phenomenon of thrust saturation in actual control easily. On the contrary, model predictive control (MPC) has the ability to deal with various constraints and has great flexibility in describing control problems. These remarkable features caused the MPC algorithm to gradually become a hot research topic in trajectory tracking control [6].
However, the coupled, nonlinear, time-varying dynamics characteristic of underwater vehicles make the design of MPC very challenging. The nonlinear effects of hydrodynamic damping, Coriolis, and centripetal forces induce two main difficulties in using the nonlinear model predictive control (NMPC) when the underwater vehicle is working.
Firstly, it is difficult to establish an accurate model of the underwater vehicle. The environmental disturbance represented by the ocean current, load variation and change of hydrodynamic parameters will affect the establishment of the dynamic model of the underwater vehicle; in addition, the commonly used dynamic model of the underwater vehicle established by the Newton–Euler equation is a parametric model, which does not have the function of online adaptive correction [7]. It is difficult to ensure accuracy and applicability when the underwater vehicle is in a complex environment. The neural network has a wide application in underwater vehicle modeling [8,9,10] because of its good nonlinear approximation ability and adaptive learning function. The RBFNN is used in [11] to approximate the uncertain interference and the uncertainty of the AUV model to suppress the influence of parameter perturbation. In [12], an adaptive sliding mode control strategy based on RBFNN was proposed to solve the heading control problem of AUV.
Secondly, it is difficult to guarantee the real-time performance of the optimization process. The real-time performance of MPC is affected by dynamic model complexity and the rolling optimization algorithm [13]. At present, linear model predictive control (LMPC) is often used to simplify the nonlinear model in order to meet the real-time requirements. In [14], combined the LMPC with sonar images, the dynamic target tracking problem is realized. In [15], the complex six degrees of freedom underwater vehicle mathematical model is linearized, and smooth tracking between trajectory points is achieved. In [16], the linear robust MPC is applied to ensure the stability of surface ships in disturbance environments. Linearization technology plays an important role in the analysis and design of NMPC. However, the frequent disturbance of the ocean current and the complexity and nonlinearity of the dynamic model degrade the control performance of linearization considerably. When the curvature of the reference trajectory changes greatly, the LMPC is prone to overshoot [17]. In addition, it is difficult to guarantee the feasibility of optimizing the problem at each sampling time because the linearization method changes the model online. Therefore, how to establish an accurate nonlinear model while ensuring real-time performance is particularly important in the development of NMPC.
In this paper, a trajectory tracking control architecture combined with NMPC and RBFNN is studied. In the off-line phase, the random step signals are used as the excitation signal to obtain the state response of the underwater vehicle, which are taken as the model training sample. The improved adaptive Levenberg–Marquardt-error surface compensation (IALM-ESC) algorithm is applied to the underwater vehicle system identification, and fewer network nodes are used to reflect the dynamic characteristics. In the real-time control phase, the system output collected in each sampling period contains the information of external interference. The network parameters are updated online according to the error between the system output and the network prediction output. At the same time, an improved adaptive gray wolf optimization (AGWO) is proposed to improve the NMPC optimization performance and ensure the real-time control. The innovation of this paper mainly includes the following aspects:
(1) The structure and parameters of the radial basis function neural network (RBFNN) are determined by the IALM-ESC algorithm. Compared with the traditional gradient descent (GD) method, the applied algorithm has great improvement in convergence speed and convergence effect.
(2) In the real-time control stage, the neural network parameters are adjusted and updated online according to the prediction error, which improves the adaptive ability of the controller in the complex underwater environment.
(3) Based on the traditional gray wolf optimization (GWO) algorithm, the idea of adaptive weight and worst-case crossover is added to improve the global search ability and convergence speed, so as to ensure the real-time performance of NMPC.
The content of this paper is arranged as follows: Section 2 introduces the problems of this paper, including the kinematics and dynamics model of underwater vehicles. Section 3 introduces the design process of the controller. Section 4 is the related simulation experiments, including the results of model identification, optimization and tracking control. Some results and future work are described in Section 5.

2. Problem Description

This paper studies the trajectory tracking control of the underwater vehicles in the horizontal plane, and the motion of surge, sway and yaw are considered.
The kinematics model of underwater vehicles in the horizontal plane is shown in (1), which is used to describe the transformation relationship between the motion coordinate system and inertial coordinate system.
η ˙ = J ( η ) v
where J ( η ) is the coordinate transformation matrix, which is defined as:
J ( η ) = [ cos ψ sin ψ 0 sin ψ cos ψ 0 0 0 1 ]
where ψ is the heading angle.
The dynamic model of underwater vehicles is represented as [18]:
M v ˙ + C ( v ) v + D ( v ) v + g ( η ) = τ
where v = [ u , v , r ] T is the vector composed of surge velocity, sway velocity and yaw angular velocity in the motion coordinate system; η = [ x , y , ψ ] T is the vector composed of X-direction position, Y-direction position and heading angle in the inertial coordinate system; M = diag ( M x , M y , M ψ ) is the inertia matrix; C ( v ) is the centripetal force and Coriolis force matrix; D ( v ) is the damping matrix; g ( η ) is the restoring force vector; τ = [ F u , F v , F r ] T is the force and moment vector acting on three degrees of freedom.
By combining kinematics and dynamics equations, the model of the underwater vehicle’s system can be established as:
x ˙ = [ J ( η ) v M 1 ( F C v D v g ) ] = f ( x , F ) ,
where x = [ x , y , ψ , u , v , r ] T , and F = [ F u , F v , F r ] T .
The system behavior in MPC needs to be described by a predictive model. However, for underwater vehicles, the randomness of ocean current direction and velocity have a great impact on its dynamic characteristics. Coupled with the strong nonlinearity and strong coupling of the underwater vehicle’s system, it is difficult to establish an accurate system model, which affects the trajectory tracking performance. Therefore, in this paper, the RBFNN identification method is used to identify the dynamic model of underwater vehicles. On the one hand, it can improve the accuracy of model identification; on the other hand, it can modify the network parameters online and suppress the external interference and environmental changes to achieve the purpose of adaptive control.
The trajectory tracking control process of the underwater vehicles studied in this paper is shown in Figure 1.
As shown in Figure 1, the reference trajectory s 1 , s 2 , s N defined in inertial coordinate system is composed of N discrete trajectory points from a given initial state. Suppose the trajectory point at a certain time is s t = [ x R ( t ) , y R ( t ) ] T . For trajectory tracking control, the reference trajectory should satisfy the physical characteristics constraints and the kinematics equation of the underwater vehicles [19]. That is:
x ˙   R = u R cos ψ R v R sin ψ R y ˙ R = u R sin ψ R + v R cos ψ ˙ R = r R
According to (5), the real-time state of the underwater vehicle is obtained as:
{ ψ R = atan 2 ( y ˙ R , x ˙   R ) u R = x ˙   R 2 + y ˙   R 2 v R = 0 r R = ( x ˙   R y ¨ R y ˙ R x ¨ R ) / ( x ˙   R 2 + y ˙   R 2 )
In this paper, a radial basis function neural- nonlinear model predictive control (RBF-NMPC) method is designed to give the corresponding control law at each sampling time, so that the real state [ x , y , ψ , u , v , r ] T of the underwater vehicles coincides with the reference trajectory [ x R , y R , ψ R , u R , v R , r R ] T . The external disturbance will change the state of the underwater vehicle. Therefore, the state information of an underwater vehicle contains the information of external interference. The model accuracy of an underwater vehicle can be improved by adjusting the network parameters. The adaptive ability of the model enables the controller to send out correct control law to ensure that the running state of the underwater vehicles is still on the reference trajectory when there are external disturbances.

3. Controller Design

The principle of RBF-NMPC constructed in this paper is shown in Figure 2. The specific implementation process is as follows:
First, from the input and output data, the dynamic model of underwater vehicles is identified off-line by using the IALM-ESC algorithm, so that the RBFNN can basically grasp the dynamic of the underwater vehicle.
Second, in the real-time control stage, in order to improve the accuracy of the NMPC, the error between the system output and the network prediction output is used to adjust the RBFNN parameters. The adjusted network is used to predict the state quantity in the future.
Finally, in the NMPC optimization stage, the objective function is optimized by the proposed AGWO algorithm, and the control sequence is obtained.

3.1. RBFNN Training

RBFNN is a kind of local approximation neural network with simple structure. By introducing the idea of Gaussian kernel function, any nonlinear system can be approximated with a compact set and any precision. Suppose that there are r neurons in the hidden layer and x = [ x 1 , x 2 , x m ] T is the input of the RBFNN, then the output can be expressed as:
y = j = 1 r ω j exp ( | | x c j | | 2 2 σ j 2 )
where c j = [ c j 1 , c j 2 , c j m ] is the vector value of the center point of the j t h hidden layer neuron, σ j is the width vector of the Gaussian kernel function of the j t h hidden layer neuron, and ω j is the weight of the j t h hidden layer neuron.
When constructing RBFNN, there are two problems to be solved: one is structure identification, the other is parameter estimation. Structure identification is to determine the number of nodes in the hidden layer of the network, and the parameter estimation is to find a set of network parameters (center, band width and weight), which minimums the sample error function (root mean square error):
min E = 1 n p = 1 n ( y ( p ) y r e f ( p ) ) 2
where p is the current sample, n is the total number of samples, y r e f is the expected output of the sample, and y is the output of RBFNN.
The IALM-ESC applied in this paper is an incremental network construction algorithm. Starting with zero network nodes, the maximum of the error surface is compensated by adding network nodes at the peak or valley of the error surface. The parameters of each new network node are adjusted by the following update rules [20]:
Θ ( t + 1 ) = Θ ( t ) ( Ψ ( t ) + η ( t ) I ) 1 Ω ( t )
where Ψ ( t ) is a quasi-Hessian matrix, Ω ( t ) is the gradient vector, η ( t ) is the adaptive damping coefficient, and its adjustment rule is as:
η ( t ) = β | | e ( t ) | |
where β is the constant. Ψ ( t ) and Ω ( t ) are the sum of sub matrix ψ p ( t ) and sub vector ω p ( t ) of all samples, respectively, and there is:
Ψ ( t ) = p = 1 n ψ p ( t ) Ω ( t ) = p = 1 n ω p ( t )
where,
ψ p ( t ) = j p T ( t ) j p ( t ) ω p ( t ) = j p T ( t ) e p ( t )
where, j p ( t ) is the row vector of Jacobian matrix, which is described as:
J = [ e 1 w 1 , e 1 w r , e 1 c 11 , e 1 c n r , e 1 σ 1 , e 1 σ r e 2 w 1 , e 2 w r , e 2 c 11 , e 2 c n r , e 2 σ 1 , e 2 σ r e p w 1 , e p w r , e p c 11 , e p c n r , e p σ 1 , e p σ r ]
According to the update rule of the gradient descent learning algorithm, the elements of row vector of Jacobian matrix can be expressed as:
e p w j = e p y p y p w j = h j e p c i j = e p y p y p h j h j c i j = w j h j ( x c i j ) σ j 2   e p σ j = e p y p y p h j h j σ j = w j h j | | x c i j | | 2 σ j 3  
After adjusting all the parameters, if the root mean square error between the predicted value and the actual value of the RBFNN does not reach the target value, the network nodes will continue to be added at the maximum error, and the node parameters will be trained until the target value is met.
In the off-line phase, the model of the underwater vehicle is initially established. However, in the real-time control stage, the prediction model should also have the ability of adjustment to adapt to the unknown underwater environment. The underwater interference is decomposed into an interference force on each degree of freedom, which causes the state of the underwater vehicle to change. Therefore, it can be considered that the state information of an underwater vehicle contains the information of external interference. According to the error between the system output and the predicted state of the model, the model accuracy of an underwater vehicle can be improved by adjusting. This idea is widely used in the existing adaptive neural network controller of underwater vehicle [21,22]. In this paper, the adaptive gradient descent is used to adjust the network parameter in the real-time control phase to minimize the error between the MPC model and the system output. In each sampling period, after the new sample data are collected, the network parameters are updated once by (15). With the increase in running time, network parameters will be gradually adjusted to adapt to the changes of the external environment.
Θ ( t + 1 ) = Θ ( t ) η ( t ) g ( t )
where η ( t ) is adaptive learning rate, that equal to the adaptive damping coefficient in (10). g ( t ) is the gradient vector, that composed of factors in (14).

3.2. Objective Function and Constraints

The velocity and angular velocity of each degree of freedom of underwater vehicle in the future can be estimated according to the established RBFNN prediction model. The expression is as follows:
y m ( k + p | k ) = j = 1 r w j exp ( | | x c j | | 2 2 σ j 2 )   p = 1 , 2 N p
where N p is the prediction horizon, y m ( k + p | k ) is the prediction output at the sampling time k. x = [ y ( k + p 1 ) , y ( k + p n A ) , u ( k + p 1 ) , u ( k + p n B ) ] T is the input, and it will change with the prediction horizon. n A and n B are the order of the output and input, respectively. Then the position and attitude [ x , y , ψ ] T of the underwater vehicle in the prediction horizon are calculated by the kinematics equation, and all the state variables y ^ ( k + p | k ) of the underwater vehicle in the prediction horizon are obtained.
In this paper, the minimum value of quadratic objective function is used to express the optimization performance index at k time [23]. The expression is as follows:
min Δ u ( k ) { Q p = 1 N p ( y ˜ ( k + p | k ) ) 2 + λ p = 0 N u 1 ( Δ u ( k + p | k ) ) 2 } s . t . u min u ( k + p | k ) u max p = 0 , 1 , N u 1   Δ u max Δ u ( k + p | k ) Δ u max p = 0 , 1 , N u 1 y min y ^ ( k + p | k ) y max p = 0 , 1 , N p
where y ˜ ( k + p | k ) = y s p ( k + p | k ) y ^ ( k + p | k ) is the difference between reference trajectory and model prediction. Δ u ( k + p | k ) = u ( k + p | k ) u ( k + p 1 | k ) is the control increment. N p and N u represent the prediction horizon and control horizon. Q and λ are corresponding weighting matrices. u min and u max are the upper and lower bounds of u ( k + p | k ) . Δ u max and Δ u max are the upper and lower bounds of Δ u ( k + p | k ) . y min and y max are the upper and lower bounds of y ^ ( k + p | k ) , respectively.

3.3. AGWO Algorithm

For solving NMPC, the traditional gradient descent method has limitations in calculating capability [24]. Biological heuristic optimization algorithm has been proved to have strong application potential in complex NMPC problems [25]. In [26], a modified GWO and the Moth-Flame Optimization were proposed to improve the performance when applied as an NMPC solver. The GWO algorithm simulates the predatory behavior of gray wolf group and achieves the goal of optimization based on the mechanism of wolf group cooperation [27]. In GWO algorithm, the first three wolves with the best fitness (optimal solution: α , β and δ ) guide other wolves to search for the target. The remaining wolves (candidate solutions) are defined as ω , and they update their positions around α , β and δ . The distance between the individual and the prey is shown in (18), and its position update is shown in (19).
D p ( t ) = | C · X P ( t ) X ( t ) |
X D P ( t ) = X p ( t ) A · D p ( t )   P = α , β , δ
where t is the current iteration times. A and C are the coefficient vectors. X p and X D P are the position vectors of prey and gray wolf, respectively, and there is A = 2 a · r 1 a , C = 2 · r 2 . a is the convergence factor and decreases linearly from 2 to 0 with the number of iterations. The modules of r 1 and r 2 are random numbers between [0, 1].
The location update of each search factor is expressed as:
X ( t + 1 ) = X D α ( t ) + X D β ( t ) + X D δ ( t ) 3
With the increase in the number of iterations t, the GWO algorithm finally finds the optimal solution through the way of trapping. Although the GWO algorithm has been widely used, it also has the characteristics of slow convergence speed and is easy to be limited to local minimum [28]. In order to improve the performance of the GWO algorithm, an adaptive strategy is applied in this paper. The adaptive weight is added to Equation (20) to speed up the convergence speed. In addition, the ability to jump out of the local optimum can be improved by crossing the worst set of each iteration.
In general, wolf α has the highest command in the pack. However, in some special cases, β and δ can also command wolves temporarily. Therefore, the position of the wolf pack must be iterated according to different weights. However, if the weight is fixed, it will not be conducive to the regeneration of the population. Therefore, an adaptive weighted position updating method is applied, as shown in (21).
X ( t + 1 ) = λ α ( t + 1 ) X D α ( t ) + λ β ( t + 1 ) X D β ( t ) + λ δ ( t + 1 ) X D δ ( t ) 3
where λ α , λ β and λ δ are the adaptive weights in each iteration, which can be expressed as:
λ p ( t + 1 ) = M λ p ( t + 1 ) + 0.1 randn ( 0 , 1 ) , P = α , β , δ
where, randn ( 0 , 1 ) is the standard normal distribution; M λ p is the average value of weight update, which can be expressed as:
M λ p ( t + 1 ) = ( 1 c ) M λ p ( t ) + c mean ( G λ p ) , P = α , β , δ
where c is a constant, which is set to 0.1 in this paper. G λ p is a file which stores better weight than the last iteration. In the initialization phase, the stored weights G λ p are all 1.
In addition, inspired by the differential evolution algorithm, the idea of worst-case crossover is proposed in order to improve the global search performance of the GWO algorithm. The search factor set with poor fitness in each iteration exchanges information with α , β and δ , so as to increase the diversity of the population. The ability to jump out of the local optimum can be improved by crossing the population. Set the number of bad sets as K. The information exchange formula of each difference factor in K is expressed as follows:
x l e a s t , d ( t + 1 ) = { x α , d ( t )     i f   a 1   x β , d ( t )     i f   1 < a 2 x δ , d ( t )     i f   2 < a 3
where a is a random number between [0, 3], and d is the dimension of search factor.
Through the above improvements, the proposed AGWO algorithm has a great improvement in the convergence speed and the search ability of the global optimal value when compared with the traditional GWO algorithm.
The AGWO algorithm proposed in this paper is applied to the optimization problem shown in (17), and the first control sequence of the optimization result is taken as the optimal control law. Then it is loaded into the underwater vehicle’s system for real-time control. The flow chart of the proposed RBF-NMPC Algorithm 1 is as follows:
Algorithm 1 RBF-NMPC
1:Develop RBFNN predictive model offline using offline data;
2:Initialize the parameters of RBF-NMPC;
3:For k = 1 to N do
4: Sample the plant output y ( k ) ;
5: Update the parameters of RBFNN to adapt the real environment;
6: Calculate the prediction outputs y ^ ( k + p ) ;
7:While current iteration times t < t max ;
8:  Compute the control signal by AGWO;
9:   t + + ;
10:End while
11: Sent the control signal to the underwater vehicle;
12:end for

4. Simulation Results

4.1. Model Identification Results

In order to verify the effectiveness of the proposed model identification based on RBFNN, the random step signals are used as the excitation signal to obtain the state response of the underwater vehicle, which are taken as the model training sample. The width of each step signal represents the excitation action time, which reflects the relationship between the dynamic response of the underwater vehicle and the excitation frequency. The dynamic information of the underwater vehicle can be more captured by random step signal. According to the thrust constraints of each propeller, the thrust moment range of Fu is set as [−2000 N, 2000 N], the thrust range of Fv is set as [−2000 N, 2000 N], and the range of Fr is set as [−900 Nm, 900 Nm]. The input of the RBFNN is x ( k ) = [ F u ( k 1 ) , F v ( k 1 ) , F r ( k 1 ) , u ( k 1 ) ,   v ( k 1 ) , r ( k 1 ) ] , and the actual output of the RBFNN is y ( k ) = [ u ( k ) , v ( k ) , r ( k ) ] . Figure 3 shows 2000 sets of input and output data for underwater vehicles dynamic model identification, where 1900 groups are used as training data and 100 groups are used as test data.
Before the neural networks training based on the IALM-ECS, the data preprocessing is carried out to prevent system instability or slow training speed caused by different dimensions. The target mean square error is set at 0.05. In Figure 4, the root mean square error (RMSE) of the network output decreases with the increase in the number of nodes. After reaching the target value, the number of network nodes stops increasing. Based on the IALM-ECS algorithm, RBFNN is constructed incrementally from zero nodes, which makes the network more compact and has good generalization ability. Compared with the traditional trial and error method, there is no randomness in the whole process.
The root mean square error curve of RBFNN offline training is shown in Figure 5. It can be seen that the proposed IALM-ESC algorithm can improve the convergence speed. Even if the initialization error is large, it can converge about 100 iterations. However, the traditional GD method cannot get the better parameters when it reaches 500 iterations.
The comparison between the actual and predicted values of the test set is shown in Figure 6. It can be seen that the actual value is basically consistent with the predicted value. This shows that the network structure is simple, and the modeling effect is satisfactory.

4.2. Optimization Results of AGWO

Two typical functions (convex function and nonconvex function) are chosen to test the optimization performance of AGWO, and the results are shown in Figure 7 and Figure 8. First of all, the two figures show that the optimization effect of AGWO is better than the other three methods. It can be seen from Figure 7 that AGWO has a great improvement in the convergence speed compared with GWO, especially in the later stage. It indicates that the existence of adaptive weights can accelerate the convergence of AGWO. In Figure 8, when particle swarm optimization (PSO), differential evolution (DE) and GWO all fall into the local optimal value, AGWO can jump out of the local optimal value and achieve a good optimization result. The results show that the AGWO proposed in this paper has a great improvement in convergence speed and convergence effect.

4.3. Trajectory Tracking Control Results

In order to verify the effectiveness of the proposed trajectory tracking control method, the reference trajectory is selected as follows:
p ( t ) = { x R = t y R = sin t
In the simulation, the sampling period is Δ t = 0.05 s. The prediction horizon is N = 5 Δ t . The control horizon is N u = 2 Δ t . The state quantity weighting coefficient is Q = d i a g   ( 10 4 , 10 4 , 10 2 , 10 1 , 10 1 , 10 1 ) . The control quantity weighting coefficient is λ = d i a g ( 10 4 ,   10 4 , 10 4 ) .
The tracking results of the two methods (RBF-NMPC and LMPC) are shown in Figure 9. Combining with Figure 9a,b, it can be seen that both the overall tracking and the tracking in each state of RBF-NMPC are highly consistent with the reference trajectory. On the contrary, due to the simplification of the underwater vehicle model in LMPC, there are large modeling errors, and the trajectory tracking control error is larger. The optimization time of the two methods is shown in Figure 10. In a control cycle, the network parameters are adjusted once according to (15), and then the state prediction and control law optimization are carried out. The average time for solving calculation of RBF-NMPC is 0.0144 s and that of LMPC is 0.0076 s (The time is measured with the time function in MATLAB). Although the proposed RBF-NMPC takes longer, the optimization time of the two methods is much lower than the sampling time, which can ensure the real-time tracking. The simple network structure and the convergence effect of AGWO ensure that the optimization time of RBF-NMPC can reach the same level as LMPC.
In addition, different optimization algorithms are used to solve the same NMPC problem. Based on the obtained control laws, trajectory tracking control is carried out respectively. The mean square error (MSE) for each optimization algorithm in trajectory tracking are summarized in Table 1. The tracking performance of AGWO is significantly improved in each degree of freedom compared with other optimization algorithms.
In order to verify the anti-interference ability of RBF-NMPC, the trajectory tracking control under the interference environment is carried out. In the simulation, unknown random interference is added to each degree of freedom, and the expression is shown in (26). The simulation results under the interference environment are shown in Figure 11 and Figure 12.
D = { 400 sin ( k π 100 ) + r a n d ( 400 , 400 ) 400 sin ( k π 100 ) + r a n d ( 400 , 400 ) 200 sin ( k π 100 ) + r a n d ( 200 , 200 )
It can be seen from Figure 11 that LMPC cannot track the reference trajectory well under interference environment, especially since the deviation between the heading angle and reference value is large. In contrast, RBF-NMPC can update the model according to the real value of the system model output after each optimization, which shows superior adaptive ability in a complex working environment, and its trajectory tracking control effect is better. Figure 12 shows the optimization times of the two methods. Under interference environment, the average time for solving calculation of RBF-NMPC is 0.0146 s, and that of LMPC is 0.0083 s. The optimization time of RBF-NMPC is still far less than the sampling time. At the same time, RBF-NMPC has the ability of adaptive parameter adjustment, which will show excellent tracking performance in complex conditions.
The mean square errors for trajectory tracking are summarized in Table 2. The tracking performance of RBF-NMPC is improved by at least 43% and 25% in the case of no interference and interference, respectively.

5. Conclusions

In this paper, an adaptive RBF-NMPC trajectory tracking control algorithm is proposed for underwater vehicles. This method combines the NMPC with RBFNN and AGWO algorithm. It solves the problems of modeling difficulty and poor real-time performance in the application of NMPC in underwater vehicles. Simulation results show that the trajectory tracking performance of RBF-NMPC is greatly improved compared with the LMPC and traditional optimization algorithms. In the near future, how to reduce the time of first optimization, and how to combine RBF-NMPC with robust control to make the whole trajectory tracking control system more stable, will be our next research direction.

Author Contributions

Conceptualization, Z.C.; methodology, D.W.; software, D.W.; writing—original draft preparation, D.W.; writing—review and editing, Z.C. and F.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant U2006228, 51839004, and in part by the Shanghai Science and Technology Innovation Action Plan under Grant 18550720100, 19040501600.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Leon, A.Z.; Huvenne, V.A.I.; Benoist, N.; Ferguson, M. Assessing the repeatability of automated seafloor classification algorithms, with application in marine protected area monitoring. Remote Sens. 2020, 12, 1572. [Google Scholar] [CrossRef]
  2. Jalal, F.; Nasir, F. Underwater Navigation, Localization and Path Planning for Autonomous Vehicles: A Review. In Proceedings of the 2021 International Bhurban Conference on Applied Sciences and Technologies (IBCAST), Islamabad, Pakistan, 12–16 January 2021. [Google Scholar]
  3. Liu, H.; Liu, F.W.; Shi, H.J. Design of an AUV Heading Attitude Controller Based on a Disturbance Observer. In Proceedings of the 2020 International Conference on Electrical Engineering and Control Technologies (CEECT), Melbourne, VIC, Australia, 10–13 December 2020. [Google Scholar]
  4. Elmokadem, T.; Zribi, M.; Youcef-Toumi, K. Terminal sliding mode control for the trajectory tracking of underactuated autonomous underwater vehicles. Ocean. Eng. 2017, 129, 613–625. [Google Scholar] [CrossRef]
  5. Zhang, H.; Zhang, Y.; Xu, Y.; Zhou, J.; Guo, Y. Research on Backstepping Tracking Control of Deep-diving AUV Based on Biological Inspiration. In Proceedings of the 2020 Chinese Control and Decision Conference (CCDC), Hefei, China, 22–24 August 2020. [Google Scholar]
  6. Raju, S.S.; Swamy, G.N.; Bharath, Y.; Nandini, C.N. Simulation and Performance Analysis of Autonomous Underwater Vehicle using Advanced Control Algorithms. In Proceedings of the 2020 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 28–30 July 2020. [Google Scholar]
  7. Jiang, C.M.; Wan, L.; Sun, Y.S.; Li, Y.M. Design of novel sliding-mode controller for high-velocity AUV with consideration of residual dead load. J. Cent. South. Univ. 2018, 25, 121–130. [Google Scholar] [CrossRef]
  8. Aras, M.S.M.; Abdullah, S.S.; Rahman, A.F.N.A.; Hasim, N. Depth control of an underwater remotely operated vehicle using neural networkpredictive control. J. Bacteriol. 2015, 74, 85–93. [Google Scholar]
  9. Mao, R.Q.; Cui, R.X.; Yan, W.S.; Chen, L.P. Neural Learning-Based Integrated Guidance and Control Algorithm of Multiple Underactuated AUVs. In Proceedings of the 2018 IEEE 8th International Conference on Underwater System Technology: Theory and Applications (USYS), Wuhan, China, 1–3 December 2018. [Google Scholar]
  10. Li, J.; Du, J. Command filtered adaptive NN trajectory tracking control of underactuated autonomous underwater vehicles. In Proceedings of the 2019 19th International Conference on Control, Automation and Systems (ICCAS), Jeju, Korea, 15–18 October 2019. [Google Scholar]
  11. Jia, L.Y.; Zhu, Z.Y. Improved fractional-order integral sliding mode control for AUV based on RBF neural network. In Proceedings of the 2019 Chinese Automation Congress (CAC), Hangzhou, China, 1–3 December 2018. [Google Scholar]
  12. Guo, L.W.; Liu, W.D.; Li, Z.Y.; Li, L.F. An adaptive sliding mode control strategy for the heading control of autonomous underwater vehicles. In Proceedings of the Global Oceans 2020: Singapore—U.S. Gulf Coast, Biloxi, MS, USA, 5–30 October 2020. [Google Scholar]
  13. Dutta, D.; Upreti, S.R. An optimal feedback control strategy for nonlinear, distributed-parameter processes. Processes 2019, 7, 758. [Google Scholar] [CrossRef] [Green Version]
  14. Wei, Y.; Zhu, D.; Chu, Z. Underwater Dynamic Target Tracking of Autonomous Underwater Vehicle Based on MPC Algorithm. In Proceedings of the 2018 IEEE 8th International Conference on Underwater System Technology: Theory and Applications (USYS), Wuhan, China, 1–3 December 2018. [Google Scholar]
  15. Nabi, G.; Affan, M.; Khan, R.; Hameed, M.; Ali, Z. Adaptive Tracking Controller Design for the Horizontal Planner Motion of an Autonomous Underwater Vehicle. In Proceedings of the 2019 16th International Bhurban Conference on Applied Sciences and Technology (IBCAST), Islamabad, Pakistan, 8–12 January 2019. [Google Scholar]
  16. Zhang, J.; Sun, T.; Liu, Z. Robust model predictive control for path-following of underactuated surface vessels with roll constraints. Ocean. Eng. 2017, 143, 125–132. [Google Scholar] [CrossRef]
  17. Bai, G.X.; Liu, L.; Meng, Y.; Luo, W.D. Path tracking of mining vehicles based on nonlinear model predictive control. Appl. Sci. 2019, 9, 1372. [Google Scholar] [CrossRef] [Green Version]
  18. McCue, L. Handbook of marine craft hydrodynamics and motion control (Bookshelf). IEEE Control. Syst. Mag. 2016, 36, 78–79. [Google Scholar]
  19. Shen, C.; Shi, Y.; Buckham, B. Trajectory tracking control of an autonomous underwater vehicle using Lyapunov-based model predictive control. IEEE Trans. Ind. Electron. 2018, 65, 5796–5805. [Google Scholar] [CrossRef]
  20. Wilamowski, B.M.; Yu, H. Improved computation for levenberg–marquardt training. IEEE Trans. Neural Networ. 2010, 21, 930–937. [Google Scholar] [CrossRef] [PubMed]
  21. Qiao, J.F.; Zhou, H.B. Modeling of energy consumption and effluent quality using density peaks-based adaptive fuzzy neural network. IEEE/Caa. J. Autom. Sin. 2018, 5, 968–976. [Google Scholar] [CrossRef]
  22. Zhou, H.B.; Qiao, J.F. Soft sensing of effluent ammonia nitrogen using rule automatic formation-based adaptive fuzzy neural network. Desalination Water Treat. 2019, 140, 132–142. [Google Scholar] [CrossRef]
  23. Gan, W.; Zhu, D.; Hu, Z.; Shi, X.; Chen, Y. Model predictive adaptive constraint tracking control for underwater vehicles. IEEE Trans. Ind. Electron. 2019, 67, 7829–7840. [Google Scholar] [CrossRef]
  24. Mozaffari, A.; Azad, N.L. Empirical investigation and analysis of the computational potentials of bio-inspired nonlinear model predictive controllers: Success and challenges. Int. J. Bio-Inspired Comput. 2017, 9, 19–34. [Google Scholar] [CrossRef]
  25. Kar, A.K. Bio inspired computing—A review of algorithms and scope of applications. Expert Syst. Appl. 2016, 59, 20–32. [Google Scholar] [CrossRef]
  26. De Mendonça Mesquita, E.; Sampaio, R.C.; Ayala, H.V.H.; Llanos, C.H. Recent meta-heuristics improved by self-adaptation applied to nonlinear model-based predictive control. IEEE Access 2020, 8, 118841–118852. [Google Scholar] [CrossRef]
  27. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Green Version]
  28. Gu, W.; Zhou, B.K. Improved grey wolf optimization based on the Quantum-behaved mechanism. In Proceedings of the 2019 IEEE 4th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chengdu, China, 20–22 December 2019. [Google Scholar]
Figure 1. The trajectory tracking process diagram of underwater vehicle.
Figure 1. The trajectory tracking process diagram of underwater vehicle.
Machines 09 00105 g001
Figure 2. Control schematic diagram of the proposed RBF-NMPC.
Figure 2. Control schematic diagram of the proposed RBF-NMPC.
Machines 09 00105 g002
Figure 3. The sets of input and output data for dynamic system identification: (a) The excitation signal of longitudinal thrust; (b) The response signal of surge velocity; (c) The excitation signal of lateral thrust; (d) The response signal of sway velocity;(e) The excitation signal of heading moment; (f) The response signal of yaw angular velocity.
Figure 3. The sets of input and output data for dynamic system identification: (a) The excitation signal of longitudinal thrust; (b) The response signal of surge velocity; (c) The excitation signal of lateral thrust; (d) The response signal of sway velocity;(e) The excitation signal of heading moment; (f) The response signal of yaw angular velocity.
Machines 09 00105 g003
Figure 4. The structure identification diagram of IALM-ESC algorithm.
Figure 4. The structure identification diagram of IALM-ESC algorithm.
Machines 09 00105 g004
Figure 5. Convergence graph of RBFNN parameter learning training based on IAMM-ESC and GD.
Figure 5. Convergence graph of RBFNN parameter learning training based on IAMM-ESC and GD.
Machines 09 00105 g005
Figure 6. Comparison chart of actual value and predicted value of test set: (a) The actual and predicted values of surge velocity; (b) The actual and predicted values of sway velocity; (c) The actual and predicted values of yaw angular velocity.
Figure 6. Comparison chart of actual value and predicted value of test set: (a) The actual and predicted values of surge velocity; (b) The actual and predicted values of sway velocity; (c) The actual and predicted values of yaw angular velocity.
Machines 09 00105 g006aMachines 09 00105 g006b
Figure 7. Convergence effect of convex function.
Figure 7. Convergence effect of convex function.
Machines 09 00105 g007
Figure 8. Convergence effect of nonconvex function.
Figure 8. Convergence effect of nonconvex function.
Machines 09 00105 g008
Figure 9. Tracking control comparison results: (a) Tracking effect in xoy plane; (b) Tracking effect of each state.
Figure 9. Tracking control comparison results: (a) Tracking effect in xoy plane; (b) Tracking effect of each state.
Machines 09 00105 g009
Figure 10. Computation time of the RBF-NMPC and LMPC: (a) Computation time of the RBF-NMPC; (b) Computation time of the LMPC.
Figure 10. Computation time of the RBF-NMPC and LMPC: (a) Computation time of the RBF-NMPC; (b) Computation time of the LMPC.
Machines 09 00105 g010aMachines 09 00105 g010b
Figure 11. Tracking control comparison results under interference environment: (a) Tracking effect in xoy plane; (b) Tracking effect of each state.
Figure 11. Tracking control comparison results under interference environment: (a) Tracking effect in xoy plane; (b) Tracking effect of each state.
Machines 09 00105 g011
Figure 12. Computation time of the RBF-NMPC and LMPC under interference environment: (a) Computation time of the RBF-NMPC; (b) Computation time of the LMPC.
Figure 12. Computation time of the RBF-NMPC and LMPC under interference environment: (a) Computation time of the RBF-NMPC; (b) Computation time of the LMPC.
Machines 09 00105 g012aMachines 09 00105 g012b
Table 1. The mean square error (MSE) in trajectory tracking for each optimization algorithm.
Table 1. The mean square error (MSE) in trajectory tracking for each optimization algorithm.
MSEPSODEGWOAGWOImprovement (AGWO to GWO)
x [ m 2 ] 0.13420.00260.00280.001257%
y [ m 2 ] 0.07030.01600.01580.011130%
ψ [ r a d 2 ] 0.13120.00590.00590.004720%
Table 2. The mean square error (MSE) of the RBF-NMPC and LMPC in trajectory tracking.
Table 2. The mean square error (MSE) of the RBF-NMPC and LMPC in trajectory tracking.
EnvironmentMSELMPCRBF-NMPCImprovement
No interference x [ m 2 ] 0.00950.001287%
y [ m 2 ] 0.01960.011143%
ψ [ r a d 2 ] 0.00960.004751%
Interference x [ m 2 ] 0.01060.002675%
y [ m 2 ] 0.02050.015425%
ψ [ r a d 2 ] 0.01150.005156%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chu, Z.; Wang, D.; Meng, F. An Adaptive RBF-NMPC Architecture for Trajectory Tracking Control of Underwater Vehicles. Machines 2021, 9, 105. https://doi.org/10.3390/machines9050105

AMA Style

Chu Z, Wang D, Meng F. An Adaptive RBF-NMPC Architecture for Trajectory Tracking Control of Underwater Vehicles. Machines. 2021; 9(5):105. https://doi.org/10.3390/machines9050105

Chicago/Turabian Style

Chu, Zhenzhong, Da Wang, and Fei Meng. 2021. "An Adaptive RBF-NMPC Architecture for Trajectory Tracking Control of Underwater Vehicles" Machines 9, no. 5: 105. https://doi.org/10.3390/machines9050105

APA Style

Chu, Z., Wang, D., & Meng, F. (2021). An Adaptive RBF-NMPC Architecture for Trajectory Tracking Control of Underwater Vehicles. Machines, 9(5), 105. https://doi.org/10.3390/machines9050105

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop