Next Article in Journal
Dynamic Modeling and Analysis on the Cable Effect of USV/UUV System Under High-Speed Condition
Previous Article in Journal
A Physics-Based Simulation of Fluid–Solid Coupling Scenarios in an Ocean Visual System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Collision Avoidance for Maritime Autonomous Surface Ships Based on Model Predictive Control Using Intention Data and Quaternion Ship Domain

Navigation College, Dalian Maritime University, Dalian 116026, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2025, 13(1), 124; https://doi.org/10.3390/jmse13010124
Submission received: 2 December 2024 / Revised: 7 January 2025 / Accepted: 8 January 2025 / Published: 11 January 2025
(This article belongs to the Section Ocean Engineering)

Abstract

:
With the increasing proportion of ships in logistics and the growing prosperity of traffic in maritime, negotiation and cooperative collision avoidance between ships is becoming more and more essential for navigational safety. This paper proposes a Model Predictive Control method that utilizes intention data of the target ship and a quaternion ship domain model to achieve collision avoidance while considering COLREGs, named IQMPC. Firstly, by utilizing the intention data of other ships, trajectories of the own ship and the target ship are well predicted to detect potential collision risks and take optimal avoidance actions in advance while risks exist. Secondly, the quaternion ship domain with its adjacent area is divided into four different parts to reflect the urgency of ship encounters. Collision risk evaluation functions are designed to determine avoidance actions conforming to COLREGs. Thirdly, several different ship encounter scenarios were simulated based on IQMPC to verify its capability.

1. Introduction

Based on the 2023 annual maritime accident investigation report by the European Maritime Safety Agency (EMSA), maritime traffic accidents between 2014 and 2022 resulted in a total of 6781 injuries and 604 fatalities. Human factors were identified as the most significant cause of maritime accidents, accounting for 59.1% of incidents. “Collision” was cited as the primary cause of fatalities, comprising 32.2% of the total deaths [1]. Actively developing Maritime Autonomous Surface Ships (MASS) and improving autonomous collision avoidance for ships are beneficial for reducing maritime accidents, ensuring navigation safety, and protecting the marine environment.
The International Regulations for Preventing Collisions at Sea (COLREGs) were proposed by the International Maritime Organization (IMO) in 1972 to safeguard maritime navigation safety and establish universally applicable international conventions for avoiding collisions between ships [2]. COLREGs explain encounter situations involving manned ships, but with the emergence of MASS, manned ships and MASS will coexist at sea for a long time. Therefore, researchers must consider how to design collision avoidance systems for MASS under the framework of COLREGs widely adopted by manned ships. COLREGs specify different responsibilities and actions for ships in various encounter situations [2]. However, there is no explicit quantitative description of when ships should take action or the urgency of the encounter situations in COLREGs. Many scholars have conducted extensive research on these issues, proposing concepts such as Time at Closest Point of Approach (TCPA) [3], Distance at Closest Point of Approach (DCPA) [4], and ship domain [5] to address these issues. Woerner [6] detailed the calculation methods of TPCA and DCPA that conformed to COLREGs. Minner [7] introduced a distance-only metric function for measuring safety values. Other works [8,9] also touched upon ship collision avoidance and action taking in recent years. Filip [10] focused on collision-avoidance action that shall be taken at an “ample time”, and made some progress by surveying practitioners and extracting their expert knowledge. As for ship domain, Fuji [11] firstly put forward the concept of ship domain in the maritime field, defining the area around a ship that should be clear. Goodwin [12] described a ship domain model for open waters based on radar simulator performance. Wang Ning [13] proposed a comprehensive fuzzy quaternion ship domain model considering various influencing factors using intelligent technology within a unified analytical framework. This model can dynamically adjust the shape of the domain to suit various water conditions. Zhang Liye et al. [14] proposed a ship domain named α-domain using the critical ship safety distance data. Silveira et al. [15] presented a polygonal ship domain method using AIS data. However, the aforementioned studies only describe encounter situations where other ships intrude into the domain of the own ship and construct collision risk assessment functions. When another ship is in the surrounding area with the own ship’s domain not being intruded upon, collision risk still exists due to ship operations and limitations. Therefore, a more comprehensive evaluation scheme for collision risk is necessary.
MASS has become a hotspot in the maritime field. Experts have proposed many algorithms for MASS autonomous collision avoidance, including: Artificial Potential Fields (APF), Velocity Obstacles (VO), and Model Predictive Control (MPC). APF, proposed by Khatib [16], conceptualized the influences of targets and obstacles on agent motion as artificial potential fields. Lv Hongguang [17] proposed an artificial potential field method based on prior path guidance that solved the unreachable and local optimal problem of APF. But it did not consider the COLREGs. VO can project moving objects into their velocity space and calculate velocity obstacle regions to evade obstacles [18]. Zheng H. et al. [19] and Yu D. et al. [20] also made new progress in the VO field, like using an UVO approach with a robust tube idea to handle the uncertainties, or combining the velocity obstacle and A* algorithms for anti-collision path planning. But most of the methods above do not consider the ship’s maneuvering characteristics in ship collision avoidance for encounter situations. Or the target ships will not change their headings during the voyage. These could be the limitations in certain navigation scenarios.
MPC is a very powerful method; it could consider multiple constraints, rolling optimization, and feedback correction. These advantages are very suitable for ship collision avoidance and solve the problems we mentioned above. We can employ a nonlinear ship dynamics model or compute an optimal ship trajectory though this method. Johansen et al. [21] utilized MPC in combination with COLREGs and ship dynamics to achieve autonomous collision avoidance. Hagen et al. [22] introduced a Scene-Based Model Predictive Control (SB-MPC) method by transition cost parameters to reduce the oscillatory motion of the own ship. Tengesdal et al. [23] conducted sea trials. He used a Kalman filter to calculate the probability of collision with nearby obstacles by Monte Carlo simulations and named this algorithm Probability SB-MPC. Some authors combined MPC with other methods [24,25]. But in these methods, the target ships keep their headings, the trajectories are straight lines, and this is not entirely in line with reality.
In recent years, with the development of communication technology [26,27], some collision avoidance studies based on MPC have begun to utilize the intention data of other ships [28,29]. By exchanging heading intention data between ships and knowing the trajectory, future collision risks can be predicted more accurately in advance. If risks exist, appropriate evasive action could be taken to reduce the probability of collision in the future. However, the expression of the severity of encounter situations is not clear enough in the methods we mentioned above. Collision risks generated by calculating multiple control commands at each sampling moment can significantly increase the computation burden, especially when the model and the scene are complex. We need to make good use of intention data in ship collision avoidance.
To address these challenges, this paper proposes a collision avoidance method based on MPC, utilizing a 3 degrees of freedom (DOF) surface ship dynamics model and intention data from the target ship to predict potential collision risks. Additionally, a quaternion ship domain with its adjacent area is employed to describe the urgency of encounter situations, ensuring that ships’ avoidance actions comply with COLREGs and could address immediate danger encounter situations effectively. By designing risk assessment functions, optimal collision avoidance behaviors are determined to reduce the probability of future collision accidents.
The merits of this paper are as follows:
(1)
Intention data of the target ships are included to predict their trajectories more accurately, which is beneficial to make more appropriate collision avoidance actions. The own ship predicts both its and the target ship’s motion trajectories, and calculates whether there is collision risk between them in the prediction horizon. If risk exists, the own ship takes avoidance action in advance. Compared to traditional collision avoidance algorithms which design the target ship trajectories based on a steady course, this method considers the intention data of the target ships, understanding the variations of their trajectories, which better aligns with reality.
(2)
Encounter situations are categorized into different urgency levels. A quaternion ship domain with its adjacent area is constructed into a safe zone, close-quarter avoidance zone, emergency avoidance zone, and prohibited zone. This distinguishes encounter situations with or without risks that reduce the computational burden of the collision risk generated by multiple control commands at each sampling moment. Moreover, a collision risk assessment function is designed to obtain an optimal heading offset for collision avoidance in different close-quarter situations and immediate danger situations. The own ship’s avoidance action complies with the COLREGs under close-quarter situations. When in immediate danger situations, the own ship could also exhibit good performance.
(3)
IQMPC is implemented for autonomous collision avoidance. IQMPC can calculate an optimal trajectory based on the intention data of the target ship, employing a nonlinear ship dynamics model and operational constraints. We constructed various encounter scenarios of head-on situations for simulation: the target ship in a close-quarter avoidance zone or an emergency avoidance zone, with or without the target ship’s intention data scenarios. And we also simulated the crossing and overtaking situations.
The main contents of this paper are as follows: Section 2 introduces the ship dynamics model and COLREGs considered in this paper. Section 3 presents the intention data of the target ship, the categorization of urgency levels and the principles of the algorithm. Section 4 shows the simulations of autonomous collision avoidance using IQMPC.

