Abstract
This paper proposes an positional encoding-based attention mechanism model which can quantify the temporal correlation of ship maneuvering motion to predict the future ship motion in real sea state. To represent the temporal information of the sequential motion status, the positional encoding consisted by sine and cosine functions of different frequencies is chosen as the input of the model. First, the reasonableness of the improved architecture of the model is validated on the standard turning test datasets of an unmanned surface vehicle. Then, the absolute positional encoding based-scaled-dot product attention mechanism model is compared with other two attention mechanism models with different positional encoding and attention calculation methods and its superiority is verified. As demonstrated by exhaustive experiments, the model has the highest prediction accuracy when the input sequence length equals the output sequence length and the accuracy defined in this paper of the model will drop to less than 90% when the predicted length exceeds 45. Finally, the attention mechanism model is compared with the LSTM model with different lengths of input sequences to demonstrate that the attention mechanism model has a faster training speed when dealing with long sequences.
Similar content being viewed by others
Data availability
The authors regret that the data underlying this study can not be made publicly available. Due to confidentiality agreements, the data are not accessible for external researchers. However, interested researchers may contact State Key Laboratory of Ocean Engineering for further information or potential collaboration.
References
Abkowitz MA (1964) Lectures on ship hydrodynamics-Steering and maneuverability. Hydro and Aerodynamics Lab, Lyngby
Ogawa A, Kasai H (1978) On the mathematical model of manoeuvring motion of ships. Int Shipbuild Prog 25:306–319
Carrica PM, Ismail F, Hyman M, Bhushan S, Stern F (2014) RANS-based simulated ship maneuvering accounting for hull-propulsor-engine interaction. Ship Technol Res 61:142–161
Gong JY, Li YB, Jiang F (2020) Numerical simulation about the manoeuvre of trimaran and asymmetric twin hull with hull attitude taken into account by OpenFOAM. J Mar Sci Technol 25:769–786
Kim D, Song S, Jeong B, Tezdogan T, incecik A (2021) Unsteady RANS CFD simulations of ship maneuverability and course keeping control under various wave height conditions. Appl Ocean Res 117:102940
Guo HP, Zou ZJ (2022) CFD and system-based investigation on the turning maneuver of a twin-screw ship considering hull-engine-propeller interaction. Ocean Eng 251:110893
Liu XJ, Fan SM, Wang JH, Wan DC (2015) Hydrodynamic simulation of pure sway tests with ship speed and water depth effects. In: Conference proceedings, International Ocean and Polar Engineering (in America), 25
Guo HP, Zou ZJ (2017) System-based investigation on 4-DOF ship maneuvering with hydrodynamic coefficients determined by RANS simulation of captive model tests. Appl Ocean Res 68:11–25
Araki M, Sadat-Hosseini H, Sanada Y, Tanimoto K, Umeda N, Stern F (2012) Estimating coefficients using system identification methods with experimental, system-based, and CFD free-running trial data. Ocean Eng 51:63–84
kang CG, Suh SH, Kim JS (1984) Maneuverability analysis of a ship by system identification technique. B Soc Nav Archit Korea 21:10-20
Åström KJ (1980) Maximum likelihood and prediction error methods. Automatica 16:551–574
Abkowitz MA (1980) Measurement of hydrodynamic characteristics from ship trials by system identification. Soc Nav Archit Mar Eng 88:283–318
Luo WL, Zou ZJ (2009) Parametric Identification of Ship Models by Using Support Vector Machine. J Ship Research 53:19–30
Zhang XG, Zou ZJ (2011) Identification of Abkowitz model for ship manoeuvring motion using ɛ-support vector regression. J Hydrodyn 23:353–360
Luo WL, Moreira L, Guedes SC (2014) Manoeuvring simulation of catamaran by using implicit models based on support vector machines. Ocean Eng 82:150–159
Tiano A, Blanke M (1997) Multivariable identification of ship steering and roll motions. T I Meas Control 19:63–77
Luo WL, Guedes Soares C, Zou ZJ (2016) Parameter Identification of Ship Model Based on Support Vector Machines and Particle Swarm Optimization. J Offshore Mech Arct Eng 138:031101
Xu HT, Guedes Soares C (2019) Hydrodynamic coefficient estimation for ship maneuvering in shallow water using an optimal truncated LS-SVM. Ocean Eng 191:106488
Xu HT, Guedes Soares C (2020) Maneuvering modeling of a containership in shallow water based on optimal truncated nonlinear kernel-based least square support vector machine and quantum-inspired evolutionary algorithm. Ocean Eng 195:106676
Wang ZH, Zou ZJ, Guedes Soares C (2019) Identification of ship maneuvering motion based on nu-support vector machine. Ocean Eng 183:270–281
Sutulo S, Guedes SC (2014) An algorithm for offline identification of ship manoeuvring mathematical models from free-running tests. Ocean Eng 79:10–25
Rajesh G, Bhattacharyya SK (2008) System identification for nonlinear maneuvering of large tankers using artificial neural network. Appl Ocean Res 30:256–263
Wakita K, Maki A, Umeda N, Miyauchi Y, Shimoji T, Rachman DM, Akimoto Y (2022) On neural network identification for low-speed ship maneuvering model. J Mar Sci Technol 27:772–785
He HW, Wang ZH, Zou ZJ, Yi L (2022) Nonparametric modeling of ship motion based on self-designed fully connected neural network. Ocean Eng 251:111113
Mei B, Sun LC, Shi GY (2019) White-Black-Box Hybrid Model Identification Based on RM-RF for Ship. IEEE Access 7:57691–57705
Moreira L, Guedes Soares C (2003) Dynamic model of maneuverability using recursive neural networks. Ocean Eng 30:1669–1697
Hess DE, Faller WE, Minnick L, Fu T (2007) simulation of Sea Fighter using a fast nonlinear time domain technique. In: 9th International Conference on Numerical Ship Hydrodynamics, Ann Arbor, Michigan, USA
Hao LZ, Han Y, Shi C, Pan ZY (2022) Recurrent neural networks for nonparametric modeling of ship motion. Int J Nav Arch Ocean 14:100436
Guo XX, Zhang XT, Tian XL, Li X, Lu WY (2021) Predicting heave and surge motions of a semi-submersible with neural networks. Appl Ocean Res 112:102708
Liu YC, Duan WY, Huang LM, Duan SL, Ma XW (2020) The input vector space optimization for LSTM deep learning model in real-time prediction of ship motions. Ocean Eng 213:107681
Mnih V, Heess N, Graves A, Kavukcuoglu K (2014) Recurrent Models of Visual Attention. arXiv:1406.6247.
Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser L, Polosukin L (2017) Attention is all you need. arXiv:1706.03762.
Zhang S, Wang L, Zhu MD, Chen SW, Zhang HS (2021) A Bi-directional LSTM ship trajectory prediction method based on attention mechanism. In: 2021 IEEE 5th Advanced Information Technology, Electronic and Automation Control Conference, Chongqing, China
Xu GQ, Ma JW, Zhu MD, Wu CH (2021) A method of ship navigation prediction based on Attention-LSTM neural network. Ship Sci Tec 41:177–180
Zhang T, Zheng XQ, Liu MX (2021) Multiscale attention-based LSTM for ship motion prediction. Ocean Eng 230:109066
Zeng A, Chen M, Zhang L, Xu Q (2022) Are transformers effective for time series forecasting? arXiv:2205.13504.
Lou JK, Wang HD, Wang JY, Cai Q, Yi H (2022) Deep learning method for 3DOF motion prediction of unmanned surface vehicle based on real sea maneuverability test. Ocean Eng 250:111015
Xu PF, Cheng C, Cheng HX, Shen YL, Ding YX (2014) 38. Srivastava, N., Hinton, G.E., Krizhevsky, A., Sutskever, I., Salakhutdinov, R., 2020. Identification-based 3 DOF model of unmanned surface vehicle using support vector machines enhanced by cuckoo search algorithm. Ocean Eng 197:106898
Srivastava N, Hinton GE, Krizhevsky A, Sutskever I, Salakhutdinov R (2014) Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res 15:1929–1958
Acknowledgements
This paper is sponsored by the National Natural Science Foundation of China (52271348). In addition, great appreciation is given to the Jiangsu Automation Research Institute for providing the test data of JARI-USV.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Dong, L., Wang, H. & Lou, J. An attention mechanism model based on positional encoding for the prediction of ship maneuvering motion in real sea state. J Mar Sci Technol 29, 136–152 (2024). https://doi.org/10.1007/s00773-023-00978-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00773-023-00978-x