Abstract
In this paper, the ant colony optimization (ACO) method is used to identify the parameters of a 3-DOF nonlinear vessel model. Identifying the parameters is abstracted as a nonlinear optimization problem to solve through the ant colony optimization algorithm. The identification procedure is divided into two parts. The first part of the identification procedure is to identify the parameters related to surge motion. The second part of the identification procedure is to identify the rest parameters of the vessel’s kinetics model. In the surge model identification procedure, the transient motor speed is used to generate the training data, and in the sway and yaw motion identification procedure, the zigzag maneuvering with different motor speeds is used to generate the training data. All the parameters are identified by the ACO method and the least-square (LS) method based on the training data and then validated on the validation data. The prediction performance of parameters identified by different methods is compared in the simulation to demonstrate the effectiveness of the ACO algorithm.
1. Introduction
Unmanned technology has developed rapidly in recent years and attracted more and more attention from academia and industry. Many kinds of unmanned products such as unmanned vehicles, unmanned aerial vehicles, unmanned surface vessel, and unmanned submersibles have been widely deployed as a network in various situations such as scientific research, environmental missions, ocean resource exploration, military use, and other applications [1] to help people improve work efficiency. As an intelligent device that works on the water, the unmanned surface vessel can work as a node of the overall unmanned network and extend the working range of the entire unmanned network to the surface of the water and underwater. The level of intelligence of the unmanned network is related to the level of intelligence of every node in the network. A sufficiently intelligent unmanned surface vessel contains a lot of techniques such as navigation techniques [2, 3], guidance techniques [4, 5], and control techniques [6–8].
The modeling of the unmanned surface vessel is imperative for both control method design and simulation study purposes [1]. To describe the vessel motion in the surge, sway, and heave, a nonlinear 6-DOF model with different dimension motions coupled together is imperative. However, the nonlinear 6-DOF model has lots of parameters which are very difficult to identify, the vessel algorithms designed based on the nonlinear model are very difficult, and the real-time performance of the algorithms is hard to guarantee. For algorithm design, some simple models such as the first-order Nomoto model proposed by Nomoto in 1957 [9, 10] are used. The Nomoto model describes vessel motion approximately under the assumption that the forward speed of the vessel changes slowly. Except for the Nomoto model, the 3-DOF model, including surge velocity, sway velocity, and yaw angular velocity, is also widely used in vessel control [11–13].
The prediction results of the Nomoto model and 3-DOF model cannot meet the requirements of the simulation study. How to identify the parameters of the nonlinear 6-DOF model is a challenging problem. The towing carriage can identify the parameters of the vessel model such as CyberShip II [14], but the size of the towing carriage limits the size of the identified vessel. Some research use CFD [15] to simulate the ship motion and to identify the parameters [16], but the accuracy of the CFD in a complex situation is still worthy of further research. Many research studies choose full-scale vessel trials to identify the vessel model; the approach to model identification involved adapting model parameter value which was proposed in [17]. In [18], a new transformed multi-innovation least-squares (TMILS) algorithm is developed; the model structure is identified first and then the parameters are identified with full-scale trial data. An artificial neural network was used in [19] to model a high-speed craft with sea trial data.
As for the identify method, the least-squares method [20–23] has been a widely used method in system identification procedure, but the least-squares method can only deal with the linear problem; some identified procedure are abstracted as a nonlinear optimization problem. Support vector machines have the advantage in solving the nonlinear optimization problem, and it was used to identify the parameters of the vessel in [24–27]. Except for the least-square method and support vector machines method, some other methods are also used to identify the parameters. In [28], the identification procedure was divided into two steps: the first step was to determine the structure of the nonlinear model and the second step was parameter estimation refinement by using a nonlinear prediction error method with the unscented Kalmen filter. In [29], a sensitivity analysis and SQP method were used to identify the hydrodynamic coefficients of the Esso Bernicia tanker.
In this paper, the ant colony optimization method is used to identify the parameters of the vessel kinetics model. The parameter-identified problem is summarized as a nonlinear least-square problem, and the ant colony optimization method is used to solve the nonlinear least-square problem. The solution to the problem is the parameters to be identified. The identification procedure is divided into two parts [23]: the parameters related to surge motion were identified first by an experiment and then the rest of the parameters related to sway and yaw motion were identified by the zigzag test.
The organization of this paper is as follows. In Section 2, a nonlinear discrete 3-DOF state-space model of USV with surge speed, lateral speed, and yaw angle as state variables is established. Section 3 discusses the ant colony optimization method. Section 4 illustrates and analyzes the identification results. Section 5 summarizes the conclusions.
2. Problem Formulation
2.1. 3-DOF Nonlinear Model
In this section, the 3-DOF nonlinear symmetric model is established. By neglecting the heave, roll, and pitch motion, we consider the maneuvering models proposed by [17, 30](i)Vector denotes vessel surge velocity, sway velocity, and yaw angular velocity, respectively.(ii)Matrix accounts for inertial effects:(iii)Matrix accounts for centrifugal and Coriolis effects: where(iv)Matrix accounts for viscous and dissipative effects: where(v)Vector denotes the force and torques generated by actuators.(vi) denotes force and torques caused by wind(vii) denotes force and torques caused by wave.
The vessel model used in this paper is CyberShip II [14], which has a bow thruster, two thrusters, and two rudders. For the convenience of modeling force and torques, the bow thruster is excluded from the actuator model, and two thrusters and rudders are equivalent to one. Thus, the actuator model can be written aswhere matrix is the actuator configuration matrix and vector is the force and torques related to speed of the motor and rudder angle :with
2.2. Discrete Nonlinear Model
In the vessel experiments, the experiment data are collected in the discrete form. Also, vessel motion controllers are usually designed in the discrete zone. Therefore, the continuous-time model equation (1) is approximated as a discrete model, and the parameters of the discrete model are identified in this paper. The external force is all ignored for the convenience of discretizing the continuous-time model, and equation (1) can be rewritten aswhere the matrix and vector denote the time-varying terms and constant parameters in the vessel model:
The sample time of collecting data in simulation is denoted as ; equation (10) can be approximated by the back Euler integration method at time aswhere .
Because the matrix and are both constant matrix, thus, equation (12) can be rewritten as
The parameters , , and are unknown parameters. In Section 3, an ACO method is used to identify parameters of equations (13)–(15).
3. Parameter Identification Based on the ACO Method
In this section, the parameter of discrete vessel nonlinear model equations (13)–(15) is identified based on the ACO method.
3.1. Parameter Identification Formulation
Consider that the vessel has two main motion states: one is the straight-line surge motion and the other is the turning motion. Therefore, parameter identification includes two steps: the first step is to identify the parameters related to surge motion and the second step is to identify the residual parameters. In the straight-line surge motion, the lateral velocity and yaw angular velocity are both close to zero. Thus, the surge motion can be decoupled from the other motion, the parameters related to straight-line motion and thrust force can be identified. By ignoring the terms related to the lateral and yaw motion, equation (13) can be simplified aswhere and .
Based on equation (16), the predicted vessel surge velocity at time , denoted as , can be calculated by the motor speed at time , denoted as , and predicted as surge velocity . Then, the surge motion model identification problem can be described as a nonlinear optimization problem:where denotes the predicted surge speed based on the parameter and denotes the surge speed collected in the experiments.
Since the parameters are identified in equation (17), then the rest parameters can also be described as a nonlinear optimization problem to identify. Based on equations (13)–(15), the vessel state can be predicted bywhere
Based on equation (18), the predicted vessel state at time , denoted as , can be calculated by the motor speed , rudder angle , the predicted surge velocity , the predicted lateral velocity , and the predicted yaw angular velocity . Then, the parameters’ identification problem can be described as a nonlinear optimization problem:
The parameters now can be identified by solving two nonlinear optimization problem equations (17) and (20).
3.2. ACO Formulation
As mentioned above, the key to identify the model parameters is solving an optimization problem as equation (17) or equation (20). Generally, the typical unconstrained continuous optimization problem is shown in equation (21), where is the objective function and is the decision variable (D.V) in the form of an N-dimensional vector in which the member changes continuously:
As far as equations (17) and (20) are concerned, and are objective functions of the two identification problems, respectively. Accordingly, and are high-dimensional D.Vs.
Traditional optimization algorithms find it difficult to solve the nonlinear high-dimensional optimization problems described in equations (17) and (20). A new computational paradigm called “Ant System” is proposed in [31], which is used for stochastic combinatorial optimization and motivated amounts of interrelated solutions to improve the performances. The representative one is Ant Colony Optimization (ACO). The parameter identification problem we focused on, however, is a typical optimization problem of which decision variables (D.V) vary in continuous domains.
Despite the method that discretizes, the feasible region takes the effect to a certain extent; the accuracy and efficiency are severely restricted. Socha and Dorigo [32] extend ACO to continuous domains and keep the relevant conceptual structure invariable. The complete flowchart of the CACO is shown in Figure 1. In CACO, the fundamental work is initializing the elementary data structures and parameters to abstract the actual optimization problem and determine the initial state. Pheromone, inspired by the natural behavior of ants, which records the excellent solutions, is the significant feature of ACO. Different from the ACO which uses a high-dimensional matrix to represent the pheromone, CACO applies the continuous probability density function (CPDF), such as the Gaussian function. Furthermore, CACO maintains a solution archive of capacity composed of n-dimensional decision variables , which are constructed by ants, and the corresponding fitness is to memorize the several former solutions. For the surge model identification problem, the variable n is 4 and the fitness is given by . As for the remaining parameters identification problem, the variable n is determined by , that is, 22, and the fitness is calculated by . Moreover, the solution vectors are supposed to be initialized using random values, sampling from the search space . The other related parameters which will be discussed below are supposed to be set reasonably at this stage.

