Submitted:
16 April 2026
Posted:
16 April 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Temporal Convolutional Network

2.2. Attention Mechanism
2.3. Bidirectional Long Short-Term Memory Network

3. Proposed Method
3.1. Overall Framework
3.2. Design Motivation
3.3. Problem Formulation
3.4. Warning Rule
3.5. Algorithm Procedure
| Algorithm 1 Speed Alert |
| 1: get AIS_data: ← G[t]. 2: data preprocessing ← Outlier handling; Normalized data; Split dataset. 3: Initialize model [TCN-ABiLSTM] 4: For each epoch. 5: Out_data ← Train model[Training set] 6: Error ← Calculate error[Out_data, real_data] 7: //Compare with other algorithms (Prediction results) 8: Adjust model parameters [Error] 9: Save model 10: test_out ← load_model[Testing set] 11: pre_out ← Inverse normalize[test_out] 12: def electronic_fence(). 13: min_speed = 3 max_speed = 25 14: for each G[pre_out]. 15: if G[pre_out] ≥ max_speed or min_speed ≤ G[pre_out] 16: Send warning message 17: end |
4. Experiments and Results
4.1. Dataset Description
| TIME | MMSI | SOG | Lon | Lat | COG |
| 2022/4/29 5:07 | 563125200 | 2 | 121.8676167 | 39.01411667 | 7 |
| 2022/4/29 5:07 | 413127000 | 15 | 121.7653333 | 38.805 | 19 |
| 2022/4/29 5:07 | 412300960 | 0 | 120.7971333 | 39.92708333 | 0 |
| 2022/4/29 5:07 | 413127000 | 15 | 121.7653333 | 38.805 | 19 |
| 2022/4/29 5:07 | 412330020 | 14 | 121.758985 | 38.95398833 | 300 |
4.2. Data Preprocessing
4.3. Experiments with Different Time Steps
| Dataset and Model | Model runtime | Train_loss | |
| AIS datas on April,2022 (2580 tracks), TCN-ABiLSTM | T=1 | 0.75h | 0.0054 |
| T=3 | 0.65h | 0.0025 | |
| T=5 | 0.60h | 0.0053 | |
| T=10 | 3.57h | 0.0026 | |
4.4. Experimental Environment and Hyperparameter Settings
| Model | Learning Rate | Batch Size | Epochs | Hidden Units | Other Parameters |
| BP | 0.001 | 64 | 50 | 50 | 3-layer FC, ReLU |
| LSTM | 0.001 | 64 | 50 | 50 | Single-layer LSTM |
| TCN | 0.001 | 64 | 50 | 50 | TCN (20 kernels, 6 size, 2d dilation |
| TCN-LSTM | 0.001 | 64 | 50 | 50 | TCN (20 kernels, 6 size, 2d dilation + Single-layer LSTM |
| LSTM-Atten | 0.001 | 64 | 50 | 50 | Single-layer BiLSTM + Additive Att |
| CNN-LSTM | 0.001 | 64 | 50 | 50 | CNN (16×3×1 kernels) + LSTM |
| TCN-Atten | 0.001 | 64 | 50 | 50 | TCN (20 kernels, 6 size, 2d dilation + Additive Att |
| RNN | 0.001 | 64 | 50 | 50 | Single-layer RNN |
| ABiLSTM | 0.001 | 64 | 50 | 50 | Single-layer BiLSTM + Additive Att |
| TCN-ABiLSTM | 0.001 | 64 | 50 | 50 | TCN (20 kernels, 6 size, 2d dilation + Additive Att + BiLSTM |
4.5. Evaluation Metrics
4.6. Comparative Results
5. Discussion
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AIS | Automatic Identification System |
| LSTM | Long Short-Term Memory |
| TCN | Temporal Convolutional Networks |
| BiLSTM | Bidirectional Long Short-Term Memory |
| FC | Fully Connected |
| Att | Attention |
| d | dilation factor |
References
- Wang, P.; Wen, Y.; Ai, B.; Liu, X. Spatial pattern and coupling characteristics analysis of maritime traffic and economic developmentbased on shipping big data. Frontiers in Marine Science 2024, 11, 2296–7745. Available online: https://www.frontiersin.org/journals/marine-sciencearticles/10.3389/fmars.2024.1410885.
- Liu, Dapei; Rong, H.; Guedes Soares, C. Shipping route modelling of AIS maritime traffic data at the approach to ports. OceanEngineering 2023, 289, 0029–8018. Available online: https://www.sciencedirect.com/science/article/pii/S0029801823022527. [CrossRef]
- Wang, Z.; Wu, Y.; Chu, X.; Liu, C.; Zheng, M. Risk. Identification Method for Ship Navigation in the Complex Waterways viaConsideration of Ship Domain. J. Mar. Sci. Eng. 2023, 11, 2265. [Google Scholar] [CrossRef]
- Li, Mengxia; Mou, Junmin; Chen, Pengfei; Chen, Linying; van Gelder, P.H.A.J.M. Real-time collision risk based safety managementfor vessel traffic in busy ports and waterways. Ocean & Coastal Management 2023, 234, 0964–5691. [Google Scholar] [CrossRef]
- Li, Y.; Yu, Q.; Yang, Z. Vessel Trajectory Prediction for Enhanced Maritime Navigation Safety: A Novel Hybrid Methodology. JMar. Sci. Eng. 2024, 12, 1351. [Google Scholar] [CrossRef]
- Xuri, X.; Kezhong, L.; Loughney, Sean; Jin, W.; Huanhuan, L.; Ekere, Nduka; Zaili, Y. Multi-scale collision risk estimation for maritimetraffic in complex port waters. Reliability Engineering & System Safety 2023, 240, 0951–8320. [Google Scholar] [CrossRef]
- Xiang, BAO Kai; Hang, Y.I.N.; De xun, W.A.N.G. Sailing speed prediction and optimal course design of windsurfing based onFLUENT numerical calculation results. Journal of Wuhan Institute of Physical Education 2006, 9, 57–61. [Google Scholar]
- Huo P, Motion and speed prediction of wave-propelled boats; South China Unioersity of Technology: Guangzhou.
- Chen, ZHU Xiao; Zhi, YIN Qi; Fugin, Z.H.A.O. Ship speed pre-diction model based on LighiGBM. Joural of Dalian MaritimeUniversity 2023, 49(01), 56–65. [Google Scholar] [CrossRef]
- Hui, Gao. Sailing speed prediction based on support vector machine; Fudan Unioersity: Shanghai, 2014. [Google Scholar]
- Zhongwei, Y.A.N.; Jiansen, Z.H.A.O.; Xinyu, W.U. Vessel speed prediction based on recurrent neural network in multi-vesselencounter scenarios. Journal of Shanghai Maritime Unioersity 2024, 45(02), 1–6. [Google Scholar] [CrossRef]
- Li, Wenkai. Research on Ship Behavior Characterization and Prediction Based on Deep Learning; Wuhan Unicersity ofTechnology: Wuhan, 2021. [Google Scholar]
- ZHOU, H. Y.; LIJ, X.; ZHANG, S. H. Expanding the Prediction Capacity in Long Sequence lime-Series Forecasting. Artijficial Intelligence 2023, 318, 103886. [Google Scholar] [CrossRef]
- Gong, C.H.E.N.; Bing, H.A.N.; et al. Vessel speed prediction based on coded convolutional neural network. Journal ofShanghai Institute of Ship Transportation Science 2023, 46(04), 1–5. [Google Scholar]
- TANG, H.; YINY; SHEN, H. A model for vessel trajectory pre diction based on long short-term memory neural network. Journalof Marine Engineering &. Technology 2019, 1–10. [Google Scholar]
- SHI, G.A.O.M.G. LIS, Online Prediction of Ship Behavior with Automatic ldentification System Sensor Data Using Bidirec-tionalLong Short-Term Memory Recurrent Neural Network. Sensors 2018, 18(12), 4211. [Google Scholar]
- Sherstinsky, Alex. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network. Physica D:Nonlinear Phenomena 2020, 404(132306), 0167–2789. [Google Scholar] [CrossRef]
- Slaughter, Isaac; Laxmichand Charla, Jagir; Siderius, Martin; Lipor, John. Vessel trajectory prediction with recurrentneural networks: An evaluation of datasets, features, and architectures. Journal of Ocean Engineering and Science 2025, 10(2), 229–238. Available online: https://www.sciencedirect.com/science/article/pii/S2468013324000081. [CrossRef]
- Bansal, Mani; Lobiyal, D. K. Multilingual sequence to sequence convolutional machine translation. PhysicMULTIMEDIATOOLS AND APPLICATIONS 2021, 80(25), 33701–33726. [Google Scholar] [CrossRef]
- Zhou; Li, Q.; Meng, H.; Dai, W.; Zhou, H.; T. Zheng, G. Fusion of Mulimodal Spatio-Temporal Features and 3D DeformableConvolution Based on Sign Language Recognition in Sensor Networks. Sensors 2025, 25, 4378. [Google Scholar] [CrossRef]
- VASWANI, A.; SHAZEER, N.; PARMAR, N. Attention is all you need. In Proceedings of the 31st International Confer-ence on NeuralInformation ProcessingSystems; IEEE: new York, 2017; pp. 6000–6010. [Google Scholar]
- Hu, L. Towards Stable and Explainable Aftention Mechanisms. IEEE Transactions on Knowledge and Data Engineering 2025, 37(5), 3047–3061. [Google Scholar] [CrossRef]
- ZHANG, Z. Y.; NIG, X.; XU, Y. G. Ship trajectory prediction based on LSTM neural network. 2020 IEEE 5th Information-Technology andMechatronics Engineering Conference, 2020; pp. 1356–1364. [Google Scholar]
- BAI, S.; KOLTER, J.Z.; KOLTUN, V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. 2018, 1803.01271. [Google Scholar] [CrossRef]
- Yanming, Yiheng C.; Yue, C.; C. Xinyu C. Changgui, Y. Yongxin C, Optimizing vessel trajectories: Advanced denoising andinterpolation techniques for AIS data. Ocean Engineering 2025, 327(120988), 0029–8018. Available online: https://www.sciencedirect.com/science/article/pii/S0029801825007012.
- Zhaojin, Y.; Guanghao, Y.; Rong, H.; KaiS. Hui Y, Reconstructing trajectories and extracting shipping routes between ports based onAIS data. Applied Ocean Research 2025, 161(104709), 0141–1187. Available online: https://www.sciencedirect.com/science/article/pi/S0141118725002950.
- Xingpei, laxuan Y.; Zaili, B. Yuhao Q. Xinjian W.; Liu, Y. Jiaguo. A spatial-temporal data mining method for the extraction of vesseltraffic patterns using AIS data. Ocean Engineering 2024, 293(116454), 0029–8018. Available online: https://www.sciencedirect.com/science/article/pii/S002980182302838X.
- Lee, Hosung; Hwang, Byeongoh; Kim, Dasan; Kang, Myungjioo. Residual Connection- Enhanced ConvLSTM forLithium Dendrite Growth Prediction. Joural of The Electrochenical Society 2025, 172(), 070501. [Google Scholar] [CrossRef]
- Junfeng, Sun; Chenghai, Li; Bo, Cao. Network security posture prediction based on TCN-BiL STM Joural of. Netuork Engineringand Electronics Technology 2022, DOI, 1–11. Available online: http://kns.
- YIJ, Y.; WEN, Z. Q.; TAOJ, H. CTC Regularized Model Adapta-tion for Improving LSTM RNN Based Multi-Accent MandarinSpeech Recognition. Journal of Signal Processing Systems 2017, 90(2), 1–13. [Google Scholar]
- Guan, M.; Cao, Y.; Cheng, X. Research on the recognition of multiple MMSI codes on a single vessel based on AIS datas. IEEEAccess 2023, 11, 1- 13.106580-106586. [Google Scholar] [CrossRef]







| TIME | MMSI | SOG |
| Invalid MMSI | MMSI length ≠ 9 | Remove |
| Abnormal SOG | 50 or SOG < 0 | Remove |
| Missing MMSI | NULL | Remove |
| Missing SOG | NULL | Mean interpolation |
| TIME | MMSI | SOG | Lon | Lat | COG |
| 2022/5/1 0:00 | 412331000 | 14.4 | 121.0164 | 38.5864 | 319 |
| 2022/5/1 0:01 | 412331000 | 14.3 | 121.0138 | 38.5894 | 332 |
| 2022/5/1 0:02 | 412331000 | 14 | 121.0123 | 38.5931 | 351 |
| 2022/5/1 0:03 | 412331000 | 14.1 | 121.012 | 38.5971 | 0 |
| 2022/5/1 0:04 | 412331000 | 14.3 | 121.012 | 38.601 | 359 |
| Model | MAE | MSE | RMSE | R2 |
| BP | 0.0033093 | 0.0053072 | 0.0728505 | 0.9155857 |
| LSTM | 0.0084293 | 0.0041294 | 0.0642604 | 0.8595191 |
| TCN | 0.0048727 | 0.0035134 | 0.0592739 | 0.8847988 |
| TCN-LSTM | 0.0053787 | 0.0051230 | 0.0708731 | 0.8423334 |
| LSTM-Atten | 0.0065264 | 0.0041121 | 0.0641256 | 0.9065783 |
| CNN-LSTM | 0.0033806 | 0.0035746 | 0.0594871 | 0.8270548 |
| TCN-Atten | 0.0064588 | 0.0043436 | 0.0651429 | 0.8516846 |
| RNN | 0.0032152 | 0.0034504 | 0.0587401 | 0.9013889 |
| ABiLSTM | 0.0047520 | 0.0031754 | 0.0031754 | 0.8929116 |
| TCN-ABiLSTM | 0.0025844 | 0.0021216 | 0.0021216 | 0.9386273 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).