2. Ship Dynamics Model and COLREGs

2.1. Ship Dynamics Model

For this thesis, a 3-DOF model is used as Equation (1). x, y, and ψ are the position and heading of the ship in the North–East–Down (NED) coordinate frame:
x ˙ = u cos ψ v sin ψ y ˙ = u sin ψ + v cos ψ ψ ˙ = r u ˙ = m 22 m 11 v r d 11 m 11 u + τ u m 11 v ˙ = m 11 m 22 u r d 22 m 22 v r ˙ = m 11 m 22 m 33 u v d 33 m 33 r + 1 m 33 τ r ,
where x ˙ , y ˙ , ψ ˙ represent the derivative with respect to time. u , and v are the speed in the surge and sway direction. r is the yaw rate in the body-fixed coordinate frame. u ˙ , v ˙ , and r ˙ represent the derivative with respect to time. m 11 , m 22 , and m 33 represent the additional mass of the ship. d 11 , d 22 , and d 33 are the hydrodynamic damping of the ship separately. τ u and τ r represent the force in the X-axis and Z-axis in Figure 1.

2.2. COLREGs

In COLREGs, the encounter situations between two ships can be classified into: head-on or overtaking. Rule 13, Rule 14 and Rule 15 explain the situation of overtaking in Figure 2a, crossing in Figure 2b and head-on in Figure 2c in COLREGs [2]. Ships in different positions need to bear different avoidance responsibilities in Rule 16 and Rule 17. The method is designed based on these rules.
Rule 2 emphasizes the need to consider all dangers of navigation and collision, which may require departing from the rules to avoid immediate danger situations. This means ships could violate their duty to avoid collisions in immediate danger situations.

3. Collision Avoidance Using Intention Data and Quaternion Ship Domain Based on MPC

3.1. Intention Data of the Target Ship

In previous studies, Johansen et al. [21] and Hagen et al. [22] utilized straight-line predictions for the future states of the target ships within the prediction horizon. However, only considering straight-line prediction cannot meet the needs of the target ships that change their trajectories during navigation. This paper implements trajectory prediction based on route exchanges similar to Akdag et al. [23], utilizing the intention data of the target ship to enhance navigation safety. Assuming the target ship’s trajectory is shared via a communication system, the own ship can predict the future states of the target ship based on its speed and heading values from the intention data. This allows the own ship to assess whether there is a risk of collision while maintaining its heading in the prediction horizon. If there is no risk in the future, the own ship continues to maintain its heading; if risk exists, the own ship adopts heading offsets to avoid collision at this moment. The formula for calculating the future trajectory of the target ship is as follows:
x t s i p r e ( t ) = x t s i n i + c o s ( ψ t s ) v t s t y t s i p r e ( t ) = y t s i n i + s i n ( ψ t s ) v t s t v t s = ( v t s y ) 2 + ( v t s x ) 2 ,
where ( x t s i n i , y t s i n i ) indicates the current position of target ship at time t , v t s x is the velocity component of the target ship along the X-axis, v t s y is the velocity component of the target ship along the Y-axis, v t s is the resultant velocity of the target ship, ψ t s is the heading angle of the target ship, and ( x t s i p r e t , y t s i p r e ( t ) ) is the position of the target ship during the prediction horizon.
Figure 3 illustrates the target ship’s trajectory navigating along a zigzag course, with a change in heading at t + 2. If at time t the own ship is unaware of the target ship’s intention when it changes course at t + 2, the own ship will predict the future trajectory of the target ship based on a straight-line trajectory. This may lead to an erroneous collision avoidance decision due to the prediction of collision risk. However, if the own ship is aware of the target ship’s intention data when it changes course at t + 2, the own ship predicts that there is no collision risk between the ships in the future, and there is no need to alter its heading. By utilizing intention data of the target ship to predict their trajectories, unnecessary evasive actions by the own ship can be avoided. Trajectory prediction based on intention data exchanging offers advantages over straight-line prediction.

3.2. Safety Zone Division

Considering the characteristics of collision avoidance in open water, the quaternion ship domain and its adjacent area is selected as the basis for the collision risk model to describe the urgency level. The quaternion ship domain considers COLREGs, as well as factors such as good seamanship, ship maneuverability, ship length and speed, making it more suitable for ship collision avoidance. Taking the center of the own ship as the origin, the own ship coordinate system is established with the starboard beam direction as the positive Y-axis direction and the bow direction as the positive X-axis direction. In the own ship coordinate system, the boundary equation of the quaternion ship domain is f c e x , y :
f c e x , y = 2 y 1 + s g n y R s t a r b 1 s g n y R p o r t 2 + 2 x 1 + s g n x R f o r e 1 s g n x R a f t 2 ,
where R f o r e , R a f t , R s t a r b and R p o r t are the radius length of the quaternion ship domain in the positive and negative directions of the Y-axis and the positive and negative directions of the X-axis. s g n x and s g n y are the symbol judgment functions. In the quaternion ship domain, the domain range presents a distribution where the front is larger than the back, and the right is larger than the left as in Figure 4. This is consistent with the common view in maritime practice that the danger ahead of a ship is greater than behind it, and the danger on the starboard side of a ship is greater than on the port side. Moreover, this aligns well with COLREGs and is more in line with actual situations. The Equations (3)–(5) refer to Wang Ning [13]. The radius of the quaternion ship domain R f o r e , R a f t , R s t a r b and R p o r t are shown as:
R f o r e = 1 + 1.34 k A D 2 + k D T 2 2 L R a f t = 1 + 0.67 k A D 2 + k D T 2 2 L R s t a r b = 0.2 + k A D L R p o r t = 0.2 + 0.75 k A D L ,
where L is the length of the ship, k A D is the gain coefficient of the advance (AD) in the ship’s turning circle, and k D T is the gain coefficient of the tactical diameter (DT). The coefficients k A D and k D T can be estimated using empirical formulas based on the size and speed of the ship:
k A D = A D L = 10 0.3591 lg V i o s + 0.0952 k D T = D T L = 10 0.5441 lg V i o s 0.0795 ,
where V i o s is the resultant speed of the own ship at time t. In Equation (5), the higher the speed of own ship, the greater the value of k A D or k D T . Similarly, the main determining variables L, k A D and k D T in Equation (4) affect R f o r e , R a f t , R s t a r b and R p o r t . This also indicates that the size of the quaternion ship field increases or decreases with increasing or decreasing ship size and speed. The quaternion ship field is dynamically changing based on the size of the ship and speed changes.
To ensure the two ships can pass at a safe distance under different encounter situations, the own ship’s domain and its adjacent areas are set as follows: prohibited zone, emergency avoidance zone, close-quarter avoidance zone, and safety zone to describe the urgency of encounters:
Prohibited zone: The red area in Figure 4. Centered on the own ship’s quaternion ship domain, this area prohibits the entry of any other ships. Otherwise, a collision will occur.
Emergency avoidance zone: The yellow area in Figure 4. Centered on the own ship’s quaternion ship domain, it expands 1.5 times the domain radius and does not overlap with the prohibited zone. When the target ship appears in this area, there is a higher risk of collision between the ships, constituting an immediate danger situation. If the own ship is the stand-on ship, it can still take evasive action to reduce the risk of collision, ensuring navigation safety as the primary goal.
Close-quarter avoidance zone: The blue area in Figure 4. Centered on the own ship’s quaternion ship domain, expanding two times the domain radius, and does not overlap with the emergency avoidance zone. When the target ship appears in this area, the own ship’s avoidance responsibility is determined based on the target ship’s position according to COLREGs, while constantly observing the target ship’s actions.
Safety zone: The green area in Figure 4. and the outward expansion area. When the target ship appears outside the close-quarter avoidance zone, there is no collision risk between the ships.
The radius of the security domain, d d , needs to be determined based on the position of the target ship in Figure 5. d is the distance between the ships and v t o is the relative speed of the ships.
According to Woerner [6], The relative bearing angle β 0 ° , 360 ° is calculated as Equation (6):
β = 360 ° ψ T ψ , i f   ψ T ψ < 0 ° ψ T ψ 360 ° , i f   ψ T ψ 360 ° ψ T ψ ,   o t h e r w i s e ,
where ψ ( 180 ° , 180 ° ] is the course angle of the target ship, and the course is 0° when the ship points in the direction of due north. The true azimuth of the ship concerning the target ship   ψ T [ 180 ° , 180 ° ) is calculated as:
  ψ T = a t a n 2 y t s y o s , x t s x o s ,
