1. Introduction
With recent advances in marine robotics and sensing technologies, AUV has become an important platform for coral reef monitoring, including coral bleaching assessment and biodiversity surveys [
1,
2]. As coral bleaching events become more frequent and severe worldwide [
3,
4], reliable reef monitoring is essential to access the stability of the ecosystem and changes in biodiversity. Due to their mobility and autonomy, AUVs provide a promising approach to repeat large-scale coral reef observation [
5].
However, path planning in coral reef environments remains challenging. Steep seabed terrain, ocean-current disturbances, dense coral communities, and limited battery capacity increase navigation risk and energy constraints [
6,
7,
8]. Environmental disturbances, such as currents, floating debris, and moving marine organisms, may further complicate the planning problem [
9]. Therefore, from the perspective of simulation-based path-planning research, it is necessary to develop a method that jointly considers propulsion energy cost estimation, terrain adaptability, and obstacle-related constraints.
In the AUV path-planning problem, the complexity of finding an optimal path increases rapidly with the size of the search space [
10]. Therefore, an effective planning algorithm should have good search capability in high-dimensional and constrained environments.
As a widely used method for solving NP-hard problems, evolutionary algorithms [
11,
12,
13,
14] can be effectively adapted to complex search spaces but are computationally more resource-intensive and prone to fall into local optima. Li et al. [
15] proposed an improved particle swarm optimization algorithm that incorporates adaptive inertia weights and active particles from the fish swarm algorithm to enhance global search capability. However, the method does not account for the dynamic variability of ocean currents over time, which may compromise the practical applicability of the planned path in real marine environments. Tian et al. [
16] proposed a coevolutionary genetic algorithm, which is applicable to path planning in uncertain three-dimensional submarine current fields by constructing a cooperative mechanism of dual-population and a robust minimum-maximum model. However, this method has insufficient real-time capability and does not fully consider the dynamic coupling relationship between the carrier movement and the flow field. Sarkar et al. [
17] proposed a genetic algorithm driven by domain knowledge, which performs exceptionally well in static environments by introducing four specific operators and combining them with an elite retention strategy. However, the algorithm lacks dynamic adaptability. Xu et al. [
18] proposed a multi-objective algorithm for dimension exploration and differential evolution, which dynamically adjusts the convergence and diversity of the algorithm under different dimensions and identifies key dimensions through dimension perturbation. However, the mutation probabilities of non-critical dimensions need to be manually adjusted and lack adaptability.
Energy constraints and ocean-current disturbances are important factors in AUV path-planning research. To address these factors, recent studies have incorporated ocean-current effects into path-planning methods [
19,
20,
21,
22]. Most existing methods use simplified current models to modify the path-generation process, helping to improve the energy efficiency and feasibility of planned paths at the simulation level. However, simplified current representations may not fully describe current variations in obstacle-rich regions, especially when complex terrain or reef structures affect the local flow field. Zhang et al. [
23] proposed the SVF-RRT* algorithm, which improved computational efficiency. However, this algorithm relies on flow functions to quantify the influence of ocean currents and has poor dynamic obstacle avoidance performance under simulated scenarios. Guo et al. [
24] improved the artificial jellyfish search algorithm (IJS), which reduced the time cost. This algorithm optimizes the AUV path by designing an ocean current interference function. However, the fitting effect of this algorithm is poor and the path energy consumption is high. Yin et al. [
25] proposed a collaborative genetic algorithm, which performed well in a simple ocean current environment. However, the algorithm did not address the coupling relationship between dynamic obstacles and ocean currents.
Although the above algorithms have made progress in path planning under complex seabed current conditions, several critical challenges remain. Specifically, due to the presence of ocean currents and the complexity of seabed obstacles, existing methods struggle to achieve low-cost trajectory optimization while maintaining terrain adaptability and obstacle constraints. To address these challenges in simulation-based path planning scenarios, we propose an improved fixed-width histogram-based estimation of distribution algorithm (IFWH). In complex simulated environments, the IFWH demonstrates the ability to adapt the planned path to varying conditions and to consider the utilization of ocean current energy to improve energy efficiency. The main contributions of this work are as follows:
IFWH incorporates several strategies to improve trajectory optimization performance in complex simulated underwater environments. Piecewise linear chaotic mapping and balance operators improve obstacle avoidance and search-space coverage in offline simulations.
To handle path planning under ocean current constraints, IFWH integrates a logarithmic spiral local search strategy and quadratic interpolation, which generate smooth paths while respecting kinematic constraints and evaluating estimated propulsion energy cost features at the simulation level.
The offline simulation environment is progressively constructed from simple to complex scenarios to evaluate the performance of IFWH in simulations, considering terrain adaptation, obstacle avoidance, and propulsion energy cost estimation.
The remainder of this paper is organized as follows:
Section 2 presents the mathematical model for simulation-based AUV path planning in submarine terrain.
Section 3 introduces the basic FWH algorithm, and
Section 4 describes the proposed IFWH algorithm.
Section 5 presents offline MATLAB R2021a simulation experiments under representative terrain, obstacle, and ocean-current conditions to evaluate the path-planning performance of IFWH.
Section 6 provides the conclusions and discusses the limitations of the study.
2. Mathematical Model for Dynamic AUV Path Planning in Coral Reef Areas
Coral reef ecosystems are highly complex and fragile, making AUV path planning in these scenarios a challenging multi-constraint optimization problem. Steep seabed terrain, complex coral formations, irregular topography, and moving obstacles can affect the feasibility and safety of the path. Therefore, appropriate mathematical models are needed to evaluate terrain constraints, obstacle threats, and path quality in simulation-based planning.
This study considers two main objectives: energy efficiency and navigation safety at the path-planning level. At the path-planning level, the estimated propulsion energy cost is affected by travel distance, current disturbance, relative velocity, and maneuvering behavior. Therefore, an energy-consumption cost function is introduced to evaluate the efficiency of the route in offline simulations.
Navigation safety is evaluated by considering the proximity of obstacles, the risk of collisions with terrain and maneuverability constraints. Path segments close to steep terrain, reef structures, or moving obstacles can increase the risk of collision in the planned trajectory. Excessive variations in slope-angle or turning-angle may also reduce the smoothness and feasibility of the path. Accordingly, this study constructs a unified multi-constraint cost function for simulation-based AUV path planning, including energy-consumption cost, obstacle-threat cost, terrain-collision risk cost, and maneuverability cost. It should be noted that the AUV model in this study is established to evaluate the trajectory-level and estimation propulsion costs during offline optimization. It is not intended to perform closed-loop dynamic simulation or onboard motion control.
According to the motion characteristics of the AUV, ignoring roll dynamics and AUV path planning is based on the kinematic and dynamic models of five-degrees-of-freedom [
26]:
where
x,
y, and
z denote the AUV position in the earth-fixed frame, while
and
denote the pitch angle and yaw angle, respectively. The variables
q and
r denote the pitch and yaw angular velocities in the body-fixed frame, respectively.
where
u,
v,
w,
q and
r are the components of the AUV velocity vector in the body-fixed reference frame, representing longitudinal, lateral, vertical linear velocities, and pitch, yaw angular velocities, respectively.
,
and
constitute the control input vector, corresponding to the thrust forces and moments exerted by the AUV thrusters. Parameters
account for both rigid-body inertia and added hydrodynamic mass effects, while parameters
characterize linear and nonlinear hydrodynamic damping forces. Furthermore, ∇ denotes the displacement volume of the AUV,
g is the gravitational acceleration constant,
is the density of surrounding seawater,
G is the total weight of the AUV, and
is the vertical separation between the center of gravity (CG) and the center of buoyancy (CB), which determines the hydrostatic stability of the vehicle [
27].
Equations (
1) and (
2) provide the physical basis for maneuverability at the planning-level and the evaluation of energy. They are not numerically integrated for every candidate path during IFWH optimization. Instead, their principal motion components are mapped to quantities that can be calculated directly from the waypoint sequence.
The surge component determines the commanded cruising speed used in the travel-time and propulsion-energy estimation. The heave and pitch components are reflected by vertical displacement and path-slope terms, while the yaw component is represented by the heading variation between adjacent path segments. Consequently, the proposed method is a dynamically informed and kinematically constrained geometric path planner rather than a complete actuator-level dynamic trajectory optimizer.
Let
represent the current path node of the AUV in the earth-fixed frame. Its next position is calculated and updated by (
4):
Based on the above model, the planner evaluates candidate waypoint sequences using terrain, obstacle, maneuverability, and energy-related quantities. The optimizer does not directly propagate the complete AUV dynamic state using Equations (
1) and (
2). Instead, it searches for a three-dimensional reference path that is compatible with the principal maneuvering characteristics of the AUV.
During optimization, each candidate path uses a fixed-dimensional representation. Let
denote the fixed number of optimized intermediate waypoints. The encoded path of individual
i is defined as
where
and
are the prescribed start and goal positions and remain fixed during optimization, and
is the
kth optimized intermediate waypoint.
The number of encoded intermediate waypoints remains fixed throughout the IFWH iterations. After optimization, redundant intermediate waypoints may be removed to obtain a more compact final path:
Therefore, the variable number of waypoints refers only to the final post-processed path. The representation used by the histogram-based optimizer remains fixed-dimensional.
2.1. Propulsion Energy Cost Estimation Based on Thruster Characteristics
In simulation-based AUV path planning for submarine ecological monitoring scenarios, propulsion energy cost estimation is an important evaluation factor for simulation-based AUV path planning. The estimated propulsion energy cost is not only related to path length but also affected by local current disturbance, propulsion direction, attitude variation, and thruster efficiency. Therefore, using only the shortest path as the planning criterion may produce trajectories with higher estimated energy cost in counter-current or high-resistance regions. To evaluate this effect, an energy-consumption function based on hydrodynamic resistance and thruster characteristics is introduced into the path-planning fitness function.
The Euclidean distance between two adjacent nodes
and
is denoted as
:
In the
i-
segment of the AUV path, the reference relative velocity of AUV to water is denoted as
. The water resistance overcome by the AUV along a certain propulsion direction is denoted as
:
where
represents the actual navigation speed of the AUV to the ground as set, and
represents the submarine current speed.
where
is the hydrodynamic coefficient of seawater,
is the cross-sectional area of the AUV under force,
is the density of seawater.
and
can vary with the motion state and heading.
In this paper, the formula for the efficiency of the AUV thruster adopted is
where
represents the thrust coefficient,
represents the torque coefficient,
n represents the rotational speed of the propeller, and
D represents the diameter of the propeller.
,
and
n are obtained through multiple propulsion tests and are used to establish an approximate thruster-performance relationship within the tested operating range; the corresponding fitting curve is shown in
Figure 1,
Figure 2 and
Figure 3.
The mechanical power required by the thruster to overcome this resistance is
After considering the efficiency of the thruster
, its propulsion energy cost is
In the
i-
segment of the AUV path, if the AUV is propelled in the main, side and vertical directions respectively by thrusters in three directions, then the total propulsion energy cost is denoted as
:
where
,
and
are the corresponding projection distances in the main, side, and vertical directions.
The total distance between nodes is taken as the principal metric, with the principal push taking the dominant position. Let
, and the lateral and vertical components are calculated based on the heading and pitch projections:
The total propulsion energy cost of the thruster is obtained by accumulating the propulsion energy cost of each section:
It should be noted that the proposed energy model is designed for path-planning optimization rather than accurate prediction of the onboard electrical propulsion energy cost. The model estimates the relative propulsion energy requirement of different candidate trajectories based on hydrodynamic resistance and thruster efficiency characteristics. Electrical losses of the motor driver, battery discharge characteristics, and auxiliary equipment power consumption are not considered because this study focuses on trajectory-level optimization.
The cost function
is given by (
18):
where
represents the remaining distance from the node to the target point, which is used to enhance the global directivity of the path;
represents the number of path nodes, which is used to limit redundant inflection points.
is used for the constraints of other major penalties.
2.2. Obstacle Threat Cost
In submarine path-planning scenarios, static and moving obstacles can affect the feasibility of the planned trajectory. To evaluate these effects in offline simulations, this study constructs an obstacle-threat cost function that incorporates static and moving obstacle threats into a unified path-evaluation framework.
In this model, M static obstacles and K moving obstacles are defined in the simulated environment. The dynamic obstacle model is designed as a simplified prediction model for offline path-planning evaluation. Static obstacles are represented as three-dimensional fixed entities to describe coral colonies or rock masses. Moving obstacles are assigned preset initial positions, target positions, velocities, and movement directions. During each simulated path-update step, the possible next position of a moving obstacle is estimated according to its current position and preset movement direction. The threat of the obstacle to the current path segment is then evaluated based on the distance between the planned path and the obstacle.
The initial coordinates, current position and target endpoint of the K- dynamic obstacle are expressed in sequence as , , .
Its motion update model is shown by (
19).
where
is the position of the dynamic obstacle at the next moment;
is the speed of the
K-
dynamic obstacle; and
represents the movement angle of the obstacle from its current position to its target direction.
To fully capture the three-dimensional impact of obstacles, the obstacle distances are extended to include vertical separation. For a dynamic obstacle, the 3D distance between the path node
and obstacle
k is
where
is a weighting factor for vertical separation, controlling its influence on the threat cost.
Similarly, for static obstacles,
When the AUV moves from the path node
to the next node
, this path segment is threatened by nearby static and dynamic obstacles [
28], as shown in
Figure 4.
The red and yellow circular areas represent static and moving obstacles, respectively. The blue area denotes the obstacle influence range and the green area denotes the passable but potentially risky buffer zone for the planned path.
Figure 4 provides a simplified schematic illustration of the obstacle-threat evaluation concept.
The three-dimensional obstacle-threat model is not established by the schematic itself but by the mathematical definitions of the distance and penalty functions. For both static and moving obstacles, the obstacle distance is evaluated in a three-dimensional space. For moving obstacles, the threat term also includes both the current obstacle position and its estimated next-step position. This design allows the cost function to evaluate the potential influence of moving obstacles on the planned path segment in offline simulations.
Based on the above analysis, the mathematical model
of the obstacle threat cost function in the AUV path planning model is expressed by (
22):
The threat cost of dynamic obstacles consists of two parts—the threat brought by the current position at the moment and the threat brought by the predicted position at the next moment:
The cost of static obstacles is only related to the current distance:
By introducing the obstacle threat cost function , the path planning algorithm based on evolutionary computation can evaluate in real time the distance changes between the current path segment of the AUV and the surrounding dynamic and static obstacles at each step of path update, thereby achieving a dynamic response to environmental threats.
It should be noted that the current dynamic obstacle model focuses on evaluating the feasibility of path planning under predefined motion patterns. The uncertainty caused by sensor noise, incomplete environmental perception, and communication delays is not explicitly considered. Therefore, this study does not claim to provide a complete closed-loop dynamic obstacle avoidance framework for practical AUV deployment.
2.3. Cost of Terrain Collision Threat
In simulated submarine coral reef monitoring scenarios, the environment is characterized by complex three-dimensional terrain, including coral reef protrusions, steep seamounts, and irregular reef structures. These terrain features may significantly affect the feasibility and quality of the planned trajectory. If terrain constraints are not properly considered, the generated path may intersect with seabed terrain or reef structures in the simulation. Therefore, a terrain-collision cost function is introduced to evaluate topographic safety and eliminate infeasible path segments during the path-planning process.
To more accurately determine whether the AUV track will collide with the submarine topography, this study introduces three-dimensional spline interpolation between two adjacent path nodes
[
29]. The interpolation method can generate a denser set of interpolation points in each flight segment:
It contains Q intermediate points. The number of interpolation points Q is determined based on the complexity of the seabed topography and the resolution of the map.
Interpolation point represents the coordinates of this point in three-dimensional space, where indicates the depth of the AUV track at this point. The seabed elevation at the horizontal coordinate is expressed as . By comparing the depth of the interpolation point with the terrain height of the corresponding position, if is less than or equal to the terrain height, it indicates that the AUV track has collided with the seabed terrain or coral reef structure.
Based on the above definition, the terrain collision cost function
of the AUV is expressed by (
26):
The collision cost of each path segment is
The collision penalty term is defined as
When a terrain collision occurs at any interpolation point, the cost is assigned to infinity to ensure that the path is completely eliminated during the optimization process, thereby guaranteeing that the AUV’s track does not have any physical collisions with coral reefs or submarine topography.
2.4. Dynamics-Informed Heading- and Slope-Angle Constraint Cost
In simulation-based AUV path planning, heading- and slope-angle variations are important factors affecting path smoothness and maneuverability. From the perspective of the 5-DOF model, abrupt changes in heading and slope correspond to rapid yaw and pitch maneuvers, which may increase the required control effort and estimated propulsion energy cost. Such changes may also produce paths that are difficult to execute under practical kinematic constraints. Therefore, heading- and slope-angle variation costs are introduced to penalize abrupt horizontal-direction and depth changes.
Let the candidate path contain
S segments. For the
ith segment connecting
and
, the heading angle is defined as
To avoid the angular discontinuity at
, the heading variation between two consecutive segments is calculated as
The slope angle of the
ith segment is defined as
and the slope-angle variation between two consecutive segments is
Excessive values of and indicate abrupt yaw and pitch maneuvers, respectively. Therefore, the maximum allowable heading- and slope-angle variations are denoted by and . A quadratic penalty is imposed only when the corresponding variation exceeds its prescribed threshold. This formulation allows small attitude adjustments while suppressing abrupt maneuvers.
The maneuverability cost associated with two consecutive path segments is defined as
where
and
are the weights assigned to the heading- and slope-angle variation penalties, respectively. The heading-angle variation penalty is
Similarly, the slope-angle variation penalty is
Because a path containing
S segments has
pairs of consecutive segments, the total dynamics-informed maneuverability cost is
This cost maps the yaw- and pitch-related maneuvering characteristics of the 5-DOF model to quantities that can be evaluated directly from the waypoint sequence. It improves the smoothness and kinematic executability of the planned path without requiring repeated numerical integration of the complete nonlinear AUV dynamic equations.
2.5. Total Cost Function
Path planning is an important research problem in simulated submarine coral reef monitoring scenarios. In complex three-dimensional seabed terrain and current-disturbance conditions, a planned path should reduce path length, avoid intersections with static obstacles such as coral reefs and seamounts, consider the influence of moving obstacles, and maintain sufficient clearance from seabed terrain. These factors increase the complexity of the path-planning problem in environments with a complex obstacle system and terrain. Therefore, this paper proposes a comprehensive cost function for simulation-based AUV path planning in coral reef monitoring scenarios:
To avoid weight imbalance caused by different dimensions, a normalized sub-term
(
) is used in the formula, which is defined by (
38):
where
and
represent the upper and lower bounds of the sub-costs observed in the current search space or historical samples, respectively, and
is a small constant to prevent division by zero.
4. The Proposed IFWH Algorithm for AUV Path Planning
Although the traditional FWH algorithm can rapidly estimate the probability distribution of different regions in complex environments, it still has deficiencies in the high-dimensional environment, the accuracy of the distribution approximation and the capture of local details. When the coral reef terrain shows obvious local sharp changes or dynamic obstacles frequently move, FWH is prone to problems such as smooth transitions or loss of details. To enhance the adaptability of FWH in complex seabed environments, this paper proposes an improved fixed-width histogram algorithm, termed IFWH algorithm. By integrating the chaotic sequence initialization strategy based on PWLCM, the quadratic interpolation strategy, the adaptive transfer strategy based on global search and local refinement, and the spiral search local enhancement strategy, IFWH can generate higher-quality planned paths in complex simulated submarine terrains, especially in terms of path feasibility, smoothness, obstacle avoidance, and propulsion energy cost estimation.
4.1. Chaotic Sequence Initialization Strategy Based on PWLCM
Traditional FWH usually generates sampling points randomly during the initialization stage. However, this approach not only fails to fully utilize prior sensor data, but also easily leads to uneven distribution and incomplete coverage, introducing statistical bias into the environmental model at an early stage. For this reason, this paper introduces the PWLCM chaotic sequence initialization strategy in the initial histogram construction stage of FWH. This strategy utilizes chaotic sequences to generate more sampling points in the passable areas identified by the sensors, while reducing the sampling density in obstacle areas. This method results in a more uniform distribution of initial samples throughout the environmental space.
The mathematical representation of the PWLCM chaotic map is (
48):
where
r is the control parameter,
. A random sequence on the interval
is obtained through cyclic iteration, which has good statistical properties [
31].
The generated chaotic sequence is mapped to the search interval
of each dimension to construct the initial sample points. If
N initial samples need to be generated, then take the sequence value
for each sample
i and dimension
j, and the mapping formula is (
49):
Substitute the initial samples generated by PWLCM into a fixed-width histogram for statistics to obtain the initial frequency estimation of the
h-
interval in the
j-
dimension:
To prevent the occurrence of zero-probability intervals, a smoothing constant
is added to all
during implementation and normalized:
4.2. Quadratic Interpolation Strategy
Due to the fixed-width division method adopted by traditional FWH, there is a problem of insufficient resolution in detail expression, which makes it impossible to accurately capture local terrain changes and thus affects the smoothness and feasibility of the path. To solve this problem, this paper introduces the quadratic interpolation strategy. When the sensor detects local terrain undulations or small obstacles not included in the prior map, the algorithm triggers the quadratic interpolation module to generate denser local refinement points without changing the dimension of the encoded trajectory vector.
Three points
,
,
are selected within the current analysis range of a certain dimension
j.
is the independent variable of this dimension, and
is the evaluation value at this position. Fit with a quadratic polynomial
in this dimension. The coefficients
are determined by the linear system:
If
, the extreme points of the quadratic function are determined by (
54). If
exceeds the boundary or
is approximately 0, the degradation strategy is to directly select the corresponding position with the best cost among the current three points, as shown in (55):
4.3. Adaptive Transfer Strategy for Global Search and Local Refinement
In the histogram update stage, traditional FWH often fails to dynamically adjust the search strategy based on the complexity of the environment, resulting in the coexistence of global statistical bias and the lack of local details. To solve this problem, this paper designs an adaptive transfer strategy based on global search and local refinement. In the early stage of the search, IFWH models the macroenvironment based on the statistical trend of the global histogram, enhancing the exploration ability of the overall safety zone, the distribution of major obstacles and low-cost channels. In the later stage of the search, when the candidate paths gradually concentrate in several advantageous intervals, the algorithm automatically enhances the weight of local refinement, gradually shifting the update process towards high-precision environmental estimation.
Define a control parameter
to represent the global preference degree. The larger
is, the more it leans towards global sampling, and it varies with the number of iterations
t:
where
T is the maximum number of iterations;
and
are the initial and final global preference weights, respectively; and
controls the attenuation rate.
The adaptive transfer rule based on is as follows: when generating each new sample in the number of iterations t, a uniform random number is first taken. If , IFWH performs global histogram sampling. Otherwise, IFWH performs local refinement, prioritizing the use of quadratic interpolation or spiral search to generate samples near the dominant interval.
4.4. Spiral Search Local Enhancement Strategy
In highly complex coral-dense areas, there may still be some critical path regions that require more in-depth local searches. For this reason, this paper further introduces the local enhancement strategy of spiral search. Spiral search utilizes the gradually contracting spiral trajectory to conduct multi-directional and multi-scale detection of the dominant interval, which can help the algorithm perform denser local estimation in key areas, thereby obtaining higher-accuracy environmental information.
Let the projection of the center of a certain dominant interval on the two-dimensional plane be
. Define the initial radius
, the contraction factor
at each step, and the angular step size
. Then, the spiral point at the
k-
step is given by (
57):
where
;
is the starting angle. For an
n-dimensional space, points can be generated within a local plane composed of two principal directions
using the same formula:
where
c represents the position of the current advantageous range;
represents the two orthogonal directions of this point locally. Generate a series of
points and map them back to the feasible region; evaluate the cost
of each
and add the better ones to the new candidate set.
4.5. The Proposed IFWH Algorithm
In the complex coral reef seabed terrain environment, the AUV path planning problem poses higher requirements for the algorithm’s global optimization ability, local search accuracy, and dynamic response speed. The general process of the path planning strategy based on the IFWH algorithm is shown in Algorithm 1.
| Algorithm 1 IFWH planning and time-resolved collision validation |
- Require:
Start point , goal point , search space Ω, terrain map , static obstacles , dynamic obstacles , ocean-current field , population size N, maximum optimization iteration number T, environmental time step , and number of histogram intervals . - Ensure:
Best feasible path .
- 1:
Initialize the AUV parameters, cost-function weights, safety thresholds, and IFWH parameters. Set the environmental time and optimization iteration index . - 2:
Generate the initial population using the PWLCM chaotic mapping strategy. - 3:
Update the dynamic environment according to the physical simulation time:
where denotes the dynamic obstacle motion model. Estimate the next-step positions of dynamic obstacles. - 4:
while do - 5:
Evaluate each candidate path under the current environmental state at time . Check whether the candidate path satisfies the boundary constraint of search space Ω. If the candidate violates the constraint, assign a sufficiently large penalty. - 6:
For each feasible candidate path, compute the propulsion-energy cost , obstacle-threat cost , terrain-collision cost , and maneuverability cost . - 7:
if terrain collision occurs or the candidate path intersects an obstacle then - 8:
Assign an infinite or sufficiently large penalty. - 9:
else - 10:
Calculate the total cost: - 11:
end if - 12:
Select elite candidate paths according to and update the fixed-width histogram probability model using the elite paths. - 13:
Compute the adaptive global-search weight . For each new candidate path, generate a random number . - 14:
if then - 15:
Generate the candidate by global histogram sampling; - 16:
else - 17:
Perform local refinement using quadratic interpolation or spiral search. - 18:
end if - 19:
Form the new population using the newly generated candidates and elite retained paths, and update . - 20:
end while - 21:
After the maximum optimization iteration number is reached, output the feasible path with the minimum total cost as . - 22:
When replanning is required, update the environmental time and repeat Steps 3–10 using the updated dynamic obstacle states.
|
4.6. Computational Complexity and Runtime Analysis
To avoid ambiguity, different symbols are used for the grid size and the population-related quantities. Let denote the number of grid nodes, the population size, the dimension of an encoded candidate trajectory, T the maximum number of iterations, the number of histogram intervals per variable, S the number of path segments, M the number of obstacles, and the number of dynamic obstacles.
For A
*, the grid contains
V vertices and at most
edges because an eight-connected neighborhood is used. With a binary-heap priority queue, its complexity is
where
. In the current MATLAB implementation, the minimum open-set cost is obtained by scanning the grid. Therefore, its practical worst-case complexity is
.
Both FWH and IFWH are population-based estimation-of-distribution algorithms. For each iteration, evaluating the trajectory costs of all individuals requires approximately . Elite selection requires when sorting is used. Constructing the marginal histogram model requires , while sampling a new population requires .
The collision-evaluation cost depends on the obstacle representation. When occupancy is queried directly from a grid map, checking all segments of all candidate trajectories requires
. When every trajectory segment is explicitly checked against
M individual obstacles, the worst-case collision checking cost becomes
. Therefore, the total worst-case complexity of FWH over
T iterations is
IFWH retains the population evaluation, elite selection, histogram construction, and sampling operations of FWH. It additionally introduces chaotic population initialization, an adaptive global–local search strategy, quadratic interpolation, spiral refinement, and dynamic-obstacle prediction. Chaotic initialization is performed once and requires
. In the worst case, local refinement of the candidate population requires an additional
per iteration, while updating and predicting
dynamic obstacles requires
per iteration. Thus, the total complexity of IFWH is
Compared with the original FWH algorithm, IFWH therefore has a higher actual computational cost because of chaotic initialization, adaptive search control, local refinement, and dynamic-obstacle prediction. However, these additional operations are linear in the population size, trajectory dimension, or number of dynamic obstacles. They do not introduce a higher-order term than the population fitness evaluation and collision checking already required by FWH. Consequently, when
,
D,
S, and
M dominate the computation, FWH and IFWH retain the same leading asymptotic complexity order. The improvement of IFWH is therefore achieved at the cost of a moderate increase in constant factors and lower-order computational terms rather than a change in the dominant Big-
O order. The computational complexity of different algorithms is summarized in
Table 1.
6. Conclusions
This study develops an improved fixed-width histogram algorithm named IFWH for simulation-driven AUV path planning in coral-reef underwater environments. Within a fixed-dimensional estimation-of-distribution framework, IFWH integrates PWLCM chaotic initialization, quadratic interpolation, adaptive global–local search switching, and logarithmic-spiral local refinement. A multi-constraint fitness function is constructed to evaluate path length, predicted propulsion energy, obstacle threat, terrain collision risk, as well as heading and slope variations. The proposed approach is positioned as a dynamics-informed geometric path planner, where the AUV dynamic model provides physical support for cost-function formulation, while full nonlinear vehicle dynamics and actuator states are not explicitly propagated during optimization.
For terrain experiments without ocean currents, IFWH achieves an effective balance among path length, terrain adaptability, and propulsion energy cost. In Scenario A, IFWH reduces the average slope by 43.91%, 47.24%, 44.94%, and 43.71% compared with A*, FWH, IPSO, and SVF-RRT*, respectively. Meanwhile, the estimated propulsion energy consumption is reduced by 35.29%, 37.38%, 24.66%, and 35.93%, respectively. In Scenario B, IFWH obtains the lowest average slope of 13.11° and reduces it by 48.85%, 17.18%, 19.57%, and 39.97% compared with A*, FWH, IPSO, and SVF-RRT*, respectively. The corresponding propulsion energy cost is 1114.79 J, which decreases by 26.01%, 41.31%, 0.43%, and 16.34%, respectively. Although some optimization-based methods generate shorter paths, IFWH achieves smoother terrain-following trajectories with improved energy efficiency.
Under overlapping seabed-current conditions, IFWH maintains robust performance and achieves feasible trajectories over 30 independent trials. The proposed method obtains average slope angles of 15.58° and 18.73° in the two current-disturbed scenarios, with estimated propulsion energy costs of J and J, respectively. These results indicate that IFWH can effectively adapt trajectory generation to complex terrain-current interactions while reducing unnecessary vertical maneuvers.
Experiments involving static obstacles, dynamic obstacles, and time-varying ocean currents further demonstrate the feasibility of IFWH under the considered simulation settings. All trials remain collision-free under both following-current and rotary-current conditions, with average planning times of and , respectively. However, these results are limited to the adopted simulation environments, obstacle generation strategies, parameter configurations, and random seeds, and do not represent guaranteed safety in arbitrary underwater scenarios.
The current study focuses on offline trajectory planning rather than a complete real-time autonomous navigation system. Nevertheless, the proposed IFWH framework has potential value as a high-level trajectory generation module within a hierarchical AUV autonomy architecture. Specifically, IFWH can provide globally optimized reference trajectories that simultaneously consider terrain adaptability, energy efficiency, obstacle avoidance, and maneuverability constraints, which may serve as informative guidance for subsequent low-level tracking and control layers. Such reference trajectories could potentially be integrated with nonlinear model predictive controllers (NMPC), adaptive controllers, or learning-based control policies to achieve closed-loop trajectory execution while considering vehicle dynamics, actuator constraints, and external disturbances.
Furthermore, the optimization characteristics of IFWH may provide useful prior knowledge for data-driven control approaches. For example, IFWH-generated trajectories could be used as expert demonstrations for imitation learning or as initialization strategies for reinforcement learning, thereby reducing inefficient exploration and improving training efficiency. In practical missions, the combination of IFWH-based global planning with real-time local replanning and state estimation modules may enable adaptive responses to dynamic environmental changes.
However, these potential integrations have not been experimentally validated in the present study. The current results are limited to offline MATLAB R2021a simulations and do not include closed-loop tracking, onboard computation, sensor uncertainty, hydrodynamic model mismatch, communication latency, or actuator saturation effects. Future research will therefore focus on hardware-in-the-loop validation, physical AUV experiments, integration with low-level trajectory tracking controllers, and the development of closed-loop autonomous planning and control frameworks.