Previous Article in Journal
Development of a Dual-Input Hybrid Wave–Current Ocean Energy System: Design, Fabrication, and Performance Evaluation
Previous Article in Special Issue
Trajectory Tracking Design of Autonomous Surface Vessels with Multiple Perturbations: A Robust Adaptive Fuzzy Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hybrid Obstacle Avoidance Algorithm Based on IAPF and MPC for Underactuated Multi-USV Formation

Navigation College, Dalian Maritime University, Dalian 116026, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2025, 13(8), 1436; https://doi.org/10.3390/jmse13081436 (registering DOI)
Submission received: 4 July 2025 / Revised: 25 July 2025 / Accepted: 25 July 2025 / Published: 27 July 2025

Abstract

In this paper, we propose a hybrid algorithm that integrates an improved artificial potential field method (IAPF), model predictive control (MPC), and an extended state observer (ESO) to address the obstacle avoidance problem in multi-unmanned surface vehicle (Multi-USV) formations, including both dynamic and static obstacles, as well as navigation through narrow waterways. Initially, the virtual structure method was applied for formation control. Next, the traditional potential field method was enhanced by employing a saturated attractive potential field and a partitioned repulsive potential field, which improve formation stability and obstacle avoidance accuracy in complex environments. The extended state observer was then employed to estimate and compensate for unknown system dynamics and external disturbances from the marine environment in real time, improving system robustness. On this basis, by leveraging the multi-step predictive optimization capabilities of model predictive control, the proposed algorithm dynamically adjusts control inputs based on the desired trajectories generated from potential field forces, which ensures the stability of formation control and effective obstacle avoidance. The simulation results demonstrate that the proposed algorithm effectively avoids both dynamic and static obstacles in multi-unmanned surface vehicle formations and enables successful navigation through narrow waterways by altering the formation.

1. Introduction

As marine operational tasks grow increasingly complex and diverse, the capabilities of a single unmanned vessel are not able to meet the demands of such tasks. The multi-unmanned surface vehicle cooperative formation system, which capitalizes on advantages such as distributed decision-making, resource coordination, and environmental adaptability, has emerged as a key technology for addressing the limitations of single-vessel operations [1,2]. Through the exchange of information and cooperative control among multiple agents, the system facilitates task scalability, enhances operational efficiency, and improves robustness. It demonstrates substantial application value in complex scenarios, including deep-sea exploration, emergency rescue, and marine area monitoring [3,4]. However, during mission execution, unmanned surface vehicle formations may encounter various dynamic and static obstacles (such as islands and reefs, no-sailing zones, offshore platforms) and restricted waters (such as narrow waterways), often affecting navigational safety. These obstacles not only undermine the stability of the formation system but also place greater demands on the robustness of collaborative control. Therefore, stability control and collaborative obstacle avoidance techniques, including formation maintenance and reconfiguration, for multi-unmanned surface vehicle formations in complex environments have recently emerged as a key research focus in relevant domains.
Formation control and obstacle avoidance strategies for unmanned surface vehicles primarily include the virtual structure method [5], leader–follower method [6], artificial potential field method [7,8], and model predictive control [9,10,11]. To fully leverage and integrate the technical advantages of various methods while overcoming the performance limitations of a single approach, a series of hybrid strategies have been proposed. Typically, hybrid algorithms combining artificial potential fields and model predictive control capitalize on the rapid real-time obstacle avoidance offered by the artificial potential field method and the global optimization and constraint-handling capabilities of model predictive control. This combination effectively mitigates the issues of local optima and path oscillations inherent in the use of a single potential field method and has been widely adopted for obstacle avoidance in diverse scenarios [12,13,14,15,16,17,18,19,20,21,22,23]. For example, Xinwei Wang et al. [14] enhanced the traditional potential field method by incorporating angular velocity constraints and time information, thereby enabling the generation of high-quality short-term reference trajectories and effectively preventing obstacle collisions. They then employed model predictive control to accurately track these reference trajectories, ensuring precise control of a single vessel in complex environments. Yujie Huang et al. [15] developed an autonomous obstacle avoidance controller for multi-unmanned vessel formations by establishing communication priorities and a unidirectional topology, integrating hypothetical and balanced state spaces into the distributed model predictive control algorithm, and combining it with the artificial potential field method to improve the safety of the vessel formation. Zhibo He et al. [16] introduced a motion planning method that combines model predictive strategies with artificial potential fields, transforming the ship motion planning problem into a multi-constrained nonlinear optimization problem. This method effectively addresses collision avoidance for a single vessel in complex intersection scenarios while adhering to collision avoidance rules. Haibin Li et al. [17] adopted a separation-type mathematical model for a vessel and conducted a comprehensive analysis of its motion characteristics. They designed a collision avoidance decision-making framework based on the artificial potential field method and model predictive control. This approach effectively mitigates the issues of local optima and bow oscillations commonly encountered during path planning using the artificial potential field method. Beixi Ning et al. [18] incorporated dynamic adjustment factors and a buffer layer structure into the traditional artificial potential field method, integrating it with distributed model predictive control. They developed a cost function that evaluates path optimization based on safety, stability, and energy consumption, ensuring the smoothness and stability of the formation’s path when navigating around static obstacles. Han et al. [19] combined nonlinear model predictive control with path planning, collision avoidance, and motion control coordination, introducing an adaptive steering constraint Theta* algorithm. They also employed an enhanced potential field method to address various obstacle types, effectively resolving the issue of safe navigation for vessels in complex environments. The authors of [20,21] proposed collision avoidance decision-making frameworks for ships based on enhanced artificial potential fields and nonlinear model predictive control, in accordance with COLREG rules. These approaches effectively ensure both collision avoidance and path tracking for a single vessel, while improving the system’s computational efficiency and maneuverability in dynamic environments. The existing research on hybrid APF-MPC mainly focuses on two aspects: one is dynamic and static obstacle-avoidance for an individual vessel [14,16,17,19,20,21], and the other is obstacle-avoidance for multi-USV formations in open waters [15,18,22,23]. However, studies addressing obstacle avoidance control for unmanned vessel formations in complex environments such as narrow waters are relatively fewer. Moreover, existing methods do not address the problem of multi-unmanned boat formation maintenance, especially in narrow or obstacle-intensive waters, where it is difficult to coordinate formation and obstacle avoidance, leading to path oscillation and formation destabilization [24,25].
The paper presents a formation-based obstacle avoidance control strategy for multi- unmanned surface vehicles operating in complex environments subject to perturbations such as wind, waves, and currents. The proposed approach integrates an enhanced artificial potential field method, model predictive control, and an extended state observer. The expected values and disturbance estimates derived from the improved artificial potential field and the extended state observer, respectively, are used to dynamically adjust the inputs to the model predictive controller. This strategy not only ensures successful avoidance of both static and dynamic obstacles by the multi-unmanned surface vehicle formation but also enables smooth navigation through narrow waterways by adapting the formation, effectively mitigating oscillations, and avoiding entrapment in local optima.
(1)
A saturated gravitational potential field is introduced for narrow waterways to prevent formation instability due to excessive gravitational forces. Additionally, a partitioned repulsive potential field is implemented, dynamically adjusting the potential field function based on the distance between unmanned surface vehicles and a waterway boundary, thereby ensuring effective obstacle avoidance within the unmanned surface vehicle formation.
(2)
By leveraging the multi-step prediction capability of model predictive control, the controller is designed based on the expected values provided by the enhanced artificial potential field and the disturbance estimates derived from the extended state observer, ensuring that the state and velocity vectors of the USVs in the formation asymptotically converge to the desired values.

