Abstract
Ship control in port channels is a challenging problem that has resisted automated solutions. In this paper we focus on reinforcement learning of control signals so as to steer ships in their maneuvers. The learning process uses fitted Q iteration together with a Ship Maneuvering Simulator. Domain knowledge is used to develop a compact state-space model; we show how this model and the learning process lead to ship maneuvering under difficult conditions.
Introduction
While autonomous navigation is well-established for the open sea, "berthing" — the process of maneuvering a ship into its final position in a port — remains a significant challenge. In restricted waters, vessel dynamics become highly complex due to interactions with the sea bottom and channel margins.
A critical physical constraint is that rudders lose efficiency as a ship slows down; a vessel cannot be steered at very low speeds with the same responsiveness as a car. Currently, port engineers rely on "fast-time" simulators to test channel feasibility, but these require tedious manual trial-and-error to set waypoints and controller gains. This research aims to replace that manual process with a Reinforcement Learning (RL) agent that learns optimal steering policies directly from simulated data.
Methodology
The authors employ Batch Reinforcement Learning, specifically the Fitted Q-Iteration (FQI) algorithm. Unlike online RL, which learns while interacting with an environment, Batch RL processes a pre-collected set of transitions, making it more stable and sample-efficient for expensive engineering simulations.
Compact State-Space and Symmetry
Instead of using full 6-DOF (degrees of freedom) physics, the authors developed a 4D state space: longitudinal velocity, misalignment angle, "bank balance" (relative distance to channel sides), and rate-of-turn. This reduction makes the problem tractable for standard RL algorithms without losing the essential "feel" of ship handling.
The agent chooses from 13 discrete rudder levels (from -35° to +35°), mimicking the commands a human pilot would give. To maximize data efficiency, the authors utilized symmetry heuristics, mirroring sampled trajectories across the channel's centerline to effectively double the training data for free.
Experimental Setup
Data was generated using the TPN-USP Maneuvering Simulation Center, a high-precision 6-DOF marine simulator used for real-world port design in Brazil. The experiments were modeled after the Suape Port channel. The system used a "Growing Batch Learning" approach, alternating between training on existing data and running the current policy to collect new, representative episodes.
Key Results
The agent was tested across six different starting configurations. The authors found a distinct trade-off between smoothness and accuracy: increasing the penalty for rudder movement resulted in much smoother trajectories but made it harder for the agent to recover from extreme misalignments.
The system successfully generated feasible trajectories for the Suape Port channel at 60% propeller rotation and an entry speed of 3.0 m/s, proving it could serve as a viable tool for port feasibility studies. One notable observation was the "suicidal" agent paradox: when a collision became inevitable, the agent would sometimes steer into the bank faster to reach the terminal state quickly and minimize total negative reward loss.
Conclusion and Future Work
By leveraging domain knowledge to simplify the state space, this study demonstrates that Batch RL can effectively automate complex maritime maneuvers. Future work will focus on varying propulsion to maintain steerage at lower speeds, accounting for environmental factors like wind and waves, and integrating tugboat commands for full end-to-end autonomous berthing.
Summary updated