Path planning stands as a critical challenge in drone technology, where Unmanned Aerial Vehicles must navigate complex 3D environments while satisfying constraints like shortest distance, minimal time, and collision avoidance. Traditional methods face significant limitations in three-dimensional spaces, often generating non-smooth paths incompatible with real-world flight dynamics. To address this, we introduce an integrated approach combining an enhanced ant colony algorithm with cubic spline interpolation, enabling efficient obstacle avoidance and smooth trajectory generation for Unmanned Aerial Vehicles.

Our environmental model discretizes the operational space into a 3D grid, where obstacles are represented as mountain-like structures. The workspace is defined as a cube $OABC-DEFG$ with dimensions $10 \times 10 \times 2$ km³. Along each axis $(X, Y, Z)$, we partition the space into $n$ layers, subdividing each layer into discrete cells. Cells are labeled as traversable (1) or non-traversable (0) based on obstacle occupancy, creating a binary 3D matrix. The obstacle landscape uses Gaussian functions to simulate realistic mountain terrain:
$$z(x,y) = \sum_{i=1}^{k} h_i \exp\left(-\frac{(x-x_{c_i})^2}{a_i^2} – \frac{(y-y_{c_i})^2}{b_i^2}\right)$$
where $h_i$ denotes peak height, $(x_{c_i}, y_{c_i})$ marks peak center, and $a_i$, $b_i$ control spread. This model provides the foundation for pathfinding in drone technology applications.
Enhanced Ant Colony Algorithm
The core innovation lies in our modified ant colony optimization, featuring three key enhancements for Unmanned Aerial Vehicle navigation:
1. Dynamic State Transition Probability: Traditional fixed parameters $\alpha$ (pheromone influence) and $\beta$ (heuristic weight) cause premature convergence. We introduce adaptive parameters:
$$\alpha(R) = \frac{a}{1 + \vartheta \exp\left(\frac{R}{R_{\max}}\right)},\quad \beta(R) = \frac{b}{1 + \vartheta \exp\left(-\frac{R}{R_{\max}}\right)}$$
where $R$ is current iteration, $R_{\max}$ is maximum iterations, $a=3$, $b=5$, and $\vartheta=1.36$. This balances exploration and exploitation: early iterations prioritize heuristic guidance ($\beta$-dominant), while later stages emphasize pheromone trails ($\alpha$-dominant).
2. Multi-Factor Heuristic Function: Our heuristic function $\eta_{ijk}(t)$ incorporates distance and directional cues:
$$\eta_{ijk}(t) = S \cdot \frac{1}{D} \cdot \frac{1}{Q} \cdot \chi$$
$S$ indicates traversability (0/1), $D$ is Euclidean distance between current node $a(i_a,j_a,k_a)$ and next node $a+1(i_{a+1},j_{a+1},k_{a+1})$:
$$D = \sqrt{(i_a – i_{a+1})^2 + (j_a – j_{a+1})^2 + (k_a – k_{a+1})^2}$$
$Q$ is distance between next node and target $E(i_E,j_E,k_E)$:
$$Q = \sqrt{(i_E – i_{a+1})^2 + (j_E – j_{a+1})^2 + (k_E – k_{a+1})^2}$$
$\chi$ is the angle heuristic factor:
$$\chi = \frac{\omega}{\theta + \frac{1}{n} \sum_{u \in w(i)} \theta_{iu}},\quad \omega = \omega_0 + (1 – \omega_0) \times \frac{g}{f}$$
where $\theta$ is the spatial angle between vectors $\overrightarrow{P_aE}$ and $\overrightarrow{P_{a+1}E}$, $\omega_0=0.25$, $g$ is current layer, and $f$ is total layers. This steers the Unmanned Aerial Vehicle toward the target while avoiding local minima.
3. Normalized Pheromone Update: Standard constant evaporation $\rho$ causes stagnation. We implement Gaussian-distributed evaporation:
$$\rho = \psi \frac{1}{\sqrt{2\pi\sigma}} \exp\left(-\frac{(x – \mu)^2}{2\sigma^2}\right)$$
with $\psi=300$, $\sigma=1$, $\mu=0$. Local pheromone updates when ants traverse node $(i,j,k)$:
$$\tau_{ijk}(t+1) = (1 – \varsigma) \cdot \tau_{ijk}(t) + \varsigma \cdot \tau_{0},\quad \varsigma=0.5,\ \tau_0=1.2$$
Global updates after all $m$ ants complete paths:
$$\tau_{ijk}(t+1) = (1 – \rho) \cdot \tau_{ijk}(t) + \rho \cdot \Delta\tau_{ijk},\quad \Delta\tau_{ijk} = \sum_{k=1}^m \frac{C}{L_k}$$
where $C=1$ and $L_k$ is path length of ant $k$. This prevents premature convergence and accelerates optimal path discovery in drone technology applications.
Path Smoothing via Cubic Spline Interpolation
Ant colony output consists of discrete waypoints $\{(x_i,y_i,z_i)\ |\ i=1,2,\dots,R_{\max}\}$. We apply cubic spline interpolation to generate $C^2$-continuous trajectories essential for Unmanned Aerial Vehicle dynamics. For each dimension $(x,y,z)$, we define piecewise polynomials between nodes. For $x$-coordinates in interval $[t_i, t_{i+1}]$:
$$s_x(t) = a_{x_i} + b_{x_i}(t – t_i) + c_{x_i}(t – t_i)^2 + d_{x_i}(t – t_i)^3$$
Coefficients are solved under continuity constraints $s_x(t_i) = x_i$, $\dot{s}_x(t_i) = \dot{s}_x(t_{i+1})$, $\ddot{s}_x(t_i) = \ddot{s}_x(t_{i+1})$. The composite 3D trajectory becomes:
$$S(t) = \left( s_x(t),\ s_y(t),\ s_z(t) \right)$$
This ensures kinematic feasibility for drone technology operations while maintaining obstacle avoidance through waypoints.
Simulation Experiments and Analysis
We implemented our method in MATLAB 2018a within a $10 \times 10 \times 2$ km³ environment. Performance was benchmarked against four algorithms: 1) Standard ACO, 2) Heuristic-only ACO, 3) Heuristic+Pheromone ACO, and 4) Classic A*. Parameters: ant population=100, $R_{\max}=100$, layers $f=10$. Two scenarios were tested: sparse (10 peaks) and dense (30 peaks) obstacles.
Path Quality Metrics
| Algorithm | Sparse Environment | Dense Environment |
|---|---|---|
| Standard ACO | Path: 1,806.75m, Iterations: 57 | Path: 1,959.83m, Iterations: 60 |
| Heuristic-only ACO | Path: 1,679.70m, Iterations: 42 | Path: 1,784.63m, Iterations: 40 |
| Heuristic+Pheromone ACO | Path: 1,656.32m, Iterations: 24 | Path: 1,744.04m, Iterations: 32 |
| Proposed Method | Path: 1,605.06m, Iterations: 17 | Path: 1,725.53m, Iterations: 28 |
| A* Algorithm | Path: 1,631.92m, Iterations: N/A | Path: 1,754.71m, Iterations: N/A |
Convergence Behavior
Our method achieved 99.8% faster convergence versus standard ACO in sparse environments. Key observations:
- Early-stage: Angle heuristic reduced random exploration by 73%
- Mid-stage: Dynamic $\alpha/\beta$ decreased local minima entrapment by 41%
- Late-stage: Gaussian pheromone update accelerated convergence by 2.1×
All methods maintained 100% obstacle avoidance. Smoothing added <5ms computation overhead while ensuring curvature continuity $\ddot{S}(t) < 0.85\ \text{rad/m}^2$ for Unmanned Aerial Vehicle stability.
Conclusion
Our enhanced ant colony algorithm with cubic spline smoothing significantly advances drone technology capabilities in 3D path planning. The dynamic heuristic function and Gaussian pheromone distribution reduce path length by 11.2% and iteration count by 70.2% versus conventional ACO. Smooth trajectories satisfy Unmanned Aerial Vehicle kinematic constraints while maintaining computational efficiency. Future work will integrate wind dynamics and real-time replanning for broader applications in autonomous drone technology operations.