2. Problem Statement

A coordinate system, illustrated in Figure 1, is established according to the terminology bulletin published by the Society of Naval Architects and Marine Engineers. Here, X O Y represents the geodetic coordinate system, while x b o b y b corresponds to the body-fixed coordinate system.
The kinematic and dynamic models for the i t h unmanned surface vehicle can be expressed as follows:
η · i = J i ( ψ i ) v i M i v · i + C i ( v i ) v i + D i ( v i ) v i = τ i + τ i w + f i ( v i )
In the kinematic model, η i = x i y i ψ i T represents the position and heading angle of the U S V i in the inertial coordinate system. Specifically, x i , y i denotes the position vector in the fixed coordinate system, ψ i π , π is the heading angle of the U S V i , and the components of v i = u i v i r i T correspond to the longitudinal velocity, lateral velocity, and yaw rate in the body-fixed coordinate system, respectively. The transformation matrix J i is defined as follows:
J i ( ψ i ) = cos ψ i sin ψ i 0 sin ψ i cos ψ i 0 0 0 1
In the dynamic model, the mass matrix is denoted by M i = d i a g m i u , m i v , m i r 3 × 3 , the Coriolis and centripetal matrix by C i v i 3 × 3 , and the damping matrix by D i v i 3 × 3 . The control input is expressed as τ i = τ i u , 0 , τ i r T . External environmental disturbances in the form of wind, waves, and currents are represented by τ i w = τ i w u , τ i w v , τ i w r T . Model uncertainty is denoted by f i v i = f i u , f i v , f i r T , which comprises the perturbations f i u = m 22 v i r i + d 11 u i , f i v = m 11 u i r i + d 22 v i , and f i r = m 22 m 11 u i v i + d 33 r i .
The primary objective of this study is to achieve formation control and obstacle avoidance for multi-unmanned vehicle systems subjected to system uncertainties, external environmental disturbances, and control input constraints. The USVs first navigate forward in a predetermined geometric formation. When a narrow waterway is detected, a formation reconstruction algorithm is triggered automatically. The algorithm will switch the formation to a compact one that adapts to the waterway’s width, allowing the USVs to navigate through the restricted area. After passing through the narrow waterway, the USVs either revert to their original formation or switch to a new one suited for the task. Moreover, a virtual structure strategy is employed to accomplish the formation, ensuring that the state vector η i and velocity vector v i of the U S V i asymptotically track the desired trajectories η i d and v i d ; that is, lim t η i η i d = 0 and lim t v i v i d = 0 .

3. Main Results

This paper presents a hybrid control framework as shown in Figure 2, which combines an improved artificial potential field, model predictive control, and an extended state observer to enable formation keeping and obstacle avoidance for USVs. The improved artificial potential field module plans collision-free reference trajectories and supplies the model predictive controller with path and velocity set-points. Subject to input constraints, this controller performs multi-step prediction and real-time optimization to generate optimal control commands for coordinated motion and safe navigation. The extended state observer estimates and compensates for unmodeled dynamics and external maritime disturbances.

3.1. Controller Design

3.1.1. Formation Control Based on Virtual Structure

Inspired by works in [26,27], the virtual structural particles are modeled as a second-order system with both kinematic and dynamic characteristics:
p ˙ i = q i q ˙ i = u i
In this context, p i and q i represent the position and velocity vectors of the virtual structural particle of the U S V i in the fixed coordinate system, while u i denotes its control input.
To ensure the convergence of the position and velocity of the virtual structural particle to the desired values, the control law is designed as follows:
u i = c 1 p i d p i + c 2 q i d q i
where c 1 and c 2 are the position and velocity control coefficients, respectively, and p i d and q i d represent the desired position and velocity of the virtual structural particle of the U S V i in the fixed coordinate system.
Substituting Equation (4) into Equation (3) yields a second-order linear system:
p ¨ i + c 2 p ˙ i + c 1 p i = c 2 p ˙ i d + c 1 p i d
The position and velocity of the formation reference point in the fixed coordinate system are given by p r and q r . The desired position and velocity of the virtual structural particle of the unmanned vehicle in the fixed coordinate system are given by
p i d = p r + R ψ r L r i q i d = q r + R · ψ r L r i + R ψ r L ˙ r i
where R ψ r = cos ψ r sin ψ r sin ψ r cos ψ r represents the coordinate transformation matrix, ψ r denotes the heading angle of the formation reference point, and L = l 0 0 l is the formation scaling factor. The term r i represents the relative position between the virtual structural particle of the U S V i and the formation reference point. If r i remains constant, the formation is maintained; if r i varies, formation reconfiguration is achieved.

3.1.2. Improved Artificial Potential Field Method

In complex environments such as narrow waterways, when multiple unmanned vehicles approach a target point, the traditional attractive potential field increases infinitely [24]. This can lead to over-adjustment and oscillation of the unmanned vehicles, making smooth arrival at the target difficult. Therefore, this study adopts a saturated attractive potential field to limit the attraction near the target. When an unmanned vehicle is within a predefined saturation threshold distance from the target, the attraction increases linearly. If the distance exceeds this threshold, the attraction reaches its maximum value and remains constant. This design prevents an infinite increase in attraction, ensuring that the unmanned vehicle can decelerate smoothly and accurately reach its target position. The details of the design are outlined below.
The improved expression of the attractive potential field is as follows:
U att q i = 1 2 k att q i q goal 2 , q i q goal ρ 1 2 k a t t ρ 2 , q i q goal > ρ
Here, ρ denotes the saturation distance threshold.
The attractive force F att q i is obtained by computing the negative gradient of the attractive potential field U att q i :
F att q i = U att q i = k att q i q goal , q i q goal ρ 0 , q i q goal > ρ
Within the vicinity of target ρ , the attractive force increases as the distance decreases, vanishing at the target point. Beyond this region, the attractive force is zero, implying that the potential field no longer influences unmanned vehicles at greater distances. Introducing a saturation mechanism enables the attractive potential field to retain an appropriate magnitude near the target, thereby preventing unmanned vehicles from undergoing severe oscillations or overcompensating.
In narrow waterways and other complex environments, USVs must avoid collisions with both surrounding obstacles and neighboring craft. Accordingly, the formation control algorithm must maintain the desired geometry while guaranteeing navigational safety in obstacle and inter-vehicle collision avoidance. To enable a USV formation to transit narrow waterways without becoming trapped in local optima, we propose a partitioned repulsive potential field method that ensures safe clearance of boundaries and obstacles. The channel is divided into discrete zones, and the repulsive force is dynamically scaled according to each USV’s distance from the boundaries, thereby enabling smooth obstacle avoidance within confined waters.
Figure 3 depicts typical narrow waterways, including ship locks and canals. Let the channel have a total width 2 d and be divided symmetrically about its centerline. A repulsive potential field is imposed along both boundaries to confine the maneuvering space of USVs and guarantee safe transit through the central corridor. The formulation of the repulsive potential field, and thus the resultant repulsive force, is identical for USVs located between the upper boundary and centerline and those between the centerline and lower boundary.
Based on the partitioning of the repulsive potential field, the waterway is divided into three distinct zones: the safety zone, the buffer zone, and the danger zone. The safety zone, denoted as Zone ( 0 d n ) , corresponds to the region in which the USV can safely traverse the central section of the waterway, with minimal or no repulsive force. The buffer zone, denoted as Zone ( d n d m ) , is the area in which the USV gradually approaches the waterway boundaries, and the repulsive force increases to prevent the vehicle from getting too close. Finally, in the danger zone, denoted as Zone ( d m d ) , the repulsive force escalates sharply to ensure that the USV quickly moves away from the boundary region.
The expression for the improved repulsive potential field is as follows:
U rep - top q i = 0 , q i q b 1 d 1 1 2 k rep 1 1 d 1 1 q i q b 1 2 , d 2 q i q b 1 < d 1 1 2 k rep 2 1 q i q b 1 1 d 2 2 , q i q b 1 < d 2
In this expression, k rep 1 and k rep 2 are the coefficients of the repulsive potential field, q b 1 represents the position vector of the upper boundary of the narrow waterway, d 1 is the distance threshold of the buffer zone, and d 2 is the distance threshold of the danger zone.
The repulsive force F rep q i is obtained by computing the negative gradient of the repulsive potential field U rep q i :
F rep - top q i = U rep - top q i = 0 , q i q b 1 d 1 k rep 1 1 d 1 1 q i q b 1 1 q i q b 1 2 , d 2 q i q b 1 < d 1 k rep 2 1 q i q b 1 1 d 2 1 q i q b 1 2 , q i q b 1 < d 2
The resultant potential field is formed through the superposition of the attractive and repulsive potential fields, denoted as U total q i = U att q i + U rep q i . The behavior of the U S V i within this field is governed by the resultant force. By taking the negative gradient of the resultant potential field, we can obtain the resultant force acting on the U S V i : F total q i = F att q i + F rep q i . This resultant force F total q i provides the U S V i with comprehensive navigation and obstacle avoidance information, which will serve as the desired input for model predictive control to optimize the vehicle’s motion trajectory.

3.1.3. Extended State Observer

This study utilizes the extended state observer as the central mechanism for disturbance estimation and compensation. Originally proposed by Professor Jingqing Han [28], the extended state observer serves as a critical component of the active disturbance rejection control framework. In contrast to the traditional Luenberger observer, it offers several key advantages: it does not require an accurate system model, it can estimate unknown disturbances as additional states, and it allows for straightforward parameter tuning, primarily by selecting the observer’s bandwidth. These features make the extended state observer particularly effective for unmanned surface vehicle systems in marine environments, where obtaining precise dynamic parameters is challenging and external disturbances are complex and unpredictable.
First, the mathematical model of U S V i in (1) is rewritten as follows:
M i * v i = C i * v i v i D i * v i v i + τ i + d i
where M i * , C i * , and D i * represent nominal values that can be derived using computational fluid dynamics or empirical methods. d i = τ i w + f i v i represents the unknown dynamics of the USV, including external environmental disturbances, internal model uncertainties, and an uncertain inertia matrix.
Inspired by the work in [29], a second-order extended state observer is proposed to estimate the unknown terms in the system:
v ¯ ^ · i = K 1 v v ¯ ^ i v ¯ i + M i * 1 τ ¯ i + σ ¯ ^ i σ ¯ ^ · i = K 2 v v ¯ ^ i v ¯ i
Here, K 1 v , K 2 v + 3 × 3 represents the diagonal observation gain matrix, while v ¯ ^ i , σ ¯ ^ i indicates the estimated value of v ¯ i , σ ¯ i . σ ¯ i = m i u * 1 f ¯ i u , m i r * 1 f ¯ i r T 2 , M i * = d i a g m i u * , m i r * 2 × 2 , and τ ¯ i = τ i u , τ i r T 2 .
Let v ¯ ˜ i = v ¯ ^ i v ¯ i and σ ¯ ˜ i = σ ¯ ^ i σ ¯ i denote the estimation errors. Through the use of Equations (11) and (12), the estimation errors of the extended state observer can be expressed as follows:
v ¯ ˜ ˙ i = K 1 v v ¯ ˜ i + σ ¯ ˜ i σ ¯ ˜ ˙ i = K 2 v v ¯ ˜ i σ ¯ ˙ i
To facilitate the subsequent stability analysis of the extended state observer, the following assumption is made:
 Assumption 1: 
The derivative of the nonlinear function d i k , denoted by d ˙ i k , k = u , v , r , is bounded and satisfies the condition given in Equation (14).
d ˙ i k d i k * , k = u , v , r
where d i k * + . Since the control input of the USV is bounded, its velocity must also be bounded, which justifies Assumption 1.
To meet the real-time control requirements imposed on the USV and enable integration with model predictive control, the continuous extended state observer is discretized as follows:
v ¯ ^ i , k + 1 = v ¯ ^ i k + T s K 1 v v ¯ ^ i k v ¯ i k + M i * 1 τ ¯ i k + σ ¯ ^ i k σ ¯ ^ i , k + 1 = σ ¯ ^ i k + T s K 2 v v ¯ ^ i k v ¯ i k
In this case, T s represents the sampling period and is set to 0.1 s. Within the nominal model control framework, the disturbance rejection control law based on the extended state observer is formulated as
τ ¯ i = M i * K 3 z i 1 K 4 z i 1 d t + v i d σ ¯ ^ i
where K 3 and K 4 represent the diagonal control gain matrix, z i 1 = v ¯ i v i d represents the velocity tracking error of the U S V i , and v i d represents the desired velocity of the U S V i .

3.1.4. Model Predictive Control

Model predictive control, an advanced optimal control framework, offers significant advantages in handling multivariable coupled systems and receding horizon prediction. Its inherent adaptability and robustness make it well suited to complex marine environments, and its constraint-handling capability is indispensable in practice [30]. Building on the disturbance and model information furnished by the extended state observer in Section 3.1.3, we design a model predictive controller to drive the vessels of the multi-USV formation toward velocity consensus through optimal control inputs.
To satisfy the computational demands of real-time maritime operation without degrading obstacle avoidance performance, the controller is implemented in discrete time. Specifically, the continuous dynamic model (11) is discretized with a sampling period T s using the forward Euler method, yielding the following discrete-time representation:
v i k + 1 = I M i * 1 T s C i * + D i * v i k + M i * 1 T s τ i k + M i * 1 T s d i k
By selecting x i v k = v i k , τ i k 1 T to be the state vector and using the increment of Δ u i τ k = τ i k τ i k 1 as the control input, we can derive the state-space model of the control system as follows:
x i v k + 1 = A i v x i v k + B i v Δ u i τ k + E i v d i k
y i v k = C i v x i v k
In this context, A i v = I 3 M i * 1 T s C i * + D i * M i * 1 T s 0 3 I 3 , B = M i * 1 T s I 3 , E i v = M i * 1 T s 0 3 × 1 , and y i v constitute the output vector, C i v = I 3 0 3 . The recursive expression for the predicted state vector x i v is given by
x i v k + 1 | k = A i v x i v k | k + B i v Δ u i τ k | k + E i v d i k | k
x i v k + 2 | k = A i v 2 x i v k | k + A i v B i v Δ u i τ k | k + B i v Δ u i τ k + 1 | k + A i v E i v + E i v d i k | k
x i v ( k + N p | k ) = A i v N p x i v ( k | k ) + j = 0 N p 1 A i v N p 1 j B i v Δ u i τ ( k + j | k ) + j = 0 N p 1 A i v j E i v d i ( k | k )
Similarly, the recursive formula for the predicted output vector y i v is given by
y i v k + 1 | k = C i v A i v x i v k | k + C i v B i v Δ u i τ k | k + C i v E i v d i k | k
y i v k + 2 | k = C i v A i v 2 x i v k | k + C i v A i v B i v Δ u i τ k | k + B i v Δ u i τ k + 1 | k + C i v A i v E i v + E i v d i k | k
y i v ( k + N p | k ) = C i v A i v N p x i v ( k | k ) + j = 0 N p 1 C i v A i v N p 1 j B i v Δ u i τ ( k + j | k ) + j = 0 N p 1 C i v A i v j E i v d i ( k | k )
Based on the recursive relationship above, the following prediction equations are used to characterize the relationship between the predicted output sequence and the control increment sequence:
Y i v = Φ x i v + Γ Δ U i τ + Ψ d i
where Y i v = y i v k + 1 | k , y i v k + 2 | k , , y i v k + N p | k T , Δ U i τ = Δ u i τ k | k , Δ u i τ k + 1 | k , , Δ u i τ k + N c 1 | k T , Φ = C i v A i v , C i v A i v 2 , , C i v A i v N p , Γ = C i v B i v 0 3 0 3 C i v A i v B i v C i v B i v 0 3 C i v A i v N p 1 B i v C i v A i v N p 2 B i v C i v A i v N p N c B i v , and
Ψ = C i v E i v , C i v A i v E i v + C i v E i v , , C i v n = 0 N p 1 A i v n E i v T .
The following constraints are established based on the control objectives:
u min u k u max , k 0 , N c 1
Δ u min u k + i u k + i 1 Δ u max , i 0 , N c 1
Equation (27) represents the constraint on the control input, ensuring that the computed control values remain within a feasible range. Equation (28) represents the constraint on the rate of change in the control input, ensuring a smooth transition between control commands.
To ensure the convergence of the formation tracking velocity to the desired value, the cost function for the U S V i is defined as follows:
J i v k = j = 1 N p y i v k + j | k v i d k + j Q i v 2 + j = 0 N c 1 Δ u k + j | k R i 2
Here, y i v k + j | k and Δ u k + j | k represent the predicted values of y i v k + j and Δ u k + j at the k t h time step, respectively, and v i d = u i d , v i d , r i d T denotes the desired velocity of the U S V i , which is obtained using the improved artificial potential field method: u i d k = k u F t o t a l , i k , v i d = k v F t o t a l , i k , ψ i d k = arctan 2 F t o t a l , i , y k , F t o t a l , i , x k , and r i d k = ψ i d k ψ i d k 1 T s , where k u , k v represents the velocity proportional gain, and Q i v and R i are the weight matrices.
By substituting Equation (26) into Equation (29), we can formulate the model predictive control problem for the U S V i at the sampling time k in a standard quadratic form:
Δ U i τ * = arg min Δ U i τ 1 2 Δ U i τ T H Δ U i τ + f i v T Δ U i τ
Here, the Hessian matrix H = Φ T Q ¯ iv Φ + R ¯ i and the gradient vector f i v T = Φ T Q ¯ iv ( Γ Y ( k ) + Ψ V i d ) , V i d = v i d k + 1 , , v i d k + N p T , and Q ¯ iv = diag Q iv , Q iv , , Q iv N p n x × N p n x represent the extended state weight matrices, while R ¯ i = diag R i , R i , , R i N c n u × N c n u denotes the extended control weight matrix.
To improve computational efficiency and meet the real-time requirements imposed on the USV, a rolling-horizon optimization strategy is employed. By solving the quadratic programming optimization problem (30), we can obtain the optimal control input increment sequence for the U S V i :
Δ U i τ * = Δ u i τ * k | k , Δ u i τ * k + 1 | k , , Δ u i τ * k + N c 1 | k T
The optimal control force and torque τ i * k = τ i k 1 + Δ u i τ * k are derived using only the first element Δ u i τ * k | k of the sequence. At each sampling time, Δ u i τ * is recalculated and the U S V i performs rolling optimization by repeatedly calculating and executing τ i * .

