1. Introduction
As a critical domain in mobile robotics research, path planning technology forms the foundation for robots to navigate accurately from start to finish while completing tasks [Reference Liu, Du, Zhang and Bai1]. Over decades of development, researchers worldwide have proposed numerous effective path planning methodologies, including the A* algorithm [Reference Tang, Zhou and Xu2], artificial potential field (APF) [Reference Ding, Zheng, Liu, Guo and Guo3], neural networks [Reference Singh and Parhi4], genetic algorithms [Reference Karami and Hasanzadeh5], fuzzy logic [Reference Pradhan, Parhi and Panda6], and particle swarm optimization (PSO) [Reference Li and Chou7]. While these approaches have achieved notable success in mobile robot navigation, they exhibit inherent limitations when handling complex environments [Reference Zhang, Pu, N. and Sun8].
The ant colony optimization (ACO) algorithm, a classic heuristic inspired by natural ant foraging behavior, offers distinct advantages such as positive feedback reinforcement, robustness, distributed computation, and parallelism. Its compatibility with other heuristic algorithms further enhances optimization potential. Consequently, ACO has been widely adopted in mobile robot path planning in recent years [Reference Chen, Kong and Fang9]. However, deeper investigations reveal persistent challenges, including premature convergence to local optima, excessive iterations, and slow convergence rates.
To address the aforementioned limitations, numerous scholars have conducted extensive research. For example, Xu et al. [Reference Xu and Sun10] proposed an improved multi-step ACO algorithm that integrates the random sampling region concept of Informed RRT* into the adaptive multi-step ACO. This enhanced algorithm enables robots to identify high-quality paths more efficiently in path planning tasks, reduces search space size, and improves planning efficiency and accuracy. However, in complex environments, the shortest paths identified may not be optimal. Li et al. [Reference Li and Zhao11] modified pheromone update rules in ACO by applying Darwinian evolutionary theory, thereby accelerating iteration speed and reducing computational time. Nevertheless, their approach neglected the kinematic constraints of mobile robots. Niu et al. [Reference Niu, Dong and Fu12] designed a guided heuristic search strategy to facilitate the ant colony’s transition from initial disordered exploration phases. Concurrently, a reward-punishment mechanism was introduced to accelerate algorithmic convergence, with redundant inflection points being eliminated through greedy algorithms. However, the algorithm demonstrates limited advantages in total computational time when applied to low-complexity maps. Pan et al. [Reference Pan, Ao and Lu13] replaced conventional eight-neighborhood searches with dynamically expanded neighborhood methods, reducing path lengths and turning points. However, convergence iterations remained comparable to the original ACO as problem scales increased. Song et al. [Reference Song, Gao and Zhang14] developed an adaptive ACO by modifying pheromone distribution rules and implementing adaptive volatilization coefficients, which improved algorithmic efficiency but yielded suboptimal solution quality. Wang et al. [Reference Wang, Wang and Li15] integrated Monte Carlo metrics of feasible nodes into sigmoid functions to calculate path optimality probabilities (Monte Carlo factors) for ant decision-making, significantly enhancing path planning quality and overall performance, albeit with practical implementation limitations. Sun et al. [Reference Sun, Yu and Xin16] employed fruit fly optimization for rapid grid map pre-searching to initialize pheromone distributions for ACO, followed by global path planning with ACO. Path smoothing techniques were further applied to minimize turning angles and cumulative rotation, substantially improving search speed and precision. Tan et al. [Reference Tan, Ouyang, Zhang, Lao and Wen17] hybridized ACO with PSO, utilizing PSO to train initial parameters for optimal path planning. However, this approach lacked comprehensive consideration and validation of practical algorithm implementation.
To overcome ACO’s inherent weaknesses – local optima entrapment, blind initial exploration, and insufficient global awareness – this paper proposes methods to optimize the traditional ACO algorithm, including improved initial pheromone distribution, modified heuristic functions, and optimized pheromone updating methods, to enhance the efficiency of path planning and improve the results of path planning.
2. Traditional ant colony algorithm
2.1. Basic principles
The ACO algorithm originated from the pioneering work of Italian scholar Dorigo M., who first proposed the concept in 1992 [Reference Dorigo and Maniezzo18]. Inspired by the foraging behavior of ants, the algorithm simulates how ants deposit volatile pheromones along their paths while searching for food. The pheromone concentration is inversely proportional to the path length – shorter paths accumulate higher pheromone levels, thereby attracting more ants. Through this positive feedback mechanism, a collective reinforcement process occurs, ultimately leading to the establishment of a globally optimal shortest path through repeated iterations by the ant population.
2.2. State transition probability
In the traditional ACO algorithm, ants navigate based on the pheromone concentration of subsequent nodes. During the t-th iteration, the transition probability
$P_{ij}^{k}$
that ant k to moves from node i to node j is defined as:
$${P_{ij}^{k}=\begin{cases} \dfrac{\left[\tau _{ij}\left(t\right)\right]^{\alpha }\left[\eta _{ij}\left(t\right)\right]^{\beta }}{\sum _{j={\textit{allos}_{k}}}\left[\tau _{ij}\left(t\right)\right]^{\alpha }\left[\eta _{ij}\left(t\right)\right]^{\beta }},j\in \textit{allow}_{k}\\[16pt] 0,j\notin \textit{allow}_{k} \end{cases} } $$
where α is the weight coefficient of pheromones, β is the weight coefficient of the heuristic function,
$\tau _{ij}(t)$
is the pheromone concentration function, and
$\eta _{ij}(t)$
is the distance heuristic function.
$\textit{allow}_{k}$
is the set of next feasible nodes, and
$ d_{ij}$
is the Euclidean distance between current node i and candidate node j.
2.3. Pheromone emission and renewal
In the traditional ACO algorithm, the pheromone concentration at node i undergoes evaporation governed by the evaporation coefficient
$\rho$
(0 <
$\rho$
< 1) as the ants move from node i to node j. Simultaneously, the pheromone concentration at node j is augmented. The updated pheromone concentration at time t+1 is formulated as:
$$\Delta \tau _{ij}(t,t+1) =\begin{cases} \dfrac{Q}{L_{k}}, {\rm The \,path \,passed \,by\, ant}\,k\,{\rm in \,this\, iteration}\\[9pt] 0, {\rm else} \end{cases}$$
where Q is the pheromone intensity coefficient,
${\unicode[Arial]{x0394}} \tau _{ij}(t,t+1)$
is the amount of pheromone deposited on the path from node i to node j by ant k in this iteration, and
$L_{k}$
is length of the path traversed by ant k in this iteration.
3. Improved of traditional ant colony algorithm
3.1. Optimization of initial pheromone distribution
In traditional ACO algorithms, the initial pheromone concentration is uniformly distributed [Reference Li, Shi and Xun19], resulting in blind exploratory behavior during the early search phase, slow initial convergence, and increased computational time costs. To resolve these issues, this study integrates the APF method to establish a pheromone distribution reference system while preserving the autonomous search characteristics of ACO. Specifically, leveraging the principle that the straight-line distance between two points is the shortest, a path is generated from the start point by circumventing obstacles using repulsive potential fields and ultimately reaching the target point. The integration with APF offers dual advantages for path planning:
-
1. Goal-oriented guidance: The suboptimal paths generated by APF provide directional cues, reducing purely stochastic exploration;
-
2. Obstacle avoidance: The repulsive field characteristics of APF inherently reflect critical environmental features.
However, the APF-generated path serves solely as a reference baseline for pheromone distribution rather than a final solution. This design choice stems from two inherent drawbacks of APF: susceptibility to local minima and insufficient path smoothness.
To balance guidance and diversity, this study proposes a dynamic pheromone allocation strategy, where the pheromone increment at path nodes is inversely proportional to their distance from obstacles, as formulated in Eq. (5). This design ensures that critical turning points farther from obstacles receive stronger pheromone reinforcement, while maintaining exploration potential for other nodes.
Effect of pheromone coefficient on algorithm performance.

