Abstract

In consideration of the difficulty in determining the parameters of underactuated autonomous underwater vehicles in multi-degree-of-freedom motion control, a hybrid method that combines particle swarm optimization (PSO) with artificial fish school algorithm (AFSA) is proposed in this paper. The optimization process of the PSO-AFSA method is firstly introduced. With the control simulation models in the horizontal plane and vertical plane, the PSO-AFSA method is elaborated when applied in control parameter optimization for an underactuated autonomous underwater vehicle. Both simulation tests and field trials were carried out to prove the efficiency of the PSO-AFSA method in underactuated autonomous underwater vehicle control parameter optimization. The optimized control parameters showed admirable control quality by enabling the underactuated autonomous underwater vehicle to reach the desired states with fast convergence.

1. Introduction

The rapid development of artificial intelligence, automatic control, and simulation technology has brought significant progress to autonomous underwater vehicle (AUV) technologies [1]. AUVs have been used in various fields including the development of marine mineral resources [2], topographical surveying [3], hydrological information collection [4], dam and pipeline detection [5], and relay communication [6]. With respect to multiple parameters, strong nonlinearity, and strong coupling effect of underactuated AUV control system, how well an AUV completes its task depends on not only the sensors and actuators equipped but also reliable control performance [7].

In practice, however, the design of underactuated AUV controller depends on the designer’s personal experience. The control parameters are often determined with the cut-and-try method, which is not only time-consuming but also difficult to get the optimal or even satisfying control parameters. Especially when multiple degrees of freedom are involved in AUV motion control, experience-based trials will become a more difficult problem. For the resolution of control parameter optimization, colony algorithm [8], immune algorithm [9, 10], and PSO [11] had been adopted, but they all fail in engineering practice due to complicated coding process, tendency to be stuck with local extremum, or inability to satisfy multi-degree-of-freedom motion control.

For this reason, in this paper, combining PSO with AFSA is proposed to optimize underactuated AUV control parameters and also to provide an effective solution to parameter optimization for nonlinear control systems.

When applied to control parameter optimization, PSO is noticeable for fast convergence [12], high efficiency, and parallel searching ability, but it is likely to be stuck with local extremum and miss the global extremum. AFSA is highly tolerant with algorithm parameters’ initial value and is recommended for its strong global searching ability, though it is inferior to PSO in terms of convergence efficiency [13]. PSO is combined with AFSA in this paper, with the fast convergence of PSO making up for that of AFSA and the global searching ability of AFSA solving PSO’s tendency of being stuck with local extremum, so that the two can collaborate in parameter optimization for underactuated AUV control and achieve efficient and desirably optimized results.

This paper is organized as follows. The second section summarizes the principles and procedures of PSO, AFSA, and PSO-AFSA method, respectively. The frames of motion control are established in the third section, where the research object is introduced, the horizontal and vertical motion models are established, and how the PSO-AFSA method is applied to underactuated AUV control parameter optimization is expounded. The simulation tests are carried out in the fourth section for underactuated AUV motion control in the horizontal plane and the vertical plane. The field trials are carried out in the fifth section. Both the simulation tests and field trials have justified the efficiency of the PSO-AFSA method in parameter optimization for underactuated AUV control.

2. Algorithm Overview

2.1. PSO

In particle swarm optimization, each particle in the searching space represents a potential solution to the problem to be optimized. Each particle corresponds to a fitness value determined by the function to be optimized [14]. During the optimization, each particle is subordinate to a velocity vector that determines the direction and distance that they can fly. Before reaching the optimal solution, particles keep updating themselves by following two values as shown in Figure 1. The first value is called individual extremum, namely, the optimal solution that each individual particle has found by far. The second value is called global extremum, namely, the optimal solution that the entire swarm has ever found. Each particle updates their velocity and position bywhere is the inertia weight, is the velocity of particle at time , is the position of particle at time , is the optimal position that individual particle has ever found, is the optimal position that the entire swarm has ever found, and is a random value from . and are accelerating coefficients introduced to adjust the maximum step length that the participles fly towards the individual extremum and global extremum. With small values, and may lead the particles away from the target area, while large values of the accelerating coefficients will make the particles rush to the target area or fly over the target area. In addition, the particles are limited with the preset maximum flying velocity whose larger value guarantees the global searching ability of the entire swarm. Boundary conditions are also set to keep the swarm within the searching space.