3.2. Stability Analysis

 Lemma 1: 
Consider the extended state observer described by Equation (12). Under the conditions specified in Assumption 1, there exists an observer gain matrix L such that the observation error remains bounded and eventually converges to a small region around the origin.
 Proof of Lemma 1: 
Let e i = e i 1 , e i 2 T denote the estimation error of the U S V i in the multi-USV formation, where e i 1 = v i v ^ i , e i 2 = d i d ^ i , and d ^ i represent the extended state observer disturbance estimates. According to Equation (14), the estimation error system can be expressed as follows:
e ˙ i = A i e e i + B i e d ˙ i
where A i e = L i 1 I i 2 L i 2 0 and B i e = 0 I i 2 .
Select a Lyapunov function, given by the following equation:
V 1 = e i T P i e e i
where P i e is a positive-definite matrix. Taking the derivative of V 1 , we obtain
V ˙ 1 = e i T A i e T P i e + P A i e e i + 2 e i T P i e B i e d ˙ i
Let A i e T P i e + P i e A i e = Q i e be a positive-definite symmetric matrix. Then,
V ˙ 1 = e i T Q i e e i + 2 e i T P i e B i e d ˙ i
According to Assumption 1, d ˙ i γ . Let λ min Q i e denote the smallest eigenvalue of Q i e ; thus, e i Q i e e i λ min Q i e e i 2 . Therefore,
V ˙ 1 λ min Q i e e i 2 + 2 P i e B i e e i γ
When e i >   2 P i e B i e γ λ min Q i e , V ˙ 1 < 0 .
Consequently, the observation error e i ultimately converges to a ball of radius 2 P i e B i e γ λ min Q i e centered at the origin. By suitably adjusting the observer gain L , we can increase the parameter λ min Q i e , thereby shrinking the convergence radius and improving observation accuracy. □
 Theorem 1: 
Consider the USV formation system defined in Equation (1). The optimal control inputs obtained using the improved artificial potential field method, combined with model predictive control, guarantee that each USV asymptotically converges to the desired velocity.
 Proof of Theorem 1. 
For the USV formation, we adopt the optimal cost function at time step k, defined in Equation (29), as the Lyapunov candidate V 2 k :
V 2 k = J * k = min J k = min j = 1 N p y i v k + j | k v i d k + j Q i v 2 + j = 0 N c 1 Δ u k + j | k R i 2
It can be observed that equality in expression V 2 k 0 holds if and only if k = 0. Meanwhile, V 2 k J k . To prove V 2 k + 1 V k , an intermediate variable J k + 1 is introduced. The following derivation establishes the relationship between J k + 1 and V 2 k :
J ( k + 1 ) = j = 1 N p y i v k + j + 1 | k + 1 v i d k + j + 1 | k + 1 Q i v 2 + j = 0 N c 1 Δ u i τ k + j + 1 | k + 1 R i 2   = j = 2 N p y i v * k + j | k v i d k + j | k Q i v 2 + j = 1 N c 1 Δ u i τ k + j | k 2 R = j = 1 N p y i v * k + j | k v id k + j | k Q i v 2 +   j = 0 N c 1 Δ u i τ k + j | k R i 2 y i v * k | k v id k | k Q i v 2 Δ u i τ * k | k R i 2 = V k y i v * k | k v id k | k Q i v 2 Δ u i τ * k | k R i 2
According to [31], J k + 1 V 2 k holds, which confirms V 2 k + 1 V 2 k . Based on the Lyapunov stability theory, the outer-loop subsystem is thus asymptotically stable. This concludes the proof of Theorem 1. □
In summary, the proposed IAPF-ESO-MPC control scheme is theoretically proven to be stable, effectively compensates for system uncertainties and external disturbances, and ensures accurate formation control and safe navigation of unmanned surface vehicles.

4. Simulation Results and Analysis

To verify the effectiveness of the formation control and obstacle avoidance method, simulation experiments of a multi-unmanned vehicle formation were conducted. The simulation scenarios encompassed two typical working conditions: one involved the formation avoiding obstacles in static and dynamic multi-obstacle environments, while the other addressed its safe traversal of narrow waterways through formation reconfiguration. The simulation experiments replicated the characteristics of complex water environments through multiple scenarios, providing a systematic framework to evaluate the real-time performance, obstacle avoidance reliability, and cooperative adaptability of the control algorithm.

4.1. Avoiding Static and Dynamic Obstacles

Consider a formation system composed of three unmanned vehicles, initially positioned at 0 , 0 , 5 , 5 , and 5 , 5 . The vehicles form an isosceles triangle, with each side having a length of 5 2 , 5 2 , 10 . Ocean disturbances are modeled using a first-order Gaussian–Markov process, denoted by τ ˙ i w k + μ i w k τ i w k = w i k , μ i w k > 0 , k = u , v , r , where w i k represents white noise. The time constant is set to μ i w k = 0.5 , and the mean white noise w i k is zero, with a variance of 0.5. The sampling period of the model predictive controller is T s = 0.1 , the prediction horizon is N p = 20 , and the control horizon is N c = 5 . Reference paths are generated offline using Gaussian functions. Based on the aforementioned simulation parameters and disturbance settings, the obstacle avoidance performance is determined.
As demonstrated in Figure 4, the multi-USV system, based on the hybrid algorithm proposed in this paper, effectively avoids both dynamic and static obstacles while ensuring that no collisions occur between the vehicles during operation. Additionally, the proposed algorithm enables the formation to effectively track the predefined reference path and avoid obstacles in a reasonable manner.

4.2. Navigating Through Narrow Waterways

During mission execution, the multi-USV formation frequently encounters narrow waterways or areas dense with obstacles, hindering its ability to maintain the original formation. Consequently, flexible formation adjustments and real-time obstacle avoidance are necessary to ensure safe passage. The initial positions of the formation members are (−3, 2), (−10, 5), and (−10, −3), arranged in a triangular formation with a side length of 2 34 , 2 34 , 12 , as defined by the virtual structure. A narrow area with a width of 6 is also established, as shown in Figure 5.
Figure 5 presents an overhead view of the USV formation navigating through a narrow waterway. As shown in Figure 5, Figure 6 and Figure 7, the formation moves smoothly through the narrow passage, following a continuous and stable trajectory. During the formation phase, the positions and headings of each USV are initially randomized. Once the formation is established, it maintains its structure throughout the movement. Upon encountering a narrow waterway, the formation transitions to a single column to pass through it and promptly returns to its original formation after clearing the passage, ultimately reaching the target point. Additionally, no collisions occur between the USVs during movement.
To further evaluate the algorithm’s applicability, we examined obstacle avoidance and formation behavior in an S-shaped narrow waterway. The formation is configured as a triangle, with initial positions at (10, 56), (10, 44), and (20, 50). The simulation results are depicted in Figure 8 and Figure 9.
The simulation results demonstrate that the proposed algorithm allows the vehicles to successfully navigate through the S-shaped narrow waterway by adapting their formation, swiftly restoring the original formation after they pass through. This validates the applicability and robustness of the proposed algorithm.

5. Conclusions

This paper addresses the control challenges faced by unmanned vehicle fleets in complex marine environments and proposes an integrated control strategy that combines an enhanced artificial potential field method with model predictive control. Through theoretical analysis and simulation, the effectiveness and practicality of the proposed method are validated. The improved artificial potential field method overcomes the inherent limitations of traditional potential field approaches. Specifically, the saturated attractive potential field eliminates oscillations near the target, while the partitioned repulsive potential field ensures that the fleet can safely navigate narrow waterways, offering a novel solution for path planning in constrained environments. The introduction of the extended state observer significantly improves the system’s robustness against disturbances, enabling accurate estimation of unknown dynamics and external environmental perturbations and providing reliable state information for subsequent controller design. The model predictive controller excels in managing system constraints, optimizing trajectory tracking and obstacle avoidance by incorporating potential field data into the objective function. The rolling-horizon strategy guarantees real-time control, effectively meeting the obstacle avoidance requirements imposed on the fleet. Stability analysis based on Lyapunov theory confirms the asymptotic stability of the multi-unmanned vehicle system, and the simulation results demonstrate the method’s effectiveness in scenarios such as static and dynamic obstacle avoidance and formation transitions in narrow waterways, highlighting its robustness and adaptability.
It is worth mentioning that the obstacles considered in this paper include reefs, shoals, locks, floating debris and so on, while vessel-related obstacles are not addressed. In future research, we will further explore how to incorporate COLREGs into the design framework, especially in multi-vessels collaboration and collision avoidance tasks in complex environments. Moreover, we will aim to use more formal and explicit collision risk indices (CRI) or similar quantitative risk metrics to monitor real-time risk levels and integrate them with COLREGs to enhance transparency and interpretability in high-stakes environments.

Author Contributions