Parameter sensitivity analysis (Figure 1) reveals that the algorithm achieves optimal performance when the coefficient falls within the range of 0.2C–0.3C. Excessively high pheromone concentrations (>0.3C) improve early convergence speed by 21% but degrade final solution quality, whereas overly low concentrations (<0.2C) diminish the guidance effect. The initial pheromone increment is empirically determined as 0.25C, with the initial pheromone distribution formalized in Eq. (6).
$$\tau _{ij}(0) =\begin{cases} C+\Delta \tau _{APF},(i,\,j) \epsilon\, {\rm The\,path\,of\,the\,line\,segment}\\ C, {\rm else} \end{cases}$$
where C is constant, set to 8 as adopted in [Reference Zhang, Luo, Yin and Zou20];
$d_{i}$
is the Euclidean distance from node i to the nearest obstacle.
3.2. Optimization of heuristic information
In traditional ant colony algorithms, the heuristic function
$\eta _{ij}$
is defined as the reciprocal of the distance between the current node i and the candidate next node j, as shown in Eq. (2). However, this formulation neglects the global guidance from candidate nodes to the target node, resulting in insufficient exploration of the solution space and susceptibility to local optima. To resolve this issue, this study draws inspiration from the bidirectional evaluation concept of the A* algorithm’s heuristic function (Eq. (7)) and innovatively proposes a hybrid heuristic function (Eq. (8)) that integrates global path guidance and suppresses unnecessary turns.
where f(n) is the total cost from the start point to the end point; g(n) is the accumulated cost from the start point to the current point n; h(n) is the estimated cost from the current point n to the goal point;
$\eta _{ij}^{,}(t)$
is improved heuristic information function;
$d_{ij}$
is the Euclidean distance between the current node i and the next node j;
$d_{jg}$
is the Euclidean distance from the next node j to the target point g;
${\unicode[Arial]{x0394}} \theta$
is the turning angle between the current path segment and the previous one (must satisfy
$| {\unicode[Arial]{x0394}} \theta |$
≤
$\theta _{\max}$
, where
$\theta _{\max}$
is the robot’s maximum allowable turning angle);
$\varphi$
,
$\omega$
are dynamic weights, where
$\varphi =\frac{i_{ter}}{Max_{{i_{ter}}}}$
,
$\omega =1-\varphi ; \gamma$
is dynamic penalty coefficient, where
$\gamma =\gamma _{0}*(1-\frac{i_{ter}}{Max_{{i_{ter}}}})$
, where
$\gamma _{0}$
set to 0.5 through extensive simulation experiments.
The optimized model enhances global navigation capacity while preserving local path optimization capabilities through the introduction of a goal-oriented factor. Although Eqs. (7) and (8) share superficial similarities in form, their functional roles are fundamentally distinct: the f(n) in the A* algorithm serves as a precise cost evaluation function, rigorously calculating the exact cumulative cost from start to goal, while the
$\eta _{ij}$
in this work acts as a probabilistic heuristic factor, guiding probabilistic path selection rather than deterministic cost minimization. This improvement is not a direct transplantation of A* mechanisms but rather establishes a dynamic weight adjustment model that shifts algorithmic focus across iterations. Early Phase: Prioritizes global exploration (dominated by
$\omega$
) to escape local optima and map the environment. Later Phase: Gradually intensifies local refinement (dominated by
$\varphi$
) to optimize path smoothness and precision. This time-varying mechanism effectively mitigates the “line-of-sight limitations” inherent to traditional A* algorithms in complex obstacle environments. Furthermore, the integration of steering angle suppression (via
$| {\unicode[Arial]{x0394}} \theta |$
≤
$\theta _{max}$
) ensures generated paths comply with the kinematic constraints of mobile robots by penalizing abrupt directional changes.
3.3. Optimization of pheromone update strategy
To resolve the balance between convergence speed and global search capability in traditional ACO algorithms, this study proposes a dual-phase dynamic pheromone update strategy based on convergence state monitoring. The core innovation lies in constructing an adaptive reward-penalty system with dual-evaluation mechanisms, where intelligent phase partitioning is achieved through a dynamic path quality evaluation function, rather than relying on simplistic fixed-ratio division.
In the implementation, the phase partitioning is dynamically adjusted based on two metrics: the path diversity index (ξ) and the convergence rate factor (
$\varepsilon$
), as formulated in Eqs. (9) and (10). The algorithm transitions to the convergence phase when ξ<0.2 and
$\varepsilon$
< 0.01. This dynamic partitioning mechanism offers stronger theoretical justification compared to conventional fixed-iteration-ratio partitioning methods. The parameter settings are informed by the order parameter criteria from phase transition theory in complex systems, which quantifies critical thresholds for state transitions.
The innovative mechanism proposed in this study is structured as follows: during the exploration phase (Phase I), a normal distribution-based probability-weighted update method is employed to reinforce paths whose lengths fall within the interval [μ-σ, μ+0.5σ], where μ denotes the mean length and σ represents the standard deviation. This asymmetric interval design effectively retains exploration potential for suboptimal solutions. In the convergence phase (Phase II), a reward-penalty coupling mechanism is established wherein not only the optimal path is reinforced, but paths exceeding μ+σ in length are subjected to penalty imposition through a pheromone decay factor λ. This dual-phase mechanism strategically balances exploration-exploitation dynamics while enhancing solution quality through differential treatment of path candidates.
where
$N_{best}$
is the optimal path visitation count;
$L_{t}^{best}$
is current-generation optimal solution; and
$L_{t-1}^{best}$
is previous-generation optimal solution.
Phase I (Exploration Phase) (ξ ≥ 0.2 or
$\varepsilon$
≥0.01)
where
$\Phi (L^{k})$
is Gaussian weight function, defined as:
$\exp \big({-}\frac{({{L}^{{k}}}-{\unicode[Arial]{x0B5}} )^{2}}{2{\unicode[Arial]{x03C3}} ^{2}}\big){*I}_{[{\unicode[Arial]{x0B5}} -{\unicode[Arial]{x03C3}} ,{\unicode[Arial]{x0B5}} +0.5{\unicode[Arial]{x03C3}} ]}({L}^{{k}})$
;
$I_{[a,b]}(.)$
is Indicator function, where
$L^{k}$
∈ [a, b], otherwise 0.
Phase II (Convergence Phase) (ξ < 0.2 and ε < 0.01):
where
${\unicode[Arial]{x0394}} \tau _{ij}^{best}$
is pheromone increment of the global optimal path, defined as
${\unicode[Arial]{x0394}} \tau _{ij}^{best}=\frac{Q_{best}}{L_{best}}$
(
$Q_{best}$
= 1.5Q is the elite reinforcement coefficient); λ is dynamic penalty decay factor, defined as
$\lambda =0.5+0.3tanh(\frac{\sigma }{\mu })$
, where
$\tanh (.)$
denotes the hyperbolic tangent function, ensuring λ∈(0.5,0.8).
3.4. Parameter optimization
In traditional ant colony algorithms, critical parameters – including the pheromone weight coefficient, heuristic function weight coefficient, and volatilization coefficient – are typically predefined as fixed constants. This static configuration leads to inherent limitations in balancing the exploration-exploitation trade-off during the search process. To resolve this issue, this section proposes a dynamic parameter adaptation strategy, which optimizes these coefficients by integrating the phase-specific characteristics of the pheromone update mechanism described in the preceding section. This adaptive approach ensures that parameter values are dynamically aligned with the distinct requirements of the exploration and convergence phases, thereby enhancing algorithmic flexibility and solution quality.
1. Optimization of Weight Coefficients α and β: The pheromone weight coefficient α determines the influence of pheromone concentration on path selection by ants, while the heuristic function weight coefficient α governs the impact of heuristic factors (e.g., distance) on path selection. In the early stages of the algorithm, when pheromone concentrations across paths exhibit minimal disparity, prioritizing the heuristic-based distance metric as the primary factor for node selection is critical. Concurrently, reducing the pheromone weight coefficient helps mitigate premature convergence to suboptimal paths. In later stages, after iterative updates amplify pheromone differentiation between high- and low-quality paths, elevating the pheromone weight coefficient becomes advantageous to leverage accumulated search experience, thereby accelerating convergence toward optimal solutions. Simultaneously, diminishing the heuristic weight coefficient reduces noise from distance-based biases, enabling more focused exploitation of pheromone-guided information. Therefore, this paper adjusts the weight coefficients as shown in Eqs. (13) and (14):
$$\alpha =\begin{cases} \dfrac{1}{2}\alpha _{0},{\unicode[Arial]{x03BE}} \geq 0.2\text{ or }\varepsilon \geq 0.01\\[13pt] \dfrac{3}{2}\alpha _{0},{\unicode[Arial]{x03BE}} \lt 0.2\,{\rm and}\, \varepsilon \lt 0.01 \end{cases}\\[-10pt]\nonumber $$
$$\beta =\begin{cases} \dfrac{3}{2}\beta _{0},{\unicode[Arial]{x03BE}} \geq 0.2\text{ or }\varepsilon \geq 0.01\\[13pt] \dfrac{1}{2}\beta _{0},{\unicode[Arial]{x03BE}} \lt 0.2\,{\rm and}\, \varepsilon \lt 0.01 \end{cases} $$
Where:
$\alpha _{0}=3$
,
$\beta _{0}=5$
. The initial value was adopted from article [Reference Zhang, Luo, Yin and Zou20] and determined using the controlled variable method.
2. Optimization of the Evaporation Coefficient ρ: The evaporation coefficient plays a dual role in balancing exploration and exploitation. A smaller evaporation coefficient enhances solution diversity by preserving pheromone trails across paths, thereby expanding the search space and mitigating premature convergence. However, this comes at the cost of slower convergence due to delayed elimination of suboptimal paths. Conversely, a larger evaporation coefficient accelerates convergence by rapidly diminishing pheromone levels on inferior paths, but risks trapping the algorithm in local optima by prematurely reducing path diversity. To address this trade-off, this paper introduces a phase-dependent evaporation rate adjustment strategy:
Initial phase: The evaporation rate is reduced
$(\rho =0.5\rho _{0})$
t to maintain path diversity and avoid local optima by allowing broader exploration.
Late-stage: The evaporation rate is increased
$(\rho =1.5\rho _{0})$
to accelerate convergence by intensifying pheromone accumulation on high-quality paths, synergistically integrated with the phase-specific pheromone update mechanisms proposed earlier. The specific adjustments are formulated as detailed in Eq. (15):
$$\begin{equation}\rho =\begin{cases} \dfrac{1}{2}\rho _{0},{\unicode[Arial]{x03BE}} \geq 0.2\text{ or }\varepsilon \geq 0.01\\[12pt] \dfrac{3}{2}\rho _{0}, {\unicode[Arial]{x03BE}} \lt 0.2\, {\rm and}\, \varepsilon \lt 0.01 \end{cases}\end{equation}$$
where
$\rho _{0}$
= 0.7. The initial value was adopted from article [Reference Zhang, Luo, Yin and Zou20] and determined using the controlled variable method.
3.5. The flowchart of MS-ACO algorithm
Through the above analysis, the ant colony algorithm with four improvement strategies is applied to the mobile robot path planning. The algorithm flowchart and specific steps are shown in Figure 2:
The flowchart of MS-ACO algorithm.

4. Environmental modeling
Environment modeling for motion maps plays a critical role in mobile robot path planning, as it directly affects the positional accuracy and operational reliability of robotic navigation. Current mainstream environmental modeling methods include topological methods [Reference Han21], which exhibit strong environmental dependency and high computational costs; visibility graph methods [Reference Lv and Feng22], which suffer from excessive memory consumption and generate non-smooth paths; and grid-based methods [Reference Zhang, Zhang and Lu23], distinguished by their structural simplicity, reliability, adaptability, and precision [Reference Zhang, Zhang and Zhong24]. Given these comparative advantages, this study adopts a grid-based approach to construct the mobile robot’s operational environment. The environment is discretized into grids where white grids represent feasible regions for robot navigation and black grids denote obstacle zones. The obstacle grids are subjected to an inflation process, as shown in Figure 3. The environment map is depicted in Figure 4.
Obstacle grid expansion processing diagram.

Raster map with obstacles.

The relationship between the grid index i and its corresponding coordinates is defined by Eq. (16):
$$\begin{equation}\begin{cases} x_{i}=l\times \left[mod\left(i,A\right)-\dfrac{l}{2}\right]\\[12pt] y_{i}=l\times \left[A+\dfrac{\textrm{l}}{2}-ceil\dfrac{i}{A}\right] \end{cases}\end{equation}$$
where
$x_{i}$
is the x-coordinate of the i-th grid;
$y_{i}$
is the y-coordinate of the i-th grid; i is the grid index; l is edge length of each grid cell; A is the grid dimension; mod is modulo operation; and ceil is ceiling operation.
5. Simulation and experimental verification
5.1. Definition of evaluation metrics
To quantify algorithm performance, the following evaluation metrics are adopted:
1. Path Length: Defined as the total Euclidean distance traveled by the robot from the start to the goal. In the grid map, where each grid cell has an edge length of 1, the path length is calculated as:
where (
$x_{k}$
,
$y_{k}$
) denotes the coordinates of the k-th node in the path, and n is the total number of path nodes.
2. Number of Turns: Calculated by detecting directional changes in consecutive movements along the path. Specifically, a turn is counted if the robot’s movement direction (e.g., east, south, west, north, or diagonally) between node i and node j differs from the direction between node j and node k.
3. Search Time: Measured using the system clock during experiments to record the computational time required to generate a feasible path.
5.2. Simulation
To validate the feasibility of the proposed optimized algorithm (MS-ACO), simulation experiments were conducted on a Windows 11 system using MATLAB R2021a. Path planning simulations were performed on grid-based maps of dimensions 10 × 10, 20 × 20, and 30 × 30, comparing the performance of four algorithms: the traditional ACO, the Improved ACO algorithm from reference [Reference Huang, Jiang and Xun25] (JACO), the Enhanced ACO algorithm from reference [Reference Zhou and Wei26] (IACO), the recently proposed Beluga Whale Optimization (BWO) algorithm [Reference Zhong, Li and Meng27], and the proposed MS-ACO algorithm. In the simulation experiments, the starting coordinates for ants are set to (1,1), with the goal coordinate fixed at (m, m), where m denotes the edge length of the square map.
The initial parameters for the optimized algorithm proposed in this paper are shown in Table I.
Initial parameter of algorithm.

