High-completeness ship trajectory data are critical for analyzing navigation behavior characteristics and enhancing effective maritime management. To address the common issues of prolonged AIS data loss for small coastal vessels in nearshore waters, an intelligent trajectory repairing model based on the artificial potential field-enhanced A* algorithm (APF-A*) has been proposed. Kernel density estimation was utilized to quantify the distribution characteristics of vessels, thereby constructing an attractive potential field based on historical trajectories and a repulsive potential field based on coastal terrain. Speed distribution characteristics were extracted from historical trajectory points in different regions; on the basis of this, the A* algorithm, integrated with attractive and repulsive fields, was proposed to repair missing trajectory segments. Based on the speed distribution characteristics, time intervals, and distance information, the temporal information of the vessel trajectories was effectively reconstructed. The present study fills the research gap in AIS data reconstruction for small coastal vessels in complex coastal waters. A case study has been conducted in Luoyuan Bay, Fujian Province, China, to further validate the proposed model. The results demonstrate that the trajectory repairing model based on the artificial potential field-enhanced A* algorithm outperformed other models. More specifically, the Hausdorff Distance and Dynamic Time Warping (DTW) metrics decreased by 81.67% and 91.56%, respectively. The present study shares useful insights into intelligent maritime management and further supports accident prevention in coastal waters.
With the rapid development of autonomous collision avoidance algorithms on ships, the technical demand for the testing and verification of autonomous collision avoidance algorithms is increasing; however, the current testing of autonomous collision avoidance algorithms is mainly based on the virtual simulation of the computer. To realize the testing and verification of the autonomous collision avoidance algorithm in the real ship scene, a method of virtual reality fusion testing in open water is proposed and real ship testing is carried out. Firstly, an autonomous ship collision avoidance test and evaluation system is established to research the test method of ship encounters in open water. Starting from the convention on the international regulations for preventing collisions at sea (COLREG), the main scenario elements of ship collision avoidance are analyzed. Based on the parametric modeling method of ship collision avoidance scenarios, a standard test scenario library for ship collision avoidance in open waters is established. Then, based on the demand for a ship collision avoidance function test, the evaluation index system of ship collision avoidance is constructed. Subsequently, for the uncertainty of the initial state of the real ship test at sea, the virtual–real space mapping method to realize the correspondence of the standard scenario in the real world is proposed. A standardized testing process to improve testing efficiency is established. Finally, the method of conducting virtual simulation and virtual reality fusion tests for various scenarios are verified, respectively. The test results show that the test method can effectively support the testing of autonomous collision avoidance algorithms for ships in open waters and provide a practical basis for improving the pertinence and practicability of ship collision avoidance testing.