Abstract
Ships, or vessels, often sail in and out of cluttered environments over the course of their trajectories. Safe navigation in such cluttered scenarios requires an accurate estimation of the intent of neighboring vessels and their effect on the self and vice-versa well into the future. In manned vessels, this is achieved by constant communication between people on board, nautical experience, and audio and visual signals. In this paper we propose a deep neural network based architecture to predict intent of neighboring vessels into the future for an unmanned vessel solely based on positional data.
Introduction
Navigating a crowded harbor is a high-stakes game of "social" interaction. For human mariners, safe passage relies on a mix of formal regulations (COLREGs) and "nautical instinct"—the ability to sense the intent of a nearby vessel and adjust accordingly. As we move toward Autonomous Surface Vessels (ASVs), we need to digitize this instinct. Traditional trajectory prediction models, like standard Long Short-Term Memory (LSTM) networks, are excellent at processing individual sequences but struggle to model interactions between multiple agents. Furthermore, existing maritime safety models often use "ship domains"—fixed geometric shapes around a vessel that shouldn't be intruded upon. However, these static shapes fail to account for the nuances of speed, heading, and the "unwritten rules" of the sea.
Methods
The authors propose a Spatially and Temporally Attentive Joint Trajectory Prediction Framework. The architecture is built on an LSTM-based autoencoder with two primary innovations:
- Spatial Attention: Instead of treating every neighbor equally, the model learns a parameter $S$ (the vessel domain). This mechanism calculates weights for neighboring ships based on three factors: distance, relative bearing, and relative heading. This allows the "hidden state" of one ship's LSTM to influence the state of another, effectively allowing the models to "talk" to each other about potential collisions.
- Temporal Attention: During the decoding (prediction) phase, the model doesn't just look at the last known position. It uses temporal attention to compare the current "spatial situation" against the entire history of observed situations. This mimics a navigator recollecting past experiences to decide the best path forward.
The model is "joint" because it interleaves these two mechanisms, allowing the prediction to be informed by both the immediate social environment and long-term trajectory trends.
Datasets
The study utilizes AIS (Automatic Identification System) records from U.S. coastal waters, specifically focusing on the San Diego Harbor area from January 2017.
- Pre-processing: The raw data was filtered to one-minute intervals.
- Filtering: To focus on active interactions, the researchers removed stationary (moored/anchored) vessels and focused on "crowded" windows where at least three vessels were present simultaneously.
- Scale: The final dataset consisted of 8,676 samples extracted from 653 unique vessels.
Key Insights and Ideas
- The "Learned" Ship Domain: The model's learned spatial parameter $S$ naturally evolved into a shape that matches nautical intuition. It isn't a simple circle; the model learns to pay more attention to vessels in its line-of-sight and those approaching head-on or from the starboard side, while largely ignoring vessels trailing behind it.
- Data-Driven "Experience": By using temporal attention, the model effectively builds a library of "situations." When it encounters a familiar-looking cluster of ships, it can more accurately predict the outcome based on how similar situations resolved in the past.
- Ablation Matters: The researchers proved that spatial and temporal attention are synergistic. Removing either one significantly degrades the model's ability to predict complex maneuvers, confirming that intent is a product of both environment and history.
Key Results
The framework was evaluated using Average Displacement Error (ADE) and Final Displacement Error (FDE), measured in nautical miles.
| Model | ADE | FDE |
|---|---|---|
| Vanilla LSTM (Baseline) | 0.04567 | 0.05377 |
| LSTM + Spatial Attention | 0.03912 | 0.04292 |
| Full Framework (Spatial + Temporal) | 0.03314 | 0.03840 |
The full model achieved a ~27% improvement in ADE over the baseline vanilla LSTM. Qualitative results showed the model was robust to "random initialization," consistently converging on the same logical vessel domain.
Limitations and Future Work
While the results are promising, several areas for improvement remain:
- Feature Constraints: The current model relies primarily on positional data. It does not yet explicitly incorporate ship dimensions or specific vessel types, which significantly impact maneuverability and right-of-way.
- AIS Reliability: The model is dependent on the quality of AIS data, which can suffer from lag or inconsistency.
- Generalization: While validated in the maritime domain, this "spatio-temporal" approach could be adapted for other socially interacting agents, such as pedestrians or autonomous cars at complex intersections.
Summary updated