Enhancing Maritime Trajectory Forecasting via H3 Index and Causal Language Modelling (CLM)
Abstract
The prediction of ship trajectories is a growing field of study in artificial intelligence. Traditional methods rely on the use of LSTM, GRU networks, and even Transformer architectures for the prediction of spatio-temporal series. This study proposes a viable alternative for predicting these trajectories using only GNSS positions. It considers this spatio-temporal problem as a natural language processing problem. The latitude/longitude coordinates of AIS messages are transformed into cell identifiers using the H3 index. Thanks to the pseudo-octal representation, it becomes easier for language models to learn the spatial hierarchy of the H3 index. The method is qualitatively compared to a classical Kalman filter and quantitatively to Seq2Seq and TrAISformer models. The Fréchet distance is introduced as the main evaluation metric for these comparisons. We show that it is possible to predict ship trajectories quite precisely up to 8 hours ahead with 30 minutes of context, using solely GNSS positions, without relying on any additional information such as speed, course, or external conditions — unlike many traditional methods. We demonstrate that this alternative works well enough to predict trajectories worldwide.
Cite
Text
Drapier et al. "Enhancing Maritime Trajectory Forecasting via H3 Index and Causal Language Modelling (CLM)." Transactions on Machine Learning Research, 2025.Markdown
[Drapier et al. "Enhancing Maritime Trajectory Forecasting via H3 Index and Causal Language Modelling (CLM)." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/drapier2025tmlr-enhancing/)BibTeX
@article{drapier2025tmlr-enhancing,
title = {{Enhancing Maritime Trajectory Forecasting via H3 Index and Causal Language Modelling (CLM)}},
author = {Drapier, Nicolas and Chetouani, Aladine and Chateigner, Aurélien},
journal = {Transactions on Machine Learning Research},
year = {2025},
url = {https://mlanthology.org/tmlr/2025/drapier2025tmlr-enhancing/}
}