1. Introduction
According to the European Maritime Safety Agency’s Annual Overview of Marine Casualties and Incidents for 2023, from 2014 to 2022, 80.7% of accident factors were related to human factors, and 45.3% of accidents occurred in coastal waters. In this context, people have turned their attention to the development of unmanned surface vessels (USVs), as their maneuverability issues in coastal waters urgently need to be addressed. USVs refer to vessels that navigate on the water surface and are fully automated without crew members. They utilize advanced intelligent perception algorithms, data fusion, communication technology, the Internet of Things, control technology, etc., to achieve automatic operation, navigation, and berthing. USVs play an increasingly important role in various complex maritime tasks, including marine resource exploration, water pollution removal, disaster rescue, maritime patrols, and exploration [
1,
2,
3,
4,
5], due to their low cost, high efficiency, and flexibility.
As an important task of USVs in the coastal waters, automatic berthing is a great challenge to the symmetry and stability of ship movement. Symmetry refers to the property or structure of a system that remains unchanged under certain transformations. In automatic berthing control, symmetry usually refers to the fact that the control characteristics of the system should remain consistent under different motion conditions (such as different heading or speed). Ensuring symmetry can enable the control system to exhibit better consistency and reliability in different situations. If a control system has good symmetry, the consistency of control strategies in different states may help improve the overall stability of the system [
6].
The most commonly studied method for automatic berthing is artificial neural networks (ANN). In [
7], the authors used neural networks for automatic ship berthing, using two parallel controllers instead of a centralized controller, and achieved good control results. Later, Im [
8] proposed the concept of designing ANN controllers separately for multiple areas in ports, enabling ships to automatically berth at any position. Ahmed [
9] introduced a virtual window to create consistent data for the neural network training process and validated the ANN controller for ship berthing under strong wind conditions. Nguyen [
10] suggested that existing ANN controllers use parameters composed of ship position and ship heading as inputs and highlighted that they cannot be applied to control ships to berth at different ports. To solve this problem, parameters such as the bearing and the distance from the ship to the berth calculated by ARPA (Automatic Radar Plotting Aid) can be used as inputs to the controller. This study developed an automatic berthing controller that does not require retraining of neural networks using parameters measured by ranging systems. Li [
11] applied an ANN to an automatic berthing model with established predetermined routes. With the help of training data from a certain port, this model can be applied to ship berthing with different berth layouts. However, in the actual berthing process of ships, the allowed control convergence time is relatively short, and the real-time performance of this method is difficult to guarantee. Additionally, due to the lack of universality of the target ship training samples that need to be obtained via neural networks, it is difficult to apply ANN control methods to actual ship berthing.
Due to the highly nonlinear model of ships during low-speed berthing, it is difficult to calculate analytical solutions. Therefore, the nonlinear optimal control theory is widely used for numerical methods when automatically berthing ships. Optimal control is a comprehensive strategy that optimizes the performance indicators of a controlled system. The optimal control strategy can be identified from a class of allowed control schemes for a controlled dynamic system or motion process so that the performance indicator value of the system is optimal while transitioning from an initial state to a specified target state. At present, the main research methods for optimal control include model predictive control [
12,
13], data-driven methods [
14], and covariance matrix adaptive evolutionary strategies [
15]. Nonlinear optimal control methods can solve nonlinear control problems in real time, usually requiring the establishment of accurate mathematical models. However, establishing mathematical models for ships is difficult [
16]. Based on the actual berthing environment, researchers often focus on establishing mathematical models in certain aspects, but lack unified and modular research on models. The automatic berthing mathematical model is mainly based on the MMG modeling idea, and also involves environmental (wind, waves, currents) interference models. The motion of a ship is influenced by various factors, including its center of gravity, buoyancy center, rudder angle, velocity, load state, etc. The interaction between these factors makes the modeling process more complex. The impact of different marine environments (such as wave height, wavelength, tides, etc.) on ship motion varies, so modeling is required for different situations, which increases the complexity of the model.
Based on the existing relevant research and research being conducted in other related studies [
17,
18,
19], this study mainly focuses on the symmetry issue of the automatic berthing process of USVs. A finite time controller is designed to enable USVs to autonomously move to designated berths while maintaining dynamic positioning. During this process, an event triggering mechanism based on dynamic thresholds is added, reducing the number of actuator actions and effectively extending its service life without affecting control effectiveness. The design method can comprehensively improve the maneuverability of ships in different environments and maintain symmetry.
2. Principle of Automatic Berthing and Mathematical Model of Pod-Driven USV
2.1. Principle of Automatic Berthing
The berthing of USVs is a relatively complex and difficult control movement in many ship maneuvering situations. In the actual process of ship berthing, under the influence of several factors, such as the shore wall effect, shallow water, and weak rudder effect, ships usually need a tugboat to provide lateral force and moment to reach the designated berth. With the significant improvement of ship automation, automatic berthing of USVs can be realized under certain conditions [
20,
21,
22,
23]. To realize the whole process of autonomous intelligent unmanned transportation, research on the automatic berthing of USVs has important practical significance.
Specifically, automatic berthing refers to the process of berthing and positioning in a harbor. At present, due to the large inertia of ships, even in the presence of side thrusters, maneuvering in harbors is completed mainly with the assistance of tugboats. The process of tugboat action is as follows: when a ship applies for berthing, to prevent the ship from colliding with the wharf, the tugboat is used to pull the bow first, and then another tugboat is used to pull the stern after reaching a suitable position to gradually make the ship enter the berth. Many scholars have performed extensive research on ship motion control. Automatic berthing control involves path planning, track tracking, dynamic positioning and so on. The specific control methods include the sliding mode method, neural network method, backstepping method, and adaptive method. Scholars worldwide have made different emphases on the task and target of automatic berthing, so the control methods are given in different ways.
In this study, the automatic berthing problem is transformed into a stabilization control problem. A schematic diagram of automatic berthing is shown in
Figure 1.
A diagram of the automatic berthing process is shown in
Figure 2.
The automatic berthing system consists of a measurement system, a control system and a thrust distribution system. In navigation, the control system generates control signals to resist the influence of various disturbances. , , and are the expected position and course; , , and are the actual position and course; , , and are the longitudinal force, transverse force, and moment produced by the controller; and and are the expected and actual revolution speed of propeller (revolutions per minute). Due to the ship being equipped with side thrusters and other devices, control forces can be generated at each degree of freedom to achieve the above control strategy. Previous research on ship trajectory tracking and dynamic positioning has been an important reference method for solving automatic berthing. The ship speed control is also gradually reduced to zero when the ship arrives at the berth. In essence, automatic berthing can be regarded as a stabilization control problem involving speed in all directions.
2.2. Symmetry Problem in Automatic Berthing of USVs
In automatic berthing, the symmetry problem is manifested as dynamic symmetry and environmental symmetry.
Dynamic symmetry: When a vessel is berthed, it needs to adjust its status based on its own dynamic characteristics (such as speed, turning radius, etc.) to approach the target berth in a balanced manner.
Environmental symmetry: During the berthing process, it is necessary to consider the symmetry of environmental factors such as water flow, wind, and waves. These factors may have asymmetric effects on the trajectory of USVs, leading to instability during berthing.
The symmetry problem is important for the berthing of unmanned surface vessels in the following aspects:
Safety: Asymmetric berthing processes may lead to collisions between ships and other vessels or port facilities, resulting in safety hazards, especially in busy coastal waters.
Accuracy: Symmetry issues affect the ability of a vessel to adjust its position and angle when approaching a berth. If precise control is not possible, it may result in the vessel being unable to berth safely or causing accidents.
Control strategy: Whether it is the processing of sensor data or the design of control algorithms, symmetry issues will affect the response speed and accuracy of the automatic control system, ensuring real-time correction of heading deviation.
Coastal waters are often accompanied by highly dynamic environmental changes, such as tides, waves, and other surface traffic, which can lead to asymmetric behavior in both the external environment and the USV itself. By studying and improving symmetry issues, the robustness of the system in the face of uncertainty and disturbance can be enhanced, thereby improving the adaptability of automatic berthing. During the automatic berthing process of USVs, symmetry is an important key to ensuring safe, accurate, and efficient berthing. In-depth research and resolution of this issue could help improve the operational capabilities of USVs in complex environments, reduce potential safety risks, and promote their application and development in coastal waters.
2.3. Mathematical Model of Pod-Driven USV
The object of this study is a ship with a pair of pod propellers installed at the stern. The dynamic equation was calculated using (1).
where
,
, and
are the mass and additional mass;
and
are the moment of inertia and additional moment of inertia;
,
, and
are forces and moments acting on the hull;
represents the pod;
represents the hull;
represents the marine environmental disturbance;
u is the longitudinal velocity;
v is the lateral velocity; and
r is the bow turning angular velocity.
After the Taylor expansion of (1), the equation that retains the first-order quantity is (2).
When the USV arrives at the berth, its speed is 0, so
is the equilibrium state; then, (2) can be transformed into (3).
Equation (3) is abbreviated as (4):
In (4),
,
,
=
, and
=
. The parameters
and
are hydrodynamic derivatives. The formulas are shown below.
In (5),
is the length of the vessel;
is the draft;
is the width of the ship;
is the square coefficient; and
is the damping coefficient.
can be calculated according to the following formula:
With the continuous development of pod propulsion, the advantages of pod propulsion in terms of economy and environmental protection have led to rapid development. This kind of propulsion device is suspended at the stern. The thrust direction of the pod thruster can be changed, which can improve maneuverability but also increase control difficulty, especially in terms of signal delay and response time. Under different navigation conditions, the pod thruster may apply lateral forces, which can affect the stability of the heading. The pod propulsor adopts electric propulsion, and the cable is used to connect to the marine generator, which saves space in the transmission shafting. This approach has important practical significance for the construction of ships, as container ships can carry more goods, and warships can carry more weapons and ammunition [
24,
25,
26]. The concept ship “Revolt”, developed by Det Norske Veritas, adopts a pod propulsion device, which is a real unmanned transport ship. The ship has no superstructure, and all the containers are in the cabin. The whole ship uses electrical energy, which reduces the loss of energy from 85% to 40%. The purpose of autonomous navigation, collision avoidance, and maritime navigation can be achieved by using the automatic control system of the whole ship and the good maneuverability of the pod-type propeller. It can be seen that pod propulsion is feasible for USVs.
Compared with that of the traditional rudder and propeller propulsion mode, the complexity of the mathematical analysis of the pod is increased. It is a rotatable propulsion device. When the direction of the force generated by the rotation of its propeller is towards the stern, it pushes the ship forward; If the direction of the pod thruster is changed to direct the force generated by the propeller towards the bow of the ship, it can pull the ship backwards and play an important role in ship maneuvering. Thus, it is necessary to establish a thrust vector model. The distribution of ship pods is shown in
Figure 3.
The thrust vector model equation is shown in (7).
where
and
are the steering angles of the pods;
is the distance between the two pods;
and
are the thrusts generated by the pods;
is the distance from stern to the center of the ship; and
is the thrust derating factor.
The thrust calculation formula of a single POD propeller is shown in (8).
where
is the density of seawater;
is the speed of the propeller;
is the propeller diameter; and
is the advance ratio.
can be calculated according to the open water performance map [
27] shown in
Figure 4.
The fitting equation is shown in (9):
2.4. Model of Marine Environmental Disturbances
Wind force and moment can be calculated using the formula (10):
In (10),
,
and
are wind pressure coefficients;
is the air density;
is the relative wind speed;
is the orthogonal projection area of the hull surface; and
is the side of the projected area of the waterline, which is shown in
Figure 5.
Regarding waves, a second-order wave mathematical model is used. The calculation formula is seen in (11):
In (11),
is the average wave amplitude;
is the wave encounter angle; and
is the wavelength.
,
, and
are the experimental coefficients obtained by summarizing. The calculation formula is (12):
Regarding ocean current, a modeling approach is adopted for uniform current. The effect of ocean current can cause USVs to change their longitudinal and transverse velocities, causing them to deviate from their course. The formula is (13):
In (13), and are the component of the velocity of the ocean current in the longitudinal and transverse directions; is the velocity of the ocean current; and is the direction angle of the ocean current.
The lateral and longitudinal velocities of a USV in an ocean current can be calculated using the following formula:
In (14), the transverse and longitudinal components of the USV’s speed relative to the earth are and , and the relative speed under the influence of ocean currents becomes and .
3. Finite-Time Controller Design Based on the Global Fast Nonsingular Terminal Sliding Mode
3.1. Finite-Time Stability Theory
In general, control engineering systems require stability in a limited time, which entails relatively stringent requirements concerning the rapidity of the control system. It is theoretically assumed that the system state converges to a range small enough for the balance position when time tends to infinity. Based on this idea, advanced intelligent control algorithms, which are being studied and widely applied at present, have improved the control performance in different aspects. In theory, it is not easy to determine the specific duration of control stability. With the advent of homogeneous theory, the development of finite-time control theory has accelerated [
28,
29,
30,
31]. The finite time control method is widely believed to have better rapidity and anti-disturbance performance, and it can be used to solve the symmetry problem in ship motion control [
32].
The methods for designing controllers using finite time control theory are roughly as follows: the open-loop finite time control method is an early proposed method with relatively simple control laws. Like classical control theory, open-loop control has poor stability due to the lack of feedback in the system, making it unsuitable for practical applications. Non-continuous feedback control methods, such as bang-bang control, are not easy to implement in practical applications and suffer from severe chattering. The continuous feedback control method is a feasible way to achieve real-time control. This paper proposes a globally fast non-singular terminal sliding mode control law based on the idea of continuous feedback finite time control.
Terminal sliding mode control can achieve finite time stability of the system, making the stability analysis of ordinary sliding mode control transition from asymptotic stability with time approaching infinity to local stability analysis within finite time. In the process of designing a terminal sliding mode controller, it must be considered that there is no switching term function in ordinary sliding mode control, which reduces the chattering of the control signal. Therefore, considering many advantages, terminal sliding mode control is a control method with strong practical application value.
The system expressions can be described as in (15):
Equation (15) is the standard state equation of the control system. is the state variable, and its balance state is set to .
Definition 1. If the system reaches the equilibrium point at a finite moment, that is, for time , when , , when , , is a stable time function, then the system is finite-time stable.
Theorem 1. Suppose that there is a continuously differentiable function in the system, which is a positive definite function. If there exists any positive number l and a float number m between 0 and 1, make equation (16) hold: Then, system (15) is finite-time stable [
33,
34].
3.2. The Design of the Finite-Time Controller
The mathematical model of the automatic berthing system for a USV is as follows:
In (17),
is the position vector of the USV.
is the velocity vector.
is the transition matrix. Let
, where
is the expected position. When
, then (17) can be derived:
Therefore, the automatic berthing system of a USV is transformed into a stabilizing system, as shown above.
A global fast non-singular terminal sliding mode dynamic surface is proposed, whose form is shown in (19).
In (19), , ; ; is the position error vector, and . The nonlinear term ensures that the system state can quickly approach the equilibrium state when it is far away from the equilibrium state, while the linear term enables the system state to converge quickly when it approaches the equilibrium state. Moreover, due to the nonlinear term , the obtained control law can ensure that no singular point problems occur. If the distance between the state variable and the sliding surface is relatively large, the linear sliding mode plays an important role in the convergence speed of the state variable. When the state variable is relatively close to the sliding surface , can be ignored, and , as the key to sliding mode motion, can stabilize the system at the equilibrium position.
The law of convergence is
The control law can be designed as (21):
In (21), is the Lyapunov obstacle function. The function tends to infinity when the restricted quantity is close to the constraint value. Therefore, if the control law is designed properly, the Lyapunov function of the system will not diverge to infinity, and the restricted quantity of the system will not reach the constraint value.
The characteristics of the global fast nonsingular terminal sliding mode control are summarized as follows:
- (1)
The singularity problem in the control law is solved.
- (2)
This approach can ensure the stability of the system in finite time.
- (3)
This ensures that the system position variable is limited to a fixed area.
The proof process is as follows. Let the Lyapunov function be
Because of the existence of the inequality relation , when is satisfied, the control law can satisfy Theorem 1. Therefore, it is proven that the system can realize finite-time control.
The next step is to analyze the stability time. Take any one of the degrees of freedom as an example for calculation.
is the error of any one of the degrees of freedom. The following derivation can be made from (19):
Let
, so
. When
and
, (21) can be abbreviated as (29):
Because the general solution of
is
Then, the solution of (29) is
When
,
can be obtained. Therefore, (31) can be calculated as (32):
When
,
and
can be obtained. Therefore, (32) can be calculated as (33):
The finite time of the steady state is
Firstly, the design of the terminal sliding surface enables the system state to reach the equilibrium point within a finite time. It is different from traditional linear sliding mode surfaces. In traditional linear sliding mode control, the system state asymptotically converges, while the terminal sliding mode can ensure convergence in finite time. Secondly, the non-singular characteristics ensure the rationality of the control law. In the process of terminal sliding mode control, if singular problems occur, it will lead to infinite control variables, which is unacceptable in practical systems. The global non-singular terminal sliding mode controller avoids the occurrence of singular points through a special control law design, enabling effective and stable control of the system in finite time from any initial state throughout the entire control process.
4. Design of an Automatic Berthing System with an Event-Triggering Mechanism
An event-triggered control system is a kind of nonperiodic control system driven by events. The traditional control system design is continuously triggered. The signal is sampled and calculated continuously and periodically, which ensures the reliability of the control; however, in some cases, network resources are wasted, increasing the computational burden of the controller. The event-triggering mechanism only drives the actuator when the system meets the preset conditions, which reduces the calculation of the controller to a certain extent and improves the utilization of the network. There are many kinds of event settings. The threshold can also be a constant or a function. In brief, the design of an event-triggered control system is highly flexible, and the control signal is time-varying and aperiodic [
35,
36,
37,
38].
The application of event-triggered control in automatic berthing control systems also has practical engineering significance. In the process of berthing, the low-speed and weak rudder effect usually requires frequent maneuvering, and the application of an event-triggering mechanism can improve the berthing efficiency. In the traditional continuous trigger control system, the actuator is periodically driven at equal intervals, and the control signal remains unchanged between two adjacent time points through the function of the holder. When the disturbance at sea is low, continuous triggering will increase the consumption of the actuator. Previous studies have shown that the application of event triggering mechanisms in control systems can effectively optimize the number of executions of actuators to reduce wear and tear. Compared to traditional time-triggered control, event-triggered control significantly reduces the execution frequency of the controller, thereby reducing the wear and tear of the actuator. The relevant experimental results show that the system using event-triggered control can reduce the number of executions of the actuator by 30–50% under the same operating conditions. There are also studies indicating the impact of reducing execution frequency on overall system maintenance costs, with results showing that by implementing event-triggering mechanisms, maintenance costs of the system were reduced by 15%. Thus, in the design of control systems, it is possible to consider how to improve the reliability and economy of the system through event-triggered methods [
39,
40,
41]. The basic block diagram is as follows in
Figure 6:
Suppose the event trigger time is and . Let the first trigger time be and .
To ensure system stability, the event-triggering condition for designing dynamic thresholds is
In (36), T is the dynamic threshold:
where
is an adjustable parameter, and
. The main factor affecting the dynamic threshold is
, which is the designed sliding surface composed of system errors. The threshold is adjusted in real-time based on the calculation results of the sliding surface. Compared to a fixed threshold, this approach can effectively reduce the number of triggers while ensuring system stability.
, is the defined controller comparison error, represents the force exerted by the controller at the current moment, and is the force exerted by the controller at the triggering moment.
According to the event-triggering conditions, after a certain triggering moment, when the controller comparison error exceeds the dynamic threshold , the event-triggering moment will be updated from to . Moreover, the controller is updated from to , and the updated control signal is transmitted to the actuator to control the motion of the USV. By reducing the update frequency of the controller, the service life of the actuator is extended. The controller remains unchanged in , and the value of the controller is .
With
and
, the following equation can be derived:
According to (23), the derivative of the Lyapunov function after adding the event-triggering mechanism can be calculated as follows:
According to Lyapunov’s second law, to ensure that
, when s > 0, it is necessary to ensure that
. When s < 0, it is necessary to ensure that
. The minimum trigger time is discussed below; that is,
satisfies
,
. Because
,
Since the stability has been proven, it can be seen that
is a bounded function; that is, there must be a constant
satisfying
. The above formula can be written as follows:
5. Numerical Experiment
The “Taian Kou” ship is used as an example for this simulation. Her main parameters are shown in
Table 1.
The calculation results of the ship model parameters
M and
D are as follows:
The initial position and heading angle of the USV are , and the position and heading angle of the berth are . The controller parameters are , , , , , and . The parameters of the wave model are , , and . The current relative velocity of the earth is 1 kn, and the direction is . The relative velocity of the wind is 10 kn, and the wind direction is .
The simulation experiment is divided into two cases. The first case is a comparative analysis of finite time control (FTC) and conventional sliding mode control (CSMC) techniques in the automatic berthing process of the USV. The second case is a comparative analysis after adding an event-triggering mechanism.
Figure 7 and
Figure 8 show comparison curves of velocity and trajectory. Finite time control technology improves the convergence speed of the system by using control laws with exponential forms.
From
Figure 9, it can be seen that both finite time control and sliding mode control can generate reasonable control force and moment. From the results, it can be seen that the control force and moment calculated by the finite time controller can better ensure the speed of the system.
In
Table 2,
,
, and
. The finite-time controllers have demonstrated significant advantages over traditional control methods. One of the most notable benefits is their superior convergence speed, which allows the system to reach the desired state more rapidly. This characteristic is particularly crucial in applications where time is of the essence, as it enables real-time adjustments and enhances overall performance. Moreover, finite-time controllers are designed to minimize adjustment time, resulting in swift stabilization of the system. This reduces the impact of transient behaviors and ensures that the system behaves as intended without prolonged oscillations or delays. Additionally, the errors across various degrees of freedom are consistently lower when employing finite-time control strategies. This precision in error reduction contributes to enhanced system reliability and accuracy, making finite-time controllers an attractive option in fields demanding high performance and efficiency.
The following are the simulation results of the second case (comparative analysis after adding an event-triggering mechanism), adjusting the wind speed to 17 kn.
Figure 10 and
Figure 11 are the curves of velocity and trajectory under the disturbances.
As shown in
Figure 10 and
Figure 11, in the whole process of automatic berthing, the control effect of event-triggering control is basically the same as that of continuous drive control. Due to the particularity of the event-triggering mechanism, the control effect occurs only when it reaches threshold. Incorporating an event-driven mechanism significantly enhances the stability of system state transitions by minimizing the frequency of unnecessary operations. This approach allows for a more efficient response to relevant inputs, resulting in smoother transitions between different states. By effectively filtering out extraneous triggers, the system can focus on pertinent events, which not only conserves resources but also elevates overall performance. Consequently, the addition of this mechanism leads to a reduction in latency and disruption during state changes, fostering a more reliable operational framework. This improvement is particularly beneficial in dynamic environments where rapid and fluid adjustments are crucial for maintaining system integrity and user satisfaction. Thus, the integration of an event-triggering system serves as a pivotal strategy in optimizing the responsiveness and stability of the overall architecture.
Figure 12 shows that the implementation of an event-triggering mechanism significantly enhances the stability of control force and moment in our system. This selective activation leads to smoother transitions and minimizes wear on components, ultimately resulting in a more efficient and reliable operation.
Figure 13 shows the trigger time, that is, the time when the actuator works.
In
Figure 13, the amplitude of “1” indicates that the controller has been triggered. From
Figure 14, it can be seen, during the entire process of automatic berthing, the finite time controller with the event-triggering mechanism triggered 2713 times, while the control method without this mechanism triggered 5000 times. During the automatic berthing process, due to the low speed and slow response of the ship, the response of the previous control signal is insufficient, and the next control information is obtained. To avoid such meaningless losses, event-triggering mechanisms have practical significance.
For this case, some quantitative indicators have been summarized and presented in
Table 3.
In
Table 3,
,
, and
. The event-triggering mechanism has significantly reduced system oscillations, effectively leading to a decrease in the errors across various degrees of freedom. This reduction in triggering rates not only lessens the overall control force but also diminishes the required moment, thereby improving the system’s efficiency.
Based on the above theoretical and simulation analysis, the designed automatic berthing control method can effectively ensure symmetry, with the following three main factors.
(1) Event-triggered control can adaptively adjust control strategies based on the real-time status of the system, thereby achieving more precise control. This is very important for USVs to maintain symmetry during berthing, as it can correct heading and position deviations in real time.
(2) By setting event-triggering conditions reasonably, frequent changes in control signals can be reduced, thereby reducing shaking, maintaining system stability, and improving symmetry during berthing.
(3) The core of finite time control lies in the ability to achieve the expected state of the system within a specified time. This feature is very suitable for berthing, as time constraints can be designed to ensure reaching the ideal symmetrical state in a short period of time.