Collision probability reduction method for tracking control in automatic docking / berthing using reinforcement learning

Kouki Wakita, Youhei Akimoto, Dimas M. Rachman, Yoshiki Miyauchi, Umeda Naoya, Atsuo Maki · DOI

Introduction

Berthing—the final stage of a voyage where a vessel is brought alongside a quay—remains one of the most challenging operations in maritime transport. The low-speed maneuvers required, often involving lateral "crabbing" or reverse motions, are highly sensitive to environmental disturbances like wind. While autonomous navigation has advanced significantly, the "last mile" of berthing requires a level of precision and safety that traditional path-following controllers often struggle to provide in unpredictable real-world conditions.

The Berthing Challenge: Safety vs. Precision

Standard autonomous systems typically aim to minimize the error between the ship's actual position and a pre-planned trajectory. However, in a docking scenario, not all errors are equal. A deviation that moves a vessel away from a concrete pier is a minor inconvenience, whereas an identical deviation toward the pier is catastrophic. Traditional controllers often treat these errors symmetrically, leading to high collision risks when environmental forces push the ship toward obstacles. This research proposes a "collision-aware" tracking controller that prioritizes safety over absolute path precision.

RL-Based Collision-Aware Control

The researchers utilized Reinforcement Learning (RL), specifically the Twin-Delayed Deep Deterministic Policy Gradient (TD3) algorithm, to develop a controller capable of making safe, real-time decisions. Unlike computationally intensive methods like Model Predictive Control, the RL agent learns an optimal policy offline, allowing for instantaneous execution during maneuvers.

A core innovation of this approach is the Asymmetric Reward Function. Instead of a simple penalty for path deviation, the reward function incorporates the proximity to obstacles. This is achieved through the concept of an Imaginary Obstacle Line.

Figure 5: Geometric definition of the imaginary obstacle line used to calculate collision risk.

As shown in Figure 5, the system projects an imaginary line through the nearest obstacle point ($o_{near,k}$), aligned with the desired heading. By calculating the distances from the ship's bow ($l_{bow,k}$) and stern ($l_{stern,k}$) to this line, the RL agent receives a low-dimensional "danger signal." This allows the controller to relax tracking requirements when the ship is in a safe zone but apply aggressive corrections when approaching the "Imaginary Obstacle Line."

Experimental Validation

The system was trained using a high-fidelity Mathematical Maneuvering Group (MMG) model, which simulates complex low-speed ship dynamics including surge, sway, and yaw. To ensure robustness, the agent was trained on thousands of randomized "scribble" trajectories and pseudo-obstacles under stochastic wind conditions.

To bridge the simulation-to-reality (Sim2Real) gap, the researchers conducted physical experiments using a 1/25-scale model ship.

Figure 1: The 1/25-scale model ship used for experimental validation in Inukai Pond.

The model ship, equipped with a sophisticated VecTwin rudder system and bow thrusters, was tested in Inukai Pond at Osaka University (Figure 1). These experiments validated the controller's ability to handle real-world wind disturbances and sensor noise that are difficult to model perfectly in simulation.

Key Results and Discussion

The proposed method (Ctrl-w/-OBST) demonstrated a dramatic improvement in safety compared to a standard tracking controller (Ctrl-w/o-OBST):

  • Collision Risk Reduction: In zero-wind simulations of difficult trajectories, the standard controller suffered a collision probability of 94.7%. The RL-based method reduced this to just 7.5%.
  • Environmental Robustness: The controller maintained superior safety even under significant wind speeds (1.0 m/s for the scale model), proving its resilience to external forces.
  • Flexible Maneuvering: By prioritizing safety, the RL agent learned to make wider, safer turns when approaching the berth, rather than forcing the ship onto a risky path to maintain zero tracking error.

Conclusion and Future Work

This research highlights a shift in autonomous berthing philosophy: from "perfect tracking" to "safe maneuvering." While the reduction in collision probability is significant, a 7.5% risk remains too high for commercial application. Future work will focus on integrating tighter safety constraints, handling more complex harbor geometries, and developing "abort" logic for conditions that exceed the system's operational limits. Additionally, extending the model to include the physics of mooring lines and fenders will be necessary for a fully autonomous end-to-end berthing solution.

Summary updated

BibTeX
@article{wakita2023collision,
  author = {Kouki Wakita and Youhei Akimoto and Dimas M. Rachman and Yoshiki Miyauchi and Umeda Naoya and Atsuo Maki},
  title = {{Collision probability reduction method for tracking control in automatic docking / berthing using reinforcement learning}},
  journal = {Journal of Marine Science and Technology},
  year = {2023},
  doi = {10.1007/s00773-023-00962-5},
}
Figure