As shown in Figure 1, once the initialization work is accomplished, the algorithm will step into searching for solutions in and further instruct to update the pheromone. In the course of searching for solutions for an individual ant, the first step is choosing a target; that is, select a solution from the archive based on the selected probability following equations (22) and (23) and the roulette method. The value l is the rank of the corresponding solution, is the size of the archive, and is an extra parameter to adjust the standard deviation, which has an effect on the shot probability of different ranks. Namely, is a trade-off factor between the global and local optimal solutions:
It is worth noting that the ants in ACO or CACO are not a container (i.e., a vector composed of decision variables) but a solution builder (i.e., a pathfinder in the search space to construct the solution vector). For an -dimensional decision variable, an ant needs n steps to accomplish the construction per iteration. Once the target is selected, the destination of the dimension variable is assigned by Gaussian sampling using the function described as
The parameter , and is calculated as equation (25), where has equivalent effect with the pheromone evaporation rate which can influence the speed of convergence:
On account of the pheromone reflects on the solution archive, an update-pheromone operation may be accomplished by renewing the table. After all of the ants complete the construction of solutions, there will be solutions. For the sake of the superior solution to maintain the archive, all solutions should be ordered according to the evaluation index (e.g., the root mean square error between predicting results and sample data). In the subsequent step, the worst m solutions would be discarded and the others remain in the archive.
After updating the archive, the algorithm tests’ termination conditions (such as the maximum iterations and convergence precision) are in accordance with the optimization results of the current generation. If the termination condition is not met, the optimization problem will repeat the searching, evaluating, and renewing process mentioned above until the condition is satisfied. Otherwise, the iteration should be broken up and the optimization results should be output, which are the optimized model parameters and and the corresponding model performance.
4. Simulation Results
In this paper, the CyberShip II is used as a study example. The kinetics model structure of the vessel is already known, and the parameters of the kinetics model are unknown. The parameters are identified by the ACO method and the LS method, respectively, and the identification results are compared to demonstrate the effectiveness of the ACO method. Normally, in the vessel identification experiments, the vessel states and actuator states such as velocity, angular velocity, motor speed, and rudder angle are collected by the sensor with noise. Therefore, the Gaussian white noise is added in the whole identification simulations to simulate the sensor noise. The whole identification procedure is divided into two steps, the first step is to identify the parameters related to the surge motion and the second step is to identify the parameters related to the sway and yaw motion.
4.1. Surge Model Identification
In the vessel surge motion, sway velocity and yaw angular velocity are approximately equal to zero. Therefore, the couple terms of the vessel kinetics model related to sway and yaw motion can be ignored. The purpose of the surge model identification is to identify the parameters , , , , and in equation (13).
The vessel motor speed is used as the excitation input which varies randomly between 5 rpm and 25 rpm, and the vessel surge velocity as the response to the excitation input varies between 0.2 and 0.8 , as shown in Figure 2. The transient motor speed and surge speed are used as training data to identify the parameters. The parameters related to the ACO method in solving surge model identification problem are shown Table 1, and the ACO method convergence curve are shown in Figure 3. From Figure 3, we can see the fitness which is the value of in equation (17) gradually decreases and becomes stable after 450 iterations. The identified results of the ACO method and LS method are shown in Table 2.

(a)

(b)

In Figure 2, the prediction results of parameters identified by the different methods are very close. In addition, another two different surge motions are used as validation data to compare the performance of different algorithms, as shown in Figures 4 and 5. In Figure 4, the input motor speed is a PRBS sequence. From the results, we can see the prediction results of different methods are very close, except that the prediction results of the LS method are slower than the simulation data when the surge speed is larger than 0.9 .

(a)

(b)

(a)

(b)
In Figure 5, the input motor speed is maintained at 5 rpm, 10 rpm, and 20 rpm, so the surge speed can finally be maintained at around 0.16 , 0.36 , and 0.67 . We can see from the results that the prediction results of different methods are almost the same when the motor speed is kept at 5 and 10 . However, the prediction surge speed of the LS method is larger than the simulation results when the motor speed is kept at 10 .
In order to quantify the comparison result of different methods, the R-square is used as an index function. The closer the R-square to 1, the better the identified results, and in some situations, the R-square may be negative; then, we use the symbol to indicate it. From the R-square results of different methods in Table 3, we can see the R-square values of the ACO method and the LS method are very close. However, the R-square value of the ACO method is better than the LS method in training data and validation data, so the ACO method has better performance than the LS method in the surge model parameters’ identification simulation experiments.
4.2. Lateral and Yaw Model Identification
In the sway and yaw model identification simulation experiments, the rest parameters related to the sway and yaw motion in equations (13)–(15) are identified. Zigzag tests are widely used in vessel parameters’ identification experiments [16, 24]. In this paper, a zigzag test contains constant motor speed which is used to generate the training data, as shown in Figure 6 and Table 4.

(a)

(b)

(c)

(d)

(e)

(f)
The convergence process of the ant colony algorithm is shown in Figure 7. The result shows that the optimal solution almost converges to the expected range after 1000 generations. The parameters identified by the LS method and ACO method are shown in Table 5.

From Figure 6 we can see that the LS method has better prediction performance than the ACO method at the surge model, sway model, and yaw model. To further verify the effectiveness and the performance of the ACO method, we use another two different excitation inputs to generate the validation data which are shown in Figures 8 and 9, and for the convenience of comparison, the heading angle is not changed to the range from to . In addition, the R-square value is used to quantitatively compare the prediction performance for the two different methods, as shown Table 6.

(a)

(b)

(c)

(d)

(e)

(f)

(a)

(b)

(c)

(d)

(e)

(f)
In Figure 8, the motor speed maintains at 10 , 20 , and 30 at different times, and the rudder angle is a PRBS sequence with different amplitudes. From the results, we can see the prediction results of ACO are slightly better than the LS method at a motor speed of 10 , but the prediction results of the two methods are similar at a motor speed of 20 and 30 . The R-square value of the ACO method is closer to 1 than the LS method on the surge model, sway model, yaw model, and heading model.
In Figure 9, the motor speed maintains at 10 , 20 , and 30 at different times, and the rudder angle maintains at , , and at different times. From the results, we can see only at a motor speed of 5 and rudder angle of ; the two methods have similar prediction results. From the R-square values, we can see the prediction results of the ACO method have very good performance, but the prediction results of the LS method are only valid at low motor speed and small rudder angle.
In the identification results of the sway and yaw motion, although the prediction results of the LS method are better than the LS method in training data, the identified parameters of the LS method are invalid in predicting the surge, sway, and yaw motion when the motor speed and rudder angle maintain the constant value. However, the parameters identified by the ACO method have a good prediction result in the surge, sway, and yaw motion both in the training data and validation data.
5. Conclusions
This paper presents the parameters’ identification under the known structure of the vessel kinetics model. The parameters’ problem is summarized as a least-square problem; the least-square method and the ant colony optimization method are used to solve the least-square problem. The solution to the least-square problem is the parameters to be identified. The identification procedure is divided into two parts. The first part of the identification procedure is to identify the parameters related to surge motion. The second part of the identification procedure is to identify the rest parameters of the vessel kinetics model. In the identification procedure, the transient excitation inputs are used to generate the training data; the constant excitation inputs and different transient inputs are used to generate the validation data. The R-square value is used as an index function to quantitatively compare the prediction results of the ACO method and the LS method. The comparison of the identification results and maneuvering predictions demonstrate the effectiveness of the ACO method and reflect the performance advantage of the ACO method.
Data Availability
The data used to support the findings of this study are available within the article.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This work was supported in part by the Funds of the National Natural Science Foundation of China under Grant 61873050, in part by the Fundamental Research Funds for the Central Universities under Grant N2004010, in part by the Research Fund of State Key Laboratory of Synthetical Automation for Process Industries under Grant 2018ZCX14, and in part by LiaoNing Revitalization Talents Program XLYC1907088.