To address the insufficient real-time capability and long-horizon accuracy degradation of ship maneuvering motion prediction under environmental disturbances such as waves, an online prediction method based on an improved Long Short-Term Memory (LSTM) neural network is proposed. A multi-layer LSTM is adopted as the core predictor, and an embedded sliding-window structure is introduced to compute the error metrics within the window in real time. When the window-averaged error exceeds a preset threshold, model retraining and updating are triggered, thereby achieving timely online prediction. The results indicate that, compared with offline prediction, the proposed online method maintains stable prediction accuracy under long-horizon conditions with continuously switching wave states. With the same window length, the online method with a stricter threshold achieves a maximum RMSE improvement of 56.85%, while the cumulative update time is only 3.82 s. The proposed online prediction method delivers satisfactory long-horizon prediction performance for ship maneuvering motion and shows practical value for accurate long-horizon prediction under complex sea conditions. Key words:navigation safety; online prediction; long short-term memory neural network; ship maneuvering; wave influence; sliding time window
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |