Next Article in Journal
Arctic Nearshore Sediment Dynamics—An Example from Herschel Island—Qikiqtaruk, Canada
Previous Article in Journal
Advantage of Regional Algorithms for the Chlorophyll-a Concentration Retrieval from In Situ Optical Measurements in the Kara Sea
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Randomly Testing an Autonomous Collision Avoidance System with Real-World Ship Encounter Scenario from AIS Data

Navigation College, Dalian Maritime University, Dalian 116026, China
*
Authors to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2022, 10(11), 1588; https://doi.org/10.3390/jmse10111588
Submission received: 28 August 2022 / Revised: 12 October 2022 / Accepted: 17 October 2022 / Published: 27 October 2022
(This article belongs to the Section Ocean Engineering)

Abstract

:
Maritime Autonomous Surface Ship (MASS) is promoted as the future of intelligent shipping. While autonomy technologies offer a solution for MASS, they have also resulted in new challenges for performance validation. To address this, a scenario-based validation method to test the autonomous collision avoidance system is proposed in this paper, including mining ship encounter scenarios from massive historical AIS data and randomly generated virtual test scenarios according to the parameter probability distributions from the collected real scenarios, as well as the final experiments: a total of 2900 generated scenarios including single ship and multi-ship encounter situations are created and applied to conduct testing experiments on the further assessment of our collision avoidance algorithm. The results indicate that the proposed method has the ability to quickly create appropriate testing scenarios according to AIS records, which are helpful to catch potential defects in a collision avoidance algorithm of MASS and to further analyze its navigating features. As a result, the research forms a systematic set of validation procedures from data gathering to practical experiments conduction, incorporating both the real statistics and the random generation method.

1. Introduction

Interest in Maritime Autonomous Surface Ship (MASS) is growing rapidly as the high levels of safety and efficiency that can be reached by such ships are thought to have the potential to solve problems in the maritime industry, such as the prevention of marine accidents and the improvement of the environment [1]. The IMO’s Maritime Safety Committee (MSC) has classified the MASS into four categories [2], where the most advanced MASS is able to make decisions to navigate autonomously.
For such an autonomous ship, many manufacturers, experts, and scholars in the shipping field, as well as the global authoritative ship classification societies generally agree that MASS should at least be as safe as current conventional manned ships [3,4,5]. Therefore, it is very important to carry out tests to ensure the safety, security, and reliability of the MASS navigation. MASS is scheduled to be put into practical use as a coastal vessel in some areas overseas from as early as the first half of the 2020s [6]. The demand for verification and evaluation of MASS’s autonomous navigation system is increasingly urgent.
In terms of field tests for autonomous navigation systems, several industrial projects have been carried out such as the “NYK MASS Trials” project in Japan [7], the “Mayflower Ship” project in the UK [8] and the “Electric Autonomous Container Ship YARA Birkeland” project in Norway [6]. However, the costs and the risks of the full-scale testing of a real ship are usually high.
In the field of autonomous vehicles on land, scenario-based testing is one of the prevailing methods and is broadly supported by the automotive community [9,10]. This method proposes to create a scenario database from real-world driving data and use it in the safety assessment of autonomous driving systems. Achievement in the field of autonomous vehicle testing can be a great benefit to smart shipping. Therefore, how to set up a suitable testing scenario library is the key to the evaluation and verification of an autonomous navigation system in different stages.
Collision avoidance is a key operation of ship navigation. In most existing algorithms for autonomous collision avoidance, tests are usually conducted in the last section to validate the effectiveness of their methods. Besides the common three types of encounters (head-on, crossing, and overtaking), more complicated situations are also tested [11,12,13].
H. Imazu [14] put forward 42 encounter situations called the “Imazu problem” to specifically study how to carry out a validation. Zhou and Ahmed [15,16] made use of the first set of 22 encounter situations to test their collision avoidance algorithms. Johansen [17] proposed 15 collision avoidance scenarios for ships, according to the number of target ships, the wind, and the currents at sea. Chen [18] defined 15 different situations of two ships by considering the captain’s advice, the relative course, speed ratio, and true heading angle between the target ship and the own ship. Paul [19] created a test suite by the handcrafted COLREGs (International Regulations for Preventing Collisions at Sea) scenarios and scored the performances of each test experiment. The initial setting parameters of the scenario are important and fundamental in scenario designing because any change in a parameter will lead to a variation in the collision risk [20] and the encounter scenario will be probably different. The parameters in these above testing scenarios are all set artificially or expert based. The weakness is that the quantity is generally not more than one hundred predefined instances, which the collision avoidance algorithm can be particularly tuned to pass, but the algorithm may fail under broader or more unknown conditions, and the programmed machine may contain bugs in not only the stereotypes of encounter situations.
Random scenario testing is intuitive and can make up for the flaw in expertise-designed scenarios. One shortcoming is that the search space is infinitely large. It is impossible to test all the scenarios. To solve this problem, Liu and Henriksen [21,22] attempted to set parameter boundaries to filter out invalid scenarios. While it is difficult to define if a scenario is invalid, in fact, an algorithm might even fail to pass any kind of test scenario for various reasons. Woerner [23] randomly perturbed the geometry parameters of both the own ship and target ship to generate similar testing scenarios. Similarly, Minne [24] changed the geometry of target ships, while the own ship was fixed at zero coordinates; this method may limit the testing scenario library to a very little range, because all the initial positions of the target ships emerge around the predefined positions.
A number of researchers hold that testing scenarios should reflect the real statistical features of ship navigation in different water areas. An Automatic Identification System (AIS) provides rich information including ship type, position, course over ground (COG) speed over ground (SOG) [25], etc. AIS has been applied in a series of studies on data fusion, abnormal detection, and risk detection [26,27,28]. Inspired by this, a few studies are attempting to mine AIS data for MASS designing testing scenarios.
Pedersen [13] proposed that a promising method might be testing collision avoidance in scenarios that best represent the probable traffic encounter a vessel might meet. Historical cases using AIS data could be used as input to generate test scenarios. Vagale [29] introduced the AIS historical data and other real statistics to set up the multiplied maps for validating collision avoidance risks. While the method is prospective and relies on a vast information source, generating virtual scenarios will be conducive in case of a lack of data. Hwang [30] identified and classified various navigation encounter situations by applying a clustering model from AIS data in the Yellow Sea; the results are listed in percentage by their frequency and reflect the possibility of which type of encounter the ships are most likely to come across and how well they are likely to interact. Bakdi [31] has proposed a method to obtain test scenarios from AIS data and real-coast geographic information and other obstacles, considering both risks of collision and grounding, and thus has set up a more comprehensive and mature validation platform with better authenticity; in his most current study [32], COLREGs is also taken into consideration. Snijders [33] investigated the feasibility of using AIS data in the Strait of Dover for the identification and classification of real-life scenarios. The probability density functions describe a series of navigation parameters, including encounter time duration, target ship distance, relative speed, etc., in give-way scenarios. The scenarios from AIS data have the best advantage of fidelity, whilst the method also has some drawbacks.
The studies above have made good progress on validation by using AIS data, while these real records are also affected by various factors. The accessibility of AIS data around the world is not equal to all the peer researchers for various reasons: AIS will not always provide ships’ exact behaviors because not all the ships will turn on the AIS devices with correct information. The historical trajectories display the TSs’ behaviors interacting with the real world at that particular time instead of how they will act when meeting with the ship under the current test. In the real world, urgent situations constitute a limited part of all the records, while special types of encounters that lead to an accident need to be constructed to ensure our avoidance system will work when facing diverse situations. It is usually difficult to find a large number of these corner cases by experiences because it is difficult to define what kind of encounter is more stressing for a specific collision avoidance algorithm. For various programmed algorithms, they may become stuck or demonstrate irrational steering behaviors in any encounter, perhaps even not only in those complicated test instances.
While the discussion is not in any position to reject AIS, we proposed to incorporate the techniques of random maps because there are no concerns about the flaws from AIS data. Random maps are more flexible to adjustments in terms of ship density, obstacle contour, encounter types and other disturbances, which additionally enables sorting the validation processes into varying difficulty levels, which is helpful for researchers to quickly identify underlying defects in basic scenarios and make a comprehensive performance assessment in more stressed tests. The drawback of these randomly generated maps is that the search space is unlimited; they need some rules to accelerate the testing process and thus exploit its full advantages.
Therefore, the proposed method is a combination of the random generating and real-data-driven approach to gain larger coverage, while limiting the search space to a reasonable range and finally put the method into practice. The random process is required to make the coverage of testing scenarios larger than the reality, while the motion parameters of the target ships should be scattered in a limited range; the generated instances should not be either too close to nor far from the reality. Another merit is that the combined method has a better generalization ability to various validation requirements of different water areas, limited AIS data size, easy adjustment of the test cases and quick application in practical experiments.
Scenario generation is not the last step of validation. We have actually put these randomly generated and real-data-modified scenarios into practical testing experiments with results analysis. To our best knowledge, there has not been a systematic set of validation procedures from data gathering to practical experiments conduction that incorporates the real statistics and the random generation method.

2. Overview of the Framework

As shown in Figure 1, the remainder is organized as follows: Section 3 introduces the methods of scenario identification and extraction (step 1–step 3). In Section 4, case studies and numerical outputs are made from AIS data (step 4). In Section 5, probability distributions are applied to generate simulated testing scenarios (step 5). Experiments are conducted to test the proposed methodology in Section 6 (step 6), and the results of experiments can be used to optimize the methods or algorithms adopted in steps 1–5. The conclusions are discussed in Section 7.

3. Encounter Scenarios Identification and Extraction

3.1. Data Preprocessing and Trajectory Extraction

Firstly, we decoded the AIS messages to obtain the Maritime Mobile Service Identity (MMSI), latitude (Lat), longitude (Lon), SOG, COG, and other information of each ship. Secondly, the decoded AIS data were filtered and cleaned. Thirdly, each ship’s trajectory was organized and managed by MMSI. Finally, overlapping trajectories for all ship pairs were extracted by the same time frame.

3.2. Scenario Identifying

In our framework, the scenarios identified and extracted from AIS data can be further designed to test the autonomous collision avoidance decision-making scheme. The quantitative analysis of COLREGs, such as collision risk, the situation and the stage of the encounter, is important for finding valuable encounter scenarios.

3.2.1. Analysis of Ship Collision Risk

Many experts and scholars have carried out research on the quantification of collision risk. Some of them put forward the synthetic and objective indicators-based approach [34,35], where the relative distance (RD), the relative speed (RS), the Distance of Closest Point of Approaching (DCPA), and the Time to Closest Point of Approaching (TCPA), etc., are considered indicators to identify collision risk.
For the sake of simplicity, we accepted the DCPA and TCPA-based approach to determine collision risk in this paper. Considering the sailing practice, if the RD between the own ship (OS) and the target ship (TS) is above 6 nautical miles (nm), the collision risk is ignored [36]. Referring to the existing literature [33,37,38,39], the determination model of collision risk states (CRS) at time t can be expressed as follows:
CRS ( t ) = { 1 ,     if   ( RD ( t ) 6.0   nm ,     DCPA ( t ) < 2.0   nm   and     0   min < TCPA ( t ) < 30 min ) 0 ,     otherwise
where CRS ( t ) = 1   or   0 , respectively, indicate that the collision risk in an encounter situation exists or does not exist.

3.2.2. Classification of Encounter Situations

The rules 13–15 in COLREGs Part B only qualitatively describe the three types of encounter situations in sight of each other, namely overtaking, head-on and crossing. The angles which are adopted to divide the different types of encounter situations are not fixed but are similar in the existing literature [36,37,38]. Therefore, we use the same angles as used in the study [38], as shown in Figure 2.
The motivation of this paper is to test the ship collision avoidance decision-making schemes with real world ship encounters from massive empirical AIS data. Encounter situations with collision risk may be more valuable for testing autonomous collision avoidance algorithms. Hence, the encounter situations (ES) at time t can be expressed according to the relative bearing (RB) and CRS as follows:
ES ( t ) = { 0 ,     if   ( RB ( t ) [ 0 ° ,   5.7 ° ] [ 354.3 ° ,   360 ° )   and   CRS ( t ) = 1 ) 1 ,     if   ( RB ( t ) [ 112.5 ° ,   247.5 ° ]   and   CRS ( t ) = 1 ) 2 ,     if   ( RB ( t ) ( 5.7 ° ,   112.5 ° ) ( 247.5 ° ,   354.3 ° )   and   CRS ( t ) = 1 )
where ES ( t ) = 0 ,   1   or   2 , respectively, indicate that ES ( t ) is the head-on situation, the overtaking situation or the crossing situation.

3.2.3. Quantification of Ship Encounter Stages

The entire process of the two vessels approach can be divided into four stages directed by COLREGs and good seamanship [40]. The ship collision avoidance decision-making schemes are different in different encounter stages. Hence, it is necessary to quantify the ship encounter stages in the scenario for testing the autonomous collision avoidance system. The four stages include no risk of collision, risk of collision, close-quarter situation and immediate danger. During the no risk of collision stage, the distance between two ships is very far (above 6 nm in practice sails) and the risk of collision stage is not formed. Therefore, the testing scenarios in this paper focus on the remaining three stages.
The distance between two ships at which the different stages begin to apply will vary considerably. The 6 nm, which is the range of Radar detection, is generally accepted for the beginning of the risk of collision stage [40,41]. That is to say, the two ships are in the no risk of collision stage when the distance between two ships is above 6 nm. The close-quarter situation can be considered to be between 1 nm and 3 nm [40,42]. In other words, 1 nm can be suggested to determine whether an immediate danger is developed. Therefore, 6 nm, 3 nm and 1 nm are taken as the division boundaries of the four encounter stages in this paper.
At time t, the ship encounter stages SES ( t ) between OS and TS are determined according to the relative distance (RD) and CRS as follows:
SES ( t ) = {   0 ,     if   ( RD ( t ) > 6   nm )   1 ,     if   ( 6   nm RD ( t ) > 3   nm   and   CRS ( t ) = 1 ) 2 ,     if   ( 3   nm RD ( t ) > 1   nm   and   CRS ( t ) = 1 )   3 ,     if   ( RD ( t ) 1   nm   and   CRS ( t ) = 1 )    
where SES ( t ) = 0 ,   1 ,   2   or   3 , respectively, indicate that SES ( t ) is the no risk of collision stage, the risk of collision stage, the close-quarter situation or the immediate danger stage.
Although we use discrete encounter stages here in this paper, it should be noted that the division of the encounter stages is subjective and depends on many other factors in practice.

3.2.4. Scenario Parameters

Table 1 describes the different parameters for each navigation testing scenario. In order to reduce the impact of sensor error, we assume that the duration of the encounter situation is at least 120 s, so as to become a valid test scenario.

4. Case Study and Numerical Statistics from AIS Data

This section is mainly divided into two parts, of which the first part consists of the two encounter case studies on the output of extracted AIS data, then a series of parameter density distributions (including relative distance, relative speed, duration time, and passing distance) are shown.

4.1. Case Study from AIS Data

The Laotieshan water area selected as the experimental area is an important channel for ships to enter and leave the ports of Tianjin, Qinhuangdao, Yingkou and others in Bohai Bay of China. The AIS traffic flow based on an electronic chart system on 31 May 2019 is shown in Figure 3.
The cleaned-up research data collected from 1 May 2019 to 31 May 2019 in Laotieshan waters includes a total of 55,327,865 ship position reports from 9440 ships, which contain container ships, passenger ships, fishing ships, and other ships, shown as in Table 2. Table 3 shows that a total of 56,952 valid scenarios were found.
To analyze the characteristics of the encounter situations, we selected the typical single-ship encounter situations and multi-ship encounter situations identified by the proposed method, as shown in flowing 3 figures.
Figure 4 presents a correctly classified situation, where OS (tanker, MMSI: “413474690”) and TS (container, MMSI: “413146000”) meet in a head-on encounter situation. As shown in Figure 4a, OS and TS are on the opposite course, with OS moving up and TS moving down. Figure 4d–f indicate that RD is 6.0 nm, DCPA is 0.1 nm and TCPA = 15 min at the start of this head-on situation (t = 0 s). Therefore, the OS and TS are in the risk of collision stage. TS engages in a course-change action at t = 60 s when the RD is about 5.5 nm, shown in Figure 4c,d. This maneuver increases the DCPA and decreases the TCPA shown as in Figure 4e,f. At last, OS and TS pass within 0.8 nm of each other when the situation is resolved. Figure 4g presents the scenario parameters aspects. The duration time of this head-on scenario is 950 s.
In this case, it may be argued that OS and TS should both engage in a maneuver. However, Figure 4b,c show that only TS takes the course change maneuvers (t = 60 s), while the OS still keeps the course and speed. This is likely due to the OS considering the TS as a give-way ship in a small-angle crossing situation.
Figure 5 presents a multi-ship encounter situation, where OS (container, MMSI: “412713000”) encounters TS1 (tanker, MMSI: “412377520”) in a head-on situation, OS (give-way ship) and TS2 (cargo vessel, MMSI: “413700110”), TS3 (tanker, MMSI: “413441230”), TS4 (tanker, MMSI: “413697340”), respectively, meet under crossing encounter rules and OS (stand-on ship) and TS5 (cargo vessel, MMSI: “412766340”, give-way ship) meet in a overtaking encounter situation. Figure 5d indicates that RD (t = 0 s) between OS and TS1, TS2, TS3, TS4 are, respectively, 3.5 nm, 4.4 nm, 1.9 nm and 2.2 nm. Therefore, the OS, TS3, and TS4 are in the close-quarter situation. As shown in Figure 5a, the OS does not substantially alter its course to starboard. On the contrary, the OS keeps her main course (t = 0~210 s) and passes on the starboard side of TS3 and TS4. The OS engages in a course-change action at t = 210s, shown in Figure 5c. This maneuver increases the DCPA of TS2, TS3 and TS4, and decreases the risk of collision, as shown in Figure 5f. Meanwhile, Figure 5d–f) indicate that the OS keeps clear of TS3 (t = 410 s), TS4 (t = 460 s) and TS1 (t = 660 s) within 0.7 nm of each other when TCPA is less than zero. Figure 5g presents the scenario parameters aspects. The duration time of this multi-ship encounter scenario is 690 s.
In this case, it may be argued that OS as a give-way ship is obliged to make a right turn maneuver to keep enough passing distance to TS2, TS3 and TS4 at the start of this multi-ship encounter situation. However, Figure 5b,c show that OS takes no action and keeps her main course and speed at t = 0~210 s. That is to say, the OS violates COLREGs and gives up the purpose of passing on the port side of TS3 and TS4. This maneuver obviously decreases the RD and TCPA and increases the risk of collision. The likely reason is that it may lead to a new urgent collision risk with TS2 if the OS alters its course to starboard. The OS and TS1-4 may communicate and coordinate with each other before the OS adopts this collision avoidance decision-making scheme.
From the above two cases, we can know that not all vessels in the real world strictly abide by COLREGs, often leading to dangerous situations. However, the behavior of rule-violating vessels is difficult to design and model manually. Hence, we hope to use the real statistical results from AIS data to realize the generalization of the test scenario.

4.2. Statistical Results from AIS Data

In this section, we show the statistical results of all detected single-ship encounter scenarios (n = 56,952). The Probability Density Functions (PDF) of parameters in different types of encounter scenarios (overtaking, head-on, crossing) are obtained. The Kernel Density Estimation (KDE) method is adopted to calculate the PDF in this paper. The statistical results of different types of scenarios in terms of the RD (relative distance), the RS (relative speed), the duration time, and the safety passing distance, are shown, respectively, in following 4 figures.
A similar method has been used in [43], where the RD and RS are calculated for DCPA and TCPA and distributions of ship maneuvers when facing near collision situations are plotted.
Figure 6 shows the distribution of RD at the start of different encounter scenarios. The head-on scenarios on average have a substantially higher distance (4.7 nm) than crossing scenarios (3.3 nm), which again, on average, have a significantly higher distance than overtaking scenarios (1.8 nm); even the median RD in head-on scenarios is 5.7 nm, which is close to the max RD (6 nm). The result indicates that ships with a high RS in head-on situations, so far as possible, usually keep enough distance to take early action considering the limit of ship handling and ship inertia.
Figure 7 indicates the distribution of RS at the start of different encounter scenarios. The head-on scenarios on average have a minor higher speed (21.4 kn) than crossing scenarios (19.3 kn), which again on average have a significantly higher speed than overtaking scenarios (3.9 kn). This is to say, ships approach much slower during overtaking scenarios. As Figure 7 shows, there are only minor differences in the median when comparing head-on situations to crossing situations. However, it is evident that there are significant differences in the median when comparing overtaking situations (3.2 kn) to head-on situations (21.2 kn) and crossing situations (21.3 kn).
Figure 8 presents the empirical distribution of duration time for different encounter scenarios. The average duration time is different in different encounter types. The crossing scenarios on average have a lower duration time (6.8 min) than head-on scenarios (12.6 min), which again, on average, have a lower duration time than overtaking scenarios (20.6 min); even the max duration time of overtaking scenarios reaches 115 min. In other words, the testing of one overtaking scenario will cost much more time.
Figure 9 shows the distribution of safety passing distance in different encounter scenarios. The average safety passing distance is also different in different encounter types. The crossing scenarios, on average, have a substantially higher distance (2.7 nm) than overtaking scenarios (1.2 nm), which again, on average, have a minor higher distance than head-on scenarios (1.0 nm); even the median distance in head-on scenarios is 0.6nm, which is very close to the min passing distance (0.1). In other words, the safety passing distance in most head-on scenarios is under 0.6 nm. The reason is perhaps that the OS and TS in head-on scenarios have negotiated in advance and understood their respective sailing intentions. Therefore, the two ships may accept a short passing distance to change their original routes as little as possible.
The probability distributions of these scenario parameters can be not only used to generate a huge number of test scenarios that conform to the characteristics of real marine traffic, but are also useful to analyze and evaluate the autonomous collision avoidance algorithm, such as using the safety passing distance to assess the safety of collision avoidance algorithms.

5. Scenarios Generation and Evaluation

The outputs of the sections above are the probability distributions for a series of scenario parameters, i.e., the duration the encounters will last, the initial RD between OS and TS when an encounter exists and the RS and the minimal passing distance between OS and TS. Thus, a scenario generation program was designed to create similar encounters complying with the probabilities. For instance, if in most encounters the TS has a relative speed of 15 kn, the scenario generation program should imitate the statistical pattern to create more scenarios where the relative speed between TS and OS is around 15 kn. The process of generating is actually the inverse of the AIS data mining procedures.
In Figure 6 and Figure 7, the RD and the RS distributions depict how frequently the TS will appear at a distance from the OS, and what its speed is likely to be. Inspired by this, we designed a scenario generation program that set the initial target ship at a specific location with a certain velocity to simulate such probabilities. The program works to virtually generate a target ship, during every loop, the target ship’s position and velocity are randomly set according to the possibility in Figure 6 and Figure 7, but within the limitations of the Equation (1).
Note that the passing distance and duration as shown in Figure 8 and Figure 9 are not used in this part to design a scenario; however, they will be applied to compare with the outcomes of tests in Section 6.
For a clear demonstration, we initially created 20 cases in each encounter category, as shown in Figure 10. The OS is set on (0,0). Note that the 20 scenarios are each single-target-ship encounters and will be tested, respectively, instead of multiple-target-ships encounters. In these figures, it can be seen that a number of target ship locations are near to each other. This is because the probability distribution value is high at these particular positions.
To test an autonomous collision avoidance algorithm completely, a large number of test cases should be conducted; therefore, a total of 900 scenarios are generated in head-on, crossing and overtaking encounters, 300 per encounter situation, as illustrated in Figure 11.
The distributions of RD and RS are recounted to validate the simulated scenarios, (in Figure 12 and Figure 13); it is obvious that the generated scenarios conform to the real AIS data. The testing experiments will be carried out and the results are analyzed in the next section. For length limitations, parts of the test cases are listed in Table 4, Table 5 and Table 6.

6. Test Experiments Using the Generated Scenarios

In this section, the 900 virtual scenarios in Section 5 are, respectively, deployed to test the collision avoidance algorithm [15], similar to our previous study which aimed to solve how to autonomously avoid collisions for large intelligent ships in open waters; the algorithm passed the Imazu problem [14] in more than 20 scenarios with both single and multiple target ships. As shown in Figure 14, the previous research [15] relieves the turning delay caused by inertia on large ships and eliminates the parallel lock problem (as shown in Figure 14), which, if not solved, the own ship can not return back to its next waypoint. A similar phenomenon is also noted by Torben [43].
This experiment attempts to find potential defects in the algorithm and observe maneuver features in terms of duration and passing distance. In all the scenarios, the OS starts at the waypoint (0,0) with a speed of 10 knots, heading to 0° (north up). The task for the OS is to navigate to the next waypoint (0,12 nm) while avoiding any potential collision, as shown in the samples (Figure 15, where there are plotted 3 cases in heading on, crossing and overtaking encounters, each case is added by DCPA, TCPA and rudder angle graph).
The test results are listed in Table 7, Table 8 and Table 9 which show the passing distance, duration time, action time and marks of near miss and collision. Near miss denotes that the OS has avoided the collision, but with a passing distance smaller than 0.3 nm and larger than 0.2 nm. If the passing distance is smaller than 0.1nm, the OS is considered to have collided with the TS.
Out of the total 900 scenarios, there are three cases where the autonomous ship fails to avoid the collision; they are case 74, case 79 and case 142, as listed in Table 10, all in crossing encounters. Our initial inference is that the TS in each scenario is at around the left beam, the OS has to turn starboard to abide by the COLREGs, but the TS has a higher speed, OS’s course change does not take effect. Additionally, there are another four near-miss cases that OS navigates too close to TS with less than 0.2 nm. This might be caused by the initial settings in which the TS’s relative distance and DCPA are too small for OS to act. According to Section 4.1, it can be seen that these near-miss cases exist in the real world, where the target ship may turn its heading abruptly because of its scheduled waypoints, thus a more dangerous situation might occur. Under such conditions, seafarers on human-operated ships will generally confirm each other’s sailing intentions by VHF and reciprocal actions will be taken to make sure ships are able to overcome such a situation. Further investigations are needed to enhance OS’s performance in these cases. Therefore, the proposed testing method reveals that there are still potential defects in the collision avoidance algorithm, although it has safely passed all the Imazu problems [14].
The passing distance and the duration distributions calculated from test results are illustrated in Figure 16 and Figure 17. The passing distances are all less than 2 nm, in contrast to Figure 8 and Figure 9 from real AIS, larger than 2 nm. The reason is that during AIS data gathering, the scenarios are considered as ended when the ships take actions to avoid the collision, the distance at the very time the ships taking action is marked as the passing distance, while in the experiment, the definition of the passing distance is the least distance between the two ships through the whole test experiment.
Most of the experimental cases concentrate on the passing distance around 0.8 nm, which is slightly larger than that of human-operated ships (around 0.6 nm). The duration distributions (Figure 17) are similar to those of real AIS statistics (Figure 8); most of the durations last from 15 to 20 min in head-on encounters, from 5 to 15 min in crossing encounters and 5 to 20 min in overtaking. From this perspective, the autonomous collision avoidance algorithm is, to some extent, similar to human-operated vessels.
Multiple ship encounters are a more challenging task for the automatic collision avoidance algorithm. This paper collected scenarios involving three and five target ships from the AIS data. Validation of total 2000 cases (1000 cases for 3 and 5 target ships, respectively) has been conducted. The statistics gathering, probability distribution plotting, virtual test generating, and experiment conduction are similar to those on single target ship encounters. Considering length limitation, we placed part of the test results from multiple target ships experiments in Figure 18 and Figure 19 (where five cases are plotted, respectively, for three and five target ships, with the DCPA, TCPA and rudder angle changing data).
Out of the 1000 cases from the three target ships encounter experiments, the collision avoidance algorithm passed 963 instances, of which 32 scenarios set initial target ships too close to the OS under test. This is caused by a similar reason to that discussed in the single-encounter experiments.
The remaining five cases are important, since they find potential defects in the algorithm, which has revised the parallel lock problem (as shown in Figure 14) and indeed works all well under most similar situations (in Figure 20). The own ship could make an opposite turn and wait for the appropriate opportunity to return to the waypoint by sailing from the stern of the target ship.
In Figure 21, the own ship does not collide with any ship, while it actually fails to pass the cases, because it is not able to turn back to the waypoint and face the parallel problem. This indicates that there still exists a bug in the algorithm of the previous study. Our initial guess is that there is a problem with the identification programming function, which requires further debugging. This situation, in total, happens only 5 times out of the 1000 cases but it is essential that our research is continued. If the test quantity is too small or if the target ship locations are too regular, we will not be able to notice these conditions.
In regard to the five target ships encounter experiments, the number of successful passing cases is 860 out of a total of 1000. In the failed 140 cases, 80 failures are caused by collision, in 30 cases, the own ship passed the target ships, while with a near miss. Our basic observation is that these 110 cases were actually caused by initial settings of target ship locations that were too close to the own ship under test that the collision avoidance algorithm could not avoid accidents, even when taking the full rudder. The remaining 30 cases are stuck in the parallel problem, similar to the three ship encounter experiments.
There are some cases where the collision avoidance algorithm under test actually does not take any action (for example, case 3 in Figure 18 and other cases by single target encounter in Figure 15). This indicates that there is no collision risk in these cases. This is because, during random generation, the scenario searching space is larger than the real data set collected from the AIS. The relative distance and relative velocities probability densities are plotted, respectively, while they are actually independent in the real world, thus there may exist some scenarios that do not contain a collision risk. From Figure 18 and Figure 19, it could be concluded that the collision avoidance algorithm under test could generally handle some multiple target ship encounter scenarios; the deficiency is that the rudder may shake back and forth at some specific time (for example, in case 5 of Figure 18). Our inference is that the decision process frequently changes at the edge values, such as the encounter section division edge to decide if the ship should turn port or starboard, the threshold to determine whether the OS should return back to its next waypoint or just keep its current course. The trajectories of these test cases do not obviously show the frequent rudder waving phenomenon because of the ship’s delay on rudder maneuvering, though we will continue our investigation on the boundary value problem to improve performances.

7. Conclusions and Discussion

Autonomous techniques are being rapidly developed on MASS and the validation of these techniques is demanded to guarantee safety. Conventionally, small amounts of test cases cannot cover all the situations, while completely random tests require a large search space, which is too time-consuming.
We proposed a method to test a collision avoidance algorithm with random scenarios generated from real world AIS data. There are three advantages to our validation method. First, this method will only search the candidate test case within the possibility distributions but not lose much testing coverage, thus dropping a large number of invalid scenarios which might be generated in an arbitrary method. Compared to setting scenarios manually, it is more compelling to set the parameters according to the real situations in marine traffic. Second, the framework as a whole from extracting information by AIS and drawing probability distributions to accordingly design test scenarios have a certain flexibility and can be generalized to other water areas covered by AIS across the world. The source of the ship autonomous navigation testing scenario dataset in this paper can include not only scenarios mined from AIS data, but also those designed based on expert experience, or from accident data. These scenarios can complement each other. Third, we have actually put these randomly generated and real-data-modified scenarios into practical testing experiments; merits and weaknesses from the test results are also briefly analyzed. Therefore, the constructed ship autonomous navigation testing scenario dataset in this method is practical for engineering applications. Test results will always be the best feedback for debugging during algorithm development and further scientific research, such as assessing and optimizing the functionality of developed autonomous collision avoidance algorithms from a statistical analysis view.
Still, there are many aspects open to be discussed, of which we have listed several points below. Collision risk is an important argument in the proposed scenarios generation method. Although the collision risk in equations (Equation (1)) based on the DCPA and TCPA methods is widely used, other types of collision risk formulas may affect the distributions and the scenario generation.
During drawing distribution graphs from AIS, the value range is divided into 8–10 smaller sections, the shape of the distribution line in Figure 6, Figure 7, Figure 8 and Figure 9 may change according to various section numbers. This will also affect how simulated scenarios are generated, because in each small section, the parameters of TS relative distance and relative speed are sampled with a uniform distribution.
All the target ships in the virtually generated cases keep their course and speed along their origin course. This is not the exact steering manner in the real world, where generally all the ships are responsible for avoiding urgent situations following COLREGs, as investigated in [32], where scenarios of multi-ship situations are extracted by the rules. Although a few ships may not take necessary actions or even, by mistake or on purpose, take adverse behaviors, a more efficient way in reality is to communicate by VHF. The proposed random generation method is not aimed at imitating the perfect reality, the reference from AIS data is a method helpful to limit the search space of the arbitrary sampling process. We need the random process to make the testing coverage larger for scenarios than the reality. While the motion parameters of the target ships should vibrate in a limited range according to the reality, the generated method should not be either too close to or far from the reality. Further studies are needed to balance such tradeoffs.
The manned ship may not abide completely to the COLREGs in testing scenarios as implied by the case study, where the OS and the TS identify the encounter differently in Figure 4. This can happen among autonomous ships, since there are various collision risk models and there is not a clear angle division between encounters (e.g., small angle crossing and head-on). This phenomenon is also indicated in some simulated experiments, where the OS has to turn to left rudder to avoid risk because the give-way TS does not take any action. However, all these specific “against COLREGs” situations mentioned above should be temporary and not lead to any collision accidents. On the other hand, negotiation is an efficient approach to cope with complicated circumstances in a few failed cases (as listed in Table 10). The speed of OS is too slow to avoid collision by taking any course changes; communication is a need for mitigating an urgent situation.
The elements of ship maneuverability, visibility, etc., are not considered in this paper. This will affect the evaluation of the timing and magnitude of the give-way ship maneuver when we deeply analyze the evacuation maneuver. In future research, we may extend the testing scenario parameters with ship maneuverability, ship size, visibility, and additional environmental elements from an electronic navigational chart. Additionally, we aim to extend this proposed framework with the use of AIS data from different waters and to set up a benchmark dataset for performance and risk evaluation of the MASS or autonomous navigation system.

Author Contributions

Conceptualization, F.Z. and Z.Z.; Funding acquisition, F.Z.; Methodology, F.Z. and Z.Z.; Writing—original draft, F.Z. and Z.Z.; Writing—review & editing, F.Z. and H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Key Research and Development Program of China under Grant 2018YFB1601505, the National Natural Science Foundation of China under Grant 51309044, and the Liaoning Provincial Shipping Joint Fund under Grant 2020-HYLH-28.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations and notations are used in this manuscript:
Abbreviations
AISAutomatic identification system
COGCourse over ground
COLREGsRegulation for Preventing Collision at Sea
DCPADistance to Closest point of approach
IMOInternational Maritime Organization
ISOInternational Organization for Standardization
LatLatitude
LonLongitude
MASSMaritime autonomous surface ship
MMSIMaritime mobile service identification
OSOwn ship
RCRelative course
RDRelative distance
RSRelative speed
SOGSpeed over ground
TCPATime to Closest point of approach
TSTarget ship
Notations
SOGOSthe SOG of OS
SOGTSthe SOG of TS
tetimestamp at end of the encounter situation
tstimestamp at start of the encounter situation

References

  1. Zhang, X.; Wang, C.; Jiang, L.; An, L.; Yang, R. Collision-Avoidance Navigation Systems for Maritime Autonomous Surface Ships: A State of the Art Survey. Ocean. Eng. 2021, 235, 109380. [Google Scholar] [CrossRef]
  2. Report of the MASS Working Group Autonomous Shipping. Available online: https://www.imo.org/en/MediaCentre/HotTopics/Pages/Autonomous-shipping.aspx (accessed on 27 August 2022).
  3. DNV Autonomous and Remotely-Operated Ships-DNV. Available online: https://www.dnv.com/maritime/autonomous-remotely-operated-ships/index.html (accessed on 23 March 2022).
  4. Felski, A.; Zwolak, K. The Ocean-Going Autonomous Ship—Challenges and Threats. J. Mar. Sci. Eng. 2020, 8, 41. [Google Scholar] [CrossRef] [Green Version]
  5. NI641 Guidelines for Autonomous Shipping|Marine & Offshore. Available online: https://marine-offshore.bureauveritas.com/ni641-guidelines-autonomous-shipping (accessed on 26 August 2022).
  6. Yara Birkeland Yara Birkeland Took Its First and Only Trip to Oslo before It Is Put into Operation. Available online: https://www.yara.com/news-and-media/press-kits/yara-birkeland-press-kit/ (accessed on 15 August 2022).
  7. NYK Conducts World’s First Maritime Autonomous Surface Ships Trial|NYK Line. Available online: https://www.nyk.com/english/news/2019/20190930_01.html (accessed on 26 August 2022).
  8. Mayflower Mayflower Autonomous Ship. Available online: https://mas400.com/ (accessed on 21 March 2022).
  9. ISO. ISO/PAS 21448: 2019 Road Vehicles—Safety of the Intended Functionality. Available online: https://www.iso.org/standard/70939.html (accessed on 21 October 2022).
  10. Mullins, G.E.; Stankiewicz, P.G.; Gupta, S.K. Automated Generation of Diverse and Challenging Scenarios for Test and Evaluation of Autonomous Vehicles. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017. [Google Scholar]
  11. Li, S.; Liu, J.; Negenborn, R.R. Distributed Coordination for Collision Avoidance of Multiple Ships Considering Ship Maneuverability. Ocean. Eng. 2019, 181, 212–226. [Google Scholar] [CrossRef]
  12. Wang, C.; Zhang, X.; Cong, L.; Li, J.; Zhang, J. Research on Intelligent Collision Avoidance Decision-Making of Unmanned Ship in Unknown Environments. Evol. Syst. 2019, 10, 649–658. [Google Scholar] [CrossRef]
  13. Pedersen, T.A.; Glomsrud, J.A.; Ruud, E.L.; Simonsen, A.; Sandrib, J.; Eriksen, B.O.H. Towards Simulation-Based Verification of Autonomous Navigation Systems. Saf. Sci. 2020, 129, 104799. [Google Scholar] [CrossRef]
  14. Imazu, H. Research on Collision Avoidance Manoeuvre; University of Tokyo: Tokyo, Japan, 1987. [Google Scholar]
  15. Zhou, Z.; Zhang, Y.; Wang, S. A Coordination System between Decision Making and Controlling for Autonomous Collision Avoidance of Large Intelligent Ships. J. Mar. Sci. Eng. 2021, 9, 1202. [Google Scholar] [CrossRef]
  16. Ahmed, Y.A.; Hannan, M.A.; Oraby, M.Y.; Maimun, A. COLREGs Compliant Fuzzy-Based Collision Avoidance System for Multiple Ship Encounters. J. Mar. Sci. Eng. 2021, 9, 790. [Google Scholar] [CrossRef]
  17. Johansen, T.A.; Perez, T.; Cristofaro, A. Ship Collision Avoidance and COLREGS Compliance Using Simulation-Based Control Behavior Selection with Predictive Hazard Assessment. IEEE Trans. Intell. Transp. Syst. 2016, 17, 3407–3422. [Google Scholar] [CrossRef] [Green Version]
  18. Chen, G. Research on Key Technologies for Ship Collision Avoidance Automation; Dalian Maritime university: Dalian, China, 2016. [Google Scholar]
  19. Stankiewicz, P.G.; Mullins, G.E. Improving Evaluation Methodology for Autonomous Surface Vessel COLREGS Compliance. In Proceedings of the OCEANS 2019-Marseille, Marseille, France, 17–20 June 2019. [Google Scholar]
  20. Huang, Y.; van Gelder, P.H.A.J.M. Collision Risk Measure for Triggering Evasive Actions of Maritime Autonomous Surface Ships. Saf. Sci. 2020, 127, 104708. [Google Scholar] [CrossRef]
  21. Liu, J.; Liu, K.; Yang, X.; Xiong, Y.; Yuan, Z.; Wu, X. Colregs-Based Multi-Ship Coordinated Collision Avoidance Decision Algorithm and Simulation Verification. Navig. China 2020, 43, 8–13. [Google Scholar]
  22. Henriksen, S. Automatic Testing of Maritime Collision Avoidance Methods with Sensor Fusion; Norwegian University of Science and Technology: Trondheim, Norway, 2018. [Google Scholar]
  23. Woerner, K. Multi-Contact Protocol-Constrained Collision Avoidance for Autonomous Marine Vehicles; Massachusetts Institute of Technology: Cambridge, MA, USA, 2016. [Google Scholar]
  24. Minne, P.K.E. Automatic Testing of Maritime Collision Avoidance Algorithms; Norwegian University of Science and Technology: Trondheim, Norway, 2017. [Google Scholar]
  25. Zhu, F.; Zhang, Y.; Gao, Z. Research on Ship Behaviors Based on Data Mining. J. Navig. China 2012, 35, 50–54. [Google Scholar]
  26. Alessandrini, A.; Mazzarella, F.; Vespe, M. Estimated Time of Arrival Using Historical Vessel Tracking Data. IEEE Trans. Intell. Transp. Syst. 2019, 20, 7–15. [Google Scholar] [CrossRef]
  27. Du, L.; Banda, O.A.V.; Goerlandt, F.; Kujala, P.; Zhang, W. Improving near Miss Detection in Maritime Traffic in the Northern Baltic Sea from Ais Data. J. Mar. Sci. Eng. 2021, 9, 180. [Google Scholar] [CrossRef]
  28. Bakdi, A.; Glad, I.K.; Vanem, E.; Engelhardtsen, Ø. AIS-Based Multiple Vessel Collision and Grounding Risk Identification Based on Adaptive Safety Domain. J. Mar. Sci. Eng. 2019, 8, 5. [Google Scholar] [CrossRef] [Green Version]
  29. Vagale, A.; Bye, R.T.; Osen, O.L. Evaluation of Path Planning Algorithms of Autonomous Surface Vehicles Based on Safety and Collision Risk Assessment. In Proceedings of the 2020 Global Oceans 2020: Singapore-U.S. Gulf Coast, Biloxi, MS, USA, 5–30 October 2020. [Google Scholar]
  30. Hwang, T.; Youn, I.H. Navigation Situation Clustering Model of Human-Operated Ships for Maritime Autonomous Surface Ship Collision Avoidance Tests. J. Mar. Sci. Eng. 2021, 9, 1458. [Google Scholar] [CrossRef]
  31. Bakdi, A.; Glad, I.K.; Vanem, E. Testbed Scenario Design Exploiting Traffic Big Data for Autonomous Ship Trials under Multiple Conflicts with Collision/Grounding Risks and Spatiooral Dependencies. IEEE Trans. Intell. Transp. Syst. 2021, 22, 7914–7930. [Google Scholar] [CrossRef]
  32. Bakdi, A.; Vanem, E. Fullest COLREGs Evaluation Using Fuzzy Logic for Collaborative Decision-Making Analysis of Autonomous Ships in Complex Situations. IEEE Trans. Intell. Transp. Syst. 2022, 23, 18433–18445. [Google Scholar] [CrossRef]
  33. Snijders, R.; Elrofai, H. Scenario Identification for Safety Assessment of Autonomous Shipping Using AIS Data. In Proceedings of the 15th International Naval Engineering Conference & Exhibitio, Delft, The Netherlands, 6–8 October 2020. [Google Scholar]
  34. Chen, P.; Huang, Y.; Mou, J.; van Gelder, P.H.A.J.M. Ship Collision Candidate Detection Method: A Velocity Obstacle Approach. Ocean. Eng. 2018, 170, 186–198. [Google Scholar] [CrossRef]
  35. Chen, P.; Huang, Y.; Mou, J.; van Gelder, P.H.A.J.M. Probabilistic Risk Analysis for Ship-Ship Collision: State-of-the-Art. Saf. Sci. 2019, 117, 108–122. [Google Scholar] [CrossRef]
  36. Zhang, J.; Zhang, D.; Yan, X.; Haugen, S.; Guedes Soares, C. A Distributed Anti-Collision Decision Support Formulation in Multi-Ship Encounter Situations under COLREGs. Ocean. Eng. 2015, 105, 336–348. [Google Scholar] [CrossRef]
  37. Zhang, W.; Goerlandt, F.; Montewka, J.; Kujala, P. A Method for Detecting Possible near Miss Ship Collisions from AIS Data. Ocean. Eng. 2015, 107, 60–69. [Google Scholar] [CrossRef]
  38. He, Y.; Jin, Y.; Huang, L.; Xiong, Y.; Chen, P.; Mou, J. Quantitative Analysis of COLREG Rules and Seamanship for Autonomous Collision Avoidance at Open Sea. Ocean. Eng. 2017, 140, 281–291. [Google Scholar] [CrossRef]
  39. Varas, J.M.; Hirdaris, S.; Smith, R.; Scialla, P.; Caharija, W.; Bhuiyan, Z.; Mills, T.; Naeem, W.; Hu, L.; Renton, I.; et al. MAXCMAS Project: Autonomous COLREGs Compliant Ship Navigation. In Proceedings of the 16th Conference on Computer Applications and Information Technology in the Maritime Industries (COMPIT), Cardiff, UK, 15–17 May 2017; Volume 5, pp. 454–464. [Google Scholar]
  40. Shenping, H. Analysis of Anti Collision Stages During Ships ’Encounter. Navig. China 2001, 2, 83–87. [Google Scholar]
  41. Zhang, M.; Montewka, J.; Manderbacka, T.; Kujala, P.; Hirdaris, S. A Big Data Analytics Method for the Evaluation of Ship-Ship Collision Risk Reflecting Hydrometeorological Conditions. Reliab. Eng. Syst. Saf. 2021, 213, 107674. [Google Scholar] [CrossRef]
  42. Wang, T.; Yan, X.P.; Wang, Y.; Wu, Q. Ship Domain Model for Multi-Ship Collision Avoidance Decision-Making with COLREGs Based on Artificial Potential Field. TransNav Int. J. Mar. Navig. Saf. Sea Transp. 2017, 11, 85–92. [Google Scholar] [CrossRef] [Green Version]
  43. Torben, T.R.; Glomsrud, J.A.; Pedersen, T.A.; Utne, I.B.; Sørensen, A.J. Automatic Simulation-Based Testing of Autonomous Ships Using Gaussian Processes and Temporal Logic. Proc. Inst. Mech. Eng. O J. Risk Reliab. 2022. [Google Scholar] [CrossRef]
Figure 1. The overall framework of mining the encounter scenarios from AIS data for testing autonomous collision avoidance algorithms.
Figure 1. The overall framework of mining the encounter scenarios from AIS data for testing autonomous collision avoidance algorithms.
Jmse 10 01588 g001
Figure 2. The typical diagram of different encounter situations.
Figure 2. The typical diagram of different encounter situations.
Jmse 10 01588 g002
Figure 3. Traffic flow on the Laotieshan water area (experimental area in black rectangle and ship trajectories plotted by blue solid line).
Figure 3. Traffic flow on the Laotieshan water area (experimental area in black rectangle and ship trajectories plotted by blue solid line).
Jmse 10 01588 g003
Figure 4. ‘head-on’ situation:(a) trajectory; (b) SOG; (c) COG; (d) RD; (e) TCPA; (f) DCPA; (g) scenario parameters aspects.
Figure 4. ‘head-on’ situation:(a) trajectory; (b) SOG; (c) COG; (d) RD; (e) TCPA; (f) DCPA; (g) scenario parameters aspects.
Jmse 10 01588 g004aJmse 10 01588 g004b
Figure 5. ‘multi-ship’ situation (a) trajectory; (b) SOG; (c) COG; (d) RD; (e) TCPA; (f) DCPA; (g) scenario parameters aspects.
Figure 5. ‘multi-ship’ situation (a) trajectory; (b) SOG; (c) COG; (d) RD; (e) TCPA; (f) DCPA; (g) scenario parameters aspects.
Jmse 10 01588 g005aJmse 10 01588 g005b
Figure 6. Distribution of relative distance at the start of different encounter scenarios. The numbers indicate how far away two ships are when the encounter situation is being initiated.
Figure 6. Distribution of relative distance at the start of different encounter scenarios. The numbers indicate how far away two ships are when the encounter situation is being initiated.
Jmse 10 01588 g006
Figure 7. Distribution of relative speed at the start of different encounter scenarios. The numbers indicate the approach speed of OS and TS at the encounter situation being initiated.
Figure 7. Distribution of relative speed at the start of different encounter scenarios. The numbers indicate the approach speed of OS and TS at the encounter situation being initiated.
Jmse 10 01588 g007
Figure 8. Distribution of duration time for different encounter scenarios.
Figure 8. Distribution of duration time for different encounter scenarios.
Jmse 10 01588 g008
Figure 9. Distribution of safety passing distance of different encounter scenarios. The numbers indicate the minimum relative distance between OS and TS during encounter scenarios.
Figure 9. Distribution of safety passing distance of different encounter scenarios. The numbers indicate the minimum relative distance between OS and TS during encounter scenarios.
Jmse 10 01588 g009
Figure 10. The initial 20 cases of each encounter generated randomly according to TS possibility distributions in real AIS data.
Figure 10. The initial 20 cases of each encounter generated randomly according to TS possibility distributions in real AIS data.
Jmse 10 01588 g010
Figure 11. The 900 cases of scenarios randomly generated according to AIS possibility distributions in Section 4.2, these encounters will be tested on a collision avoidance algorithm one by one, the relative distance and relative speed distributions of these simulated scenarios are shown in the following Figure 12 and Figure 13.
Figure 11. The 900 cases of scenarios randomly generated according to AIS possibility distributions in Section 4.2, these encounters will be tested on a collision avoidance algorithm one by one, the relative distance and relative speed distributions of these simulated scenarios are shown in the following Figure 12 and Figure 13.
Jmse 10 01588 g011
Figure 12. Distributions of initial relative distance for the 900 (300 each encounter) virtual scenario cases complying to the real AIS data in Figure 6. This indicates that our scenario generation program can create scenarios to simulate the real navigation situation in the Laotieshan water area.
Figure 12. Distributions of initial relative distance for the 900 (300 each encounter) virtual scenario cases complying to the real AIS data in Figure 6. This indicates that our scenario generation program can create scenarios to simulate the real navigation situation in the Laotieshan water area.
Jmse 10 01588 g012
Figure 13. Distributions of initial relative speed for the 900 (300 each encounter) virtual scenario cases complying to the real AIS data in Figure 7. This indicates that our scenario generation program can create scenarios to simulate the real navigation situation Laotieshan area.
Figure 13. Distributions of initial relative speed for the 900 (300 each encounter) virtual scenario cases complying to the real AIS data in Figure 7. This indicates that our scenario generation program can create scenarios to simulate the real navigation situation Laotieshan area.
Jmse 10 01588 g013
Figure 14. The main contributions of the previous work [15], delay reducing (left part) and parallel unlocking (right part). The figure is adapted with permission from Ref. [15]. 2022, Zhengyu Zhou.
Figure 14. The main contributions of the previous work [15], delay reducing (left part) and parallel unlocking (right part). The figure is adapted with permission from Ref. [15]. 2022, Zhengyu Zhou.
Jmse 10 01588 g014
Figure 15. Test samples in generated virtual scenarios of single target ship encounter. There are 3 types of encounters (heading on, crossing and overtaking), in each 3 cases of trajectory results are shown (case 1 is in larger graphs, case 2 and 3 in the smaller), DCPA, TCPA and rudder angle changings are also added.
Figure 15. Test samples in generated virtual scenarios of single target ship encounter. There are 3 types of encounters (heading on, crossing and overtaking), in each 3 cases of trajectory results are shown (case 1 is in larger graphs, case 2 and 3 in the smaller), DCPA, TCPA and rudder angle changings are also added.
Jmse 10 01588 g015
Figure 16. The distribution of passing distance by testing results.
Figure 16. The distribution of passing distance by testing results.
Jmse 10 01588 g016
Figure 17. The distribution of the total duration of encounters by testing results.
Figure 17. The distribution of the total duration of encounters by testing results.
Jmse 10 01588 g017
Figure 18. Test samples in generated virtual scenarios of 3 target ships encounter. There are 5 cases illustrated in the plots (case 1 in the larger graphs, other cases in the smaller graphs), in each case, the DCPA, TCPA and rudder angle changings are also added.
Figure 18. Test samples in generated virtual scenarios of 3 target ships encounter. There are 5 cases illustrated in the plots (case 1 in the larger graphs, other cases in the smaller graphs), in each case, the DCPA, TCPA and rudder angle changings are also added.
Jmse 10 01588 g018
Figure 19. Test samples in generated virtual scenarios of 5 target ships encounter. There are 5 cases illustrated in the plots (case 1 in the larger graphs, other cases in the smaller graphs), in each case, the DCPA, TCPA and rudder angle changings are also added.
Figure 19. Test samples in generated virtual scenarios of 5 target ships encounter. There are 5 cases illustrated in the plots (case 1 in the larger graphs, other cases in the smaller graphs), in each case, the DCPA, TCPA and rudder angle changings are also added.
Jmse 10 01588 g019
Figure 20. The successful examples on “parallel problem”.
Figure 20. The successful examples on “parallel problem”.
Jmse 10 01588 g020
Figure 21. The failed examples on “parallel problem”.
Figure 21. The failed examples on “parallel problem”.
Jmse 10 01588 g021
Table 1. Test scenario parameters.
Table 1. Test scenario parameters.
CategoryNameDescriptionUnit
GeneralThe duration time of the scenarioThe period between the beginning and end of the scenarios
Encounter situationsHead-on, overtaking, crossing
Encounter Stages no risk of collision, risk of collision, close-quarters situation and immediate danger stage
Own shipShip typeContainer ship, fishing ship, tanker, etc
LengthLength of shipm
SOGSpeed over groundkn
COGCourse over ground
Target shipShip typeContainer ship, fishing ship, tanker, etc.
LengthLength of shipm
Relative distanceDistance relative to OSnm
Relative courseCourse relative to OS
Relative speedSpeed relative to OSkn
Relative bearingBearing relative to OS
Safety passing distanceThe minimum relative distance to OS during the scenarionm
DCPAThe Distance to Closest Point of Approachingnm
TCPAThe Time to Closest Point of Approachingmin
Table 2. Ship types included in the experimental data.
Table 2. Ship types included in the experimental data.
Ship TypeNumberPercentage
Cargo ship293631.1%
Tanker5856.2%
Container ship6997.4%
Passenger ship660.7%
Fishing ship3303.5%
Other types482451.1%
total9440100%
Table 3. Number of testing scenarios.
Table 3. Number of testing scenarios.
Scenario TypeNumberPercentage
Overtaking744913.1%
Head-on1350.2%
Crossing49,36886.7%
Total56,952100%
Table 4. The virtual scenarios generated for head-on encounter.
Table 4. The virtual scenarios generated for head-on encounter.
Head-On Virtual Scenarios
Case No.Y (nm)X (nm)Heading (°)Velocity (kn)DCPA (nm)TCPA (min)
1−0.275.08179.4811.630.3014.08
20.515.91159.148.551.4918.87
3−0.145.96181.767.880.2219.99
4−0.135.37151.3615.761.5012.37
5−0.215.92208.9610.601.7317.04
296−0.175.83202.619.381.2717.98
2970.021.97197.2315.450.344.62
298−0.395.461803.19.720.4116.60
299−0.415.47207.6612.641.8514.08
300−0.325.52166.6011.560.3715.45
Table 5. The virtual scenarios generated for crossing encounter.
Table 5. The virtual scenarios generated for crossing encounter.
Crossing Virtual Scenarios
Case No.Y (nm)X (nm)Heading (°)Velocity (kn)DCPA (nm)TCPA (min)
12.442.7179.9717.230.6710.07
23.590.30105.5819.210.6211.15
31.570.86139.0525.991.522.89
42.281.68117.7722.001.726.95
53.023.3947.109.981.4214.13
2965.65−1.86131.7329.960.6014.51
2973.210.9169.5712.071.958.96
2984.86−1.89121.7725.441.1113.95
2991.783.6432.7514.830.4610.14
3002.441.9278.2415.610.139.22
Table 6. The virtual scenarios generated for overtaking encounter.
Table 6. The virtual scenarios generated for overtaking encounter.
Overtaking Virtual Scenarios
Case No.Y (nm)X (nm)Heading (°)Velocity (kn)DCPA (nm)TCPA (min)
1−0.29−1.643.4219.370.0910.62
2−1.03−0.9321.7912.730.5015.34
31.56−1.110.5212.941.6121.37
4−0.08−2.4113.5013.641.6323.47
50.79−0.95347.8614.340.0714.71
296−1.21−1.4522.3912.570.9919.14
2971.67−0.910.9513.121.7315.19
2981.23−1.947.5814.351.9116.48
299−0.04−2.3711.7111.721.9927.65
3000.20−1.618.9311.891.3122.63
Table 7. Test results in head-on scenarios.
Table 7. Test results in head-on scenarios.
Test Results (Head-On)
Case No.Passing Distance (nm)Total Duration (min)Near MissCollision
10.8614.0200
21.4918.8800
31.0720.4500
41.5012.3800
51.7317.0700
2961.2718.0000
2970.814.3500
2981.0216.6800
2991.8514.0800
3000.9817.1800
Table 8. Test results in crossing scenarios.
Table 8. Test results in crossing scenarios.
Test Results (Crossing)
Case No.Passing Distance (nm)Total Duration (min)Near MissCollision
10.889.3500
20.767.6800
31.522.9000
41.726.9700
51.4114.1500
2960.8710.6800
2971.958.9700
2981.1113.9700
2990.8810.0200
3000.847.9700
Table 9. Test results in overtaking scenarios.
Table 9. Test results in overtaking scenarios.
Test Results (Overtaking)
Case No.Passing Distance (nm)Total Duration (min)Near MissCollision
10.637.6800
20.4217.0200
31.6121.3200
41.6223.4800
50.7719.7500
2960.9919.3500
2971.7315.1700
2981.9116.4800
2991.9927.7300
3001.3122.6500
Table 10. Initial settings of failed scenarios.
Table 10. Initial settings of failed scenarios.
Failed Scenarios
Case No.Y (nm)X (nm)Heading (°)Velocity (kn)CollisionNear MissEncounter
74−4.51−0.7063.9427.4910crossing
79−2.161.65111.7425.4810crossing
142−3.690.3777.2223.4010crossing
211−3.65−1.5150.8932.0601crossing
128−0.13−0.506.2913.8201overtaking
2530.01−0.7911.3515.2001overtaking
270−0.06−0.55358.8214.6201overtaking
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhu, F.; Zhou, Z.; Lu, H. Randomly Testing an Autonomous Collision Avoidance System with Real-World Ship Encounter Scenario from AIS Data. J. Mar. Sci. Eng. 2022, 10, 1588. https://doi.org/10.3390/jmse10111588

AMA Style

Zhu F, Zhou Z, Lu H. Randomly Testing an Autonomous Collision Avoidance System with Real-World Ship Encounter Scenario from AIS Data. Journal of Marine Science and Engineering. 2022; 10(11):1588. https://doi.org/10.3390/jmse10111588

Chicago/Turabian Style

Zhu, Feixiang, Zhengyu Zhou, and Hongrui Lu. 2022. "Randomly Testing an Autonomous Collision Avoidance System with Real-World Ship Encounter Scenario from AIS Data" Journal of Marine Science and Engineering 10, no. 11: 1588. https://doi.org/10.3390/jmse10111588

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop