In the realm of modern agriculture, the integration of autonomous systems has revolutionized traditional practices, particularly in challenging terrains such as hilly regions. Traditional agricultural vehicles often struggle with inefficiency, high costs, and safety risks during the transportation of resources and products. To address these issues, agricultural drones have emerged as a transformative solution, offering flexibility, rapid response, and unmanned operation. These agricultural drones can navigate complex environments, making them ideal for tasks like surveillance, disaster relief, logistics, and crop monitoring. However, the effectiveness of an agricultural drone heavily relies on efficient path planning, which involves determining an optimal flight route that minimizes distance, avoids obstacles, and adheres to operational constraints. Path planning for agricultural drones is a complex optimization problem, often tackled using meta-heuristic algorithms. In this article, I propose a Dynamically Modified Hippopotamus Optimization (DMHO) algorithm, designed to enhance the path planning capabilities of agricultural drones in three-dimensional environments. This algorithm incorporates several improvements over the original Hippopotamus Optimization (HO) algorithm, including Lévy flight initialization, a growth ratio mechanism, an adaptive learning rate lens opposition-based learning algorithm, and random diffusion, all aimed at boosting global search and exploration abilities. Through extensive testing on benchmark functions and realistic agricultural scenarios, I demonstrate that DMHO outperforms existing algorithms in terms of optimization accuracy, stability, and convergence speed, providing a robust framework for agricultural drone applications.

The use of agricultural drones has expanded significantly due to their ability to operate in diverse and rugged landscapes, such as hills and mountains, where ground-based vehicles face limitations. For an agricultural drone, path planning is critical to ensure safe and efficient missions, whether for delivering supplies, monitoring crops, or conducting surveys. Traditional path planning methods, including classical algorithms like A* or Dijkstra, often fall short in high-dimensional spaces due to exponential growth in computational complexity. Meta-heuristic algorithms, inspired by natural phenomena, offer a viable alternative by optimizing cost functions that represent flight constraints. However, these algorithms can suffer from issues like premature convergence, parameter sensitivity, and local optima entrapment, which may lead to suboptimal paths for agricultural drones. The original Hippopotamus Optimization (HO) algorithm, introduced in 2024, shows promise with fast convergence and high precision, but it still has room for improvement in terms of stability and global search capability. In this work, I develop DMHO to overcome these limitations, tailoring it specifically for agricultural drone path planning in three-dimensional terrains. By integrating advanced mechanisms, DMHO aims to find shorter, safer, and more cost-effective routes, thereby enhancing the operational efficiency of agricultural drones in real-world settings.
To provide a comprehensive understanding, I structure this article as follows: First, I detail the design of the DMHO algorithm, explaining each improvement with mathematical formulations and algorithms. Next, I present experimental evaluations using benchmark functions to validate DMHO’s performance against other state-of-the-art algorithms. Then, I apply DMHO to agricultural drone path planning in simulated hilly environments, discussing the modeling of constraints and cost functions. Finally, I conclude with insights and future directions. Throughout, I emphasize the role of agricultural drones in transforming agricultural logistics and highlight how DMHO contributes to this advancement.
Algorithm Design: Dynamically Modified Hippopotamus Optimization (DMHO)
The foundation of DMHO lies in the original Hippopotamus Optimization algorithm, which simulates the social behaviors of hippopotamuses, including territorial defense, foraging, and escape from predators. However, to better suit the demands of agricultural drone path planning, I introduce several modifications that enhance exploration, diversity, and convergence. Below, I describe each component in detail, supported by equations and algorithmic steps.
1. Lévy Flight Initialization
Initial population diversity is crucial for meta-heuristic algorithms to avoid local optima. In the original HO, initialization is done uniformly, which may not adequately cover the search space. To improve this, I employ Lévy flight, a random walk strategy characterized by long jumps, to generate initial solutions. This approach increases global search capability and helps the agricultural drone explore a wider range of possible paths early in the optimization process. For a search space bounded by lower bound \( lb \) and upper bound \( ub \) in \( d \) dimensions, the initial position \( X_i \) of the \( i \)-th individual is given by:
$$ X_i = lb + L(\lambda)(ub – lb) $$
where \( L(\lambda) \) represents the Lévy step, defined by a power-law distribution. This ensures that the initial population for the agricultural drone path planning problem is more dispersed, facilitating better exploration of the three-dimensional environment.
2. Growth Ratio Mechanism
In the original HO, the behavior of immature hippos is modeled using a fixed probability parameter \( T \) based on iteration count. To make this more adaptive, I replace it with a growth ratio mechanism that considers fitness values. This mechanism allows immature individuals to explore farther from their mothers if they exhibit higher fitness, mimicking natural selection. The modified \( T \) is calculated as:
$$ T = \frac{f_b}{f_i} $$
where \( f_b \) is the current best fitness and \( f_i \) is the fitness of the current individual. This dynamic adjustment encourages the agricultural drone to prioritize promising regions in the path space, leading to faster convergence to optimal routes. The position update for female or immature hippos is then expressed as:
$$ X_{i}^{FB} : x_{ij}^{FB} = \begin{cases}
x_{ij} + h_1 (D_h – I_2 MG_i) & (T > 1) \\
H_0 & (T \leq 1)
\end{cases} $$
with \( H_0 \) defined as:
$$ H_0 = \begin{cases}
x_{ij} + h_2 (MG_i – D_h) & (r_6 > 0.5) \\
lb_j + r_7 (ub_j – lb_j) & (r_6 = 0.5)
\end{cases} $$
Here, \( D_h \) is the position of the best individual, \( MG_i \) is the average of randomly selected positions, and \( r_6, r_7 \) are random numbers in [0,1]. This mechanism enhances the algorithm’s ability to balance exploration and exploitation for agricultural drone trajectories.
3. Adaptive Learning Rate Lens Opposition-Based Learning (LOBL) Algorithm
To improve exploitation during the later stages of optimization, I integrate an adaptive learning rate lens opposition-based learning algorithm. This technique is inspired by optical imaging, where a lens creates an opposite image of an object, helping to explore mirror solutions in the search space. For an individual at position \( P_c(t) \), the opposite point \( P_o(t) \) is computed as:
$$ P_o(t) = \frac{lb + ub}{2} + \frac{lb + ub}{2f} – \frac{P_c(t)}{f} $$
where \( f \) is an adaptive parameter that changes with iterations to control the learning rate. I define \( f \) as:
$$ f = 3r – 3 $$
with \( r \) being a random number in [0,1]. This adaptive approach allows the agricultural drone to dynamically adjust its search step size, improving convergence precision when fine-tuning paths in complex terrains. The integration of LOBL ensures that DMHO can escape local optima by considering opposing solutions, which is vital for navigating obstacles in agricultural fields.
4. Random Diffusion
To simulate the escape behavior of hippos from predators, I incorporate random diffusion into DMHO. This adds stochastic movements that enhance exploration, especially when the algorithm stagnates. The diffusion step \( s \) is given by:
$$ s = 0.1 R(1, d)(ub – lb) $$
where \( R(1, d) \) generates a random vector of length \( d \). The new position is then updated as:
$$ X(i+1, 🙂 = X(i, 🙂 + s $$
This random component helps the agricultural drone explore uncharted areas of the path space, potentially discovering shorter or safer routes that might be missed by deterministic updates.
Summary of DMHO Steps
The DMHO algorithm for agricultural drone path planning can be summarized in the following steps, which I present in an algorithmic format:
- Initialization: Generate the initial population using Lévy flight as per Equation (1). Set parameters such as population size \( N \), maximum iterations \( i_{max} \), and problem dimensions \( d \).
- Fitness Evaluation: Compute the fitness for each individual based on the agricultural drone path planning cost function (detailed later).
- Main Loop: For each iteration until \( i_{max} \):
- Apply the growth ratio mechanism to update positions of female/immature individuals using Equations (3)-(6).
- Update positions of male individuals based on territorial behaviors.
- Integrate adaptive LOBL for exploitation using Equations (8)-(11).
- Implement random diffusion using Equations (13)-(14) to enhance exploration.
- Evaluate new fitness values and update the best solution.
- Termination: Output the best-found path for the agricultural drone.
These modifications collectively make DMHO a robust optimizer for agricultural drone applications, as demonstrated in the following sections.
Experimental Validation on Benchmark Functions
To assess the performance of DMHO, I conduct extensive experiments on 23 classical benchmark functions from the CEC2005 suite, which include unimodal, multimodal, and fixed-dimension functions. These tests are crucial to verify the algorithm’s optimization capabilities before applying it to agricultural drone path planning. I compare DMHO with eight other meta-heuristic algorithms commonly used in path planning: Dung Beetle Optimizer (DBO), Fire Hawk Optimizer (FHO), Honey Badger Algorithm (HBA), Harris Hawks Optimization (HHO), Particle Swarm Optimization (PSO), Grey Wolf Optimizer (GWO), Gravitational Search Algorithm (GSA), and the original HO. All algorithms are implemented in MATLAB R2021b on a Windows 10 system with an Intel Core i5 processor. To ensure fairness, I set a population size of 30, maximum iterations of 500, and run each algorithm independently 50 times per function. Performance metrics include average fitness value and standard deviation, with lower values indicating better optimization.
The benchmark functions cover a range of complexities, as summarized in Table 1. For space, I provide a subset of key functions here, but full results are discussed. The functions are categorized as follows:
| Function Type | Example Functions | Dimensions | Optimal Value |
|---|---|---|---|
| Unimodal | \( f_1(x) = \sum_{i=1}^n x_i^2 \) | 30 | 0 |
| Multimodal | \( f_8(x) = \sum_{i=1}^n -x_i \sin(\sqrt{|x_i|}) \) | 30 | -12569.4 |
| Fixed-Dimension | \( f_{14}(x) \) (Shekel function) | 2 | 1 |
The experimental results for selected functions are presented in Table 2, which shows the average and standard deviation over 50 runs. DMHO consistently achieves the lowest average fitness in 21 out of 23 functions, demonstrating superior optimization accuracy. For instance, on unimodal functions like \( f_1 \), DMHO reaches the theoretical optimum of 0 with zero standard deviation, outperforming all competitors. On multimodal functions such as \( f_9 \) (Rastrigin function), DMHO also attains the optimum, highlighting its ability to avoid local optima—a critical feature for agricultural drone path planning where multiple obstacles create a rugged fitness landscape. In terms of stability, DMHO shows lower standard deviations than HO in most cases, with improvements of up to 72.81% in complex environments. This indicates that DMHO is not only accurate but also reliable, reducing variability in path planning outcomes for agricultural drones.
To statistically validate these findings, I perform a Friedman test, which ranks algorithms based on their average performance across all functions. The results, shown in Table 3, place DMHO first with an average rank of 2.1956, followed by HO at 2.7391. This confirms DMHO’s significant improvement over the original algorithm and its competitiveness against other state-of-the-art optimizers. The enhanced exploration and exploitation mechanisms in DMHO contribute to this success, making it well-suited for the high-dimensional, constrained problems inherent in agricultural drone navigation.
Agricultural Drone Path Planning Application
With DMHO validated on benchmarks, I now apply it to agricultural drone path planning in three-dimensional hilly terrains. The goal is to find an optimal flight path between start and end points that minimizes a cost function while satisfying operational constraints. This scenario mimics real-world agricultural operations, where drones transport resources over uneven landscapes with obstacles like hills and valleys. I model the environment as a 200 m × 200 m × 100 m space, with varying obstacle densities to represent different complexity levels: Environment 1 (medium complexity), Environment 2 (high complexity), and Environment 3 (transitional terrain). The obstacles are modeled as Gaussian-shaped hills with specified coordinates, heights, and slopes, as detailed in Table 4. For each environment, I define start and end points for the agricultural drone, with constraints including minimum flight height, maximum path length, turning angles, and climb/dive angles.
The agricultural drone is configured with typical parameters: minimum flight height \( H_{min} = 20 \) m, speed \( v = 20 \) m/s, maximum turning angle \( \phi = 60^\circ \), maximum climb/dive angle \( \theta = 30^\circ \), and maximum path length \( L_{max} = 600 \) m. These constraints ensure realistic and safe operations for the agricultural drone in hilly regions. The path planning problem is formulated as optimizing a cost function \( C \) that incorporates multiple factors:
$$ C = \sum_{i=1}^n (\omega_1 l_i^2 + \omega_2 h_i^2 + \omega_3 g_i) $$
where \( l_i \) is the length of the \( i \)-th path segment, \( h_i \) is the drone’s altitude above ground, \( g_i \) is a threat index representing proximity to obstacles, and \( \omega_1, \omega_2, \omega_3 \) are weight coefficients set to 0.4, 0.4, and 0.2, respectively. This cost function balances path shortness, safety, and feasibility for the agricultural drone. The constraints are mathematically expressed as follows:
- Minimum Flight Height: \( H_i \geq H_{min} \) for all segments.
- Minimum Path Segment Length: \( l_i \geq L_{min} \), where \( L_{min} \) is set to 10 m to avoid abrupt maneuvers.
- Maximum Turning Angle: \( \frac{a_i^T a_{i+1}}{\|a_i\| \|a_{i+1}\|} \geq \cos \phi \), with \( a_i = (x_i – x_{i-1}, y_i – y_{i-1})^T \).
- Maximum Climb/Dive Angle: \( \frac{|z_i – z_{i-1}|}{|a_i|} \leq \tan \theta \).
- Maximum Path Length: \( \sum_{i=1}^n \|l_i\| \leq L_{max} \).
I implement DMHO to minimize \( C \) by encoding paths as sequences of waypoints in 3D space. The population represents potential paths for the agricultural drone, and the algorithm iteratively refines them based on the cost and constraints. For comparison, I test the same eight algorithms as in the benchmark studies, using a population size of 30 and 50 iterations per run. Each algorithm is executed 10 times independently to account for randomness, and the best-found paths are visualized. The results for the three environments are shown in Figure 1 (though not referenced directly, the paths can be described), with convergence curves in Figure 2 and numerical metrics in Table 5.
In all environments, DMHO generates the shortest average path lengths: 283.803 m in Environment 1, 282.844 m in Environment 2, and 122.603 m in Environment 3. Compared to HO, DMHO reduces standard deviations by 33.39%, 72.81%, and 7.08%, respectively, indicating higher stability and reliability. The convergence curves demonstrate that DMHO reaches lower cost values faster than other algorithms, often within 10-20 iterations. This efficiency is crucial for real-time agricultural drone operations, where rapid path replanning may be needed due to dynamic obstacles or changing conditions. The paths planned by DMHO also adhere well to constraints, avoiding obstacles while maintaining smooth trajectories—a key requirement for agricultural drones carrying delicate payloads.
These findings underscore DMHO’s practicality for agricultural drone applications. By leveraging improved search mechanisms, DMHO can navigate complex terrains more effectively than existing algorithms, reducing flight time and energy consumption. This translates to cost savings and increased safety for agricultural operations, making drones more viable for widespread use in hilly regions.
Discussion and Implications
The development of DMHO addresses several challenges in agricultural drone path planning. First, the integration of Lévy flight initialization enhances global exploration, allowing the agricultural drone to consider diverse route options early in the planning process. This is particularly beneficial in unknown or highly variable environments, such as agricultural fields with uneven topography. Second, the growth ratio mechanism introduces fitness-based adaptability, mimicking natural evolution to focus search efforts on promising regions. This improves convergence speed without sacrificing accuracy, which is essential for time-sensitive drone missions. Third, the adaptive LOBL algorithm provides a balanced exploitation strategy, enabling fine-tuning of paths near optimal solutions. This helps the agricultural drone avoid minor obstacles and optimize flight parameters like altitude and turning angles. Finally, random diffusion adds an element of stochasticity that prevents stagnation, ensuring the algorithm can escape local optima—a common issue in path planning for agricultural drones with multiple constraints.
From an agricultural perspective, the adoption of DMHO-based path planning can revolutionize logistics and monitoring in hilly areas. Agricultural drones equipped with this algorithm can transport fertilizers, seeds, or harvested crops more efficiently, reducing reliance on ground vehicles that are prone to accidents and high costs. Additionally, drones can perform surveillance tasks, such as assessing crop health or detecting pests, with optimized flight paths that maximize coverage and minimize energy use. The robustness of DMHO, as evidenced by low standard deviations in tests, means that agricultural drones can operate reliably under varying conditions, enhancing farmer confidence in drone technology.
However, there are limitations to consider. The computational complexity of DMHO is slightly higher than that of HO due to additional mechanisms, but this is offset by faster convergence, as shown in experiments. Future work could focus on parallelizing DMHO for real-time implementation on agricultural drone hardware or integrating it with machine learning for adaptive weight tuning in the cost function. Moreover, testing in real-world agricultural scenarios with dynamic obstacles, such as moving animals or weather changes, would further validate DMHO’s applicability.
Conclusion
In this article, I have presented a Dynamically Modified Hippopotamus Optimization (DMHO) algorithm for agricultural drone path planning. By incorporating Lévy flight initialization, a growth ratio mechanism, an adaptive learning rate lens opposition-based learning algorithm, and random diffusion, DMHO significantly improves upon the original HO algorithm in terms of global search capability, convergence speed, and stability. Extensive testing on 23 benchmark functions shows that DMHO achieves the best performance in 21 functions, outperforming eight competing algorithms. When applied to agricultural drone path planning in simulated hilly terrains, DMHO generates shorter and more reliable paths, with average fitness values lower than all counterparts and reduced standard deviations. These results highlight DMHO’s potential to enhance the efficiency and safety of agricultural drones in complex environments, paving the way for broader adoption in precision agriculture. As drone technology continues to evolve, algorithms like DMHO will play a crucial role in unlocking their full potential, transforming agricultural practices for the better.
