Ship trajectory prediction via a transformer-based model by considering spatial-temporal dependency

Xinqiang Chen , Peiyang Wu , Yuzhen Wu , Loay Aboud , Octavian Postolache , Zichuang Wang

Intelligence & Robotics ›› 2025, Vol. 5 ›› Issue (3) : 562 -78.

PDF
Intelligence & Robotics ›› 2025, Vol. 5 ›› Issue (3) :562 -78. DOI: 10.20517/ir.2025.29
Research Article

Ship trajectory prediction via a transformer-based model by considering spatial-temporal dependency

Author information +
History +
PDF

Abstract

With the rapid development of global maritime trade, ship trajectory prediction plays an increasingly important role in maritime safety, efficiency optimization, and the development of green shipping. However, the complexity of the marine environment, multi-factor influences, and automatic identification system (AIS) data quality issues pose significant challenges to trajectory prediction. This study proposes a ship trajectory prediction model based on the Crossformer architecture comprising three core components: Dimension-Segment-Wise embedding, Two-Stage Attention layer, and Hierarchical Encoder-Decoder structure, which efficiently captures spatiotemporal dependencies in ship movement patterns. Through experiments on public AIS datasets, we validate the model using two navigation scenarios (complex turning and smooth sailing) and conducted comprehensive comparisons with traditional models such as gated recurrent unit (GRU), long short-term memory (LSTM), and temporal graph convolutional network (TGCN). Experimental results demonstrate that Crossformer significantly outperforms the comparative models across multiple evaluation metrics including average Euclidean distance error (ADE), mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE), reducing average error by over 60% in complex scenarios and up to 70% in smooth scenarios. For Case 1, Crossformer achieved the lowest values across metrics with ADE of 2.35 × 10-2, MSE of 7.00 × 10-4, RMSE of 2.58 × 10-2, and MAE of 2.35 × 10-2, substantially outperforming GRU, LSTM, and TGCN models. For Case 2, Crossformer similarly excelled with an ADE of 1.64 × 10-2, MSE of 4.00 × 10-4, RMSE of 2.06 × 10-2, and MAE of 1.64 × 10-2. The model maintains low error levels in predicting both latitude and longitude dimensions, exhibiting excellent multi-dimensional prediction capability and robustness. This research not only provides a high-precision solution for ship trajectory prediction but also establishes an important technical foundation for intelligent ship scheduling, maritime traffic management, and navigation safety assurance.

Keywords

Ship trajectory prediction / Crossformer model / spatial-temporal dependency / smart ship

Cite this article

Download citation ▾
Xinqiang Chen, Peiyang Wu, Yuzhen Wu, Loay Aboud, Octavian Postolache, Zichuang Wang. Ship trajectory prediction via a transformer-based model by considering spatial-temporal dependency. Intelligence & Robotics, 2025, 5(3): 562-78 DOI:10.20517/ir.2025.29

登录浏览全文

4963

注册一个新账户 忘记密码

References

[1]

Pallotta G,Bryan K.Vessel pattern knowledge discovery from AIS data: a framework for anomaly detection and route prediction.Entropy2013;15:2218-45

[2]

Short D,Luo C,Bi Z.A bio-inspired algorithm in image-based path planning and localization using visual features and maps.Intell Robot2023;3:222-41

[3]

Murray B.A dual linear autoencoder approach for vessel trajectory prediction using historical AIS data.Ocean Eng2020;209:107478

[4]

Dalsnes BR,Flåten AL,Brekke EF.The neighbor course distribution method with gaussian mixture models for AIS-based vessel trajectory prediction. In 2018 21st International Conference on Information Fusion (FUSION), Cambridge, UK. Jul 10-13, 2018. IEEE; 2018. pp. 580-7.

[5]

Zhen R,Hu Q,Nikitakos N.Maritime anomaly detection within coastal waters based on vessel trajectory clustering and Naïve Bayes Classifier.J Navigation2017;70:648-70

[6]

Perera LP. Ocean vessel trajectory estimation and prediction based on extended Kalman filter. In The Second International Conference on Adaptive and Self-Adaptive Systems and Applications. 2010. https://personales.upv.es/thinkmind/dl/conferences/adaptive/adaptive_2010/adaptive_2010_1_30_40029.pdf. (accessed 24 Jun 2025)

[7]

Liu J,Zhu K.Vessel trajectory prediction model based on AIS sensor data and adaptive chaos differential evolution support vector regression (ACDE-SVR).Appl Sci2019;9:2983

[8]

Suo Y,Claramunt C.A ship trajectory prediction framework based on a recurrent neural network.Sensors2020;20:5133 PMCID:PMC7570964

[9]

Borkowski P.The ship movement trajectory prediction algorithm using navigational data fusion.Sensors2017;17:1432 PMCID:PMC5492365

[10]

Gan S,Li K,Cheng T.Long-term ship speed prediction for intelligent traffic signaling.IEEE Trans Intell Transport Syst2017;18:82-91

[11]

Park J,Park Y.Ship trajectory prediction based on Bi-LSTM using spectral-clustered AIS data.JMSE2021;9:1037

[12]

Zhao J,Zhou Z,Wu B.A ship trajectory prediction method based on GAT and LSTM.Ocean Eng2023;289:116159

[13]

Johansen TA,Cristofaro A.Ship collision avoidance and COLREGS compliance using simulation-based control behavior selection with predictive hazard assessment.IEEE Trans Intell Transport Syst2016;17:3407-22

[14]

Zhou H,Zhang S.Ship trajectory prediction based on BP neural network.J Artif Intell2019;1:29-36

[15]

Gao D,Zhang J,Yan K.A novel MP-LSTM method for ship trajectory prediction based on AIS data.Ocean Eng2021;228:108956

[16]

Bai S,Koltun V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv 2018, arXiv:1803.01271. https://doi.org/10.48550/arXiv.1803.01271. (accessed 24 Jun 2025)

[17]

Alizadeh D,Sharif M.Vessel trajectory prediction using historical automatic identification system data.J Navigation2021;74:156-74

[18]

Zhang X,Gong P,Han B.Trajectory prediction of seagoing ships in dynamic traffic scenes via a gated spatio-temporal graph aggregation network.Ocean Eng2023;287:115886

[19]

Jiang J,Xiao Y,Li T.STMGF-Net: a spatiotemporal multi-graph fusion network for vessel trajectory forecasting in intelligent maritime navigation.IEEE Trans Intell Transport Syst2024;25:21367-79

[20]

Wang S,Xing H.Vessel trajectory prediction based on spatio-temporal graph convolutional network for complex and crowded sea areas.Ocean Eng2024;298:117232

[21]

Syed MAB.A CNN-LSTM architecture for marine vessel track association using automatic identification system (AIS) data.Sensors2023;23:6400 PMCID:PMC10386167

[22]

Chen X,Yang Y.Ship trajectory reconstruction from AIS sensory data via data quality control and prediction.Math Probl Eng2020;2020:1-9

[23]

Zhao J,Chen X,Wu S.k-GCN-LSTM: a k-hop graph convolutional network and long-short-term memory for ship speed prediction.Physica A2022;606:128107

[24]

Zhang D,Wu Q,Chu X.Enhance the AIS data availability by screening and interpolation.In 2017 4th International Conference on Transportation Information and Safety (ICTIS)2017. pp. 981-6

[25]

Zhang Y. Crossformer: transformer utilizing cross-dimension dependency for multivariate time series forecasting. In The eleventh international conference on learning representations. 2023. https://openreview.net/forum?id=vSVLM2j9eie. (accessed 24 Jun 2025)

[26]

Cho K,Bahdanau D. On the properties of neural machine translation: encoder-decoder approaches. arXiv 2014, arXiv:1409.1259. https://doi.org/10.48550/arXiv.1409.1259. (accessed 24 Jun 2025)

[27]

Cho K,Gulcehre C. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv 2014, arXiv:1406.1078. https://doi.org/10.48550/arXiv.1406.1078. (accessed 24 Jun 2025)

[28]

Hochreiter S.Long short-term memory.Neural Comput1997;9:1735-80

[29]

Zhao L,Zhang C.T-GCN: a temporal graph convolutional network for traffic prediction.IEEE Trans Intell Transport Syst2020;21:3848-58

[30]

Feroze W,Cheng S.Enhancing temporal commonsense understanding using disentangled attention-based method with a hybrid data framework.Intell Robot2025;5:228-47

AI Summary AI Mindmap
PDF

164

Accesses

0

Citation

Detail

Sections
Recommended

AI思维导图

/