ship-eqmotion
Vessel trajectory prediction
2 min read
The model solves the problem of predicting maritime vessel movement (AIS) based on historical data and parameters of neighboring objects. The architecture combines a GRU (recurrent neural network for processing sequences), a multilayer perceptron (MLP), and 20 learnable hypotheses of future position trained using a winner-take-all algorithm (updating the closest prediction). This approach ensures high accuracy (minADE) and low inference latency (around 14.8 ms). The model is useful for researchers and engineers working on marine navigation and trajectory analysis.
Key features
- Use of coordinates aligned with the target vessel's heading
- Compact architecture based on GRU and MLP with 20 motion hypotheses
- Low inference latency (14.8 ms on NVIDIA L40S)
- Superiority over alternatives (MFPD, MID, LED) in minADE metric across several scenarios
What you can do
- Predict vessel movement trajectories 10 or 60 minutes ahead
- Run validation and test ready checkpoints using repository scripts
- Explore cross-regional transfer of models between regions (Denmark, USA, Norway, Greece)
Example
import torch
from mfpd.utils import load_config
from mfpd_v2.baselines.registry_v2 import build_v2_baseline
cfg = load_config("configs/eqmotion/trackb_dma.yaml")
model = build_v2_baseline("eqmotion", cfg)
model.load_state_dict(torch.load("weights/trackb/eqmotion_dma_s42.pt", map_location="cpu"))Read more
DetailsBenchmarks: minADE 44.3, minFDE 87.7 on DMA-Interact
Hardware requirements: PyTorch compatible, tested on NVIDIA L40S
Limitations: calibration at long horizons (60 minutes) is worse than probabilistic alternatives (MFPD)
Training details: Adam, lr 1e-3, batch 64, mixed precision










Comments