The relative contact angle α [ 0 ° , 360 ° ) is calculated as:
α = 360 ° ψ O ψ i , i f ψ O ψ i < 0 ° ψ O ψ i 360 ° , i f ψ O ψ i 360 ° ψ O ψ i , o t h e r w i s e ,
where ψ i ( 180 ° , 180 ° ] is the course angle of the target ship, and the course is 0° when the ship points in the direction of due north. The true azimuth of the ship concerning the target ship   ψ O [ 180 ° , 180 ° ) is calculated as:
  ψ O = a t a n 2 y o s y t s , x o s x t s ,
where ( x o s , y o s ) is the own ship’s position and ( x t s , y t s ) is the target ship’s position. The overlapping part of the straight line with the quaternion ship domain can determine the radius of the safety domain d d i . The radius of the target ship domain d t s is a circle, and the encounter safe distance is:
d i s a f e ( t ) = 2 d d t + d t s ,

3.3. Collision Risk Evaluation and Prediction

The own ship predicts its states and the target ship’s states at each time step T p , based on the ships’ courses and speeds at moment t 0 , where N is the prediction horizon length. Each time step t P t 0 , P t 0 = t 0 + T p , t 0 + 2 T p , t 0 + 3 T p , , t 0 + N . If the target ship appears in the safe zone in the prediction horizon in Figure 6, the distance between the two ships d i c p r e t   > d i s a f e ( t ) ; if there is no risk, the own ship keeps its course. x o s i c p r e t , y o s i c p r e ( t ) is the state of the own ship while keeping its course during the prediction horizon.
d i c p r e t = y t s i p r e ( t ) y o s i c p r e ( t ) 2 + x t s i p r e ( t ) x o s i c p r e ( t ) 2 ,
If the distance between two ships d i c p r e t <   d i s a f e ( t ) is within the prediction horizon, there will be a risk of collision. Because of the target ship’s different positions and speeds, it may appear in the emergency avoidance zone or the close-quarter avoidance zone of the own ship. The urgency of the situation also varies. The own ship selects different collision risk evaluation functions based on the zone in which the target ship appears within the prediction horizon.
d i p r e t = y t s i p r e ( t ) y o s i p r e ( t ) 2 + x t s i p r e ( t ) x o s i p r e ( t ) 2 ,
where ( x o s i p r e t , y o s i p r e ( t ) ) is the state of the own ship while changing course and d i p r e t   is the prediction of the distance between the ships for each time step. If the target ship only appears in the close-quarter avoidance zone, collision risk evaluation function Equation k s t t o p d i s a f e ( t ) d i p r e t q is used; if the target ship appears in the emergency avoidance zone, collision risk evaluation function Equation 1 t t o p 1 d i p r e t q is used.
R i s t = k s t t o p d i s a f e ( t ) d i p r e t q , i f   1.5 d d t < d i c p r e t < d i s a f e t 1 t t o p 1 d i p r e t q , i f   1.5 d d t > d i c p r e t ,
where p determines the importance of the time before the collision and 1 / t t o p shows that the risk of collision in the near future is greater than in the distant future. q determines the importance of the distance between two ships and d i s a f e t increases as the speed of the own ship increases. COLREGs are considered in the equation, taking into account the avoidance responsibilities of the own ship in head-on situations when the target ship appears in the close-quarter avoidance zone. A penalty coefficient k(s) is designed to penalize violations of Rules 14. The s represents different scenarios for choosing different heading offsets. Equation (14) defines the encounter situation between two ships.
o v e r t a k i n g = 112.5 ° < α < 247.5 °   & &   v t s < v o s c r o s s i n g = 5 ° < β < 112.5 ° h e a d _ o n = 5 ° < β < 5 ° & & 5 ° < α < 5 ° ,
k s = 2,2 , 2,1 , 1,1 ,
When the target ship appears in the emergency avoidance zone in the prediction horizon, the risk of collision between the two ships is high. So, the own ship needs to ensure the maximum distance between the ships in a short time. In consideration of this situation, the avoidance action temporarily violates Rules 14 to ensure safety.We define a set of finite heading offset ψ c a = [ 35 ° , 30 ° , 25 ° , 25 ° , 30 ° , 35 ° ] . During the prediction horizon, the predicted states are based on the same heading offset as Figure 7. Maintaining a consistent avoidance angle enhances safety by providing clear and predictable navigation intentions to other ships. Meanwhile, it can reduce the computational burden of collision risk generated by multiple control commands at each sampling moment. By calculating the collision risk R i s ( t ) between ships under different heading offset values within the prediction horizon, the optimal avoidance trajectory H i s t o with the minimum risk is determined, thus selecting the best avoidance course ψ c o l .
H i s ( t o ) = min ψ col t o + T p t o + N R i s t ,

3.4. IQMPC Collision Avoidance Algorithm

MPC is a control strategy used in engineering to optimize the performance of dynamic systems over a finite future time horizon. The basic principle involves predicting the future behavior of the system using a dynamic model, then computing the optimal control actions that minimize a predefined cost function. The system could adhere to some constraints like physical limitations or operational boundaries. MPC continuously repeats this process over time, updating predictions and control actions based on real-time measurements.
IQMPC is a method based on MPC to achieve ship collision avoidance. IQMPC can consider the real-time states of the ship and the intention data of the target ship. By predicting the ship’s trajectory over a future time span, it assists the ship in making more precise avoidance decisions while considering the constraints of inputs. From Equation (16) we get ψ c o l , and we use IQMPC to achieve collision avoidance.
The core of IQMPC is the optimal control problem, which is expressed as:
min τ r J = t o t o + N 1 ( η t η d ( t ) Q 2 + τ r R 2 ) d t + η t + N η d ( t ) Q f 2 s . t . η t 0 = η i n i , η ˙ t = F η t , τ r , τ r m i n τ r τ r m a x ,
where J ( · ) is the cost function, the own ship’s state at time t is η t = ψ t , r ( t ) T ,   η d ( t ) is the desired states of the own ship, Q represents the state error weight matrix, R represents the input error weight matrix, and Q f represents the terminal error weight matrix. η i n i is the initial states of the own ship at time t o , F ( · ) is the ship dynamics model as Equation (1), and τ r m i n , τ r m a x are the constraints of the inputs. τ r is the decision variable to achieve ship collision avoidance. The speed of the own ship during a collision is considered to be a constant value, so τ u is designed as a constant value. The own ship’s target course is ψ g ( t ) . If risk does not exist, the actual desired course is ψ d ( t ) = ψ g ( t ) . The own ship keeps its course to move to its goal. If risk exists, the actual desired course is ψ d ( t ) = ψ g ( t ) + ψ c o l ( t ) . The own ship needs to take course steering to avoid a collision.
The principles of the collision avoidance algorithm in this paper are illustrated in Figure 8. If the own ship reaches its goal position ( x g , y g , ψ g ) , the algorithm ends.

4. Simulation

As we mentioned in Section 2.2, the aporia of ship collision avoidance at sea is the head-on situation. So, this article validated the effectiveness of the designed ship collision avoidance algorithm by constructing head-on encounter scenarios. We also simulated the situations of crossing and overtaking. In the simulation scenarios, the own ship is controlled by IQMPC. The own ship and the target ship have their different initial positions, speeds and goals. They will meet as head-on, crossing and overtaking scenarios, but in different situations. All simulation experiments are based on MATLAB R2023a. Ship length L = 2   m , m 11 = 12 × 10 2 , m 22 = 172.9 , m 33 = 636 × 10 2 , d 11 = 215 , d 22 = 97 , d 33 = 802 . d t s = 3   m , T p = 2   s , N = 10   s . Simulation length T = 60   s . τ r 1000,1000 , Q = d i a g ( 2 × 10 5 , 10 ) , Q f = d i a g (   5 × 10 6 , 10 ) , R = d i a g ( 3 × 10 3 ) . p = 0.5 , q = 4 .

4.1. Close-Quarter Situation

In Figure 9a, the own ship’s initial position is (−10, −10), its goal is (140, 140) and its speed is 3 m/s. The target ship’s initial position is (117, 117), its goal is (−3, −3) and its speed is 2.8 m/s. The own ship and the target ship will meet in the close-quarter avoidance zone as the head-on situation in Figure 9a. This scenario is designed to verify the algorithm in close-quarter situations. The own ship takes a 35° heading offset in Figure 9b, and passes on the port side of the target ship.
When there is no risk between the ships, the own ship keeps moving to its goal. The two ships maintain good distances during the encounter as in Figure 10. The own ship’s avoidance behaviors obey COLREGs for head-on situations. The variation of u is caused by the course changes, which accords with the actual ship dynamic characteristics. The ship’s safe domain is determined by the target ship’s position as in Figure 5.

4.2. Immediate Danger Situation

In Figure 11a, the own ship’s initial position is (−10, −10), its goal is (130, 130) and its speed is 3 m/s. The target ship’s initial position is (120, 120), its goal is (0, 0) and its speed is 2.8 m/s. Ships will meet in the emergency avoidance zone in immediate danger as in a head-on situation. This scenario is designed to verify the algorithm in immediate dangerous situations. At the same time, we make a comparison with close-quarter situations in Section 4.1. The own ship predicts that taking a −35° heading offset makes the optimal choice for collision avoidance, and it takes this action in Figure 11b. When there is no risk between the ships, the own ship keeps moving to its goal.
When two ships meet, the own ship predicts that they will form an immediate danger situation. The own ship chooses to execute the collision avoidance behavior that constitutes the maximum distance between the two ships. The actions obey Rule 2 in COLREGs. The own ship passes on the starboard side of the target ship with a good distance as in Figure 12.

4.3. With or Without Intention Data

In Figure 13 and Figure 14, the own ship’s initial position is (−10, −10), its goal is (140, 140) and its speed is 3 m/s. The target ship’s initial position is (117, 117), its goal is (−3, 63) and its speed is 2.8 m/s. The target ship will change course at a certain position (69, 69). If the own ship is unaware of the target ship’s change in direction and still predicts the target ship’s trajectory based on its original course, it may mistakenly assess a collision risk between the two ships in future moments, prompting the own ship to move starboard for avoidance as in Figure 13.
In reality, when the target ship’s trajectory changes, there is no collision risk between ships. So, the own ship with intention data does not take avoidance action as in Figure 14. The own ship keeps its course, moving to its goal.
Therefore, comparing the two scenarios in Figure 13 and Figure 14, ship avoidance behavior utilizing intention data is more in line with reality. The own ship’s states and the target ship’s states are shown in Figure 15. By using the intention data, unnecessary collision avoidance behaviors have been reduced. In actual navigation, this method demonstrates higher navigation efficiency.

4.4. Overtaking

In Figure 16a, the own ship’s initial position is (−10, −10), its goal is (140, 140) and its speed is 3 m/s. The target ship’s initial position is (20, 20), its goal is (44, 44) and its speed is 0.6 m/s. The target ship’s speed is lower than the own ship’s speed, and the own ship is coming behind the target ship. Ships will meet in the close-quarter avoidance zone as an overtaking situation. The target ship is being overtaken. The own ship should take action to avoid a collision as in Figure 16b. When there is no risk between the ships, the own ship keeps moving to its goal. The two ships keep a good distance during the encounter as in Figure 17. The own ship’s behaviors obey the COLREGs of an overtaking situation.

4.5. Crossing

In Figure 18a, the own ship’s initial position is (−10, −10), its goal is (140, 140) and its speed is 3 m/s. The target ship’s initial position is (−8, 98), its goal is (−22, 112) and its speed is 2.8 m/s. Ships will meet in the close-quarter avoidance zone as a crossing situation. The own ship is the give-away ship, and it takes action to avoid a collision as in Figure 18b. When there is no risk between the ships, the own ship keeps moving to its goal. The two ships keep a good distance during the encounter as in Figure 19. The ship using IQMPC knows its duty and the actions are obeying the COLERGs in different encounter situations.

5. Conclusions

This article has proposed an IQMPC collision avoidance method using intention data and quaternion ship domain. We aimed to categorize the encounter situations into different urgency levels through a quaternion ship domain with its adjacent area. We have designed a collision avoidance cost function to comply with COLREGs for different situations, and used IQMPC to compute an optimal trajectory for ship collision avoidance and position tracking. The ship’s collision avoidance behaviors follow the COLREGs. The method can also deal with immediate danger situations. The simulation results of different encounter situations show that the ships keep good states during encounters. In the simulations, the setting of sampling time affects the judgment of IQMPC in close-quarter situations and immediate danger situations. This method demonstrates the advantages of utilizing intention data. The size of the predicted horizon affects the ship’s estimation of future situations, which in turn affects the ship’s judgment, as well as the efficiency and computational burden of the algorithm. The performance of this method in different encounter situations meets our expectations for developing such a useful collision avoidance method
Due to unclear limitations on the conditions that constitute immediate danger in the COLREGs, determining whether a situation between two meeting ships poses an immediate danger often requires the captain’s experience. So, the expansion factor for distinguishing the emergency zone and close-quarter zone for MASS needs further experiments to obtain the best value. We focused on the main technical and operational requirements from COLREGs. Other requirements, like light and sound signals, are not considered in this method. Meanwhile, we do not consider the wind, ocean current forces, or waves in this study. We intend to consider these factors in future research. The conception of IQMPC is appropriate for overtaking and crossing encounter situations, but we mainly focused on head-on situations. We will enrich the encounter scenes in the upcoming work and explore multi-ship encounter situations in the future.

Author Contributions

Conceptualization, H.Z.; methodology, H.Z. and Q.S.; software, H.Z.; validation, H.Z., Q.S. and Y.S.; formal analysis, H.Z. and Y.S.; writing—original draft preparation, H.Z.; writing—review and editing, Y.C.; supervision, Y.C.; funding acquisition, Y.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Dalian Maritime University Navigation College First-class Interdisciplinary Research Project, grant number 2023JXA02.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. EMSA. Annual Overview of Marine Casualties and Incidents. 2023, pp. 7–31. Available online: https://www.emsa.europa.eu/publications/item/5052-annual-overview-of-marine-casualties-and-incidents.html (accessed on 23 May 2024).
  2. International Maritime Organization. International Regulations for Preventing Collisions at Sea; International Maritime Organization: London, UK, 1972. [Google Scholar]
  3. Li, B.; Pang, F. An approach of vessel collision risk assessment based on the D–S evidence theory. Ocean Eng. 2013, 74, 16–21. [Google Scholar] [CrossRef]
  4. Chen, G.; Huang, Z.; Wang, W.; Yang, S. A novel dynamically adjusted entropy algorithm for collision avoidance in autonomous ships based on deep reinforcement learning. J. Mar. Sci. Eng. 2024, 12, 1562. [Google Scholar] [CrossRef]
  5. Zhang, J.; Fu, Z. A review of ship collision avoidance system. Sci. Technol. Eng. 2019, 19, 32–39. [Google Scholar]
  6. Woerner, K. Multi-Contact Protocol-Constrained collision avoidance for autonomous marine vehicles. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 2016; pp. 294–301. [Google Scholar]
  7. Minne, P.K.E. Automatic Testing of Maritime Collision Avoidance Algorithms. Master’s Thesis, Norwegian University of Science and Technology, Trondheim, Norway, 2017. [Google Scholar]
  8. Yim, J.; Park, D. Modeling evasive action to be implemented at the minimum distance for collision avoidance in a give-way situation. Ocean Eng. 2022, 263, 112210. [Google Scholar] [CrossRef]
  9. Gil, M. A concept of critical safety area applicable for an obstacle-avoidance process for manned and autonomous ships. Reliab. Eng. Syst. Saf. 2021, 214, 107806. [Google Scholar] [CrossRef]
  10. Filip, Z.; Mateusz, G.; Jakub, M. Declarative ship arenas under favourable conditions. Ocean Eng. 2025, 316, 119927. [Google Scholar]
  11. Fujii. Traffic capacity. J. Navig. 1971, 24, 543–552. [Google Scholar] [CrossRef]
  12. Goodwin, E. A statistical study of ship domains. J. Navig. 1975, 28, 328–344. [Google Scholar] [CrossRef]
  13. Wang, N. A novel analytical framework for dynamic quaternion ship domains. J. Navig. 2012, 66, 265–281. [Google Scholar] [CrossRef]
  14. Zhang, L.; Meng, Q. Probabilistic ship domain with applications to ship collision risk assessment. Ocean. Eng. 2019, 186, 106130. [Google Scholar] [CrossRef]
  15. Silveira, P.; Teixeira, A.P.; Soares, C.G. A method to extract the Quaternion Ship Domain parameters from AIS data. Ocean. Eng. 2022, 257, 111568. [Google Scholar] [CrossRef]
  16. Khatib, O. Real-Time obstacle avoidance for manipulators and mobile robots. Int. J. Robot. Res. 1986, 5, 90–98. [Google Scholar] [CrossRef]
  17. Lv, H. Research on Multi Vessel Collision Avoidance Decision and Path Planning Based on Electronic Charts. Ph.D. Thesis, Dalian Maritime University, Dalian, China, 2019. [Google Scholar]
  18. Kuwata, Y.; Wolf, M.T.; Zarzhitsky, D. Safe maritime autonomous navigation with COLREGS, using Velocity Obstacles. IEEE J. Ocean. Eng. 2014, 39, 110–119. [Google Scholar] [CrossRef]
  19. Zheng, H.; Zhu, J.; Liu, C.; Dai, H. Regulation aware dynamic path planning for intelligent ships with uncertain velocity obstacles. Ocean Eng. 2023, 278, 114401. [Google Scholar] [CrossRef]
  20. Yu, D.; Roh, M. Method for anti-collision path planning using velocity obstacle and A* algorithms for maritime autonomous surface ship. Int. J. Nav. Archit. Ocean Eng. 2024, 16, 100586. [Google Scholar] [CrossRef]
  21. 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]
  22. Hagen, I.B.; Kufoalor, B.K.M.; Brekke, E.M. MPC-based collision avoidance strategy for existing marine vessel guidance systems. In Proceedings of the 2018 IEEE International Conference on Robotics and Automation, Brisbane, QLD, Australia, 21–25 May 2018; pp. 7618–7623. [Google Scholar]
  23. Tengesdal, T.; Brekke, E.F.; Johansen, T.A. On collision risk assessment for autonomous ships using Scenario-Based-MPC. IFAC World Congr. 2020, 53, 14509–14516. [Google Scholar]
  24. Zhu, M.; Skulstad, R.; Zhao, L.; Zhang, H. MPC-based path planning for ship collision avoidance under COLREGS. In Proceedings of the 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Prague, Czech Republic, 9–12 October 2022; pp. 930–1935. [Google Scholar]
  25. Tang, Y.; Chen, L.; Mou, J.; Chen, P. Robust Model Predictive Control for Ship Collision Avoidance under Multiple Uncertainties. IEEE Trans. Transp. Electrif. 2024, 10, 10374–10387. [Google Scholar] [CrossRef]
  26. Liu, C.; Chu, X.; Wu, W.; Li, S. Human–machine cooperation research for navigation of maritime autonomous surface ships: A review and consideration. Ocean Eng. 2022, 246, 110555. [Google Scholar] [CrossRef]
  27. Zhang, X.; Wang, C.; Jiang, L. Collision-avoidance navigation systems for Maritime Autonomous Surface Ships: A state of the art survey. Ocean Eng. 2021, 235, 109380. [Google Scholar] [CrossRef]
  28. Kjerstad, K. Collision avoidance system for ships utilizing other vessels’ intentions. Master’s Thesis, Norwegian University of Science and Technology, Trondheim, Norway, 2020. [Google Scholar]
  29. Akdağ, M.; Fossen, T.I.; Johansen, T.A. Collaborative collision avoidance for autonomous ships using informed Scenario-Based Model Predictive Control. IFAC Pap. 2022, 55, 249–256. [Google Scholar] [CrossRef]
Figure 1. The 3-DOF model for a surface ship.
Figure 1. The 3-DOF model for a surface ship.
Jmse 13 00124 g001
Figure 2. Different situations. (a) Overtaking, (b) crossing, (c) head-on.
Figure 2. Different situations. (a) Overtaking, (b) crossing, (c) head-on.
Jmse 13 00124 g002
Figure 3. The own ship’s prediction for the target ship without intention, considering that the target ship keeps a straight-line trajectory (fake). Comparing with the real trajectory of the target ship (red), the ship changes course at t + 2.
Figure 3. The own ship’s prediction for the target ship without intention, considering that the target ship keeps a straight-line trajectory (fake). Comparing with the real trajectory of the target ship (red), the ship changes course at t + 2.
Jmse 13 00124 g003
Figure 4. Ship domain with its adjacent area.
Figure 4. Ship domain with its adjacent area.
Jmse 13 00124 g004
Figure 5. The relative bearing angle β and the radius of the safe domain in red.
Figure 5. The relative bearing angle β and the radius of the safe domain in red.
Jmse 13 00124 g005
Figure 6. Different encounter situations for the ships with the prediction that the target ship (red) will appear in different zones of the own ship (blue), when the own ship keeps its current course in the prediction horizon at t 0 .
Figure 6. Different encounter situations for the ships with the prediction that the target ship (red) will appear in different zones of the own ship (blue), when the own ship keeps its current course in the prediction horizon at t 0 .
Jmse 13 00124 g006
Figure 7. Prediction of the trajectory if the own ship changes its course. The own ship is blue, the target ship is red.
Figure 7. Prediction of the trajectory if the own ship changes its course. The own ship is blue, the target ship is red.
Jmse 13 00124 g007
Figure 8. Algorithm overview.
Figure 8. Algorithm overview.
Jmse 13 00124 g008
Figure 9. Head-on situation simulation, when the ships meet in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Figure 9. Head-on situation simulation, when the ships meet in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Jmse 13 00124 g009
Figure 10. Head-on situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Figure 10. Head-on situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Jmse 13 00124 g010
Figure 11. Head-on situation simulation, when the ships meet in the emergency avoidance zone. (a) t = 26 s, (b) t = 60 s.
Figure 11. Head-on situation simulation, when the ships meet in the emergency avoidance zone. (a) t = 26 s, (b) t = 60 s.
Jmse 13 00124 g011
Figure 12. Head-on situation simulation results, when the ships meet in the emergency avoidance zone. (a) Distance, (b) states.
Figure 12. Head-on situation simulation results, when the ships meet in the emergency avoidance zone. (a) Distance, (b) states.
Jmse 13 00124 g012
Figure 13. Head-on situation simulation, when the own ship without intention data meets the target ship in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Figure 13. Head-on situation simulation, when the own ship without intention data meets the target ship in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Jmse 13 00124 g013
Figure 14. Head-on situation simulation, when the own ship with intention data meets the target ship in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Figure 14. Head-on situation simulation, when the own ship with intention data meets the target ship in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Jmse 13 00124 g014
Figure 15. Head-on situation simulation results, between the own ship with intention data or without intention data, in the close-quarter avoidance zone. (a) Distance, (b) states.
Figure 15. Head-on situation simulation results, between the own ship with intention data or without intention data, in the close-quarter avoidance zone. (a) Distance, (b) states.
Jmse 13 00124 g015
Figure 16. Overtaking situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) t = 10 s, (b) t = 60 s.
Figure 16. Overtaking situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) t = 10 s, (b) t = 60 s.
Jmse 13 00124 g016
Figure 17. Overtaking situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Figure 17. Overtaking situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Jmse 13 00124 g017
Figure 18. Crossing situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Figure 18. Crossing situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) t = 26 s, (b) t = 60 s.
Jmse 13 00124 g018
Figure 19. Crossing situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Figure 19. Crossing situation simulation results, when the ships meet in the close-quarter avoidance zone. (a) Distance, (b) states.
Jmse 13 00124 g019
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.

Share and Cite

MDPI and ACS Style

Zhang, H.; Cao, Y.; Shan, Q.; Sun, Y. Collision Avoidance for Maritime Autonomous Surface Ships Based on Model Predictive Control Using Intention Data and Quaternion Ship Domain. J. Mar. Sci. Eng. 2025, 13, 124. https://doi.org/10.3390/jmse13010124

AMA Style

Zhang H, Cao Y, Shan Q, Sun Y. Collision Avoidance for Maritime Autonomous Surface Ships Based on Model Predictive Control Using Intention Data and Quaternion Ship Domain. Journal of Marine Science and Engineering. 2025; 13(1):124. https://doi.org/10.3390/jmse13010124

Chicago/Turabian Style

Zhang, Hanxuan, Yuchi Cao, Qihe Shan, and Yukun Sun. 2025. "Collision Avoidance for Maritime Autonomous Surface Ships Based on Model Predictive Control Using Intention Data and Quaternion Ship Domain" Journal of Marine Science and Engineering 13, no. 1: 124. https://doi.org/10.3390/jmse13010124

APA Style

Zhang, H., Cao, Y., Shan, Q., & Sun, Y. (2025). Collision Avoidance for Maritime Autonomous Surface Ships Based on Model Predictive Control Using Intention Data and Quaternion Ship Domain. Journal of Marine Science and Engineering, 13(1), 124. https://doi.org/10.3390/jmse13010124

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