Formula (1) consists of three parts. indicates each individual particle’s tendency to fly following their previous direction and velocity, which is called the “inertia” part. reflects each individual particle’s tendency to fly towards their respective optimal position, which is known as the “cognition” part. shows each individual particle’s tendency to fly towards the optimal position the entire swarm has ever experienced, which is named as the “society” part.

2.2. AFSA

It is often seen that fish would swim to or follow its companions to where the food concentration is the highest [15]. In this regard, the place of the biggest number of fish typically means the highest food concentration. This is the foundation on which AFSA constructs artificial fish to achieve optimization by simulating fish’s acts of preying, swarming, following, and moving.

An artificial fish is encapsulated with variables and acts. The variables include , , , , , , , and . The acts include , , , , and . The definitions of variables and acts in AFSA are provided in “Abbreviations” at the end of the paper. The acts are described in detail as below (the discussion in this paper focuses on the optimization for maximum value, for example. Those that require optimization for minimum value can be exchanged with that for maximum value).

2.2.1. Act of Preying

An artificial fish conducts the act of preying to move towards food. is assumed to be the current state of artificial fish . When determining a random state within its visual scopewhere is a random value from and , artificial fish moves according to or otherwise artificial fish determines another random state and judges whether . If is never satisfied after artificial fish tries times, artificial fish moves randomly according to

2.2.2. Act of Swarming

A school of fish would swarm naturally to survive or keep themselves away from danger. In AFSA, all artificial fish shall move towards the center of their companions and avoid overcrowding in the meantime. is assumed to be the current state of artificial fish . When detecting the number of companions within its neighborhood and their central position , with which means the food concentration is high and it is not overcrowding at the central position , artificial fish moves towards according to or otherwise artificial fish conducts the act of preying.

2.2.3. Act of Following

An artificial fish conducts the act of following to move towards the neighboring artificial fish whose position shows the highest food concentration. The act of following means moving towards the best companion in an artificial fish’s neighborhood. is assumed to be the current state of artificial fish . When detecting that has the highest food concentration within its neighborhood () and with , which means the food concentration is satisfyingly high and it is not overcrowding at , artificial fish moves towards according toor otherwise artificial fish conducts the act of preying.

2.2.4. Act of Moving

As a default of the act of preying, the act of moving means that artificial fish randomly determines a state within its visual scope and moves towards the state according to

2.2.5. Act of Evaluating

As shown in Figure 2, in the process of optimization, an artificial fish evaluates the acts of preying, swarming, following, and moving before determining and conducting the best act based on its evaluation so as to reach the position of higher food concentration.

In addition, a bulletin board is introduced in AFSA to record the optimal state the entire school has ever experienced. After each time of iteration, each artificial fish compares its individual state with that recorded in the bulletin board. If the state of an individual artificial fish is better than that recorded in the bulletin board, the bulletin record will be updated, or otherwise the bulletin record will remain. When the iteration is finished, the bulletin record is the expected optimal solution.

2.3. PSO-AFSA

Combining PSO with AFSA, the PSO-AFSA method takes advantage of the rapid convergence ability of PSO and the strong global searching ability of AFSA to provide more desirable optimized results.

The PSO-AFSA method works in accordance with the following procedures shown in Figure 3.

Step 1 (initialization). The particle swarm , artificial fish school , size of the particle swarm , and size of the artificial fish school are firstly defined. Individual particles and artificial fishes are generated randomly within the feasible domain of the parameters to be optimized. , , , , , and (whose definitions are provided in “Abbreviations”) are also set.

Step 2 (PSO). Each particle in the swarm updates itself according to formulas (1) and (2). After each time of iteration, each individual extremum PSO_Pbest and the global optimal extremum PSO_Gbest are obtained.

Step 3 (AFSA). The artificial fish school realizes optimization according to Section 2.2 and provides the optimized result AFSA_best after each time of iteration.

Step 4 (bulletin). A global bulletin board is introduced to compare the fitness value reported back from the particle swarm and the artificial fish school with the better value recorded in the global bulletin board (PSO-AFSA_best). When PSO_Gbest is better than AFSA_best, the optimization result from AFSA is replaced by PSO_Gbest, which can improve the optimization efficiency of AFSA. When AFSA_best is better than PSO_Gbest, the optimization result from PSO is replaced by AFSA_best, which can strengthen the global searching ability of PSO.

Step 5 (termination conditions). Steps 24 repeat till the termination condition is satisfied (such as times of iteration or error tolerance).

Step 6 (output). When the optimization completes, PSO-AFSA_best recorded on the bulletin board is the optimized result expected.

3. Frames, Controller, and Motion Models of the AUV

3.1. Construction and Transformation of Frames

In accordance with the standard symbol system, the inertial frame and the body frame [16] are constructed as shown in Figure 4.

The transformation between the inertial frame and the body frame complies with [17] where is the transformation matrix, is the heading angle, is the trimming angle, and is the heeling angle.

3.2. Profile of Research Object

Designed with conventional streamline, the research object weighs 183 kg, 2.55 m long, with the cruising speed of 3 kn. It is equipped with one thruster at the stern, together with one rudder and one elevator. The underactuated AUV can realize movement in five degrees of freedom including the surge, sway, and heave directions, as well as the pitch and yaw dimensions. The gravity center of the AUV is the origin of the body frame and its weight is equated to its buoyancy. The buoyancy center is 0.02 m over the gravity center in a vertical line. The AUV is assumed to be in a symmetric structure in left-right, front-rear, and top-bottom dimensions.

The AUV adopts sigmoid-function control method that integrates fuzzy control with PD control structure [18]. Due to the simple structure and demand on small number of parameters, the sigmoid-function control method has been successfully applied to different models of AUV motion control and received admirable control result. Numerous field trials have also justified the feasibility and effectiveness of sigmoid-function method in underwater vehicle motion control. In practice, however, the control parameters of sigmoid-function method mostly come from the designer’s personal experience and trials. The adjustment process is not only time-consuming but also difficult to achieve satisfactory control parameters. For the interest of efficient parameter adjustment and more desirable test results, it is necessary to optimize the control parameters of sigmoid-function method with PSO-AFSA method.

The sigmoid-function controller is expressed as [19]where and are the control parameters. and are, respectively, the deviation and rate of deviation change between the desired value and actual value of the input. is the control output.

3.3. AUV Motion Models
3.3.1. Motion Model for the Horizontal Plane

The kinematic equation of the research object in the horizontal plane is [20]

The kinetic equation of the research object in the horizontal plane is [20]where and are the AUV’s linear velocity in the surge and sway directions, is the AUV’s angular velocity in the yaw dimension, is the force in the surge direction, is the moment in the yaw dimension, is the mass of the AUV, and and are hydrodynamic coefficients. The hydrodynamic coefficients are obtained with planar motion mechanism in the circulating water flume as shown in Figure 5. The hydrodynamic tests carried out and hydrodynamic coefficients of the AUV in the horizontal plane are, respectively, provided in Tables 1 and 2.

It can be inferred from formula (11) that there is no input in the sway direction, which means that the AUV is obviously an underactuated system.

3.3.2. Motion Model for the Vertical Plane

The kinematic equation of the research object in the vertical plane is [20]

The kinetic equation of the research object in the vertical plane is [20]where and are the AUV’s linear velocity in the surge and heave directions, is the AUV’s angular velocity in the pitch dimension, is the force in the surge direction, is the moment in the pitch dimension, is the mass of the AUV, is the weight of the AUV, is the buoyancy of the AUV, and is the vertical distance between the buoyancy center and the gravity center. The hydrodynamic coefficients such as and have the same definitions as those in the horizontal motion model. The hydrodynamic coefficients of the AUV in the vertical plane are listed in Table 3.

It can be inferred from formula (14) that there is no input in the heave direction, which means that the AUV is obviously an underactuated system.

4. Control Simulations

In order to verify the PSO-AFSA method proposed, the control simulations are carried out with the platform of Matlab 8.6 in the horizontal plane and vertical plane, respectively. The property parameters and hydrodynamic coefficients of the AUV are listed in Tables 2 and 3.

4.1. Simulation in the Horizontal Plane

When applied to control parameter optimization in the horizontal plane, the PSO-AFSA method is firstly written in the  .m file and the simulation model is then constructed in Simulink as shown in Figure 17.

Since the AUV realizes movement in three degrees of freedom in the horizontal plane, the PSO-AFSA method implements parameter optimization for and control at the same time. and , the parameters for velocity control, are optimized based on the deviation and rate of deviation change between the desired velocity value and actual velocity value. and , the parameters for heading angle control, are optimized based on the deviation and rate of deviation change between the desired heading angle value and actual heading angle value.

The indicator function of Integral of Time-Weighted Absolute Value of the Error (ITAE) is adopted in this paper to evaluate the optimization of control parameters. ITAE gives little consideration to the initial deviation but puts more emphasis on the overshooting and adjusting time. ITAE is commonly used in the control fields because it comprehensively reflects the rapidity and accuracy of the control system. The function to be optimized is as follows [21]:where stands for the error between the desired and actual inputs and , , , and are the control parameters to be optimized.

For each time of iteration in PSO-AFSA optimization, the two sets of control parameters, and , reported back from PSO and AFSA are stored in Matlab workspace and then input to the four modules of the simulation control model in Simulink. The simulation time is set to be 50 s, after which the fitness value of is reported back from the module to Matlab workspace to enable the PSO-AFSA method to continue with the optimization.

In the optimization of underactuated AUV control parameters for the horizontal plane, the PSO-AFSA method is set as follows: , , , , , , and . Based on the experience in practice, . The simulation model is set with fixed-step solver with the sample time of . In addition, disturbing items are also included in the simulation model, with the current velocity and current angle . Figure 6 shows the optimization results for AUV motion control in the horizontal plane with the desired velocity and desired heading angle .

It can be seen in Figure 6 that the optimized parameters for velocity control are and and those for heading angle control are and . The best fitness value comes from at the end of each time of iteration. Figures 7 and 8 show, respectively, the control result of velocity and heading angle with the optimal parameters .

As shown in the simulation results, the two sets of control parameters and optimized by the PSO-AFSA method enable the AUV to achieve the desired velocity and heading angle value within a very short period of time in a steady manner.

4.2. Simulation in the Vertical Plane

When applied to control parameter optimization in the vertical plane, the PSO-AFSA method is also firstly written in the  .m file and the simulation model is then constructed in Simulink as shown in Figure 18.

Since the AUV realizes movement in three degrees of freedom in the vertical plane, the PSO-AFSA method implements parameter optimization for and control at the same time. The same as the optimization in the horizontal place, and are optimized based on the deviation and rate of deviation change between the desired and actual velocity values. and are optimized based on the deviation and rate of deviation change between the desired and actual trimming angle values.

The indicator function of Integral of Time-Weighted Absolute Value of the Error (ITAE) is also adopted for the optimization of the control parameters in the vertical plane. The simulation procedures and settings are the same as those for the horizontal plane.

In the optimization of underactuated AUV control parameters for the vertical plane, , , , , , , , and have the same settings as those for the horizontal plane. Based on the experience in practice, . The simulation model is set with fixed-step solver with the sample time of 0.01 s. Again, disturbing items are also included in the simulation model, with the current velocity and current angle . Figure 9 shows the optimization results for AUV motion control in the vertical plane with the desired velocity and desired heading angle .

