Abstract
In order to address the autonomous underwater vehicle navigation challenge for dam inspections, with the goal of enabling safe inspections and reliable obstacle avoidance, an improved smooth Ant Colony Optimization algorithm is proposed for path planning. This improved algorithm would optimize the smoothness of the path besides the robustness, avoidance of local optima, and fast computation speed. To achieve the goal of reducing turning time and improving the directional effect of path selection, a corner-turning heuristic function is introduced. Experimental simulation results show that the improved algorithm performs best than other algorithms in terms of path smoothness and iteration stability in path planning.
Keywords: Improved ant colony optimization, Safety factors, Dam inspections
1. Introduction
Chinese dams were mostly built between the 1950s and 1980s [1], and due to low design standards, poor construction quality, inadequate management systems, and insufficient dam risk research [2], some small dams from that period experienced premature aging problems. Their actual safety lifespan was even less than 30 years [3], which not only affected project efficiency but also posed serious safety risks [4].
Therefore, regular inspections of dams are necessary for their normal and safe operation. Path planning is an important field of research in autonomous underwater vehicle (AUV) [5]. Path planning can be categorized based on the environment into static and dynamic scenarios [6]. In a static environment, both the starting point and the destination are fixed [7], and obstacles are also stationary. In contrast, dynamic environments involve obstacles that are constantly in motion [8]. When planning the path for a robot, environmental recognition can be classified into global path planning and local path planning [9]. Global path planning represents a scenario where obstacles are known before planning [10]. Local path planning refers to an unknown environment where suitable paths are planned by scanning the environment map with radar to locate obstacles [11]. The methods used in path planning include the artificial potential field method [12], particle swarm optimization [13], A-Star algorithm [14], ant colony algorithm [15], genetic regulatory networks [16], genetic algorithm [17], D-star algorithm [18], and neural network algorithm [19]. The ant colony algorithm (ACO) is based on the foraging process of ants in nature. This algorithm continuously updates the current path until finding an optimal path. Due to its strong robustness and good information feedback, the ant colony algorithm has gained widespread attention. However, it has issues such as slow convergence, low efficiency, and susceptibility to local optima.
In response to the aforementioned issues, Pei and Chen [20]proposed a dynamic adaptive parameter adjustment strategy for the ACO method by integrating a generalized pheromone updating rule. This strategy effectively improves the search efficiency and solution quality for obstacle avoidance in mobile robots. Liu, Yang, Liu, Tian, and Gao [21] introduced a new improved ACO algorithm that combines pheromone diffusion and geometric local optimization, resulting in faster convergence of ACO. Wang, Yang, Zhang, and Meng [22] utilized the artificial potential field method to adjust the initial value of ACO pheromone, set an iteration threshold, and adjust the evaporation coefficient to prevent ACO from getting trapped in local optima and enhance its search capability. Zhang, Wang, Fu, and Su [23] used random value initialization for pheromone and performed crossover operations to improve the search capability of ACO, although at the cost of reduced convergence speed. Sui F [24] proposed a dual-layer hybrid algorithm called ACO + PSO + A* for multi-task path planning in Autonomous Underwater Vehicles (AUVs). In this algorithm, the concept of adaptive pheromone evaporation rate is introduced, along with parameter settings and algorithm performance evaluation. The improvements in the algorithm mainly focus on path planning and obstacle avoidance strategies to address complex marine environments. Wu L [25] introduced enhanced heuristic functions, adaptive pseudo-random transfer rules, and a method for unevenly distributed pheromones. This approach, combined with the traditional ACO algorithm, resulted in an improved adaptive ACO algorithm. Ntakolia C [26] proposed an enhanced ant colony algorithm for local path planning under multi-modal constraint conditions to improve the path planning efficiency of Unmanned Surface Vehicles in response to complex marine environments. Xie X [27] combined ant colony algorithm and chaos optimization algorithm, introducing information pheromone differential update strategy and local search optimization strategy. Through the chaos optimization algorithm, a large number of paths are randomly generated, and pheromones are left on paths with lower effective doses. The information pheromone differential update strategy updates the pheromone concentration based on the effective dose of the path, increasing the attractiveness of paths with lower radiation doses, thus improving the algorithm's efficiency. Additionally, a local search optimization algorithm is introduced to find paths with lower effective doses. He P [28] proposed a self-learning ant colony optimization algorithm by combining ant colony algorithm with a self-learning mechanism to address path planning problems in dynamic public transportation networks.
However, most existing path planning methods rarely consider path smoothness and safety. In the case of AUV underwater inspections, neglecting path smoothness can result in excessive energy consumption due to underwater resistance, leading to premature termination of inspection tasks due to battery depletion. It can also cause instability and affect the detection devices on the AUV, thereby impacting the overall inspection results. Hence, an improved Smooth Ant Colony Optimization (SACO) is proposed, with the objective of achieving the shortest path length and highest smoothness. This algorithm solves the path nodes for AUV in a known working environment, determining the sequence of path nodes for the AUV.
This article's contributions are as follows.
-
⁃
Conducting two rounds of expansion on irregular obstacles that do not fully occupy the grid to prevent collisions and ensure safety.
-
⁃
To address the issue of ant colony algorithms easily falling into local optima, a new pheromone update strategy has been designed.
-
⁃
Designing a fitness function that comprehensively considers path length and global tortuosity. The objective is to achieve optimized overall performance by minimizing planned path length and reducing abrupt changes.
-
⁃
Through a series of simulations and experiments, our method has been demonstrated to outperform existing works in terms of path length, path smoothness, computational speed, and other aspects.
2. AUV path planning problem and mathematical model
-
a.a
Problem Description
The AUV path planning problem studied in this paper belongs to the category of priori-based global path planning [29], which can be described as follows: An AUV is tasked with conducting survey operations at known locations within a designated work area. From the above description, it is evident that this is an AUV path planning problem, with the primary objective of finding a path between the AUV's starting and ending positions, ensuring collision-free navigation, and minimizing the number of path segments and turning angles during the AUV's trajectory.
-
a.b
Establishment of AUV Mathematical Model
During AUV dam inspection missions, a lack of path smoothness in the planned trajectory can lead to abrupt changes and sharp turns, which hinder accurate identification. Conversely, optimizing path length not only enhances economic benefits and cost-saving but also improves task execution efficiency. Consequently, to holistically address various aspects of dam inspection tasks, a mathematical model is proposed. The objective is to minimize both the planned path length and the occurrence of abrupt changes, aiming to achieve an optimized comprehensive performance.
| (1) |
| (2) |
| (3) |
| (4) |
| (5) |
The main constraints in AUV path planning include.
-
(1)
Terrain constraint: To ensure the safety of the AUV during navigation, it is necessary to avoid areas with terrain obstacles, which are defined as regions that the AUV cannot traverse underwater. Let the set of non-traversable regions in the planning area be denoted as . To more effectively consider the actual size of robots and factors such as positioning errors that may exist during path execution, it is necessary to subject obstacles to a certain degree of inflation processing. This ensures that the generated path will not lead to collisions during actual execution, thereby enhancing the safety and feasibility of the path. Expanding the range of the original obstacles yields . The inflation factor is determined based on the actual size of the AUV. As a result, the terrain constraint in the planning area can be represented by the path curve , where represents the latitude and longitude coordinates of any point on the path and satisfies the constraint in Equation (3).
-
(2)
Maximum range constraint: The farthest distance that the AUV can travel is limited by its onboard energy. Therefore, the energy constraint needs to be considered in the path planning. The AUV's range constraint can be represented by Equation (4), where represents the maximum distance that the AUV can travel and represents the path length planned by the algorithm.
-
(3)
Turning angle constraint: Due to the limitations of its maneuvering capabilities, the AUV needs to adhere to a certain range of angles when making turns. The maximum allowable turn angle of the AUV is , and for any turning angle , the constraint is represented by Equation (5).
The formulas for calculating the path length and path tortuosity in the objective function are as follows:
| (6) |
| (7) |
| (8) |
| (9) |
(6), (7) are used to calculate the path length of the -th path. (8), (9) are used to calculate the local path tortuosity for the -th path.
Formula (8) calculates the local path tortuosity for the -th search of the -th path. represents the angle formed between the vectors (formed by the -th search result and the -th search result ) and (formed by the -th search result and the -th search result ). It indicates the amount of direction change when the AUV follows the planned path. A smaller value indicates a smoother path.
Formula (9) calculates the path tortuosity of a given path by cumulatively adding up the values of pt formed by each set of three consecutive path points until reaching the -th path point. The resulting value represents the degree of curvature in the path. A smaller value indicates a smoother and less tortuous path, which is generally considered better.
3. Environment modeling
In practical applications, AUV often operate in complex underwater environments filled with obstacles or pipelines. To accurately plan the path for the robot, a two-dimensional modeling of the AUV's working environment is required. The grid-based method is used for environmental modeling, where the maximum side length of the AUV is taken as the unit grid length "l" to facilitate the robot's turning direction.
The areas containing the lathe and the shelf are designated as obstacle regions (see Fig. 1).If there are irregular obstacles that do not completely occupy a grid, they are processed for initial inflation to fully occupy the grid (see Fig. 2).Based on this, further inflation is performed on the obstacles to prevent collisions, with the inflation size set to l/2, and the grid activity value is set as 1 for the inflated areas(see Fig. 3).
Fig. 1.

Actual obstacles.
Fig. 2.

First expansion.
Fig. 3.

Secondary expansion.
The remaining areas are designated as free movement regions with a grid activity value of 0, indicating that the AUV can freely navigate through these areas without any obstacles.
The grid index is equal to the corresponding index of the grid in the map matrix. The formula for converting the index to the grid is as follows:
| (10) |
| (11) |
The AUV is abstracted as a particle, and its movement rules are as follows:
The AUV can freely move in the free grids, but it cannot move in the black obstacle regions. However, since the obstacles have undergone inflation processing, the AUV can pass through the corners of the obstacle grids.
During the operation of the AUV, a taboo list is set up to prevent it from passing through the same point repeatedly.
In each unit of time, the robot can move one grid in one of the eight directions: up, down, left, right, as well as upper right, lower right, upper left, and lower left.
4. Algorithm design
-
c.a
Ant Colony Algorithm
The ant algorithm is a biomimetic algorithm derived from the natural world of biological organisms. As a general-purpose stochastic optimization method, it incorporates the behavioral characteristics of ants in the insect kingdom and has been effective in solving a series of difficult combinatorial optimization problems through its inherent search mechanism.
Based on observations and research by entomologists, it has been found that ants in the biological world have the ability to find the shortest path from their nest to a food source without any visible cues. They can adaptively search for new paths and make new choices as the environment changes. When ants, as insects, search for food sources, they can release a unique secretion called pheromone on the path they have traveled. This allows other ants within a certain range to detect and be influenced by it, affecting their future behavior. As more ants pass through certain paths, they leave behind more pheromone trails, which leads to an increase in the intensity of the pheromone (pheromone gradually diminishes over time). Consequently, later ants have a higher probability of choosing that path, further increasing the intensity of the pheromone on that path. Since the principle is a positive feedback mechanism, the ant algorithm can be understood as an enhanced learning system. The basic principle is as follows:
When ants move, they select paths based on the concentration of pheromone and a distance heuristic function. The probability of an ant moving from one grid to another can be expressed as:
| (12) |
In this context, represents the pheromone heuristic factor, and represents the distance expectation function factor. They respectively influence the importance of pheromones and distance in the heuristic functions. denotes the set of possible destinations for the ant to reach in the next step. represents the concentration of pheromones on the current path at time . represents the distance heuristic function.
| (13) |
| (14) |
Each ant leaves behind some pheromones while moving, so as the algorithm iterates, the pheromones accumulate and also gradually evaporate. After all ants complete their first iteration, the pheromone concentration on the paths is refreshed according to the following equation:
| (15) |
| (16) |
| (17) |
In this context, represents the pheromone evaporation coefficient; represents the number of ants. represents the sum of added pheromones between two points; represents the increment of pheromones on the two points; represents the length of the path traveled by ants, and represents the pheromone reinforcement coefficient.
-
c.b
Improvement of Ant Colony Algorithm
If only basic ant colony algorithms are used for robot path planning, the consideration of path factors in the heuristic function is limited to local paths using greedy algorithm thinking. This approach not only tends to produce local optima but is also not the best choice when analyzing from a global path perspective. Furthermore, neglecting the influence of local paths may affect the precision of machine detection during inspections and even lead to safety concerns. In response to the above issues, reasonable optimization strategies and improvement solutions are proposed which include introducing a corner heuristic function to enhance path selection direction and reduce turning time. Additionally, improving the heuristic function enables the rapid identification of optimal paths.
4.1. Penalty factor
To penalize solutions that do not meet the objective and make the algorithm more inclined to search for satisfactory solutions, a penalty factor is introduced.
| (18) |
| (19) |
Formula (17) represents whether the search path reaches the target point. If it does . When the constraint conditions for a successful search path are not met .
4.2. Improvement in pheromone update strategy
In order to address the issue of the ant colony algorithm getting stuck in local optima, this paper has made improvements to the pheromone update strategy. The specific modifications are as follows:
| (20) |
| (21) |
In this context, where is the pheromone adjustment factor, and is the maximum pheromone value. When the pheromone level at a certain point is excessively high, the increment of the pheromone, represented as , will also increase. Consequently, as () decreases, will decrease as well. Therefore, effectively adjusts the pheromones at that location for the next time step, preventing the pheromones at various points from getting disproportionately larger and thus avoiding local optima in the pheromone distribution.
4.3. Designing a holistic fitness function
In order to ensure the effectiveness of comparing the objectives, given that the path length and global curvature vary on different scales, we will use the Min-Max normalization method to normalize both indicators before designing the holistic fitness function.
Normalization formula:
| (22) |
The numerical range of path curvature and path length in the search results is dependent on the spatial position of the starting point and the target point .
| (23) |
The weights "α" and "β" represent the respective factors. Based on the relative importance of the two optimization objectives in the practical application of AUV, it can be deduced from the definition of the comprehensive fitness function mentioned above that the smaller the corresponding fitness value, the higher the superiority of the path.
4.4. Safety heuristic function
Taking into consideration that excessive turns during the robot's movement will not only increase the walking distance but also pose a higher level of danger, this paper introduces a safety heuristic function to enhance the stability of the robot during its traversal. This is done in order to mitigate the risks associated with a high number of turns.
| (24) |
In the equation: represents the heuristic constant; denotes the safety degree constant; is the size of the set of unvisited grid cells; represents the transition direction from current grid node to the next grid node at moment ; and represents the transition direction from previous grid node to current grid node at moment . From this formula, it can be inferred that when the current transfer direction at time is consistent with the previous transfer direction , it will increase the likelihood of moving in the same direction. This encourages the robot to move along a straight line as much as possible
4.5. Improved heuristic function
In the basic ant colony algorithm, the heuristic function relies solely on the distance between the current grid cell and the candidate grid cell . However, using this method alone does not establish a connection with the destination, resulting in a weak routing effect of the distance heuristic function. The ants are unable to effectively utilize both the pheromone concentration and the distance between the grid cells. This diminishes the search efficiency and the ultimate pathfinding result of the ant colony algorithm. Therefore, this paper proposes an improved heuristic function, where the value of the function is determined by both the distance between the current grid cell and the candidate grid cell , and the distance between the candidate grid cell and the target grid cell , as shown in Equation (22):
| (25) |
Where represents the distance between the candidate grid cell and the target grid cell , represents the distance between the current grid cell and the candidate grid cell , represents the distance between the starting grid cell and the target grid cell . The values of represent amplification factors that can be adjusted based on the environment.
To facilitate the computation of the heuristic function, a matrix of adjacent grid cell distances is established for each grid cell as shown in Equation (23).
| (26) |
The equation contains several symbols: represents the width of a single grid cell, represents the state of grid cell , with a value of 0 indicating a feasible grid cell and 1 indicating the presence of an obstacle. represents the state of the candidate grid cell, with a value of 0 indicating a feasible grid cell and 1 indicating the presence of an obstacle. represents the directional index of the candidate grid cell relative to , with its value determined as shown in Figure (4). represents the three neighboring grid cells adjacent to the candidate grid cell, while represents the neighboring grid cell perpendicular to the diagonal direction. The specific arrangement can be seen in Figure (4).
Fig. 4.
Grid distance matrix.
Path local turning degree heuristic function:
| (27) |
The symbol represents the angle between the line connecting the starting grid and the current grid , and the line connecting the current grid and the candidate grid .
The formula for the path selection probability is as follows:
| (28) |
-
c.c
Solving Process
The algorithm procedure is as follows.
-
(1)
Initialization: Set the number of iterations, population size, and number of ants. Randomly generate an initial path.
-
(2)
Ant movement: Following the rules of the ant colony algorithm, each ant selects the next node to move to based on a certain strategy. During the movement, ants deposit pheromones.
-
(3)
Pheromone update: There are two ways to update the pheromone strength based on feedback information: global update and local update.
-
(4)
Best solution selection: After each iteration, evaluate the path length and smoothness of each ant and select the best path for that round.
-
(5)
Smoothness optimization: Apply a path smoothing algorithm to optimize the best path, improving its overall smoothness.
-
(6)
Termination criterion: Continue the iteration process until the specified number of iterations is reached or the iteration results are consistently the same for multiple generations. Once the stopping criteria are met, indicating the lowest energy consumption path has been found, further smoothing is applied to obtain a smooth path suitable for AUV tracking.
5. Experiment and simulation
-
d.a
Software Development Environment
The MATLAB R2023a simulation software was used in this study to simulate the traditional ant colony algorithm and the improved algorithm. The simulation is focused on the path planning process of a mobile robot on a ground with obstacles. Since the simulation process of the ant colony algorithm involves roulette wheel selection, each run may produce different results. Therefore, multiple simulations were conducted for each algorithm in the experiment, and the central results were taken to evaluate the superiority or inferiority of the algorithms.
-
d.b
Orthogonal Test
In the experiment, following empirical practices, the ant colony algorithm parameters are initialized as: , , , , , . On this basis, in order to test the impact of the introduced safety factor and tortuosity factor on algorithm performance, orthogonal experiments are conducted on these two parameters. According to experience, the safety factor is set with three values: 1, 2, and 3, while the curvature factor is set with three values: 2, 3, and 4. Under the same conditions(see Fig. 5), with a fixed number of 60 iterations and other parameters held constant, a total of 9 combinations are tested. Each combination is tested four times, resulting in a total of 36 tests for the number of turns, path length, and average fitness. The results, as presented in Table 1, are sorted based on fitness.
Fig. 5.
20 × 20 environmental map.
Table 1.
Orthogonal experiment.
| PL | fitness | |||
|---|---|---|---|---|
| 3 | 4 | 33.7 | 247.5 | 0.8158 |
| 2 | 4 | 34.7 | 202.5 | 0.7719 |
| 1 | 2 | 33.4 | 234 | 0.7289 |
| 1 | 4 | 35.2 | 166.5 | 0.7000 |
| 3 | 3 | 33.7 | 193.5 | 0.6158 |
| 1 | 3 | 33.7 | 180 | 0.5658 |
| 2 | 2 | 32.8 | 166.5 | 0.4053 |
| 3 | 2 | 30.6 | 207 | 0.2851 |
| 2 | 3 | 29.5 | 171 | 0.0167 |
From the statistical analysis, it is evident that the fitness is optimal when parameter , is introduced. Therefore, this study incorporates the parameter , for experimentation.
-
d.c
Algorithm Simulation and Comparative Experiment
To validate the SACO algorithm's ability to avoid local optima and exhibit good robustness in robot path planning, ACO and IACO [30]are chosen as comparative algorithms. Comparative simulation experiments are conducted on three different environmental maps. The parameters for the three algorithms in a 20 × 20 map are presented in Table 2.
Table 2.
Algorithm parameters setting.
| ACO | 40 | 60 | 2 | 7 | 1 | 0.5 | – | – | – | – | – |
| IACO | 40 | 60 | 2 | 7 | 1 | 0.5 | – | – | 1 | 0 | |
| SACO | 40 | 60 | 2 | 7 | 1 | 0.5 | – | 2 | 3 | – | – |
5.1. 20 × 20 simulation environment
In the simulation experiment conducted on a 20 × 20 map, the ACO algorithm, IACO algorithm, and the newly proposed SACO algorithm are utilized for robot path planning. The convergence curve graphs and path planning diagrams for these algorithms are shown in Fig. 6, Fig. 7 respectively. The experimental results are presented in Table 3 and Table 4.
Fig. 6.
Optimal planning path based on three ant colony algorithms.
Fig. 7.

Fitness iteration diagram.
Table 3.
Optimal path result.
| Optimal Path Result | |
|---|---|
| ACO | 1 22 43 64 85 106 127 147 167 187 207 227 247 267 287 307 327 328 329 330 331 332 333 334 355 356 377 398 399 400 |
| IACO | 1 22 43 64 65 85 106 127 147 167 187 208 209 210 211 232 253 274 295 316 337 358 378 399 400 |
| SACO | 1 22 43 64 85 106 127 147 167 187 208 209 210 211 232 253 274 295 316 337 358 378 399 400 |
Table 4.
Comparison of simulation results.
| Shortest path/cm | inflection points | iterations | |
|---|---|---|---|
| ACO | 32.73 | 6 | – |
| IACO | 29.80 | 10 | – |
| SACO | 28.63 | 5 | 12 |
From the analysis based on Fig. 7, it can be observed that the ACO algorithm has the slowest convergence rate and has not fully converged by the end, resulting in the longest optimal path among the three algorithms. The IACO algorithm requires more iterations to achieve convergence compared to the other algorithms. In contrast, the proposed SACO algorithm yields the shortest path. As shown in Table 3, the path length obtained by SACO algorithm is reduced by 12.52% compared to ACO algorithm and by 3.92% compared to IACO algorithm. Moreover, there is also a significant improvement in computational speed. Additionally, the number of inflection points in SACO algorithm is reduced by 16.66% compared to ACO algorithm and by 50% compared to IACO algorithm.
5.2. 30 × 30 simulation environment
To validate the robot movement path planning capabilities of the proposed SACO algorithm under different scenarios, simulations of robot path planning were conducted on a 30 × 30 grid map using ACO, IACO, and SACO algorithms. Asthe terrain is more complex compared to a 20 × 20 map, to maintain algorithm reliability, the number of ants was set to 100, the maximum iteration count was set to 150, and other parameters remained unchanged. The path index is shown in Table 5.The path planning results and algorithm convergence curves for the three algorithms are shown in Fig. 8, Fig. 9, respectively.
Table 5.
Optimal path result.
| Optimal Path Result | |
|---|---|
| ACO | 1 2 32 63 94 125 156 187 217 247 277 308 338 368 369 370 371 372 373 374 405 436 467 468 469 470 471 501 532 563 594 625 654 683 713 744 774 805 836 867 868 869 900 |
| IACO | 1 32 62 93 124 155 186 217 248 249 280 311 342 343 344 345 346 347 378 409 440 471 502 533 564 595 626 627 658 688 718 748 778 808 839 869 900 |
| SACO | 1 32 63 94 125 156 187 217 247 277 308 339 370 401 432 462 493 494 525 556 587 618 619 620 651 682 713 744 774 805 836 867 868 869 900 |
Fig. 8.
Optimal planning path based on three ant colony algorithms.
Fig. 9.

Fitness iteration diagram.
From Fig. 9 and Table 6, it can be observed that the ACO algorithm has a slow search speed, a longer search for the optimal path, and is difficult to obtain the optimal solution. The IACO algorithm exhibits some blindness in the early stages of search and converges slowly. In contrast, the proposed SACO algorithm converges quickly in the early stages of search and finds the shortest path. According to Table 6, the shortest path obtained using the SACO algorithm is 12.6% shorter than ACO and 2.5% shorter than IACO. The system's runtime is reduced by 53.3% and 35.7%, respectively, compared to ACO and IACO. The number of turning points is reduced by 29.4% compared to ACO. Therefore, the SACO algorithm has higher search efficiency, fewer turning points, smoother paths, and strong path planning performance.
Table 6.
Comparison of simulation results.
| Shortest path/cm | inflection points | Runtime/s | iterations | |
|---|---|---|---|---|
| ACO | 50.28 | 17 | 13.5 | – |
| IACO | 45.11 | 12 | 9.8 | 93 |
| SACO | 43.94 | 12 | 6.3 | 20 |
5.3. 40 × 40 simulation environment
To verify the robot path planning capabilities of the SACO algorithm in scenarios with a larger environmental space and more complex obstacle distribution, a 40 × 40 grid map was created. Robot path planning simulations were conducted using ACO, IACO, and SACO algorithms. Due to the larger size and more complex obstacle distribution of the 40 × 40 map, to maintain algorithm reliability and stability, the number of ants was set to 100, the maximum iteration count was set to 400, and other parameters remained unchanged. The path index is shown in Table 7 .The path planning results and algorithm convergence curves for the three algorithms are shown in Fig. 10, Fig. 11, respectively
Table 7.
Optimal path result.
| Optimal Path Result | |
|---|---|
| ACO | 1 41 81 121 161 201 242 283 324 365 406 447 487 528 529 530 531 492 493 494 495 536 577 618 659 700 741 782 823 864 905 946 986 1026 1067 1108 1148 1188 1228 1269 1310 1351 1352 1353 1394 1435 1476 1477 1438 1479 1520 1560 1600 |
| IACO | 1 41 81 121 161 201 242 283 324 365 406 447 487 528 529 530 531 492 493 494 495 536 577 618 659 700 741 782 823 864 905 946 986 1026 1067 1108 1148 1188 1228 1269 1310 1351 1352 1353 1394 1435 1476 1477 1438 1479 1520 1560 1600 |
| SACO | 1 42 83 124 125 126 167 208 249 290 291 332 373 414 455 496 536 577 618 659 700 741 782 823 864 905 946 987 1028 1069 1110 1151 1192 1233 1274 1275 1276 1316 1356 1397 1438 1479 1520 1560 1600 |
Fig. 10.
Optimal planning path based on three ant colony algorithms.
Fig. 11.

Fitness iteration diagram.
From Fig. 10, Fig. 11, it can be observed that when the robot's working environment is large, and the distribution of obstacles is dense, applying the ACO algorithm for robot path planning fails to effectively converge to the shortest path, resulting in a longer robot movement path. Applying the IACO algorithm for robot path planning requires more iterations to converge but tends to get stuck in local optima. On the other hand, applying the SACO algorithm results in a shorter robot movement path, and the algorithm can converge effectively. As shown in Table 8, the shortest path obtained with the SACO algorithm is 21.8% shorter than ACO and 9.8% shorter than IACO. The number of turning points is reduced by 58.3% and 41.1%, and the system's runtime is reduced by 51.1% and 40%, respectively. Therefore, the SACO algorithm can find the shortest movement path in a shorter time, and the path is smoother.
Table 8.
Comparison of simulation results.
| Shortest path/cm | inflection points | Runtime/s | iterations | |
|---|---|---|---|---|
| ACO | 74.32 | 24 | 22.3 | – |
| IACO | 64.42 | 17 | 18.3 | 277 |
| SACO | 58.08 | 10 | 10.9 | 40 |
5.4. Conduct comparative experiments with the A* algorithm
To validate the superiority of the SACO algorithm, comparative analysis experiments were conducted with three widely used A* algorithms on a 10 × 10 grid map. A 10 × 10 grid map was created, and robot path planning simulations were performed using A* with Manhattan Heuristic (A* M), A* with Euclidean Heuristic (A* E), A* with Chebyshev Heuristic (A* C), and the SACO algorithm, respectively.
From Fig. 12, it is evident that the A* algorithm, whether using Manhattan distance, Euclidean distance, or Chebyshev distance as a heuristic, struggles to achieve the optimal turning points. The improved algorithm in this paper has only 3 turning points, while A* with Manhattan Heuristic has 8 turning points, and A* with Euclidean Heuristic and A* with Chebyshev Heuristic both have 7 turning points. In terms of path length, SACO also outperforms A* with Manhattan Heuristic, and the improved algorithm exhibits better path smoothness compared to A* algorithms.
Fig. 12.
Comparative experiment between SACO and three A* algorithms.
6. Conclusion
This paper addresses the issue of path safety in dam inspection by proposing SACO algorithm. This algorithm aims to provide secure and reliable path planning for AUV during dam inspection tasks, reducing energy consumption, enhancing task execution efficiency, while ensuring path smoothness and stability.
The SACO algorithm combines the strengths of traditional ACO, such as robustness, avoidance of local optima, and rapid computation speed. Additionally, it optimizes the smoothness of paths generated by the ACO. To reduce turning time and improve directional effectiveness in path selection, a corner-turning heuristic function is introduced. Experimental simulation results demonstrate that, within the same environment, SACO outperforms other algorithms in terms of path smoothness and the iterative stability of path planning.
Funding statement
This work is financially supported by Hubei Key Laboratory of Construction and Management in Hydropower Engineering (China Three Gorges University) Open Fund (No.2020KSD15), Natural Science Foundation of Hubei Province (No.2022CFC033),and 2022 graduate course construction and cultivation project of China Three Gorges University (No.SDKC202203)
CRediT authorship contribution statement
Meng Ronghua: Writing – review & editing. Cheng Xinhao: Writing – original draft. Wu Zhengjia: Supervision. Du xuan: Funding acquisition.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References
- 1.Chua S.D.X., Xi L.X., Sediment load crisis in the Mekong river basin: severe reductions over the decades, Geomorphology (2022),419: 108484.
- 2.Wang L., Wu C., Tang L., et al. Efficient reliability analysis of earth dam slope stability using extreme gradient boosting method. Acta Geotechnica. 2020;15(7) doi: 10.1007/s11440-020-00962-4. [DOI] [Google Scholar]
- 3.Liu XiaojieZhao, ChaoyingZhang QinLu, ZhongLi ZhenhongYang, ChengshengZhu WuLiu-Zeng, JingChen LiquanLiu. Chuanjin.Integration of Sentinel-1 and ALOS/PALSAR-2 SAR datasets for mapping active landslides along the Jinsha River corridor, China. Eng. Geol. 2021;284(1) [Google Scholar]
- 4.C L.W.A.B., A T.H., C Y.Z., et al. The influence of fiber type and length on the cracking resistance, durability and pore structure of face slab concrete - ScienceDirect. Construct. Build. Mater. 2023;282 doi: 10.1016/j.conbuildmat.2021.122706. 07-26] [DOI] [Google Scholar]
- 5.Li F.F., Du Y., Jia K.J. Path planning and smoothing of mobile robot based on improved artificial fish swarm algorithm. Sci. Rep. 2022;12(1):659. doi: 10.1038/s41598-021-04506-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Bai J H, Oh Y J. Global path planning of lunar rover under static and dynamic constraints[J] International Journal of Aeronautical and Space Sciences. 2020:1–9. [Google Scholar]
- 7.Oh S., Hahn M., Kim J. IEEE; 2013. Simultaneous Localization and Mapping for Mobile Robots in Dynamic Environments[C]//2013 International Conference on Information Science and Applications (ICISA) [DOI] [Google Scholar]
- 8.Meng J., Wang S., Jiang L., et al. Accurate and efficient self-localization of AGV relying on trusted area information in dynamic industrial scene. IEEE Trans. Veh. Technol. 2023;(6):72. [Google Scholar]
- 9.Du S., Ibrahim M., Shehata M., et al. Automatic license plate recognition (ALPR): a state-of-the-Art review. IEEE Trans. Circ. Syst. Video Technol. 2013;23(2):311–325. doi: 10.1109/TCSVT.2012.2203741. [DOI] [Google Scholar]
- 10.Miao C., Chen G., Yan C., et al. Path planning optimization of indoor mobile robot based on adaptive ant colony algorithm. Comput. Ind. Eng. 2021 doi: 10.1016/j.cie.2021.107230. [DOI] [Google Scholar]
- 11.Song Z.Z.L. An improved PSO algorithm for smooth path planning of mobile robots using continuous high-degree Bezier curve. Appl. Soft Comput. 2021;100(1) [Google Scholar]
- 12.Zhu Z., Yin Y., Lyu H., Automatic collision avoidance algorithm based on route-plan-guided artificial potential field method, Ocean engineering (2023),271: 113737.
- 13.Jiao J., Cheng J., Liu Y., et al., Inversion of TEM measurement data via a quantum particle swarm optimization algorithm with the elite opposition-based learning strategy, Comput. Geosci. (2023),174: 105334.
- 14.Frantiek Duchoň a b, B A.B.A., B M.K.A., et al. Path planning with modified a star algorithm for a mobile robot - ScienceDirect. Procedia Eng. 2014;96:59–69. [Google Scholar]
- 15.Liu C, Wu L, Xiao W, et al. An improved heuristic mechanism ant colony optimization algorithm for solving path planning[J] Knowledge-Based Systems. 2023;271:110540. [Google Scholar]
- 16.Input-to-state stability of stochastic Markovian jump genetic regulatory networks. Math. Comput. Simulat. 2023 doi: 10.1016/j.matcom.2023.08.007. [DOI] [Google Scholar]
- 17.Garg Harish. A hybrid PSO-GA algorithm for constrained optimization problems. Appl. Math. Comput. 2016;274:292–305. doi: 10.1016/j.amc.2015.11.001. [DOI] [Google Scholar]
- 18.Liu X., Deng R., Wang J., et al. COStar: a D-star Lite-based dynamic search algorithm for codon optimization. J. Theor. Biol. 2014;344:19–30. doi: 10.1016/j.jtbi.2013.11.022. [DOI] [PubMed] [Google Scholar]
- 19.Analysis of markovian jump stochastic cohen-grossberg BAM neural networks with time delays for exponential input-to-state stability. Neural Process. Lett. 2023 doi: 10.1007/s11063-023-11364-4. [DOI] [Google Scholar]
- 20.Zhenbing P., Xuebo C. Improved ant colony algorithm and its application in obstacle avoidance for robot. CAAI Transactions on Intelligent Systems. 2015:90–96. [Google Scholar]
- 21.Miao C., Chen G., Yan C., et al. Path planning optimization of indoor mobile robot based on adaptive ant colony algorithm. Comput. Ind. Eng. 2021 doi: 10.1016/j.cie.2021.107230. [DOI] [Google Scholar]
- 22.Wang X.Y., Yang L., Zhang Y., et al. Robot path planning based on improved ant colony algorithm with potential field heuristic. Kongzhi yu Juece/Control and Decision. 2018;33(10):1775–1781. doi: 10.13195/j.kzyjc.2017.0639. [DOI] [Google Scholar]
- 23.Zhang Y., Wang F., Fu F., et al. Multi-AGV path planning for indoor factory by using prioritized planning and improved ant algorithm. J. Eng. Technol. Sci. 2018;50(4):534–547. doi: 10.5614/j.eng.technol.sci.2018.50.4.6. [DOI] [Google Scholar]
- 24.Sui F, Tang X, Dong Z, et al. ACO+ PSO+ A*: A bi-layer hybrid algorithm for multi-task path planning of an AUV[J] Computers & Industrial Engineering. 2023;175:108905. [Google Scholar]
- 25.Wu L, Huang X, Cui J, et al. Modified adaptive ant colony optimization algorithm and its application for solving path planning of mobile robot[J] Expert Systems with Applications. 2023;215:119410. [Google Scholar]
- 26.Ntakolia C., Lyridis D.V. A comparative study on Ant Colony Optimization algorithm approaches for solving multi-objective path planning problems in case of unmanned surface vehicles. Ocean engineering. 2022;(Jul.1):255. [Google Scholar]
- 27.Xie X., Tang Z., Cai J. The multi-objective inspection path-planning in radioactive environment based on an improved ant colony optimization algorithm. Progress in nuclear engergy. 2022:144. [Google Scholar]
- 28.He P, Jiang G, Lam S K, et al. ML-MMAS Self-learning ant colony optimization for multi-criteria journey planning[J] Information Sciences. 2022;609:1052–1074. [Google Scholar]
- 29.Cheng C., Sha Q., He B., et al. Path planning and obstacle avoidance for AUV: a review. Ocean Engineering. 2023;235 doi: 10.1016/j.oceaneng.2021.109355. 08-09] [DOI] [Google Scholar]
- 30.Liu C, Wu L, Xiao W, et al. An improved heuristic mechanism ant colony optimization algorithm for solving path planning[J] Knowledge-Based Systems. 2023;271:110540. [Google Scholar]