Conceptualization, H.S. and M.P.; methodology, H.S. and Q.X.; software, Q.X.; validation, Z.L. and H.L.; formal analysis, H.S. and Q.X.; investigation, H.S. and H.L.; resources, M.P.; data curation, H.S. and Q.X.; writing—original draft preparation, H.S. and Q.X.; writing—review and editing, M.P. and Z.L.; visualization, H.S., Q.X. and Z.L.; supervision, M.P.; project administration, H.S.; funding acquisition, H.S. and M.P. All authors have read and agreed to the published version of the manuscript.

Funding

This study was partially supported by the National Key Research and Development Program of China (Grant No.2022YFB4301401) and the Guangxi Science and Technology Infrastructure and Talent Development Program (Grant No. GUIKE AD25069109).

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sui, B.; Zhang, J.; Liu, Z. Prescribed-time formation tracking control for underactuated USVs with prescribed performance. J. Mar. Sci. Eng. 2025, 13, 480. [Google Scholar] [CrossRef]
  2. Luo, Q.; Wang, H.; Li, N.; Zheng, W. Multi-unmanned surface vehicle model-free sliding mode predictive adaptive formation control and obstacle avoidance in complex marine environment via model-free extended state observer. Ocean Eng. 2024, 293, 116773. [Google Scholar] [CrossRef]
  3. Zhang, S.; Zhang, Q.; Xu, L.; Xu, S.; Zhang, Y.; Hu, Y. Dynamic sliding mode formation control of unmanned surface vehicles under actuator failure. J. Mar. Sci. Eng. 2025, 13, 657. [Google Scholar] [CrossRef]
  4. Yan, X.; Jiang, D.; Miao, R.; Li, Y. Formation control and obstacle avoidance algorithm of a multi-USV system based on virtual structure and artificial potential field. J. Mar. Sci. Eng. 2021, 9, 161. [Google Scholar] [CrossRef]
  5. Liu, G.; Wen, N.; Long, F.; Zhang, R. A formation control and obstacle avoidance method for multiple unmanned surface vehicles. J. Mar. Sci. Eng. 2023, 11, 2346. [Google Scholar] [CrossRef]
  6. Chang, Z.; Zong, G.; Wang, W.; Yue, M.; Zhao, X. Formation control and obstacle avoidance design for networked USV swarm with exogenous disturbance under intermittent communication. IEEE Trans. Netw. Sci. Eng. 2025, 12, 3234–3243. [Google Scholar] [CrossRef]
  7. Lin, Y.; Du, L.; Yuen, K.F. Multiple unmanned surface vehicles pathfinding in dynamic environment. Appl. Soft Comput. 2025, 172, 112820. [Google Scholar] [CrossRef]
  8. Luan, T.; Tan, Z.; You, B.; Sun, M.; Yao, H. Path planning of unmanned surface vehicle based on artificial potential field approach considering virtual target points. Trans. Inst. Meas. Control 2024, 46, 1190–1202. [Google Scholar] [CrossRef]
  9. Li, W.; Zhang, X.; Wang, Y.; Xie, S. Comparison of linear and nonlinear model predictive control in path following of underactuated unmanned surface vehicles. J. Mar. Sci. Eng. 2024, 12, 575. [Google Scholar] [CrossRef]
  10. Zheng, H.; Li, J.; Tian, Z.; Liu, C.; Wu, W. Hybrid physics-learning model based predictive control for trajectory tracking of unmanned surface vehicles. IEEE Trans. Intell. Transp. Syst. 2024, 25, 11522–11533. [Google Scholar] [CrossRef]
  11. Jiang, L.; Wang, C.; Shang, X.; Zhang, Z. Two-step event-triggered data driven model predictive control for trajectory tracking of unmanned surface vessel under environmental disturbances. IEEE Trans. Autom. Sci. Eng. 2025, 22, 16801–16813. [Google Scholar] [CrossRef]
  12. Morari, M.; Lee, J.H. Model predictive control: Past, present and future. Comput. Chem. Eng. 1999, 23, 667–682. [Google Scholar] [CrossRef]
  13. Abdelaal, M.; Hahn, A. Predictive path following and collision avoidance of autonomous vessels in narrow channels. IFAC-PapersOnLine 2021, 54, 245–251. [Google Scholar] [CrossRef]
  14. Wang, X.; Liu, J.; Peng, H.; Qie, X.; Zhao, X.; Lu, C. A simultaneous planning and control method integrating APF and MPC to solve autonomous navigation for USVs in unknown environments. J. Intell. Robot. Syst. 2022, 105, 36. [Google Scholar] [CrossRef]
  15. Huang, Y.; Zhang, Z.; Sun, Q.; Li, Y. A formation motion control algorithm of unmanned surface vehicles based on DMPC and improved APF under unidirectional topologies. Unmanned Syst. Technol. 2022, 5, 1–11. [Google Scholar]
  16. He, Z.; Chu, X.; Liu, C.; Wu, W. A novel model predictive artificial potential field based ship motion planning method considering COLREGs for complex encounter scenarios. ISA Trans. 2023, 134, 58–73. [Google Scholar] [CrossRef]
  17. Li, H.; Wang, X.; Wu, T.; Ni, S. A COLREGs-Compliant ship collision avoidance decision-making support scheme based on improved APF and NMPC. J. Mar. Sci. Eng. 2023, 11, 1408. [Google Scholar] [CrossRef]
  18. Ning, B.; Sun, Q.; Wang, S.; Fan, Y. Multi-unmanned surface vehicles formation based on DMPC and improved APF Method. In Proceedings of the 2023 IEEE 23rd International Conference on Communication Technology (ICCT), Wuxi, China, 20–22 October 2023; IEEE: New York, NY, USA, 2023; pp. 117–122. [Google Scholar]
  19. Han, S.; Sun, J.; Ding, S.; Zhou, L. A potential field-based model predictive target following controller for underactuated unmanned surface vehicles. IEEE Trans. Veh. Technol. 2024, 73, 14510–14524. [Google Scholar] [CrossRef]
  20. Menges, D.; Tengesdal, T.; Rasheed, A. Nonlinear model predictive control for enhanced navigation of autonomous surface vessels. IFAC-PapersOnLine 2024, 58, 296–302. [Google Scholar] [CrossRef]
  21. Li, H.; Wang, X.; Soares, C.G.; Ni, S. A collision-avoidance decision-making scheme based on artificial potential fields and event-triggered control. Ocean Eng. 2024, 306, 118101. [Google Scholar] [CrossRef]
  22. Li, W.; Wu, J.; Long, C. Formation control for unmanned surface vehicles based on integrative APF and MPC. In Proceedings of the 2022 IEEE International Conference on Robotics and Biomimetics (ROBIO), Xishuangbanna, China, 5–9 December 2022 2022; IEEE: New York, NY, USA, 2022; pp. 201–206. [Google Scholar]
  23. Wang, L.; Pang, W.; Zhu, D. Event-triggered model predictive control algorithm for multi-AUV formation. Ordnance Ind. Autom. 2023, 42, 67–77. [Google Scholar]
  24. Xue, Y.; Clelland, D.; Lee, B.; Han, D. Automatic simulation of ship navigation. Ocean. Eng. 2011, 38, 2290–2305. [Google Scholar] [CrossRef]
  25. Wang, Z.; Im, N. Enhanced Artificial Potential Field for MASS’s Path Planning Navigation in Restricted Waterways. Appl. Ocean Res. 2024, 149, 104052. [Google Scholar] [CrossRef]
  26. Do, K.D. Synchronization motion tracking control of multiple underactuated ships with collision avoidance. IEEE Trans. Ind. Electron. 2016, 63, 2976–2989. [Google Scholar] [CrossRef]
  27. Zhen, Q.; Wan, L.; Li, Y.; Jiang, D. Formation control of a multi-AUVs system based on virtual structure and artificial potential field on SE(3). Ocean Eng. 2022, 253, 111148. [Google Scholar] [CrossRef]
  28. Han, J. Extended state observer for a class of uncertain systems. Control Decis. 1995, 1, 85–88. [Google Scholar]
  29. Gu, N.; Peng, Z.; Wang, D.; Shi, Y.; Wang, T. Antidisturbance coordinated path following control of robotic autonomous surface vehicles: Theory and experiment. IEEE/ASME Trans. Mechatron. 2019, 24, 2386–2396. [Google Scholar]
  30. Liu, C.; Wang, D.; Zhang, Y.; Meng, X. Model predictive control for path following and roll stabilization of marine vessels based on neurodynamic optimization. Ocean Eng. 2020, 217, 107524. [Google Scholar] [CrossRef]
  31. Kong, S.; Sun, J.; Qiu, C.; Wu, Z.; Yu, J. Extended state observer-based controller with model predictive governor for 3-D trajectory tracking of underactuated underwater vehicles. IEEE Trans. Ind. Inform. 2020, 17, 6114–6124. [Google Scholar] [CrossRef]