It can be seen that the optimized parameters for velocity control are and and those for trimming angle control are and . Figures 10 and 11 show, respectively, the control result of velocity and trimming angle with the optimal parameters .

As shown in the simulation results, the two sets of control parameters and optimized by the PSO-AFSA method show admirable controlling quality by enabling the AUV to reach the desired velocity and trimming angle within a very short period of time without overshooting.

5. Field Trials

In order to justify the effectiveness of the PSO-AFSA method, the optimized control parameters and and and were applied to field trials in the horizontal plane and vertical plane, respectively. The field trials were carried out as shown in Figure 12, with the trial results shown in Figures 1316. In Figure 12, (a) provides the environment of the field trials, (b) shows the launch of the AUV, (c) shows the AUV in sea trials, and (d) shows the retrieval of the AUV.

Figures 13 and 14 show, respectively, the result of velocity control in the surge direction and heading angle control in the yaw dimension with the desired velocity and desired heading angle . Overshooting is hardly seen in the velocity output, with the error less than in the steady state. The heading angle control result is output smoothly with rapid convergence and hardly overshooting. The error is less than , which reflects the admirable control effect.

Figures 15 and 16 are the result of velocity control in the surge direction and trimming angle control in the pitch dimension with the desired velocity and desired trimming angle . No obvious overshooting is seen in the velocity output with the velocity error less than in the steady state. The trimming angle control shows rapid convergence with the error less than , which can fully satisfy the requirement on accuracy in engineering practice.

In the field trials, there exists inevitable rough disturbance from the complex marine environment, which can never be accurately estimated in the simulations. This accounts for the fluctuation in the outputs of heading and trimming angle control. As shown in the field trial results, the control parameters optimized by the PSO-AFSA method enabled the research object to achieve rapid convergence, with admirable quality, and the desired control states in the horizontal plane and vertical plane control.

6. Conclusions

PSO and AFSA are combined in this paper to solve parameter optimization for underactuated AUV control. There exists great difficulty in determining the parameters for underactuated AUV motion control especially with multiple degrees of freedom. Experience-based trials are time-consuming and difficult to get satisfactory control parameters. The existing optimization methods failed to provide a satisfying solution to underactuated AUV motion control with multiple degrees of freedom in view of rapid convergence and global optimal solution.

The proposed PSO-AFSA method is expounded when applied to parameter optimization for underactuated AUV motion control. The simulation tests and field trials were then carried out to prove that the control parameters optimized by the PSO-AFSA method can achieve admirable control effect over the underactuated AUV in the horizontal plane and vertical plane. The control quality can meet the requirement on precision in engineering practice. Although the PSO-AFSA method proposed in this paper is applied to parameter optimization for underactuated AUV motion control, the research findings are also of practical significance to parameter optimization of full-actuated and overactuated AUVs. The research later will focus on the feasibility and effectiveness of the PSO-AFSA method in parameter optimization for full-actuated and overactuated AUV motion control.

Abbreviations

Variables
:Number of artificial fish
:State vector of artificial fish
:Visual scope of artificial fish
:Maximum step length of artificial fish
:Crowding factor
:Maximum trial times of artificial fish for each act
:Distance between two artificial fish
:Food consistence corresponding to position (or the fitness value of the function to be optimized).
Acts
:Act of preying
:Act of swarming
:Act of following
:Act of moving
:Act of evaluating.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors are grateful to the support of the National Science and Technology Major Project (2015ZX01041101), Project 9140C270102150C27001, funded by Science and Technology on Underwater Vehicle Laboratory, Harbin Engineering University, and the National Natural Science Foundation of China (51179035 and 51509057). The gratitude also goes to Yulei Liao, Jiangfeng Zeng, Jingyu Zhang, and all those who helped with the completion of this paper.