Research on Maneuvering Motion Prediction for Intelligent Ships Based on LSTM-Multi-Head Attention Model
<p>Define the ship’s coordinate system of motion.</p> "> Figure 2
<p>Turning motion data collection: (<b>a</b>) u in still water; (<b>b</b>) v in still water; (<b>c</b>) r in still water; (<b>d</b>) u in wave environment; (<b>e</b>) v in wave environment; and (<b>f</b>) r in wave environment.</p> "> Figure 3
<p>Zigzag motion data collection: (<b>a</b>) u in still water; (<b>b</b>) v in still water; (<b>c</b>) r in still water; (<b>d</b>) u in wave environment; (<b>e</b>) v in wave environment; and (<b>f</b>) r in wave environment.</p> "> Figure 3 Cont.
<p>Zigzag motion data collection: (<b>a</b>) u in still water; (<b>b</b>) v in still water; (<b>c</b>) r in still water; (<b>d</b>) u in wave environment; (<b>e</b>) v in wave environment; and (<b>f</b>) r in wave environment.</p> "> Figure 4
<p>Training, validation, and testing sets.</p> "> Figure 5
<p>LSTM model unit structure.</p> "> Figure 6
<p>Multi-Head Attention Mechanism structure.</p> "> Figure 7
<p>LSTM-Multi-Head Attention-1 Model Framework.</p> "> Figure 8
<p>LSTM-Multi-Head Attention-2 Model Framework.</p> "> Figure 9
<p>LSTM-Multi-Head Attention-3 Model Framework.</p> "> Figure 10
<p>Forecasting effects of the proposed models.</p> "> Figure 11
<p>RMSE and loss curves of the proposed models.</p> "> Figure 12
<p>Forecasting effects of models with different regularization methods.</p> "> Figure 13
<p>RMSE and loss curves with different regularization methods.</p> "> Figure 14
<p>Forecasting effects of models with different numbers of heads.</p> "> Figure 15
<p>RMSE and loss curves with different numbers of heads.</p> "> Figure 16
<p>Analysis of the impact of the number of neurons on model performance.</p> "> Figure 17
<p>RMSE and loss curves with different number of neurons.</p> "> Figure 18
<p>Forecasting effects of models with different training batch sizes.</p> "> Figure 19
<p>RMSE and loss curves with different training batch sizes.</p> "> Figure 20
<p>Analysis of the Impact of sliding window size.</p> "> Figure 21
<p>RMSE and loss curves with different sliding window size.</p> "> Figure 22
<p>Comparison of prediction effects among LSTM, GRU, Multi-Head Attention, Transformer, and LSTM-Multi-Head Attention-2 models.</p> "> Figure 23
<p>RMSE and loss curves of LSTM, GRU, Multi-Head Attention, Transformer, and LSTM-Multi-Head Attention-2 models.</p> "> Figure 24
<p>Prediction of u, v, r, and heading for an 8-degree turning movement.</p> "> Figure 25
<p>Prediction of u, v, r, and heading for a 15-degree turning movement.</p> "> Figure 26
<p>Prediction of trajectory for 8-degree and 15-degree turning movement.</p> "> Figure 27
<p>Prediction of u, v, r, and heading for 5°/5° Zigzag.</p> "> Figure 27 Cont.
<p>Prediction of u, v, r, and heading for 5°/5° Zigzag.</p> "> Figure 28
<p>The optimized forecasting effect.</p> ">
Abstract
:1. Introduction
2. Construction and Data Processing of Ship Motion Dataset
2.1. Maneuvering Mathematical Model of USV
2.2. Sample Data Collection
2.3. Data Preprocessing
3. Black-Box Prediction Model of USV Motion Based on LSTM and Multi-Head Attention Mechanism
3.1. LSTM Algorithm
3.2. Multi-Head Attention Mechanism
3.3. LSTM-Multi-Head Attention Model Framework
3.4. Model Training Process
4. Model Structure Analysis and Comparative Verification
4.1. Model Structure Analysis
4.1.1. Impact of Network Structure on Forecasting Accuracy
4.1.2. Impact of the Regularization Degree
4.1.3. Impact of the Number of Attention Heads
4.1.4. Impact of the Number of Neurons
4.1.5. Impact of Training Batch Size
4.1.6. Impact of Sliding Window Width
4.2. Comparative Modeling Accuracy of LSTM, Multi-Head Attention, LSTM-Multi-Head Attention, Transformer and GRU
4.3. Model Simulation
5. Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Montewka, J.; Hinz, T.; Kujala, P.; Matusiak, J. Probability modelling of vessel collisions. Reliab. Eng. Syst. Saf. 2010, 95, 573–589. [Google Scholar] [CrossRef]
- Fan, S.Y. Ship Maneuverability; National Defence Industry Press: Beijing, China, 1988. [Google Scholar]
- Nomoto, K.; Taguchi, T.; Honda, K.; Hirano, S. On the steering qualities of ships. Int. Shipbuild. Prog. 1957, 4, 354–370. [Google Scholar] [CrossRef]
- Abkowitz, M.A. Measurement of Hydrodynamic Characteristics from Ship Maneuvering Trials by System Dentification. 1980. Available online: https://trid.trb.org/View/157366 (accessed on 2 March 2025).
- Xu, H.; Soares, C.G. Hydrodynamic coefficient estimation for ship maneuvering in shallow water using an optimal truncated LS-SVM. Ocean Eng. 2019, 191, 106488. [Google Scholar] [CrossRef]
- Araki, M.; Sadat-Hosseini, H.; Sanada, Y.; Tanimoto, K.; Umeda, N.; Stern, F. Estimating coefficients using system identification methods with experimental, system-based, and CFD free-running trial data. Ocean Eng. 2012, 51, 63–84. [Google Scholar] [CrossRef]
- Åström, K.J. Maximum likelihood and prediction error methods. Automatic 1980, 16, 551–574. [Google Scholar] [CrossRef]
- Luo, W.L.; Zou, Z.J. Parametric Identification of Ship Models by Using Support Vector Machine. J. Ship Res. 2009, 53, 19–30. [Google Scholar] [CrossRef]
- Luo, W.L.; Moreira, L.; Soares, C.G. Maneuvering simulation of catamaran by using implicit models based on support vector machines. Ocean Eng. 2014, 82, 150–159. [Google Scholar] [CrossRef]
- Luo, W.L.; Soares, C.G.; Zou, Z.J. Parameter Identification of Ship Model Based on Support Vector Machines and Particle Swarm Optimization. J. Offshore. Mech. Arct. Eng. 2016, 138, 031101. [Google Scholar] [CrossRef]
- Zhang, X.; Zou, Z. Identification of Abkowitz model for ship manoeuvring motion using ε-support vector regression. J. Hydrodyn. 2011, 23, 353–360. [Google Scholar] [CrossRef]
- Wang, Z.; Xu, H.; Xia, L.; Zou, Z.; Soares, C.G. Kernel-based support vector regression for nonparametric modeling of ship maneuvering motion. Ocean Eng. 2020, 216, 107994. [Google Scholar] [CrossRef]
- Zhang, Y.-N.; Li, W.; Cai, B.; Li, K.N. Direct weight determination Method of Chebyshev orthogonal basis neural Networks. Comput. Simul. 2009, 26, 157–161. [Google Scholar]
- Silva, K.M.; Maki, K.J. Data-Driven system identification of 6-DoF ship motion in waves with neural networks. Appl. Ocean Res. 2022, 125, 103222. [Google Scholar] [CrossRef]
- Zhang, Z.; Ren, J.; Bai, W. MIMO non-parametric modeling of ship maneuvering motion for marine simulator using adaptive moment estimation locally weighted learning. Ocean Eng. 2022, 261, 112103. [Google Scholar] [CrossRef]
- Moreira, L.; Soares, C.G. Dynamic Model of Maneuverability Using Recursive Neural Networks. Ocean Eng. 2003, 30, 1669–1697. [Google Scholar] [CrossRef]
- Hao, L.; Han, Y.; Shi, C.; Pan, Z. Recurrent Neural Networks for Nonparametric Modeling of Ship Motion. Int. J. Nav. Archit. Ocean Eng. 2022, 14, 100436. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Cho, K. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv 2014, arXiv:1406.1078. [Google Scholar]
- Vaswani, A. Attention Is All You Need; Advances in Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017. [Google Scholar]
- Woo, J.; Park, J.; Yu, C.; Kim, N. Dynamic Model Identification of Unmanned Surface Vehicles Using Deep Learning Network. Appl. Ocean Res. 2018, 78, 123–133. [Google Scholar] [CrossRef]
- Guo, X.; Zhang, X.; Tian, X.; Li, X.; Lu, W. Predicting heave and surge motions of a semi-submersible with neural networks. Appl. Ocean Res. 2021, 112, 102708. [Google Scholar] [CrossRef]
- Jiang, Y.; Hou, X.R.; Wang, X.G.; Wang, Z.-H.; Yang, Z.-L. Identification modeling and prediction of ship maneuvering motion based on LSTM deep neural network. J. Mar. Sci. Technol. 2022, 27, 125–137. [Google Scholar] [CrossRef]
- Kaadoud, I.C.; Rougier, N.P.; Alexandre, F. Knowledge extraction from the learning of sequences in a long short-term memory (LSTM) architecture. Knowl. -Based Syst. 2022, 235, 107657. [Google Scholar] [CrossRef]
- Wang, S.; Li, Y.; Xing, H. A novel method for ship trajectory prediction in complex scenarios based on spatio-temporal features extraction of AIS data. Ocean Eng. 2023, 281, 114846. [Google Scholar] [CrossRef]
- Jia, H.; Yang, Y.; An, J.; Fu, R. A ship trajectory prediction model based on attention-BILSTM optimized by the whale optimization algorithm. Appl. Sci. 2023, 13, 4907. [Google Scholar] [CrossRef]
- Wang, N.; Kong, X.; Ren, B.; Hao, L.; Han, B. SeaBil: Self-attention-weighted ultrashort-term deep learning prediction of ship maneuvering motion. Ocean Eng. 2023, 287, 115890. [Google Scholar] [CrossRef]
- Dong, L.; Wang, H.; Lou, J. A temporal prediction model for ship maneuvering motion based on multi-head attention mechanism. Ocean Eng. 2024, 309, 118464. [Google Scholar] [CrossRef]
- Yi, L.; Lu, Z.; Zaojian, Z.; Haipeng, G. Predictions of Ship Maneuverability Based on Virtual Captive Model Tests. Eng. Appl. Comput. Fluid Mech. 2018, 12, 334–353. [Google Scholar]
- Maller, R.A.; Müller, G.; Szimayer, A. Ornstein–Uhlenbeck Processes and Extensions; Handbook of Financial Time Series; Springer: Berlin/Heidelberg, Germany, 2009; pp. 421–437. [Google Scholar]
- Babaee, M.; Li, Z.; Rigoll, G. Occlusion handling in tracking multiple people using RNN. In Proceedings of the 2018 25th IEEE International Conference on Image Processing (ICIP), Athens, Greece, 7–10 October 2018; pp. 2715–2719. [Google Scholar]
- Goonko, A.V.; Seroklinov, G.V.; Devyatkin, E.S.; Soloveichik, Y.G.; Yakimenko, A.A.; Mengliev, D.B.; Karimov, M.K.; Barakhnin, V.B.; Markov, S.I.; Serov, A.N.; et al. Application of data mining technologies for processing results of experimental studies. In Proceedings of the 2023 IEEE XVI International Scientific and Technical Conference Actual Problems of Electronic Instrument Engineering (APEIE), Novosibirsk, Russia, 10–12 November 2023; pp. 860–863. [Google Scholar]
- Tao, C.; Gao, S.; Shang, M.; Wu, W.; Zhao, D.; Yan, R. Get the Point of My Utterance! Learning Towards Effective Responses with Multi-Head Attention Mechanism. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018; pp. 4418–4424. [Google Scholar]
- Hodson, T.O. Root mean square error (RMSE) or mean absolute error (MAE): When to use them or not. Geosci. Model Dev. Discuss. 2022, 15, 5481–5487. [Google Scholar] [CrossRef]
Description | Parameter | Unit | Value |
---|---|---|---|
Ship Length | L | m | 3 |
Ship Breadth | B | m | 1.5 |
Ship Depth | D | m | 0.44 |
Design Draft | t | m | 0.28 |
Design Displacement | Δ | m3 | 0.666 |
Wave Height (m) | Wind Speed (m/s) | Wind Direction |
---|---|---|
0.3 | 2 | Southwest |
Dataset | Condition |
---|---|
Training Set | Turning: −10°, −8°,−5°, 10°, 13°, 14°; Zigzag: 10°/10°, 15°/15° |
Validation Set | Turning: −13°, 5°; Zigzag: 20°/20° |
Testing Set | Turning: −14°, 8°; Zigzag: 5°/5° |
Hyperparameter Name | Value |
---|---|
Iteration Steps | 500 |
Number of Neurons | 128 |
Training Batch | 2048 |
Heads Number | 8 |
Learning Rate | 0.0001 |
Regularization Degree | 0.2 |
Parameter Name | Parameter Value |
---|---|
Dropout Rate | 0.4 |
Heads Number | 8 |
Number of Neurons | 128 |
Training Batch | 512 |
Sliding Window Width | 30 |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, D.; Gao, X.; Huo, C.; Su, W. Research on Maneuvering Motion Prediction for Intelligent Ships Based on LSTM-Multi-Head Attention Model. J. Mar. Sci. Eng. 2025, 13, 503. https://doi.org/10.3390/jmse13030503
Liu D, Gao X, Huo C, Su W. Research on Maneuvering Motion Prediction for Intelligent Ships Based on LSTM-Multi-Head Attention Model. Journal of Marine Science and Engineering. 2025; 13(3):503. https://doi.org/10.3390/jmse13030503
Chicago/Turabian StyleLiu, Dongyu, Xiaopeng Gao, Cong Huo, and Wentao Su. 2025. "Research on Maneuvering Motion Prediction for Intelligent Ships Based on LSTM-Multi-Head Attention Model" Journal of Marine Science and Engineering 13, no. 3: 503. https://doi.org/10.3390/jmse13030503
APA StyleLiu, D., Gao, X., Huo, C., & Su, W. (2025). Research on Maneuvering Motion Prediction for Intelligent Ships Based on LSTM-Multi-Head Attention Model. Journal of Marine Science and Engineering, 13(3), 503. https://doi.org/10.3390/jmse13030503