Next Article in Journal
Deep Learning-Based Beam Selection in RIS-Aided Maritime Next-Generation Networks with Application in Autonomous Vessel Mooring
Previous Article in Journal
Tramp Ship Routing and Scheduling with Integrated Carbon Intensity Indicator (CII) Optimization
Previous Article in Special Issue
Nonlinear Compound Function-Based Course-Keeping Control for Ships in Rough Seas
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on the On-Line Identification of Ship Maneuvering Motion Model Parameters and Adaptive Control

1
School of Electrical and Electronic Engineering, Naval University of Engineering, Wuhan 430033, China
2
School of Navigation, Wuhan University of Technology, Wuhan 430063, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2025, 13(4), 753; https://doi.org/10.3390/jmse13040753
Submission received: 26 December 2024 / Revised: 8 January 2025 / Accepted: 9 January 2025 / Published: 9 April 2025
(This article belongs to the Special Issue Optimal Maneuvering and Control of Ships—2nd Edition)

Abstract

:
This study aims to improve control accuracy across various ship types, speeds, and external interference scenarios using conventional control methods. The ship’s maneuvering model is identified online and the identified parameters are applied for self-adaptive course and track control, laying the groundwork for intelligent ship control. A response-type ship maneuvering model is used, with a forgetting factor incorporated into the recursive least squares (RLS) algorithm based on the iterative least squares (ILS) method. This addresses the limitations of the ordinary least squares (OLS) method and the RLS algorithm’s reduced update speed with data accumulation. The forgetting factor recursive least squares (FFRLS) algorithm is employed to identify the maneuverability index parameters (K and T). Data for identification are obtained via a maneuvering simulator and the impact of different forgetting factors on the identification process is evaluated. The identified results are then used to calculate real-time optimal PID (OP-PID) parameters, leading to the development of a Self-adaptive OP-PID course control method. Simulations of course and track control are conducted with various ship types and environments, comparing the Self-adaptive OP-PID with existing OP-PID methods. Results show that the Self-adaptive OP-PID outperforms the OP-PID in course stability, convergence time, and track deviation under the same conditions.

1. Introduction

The ship maneuvering motion model is essential for evaluating and predicting ship performance, solving maneuvering problems, improving safety, and guiding maneuvering and control system design. The accuracy of the model depends on the precision of the parameters and the reliability of the model construction method. Control systems based on these parameters require even higher accuracy. Current methods for determining parameters include theoretical calculations [1], pool towing tests [2], and parameter identification [3,4]. While theoretical calculations are complex and often inaccurate and pool towing tests are costly and limited, parameter identification has helped overcome some of these challenges [5]. This technique uses experimental data and theoretical models to identify parameters that best fit the data, enabling future predictions of ship behavior. Mainstream algorithms in parameter identification include least squares [6], Kalman filters [7,8], support vector machines [9], and neural networks [10]. Each method has its advantages depending on the model. This paper uses an improved recursive least squares method to identify parameters of a second-order response model and studies adaptive ship motion control based on these results. Recent advancements, such as SDN-HP and EKF [11], have made parameter identification more accurate [12,13,14]. However, our primary goal is not parameter identification but using the identified parameters for more accurate ship motion control, including heading and trajectory control, as well as future automatic collision avoidance technologies.

2. Construction of the Ship Maneuvering Motion Model

2.1. Coordinate System

Consider the geodetic coordinate system and the ship’s coordinate system, as shown in Figure 1.
Here, u, v, and w represent three-axis velocity while θ, γ, and ψ denote three-axis angle increments, respectively. As illustrated in the above figure, the ship’s navigation process at sea is inherently complex, encompassing six degrees of freedom. The three degrees of freedom associated with heave, roll, and pitch exert a relatively minimal influence on the overall motion. Accordingly, the six-degree-of-freedom motion model is simplified into a three-degree-of-freedom model, with consideration limited to the ship’s rolling, pitching, and yawing motions [15]. The simplified ship plane coordinate system is illustrated in Figure 2.
In O0-X0Y0, the origin O0 is taken as the initial point of the ship and the O0X0 and O0Y0 axes point due east and north, respectively. In o-xy, the ship is approximated as a rigid body, the origin o is selected at the center of gravity of the ship, the oy axis is perpendicular to the ship’s mid-transverse section, the positive direction is the ship’s bow direction, the ox axis is perpendicular to the mid-longitudinal section, and the positive direction is the ship’s right chord. V is the speed of the ship and u, v, and r are the velocity components of V in the x and y axes and the head-turning angular velocity, respectively.

2.2. Equation of Ship Motion

As mentioned above, when discussing the plane motion of a ship, the three degrees of freedom of the ship, including heave, roll, and pitch, have little influence on the motion. In general, the ship’s motion is described only by the model including sway, surge, and yaw motion [15]:
m ( u ˙ v r x G r 2 ) = X m ( v ˙ + u r + x G r ˙ ) = Y I z z r ˙ + m x G ( v ˙ + u r ) = N
where m is the mass of the ship; u and v are the velocity along the x and y axes, respectively; r is the angular velocity of turning the head; xG is the transverse coordinate of the center of gravity of the ship; Izz is the moment of inertia of the z axis; and X, Y, and N are the force and moment in the transverse, longitudinal, and yaw directions, respectively.
The kinematic equation shown in Equation (1) usually contains multiple linear and nonlinear hydrodynamic derivatives. The separable mathematical model proposed by the Japanese mathematical modeling group in the 1970s explains the physical meaning of each hydrodynamic derivative according to physical principles, omits some relatively minor hydrodynamic derivatives, and decomposes the force and moment on the ship, the rudder, and the propeller. Considering their mutual influence, the ship motion process can be predicted more accurately, as shown in Equation (2):
X = X H 0 + X P + X R + X c u r r e n t + X w i n d + X w a v e Y = Y H 0 + Y P + Y R + Y c u r r e n t + Y w i n d + Y w a v e N = N H 0 + N P + N R + N c u r r e n t + N w i n d + N w a v e
The specific meanings of the variables on the right side of the equation are not repeated here and reference can be made to the reference [16].
When conducting course control, if the longitudinal velocity does not change much, Equation (1) can be simplified to:
m + m y v ˙ + m + m x u 0 r = Y v v + Y r r + Y δ δ I z z + J z z r ˙ = N v v + N r r + N δ δ
If the initial values of the motion variables are zero, the transfer function from rudder angle to course can be obtained after the Laplace transform of Equation (4):
H ( s ) = ψ s δ s = K 1 + T 3 s s 1 + T 1 s 1 + T 2 s
The above equation is written in time domain form as:
T 1 T 2 ψ + T 1 + T 2 ψ ¨ + ψ ˙ = K δ + T 3 δ ˙ T 1 T 2 = m + m y I z z + J z z / C T 1 + T 2 = [ m + m y N r I z z + J z z Y v ] / C T 3 = ( m + m y ) N δ / ( N v Y δ N δ Y v ) K = [ N v Y δ N δ Y v ] / C C = Y v N r N v Y r m + m x u 0
In the equation, the meaning of each variable and calculation method can be referred to in the related reference [17]. Given the considerable inertia of the ship, the response characteristics are predominantly concentrated in the low-frequency region. Consequently, the high-frequency term in the aforementioned equation is disregarded and the second-order Nomoto response model, as illustrated in Equation (6), is derived:
T ψ ¨ + ψ ˙ = K δ
If the motion of a ship is nonlinear when it is in an unstable or critically stable state during navigation, Equation (6) is transformed into the second-order nonlinear Nomoto response model shown in Equation (7):
T ψ ¨ + ψ ˙ + α ψ 3 = K δ
The linear, as well as nonlinear, Nomoto response models here are greatly simplified compared to other maneuvering motion models, both in terms of the presentation and solution of differential equations. Therefore, the subsequent contents of this paper will be based on the Nomoto model; firstly, its key parameters K and T are identified online and the model is constructed according to the identified parameters to deduce the ship maneuvering process.
Compared to other models, the Nomoto model requires fewer parameters and its theoretical framework has been widely validated. It can describe a ship’s heading response with a minimal number of parameters. Therefore, it has been applied in various real-world scenarios. For example, Kongsberg Maritime’s autopilot system uses the Nomoto model to design ship heading control algorithms and Sea Machines Robotics’ automated ships employ the Nomoto model for precise heading and trajectory control.

2.3. Calculation of Ship Maneuverability Index

In Equation (7), K and T represent the ship maneuverability index. There are two principal calculation methods: the first is derived from the Z-type test while the second is calculated using the regression formula [18]. However, the Z-type test is both costly and complicated. The regression formula is calculated as shown in Equation (8):
K = K v / L T = T L / v
where K and T are dimensionless constants; its statistical formula is shown as Equation (9):
K = 47.875 2.64 L B + 0.004 L d A R + 66.589 C b 2 112.702 C b + 3.826 C b L B 0.293 C b B d T = 26.464 + 0.408 C b L d A R 0.033 L B L d A R 79.114 C b + 0.757 L B + 46.129 C b 2
where v is the speed of the ship; L, B, and d are the length, width, and draft, respectively; and Cb and AR are the block coefficient and rudder area, respectively.

3. Parameter Identification of the Ship Maneuvering Motion Model

3.1. Recursive Least Squares Method

Least square (LS) is the most classical identification method. Its principal feature is the minimization of the root-mean-square deviation between the identification model and the real model, with the objective of maximizing the estimation of the parameters needed to be identified. It is a typical empirical risk minimization algorithm. The fundamental structure of the algorithm is as follows:
Y = X θ X R m , Y R
where X represents the input sample, Y is the output sample, θ is the parameter to be identified, and m is the dimension of the input sample. The fundamental principle of the least square method is to identify an estimated value for an unknown vector, with the objective of achieving a minimum residual sum of squares. As can be observed from Equation (10), the error vector and objective function are as follows:
min J = i = 1 m ε i 2 = ε T ε
The objective is to minimize the value of the objective function by identifying the partial derivative of J and setting it equal to zero, where n represents the number of sample pairs:
J θ θ = θ ^ = θ Y X θ ^ T Y X θ ^ = 2 X T Y + 2 X T X θ ^ = 0
The least squares estimate derived θ ^ from the aforementioned equation, which is as follows:
θ ^ = X T X 1 X T Y
The least squares algorithm displays a high degree of adaptability and is capable of producing optimal solutions for a diverse range. Nevertheless, as the quantity of data accumulates, the increasing volume of data adversely affects the real-time performance of the algorithm. Consequently, it becomes imperative to conduct parameter estimation after collecting all the data, which may introduce significant errors in ship control. In order to achieve real-time control, researchers have made enhancements to the least squares algorithm by proposing the recursive least squares algorithm, whose derivation steps are outlined below.
Rewrite Equation (10) as:
y k = H k θ ^ k
When the kth observation is made, the least squares estimate is:
θ ^ k = H T k H k 1 H T k y k
Similarly, for k+1th observations, the least squares estimate is:
θ ^ k + 1 = H T k + 1 H k + 1 1 H T k + 1 y k + 1
In Equation (16):
H k + 1 = H k h T k + 1 , y k + 1 = y k y k + 1
Substitute Equation (17) into Equation (16) to obtain Equation (18):
H T k + 1 H k + 1 = H T k H k 1 + h T k + 1 h k + 1
Define the covariance matrix:
P k = H T k H k 1 P k + 1 = H T k + 1 H k + 1 1
The properties of the inverse transformation can be determined by employing matrix operations, which ultimately yield the derivation of Equation (20):
P k + 1 = H T k + 1 H k + 1 1 = P 1 k + h k + 1 h T k + 1 1 = I K k + 1 h T k + 1 P k
Subsequently, the parameter matrix is derived as follows:
θ ^ k + 1 = P k + 1 H T k + 1 y k + 1 = P k + 1 H T k h k + 1 y k y k + 1 = P k + 1 H T k y k + h k + 1 y k + 1 = θ ^ k + K k + 1 y k + 1 h T k + 1 θ ^ k
where K(k + 1) represents the gain matrix, θ ^ k and θ ^ k + 1 are the parameter estimation matrices at the kth and k+1th, respectively, and P(k+1) is the covariance matrix.
Once the requisite calculations have been completed, the formula for the recursive least squares algorithm can be expressed as follows:
θ ^ k + 1 = θ ^ k + K k + 1 y k + 1 h T k + 1 θ ^ k K k + 1 = P k h k + 1 1 + h T k + 1 P k h k + 1 P k + 1 = I K k + 1 h T k + 1 P k

3.2. Recursive Least Square Method with Forgetting Factor

In comparison to the conventional least square method, the recursive least square method presents a substantial advantage in terms of enabling online parameter identification. However, the continuous update of data results in an increase in matrix elements, which in turn causes the inverse matrix to approach zero at a gradual rate. Consequently, the rate of model update speed slows down progressively, potentially reaching a point where it is unable to continue running due to data saturation. In essence, the excessive accumulation of past information renders the current data insignificant in comparison to their predecessors, resulting in an inability to discern any impact. To address the issue of data saturation, a forgetting factor is introduced.
The recursive least squares method with forgetting factor serves to augment the weight of new data, strengthen the influence of new data, reinforce the impact of new data on the model, diminish the weight of old data, and enhance the algorithm by conferring disparate weights upon disparate data. The forgetting factor is represented by λ and an exponential function weight is employed to determine the weighting. In this instance, the performance index of the algorithm is as follows:
J = k = 1 L λ L k y k h k θ ^ k 2
In the case where the forgetting factor is typically assumed to be within the range of 0.98 to 0.995 [19], the most recent data are given a weighting of 1 while the data from the preceding n sampling periods are assigned a weighting of λn. Following the introduction of the forgetting factor, the iterative calculation formula is revised as follows:
θ ^ k = θ ^ k 1 + K k y k h T k θ ^ k 1 K k = P k 1 h k 1 + h T k P k 1 h k P k = 1 λ I K k h T k P k 1
The recursive least squares method with a forgetting factor is an effective approach for identifying the parameters of a model. This method allows the system to focus more on the current data while also accounting for previous data in a meaningful way. The performance of the algorithm is primarily influenced by the forgetting factor. A small forgetting factor results in rapid convergence but also renders the algorithm susceptible to noise, thereby compromising the precision of parameter identification. Conversely, a large λ enhances the anti-noise performance of the algorithm but impedes convergence. Consequently, the value of λ plays a pivotal role in the algorithmic performance, necessitating a trade-off between convergence speed and noise sensitivity to achieve optimal results.

3.3. Parameter Identification of Responsive Ship Motion Model

As demonstrated in the preceding section, the recursive least squares method is well-suited for discrete-time mathematical models, as evidenced by its derivation process. Consequently, the established continuous mathematical model is transformed into a discrete mathematical model and the differential is rearranged into the standard least squares form, resulting in the following expression:
y k = φ k θ ^ k φ k = r k δ k θ ^ k = a 1   b 1 T
where φ(k) is the input vector, including the heading angular velocity r(k) and rudder angle δ(k) at time k, θ ^ k is the parameter vector to be identified. However, considering that the heading angular velocity is difficult to measure and the accuracy is poor in the real ship test or ship model test, the heading angle is usually measured by compass. Therefore, it is necessary to difference the course angle in the response model:
y k + 2 = a y k + 1 + b u k
where y k + 2 = ψ k + 2 ψ k + 1 , u k = δ k , and the transformation relationship between a1, b1, and K, T is as follows:
T = Δ t 1 a K = b 1 a Δ t
where Δ t is the sampling period, which is taken as 1 s in this paper, and the identification formula is as follows:
θ ^ k = θ ^ k 1 + K k ψ k φ T k θ ^ k 1 K k = P k 1 φ k 1 + φ T k P k 1 φ k P k = 1 λ I φ k φ T k P k 1
The complete iterative flow chart of parameter identification for the responsive motion mathematical model is shown in Figure 3 as follows:

3.4. Analysis of Identification Algorithm Based on Ship Maneuvering Simulator

In order to ascertain the veracity of the recursive least squares method with forgetting factor, the ship in the ship maneuvering simulator was employed as the test ship to obtain the response data. Initially, the ship was operated on the platform for maneuvers, with the heading angle and rudder angle information recorded by the sensor equipment, and then integrated into NMEA-0183 format for transmission through TCP. Finally, the data were decoded for the parameter identification algorithm to call. The ship shape and some ship parameters are shown in Table 1. In the presence of wind, wave, and current interference, two sets of maneuverability index identification tests were conducted at varying speeds, with the resulting identification data employed for course prediction.
Based on the data of the ship maneuvering simulator, different forgetting factors were used to identify the parameters of the responsive model and the influence of different forgetting factors on parameter identification was compared. The process of parameter identification is shown in the following figures.
Combining Figure 4, Figure 5, and Table 2 reveals that the convergence patterns of all parameters show a remarkable similarity: as the number of recursions increases, they begin to stabilize around the 150th recurrence before converging to a fixed value. In the last recursion, a1 = 1.9375, a2 = −0.9375, and b = 0.00467 in Figure 5 while a1 = 1.9601, a2 = −0.9601, and b = 0.00235 in Figure 6. Here, a1 and a2 represent newly introduced parameters in the differential transformation of the response model whose sum is equal to one. By comparing the identification curves of two forgetting factors, it can be observed that smaller forgetting factors result in higher noise sensitivity and better system tracking capability at the expense of increased steady-state error. Considering that most actual ship maneuvering involves external disturbances, a forgetting factor of 0.98 was selected. After selecting the appropriate forgetting factor, the recursive least squares method with forgetting factor and the conventional least squares method were used to identify K and T, respectively, and the 20°/20° Z-shape test was carried out according to the identification results. The test results are shown in Figure 6.
In the above figure, the blue curve is the predicted course change curve and the red curve is the actual output course change curve of the ship maneuvering simulator. It can be seen from the figure that in both the ordinary least squares method and the recursive least squares method with forgetting factor, the predicted course angle through identification is in good agreement with the actual output value, which has a certain accuracy. The maximum prediction error of the recursive least squares method with forgetting factor is about 3° and the maximum prediction error of the ordinary least squares method is about 5°. The prediction results of the former are more consistent. Therefore, the K and T values identified by the recursive least squares method with forgetting factor are practical and effective and have certain advantages compared with the traditional least squares method.
The parameters K and T were calculated or identified using Equation (8) and FFRLS, respectively, and compared with the actual K and T values provided by the ship maneuvering simulator. The results are shown in Table 3.

4. Ship Course and Track Control Method

4.1. PID Course Control Method Based on Optimal Control Theory

The three parameters, Kp, Ki, and Kd, of the traditional PID course autopilot are mostly determined by the ship’s pilots or related technicians based on experience or repeated trials. Generally, they are a set of fixed values, which cannot be adjusted adaptively according to the changing motion state of the ship and other factors so the autopilot cannot achieve the best control effect in many cases. Considering the quadratic optimal control method [16], an algorithm that can obtain the OP-PID parameters is designed based on the original PID control research to improve the control effect of PID.
According to the Nomoto equation of Equation (9), the state equation of ship steering can be obtained as follows:
ψ ˙ ψ ¨ = A ψ ψ ˙ + B δ
The output equation is as follows:
ψ = C ψ ψ ˙
The matrix in the above equation is as follows:
A = 0 1 0 1 T , B = 0 K T , C = 1 0
When ship sailing, it is necessary to reduce energy consumption as much as possible while maintaining the accuracy of the heading course. Frequent steering can accurately control the course but it will also increase energy consumption and reduce the speed. In order to balance them, the quadratic performance index function is used for optimization [20]. The energy consumption and course deviation are taken as variables and the function value of Equation (32) is minimized by adjusting the control parameters:
J = 0 t Δ ψ 2 + m δ 2 d t
where m is the weighting coefficient, whose value changes according to environmental conditions, generally ranging from 0.1 to 10 (its specific values are given in Table 4), and J is the comprehensive evaluation index.
Based on the above constraints, the corresponding PID parameters can be obtained, as shown in Equation (33). The relevant mathematical principle and derivation process have been elaborated in detail in the relevant reference [20] and will not be expanded here:
K p = 1 λ K i = 1 10 K T λ 3 2 K d = 1 K 1 + 2 K T λ 1
Compared with the traditional empirical setting method, the PID parameters obtained from the above equation perform better in terms of course convergence time, rudder angle adjustment frequency, and variation amplitude. The author has carried out relevant simulation experiments, which will not be repeated here and can refer to reference [21].

4.2. Adaptive OP-PID Course Control Method

According to Equation (33), it is easy to find that the key to OP-PID parameters lies in the ship’s maneuverability indexes K and T. In previous related studies, the statistical formula of Equation (11) is mostly used to calculate them, which also has certain adaptability. In Chapter 3, based on solving the problems that conventional least squares cannot be identified online and the updating speed of recursive least squares becomes slow with time, this paper tries to use the recursive least squares method with forgetting factor to control ship motion and its structure diagram is shown in Figure 7 below:
Here, e(t) is the difference between the target course and the actual course.
The following closed-loop system stability proof is performed. K and T are constant and positive, both according to statistical formulas and online parameter identification. Figure 8 shows the parameter identification results and the curve of ship speed changing.
Given the model equation of the control system, the characteristic equation of the system shown in Equation (34) can be obtained according to Equation (5):
T σ 3 + 1 + K K d σ 2 + K K i + K K p = 0
It can be seen from Figure 8 that K > 0 and T > 0. And because λ > 0, we can determine that Kp > 0, Ki > 0, and Kd > 0, that is, all the coefficients of the characteristic equation are positive, and the elements in the first column of Rouse’s table are positive. According to the Routh criterion, the control system is stable.

4.3. Track Control Method

Indirect track control, which is more mainstream and easy to implement at present, is adopted and its process is shown in Figure 9.
Indirect track control consists of three loops coupled to each other. The outer loop compares the position data obtained by the ship position sensor with the planned route to calculate the track deviation η(k). The target course Ψr(k) obtained by the guidance method is used as the input of the course control loop to guide the ship to sail in the direction of eliminating the track deviation. In the middle loop, the actual course Ψ(k) is compared with the target course Ψr(k), and the course error ∆Ψ(k) is calculated, which is denoted as Ψr(k) – Ψ(k) and is the input of the course controller. The command rudder angle δr(k) is calculated by the course controller and transmitted to the rudder angle control loop to control the ship to sail in the direction of reducing the course deviation.

5. Simulation Experiments and Analysis

The experimental scenarios were conducted in open waters using the ship maneuvering simulator. Comparative tests were performed across multiple trials, involving different ship types and environmental disturbances. The tests compared course and track control using both OP-PID and Adaptive OP-PID controllers. The parameters for the OP-PID were obtained through the regression formula of Equations (8) and (9), while the parameters for the Adaptive OP-PID were identified online using the recursive least squares method with a forgetting factor, as introduced in Chapter 3. The Line-of-Sight (LOS) guidance method [22] was employed for route control in all cases. The key parameters for the two selected ship types are shown in Table 5.

5.1. Course Control Simulation

5.1.1. Simulation of Course Control in Still Water

In calm water conditions, the initial speed of Ship Type I is set to 12 knots and slowly reduced, the initial heading course is 000, and the ship is steered from the initial course to 040 using the OP-PID and Adaptive OP-PID control methods. The experiment ends when the ship stabilizes its heading and the same experiment is repeated using Ship Type II. The ship’s course control process can be displayed on the ship maneuvering simulator ’s display interface. Figure 10 and Figure 11 show the change in the motion trajectory of Ship Type I and Ship Type II under the control of the two control methods, respectively, with the white rectangle representing the actual ship position.
It is difficult to compare the advantages and disadvantages of the control effect only by means of the motion trajectory. After exporting and processing the experimental data of the ship maneuvering simulator, the course change curve of the ship in the above test is drawn, respectively, as shown in Figure 12.
In Figure 12a, there is no overshoot in the course control test of Ship Type I by the two methods but the Adaptive OP-PID tends to be stable at about 170 s while the OP-PID tends to be stable at about 200 s. In Figure 12b, Ship Type II, controlled by the OP-PID, will continue to increase after the heading course reaches the target angle of 040, the maximum overshoot is about 3.2°, and the overshoot amplitude is about 8%. However, the Adaptive OP-PID has no obvious overshoot.

5.1.2. Simulation of Course Control Under Disturbance

Similarly, wind, wave, and current disturbance are added under the premise that other initial conditions remain unchanged, where the wind speed is 6 m/s, the current speed is 1 m/s, the wave height is 0.3 m, and the direction is 000. The motion trajectory of the ship is shown in Figure 13 and Figure 14.
Similarly, the experimental data were derived and the course change curve was plotted, as shown in Figure 15.
In Figure 15a, the Adaptive OP-PID control does not exhibit overshoot in a course under external disturbance while the OP-PID control has an overshoot of about 5.5° and an overshoot amplitude of 13.75%. In Figure 15b, both methods exhibit some degree of overshoot, with the maximum overshoot of the OP-PID being about 7.5° with an overshoot amplitude of 18.75% while the maximum overshoot of the Adaptive OP-PID is about 2.5° with an overshoot amplitude of 6.25%.
Comparing the heading course control experiments of multiple groups, it can be concluded that the Adaptive OP-PID can adapt to different ship types and external environments and its performance in course control stability and convergence time is better than that of the OP-PID.

5.2. Track Control Simulation

Set the wind speed to 4 m/s, current speed to 0.5 m/s, wave height to 0.2 m, and directions all to 000 for the simulation environment. Set the planned route on the electronic chart of the maneuvering simulator, as shown in Table 6, and add Ship Type I, with the initial ship position set to (30° 08.359 N, 122° 30.710 E) and an initial course of 060, an initial speed of 12 knots, and a slow deceleration. Take the OP-PID and Adaptive OP-PID control to navigate the ship along the planned route and when the ship reaches the last waypoint, the test ends. Repeat the test once again with Ship Type II under the same conditions.
The track control process can be displayed in the chart of the maneuvering simulator, as shown in Figure 16 and Figure 17, which are the track charts of Ship Type I and Ship Type II under the control of the two algorithms, respectively. The black broken line is the planned route and the white rectangle is the historical trajectory of the ship.
According to Figure 16 and Figure 17, it can be seen that the OP-PID could still track the planned routes well at the beginning of the experiment under interference and speed variation but, as the speed decreased, the PID parameters could not adapt to the new motion state and the track deviation increased significantly at the third-way point. For both Ship Types I and II, the Adaptive OP-PID with changing control parameters according to speed has better control effects, can track the planned routes stably, and has higher control precision in small curvature than large. The maximum track deviation of the Adaptive OP-PID in Figure 18a is 116 m, which, for the OP-PID, is 131 m. In Figure 18b, the maximum track deviation of the Adaptive OP-PID is 100 m, which, for the OP-PID, is 186 m. Clearly, the track deviation of the Adaptive OP-PID is smaller than that of the OP-PID. Especially for Ship Type II, the control effect of the Adaptive OP-PID is more precise. As shown in Figure 19, the ship controlled by the Adaptive OP-PID has a smooth change in course at each way point, with no overshoot or oscillation, while the ship controlled by the OP-PID has a certain degree of overshoot and oscillation.

6. Conclusions

In this paper, the forgetting factor was introduced to improve the recursive least squares method, which not only avoids the disadvantage of the ordinary least squares method that cannot be identified online but also compensates for the defect of the recursive least squares method that the update speed decreases with the accumulation of data. The recursive least squares algorithm with forgetting factor was then used to identify the parameters of the ship maneuvering motion model and the ship maneuvering indexes K and T were identified online. The data required for parameter identification were obtained from the maneuvering simulator. The identification process and the results of different forgetting factors were compared to analyze their influence on parameter identification and the identification results were used to calculate the OP-PID parameters in real-time. An adaptive OP-PID course control method was proposed. Finally, the maneuvering simulator, which is more suitable for the actual ship motion, was used as the simulation platform and the course and heading control simulation tests were carried out under different types and environments with the Adaptive OP-PID and the OP-PID in the existing research. The results show that the Adaptive OP-PID can be applied to ship motion control in different ship types and environments. Under the same conditions, the performance of the proposed algorithm is better than that of the optimal PID in terms of heading stability, heading convergence time, and heading deviation. In other words, the parameter identification method of the ship maneuvering motion model with forgetting factor has higher accuracy in theory and the Adaptive OP-PID course control method designed based on it is better than the OP-PID course control method based on statistical formula calculation in theory. It should be noted that both recursive least squares and OP-PID are quite mature theories at present. This paper only attempts to apply the least squares with forgetting factor to the parameter identification of the responsive ship maneuvering motion model and use the identified parameters to design the adaptive optimal control method. Due to the recursive process employed by RLS, it does not require frequent matrix multiplication operations. Therefore, compared to the Kalman filter, RLS has a lighter computational burden, especially noticeable in high-dimensional state estimation. Additionally, RLS does not require an accurate state-space model as the Kalman filter does. In contrast to ordinary least squares, the inclusion of a forgetting factor allows RLS to dynamically adjust the weight of historical data, improving its adaptability. However, RLS also has drawbacks, such as its sensitivity to noise, which can lead to unstable parameter estimates when data quality is poor.
Certainly, this paper only combines the K and T values obtained from statistical formulas and those identified through FFRLS with OP-PID and conducts longitudinal heading and trajectory control experiments using the ship maneuvering simulator. However, no lateral comparisons with other control methods, such as sliding mode control, have been made and the ship maneuvering simulator does not allow for comparative experiments under different external disturbances. Future work will focus on addressing these shortcomings and making improvements.

Author Contributions

Conceptualization, L.C. and L.X.; methodology, Y.H.; software, L.X.; validation, F.H.; formal analysis, F.H.; investigation, L.C.; resources, L.C.; data curation, F.H.; writing—original draft preparation, J.L.; writing—review and editing, J.L.; visualization, J.L.; supervision, L.C.; project administration, L.C.; funding acquisition, L.C. 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 (62373367). And The APC was funded by Lubin Chang.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Seung, J.L.; Kwang, H.J.; Namkug, K.; Jaeyong, L. A comparison of regression models for the ice loads measured during the ice tank test. Brodogradnja. 2023, 74, 1–15. [Google Scholar] [CrossRef]
  2. Mustafayev, V.O.; Mammadov, E.D. Diving vessel speed determination during towing tests. Int. J. Tech. Phys. Probl. Eng. 2024, 16, 333–336. [Google Scholar] [CrossRef]
  3. Atasayan, E.; Milanov, E.; Dursun, A.A. Application of an offline grey box method for predicting the maneuvering performance. Brodogradnja. 2024, 75, 75304. [Google Scholar] [CrossRef]
  4. Allotta, B.; Costanzi, R.; Pugi, L.; Ridolfi, A. Identification of the main hydrodynamic parameters of Typhoon AUV from a reduced experimental dataset. Ocean. Eng. 2018, 147, 77–88. [Google Scholar] [CrossRef]
  5. Yin, Q.; Cai, J.; Gong, X.; Ding, Q. Local parameter identification with neural ordinary differential equations. Appl. Math. Mech. 2022, 43, 1887–1900. [Google Scholar] [CrossRef]
  6. Luigi, B.; Felice, I.; Ewa, B.W. Weighted least squares collocation methods. Appl. Numer. Math. 2024, 203, 113–128. [Google Scholar] [CrossRef]
  7. Sabet, M.T.; Fathi, A.R.; Mohammadi, H.R. Optimal design of the Own Ship maneuver in the bearing-only target motion analysis problem using a heuristically supervised Extended Kal-man Filter. Ocean Eng. 2016, 123, 146–153. [Google Scholar] [CrossRef]
  8. Triantafyllou, M.; Bodson, M.; Athans, M. Real time estimation of ship motions using Kalman filtering techniques. IEEE J. Ocean Eng. 2003, 8, 9–20. [Google Scholar] [CrossRef]
  9. Cosmo, L.; Minello, G.; Bicciato, A.; Bronstein, M.; Rodola, E.; Rossi, L.; Torsello, A. Graph Kernel Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2024, 1–14. [Google Scholar] [CrossRef] [PubMed]
  10. Esra, Y.; Taskin, K. Deep convolutional neural networks for ship detection using refined DOTA and TGRS-HRRSD high-resolution image datasets. Adv. Space Res. 2024, in press. [Google Scholar] [CrossRef]
  11. Gao, H.; Zou, Z.; Xia, L. Application of the NIPC-based uncertainty quantification in prediction of ship maneuverability. J. Mar. Sci. Technol. 2021, 26, 555–572. [Google Scholar] [CrossRef]
  12. Dong, Q.; Wang, N.; Song, J.; Hao, L.; Liu, S.; Han, B.; Qu, K. Math-data integrated prediction model for ship maneuvering motion. Ocean Eng. 2023, 285, 115255. [Google Scholar] [CrossRef]
  13. Ning, W.; Hui, W.; Yu, Z.; Jia, S.; Ye, L.; Li, H. Self-organizing data-driven prediction model of ship maneuvering fast-dynamics. Ocean Eng. 2023, 288, 115989. [Google Scholar] [CrossRef]
  14. Wang, N.; Kong, X.; Ren, B.; Hao, L.; Han, B. SeaBil: Self-attention-weighted ultrashort-term deep learning prediction of ship maneuvering motion. Ocean Eng. 2023, 287, 115890. [Google Scholar] [CrossRef]
  15. Fossen, T.I. Handbook of Marine Craft Hydrodynamics and Motion Control; John Willy & Sons: Hoboken, NJ, USA, 2011. [Google Scholar]
  16. Buerger, J.; Cannon, M. A Constraint Homotopy Active Set Solver for Linear–Quadratic Optimal Control. IEEE Trans. Autom. Control 2024, 69, 7205–7210. [Google Scholar] [CrossRef]
  17. Liu, J.; Huang, L.; Yu, D.; Xu, L.; He, Y. The control method for ship tracking when navigating through narrow and curved sections. Appl. Ocean Res. 2024, 145, 103943. [Google Scholar] [CrossRef]
  18. McCue, L. Handbook of Marine Craft Hydrodynamics and Motion Control. IEEE Control Syst. Mag. 2016, 36, 78–79. [Google Scholar] [CrossRef]
  19. Cao, B. Study on Ship Motion Control Simulation System Based on Model Parameter Identification. Ph.d. Thesis, Ji Lin University, Changchun, China, 2012. [Google Scholar]
  20. He, Y.; Zhao, X.; Huang, L.; Xu, L.; Liu, J. Control method for the ship track and speed in curved channels. Brodogradnja 2024, 75, 1–27. [Google Scholar] [CrossRef]
  21. Zhang, W.; Zhang, C.; Zheng, C. Design of improved line-of-sight guidance law based on aircraft visual information. Syst. Eng. Electron. 2024, 46, 2779–2788. [Google Scholar]
  22. Yu, C.; Zhu, J.; Hu, Y.; Zhu, H.; Wang, N.; Guo, H.; Zhang, Q.; Liu, S. Prescribed-time observer-based sideslip compensation in USV line-of-sight guidance. Ocean Eng. 2024, 298, 117177. [Google Scholar] [CrossRef]
Figure 1. Geodetic coordinate system and ship coordinate system.
Figure 1. Geodetic coordinate system and ship coordinate system.
Jmse 13 00753 g001
Figure 2. Ship plane coordinate system.
Figure 2. Ship plane coordinate system.
Jmse 13 00753 g002
Figure 3. Iterative flow chart of parameter identification.
Figure 3. Iterative flow chart of parameter identification.
Jmse 13 00753 g003
Figure 4. The forgetting factor is 0.98 in the parameter identification process. (a) Parameter values; (b) Value of error.
Figure 4. The forgetting factor is 0.98 in the parameter identification process. (a) Parameter values; (b) Value of error.
Jmse 13 00753 g004
Figure 5. The forgetting factor is 0.99 in the parameter identification process. (a) Parameter values; (b) Value of error.
Figure 5. The forgetting factor is 0.99 in the parameter identification process. (a) Parameter values; (b) Value of error.
Jmse 13 00753 g005
Figure 6. 20°/20° Z-type test. (a) Z-type test of recursive least squares with forgetting factor; (b) Z-type test of ordinary least squares.
Figure 6. 20°/20° Z-type test. (a) Z-type test of recursive least squares with forgetting factor; (b) Z-type test of ordinary least squares.
Jmse 13 00753 g006
Figure 7. Adaptive OP-PID control principle.
Figure 7. Adaptive OP-PID control principle.
Jmse 13 00753 g007
Figure 8. K and T values vary with speed v.
Figure 8. K and T values vary with speed v.
Jmse 13 00753 g008
Figure 9. Indirect track control.
Figure 9. Indirect track control.
Jmse 13 00753 g009
Figure 10. Course control of Ship Type I. (a) OP-PID control; (b) Adaptive OP-PID control.
Figure 10. Course control of Ship Type I. (a) OP-PID control; (b) Adaptive OP-PID control.
Jmse 13 00753 g010
Figure 11. Course control of Ship Type II. (a) OP-PID control; (b) Adaptive OP-PID control.
Figure 11. Course control of Ship Type II. (a) OP-PID control; (b) Adaptive OP-PID control.
Jmse 13 00753 g011
Figure 12. Course change curve. (a) Ship Type I; (b) Ship Type II.
Figure 12. Course change curve. (a) Ship Type I; (b) Ship Type II.
Jmse 13 00753 g012aJmse 13 00753 g012b
Figure 13. Course control of Ship Type I. (a) OP-PID control; (b) Adaptive OP-PID control.
Figure 13. Course control of Ship Type I. (a) OP-PID control; (b) Adaptive OP-PID control.
Jmse 13 00753 g013
Figure 14. Course control of Ship Type II. (a) OP-PID control; (b) Adaptive OP-PID control.
Figure 14. Course control of Ship Type II. (a) OP-PID control; (b) Adaptive OP-PID control.
Jmse 13 00753 g014
Figure 15. Course change curve. (a) Ship Type I; (b) Ship Type II.
Figure 15. Course change curve. (a) Ship Type I; (b) Ship Type II.
Jmse 13 00753 g015
Figure 16. Track control simulation of Ship Type I. (a) Adaptive OP-PID; (b) OP-PID.
Figure 16. Track control simulation of Ship Type I. (a) Adaptive OP-PID; (b) OP-PID.
Jmse 13 00753 g016aJmse 13 00753 g016b
Figure 17. Track control simulation of Ship Type II. (a) Adaptive OP-PID; (b) OP-PID.
Figure 17. Track control simulation of Ship Type II. (a) Adaptive OP-PID; (b) OP-PID.
Jmse 13 00753 g017
Figure 18. Track deviation. (a) Ship Type I; (b) Ship Type II.
Figure 18. Track deviation. (a) Ship Type I; (b) Ship Type II.
Jmse 13 00753 g018
Figure 19. Change of course. (a) Ship Type I; (b) Ship Type II.
Figure 19. Change of course. (a) Ship Type I; (b) Ship Type II.
Jmse 13 00753 g019aJmse 13 00753 g019b
Table 1. Parameters of the ship.
Table 1. Parameters of the ship.
ParameterValue
Displacement (t)69,580
Length (m)230
Breadth (m)32
Bow draft (m)12
Stern draft (m)12
Height of eye (m)22
Table 2. Error of identification with different forgetting factors.
Table 2. Error of identification with different forgetting factors.
Value of the Forgetting FactorThe Error Value of aThe Error Value of a
0.990.1178430.004218
0.980.3031380.015827
Table 3. Parameter calculation/identification comparison.
Table 3. Parameter calculation/identification comparison.
ParameterTrue ValueEquation (8)FFRLS
K0.130.180.157
T180198192
Table 4. The value of m corresponds to the wind speed table.
Table 4. The value of m corresponds to the wind speed table.
Wind Speed (m/s)[0,5](5,10](10,14](14,17](17,20](20,30](30,+∞)
m0.14.08.08.59.09.510.0
Table 5. Parameters of different ship types.
Table 5. Parameters of different ship types.
ParameterShip Type IShip Type II
Displacement (t)69,5808682
Length (m)230110
Breadth (m)3216.1
Bow draft (m)126.4
Stern draft (m)127.1
Height of eye (m)2212
Table 6. The value of m corresponds to the wind speed table.
Table 6. The value of m corresponds to the wind speed table.
Way PointLatitudeLongitudeCourseDistance/nm
030° 08.360 N122° 30.540 E//
130° 08.583 N122° 31.500 E0750.859
230° 09.026 N122° 32.260 E0560.793
330° 08.652 N122° 33.186 E1150.884
430° 08.846 N122° 34.216 E0770.911
530° 08.532 N122° 34.938 E1160.699
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, J.; Chang, L.; Xu, L.; He, F.; He, Y. Research on the On-Line Identification of Ship Maneuvering Motion Model Parameters and Adaptive Control. J. Mar. Sci. Eng. 2025, 13, 753. https://doi.org/10.3390/jmse13040753

AMA Style

Liu J, Chang L, Xu L, He F, He Y. Research on the On-Line Identification of Ship Maneuvering Motion Model Parameters and Adaptive Control. Journal of Marine Science and Engineering. 2025; 13(4):753. https://doi.org/10.3390/jmse13040753

Chicago/Turabian Style

Liu, Jinlai, Lubin Chang, Luping Xu, Fang He, and Yixiong He. 2025. "Research on the On-Line Identification of Ship Maneuvering Motion Model Parameters and Adaptive Control" Journal of Marine Science and Engineering 13, no. 4: 753. https://doi.org/10.3390/jmse13040753

APA Style

Liu, J., Chang, L., Xu, L., He, F., & He, Y. (2025). Research on the On-Line Identification of Ship Maneuvering Motion Model Parameters and Adaptive Control. Journal of Marine Science and Engineering, 13(4), 753. https://doi.org/10.3390/jmse13040753

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