As illustrated in Figure 5, in the 10 × 10 simulated map, all four algorithms achieve convergence after iterative optimization. The traditional ACO algorithm converges after 39 iterations with a converged path length of 17.3137, significantly lagging behind the improved algorithms. The JACO algorithm requires only 2 iterations to converge, yet attains a suboptimal path length of 13.8995, indicating room for further refinement. In contrast, the IACO, BWO, and MS-ACO algorithms demonstrate superior search capabilities: they converge after 6, 2, and 4 iterations, respectively, achieving the shortest converged path length of 13.3137.
10 × 10 convergence curve comparison diagram.

Combined with the results in Figure 6, all three improved algorithms – JACO, IACO, and MS-ACO – demonstrate varying degrees of success in circumventing the local optima traps inherent to the traditional ACO algorithm within the relatively simple 10 × 10 grid environment. And BWO is also capable of finding the optimal path. A brief explanation of the path-trajectory diagrams: the routes shown are not the converged paths after 100 iterations, since in some later experiments, convergence was not achieved within 100 iterations. In the traditional ACO diagram, the second-best path found during those 100 iterations is displayed, whereas in the diagrams for the three optimized algorithms and BWO, the best path found during those 100 iterations is shown.
10 × 10 path trajectory comparison diagram.

Further analysis of Figure 5 reveals that while JACO achieves the fastest convergence speed (2 iterations), its path quality is constrained by insufficient exploration capability due to premature convergence in early iterations. In contrast, the proposed MS-ACO algorithm integrates three key innovations: dynamic non-uniform initialization of pheromones based on environmental features; a dual-phase strategy prioritizing comprehensive exploration before pursuing rapid convergence; and dynamic parameter adaptation aligned with the dual-phase pheromone update mechanism. These enhancements enable MS-ACO to maintain path optimality (achieving the shortest path length of 13.3137), improving convergence speed by 33.3% compared to IACO (4 iterations vs. 6 iterations). However, due to the exploration phase in the MS-ACO algorithm, its convergence speed lagged behind BWO on the 10 × 10 map.
As shown in Figure 7, in the 20 × 20 simulation map, only four algorithms achieve convergence. The traditional ACO algorithm fails to converge within 100 iterations, d exhibiting significant degradation in path planning capability in larger-scale environments. Among the improved algorithms, JACO and BWO maintain rapid convergence, requiring only 5 and 3 iterations to converge. However, its converged path length of 28.6274 and 29.1416 remains suboptimal, with 2.1% and 3.9% discrepancy from the optimal solution. Both IACO and MS-ACO demonstrate superior search performance, converging to the optimal path length of 28.0416. Notably, MS-ACO achieves this result in 17 iterations, achieving a 2.65× speed improvement over IACO (45 iterations).
20 × 20 convergence curve comparison diagram.

20 × 20 path trajectory comparison diagram.

Combined with the results in Figure 8, the multi-strategy enhancements of MS-ACO exhibit significant advantages in the 20 × 20 grid map:
-
1. Exploration Phase Effectiveness: The inclusion of an explicit exploration phase effectively mitigates premature convergence issues observed in JACO, ensuring thorough search space coverage before exploitation.
-
2. Convergence Acceleration: The non-uniform initial pheromone distribution based on environmental features, combined with the convergence-oriented phase, substantially improves algorithmic efficiency.
-
3. Turn Suppression Mechanism: By penalizing directional changes in the heuristic function, MS-ACO generates paths that better align with the kinematic constraints of mobile robots, enhancing practical applicability.
Compared to the 10 × 10 environment map, the performance advantages of MS-ACO become more pronounced in the 20 × 20 environment, further validating the feasibility of its hybrid strategy. These results underscore the superiority of integrating prior-guided initialization and dynamic parameter adaptation over static parameter frameworks.
As illustrated in Figure 9, in the 30 × 30 simulation map, the convergence capabilities of the algorithms exhibit substantial divergence.
30 × 30 convergence curve comparison diagram.

Traditional ACO and IACO fail to converge within 100 iterations, highlighting the limitations of complex environments on algorithmic convergence. JACO and BWO retain their rapid convergence trait, achieving convergence in 9 and 3 iterations with suboptimal path lengths of 46.5269 and 43.7838, but their suboptimality gap reaches 7.3% and 1% compared to the global optimum. MS-ACO demonstrates exceptional path planning performance, converging to the optimal path length of 43.3553 at the 18th iteration. Notably, its convergence efficiency achieves a 6× improvement over IACO (which converges at the 108th iteration under a 200-iteration limit).
30 × 30 path trajectory comparison diagram.

Combined with the results in Figure 10, the advantages of MS-ACO’s multi-phase collaborative mechanism become even more pronounced in the 30 × 30 grid map. Key insights include:
-
1. Exploration Phase Superiority: The explicit exploration phase enables MS-ACO to overcome the local optima barriers that restrict JACO, ensuring global search robustness in highly complex environments.
-
2. Efficiency Optimization: The non-uniform initial pheromone distribution and convergence-phase strategies synergistically enhance search efficiency, achieving rapid convergence while maintaining solution quality.
-
3. Path Smoothness: By suppressing unnecessary turns in the heuristic function, MS-ACO generates paths with minimized directional changes, aligning with the kinematic constraints of mobile robots for practical deployment.
Comparative Analysis: Relative to smaller-scale maps (10 × 10 and 20 × 20), MS-ACO’s performance gains in the 30 × 30 environment are markedly amplified. Specifically, it converges to the optimal path length (43.3553) with 6× faster efficiency than IACO, while JACO exhibits a 7.3% suboptimality gap. This scalability underscores the algorithm’s ability to adaptively balance exploration depth and exploitation intensity across varying environmental complexities.
Comparison of algorithm results.

The data with the horizontal lines in the table represent the results obtained by increasing the DACO iteration count to 200, as it could not converge within the original 100 iterations; in the table, the dashes (---) represent that no results were obtained after 100 iterations.
The simulation results (as shown in Figures 5-10 and Table II) demonstrate that the proposed MS-ACO exhibits significant advantages in path planning performance. Compared to the traditional ACO algorithm, MS-ACO achieves multi-dimensional improvements across all tested map environments:
-
1. Path optimization: In the 10 × 10 map, the optimal path length is reduced by 23.1% compared to ACO.
-
2. Path smoothness: In the 30 × 30 complex terrain, the number of path turns is reduced to 29.4% of ACO’s value, aligning better with the kinematic constraints of mobile robots.
-
3. Convergence efficiency: In the 10 × 10 map, the iteration count is reduced by 89.7% relative to ACO.
Comparative analysis reveals that while MS-ACO’s convergence speed is slightly slower than JACO – a trade-off inherent to its exploration phase – it maintains superiority in path quality and smoothness, with these advantages becoming more pronounced in higher-complexity environments. Notably, MS-ACO consistently obtains theoretical optimal paths (matching IACO’s performance) across all tested map scales (10 × 10 to 30 × 30), while achieving 33%, 62.2%, and 83.3% reductions in convergence iterations for the respective map sizes. These results validate the effectiveness of MS-ACO’s balanced exploration-convergence mechanism, which harmonizes solution optimality with computational efficiency through adaptive phase transitions and dynamic parameter tuning.
In summary, the proposed MS-ACO effectively resolves the limitations of traditional ACO algorithms, including blind initial exploration, slow convergence rates, and susceptibility to local optima. Through the synergistic integration of multi-strategy optimizations – such as dynamic parameter adaptation, dual-phase exploration-convergence decoupling, and motion-constrained heuristic design – the algorithm achieves simultaneous enhancements in global search capability and convergence efficiency. Compared with the latest path planning algorithms, the proposed method also demonstrates significantly enhanced search performance.
5.3. Experimental verification
The experimental validation was conducted on a robotics platform with the NVIDIA Jetson Nano as the central controller. The platform comprises key hardware components, including gimbal servo motors and a LiDAR module, integrated with a mainboard, expansion board, and peripheral devices. The connection diagram of the mainboard, expansion board, and hardware modules is illustrated in Figure 11.
Each module connection diagram.

Global mapping using LiDAR on the robotic platform involves three core stages:
1. Preprocessing (Data Optimization and Feature Handling)
The LiDAR emits pulsed laser beams and calculates distances to obstacles via Time-of-Flight or phase difference measurements upon receiving reflected signals, generating raw point cloud data.
A point cloud comprises discrete “points,” each containing angular (azimuth) and distance information. To enhance data quality, the following optimizations are performed:
-
1. Noise Filtering: Statistical filtering is applied to remove isolated noise points, and invalid long-range data is truncated using a threshold (e.g., maxUnange = 5.0).
-
2. Motion Distortion Compensation: Inertial measurement unit or odometry data is integrated to correct point cloud stretching caused by robotic motion during scanning.
-
3. Sensor Calibration: Invalid regions (e.g., blind zones) are filtered based on LiDAR mounting parameters and calibration results.
This preprocessing pipeline ensures high-fidelity environmental representation for subsequent mapping and navigation tasks.
2. Matching (Alignment of Local Data with Global Map)
The core objective is to determine the robot’s pose (position and orientation) within the global map using scan matching techniques, aligning the current frame’s point cloud with the existing map. Different algorithms employ distinct methodologies:
-
1. Gmapping utilizes a particle filter framework based on Rao-Blackwellized particle filtering, where each particle independently maintains a map hypothesis. The algorithm calculates matching scores via scanMatch and balances accuracy with computational load by adjusting the particle count.
-
2. Hector directly aligns point clouds through Gauss-Newton optimization, eliminating reliance on odometry but requiring high-frequency LiDAR data. Robustness is enhanced using multi-resolution map representations.
-
3. Cartographer constructs local submaps and optimizes pose graphs via the Ceres solver, while loop closure detection mitigates cumulative errors for long-term consistency.
These approaches highlight the trade-offs between computational efficiency, environmental adaptability, and robustness in real-time SLAM applications
3. Map Fusion (Global Consistency Maintenance)
Map fusion, as a core component of simultaneous localization and mapping technology, is implemented through three critical hierarchical processes:
-
1. Occupancy Grid Update: The system dynamically adjusts grid confidence levels via probabilistic models and adaptively expands map boundaries to accommodate environmental dynamics.
-
2. Loop Closure Optimization: Cartographer employs the branch-and-bound algorithm for global matching between submaps to ensure topological consistency. Gmapping suppresses accumulative errors in large-scale scenarios by modulating particle filter weights.
-
3. Autonomous Exploration and Expansion: Integrating frontier detection algorithms with Rapidly-exploring Random Tree (RRT) path planning, the system drives dynamic map growth through active frontier exploration.
This multi-layered framework ensures global consistency, scalability, and real-time adaptability in SLAM applications, balancing computational efficiency with environmental fidelity.
Based on an analysis of algorithm-scenario compatibility, Gmapping demonstrates superior mapping accuracy and global consistency in small-scale environments due to its lightweight architecture and real-time responsiveness. Therefore, this study adopts Gmapping as the core algorithm for environmental modeling, enabling the construction of high-precision and globally consistent maps that satisfy the requirements for mobile robot navigation in spatially constrained scenarios. This selection aligns with the dual objectives of computational efficiency and topological fidelity, ensuring reliable performance in real-world deployments. The initial mapping state and final mapping results are shown in Figure 12. The experimental environment is shown in Figure 13.
Initial state of drawing and result of drawing.

Experiment site diagram.

Robot Pose Estimation During Motion: Adaptive Monte Carlo Localization (AMCL). AMCL, a core algorithm in the ROS navigation stack, enables probabilistic localization in 2D environments through particle filtering. Its principles and workflow are outlined as follows:
-
1. Particle Initialization: Initially, a large set of particles (e.g., 1000) is randomly generated across the map space. Each particle encodes a pose hypothesis – position (x, y) and orientation (θ) – and is assigned an initial weight. If the robot’s initial position is known (e.g., calibrated via RVIZ’s 2D Pose Estimate tool), particles are concentrated near this pose to accelerate convergence.
-
2. Motion Model Update (Prediction Phase): As the robot moves, each particle’s position is updated using odometry data (linear velocity v, angular velocity ω):
$$\begin{equation}\begin{cases} x(t+1)=x(t)+\textit{v*}\cos(\theta (t))*{\unicode[Arial]{x0394}} t\\ y(t+1)=y(t)+\textit{v*}\sin(\theta (t))*{\unicode[Arial]{x0394}} t\\ \theta (t+1)=\theta (t)+\omega *{\unicode[Arial]{x0394}} t \end{cases}\end{equation}$$
motion noise (e.g., odometry error parameters
$S_{rr},S_{rt},S_{tr},S_{tt}$
) is injected to simulate real-world kinematic uncertainty.
-
1. Observation Model Update (Correction Phase): LiDAR scan data are matched against the static map to compute the likelihood of each particle’s pose. Particles with higher consistency between their predicted poses and map obstacles receive increased weights, while mismatched particles are penalized. Adaptive resampling (e.g., KLD-sampling) dynamically adjusts the particle population to mitigate particle degeneracy and maintain localization robustness.
-
2. Pose Estimation Output: The final estimated pose is derived as the weighted average of all particles, accompanied by a covariance matrix quantifying localization uncertainty.
This probabilistic framework ensures real-time pose estimation under sensor noise and environmental dynamics, enabling reliable navigation in partially observable or dynamic settings.
Target Distance Computation During Robot Motion: The target distance calculation is based on the globally planned path and dynamically updated using real-time localization data to determine the remaining distance. The core workflow is as follows:
-
1. Global Path Planning: Inputs: (a) Start point (current robot position obtained via AMCL localization). (b) Goal point (user-specified target coordinates). (c) Static map (grid map generated by SLAM algorithms). Output: A global path represented as a sequence of discrete waypoints, where the total path length serves as the initial estimate of the target distance.
-
2. Real-Time Distance Update: Inputs: (a) Global path (sequence of discrete waypoints). (b) Real-time localization data (current robot position from AMCL or odometry). Computational Logic: (a) Match the nearest waypoint: Identify the waypoint on the global path closest to the robot’s current position. (b) Remaining distance calculation: Iteratively sum the Euclidean distances between consecutive waypoints from the matched point to the goal:
Dynamic Update: If the robot deviates from the global path (e.g., due to localization errors or environmental changes), global path replanning is triggered to update the remaining distance.
The experimental procedures for ACO and MS-ACO are illustrated in Figures 14 and 15, with the corresponding results depicted in Figure 16. To ensure statistical reliability, 30 experimental trials were conducted for each algorithm using the robotic platform, and the performance metrics are summarized in Table III.
Experimental process of traditional ACO.

Experiment process of MA-ACO.

Comparison of the experimental results.

Experimental results of ACO and MS-ACO.

Synthesizing the experimental results above, in relatively simple map environments, the traditional ACO algorithm still exhibits excessive, unnecessary turns during pathfinding. In contrast, under identical conditions, the proposed MS-ACO algorithm successfully completes path planning tasks, generating smoother paths with significantly fewer turns and no local optima entrapment, demonstrating its practical feasibility. According to the data in Table III, MS-ACO outperforms ACO across key metrics:
-
1. Path length: Reduced by 30.4%;
-
2. Pathfinding time: Decreased by 37.8%;
-
3. Number of turns: Minimized by 71%.
These substantial improvements in path quality, computational efficiency, and navigation smoothness highlight MS-ACO’s ability to optimize robotic path planning, further validating its effectiveness and superiority over conventional approaches in real-world applications.
6. Conclusion
This study focuses on the optimization of traditional ant colony algorithms in mobile robot path planning, proposing a MS-ACO. By integrating the APF method to implement repulsive force detour planning between start and target points and dynamically adjusting pheromones based on environmental characteristics, the algorithm achieves more rational initial pheromone distribution, thereby enhancing the effectiveness of initial search phases. The evaluation function from the A* algorithm is introduced to incorporate the distance from the next selected node to the target into the heuristic information function, complemented by a turning penalty term. This enhancement ensures both global optimization capability and compliance with mobile robots’ motion constraints. A phased pheromone update strategy is implemented, distinguishing between exploration and convergence phases with differentiated reward-punishment mechanisms, which collectively improve global search capability and convergence speed. Dynamic adjustment mechanisms for pheromone weight coefficients, heuristic function weights, and volatilization coefficients are established in accordance with phase-specific characteristics, further enhancing the algorithm’s adaptability and overall performance.
The simulation experiments of the ACO, JACO, IACO, BWO, and MS-ACO algorithms are conducted in grid maps of different sizes. The results demonstrate that MS-ACO outperforms other algorithms in terms of path length and inflection points, with its advantages being particularly pronounced in complex environments. Physical robot experiments further validate that MS-ACO achieves significant optimization in path length, pathfinding time, and number of turns compared to traditional ACO, confirming its effectiveness and feasibility. The MS-ACO algorithm exhibits strong performance in mobile robot path planning, effectively addressing issues such as ACO’s susceptibility to local optima in complex environments and slow convergence speed, thereby demonstrating high application value. However, this study currently focuses on path planning in static environments. Future research should further investigate path planning in dynamic obstacle environments to enhance the algorithm’s applicability in more complex scenarios.
Author contribution
Jie Wang designed the path planning algorithm, drafted the manuscript, and conducted the experiments; Xinghua Wang provided corrections and revisions to the article; Ruijin Sun collected the experimental data.
Financial support
This work was supported by the National Natural Science Foundation of China (No. 51901133). Introduction of Talents Scientific Research Start-up Project (No. YJ2021-49). Shanghai Higher Education Young Teacher Training Support Program (No. ZZ202212056).
Competing interests
All authors disclosed no relevant relationships.
Ethical approval
None.