Figure 1. Unmanned surface vehicle coordinate system.
Figure 1. Unmanned surface vehicle coordinate system.
Jmse 13 01436 g001
Figure 2. A block diagram of the control scheme based on IAPF-ESO-MPC.
Figure 2. A block diagram of the control scheme based on IAPF-ESO-MPC.
Jmse 13 01436 g002
Figure 3. Schematic diagram of zonal design for narrow waterways.
Figure 3. Schematic diagram of zonal design for narrow waterways.
Jmse 13 01436 g003
Figure 4. Formation obstacle avoidance and tracking: (a) USV trajectory; (b) distances between USVs; (c) minimum distances between USVs and obstacles; (d) control inputs of USVs.
Figure 4. Formation obstacle avoidance and tracking: (a) USV trajectory; (b) distances between USVs; (c) minimum distances between USVs and obstacles; (d) control inputs of USVs.
Jmse 13 01436 g004aJmse 13 01436 g004b
Figure 5. Performance in navigating narrow waterway.
Figure 5. Performance in navigating narrow waterway.
Jmse 13 01436 g005
Figure 6. Distances between USVs.
Figure 6. Distances between USVs.
Jmse 13 01436 g006
Figure 7. Status of USVs: (a) control input of USVs; (b) speed and heading of USVs.
Figure 7. Status of USVs: (a) control input of USVs; (b) speed and heading of USVs.
Jmse 13 01436 g007
Figure 8. Performance in navigating an S-shaped narrow waterway.
Figure 8. Performance in navigating an S-shaped narrow waterway.
Jmse 13 01436 g008
Figure 9. Control input of USVs.
Figure 9. Control input of USVs.
Jmse 13 01436 g009
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

Sun, H.; Xue, Q.; Pan, M.; Liu, Z.; Li, H. Hybrid Obstacle Avoidance Algorithm Based on IAPF and MPC for Underactuated Multi-USV Formation. J. Mar. Sci. Eng. 2025, 13, 1436. https://doi.org/10.3390/jmse13081436

AMA Style

Sun H, Xue Q, Pan M, Liu Z, Li H. Hybrid Obstacle Avoidance Algorithm Based on IAPF and MPC for Underactuated Multi-USV Formation. Journal of Marine Science and Engineering. 2025; 13(8):1436. https://doi.org/10.3390/jmse13081436

Chicago/Turabian Style

Sun, Hui, Qing Xue, Mingyang Pan, Zongying Liu, and Hangqi Li. 2025. "Hybrid Obstacle Avoidance Algorithm Based on IAPF and MPC for Underactuated Multi-USV Formation" Journal of Marine Science and Engineering 13, no. 8: 1436. https://doi.org/10.3390/jmse13081436

APA Style

Sun, H., Xue, Q., Pan, M., Liu, Z., & Li, H. (2025). Hybrid Obstacle Avoidance Algorithm Based on IAPF and MPC for Underactuated Multi-USV Formation. Journal of Marine Science and Engineering, 13(8), 1436. https://doi.org/10.3390/jmse13081436

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

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop