Abstract
Automation of berthing maneuvers in shipping is a pressing issue as the berthing maneuver is one of the most stressful tasks seafarers undertake. Berthing control problems are often tackled by tracking a predefined trajectory or path. Maintaining a tracking error of zero under an uncertain environment is impossible; the tracking controller is nonetheless required to bring vessels close to desired berths. The tracking controller must prioritize the avoidance of tracking errors that may cause collisions with obstacles. This paper proposes a training method based on reinforcement learning for a trajectory tracking controller that reduces the probability of collisions with static obstacles. Via numerical simulations, we show that the proposed method reduces the probability of collisions during berthing maneuvers. Furthermore, this paper shows the tracking performance in a model experiment.
Introduction
Berthing—the process of bringing a vessel alongside a dock—is a critical and technically demanding maritime operation. At the low speeds required for berthing, ships become difficult to steer, and environmental forces like wind and currents exert a disproportionate influence. While autonomous systems typically employ trajectory tracking, achieving zero error is physically impossible. Crucially, in berthing, the target destination is also the primary obstacle. A standard controller might treat symmetric tracking errors equally, but in a berthing context, an error toward the dock is catastrophic while an error away from it is merely a delay. This research addresses the need for a controller that understands the geometric consequences of its tracking errors.
Methodology
The proposed system utilizes the Twin-Delayed Deep Deterministic Policy Gradient (TD3) reinforcement learning algorithm. The training pipeline is designed to instill geometric intuition and robustness through three key components:
- Random Trajectory Generation: To avoid the limitations of sparse real-world data, the agent is trained on a vast library of complex motions generated via maneuvering simulations with random control inputs.
- Static Pseudo-Obstacles: The system automatically generates obstacles around these random trajectories, ensuring the agent frequently encounters and learns to navigate "near-miss" scenarios.
- Asymmetric Reward Function: The core innovation is the introduction of an "imaginary obstacle line" passing through the nearest obstacle point. The reward function penalizes the vessel when it deviates toward this line more than the reference trajectory intended.
The controller manages a complex actuator suite including a VecTwin rudder (dual fishtail rudders), a main propeller, and a bow thruster. By providing the distance to the nearest obstacle point as a direct state input, the neural network develops a spatial bias toward safety.
Results and Discussion
The proposed controller (Ctrl-w/-OBST) was compared against a standard RL tracking controller (Ctrl-w/o-OBST) in both numerical simulations and physical experiments.
In simulations with wind disturbances, the proposed method demonstrated a dramatic reduction in collision probability. For instance, in one specific terminal condition, the collision probability dropped from 94.3% with the standard controller to just 7.9%.
Physical validation was conducted using a 3-meter scale ship equipped with GNSS and Fiber Optical Gyros in an outdoor pond. These experiments confirmed that the controller could successfully handle real-world wind and sensor noise, bringing the vessel to the berthing point at safe speeds.
Conclusion
This study demonstrates that prioritizing safety over symmetric tracking precision significantly improves the reliability of autonomous berthing systems. By training on diverse, randomly generated scenarios and employing a geometrically-aware reward function, the RL agent learns to prioritize the avoidance of high-risk tracking errors. Future research will focus on incorporating wind as a direct feedback input and refining the model to handle more complex harbor geometries and the use of fenders.
Summary updated