Deep Reinforcement Learning Based Tracking Control of an Autonomous Surface Vessel in Natural Waters

Wei Wang, Xiaojing Cao, Alejandro Gonzalez-Garcia, Lianhao Yin, Niklas Hagemann, Yuanyuan Qiao, Carlo Ratti, Daniela Rus

Introduction

Autonomous Surface Vessels (ASVs) are increasingly utilized for critical tasks such as environmental monitoring, maritime surveillance, and search-and-rescue operations. However, achieving precise trajectory tracking in natural aquatic environments remains a significant challenge. Unlike terrestrial robots, ASVs operate in highly dynamic environments where they are subject to complex hydrodynamic forces, unpredictable wind, and river currents. These factors, combined with noisy sensor data and the inherent "sliding" nature of waterborne movement, make traditional control methods difficult to tune and maintain.

The industry standard for such tasks has long been Model Predictive Control (MPC). While MPC is mathematically rigorous and provides theoretical guarantees, its performance is heavily dependent on the accuracy of the underlying physical model. In real-world scenarios where environmental conditions fluctuate, the gap between the model and reality often leads to degraded performance. This research explores a model-free alternative using Deep Reinforcement Learning (DRL) to bridge the gap between simulation and real-world deployment in messy, natural waters.

Methodology

The DRL Framework

The researchers implemented the Deep Deterministic Policy Gradient (DDPG) algorithm, an actor-critic framework designed for continuous action spaces. This is particularly suited for ASV control, where motor thrust must be adjusted smoothly rather than in discrete steps.

Reward Function Engineering

The primary innovation of this work lies in its multi-component reward function. To ensure the agent learned a policy that was not only accurate but also stable and hardware-friendly, the authors designed a reward $R$ composed of five distinct terms:

  1. Position Error ($r_p$): Minimizes the Euclidean distance between the vessel and the target trajectory.
  2. Heading Error ($r_\psi$): Utilizes a Line-of-Sight (LOS) guidance strategy to ensure the vessel's bow is correctly oriented toward the path.
  3. Angular Velocity Variation ($r_w$): Penalizes erratic rotational movements to maintain stability.
  4. Action Smoothness ($r_a$): Discourages high-frequency "chattering" in the thrusters, which can damage hardware.
  5. Energy Consumption ($r_e$): Encourages efficient thrust allocation across the vessel's four motors.

Sim-to-Real Transfer

The controller was trained entirely within a high-fidelity simulation environment modeled after the hydrodynamic parameters (mass, drag, and inertia) of a 15kg holonomic ASV. A key achievement of this study was the successful "Sim-to-Real" transfer: the policy learned in simulation was deployed directly onto the physical vessel in the Charles River without any additional fine-tuning.

Experimental Evaluation

The system was evaluated through two primary benchmarks:

  1. Simulation Trials: Testing against model-based disturbances including simulated wind, waves, and currents.
  2. Real-World Trials: Field tests conducted on the Charles River in Boston/Cambridge. These trials involved navigating natural currents and wind speeds of approximately 18 kph, providing a rigorous test of the controller's robustness compared to a Nonlinear MPC (NMPC) baseline.

Results and Discussion

Tracking Accuracy

In simulation, the DRL controller outperformed the NMPC by 53.33% in tracking accuracy. More importantly, this superiority held up in real-world conditions. On the Charles River, the DRL agent maintained a mean tracking error of 0.14m, a 35.51% reduction compared to the NMPC's 0.22m error.

Computational Efficiency

The DRL approach demonstrated a significant advantage in computational overhead. Once trained, the neural network requires only a forward pass to determine the next action. The DRL controller calculated actions in approximately 100 microseconds, nearly ten times faster than the 1 millisecond required by the NMPC. This efficiency is critical for deployment on low-power embedded systems where high-frequency control loops are necessary.

The Energy-Robustness Trade-off

While the DRL controller achieved higher accuracy, it did so at the cost of energy efficiency. In real-world trials, the DRL agent utilized an average thrust of ~5.4N, compared to ~3.9N for the NMPC. This suggests that the DRL policy "learned" to be more aggressive in its motor responses to counteract environmental disturbances, whereas the NMPC remained more conservative.

Conclusion

This research demonstrates that Deep Reinforcement Learning can effectively manage the complex dynamics of autonomous vessels in natural waters. By carefully engineering the reward function to include hardware constraints like action smoothness and energy usage, the authors successfully bridged the Sim-to-Real gap. While the DRL agent currently consumes more power than traditional NMPC, its superior tracking accuracy and significantly lower computational latency make it a compelling choice for high-precision maritime autonomy. Future work will focus on refining the reward balance to optimize energy consumption and exploring hybrid architectures that combine the theoretical safety of MPC with the robust adaptability of DRL.

Summary updated

BibTeX
@inproceedings{wang2023deep,
  author = {Wei Wang and Xiaojing Cao and Alejandro Gonzalez-Garcia and Lianhao Yin and Niklas Hagemann and Yuanyuan Qiao and Carlo Ratti and Daniela Rus},
  title = {{Deep Reinforcement Learning Based Tracking Control of an Autonomous Surface Vessel in Natural Waters}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2023},
  doi = {10.1109/icra48891.2023.10160858},
}
Figure