Next Article in Journal
Analyzing Archive Transit Multibeam Data for Nodule Occurrences
Previous Article in Journal
Noise Reduction of Velocity Measured by Frequency-Supervised Combined Doppler Sonar Using an Adaptive Sliding Window and Kalman Filter
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Path-Following Technology of a Single-Outboard-Motor Unmanned Surface Vehicle Based on Deep Reinforcement Learning and Model Predictive Control Algorithm

1
School of Mechanical & Automotive Engineering, South China University of Technology, Guangzhou 510641, China
2
Guangzhou Shipyard International Company Limited, Guangzhou 511462, China
3
School of Civil Engineering & Transportation, South China University of Technology, Guangzhou 510641, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2024, 12(12), 2321; https://doi.org/10.3390/jmse12122321
Submission received: 9 November 2024 / Revised: 9 December 2024 / Accepted: 16 December 2024 / Published: 18 December 2024
(This article belongs to the Section Ocean Engineering)

Abstract

Path following is one of the key technologies for unmanned surface vehicles (USVs). This paper proposes a path-tracking control method for a single-outboard-motor USV based on a Deep Deterministic Policy Gradient (DDPG) algorithm and model predictive control (MPC) algorithm. Initially, the motion model and outboard motor model of the USV are analyzed. Subsequently, simulation and real ship experiments provide a comprehensive performance comparison between the proposed DDPG-MPC method and the traditional ALOS-PID method. The results indicate that for straight path tracking, the DDPG-MPC algorithm achieves 37% and 21% reductions in the average cross error and heading angle error, respectively, compared to the ALOS-PID algorithm. The real ship experiments further validate the DDPG-MPC algorithm’s advantages in real-world environments. Specifically, under disturbances like wind, waves, and currents, the maximum cross error of the DDPG-MPC algorithm is one-third of the ALOS-PID algorithm. Additionally, the DDPG-MPC algorithm sustains a higher and more stable longitudinal velocity over extended periods, while the ALOS-PID algorithm shows greater instability and variability. Overall, the findings confirm the feasibility and effectiveness of the proposed approach, highlighting its potential for enhancing path-tracking control performance in single-outboard-motor USVs.

1. Introduction

Unmanned surface vehicles (USVs) are increasingly valued for their intelligence, maneuverability, and adaptability in various applications such as water patrols, hydrological surveys, maritime operations, rescue missions, and military usage [1,2,3,4]. Path following, a crucial technology for the autonomous navigation of USVs, focuses on maximizing efficiency and ensuring safety by maintaining adherence to a planned path within accepted error margins, as opposed to trajectory tracking, which involves strict timing at specific points [5,6,7]. Path-following technology principally involves path guidance and heading control components [8,9,10]. Among the many methods studied, line of sight (LOS) and vector field (VF) are prevalent [11,12]. These methods facilitate the control of underactuated vessels by translating the path-following challenge into a heading management task using well-elaborated guidance laws.
Several advancements have enhanced the LOS method’s efficacy. Wang et al. [13] introduced a Predictor-Based Fixed-Time LOS guidance law tailored for USVs navigating in unknown disturbances, featuring global fixed-time convergence that guarantees quick stabilization and robust performance, regardless of the initial conditions. Liu et al. [14] developed an adaptive LOS (ALOS) that finely adjusts to changes in sideslip, maintaining trajectory precision under varying conditions. Zhou et al. [15] enhanced this approach with their integral–differential LOS (IDLOS), which incorporates adaptive elements to speed convergence and minimize overshoot, optimizing response times and control precision. Further advancements came from Tong et al. [16], who proposed a finite-time, error-constrained LOS suitable for navigating curved paths under uncertain circumstances, expanding the versatility of LOS applications. Complementarily, Fossen et al. [17] crafted a nonlinear ALOS method that effectively counters environmental drift, such as wind and currents, ensuring uniform semi-global exponential stability (USGES) under linear trajectory conditions. In comparative analysis, ALOS guidance [16] stands out in dynamic environments due to its rapid adaptability and robust stability, while the ALOS law [17] offers finite-time convergence and cross-track error constraints, ideal for underactuated systems facing unpredictable challenges. On the other hand, Wang’s Predictor-Based Fixed-Time LOS [13] provides a resilient framework ensuring swift and precise control. Nonetheless, despite higher complexity and computational demands, these advanced LOS methods excel in scenarios requiring an immediate response and exceptional accuracy, with ALOS proving particularly effective in resource-limited settings. Hong et al. [18] refined LOS by integrating a variable “acceptance circle” radius to enhance flexibility during waypoint transitions, offering a significant improvement over traditional methods. In contrast, VF methods, developed initially for micro aerial vehicles, have been adapted for USVs [19,20,21], with comparative studies suggesting these methods provide excellent path adherence but may cause yaw instability [22]. Collectively, these adaptations balance robustness, convergence speed, and computational efficiency, pushing forward the development of unmanned ship path-following technology. However, the current research landscape in this domain is not without its limitations. The existing research and practical application of unmanned surface ship heading guidance laws based on the LOS method and the VF method have inherent defects [23]. The LOS method grapples with the challenge of striking a balance between the response time and steady-state error in forward distance settings [24]. Moreover, when transitioning between different desired paths, the convergence speed of the associated controller cannot be assured [25]. Conversely, the VF method is plagued by rudder oscillation in the horizontal direction [26].
Recent research [27,28,29,30,31] has newly incorporated deep reinforcement learning into USV path-following strategies, highlighting novel advancements in control methodologies. Zhao et al. [6] developed an enhanced deep Q-network (DQN) for the simplified control of three-degree-of-freedom USV models, unveiling significant potential for adaptive learning in maritime navigation scenarios. Zhong et al. [32] introduced a novel control approach utilizing a Deep Deterministic Policy Gradient (DDPG) algorithm designed around a composite state space and dynamic reward function, aimed at reducing the impacts of large inertia and state lag on RL agents’ training. Han et al. [33] has developed a system using distributed deep reinforcement learning and adaptive neural networks for straight-line path tracking and formation control in USVs, employing radial basis function neural networks (RBF NNs) to approximate the hydrodynamic forces and unknown external disturbances affecting the vehicles, demonstrating high precision in tracking control through simulation results. Furthermore, Zhu et al. [34] has proposed an intelligent path-tracking control strategy for underactuated USVs with unknown model parameters, combining LOS guidance and Q-learning to enhance path-following accuracy under uncertain dynamics. These advances underscore the growing versatility and challenge of applying deep reinforcement learning, showcasing its potential in achieving sophisticated maritime navigational tasks while highlighting inherent limitations such as computational complexity, data requirements, and response time to dynamic environmental changes.
However, a considerable part of the research still relies on differential twin propeller thrusters configured at the stern and cannot be directly converted to a single-outboard-motor setup [27,28,29,30,31], which highlights the need for specific solutions for different propulsion types. This paper introduces a novel path-following control method for a single-outboard-motor USV that combines deep reinforcement learning with model predictive control. This approach addresses the shortcomings of traditional LOS and VF approaches and is tailored to the specific propulsion characteristics of a single-outboard-motor USV. By implementing deep reinforcement learning for path tracking in a single-outboard-motor USV mission, we significantly improve the path-following capabilities. At the same time, our reinforcement learning method DDPG-MPC also improves the versatility of reinforcement learning-based path tracking in complex ocean environments, contributing innovation to autonomous USV path tracking. By employing this cutting-edge strategy, we extend the practical applicability of reinforcement learning to different operating conditions and improve the resilience and adaptability of USVs to a wider range of environmental challenges.

2. Kinematic Modeling

2.1. Kinematic Modeling of USV

The kinematic modeling of USVs involves multiple factors such as thruster forces and moments, viscous hydrodynamics and external disturbances, and has highly nonlinear and variable coupling characteristics, making it a very complex process [35]. It needs to balance two aspects. Firstly, in order to avoid the model being too complex and unable to guarantee real-time performance in subsequent control operations, reasonable assumptions and simplifications need to be made during modeling. The second is to avoid neglecting some key system characteristics of the model when simplifying it.
The kinematic modeling of USVs generally involves two coordinate systems, namely the world coordinate system O X w Y w Z w and the body-fixed coordinate system O X b Y b Z b [36], as shown in Figure 1. In this paper, the world coordinate system is set as the NED coordinate system. In this system, the six-degrees-of-freedom (DOF) motion vector of the USV can be represented as η = [ x , y , z , φ , θ , ψ ] T , where x , y , and z denote displacements along the X w , Y w , and Z w axes, respectively, and φ , θ , and ψ represent the roll, pitch, and yaw angles, corresponding to rotations around the X w , Y w , and Z w axes.
In the body-fixed coordinate system, this paper defines the origin O as the center of gravity of the USV, X b as the forward direction, Y b as the starboard direction, and Z b as the downward direction of the USV. The rotations around the X b , Y b , and Z b axes produce roll rate p , pitch rate q , and yaw rate r , respectively. The translations along the X b , Y b , and Z b axes generate surge speed u , sway speed v , and heave speed w . In the body-fixed coordinate system, the velocity of the USV can be represented by the vector υ = [ u , v , w , p , q , r ] T .
In the study of USV dynamics, more emphasis is placed on the planar motion state of the USV. Therefore, the motions in roll, pitch, and heave are generally ignored. As a result, the motion of the USV can be represented by a three-degree-of-freedom motion model based on Lagrangian mechanics, as shown in Equation (1).
M υ ˙ + C ( υ ) υ + D ( υ ) υ = τ
where M represents the inertia matrix, C ( υ ) represents the Coriolis and centripetal force matrix, and D ( υ ) represents the hydrodynamic damping matrix. The above terms can be calculated using the following formulas:
M = [ m X u ˙ 0 0 0 m Y v ˙ m x g Y r ˙ 0 m x g Y r ˙ I z N r ˙ ]
C ( υ ) = [ 0 0 ( m Y v ˙ ) v ( m x g Y r ˙ ) r 0 0 ( m X u ˙ ) u ( m Y v ˙ ) v + ( m x g Y r ˙ ) r ( m X u ˙ ) u 0 ]
D ( υ ) = [ X u 0 0 0 Y v Y r 0 N v N r ]
where X u ˙ , Y v ˙ , Y r ˙ , N r ˙ , X u , Y v , Y r , N v , and N r are the hydrodynamic coefficients of the USV.
υ represents the three-degree-of-freedom velocity vector of the USV in the body-fixed coordinate system as shown in Equation (5).
υ = [ u v r ] T
τ represents the force exerted by the propeller on the USV as shown in Equation (6).
τ = [ τ u τ v τ r ] T
Among them, τ u is the longitudinal thrust, τ v is the lateral thrust, and τ r is the yaw moment. These three quantities can be calculated using Equation (7).
{ τ u = T cos δ τ v = T sin δ τ r = x l T sin δ
where T represents the thrust of the outboard motor, δ represents the thrust angle of the outboard motor, and x l represents the distance from the rotation axis of the outboard motor to the center of rotation of the USV.
The USV propelled by a single outboard engine only has two control variables: the thrust angle and thrust of the outboard engine, but the USV needs to control the three degrees of freedom, which belongs to the underactuated system. Based on the underactuated characteristics of a single-outboard-motor USV, the following definitions are made in the paper [37,38]: m 11 = m X u ˙ , m 22 = m Y v ˙ , m 23 = m x g Y r ˙ , m 32 = m x g N v ˙ , m 33 = I z N r ˙ , d 11 = X u , d 22 = Y v , d 23 = Y r , d 32 = N v , and d 33 = N r . So, Equation (1) can be transformed into Equation (8).
[ m 11 u ˙ m 22 v ˙ + m 23 r ˙ m 32 v ˙ + m 33 r ˙ ] + [ d 11 u m 22 v r m 23 r 2 d 22 v d 23 r + m 11 u r m 22 v u + m 23 r u + d 32 v m 11 u v + d 33 r ] = [ τ u 0 τ r ]
Assuming that the center of gravity of the hull coincides with the geometric center and that the USV is symmetric in the fore–aft and port–starboard directions, we have x g = 0 , Y r ˙ = 0 , N v ˙ = 0 , Y r = 0 , and N v = 0 , allowing Equation (8) to be simplified to Equation (9).
{ u ˙ = m 22 m 11 v r d 11 m 11 u + 1 m 11 τ u v ˙ = m 11 m 22 u r d 22 m 22 v r ˙ = m 11 m 22 m 33 u v d 33 m 33 r + 1 m 33 τ r

2.2. Kinematic Modeling of the Outboard Motor

As can be seen from Equation (7), the longitudinal thrust, lateral thrust, and steering moment exerted by the outboard motor on the USV are determined by the thrust T and thrust angle δ of the outboard motor. Therefore, it is necessary to model the thrust model and servo model of the single outboard motor.

2.2.1. The Outboard Motor Model

The outboard motor has the advantage of being easy to retract, allowing it to be stowed away when an amphibious USV comes ashore, thereby avoiding interference with the ground. This makes it suitable as a propulsion system for amphibious USVs. The thrust generated by the outboard motor is determined by the propeller’s rotational speed, and its thrust mathematical model is given by Equation (10) [39]:
T = ( 1 t P ) ρ n 2 D P 4 K T ( J p )
where ρ represents the seawater density, n denotes the propeller rotational speed, and D P indicates the propeller diameter. Additionally, t P stands for the reduction coefficient, K T ( J p ) represents the thrust coefficient, and J p indicates the advance coefficient. The calculation methods for these coefficients are described in detail below.
The reduction coefficient t P can be approximated using the Hallrot empirical formula [40], which is suitable for single-propeller propulsion systems, as shown in Equation (11).
t P = 0.001979 L ( B B C p 1 ) + 1.0585 C 10 0.000524 0.1418 D P 2 B d + 0.0015 C s t e r n
where L represents the waterline length, B denotes the beam of the vessel, and d indicates the draft depth. And C p 1 can be calculated using Equation (12).
C p 1 = 1.45 C P 0.315 0.225 L c b
where C P represents the prismatic coefficient and L c b denotes the position of the forward half-length center of buoyancy.
C 10 represents a coefficient related to the length-to-beam ratio, which can be calculated using Equation (13). C s t e r n denotes a coefficient related to the stern shape of the vessel, which can be determined using Equation (14).
{ C 10 = B / L L / B > 5.2 C 10 = 0.25 0.003328402 B / L 0.134615385 L / B 5.2
{ C s t e r n = 10 V S h a p e d   H u l l C s t e r n = 0 C o n v e n t i o n a l   H u l l C s t e r n = + 10 U S h a p e d   H u l l   w i t h   a   H o g n e r   S t e r n
The thrust coefficient K T can be calculated using multiple regression analysis [41], as illustrated in Equation (15).
K T = i = 0 n 1 j = 0 n 2 A i j ( P D ) i J P j
where J P = ( 1 w p ) u n D p represents the advance coefficient, and w p denotes the wake coefficient, which can be determined using the Bappmiller formula, as shown in Equation (16).
w p = 0.165 C b x 3 D p Δ w
where represents the displacement volume, x is a coefficient related to the propeller installation position, as shown in Equation (17), and Δ w represents the correction value for the wake coefficient, which can be expressed using Equation (18).
{ x = 1 P r o p e l l e r   P o s i t i o n e d   o n   t h e   C e n t e r l i n e x = 2 P r o p e l l e r   P o s i t i o n e d   o n   t h e   S i d e
Δ w = { 0.1 ( F n 0.2 ) , F n > 0.2 0 , F n 0.2
where F n = V / g L is the Froude number and g is the gravitational acceleration.

2.2.2. The Servo Model

The outboard engine servo model can be represented as a first-order inertial component, which aligns with the approach by M. T. Meziou, J. Ghommam, and N. Derbel in their paper [42], as shown in Equation (19).
δ ˙ = 1 T d δ + 1 T d δ d
where T d represents the time coefficient, δ denotes the current propulsion angle, and δ d indicates the target propulsion angle.

3. Path-Following Control Algorithm

This paper presents a design strategy that divides the path-following control framework of a single-outboard-motor USV into two key components: path-following guidance law and heading control. To overcome the limitations of conventional algorithms, it introduces a novel method integrating DDPG with MPC, as illustrated in Figure 2. This method computes the desired heading angle ψ d from a pre-planned path and employs an MPC-based heading controller to adjust the USV’s heading angle, enabling effective path following.

3.1. Path-Following Guidance Law Based on DDPG Algorithm

3.1.1. Design of the Markov Decision Process

In reinforcement learning, constructing a Markov decision model is a key element. The algorithm’s efficiency and convergence heavily rely on accurately defining the state space, action space, and reward function [43]. Hence, to develop a high-performance guidance law for USV path following, it is crucial to design a suitable Markov decision model tailored to the specific requirements of single-outboard-motor USVs.
The state space is defined as follows:
S = [ u , r , β , β ˙ , ε , ε ˙ , Δ ψ d p ]
where u represents the longitudinal velocity of the USV, r denotes the USV’s pitch rate, β is the deviation between the USV’s heading angle and the desired path angle, ε is the cross error between the desired path and the USV’s real-time position, and Δ ψ d p is the action taken in the previous time step, which is the desired change in the heading angle of the USV.
In path-following control, greater emphasis is placed on the longitudinal velocity of the USV, while lateral drift velocity is often overlooked. To ensure the path-following guidance law can generate a real-time optimal desired heading angle based on the USV’s longitudinal velocity u , this study incorporates the longitudinal velocity into the state space. The state space includes the deviation β between the current heading angle and the desired path angle, as well as the cross-track error between the desired path and the USV’s real-time position, reflecting the discrepancy between the actual and desired positions. Furthermore, to evaluate if the USV’s state changes align with the trend of reducing tracking errors, the state space also integrates the rate of change in the deviation between the heading and path angles β ˙ , the rate of change in the cross-track error, and the action taken in the previous time step Δ ψ d p .
The action space is defined as follows:
A = [ Δ ψ d ]
Δ ψ d represents the change in the desired heading angle of the USV, and Δ ψ d [ π 2 , π 2 ] is such that the USV’s desired heading angle ψ d can be calculated using formula ψ d = ψ + Δ ψ d , where ψ denotes the actual heading angle of the USV.
The reward function is defined as follows:
r = { r ε + r β + r Δ ψ d | β | < π 2 r β | β | π 2
The definitions of each term are as follows:
r ε = e k ε | ε |
r β = e k β | β |
r Δ ψ d = e k Δ ψ d | Δ ψ d |
where k ε , k β , and k Δ ψ d are constants, calibrated through multiple experiments, and k ε = 0.7 , k β = 4.82 , and k Δ ψ d = 0.3 .
Equation (23) describes the reward function r ε for the cross error ε between the actual position of the unmanned boat and the desired path. As shown in Figure 3a, the function exhibits the following characteristics: when the cross error ε is 0, the value r ε reaches 1; as the value of | ε | increases, the reward value r ε decreases rapidly. However, when the error | ε | increases to 8 m (approximately the length of a boat), the reward value r ε is almost close to 0. This design encourages the agent to actively minimize the cross error during the interaction with the environment in the form of an exponential function, thereby achieving more accurate path tracking.
Equation (24) is the reward function r β related to the deviation β between the USV’s heading angle and the desired path angle. The graph of this function is shown in Figure 3b. When the angle deviation β is 0, the value of r β reaches its maximum of 1. To prevent the USV from heading away from the desired path, that is, when | β | > π 2 occurs, the value of r β remains near 0.
Equation (25) defines the reward function r Δ ψ d associated with changes in the USV’s desired heading angle Δ ψ d . Illustrated in Figure 3c, this function is carefully designed to minimize abrupt alterations in the desired heading direction. By doing so, it ensures a smooth and continuous adjustment process, enhancing the stability and precision of the USV’s navigation path. This approach ultimately contributes to more efficient and reliable path tracking.
Equation (22) is the final reward function r after weighting the individual reward functions. When | β | π 2 occurs, it indicates that the deviation between the USV’s heading angle and the desired path angle is large, and the heading angle should be adjusted as soon as possible to prevent the deviation between the USV’s actual position and the desired tracking path from further increasing. Therefore, r = r β is chosen; when | β | < π 2 is the case, all three reward functions are considered, and r = r ε + r Δ ψ d + r β is chosen.

3.1.2. Implementation of the DDPG Algorithm

The DDPG algorithm is a type of deep reinforcement learning method built on the Actor–Critic framework [44]. Its structural principles are shown in Figure 4.
The DDPG agent consists of a policy network and a value network. The policy network, referred to as the Actor Network, takes the state vector s t as input and produces the action vector μ θ ( s t ) following the action policy, with θ representing the weights of the Actor Network. Structurally, the Actor Network includes an input layer, two hidden layers, and an output layer. The input layer’s size aligns with the state vector’s dimension, while the output layer matches the action vector’s dimension. ReLU is used as the activation function in the hidden layers, and the output layer applies the tanh function to normalize the action values, which are then scaled to the actual action range.
The value network, known as the Critic Network, takes the state vector s t and the action vector a t generated by the Actor Network as inputs and produces the action value Q ω ( s t , a t ) , with ω representing the weights of the Critic Network. The state vector is processed through two hidden layers, while the action vector passes through one hidden layer. These outputs are then combined via tensor addition, followed by an additional hidden layer and an output layer. ReLU serves as the activation function across all hidden layers. The training process of the DDPG agent includes the following steps:
Randomly initialize the Actor Network μ ( s | θ ) and Critic Network Q ( s , a | ω ) ; initialize the target network’s actor ω ω and θ θ ; initialize the experience replay buffer R .
Begin a new episode by initializing the USV’s state randomly in the environment as the initial state s 1 . At each time step, the current state vector s t and action policy μ θ ( s t ) are combined with exploration noise N t to produce the action vector a t = μ θ ( s t ) + N t , which defines the USV’s desired heading angle. The heading controller then tracks this angle, and the environment provides the updated state vector s t + 1 . Meanwhile, rewards are computed using environmental data, such as cross-track and heading angle errors. Interaction data ( s t , a t , r t , s t + 1 ) generated at each time step are saved in the experience replay buffer R .
Randomly sample N interaction data from the experience replay buffer R to update the networks. Update the Critic Network by minimizing the loss function L = 1 N i ( y i Q ω ( s i , a i ) ) 2 , where y i = r i + γ Q ω ( s i + 1 , μ θ ( s i + 1 ) ) represents the target value output by the target Critic Network. Update the Actor Network based on the sampled gradients, with the gradient formula given by the following:
θ μ | s t 1 N i a Q ω ( s , a ) | s = s t , a = μ ( s t ) θ μ θ ( s ) | s t
Perform soft updates on the parameters of the target Critic Network and target Actor Network, with the update formula as follows:
{ ω τ ω + ( 1 τ ) ω θ τ θ + ( 1 τ ) θ
with τ ( 0 , 1 ) .
Return to step 2 to continue learning at the next time step. When reset conditions are met or learning exceeds the set time steps, start a new episode.

3.2. Heading Controller Design Based on MPC Algorithm

Assuming the longitudinal velocity u of the USV remains constant, the linearized model of the USV can be written in state-space form, resulting in the system state-space equations:
x ˙ ( t ) = A x ( t ) + B δ ( t ) y ( t ) = C x ( t )
where x = [ v r ψ ] T is the system state vector, δ is the input variable, i.e., the thrust angle, A is the state transition matrix, B is the control input matrix, y = [ ψ ] T is the system output variable, and C = [ 0 0 1 ] is the output matrix. Discretizing the continuous state-space equations yields the following:
x m ( k + 1 ) = A m x m ( k ) + B m δ ( k ) y ( k ) = C m x m ( k )
where A m = ( A T + I ) , B m = B T , C m = C , and T represents the sampling period.
To address steady-state errors, incremental state-space equations are applied by substituting state variables and control inputs with their respective changes. Differentiating both sides of the state-space equations results in the following:
x m ( k + 1 ) x m ( k ) = A m ( x m ( k ) x m ( k 1 ) ) + B m ( δ ( k ) δ ( k 1 ) ) y ( k + 1 ) y ( k ) = C m ( x m ( k + 1 ) x m ( k ) )
Define Δ x m ( k + 1 ) = x m ( k + 1 ) x m ( k ) , Δ δ ( k ) = δ ( k ) δ ( k 1 ) , and substitute them to obtain the incremental state-space equations:
[ Δ x m ( k + 1 ) y ( k + 1 ) ] = [ A m 0 C m A m 1 ] [ Δ x m ( k ) y ( k ) ] + [ B m C m B m ] Δ δ ( k ) y ( k ) = [ 0 0 0 1 ] [ Δ x m ( k ) y ( k ) ]
The matrix form can be written as follows:
x ( k + 1 ) = A k x ( k ) + B k Δ δ ( k ) y ( k ) = C k x ( k )
If the control input sequence over the prediction horizon is available, future system outputs can be estimated using the system model and current state. Let N denote the prediction horizon. The equations for system state prediction are as follows:
{ x ( k + 1 | k ) = A k x ( k ) + B k Δ δ ( k ) x ( k + 2 | k ) = A k 2 x ( k ) + A k B k Δ δ ( k ) + B k Δ δ ( k + 1 ) x ( k + N | k ) = A k N x ( k ) + A k N 1 B k Δ δ ( k ) + + A k B k Δ δ ( k + N 2 ) + B k Δ δ ( k + N 1 )
Substituting the output matrix C k , the system output prediction equation is obtained as follows:
y k + 1 = P x k + H Δ u k
where y k + 1 represents the predicted system output sequence at the current time step, and u k represents the current system input sequence.
P = [ C k A k C k A k 2 C k A k n ]
H = [ C k B k 0 0 C k A k B k C k B k 0 C k A k n 1 B k C k A k n 2 B k C k B k ]
To achieve convergence of path-following errors while minimizing the variation in the thrust angle to reduce energy loss, the objective function for optimization is defined as follows:
min J k = i = 1 N y ( k + i | k ) ψ d Q 2 + i = 1 N Δ u ( k + i 1 | k ) R 2
where N is the total number of optimization steps, Q = ( q 1 q N ) represents the output error weight matrix, and R = ( r 1 r N ) represents the input weight matrix.
In practice, there are thrust angle saturation limits and thrust angle rate saturation limits for the outboard motor. These constraints must be considered during the study. The two types of constraints can be expressed as follows:
δ min δ δ max
Δ δ min Δ δ Δ δ max
where δ min and δ max represent the minimum and maximum thrust angles of the outboard motor, while Δ δ min and δ max represent the minimum and maximum thrust angle rates.
The optimization problem can be reformulated into a standard quadratic programming (QP) form, allowing the optimal thrust angle increment sequence to be determined. By adding the first element of this sequence to the previous thrust angle, the control input for the current time step is generated, and the process repeats. This approach, known as the rolling optimization strategy, enables the desired heading angle control based on MPC.

4. Experimental Results and Analysis

This paper conducts simulation and experimental research based on an independently developed amphibious USV propelled by a single outboard motor, as shown in Figure 5. The main technical parameters of the amphibious USV for experiment are shown in Table 1, and the main technical parameters of the outboard motor are shown in Figure 6. The full-scale test is conducted in the harbor of Guangzhou Shipyard International Co., Ltd., in Nansha District, Guangzhou, China (latitude: about N 22.7023°, longitude: about E 113.6505°), with sea conditions ranging from level 1 to level 2, wave height of about 0.2 m, sea surface wind force of about level 1 to level 2, and clear weather.
This section outlines the training process of the proposed DDPG-based path guidance law and examines the training results. To validate the efficiency and performance of the single-outboard-motor USV path-following algorithm combining DDPG and MPC, the high-performing ALOS-PID algorithm is used for the simulation and real ship comparison experiments.

4.1. Agent Training and Results Analysis

The software environment for the agent experiment is based on the Windows 10 operating system with a program implemented in PyTorch. The hardware setup includes an AMD R7-5900X CPU and an NVIDIA GeForce RTX 3090Ti GPU. The hyperparameter settings of the training process of the DDPG agent are shown in Table 2. Exploration noise N t selected Ornstein–Uhlenbeck noise with a mean of 0 and a variance of 0.25.
At the start of each training episode, a 400 m straight path is defined, with the USV’s initial position and heading angle randomly set within a 100 m radius of the path’s starting point. The USV propeller thrust is randomly assigned a value between [4000, 6000] and remains constant throughout the episode, enabling the trained path guidance model to accommodate various USV postures and speeds. A total of 1000 episodes are trained, each containing 1000 steps with a time interval of 0.05 s. Details of the MPC heading controller parameters are provided in Table 3.
Figure 7 illustrates the cumulative reward curve for each episode during training. Initially, the cumulative reward remained steady at around 200. After approximately 50 training episodes, it rose rapidly and stabilized at about 900. Following another 100 episodes, the cumulative reward showed continuous growth, indicating that the agent was progressively learning a strategy to achieve higher rewards. This suggests that the path-following guidance law effectively reduces cross-tracking and heading angle errors, eventually stabilizing the cumulative reward at around 2700. This confirms the validity of the designed reward function, as it ensures convergence of the cumulative reward during training. Subsequently, the performance of the trained path-following guidance law is evaluated through comparative experiments.

4.2. Simulation Comparative Experiment

This study employs the nonlinear grey box model from Matlab’s system identification toolbox to determine the parameters of the USV’s three-degree-of-freedom model, resulting in Equations (40) and (41).
{ u ˙ = 0.9294 v r 0.4114 u + 0.0003 τ u v ˙ = 0.8771 u r 2.4674 v r ˙ = 0.0533 u v 4.2943 r + 0.0001 τ r
r ˙ = 1.5753 r + 0.3932 δ
A comparative simulation experiment of USV path following is conducted for a single straight path. The simulation model of the comparative simulation experiment is shown in Figure 8. The experimental path settings and the initial posture parameters of the USV are shown in Table 4. The parameter settings of the ALOS-PID algorithm are shown in Table 5. The simulation experiment results are shown in Figure 9, where the blue line represents the results of the DDPG-MPC algorithm proposed in this paper, and the red line represents the results of the ALOS-PID algorithm used for comparison. Figure 9a shows the comparison of the path-following trajectories of the two methods, Figure 9b shows the comparison of the cross error during the path-following process of the two methods, and Figure 9c shows the comparison of the heading angle error of the two methods.
Figure 9 demonstrates that the ALOS-PID algorithm responds faster. Regarding the cross error, the ALOS-PID algorithm reduces the cross error to zero for the first time in approximately 15 s, while the DDPG-MPC algorithm achieves this in about 30 s. For the heading angle error, both algorithms take roughly the same time to reach zero initially. However, the ALOS-PID algorithm exhibits a larger overshoot compared to the DDPG-MPC algorithm. After the cross error reaches zero, the ALOS-PID algorithm’s cross error gradually increases, peaking at around 16 m, whereas the DDPG-MPC algorithm remains stable. Similarly, the heading angle error shows a comparable trend, with the ALOS-PID algorithm peaking at approximately 7.3° after the initial zero point. Additionally, the DDPG-MPC algorithm outperforms the ALOS-PID algorithm in steady-state performance, as the latter retains some steady-state error even after 50 s of tracking.
By analyzing the average errors of the sampling points for both algorithms throughout the path-following process, as presented in Table 6, it is evident that the DDPG-MPC algorithm outperforms the ALOS-PID algorithm in terms of the average cross error and heading angle error. Specifically, the average cross error of the DDPG-MPC algorithm is approximately 37% lower than that of the ALOS-PID algorithm, while its average heading angle error is about 21% smaller.
In addition, this paper also conducted a comparative simulation experiment of USV path following of a multi-polyline path to compare and verify the performance of the algorithms at path turning points. The experimental path points and initial pose of the USV are shown in Table 7. And the simulation experiment results are shown in Figure 10.
It can be observed from Figure 10 that when the USV navigates along the longitudinal long straight path, the performance of the DDPG-MPC and ALOS-PID algorithms is basically consistent with the results of the single straight path simulation experiment. However, when the lateral short straight path segment switches to the longitudinal long straight path segment, the crossover error of the DDPG-MPC algorithm is slightly larger than that of the ALOS-PID algorithm. Table 8 compares the average errors of the two algorithms on the multi-fold path in detail. It is worth noting that the average crossover error of the DDPG-MPC algorithm is about 8.5% smaller than that of the ALOS-PID, but its average heading angle error is about 4.6% higher. This phenomenon can be attributed to the fact that the traditional ALOS-PID algorithm is prone to overshoot when dealing with right-angle turns. It quickly returns to the trajectory by adopting a larger angle, which performs better in some indicators, but causes subsequent trajectory oscillation. In contrast, the DDPG-MPC algorithm chooses a smoother adjustment strategy and uses a smaller angle to fit the path. Although it seems to have a larger error in related indicators, it effectively avoids the oscillation phenomenon and improves the overall path stability and tracking smoothness. This design achieves performance optimization and balance in a complex path environment.
Based on the above simulation results, it can be concluded that the DDPG-MPC algorithm outperforms the ALOS-PID algorithm in all aspects of single straight-line path following. When switching path inflection points in multi-polyline path following, although the cross error of the DDPG-MPC algorithm is slightly larger than that of the ALOS-PID algorithm, the above difference can be ignored in the overall path-following process. The above comparison results verify the effectiveness and superiority of the DDPG-MPC algorithm proposed in this paper in terms of overall performance.

4.3. Real Ship Comparative Experiment

After verifying the effectiveness of the algorithm through simulation comparative experiments, the proposed algorithm is applied to a real ship to carry out path-following real ship comparative experiments to further validate its performance in actual navigation. The experimental path points and the initial pose of the USV are shown in Table 9.
Figure 11 illustrates the comparison of path-following trajectories from the real ship experiment. The red line depicts the expected path, the blue line shows the trajectory of the ALOS-PID algorithm, and the yellow line represents the trajectory of the DDPG-MPC algorithm. The trajectory diagram indicates that, despite environmental interference such as wind, waves, and currents, both algorithms exhibit differences from the simulation results but can successfully complete the path-following task. Notably, the DDPG-MPC algorithm demonstrates superior overall path-following performance compared to the ALOS-PID algorithm.
Figure 12 compares the errors of the two algorithms during the experiment. The results show that the DDPG-MPC algorithm’s maximum cross error is around 10 m, while the ALOS-PID algorithm’s maximum cross error is approximately 30 m. As summarized in Table 10, the average cross error and heading angle error for each sampling point during the path-following process were computed. Both errors of the DDPG-MPC algorithm are lower than those of the ALOS-PID algorithm, with the average cross error decreased by 6.7% and the average heading angle error reduced by 60.0%.
The three velocity components of the USV in the real ship experiment are shown in Figure 13. It can be seen from the figure that the USV controlled by the DDPG-MPC algorithm can maintain a relatively high longitudinal speed for a long time, while the longitudinal speed of the USV controlled by the ALOS-PID algorithm is more unstable and varies relatively greatly.

5. Conclusions

This paper proposes a path-following control method for a single-outboard-motor USV, incorporating DDPG and MPC algorithms. The research includes modeling and analysis of the USV’s motion model and the outboard motor model. A comprehensive performance comparison with the traditional ALOS-PID method was conducted through simulations and real ship experiments, demonstrating the feasibility and effectiveness of the proposed approach.
In simulation experiments, whether for a single straight path or a multi-polyline path, the DDPG-MPC algorithm proposed in this study outperformed the ALOS-PID algorithm in the average cross error and heading angle error. Specifically, on the single straight path, the DDPG-MPC algorithm achieved an average cross error of 4.955 m, approximately 37% lower than the ALOS-PID algorithm’s 7.871 m. Regarding the heading angle error, the DDPG-MPC algorithm recorded an average of 11.1°, about 21% lower than the ALOS-PID algorithm’s 14.0°. Furthermore, the DDPG-MPC algorithm demonstrated superior stability and response time while effectively reducing the thruster’s energy consumption.
Real ship experiments confirmed the practical advantages of the DDPG-MPC algorithm. Despite external disturbances like wind, waves, and currents, the DDPG-MPC algorithm’s maximum cross error was approximately 10 m, compared to 30 m for the ALOS-PID algorithm. During path following, the DDPG-MPC algorithm achieved an average cross error of 6.747 m, 6.7% lower than the ALOS-PID algorithm’s 7.233 m. In terms of the heading angle error, the DDPG-MPC algorithm recorded an average of 13.8°, significantly lower than the 34.6° of the ALOS-PID algorithm, representing a 60% reduction. Moreover, the DDPG-MPC algorithm maintained a more stable and higher longitudinal velocity over a longer duration, whereas the ALOS-PID algorithm showed less stability and greater variability in longitudinal velocity.
Under real sea conditions, the DDPG-MPC algorithm demonstrated strong adaptability and robustness, effectively handling interference factors like wind, waves, and currents to accomplish path-following tasks. From the experimental results and comparative analysis, it can be inferred that the DDPG-MPC algorithm proposed in this study offers notable advantages in the overall performance of path following for single-outboard-motor USVs and holds significant potential for broader application and promotion.
Future research will aim to further optimize the algorithm to improve its real-time performance and robustness, making it applicable to more complex real-world navigation scenarios. These advancements are anticipated to deliver safer, more efficient, and stable path-following solutions for the autonomous navigation of single-outboard-motor USVs.

Author Contributions

Conceptualization, X.H. and Y.C.; formal analysis, B.C. and Y.C.; funding acquisition, X.H.; investigation, B.C., H.L., and Y.C.; methodology, X.H. and Y.C.; project administration, X.H.; software, H.L. and G.C.; supervision, X.H.; validation, B.C. and Y.C.; writing—original draft, B.C., H.L., and G.C.; writing—review and editing, Y.C. and X.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the 2024 Guangdong Provincial Marine Economy Development Special Project under grant GDNRC [2024]20.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

Author Bin Cui was employed by the Guangzhou Shipyard International Company Limited The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in the paper:
USVsunmanned surface vehicles
DDPGDeep Deterministic Policy Gradient
MPCmodel predictive control
VFvector field
LOSline of sight
ALOSadaptive los
IDLOSintegral–differential los
USGESuniform semi-global exponential stability
DQNdeep q-network
RBF NNradial basis function neural networks
DOFdegrees of freedom
QPquadratic programming

References

  1. Zhao, L.; Qiu, S.; Chen, Y. Enhanced Water Surface Object Detection with Dynamic Task-Aligned Sample Assignment and Attention Mechanisms. Sensors 2024, 24, 3104. [Google Scholar] [CrossRef]
  2. Chen, Y.; Hong, X.; Cui, B.; Peng, R. Implementation of an Efficient Image Transmission Algorithm for Unmanned Surface Vehicles Based on Semantic Communication. J. Mar. Sci. Eng. 2023, 11, 2280. [Google Scholar] [CrossRef]
  3. Chen, Y.; Hong, X.; Chen, W.; Wang, H.; Fan, T. Experimental Research on Overwater and Underwater Visual Image Stitching and Fusion Technology of Offshore Operation and Maintenance of Unmanned Ship. J. Mar. Sci. Eng. 2022, 10, 747. [Google Scholar] [CrossRef]
  4. Xiao, G.; Tong, C.; Wang, Y.; Guan, S.; Hong, X.; Shang, B. CFD simulation of the safety of unmanned ship berthing under the influence of various factors. Appl. Sci. 2021, 11, 7102. [Google Scholar] [CrossRef]
  5. Aguiar, A.P.; Hespanha, J.P.; Kokotović, P.V. Path-following for nonminimum phase systems removes performance limitations. IEEE Trans. Autom. Control 2005, 50, 234–239. [Google Scholar] [CrossRef]
  6. Zhao, Y.; Qi, X.; Ma, Y.; Li, Z.; Malekian, R.; Sotelo, M.A. Path following optimization for an underactuated USV using smoothly-convergent deep reinforcement learning. IEEE Trans. Intell. Transp. Syst. 2020, 22, 6208–6220. [Google Scholar] [CrossRef]
  7. Lekkas, A.M.; Fossen, T.I. A time-varying lookahead distance guidance law for path following. IFAC Proc. 2012, 45, 398–403. [Google Scholar] [CrossRef]
  8. Liu, Z.; Zhang, Y.; Yu, X.; Yuan, C. Unmanned surface vehicles: An overview of developments and challenges. Annu. Rev. Control 2016, 41, 71–93. [Google Scholar] [CrossRef]
  9. Shamsuddin, P.N.F.b.M.; Mansorand, M.A.b. Motion control algorithm for path following and trajectory tracking for unmanned surface vehicle: A review paper. In Proceedings of the CRC 2018: The 3rd International Conference on Control, Robotics and Cybernetics, Penang, Malaysia, 26–28 September 2018. [Google Scholar]
  10. Shan, Q.; Wang, X.; Li, T.; Chen, C.L.P. Finite-time control for USV path tracking under input saturation with random disturbances. Appl. Ocean Res. 2023, 138, 103628. [Google Scholar] [CrossRef]
  11. Fossen, T.I.; Breivik, M.; Skjetne, R. Line-of-sight path following of underactuated marine craft. IFAC Proc. 2003, 36, 211–216. [Google Scholar] [CrossRef]
  12. Nelson, D.R.; Barber, D.B.; McLain, T.W.; Beard, R.W. Vector field path following for miniature air vehicles. IEEE Trans. Robot. 2007, 23, 519–529. [Google Scholar] [CrossRef]
  13. Wang, S.; Sun, M.; Xu, Y.; Liu, J.; Sun, C. Predictor-based fixed-time LOS path following control of underactuated USV with unknown disturbances. IEEE Trans. Intell. Veh. 2023, 8, 2088–2096. [Google Scholar] [CrossRef]
  14. Liu, Z.; Song, S.; Yuan, S.; Ma, Y.; Yao, Z. ALOS-Based USV path-following control with obstacle avoidance strategy. J. Mar. Sci. Eng. 2022, 10, 1203. [Google Scholar] [CrossRef]
  15. Zhou, G.; Lin, J.; Wu, J.; Liu, Z.; Wu, G.; Zhao, D.; Xu, C.; Zhang, H. An integral-differential LOS algorithm for USV path-tracking control. In Proceedings of the ACAIB 2023: The 3rd International Conference on Automation Control, Algorithm, and Intelligent Bionics, Xiamen, China, 28–30 April 2023. [Google Scholar]
  16. Tong, H. An adaptive error constraint line-of-sight guidance and finite-time backstepping control for unmanned surface vehicles. Ocean Eng. 2023, 285, 115298. [Google Scholar] [CrossRef]
  17. Fossen, T.I. An adaptive line-of-sight (ALOS) guidance law for path following of aircraft and marine craft. IEEE Trans. Control Syst. Technol. 2023, 31, 2887–2894. [Google Scholar] [CrossRef]
  18. Hong, Z.; Wang, X.; Li, M.; Gu, Y.; Zhao, J.; Cao, X. Predictive Path Following for Unmanned Surface Vessel Based on Adaptive Line-of-Sight. In Proceedings of the CCC 2023: The 42nd Chinese Control Conference, Tianjin, China, 24–26 July 2023. [Google Scholar]
  19. Papelis, Y.; Weate, M. Operations Architecture and Vector Field Guidance for the Riverscout Subscale Unmanned Surface Vehicle. In Proceedings of the DHSS 2013: The 3rd International Defense and Homeland Security Simulation Workshop, Athens, Greece, 25–27 September 2013. [Google Scholar]
  20. Niu, H.; Lu, Y.; Savvaris, A.; Tsourdos, A. Efficient path following algorithm for unmanned surface vehicle. In Proceedings of the OCEANS 2016, Shanghai, China, 10–13 April 2016. [Google Scholar]
  21. Woo, J.; Kim, N. Vector field based guidance method for docking of an unmanned surface vehicle. In Proceedings of the PACOMS 2016: The 12th Pacific-Asia Offshore Mechanics Symposium, Gold Coast, Australia, 4–7 October 2016. [Google Scholar]
  22. Caharija, W.; Pettersen, K.Y.; Calado, P.; Braga, J. A comparison between the ILOS guidance and the vector field guidance. IFAC-PapersOnLine 2015, 48, 89–94. [Google Scholar] [CrossRef]
  23. Zhang, Z.; Zhao, Y.; Zhao, G.; Wang, H.; Zhao, Y. Path-following control method for surface ships based on a new guidance algorithm. J. Mar. Sci. Eng. 2021, 9, 166. [Google Scholar] [CrossRef]
  24. Liu, Z.; Yu, L.; Xiang, Q.; Qian, T.; Lou, Z.; Xue, W. Research on USV Trajectory Tracking Method Based on LOS Algorithm. In Proceedings of the 2021 14th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China, 11–12 December 2021; pp. 408–411. [Google Scholar] [CrossRef]
  25. Gonzalez-Garcia, A.; Castañeda, H. Guidance and control based on adaptive sliding mode strategy for a USV subject to uncertainties. IEEE J. Ocean. Eng. 2021, 46, 1144–1154. [Google Scholar] [CrossRef]
  26. Xu, H.T.; Guedes Soares, C. Waypoint-following for a marine surface ship model based on vector field guidance law. Marit. Technol. Eng. 2016, 3, 409–418. [Google Scholar]
  27. Gonzalez-Garcia, A.; Castañeda, H.; Garrido, L. USV Path-Following Control Based On Deep Reinforcement Learning and Adaptive Control. In Proceedings of the Global Oceans 2020: Singapore—U.S. Gulf Coast, Biloxi, MS, USA, 5–30 October 2020; pp. 1–7. [Google Scholar]
  28. Zhao, Y.; Qi, X.; Incecik, A.; Ma, Y.; Li, Z. Broken lines path following algorithm for a water-jet propulsion USV with disturbance uncertainties. Ocean Eng. 2020, 201, 107118. [Google Scholar] [CrossRef]
  29. Mou, J.; He, Y.; Zhang, B.; Li, S.; Xiong, Y. Path Following of a Water-Jetted USV Based on Maneuverability Tests. J. Mar. Sci. Eng. 2020, 8, 354. [Google Scholar] [CrossRef]
  30. Yang, Z.; Lai, S.; Hong, X.; Shi, Y.; Cheng, Y.; Qing, C. DFAEN: Double-order knowledge fusion and attentional encoding network for texture recognition. Expert Syst. Appl. 2022, 209, 118223. [Google Scholar] [CrossRef]
  31. Xu, Z.; Hong, X.; Chen, T.; Yang, Z.; Shi, Y. Scale-aware squeeze-and-excitation for lightweight object detection. IEEE Robot. Autom. Lett. 2022, 8, 49–56. [Google Scholar] [CrossRef]
  32. Zhong, W.; Li, H.; Meng, Y.; Yang, X.; Feng, Y.; Ye, H.; Liu, W. USV path following controller based on DDPG with composite state-space and dynamic reward function. Ocean Eng. 2022, 266, 112449. [Google Scholar] [CrossRef]
  33. Han, Z.; Wang, Y.; Sun, Q. Straight-path following and formation control of USVs using distributed deep reinforcement learning and adaptive neural network. IEEE/CAA J. Autom. Sin. 2023, 10, 572–574. [Google Scholar] [CrossRef]
  34. Zhu, D.; Pan, Y.-J.; Wang, T.; Liu, S.; Pei, W. Improved Line-of-Sight Path Following Control for Underactuated USVs with Unknown Parameters Using Q-learning. In Proceedings of the 2024 IEEE 7th International Conference on Industrial Cyber-Physical Systems (ICPS), St. Louis, MO, USA, 12–15 May 2024; pp. 1–6. [Google Scholar]
  35. Hong, S.M.; Ha, K.N.; Kim, J.Y. Dynamics modeling and motion simulation of usv/uuv with linked underwater cable. J. Mar. Sci. Eng. 2020, 8, 318. [Google Scholar] [CrossRef]
  36. Setiawan, F.A.; Kadir, R.E.A.; Gamayanti, N.; Santoso, A.; Bilfaqih, Y.; Hidayat, Z. Dynamic modelling and controlling unmanned surface vehicle. In Proceedings of the SIDIIC 2019: The Sustainable Islands Development Initative International Conference, Surabaya, Indonesia, 2–3 September 2019. [Google Scholar]
  37. Liu, T.; Dong, Z.; Du, H.; Song, L.; Mao, Y. Path following control of the underactuated USV based on the improved line-of-sight guidance algorithm. Pol. Marit. Res. 2017, 24, 3–11. [Google Scholar] [CrossRef]
  38. Mu, D.; Wang, G.; Fan, Y.; Sun, X.; Qiu, B. Modeling and identification for vector propulsion of an unmanned surface vehicle: Three degrees of freedom model and response model. Sensors 2018, 18, 1889. [Google Scholar] [CrossRef] [PubMed]
  39. Sonnenburg, C.R.; Woolsey, C.A. Modeling, identification, and control of an unmanned surface vehicle. J. Field Robot. 2013, 30, 371–398. [Google Scholar] [CrossRef]
  40. Ueno, M.; Tsukada, Y. Estimation of full-scale propeller torque and thrust using free-running model ship in waves. Ocean Eng. 2016, 120, 30–39. [Google Scholar] [CrossRef]
  41. Öztürk, O.B.; Başar, E. Multiple linear regression analysis and artificial neural networks based decision support system for energy efficiency in shipping. Ocean Eng. 2022, 243, 110209. [Google Scholar] [CrossRef]
  42. Taktak-Meziou, M.; Ghommam, J.; Derbel, N. Adaptive backstepping neural network approach to ship course control. In Proceedings of the SSD 2011: The 8th International Multi-Conference on Systems, Signals and Devices, Sousse, Tunisia, 22–25 March 2011. [Google Scholar]
  43. Wang, C.; Zhang, X.; Cong, L.; Li, J.; Zhang, J. Research on intelligent collision avoidance decision-making of unmanned ship in unknown environments. Evol. Syst. 2019, 10, 649–658. [Google Scholar] [CrossRef]
  44. Du, Y.; Zhang, X.; Cao, Z.; Wang, S.; Liang, J.; Zhang, F.; Tang, J. An optimized path planning method for coastal ships based on improved DDPG and DP. J. Adv. Transp. 2021, 2021, 7765130. [Google Scholar] [CrossRef]
Figure 1. Coordinate system for kinematic modeling of USV.
Figure 1. Coordinate system for kinematic modeling of USV.
Jmse 12 02321 g001
Figure 2. Algorithm framework for path-following control of single-outboard-motor USV.
Figure 2. Algorithm framework for path-following control of single-outboard-motor USV.
Jmse 12 02321 g002
Figure 3. The reward function. (a) The reward function r ε related to the cross-track error ε between the USV’s actual position and the desired tracking path. (b) The reward function r β related to the deviation β between the USV’s heading angle and the desired path angle. (c) The reward function r Δ ψ d related to the change in the desired heading angle Δ ψ d of the USV.
Figure 3. The reward function. (a) The reward function r ε related to the cross-track error ε between the USV’s actual position and the desired tracking path. (b) The reward function r β related to the deviation β between the USV’s heading angle and the desired path angle. (c) The reward function r Δ ψ d related to the change in the desired heading angle Δ ψ d of the USV.
Jmse 12 02321 g003
Figure 4. Framework of the DDPG algorithm.
Figure 4. Framework of the DDPG algorithm.
Jmse 12 02321 g004
Figure 5. Amphibious USV propelled by single outboard motor for experimentation.
Figure 5. Amphibious USV propelled by single outboard motor for experimentation.
Jmse 12 02321 g005
Figure 6. Outboard engine parameters.
Figure 6. Outboard engine parameters.
Jmse 12 02321 g006
Figure 7. Cumulative reward value curve for each episode.
Figure 7. Cumulative reward value curve for each episode.
Jmse 12 02321 g007
Figure 8. MATLAB path-following simulation model.
Figure 8. MATLAB path-following simulation model.
Jmse 12 02321 g008
Figure 9. Simulation experiment results of path following of a single straight path. (a) The comparison of the path-following trajectories. (b) The comparison of the cross error. (c) The comparison of the heading angle error.
Figure 9. Simulation experiment results of path following of a single straight path. (a) The comparison of the path-following trajectories. (b) The comparison of the cross error. (c) The comparison of the heading angle error.
Jmse 12 02321 g009
Figure 10. Simulation experiment results of path following of multi-polyline path. (a) Comparison of path-following trajectories. (b) Comparison of cross error. (c) Comparison of heading angle error.
Figure 10. Simulation experiment results of path following of multi-polyline path. (a) Comparison of path-following trajectories. (b) Comparison of cross error. (c) Comparison of heading angle error.
Jmse 12 02321 g010
Figure 11. Path-following trajectories of real ship experiments. (a) Comparison of path-following trajectories. (b) Aerial view of path-following experiment.
Figure 11. Path-following trajectories of real ship experiments. (a) Comparison of path-following trajectories. (b) Aerial view of path-following experiment.
Jmse 12 02321 g011
Figure 12. Comparison of path-following error in real ship experiment. (a) Comparison of cross error. (b) Comparison of heading angle error.
Figure 12. Comparison of path-following error in real ship experiment. (a) Comparison of cross error. (b) Comparison of heading angle error.
Jmse 12 02321 g012
Figure 13. Comparison of the three-degree-of-freedom speeds of the USV in real ship experiment. (a) Controlled by the DDPG-MPC algorithm. (b) Controlled by the ALOS-PID algorithm.
Figure 13. Comparison of the three-degree-of-freedom speeds of the USV in real ship experiment. (a) Controlled by the DDPG-MPC algorithm. (b) Controlled by the ALOS-PID algorithm.
Jmse 12 02321 g013
Table 1. Main technical parameters of the amphibious USV for experiment.
Table 1. Main technical parameters of the amphibious USV for experiment.
Parameter Value
Length overall8 m
Extreme breadth2.3 m
Load draft 0.55 m
Maximum speed25 kn
Propeller diameter 1 4
Maximum propulsion angle30°
Table 2. Hyperparameter settings of the training process of the DDPG agent.
Table 2. Hyperparameter settings of the training process of the DDPG agent.
Parameter Value
Number of neurons in the hidden layer256
OptimizerAdam
Network learning rate0.0001
Soft update factor τ 0.005
Reward discount factor γ 0.99
Batch size256
Experience replay pool size1 × 106
Table 3. Parameter settings of the MPC heading controller.
Table 3. Parameter settings of the MPC heading controller.
Parameter Value
Predicted step length N p 10
Dwell time 0.1 s
Propulsion angle constraints 30 δ 30
Propulsion angular velocity constraint 10 / s Δ δ 10 / s
Weight parameters Q 1
Weight parameters R 1
Table 4. Parameter settings for path-following experiment of a single straight path.
Table 4. Parameter settings for path-following experiment of a single straight path.
Parameter Value
Starting point of the path(0, 0)
End point of the path(0, 500)
Direction angle of the path90°
Initial position of the USV(40, 0)
Initial heading angle of the USV
Table 5. Parameter settings related to the ALOS-PID algorithm.
Table 5. Parameter settings related to the ALOS-PID algorithm.
Parameter Value
Front visual distance Δ (m)20
The adaptive gain coefficient γ 0.0013
Observer gain coefficient K f 0.2
Determine radius r s (m)8
K p 0.83
K i 0
K d 1.1
Table 6. Comparison of average error of path following of a single straight path.
Table 6. Comparison of average error of path following of a single straight path.
Algorithm Average Cross Error (m)Average Heading Angle Error (°)
ALOS-PID7.87114.0
DDPG-MPC (Ours)4.95511.1
Table 7. Parameter settings for path-following experiment of multi-polyline path.
Table 7. Parameter settings for path-following experiment of multi-polyline path.
Parameter Value
Knuckle point of the path(0, 0), (0, 300), (50, 300), (50, 0), (100, 0), (100, 300),
(150, 300), (150, 0), (200, 0), (200, 300)
Initial position of the USV(−30, −30)
Initial heading angle of the USV
Table 8. Comparison of average error of path following of multi-polyline path.
Table 8. Comparison of average error of path following of multi-polyline path.
Agorithm Average Cross Error (m)Average Heading Angle Error (°)
ALOS-PID4.80110.8
DDPG-MPC (Ours)4.39411.3
Table 9. Parameter settings for real ship comparative experiment.
Table 9. Parameter settings for real ship comparative experiment.
Parameter Value
The latitude and longitude of the path point(N 22.704023, E 113.644455), (N 22.700570, E 113.646854), (N 22.694336, E 113.648297), (N 22.690591, E 113.645698), (N 22.689223, E 113.648798)
Initial position of the USVThe latitude and longitude: (N 22.704600, E 113.644300)
Initial heading angle of the USV20.0°
Table 10. Comparison of average error of path following of real ship experiment.
Table 10. Comparison of average error of path following of real ship experiment.
Algorithm Average Cross Error (m)Average Heading Angle Error (°)
ALOS-PID7.23334.6
DDPG-MPC (Ours)6.74713.8
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

Cui, B.; Chen, Y.; Hong, X.; Luo, H.; Chen, G. Research on Path-Following Technology of a Single-Outboard-Motor Unmanned Surface Vehicle Based on Deep Reinforcement Learning and Model Predictive Control Algorithm. J. Mar. Sci. Eng. 2024, 12, 2321. https://doi.org/10.3390/jmse12122321

AMA Style

Cui B, Chen Y, Hong X, Luo H, Chen G. Research on Path-Following Technology of a Single-Outboard-Motor Unmanned Surface Vehicle Based on Deep Reinforcement Learning and Model Predictive Control Algorithm. Journal of Marine Science and Engineering. 2024; 12(12):2321. https://doi.org/10.3390/jmse12122321

Chicago/Turabian Style

Cui, Bin, Yuanming Chen, Xiaobin Hong, Hao Luo, and Guanqiao Chen. 2024. "Research on Path-Following Technology of a Single-Outboard-Motor Unmanned Surface Vehicle Based on Deep Reinforcement Learning and Model Predictive Control Algorithm" Journal of Marine Science and Engineering 12, no. 12: 2321. https://doi.org/10.3390/jmse12122321

APA Style

Cui, B., Chen, Y., Hong, X., Luo, H., & Chen, G. (2024). Research on Path-Following Technology of a Single-Outboard-Motor Unmanned Surface Vehicle Based on Deep Reinforcement Learning and Model Predictive Control Algorithm. Journal of Marine Science and Engineering, 12(12), 2321. https://doi.org/10.3390/jmse12122321

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