Abstract
To address the challenges associated with traditional traversal-based land leveling, which often suffered from a lack of coordination and planning, resulting in low operational efficiency and the management of large data volumes in contemporary path planning, this study proposed a variable-scale improved ant colony optimization algorithm specifically designed for land leveling path planning. The research introduced the IACO (Improved Ant Colony Optimization) algorithm for large-scale inter-region soil balance path planning, alongside the FIA*ACO (Fusion of the Improved A* Ant Colony Optimization) algorithm for small-scale, fine-grained full-field leveling path planning. Based on the analysis of actual field experiments, the inter-regional levelling operation resulted in a 47.5% reduction in the maximum elevation difference of the path, a 26.3% increase in the distribution of the 5 cm elevation difference, and a 53.7% improvement in flatness. In contrast, the refined levelling operation achieved a 62.9% reduction in the maximum elevation difference, a 52.0% increase in the distribution of the 5 cm elevation difference, and a 78.4% enhancement in flatness. These findings suggested that regional path planning could effectively enhance the area of fields meeting leveling standards, whereas fine-gridded path planning further optimized the leveling effect. This confirmed the efficacy of the scale-variable improved ant colony optimization algorithm in land leveling path planning.
Similar content being viewed by others
Introduction
Land leveling is a crucial step in modern agriculture, directly impacting irrigation efficiency, crop yields, and land use effectiveness1,2,3. Currently, leveling operations are typically conducted using parallel or spiral line traversals, or are randomly selected by the operator based on visual inspection, often without coordination or planning4,5,6,7. Most operational paths derived from digital maps of farmland are subjectively chosen, lacking comprehensive optimization8,9,10. This results in frequent occurrences of 'full-load dragging’ and 'empty running,' which lead to low efficiency and high fuel consumption. Consequently, there is an urgent need for the development of path planning methods for leveling operations to reduce fuel consumption and enhance efficiency.
In recent years, automatic navigation technology has increasingly been applied to land leveling operations. Path planning for these leveling operations is a critical component of automatic navigation in farmland leveling. The leveling machine adjusts its travel state by measuring the lateral and heading errors relative to the planned path. Utilizing global navigation satellite system (GNSS), the difference between the elevation of the operation point and the reference height is measured, enabling the hydraulic cylinders to control the vertical movement of the leveling blade for excavation or filling tasks11,12. Liu et al. utilized the shortest empty and full load times of the loader as the optimal evaluation criterion. They clustered farmland grids to facilitate global leveling path planning by employing designed excavation and filling methods in conjunction with local search strategies. However, this evaluation focused solely on minimizing the shortest times for empty and full loads, neglecting soil movement efficiency, which resulted in longer path planning times13. Kang et al. proposed a global path planning method that effectively reduced ineffective operation time to some extent. Nevertheless, their approach only addressed minimizing the number of ineffective empty/full load operations, steering actions, and repetitive traversals, while failing to consider the comprehensive load rate of the leveling blade, which led to longer path distances14. Jin et al. introduced a three-dimensional (3D) path planning method for farmland leveling navigation based on an improved ant colony algorithm, aiming for efficient soil transport and the shortest path. However, this method was limited to planning one path at a time, resulting in lower operational efficiency15. Ojima et al. demonstrated that dynamic programming could be effectively applied to land leveling, allowing for dynamic path adjustments based on the leveling blade load; however, the computational complexity increased significantly with the number of nodes16. Jeon et al. employed a genetic algorithm to identify the optimal inner trajectory for paddy fields by minimizing head-turning distances and traversing the entire field. However, this method was susceptible to local optima17. Jing et al. introduced a constraint on the minimum turning radius of the leveling machine and proposed an enhanced MOEA/D-FMACO algorithm to determine the optimal autonomous leveling path. This approach was grounded in multi-objective optimization that considered travel distance, steering angle, and earthwork volume. Nonetheless, they overlooked the leveling blade load as an optimization objective, which led to an increase in repetitive operations18. The research status of land leveling path planning both domestically and internationally was shown in Table 1.
To address the challenges posed by large data volumes, inadequate consideration of the leveling blade load, and the limitations of single-path planning in the previously discussed leveling operation path planning, this paper investigated a scale-variable improved ant colony optimization algorithm for continuous path planning. We proposed an enhanced ant colony optimization algorithm specifically designed for large-scale inter-regional earthwork balance path planning. Additionally, we developed a hybrid approach that integrated improved A* and ant colony optimization algorithms for small-scale fine-grading operation path planning across the entire farmland. This research provided a comprehensive technical framework for the global optimization of leveling operation paths.
Materials and methods
Establishment of farmland terrain model and regional division
This study employed the grid-based method for modeling the farmland terrain. Initially, terrain data for the farmland was captured using unmanned aerial vehicles (UAVs) mapping19, followed by processing the information into grids. Each elevation point across the terrain was organized within the grid. The grid value corresponded to the earthwork volume information within each grid cell. The volume of earthwork needing excavation or filling in each grid cell was computed to serve as the foundation for path planning. It was presumed that the earthwork volume in excavation grids would be positive, whereas in filling grids, it would be negative. For example, the gridded terrain data for a piece of farmland was illustrated in Fig. 1. To streamline path planning, the grid size was initially defined as 1 m but should be scaled up threefold for actual computations.
Rasterization of farmland terrain information.
The region-growing utilized the principle of similarity to combine pixels that had common attributes, resulting in the formation of larger regions with similar characteristics. The key steps included the following.
Step 1: Identify position \(\left( {x,y} \right)\), which served as the initial core seed point, where \(f\left( {x,y} \right)\) was the corresponding grid value, and \(\tilde{f}(x,y)\) referred to the grid values of the four neighboring grids around \(\left( {x,y} \right)\) (top, bottom, left, and right). Equation (1) presented the primary condition for the region growing process. The first growth process of the region was illustrated in Fig. 2.
First growth process of the region.
In the equation, \(T\) denoted the threshold for region growing.
Step 2: Upon completing the initial region growing process, the core seed point was updated to the mean value \(H_{{ave}}\) of the expanded seed point set \({\mathcal{S}}\), as detailed in Eq. (2).
In the equation, \(n\) denoted the total number of grids grown within set \({\mathcal{S}}\), and \(f_{{Si}} \left( {x,y} \right)\) referred to the earthwork volume of the \(i\)-th grid in set \(S\), \({\text{m}}^{3}\).
Step 3: The newly incorporated growth points in set \({\mathcal{S}}\) would have their adjacent grid points (top, bottom, left, and right) designated as candidate growth points. Grid points that satisfied the growth criteria outlined in Eq. (3) would be merged into the target region.
Step 4: Repeat steps 2 and 3 until the region growth was complete.
Inter-regional operation path planning based on the IACO
Establishment of objective function for inter-regional operation path planning
Assume that \(V_{i} = \left( {V_{1} ,V_{2} , \ldots ,V_{m} } \right)\) represented the scraper’s work volume at the \(i\)-th node along the path, where excavation was positive and filling was negative. The current path passed through \(m\) nodes. The ratio of the total work performed along the entire path to the distance of the current path, denoted as \(F_{{transport}}\), was presented in Eq. (4).
In the equation, \(L_{{sum}}\) denoted the distance between the starting grid and the ending grid, \(m\).
In this study, empty load travel was defined as the distance between the final operational grid in the high-terrain region and the first operational grid upon entering the low-terrain region, and the distance from the last operational grid in the low-terrain region to the first operational grid in the high-terrain region. The empty load travel ratio was calculated as outlined in Eq. (5).
In the equation, \(L_{{empty}}\) denoted the empty load travel distance along the path, \(m\).
The objective function for inter-regional operation path planning was presented in Eq. (6). A lower objective function value indicated greater operational efficiency for the inter-regional path.
In the equation, \(\omega _{1}\) and \(\omega _{2}\) were weight coefficients, \(\omega _{1} \in \left( {0,1} \right)\), \(\omega _{2} \in \left( {0,1} \right)\), and \(\omega _{1} + \omega _{2} = 1\).
Design of the IACO algorithm
When the levelling scraper was operating in a high-terrain region, the optimal neighborhood search algorithm could identify the excavation operation path in the high-terrain and the filling operation path in the low-terrain. By considering the earthwork volume along the operational search path between the high and low-terrain regions as heuristic information20, the transition probability \(p_{{ij}}^{z} (t)_{{HighToLow}}\), was presented in Eq. (7).
In the equation, \(allowed_{z}\) denoted the set of next regions for ant \(z\) to move towards; \(\alpha\) referred the pheromone weighting factor; \(\beta\) denoted the heuristic function weighting factor; \(\mu _{{ij}}\) referred the total amount of soil to be moved along the search path from region \(i\) to region \(j\), as shown in Eq. (8).
In the equation, \(M_{H}\) denoted the number of grids along the operational search path in the high-terrain region; \(V_{{m_{h} }}\) referred the amount of soil to be moved when passing through the \(m_{h}\)-th grid in the high-terrain region, \(m^{3}\); \(N_{L}\) denoted the number of grids along the operational search path in the low-terrain region; \(V_{{n_{l} }}\) referred the amount of soil to be moved when passing through the \(n_{l}\)-th grid in the low-terrain region, \(m^{3}\).
When the levelling scraper was in a low-terrain region, the ratio of the earthwork volume to be moved in the target high-terrain region to the scraper’s maximum load was also considered as heuristic information21. Thus, the transition probability \({p_{{ij}}^{z} (t)_{{LowToHigh}} }\), was provided in Eq. (9).
In the equation, \(V_{j}^{r}\) denoted the amount of earthwork to be moved in the next target high-terrain region, \(m^{3}\).
In the ant colony optimization (ACO) algorithm, the weight factor of the heuristic function remained fixed and did not adapt based on historical optimal search path information during subsequent iterations. This limitation frequently caused the algorithm to become trapped in a local optimum. To address this issue, the optimization objective function values from both previous and current iterations, as well as the overall optimal search path up to the current iteration, were employed to adaptively modify the weight factor of the heuristic function. The method for this adaptive adjustment was outlined in Eq. (10).
In the equation, \(F_{{region}} \left( {best_{k} } \right)\) denoted the optimization objective function value of the ant colony’s optimal search path up to the \(k\)-th iteration; \(F_{{region}} \left( k \right)\) referred the optimization objective function value of the ant colony’s optimal search path in the \(k\)-th iteration; \(F_{{region}} \left( {k - 1} \right)\) denoted the optimization objective function value of the ant colony’s optimal search path in the (\(k - 1\))-th iteration; \(k_{{\max }}\) referred the total number of iterations; \(Q_{1}\) was a constant, set to 2 in this paper.
The pheromone evaporation factor \(\rho\) influenced the pheromone update process in the ant colony algorithm22. To address this, a pheromone evaporation factor adjustment rule was introduced to adaptively modify the pheromone concentration along the paths, as presented in Eq. (11).
In the equation, \(\rho _{a}\) denoted the pheromone evaporation factor weighting coefficient; \(\rho \left( t \right)\) referred the pheromone evaporation factor at time \(t\); \(\rho _{{\min }}\) denoted the minimum pheromone evaporation factor; \(N_{{best_{{F_{{region}} }} }}\) referred the consecutive iterations of the current optimal search path in the ant colony.
The pheromone increment \(\Delta \tau _{{ij}}^{z} (t)^{\prime }\) of the \(z\)-th ant after moving from region \(i\) to region \(j\) at time \(t\) was improved as shown in Eq. (12).
In the equation, \(Q\) denoted the pheromone intensity coefficient, set to 10 in this paper; \(F_{{region}}\) referred the optimization objective function value of the optimal search path for the \(z\)-th ant up to the current iteration.
After the improvement, the pheromone concentration on the search path at time \(\left( {t + 1} \right)\) was updated according to Eq. (13).
In the equation, \(\tau _{{ij}} \left( t \right)^{\prime }\) denoted the pheromone concentration on the path from the current region \(i\) to the next region \(j\); \(Z_{{ant}}\) referred the total number of ants traveling from region \(i\) to region \(j\).
To avoid premature convergence and prevent the ant colony from maturing too early, upper and lower bounds were imposed on the pheromone levels, as outlined in Eq. (14).
In the equation, \(\tau _{{{\text{max}}}}\) denoted the upper limit of the pheromone, and \(\tau _{{\min }}\) referred the lower limit of the pheromone.
The flowchart of inter-region earthwork balance operation path planning was shown in Fig. 3.
Flowchart of inter-region earthwork balance operation path planning.
Full-field precision operation path planning based on the FIA*ACO
Establishment of objective function for full-field precision operation path planning
Assuming there were \(U\) nodes along this path, \(V_{{\mathcal{U}}}\) denoted the earthwork volume managed by the grader at the \({\mathcal{U}}\)-th node. The efficiency of earthwork transportation was provided in Eq. (15).
In the equation, \(L_{{StartToEnd}}\) denoted the distance of the path from the start grid to the end grid, \(m\).
The sum of the grader blade load variation rates, \(V_{p}\), was presented in Eq. (16).
In the equation, \(V_{{{\text{max}}}}\) denoted the maximum load of the grader blade, \(m^{3}\).
The calculation rules for the steering factor \(angle_{i}\), were as follows:
Suppose that in a planned operation path, the three adjacent grid nodes were \(r_{{i - 1}}\), \(r_{i}\), and \(r_{{i + 1}}\), with corresponding coordinates \(\left( {x_{{i - 1}} ,y_{{i - 1}} } \right)\), \(\left( {x_{i} ,y_{i} } \right)\), and \(\left( {x_{{i + 1}} ,y_{{i + 1}} } \right)\). Let vector \(\vec{v}_{1} = \left( {x_{i} - x_{{i - 1}} ,y_{i} - y_{{i - 1}} } \right)\) and \(\vec{v}_{2} = \left( {x_{{i + 1}} - x_{i} ,y_{{i + 1}} - y_{i} } \right)\). The angle \(\theta _{i}\) formed by the path of these three adjacent nodes could be expressed by Eq. (17).
The steering factor was assigned different values depending on the angles of the path, as outlined in Eq. (18).
The steering objective function \(F_{\theta }\) was defined as the sum of the steering factors \(angle_{i}\) for all adjacent triplets of nodes along the path, as presented in Eq. (19). A lower function value corresponded to larger turning angle on the path, indicating smoother steering.
In the equation, \(U\) denoted the number of nodes on this path.
Thus, the objective function for the full-field precision operation path planning was formulated, as shown in Eq. (20).
In the equation, \({\mathcal{V}}_{1}\), \({\mathcal{V}}_{2}\), and \({\mathcal{U}}_{3}\) referred the weight coefficients, and \(v_{1} + v_{2} + v_{3} = 1\).
Design of the FIA*ACO algorithm
By analyzing the requirements of the leveling operation process, the inclusion of \(q\left( n \right)\) in the heuristic function enhanced the evaluation function of the traditional A* algorithm, as demonstrated in Eq. (21).
In the equation, \(q\left( n \right)\) represented three working conditions based on the grader’s load at the parent node: (1) When the grader’s current load was 70% or more of its maximum capacity, filling operation was prioritized; (2) When the grader’s load was at or below 30% of its maximum capacity, digging operation was given priority; (3) In all other situations, priority was given to advancing to the child node that exhibited the highest rate of change in earthwork volume compared to the parent node grid.
In the equation, \(V_{{p_{{node}} }}\) denoted the load of the grader at the parent node grid, \(m^{3}\); \(V_{{c_{{node}} }}\) referred the load of the grader after passing the child node grid, \(m^{3}\); \(V_{{j_{{node}} }}\) denoted the earthwork volume to be processed at the child node grid, \(m^{3}\); \(V_{{i_{{node}} }}\) referred the earthwork volume to be processed at the parent node grid, \(m^{3}\); \(V_{{\max }}\) denoted the maximum load of the grader, \(m^{3}\); \(\Gamma\) was a constant, set to 0.01 in this paper.
The initial pheromone concentration on the path was adjusted, as demonstrated in Eq. (23).
In the equation, \(K\) referred the magnification factor, which was taken as 2 in this paper.
To enhance the convergence performance of the FIA*ACO, a reward-punishment mechanism was implemented to update pheromone levels, effectively guiding ants in their exploration of superior operational paths. When an ant discovered a better path, it deposited additional pheromone along the route as a reward, thereby increasing the likelihood that subsequent ants would select that path. Conversely, if an ant identified a suboptimal path, it reduced pheromone deposition as a form of punishment, thereby decreasing the chances of future ants choosing that route. Additionally, a flat terrain operation path quality coefficient was introduced to evaluate the quality of various operational paths, as detailed in Eq. (24).
In the equation, \({\mathbf{F}}_{{Ar}}^{{\min }}\) denoted the minimum value of the ant colony optimization objective function by the \(k\)-th iteration; \(F_{{Ar}}^{{\min }} m\) referred the minimum value of the optimization objective function for the \(m\)-th ant by the \(k\)-th iteration.
The pheromone update that incorporated the flat terrain operation path quality coefficient was presented in Eq. (25), while the pheromone increment was detailed in Eq. (26).
In the equation, \(\tau _{{ij}} \left( {t + 1} \right)\) denoted the pheromone concentration between grid \(i\) and grid \(j\) at time \(\left( {t + 1} \right)\); \(\rho\) referred the pheromone evaporation factor; \(\Delta \tau _{{ij}}^{m} (t)\) denoted the pheromone increment on the path between grid \(i\) and grid \(j\) when the \(m\)-th ant passed at time \(t\); \({\mathcal{Q}}\) was a constant, set to 10 in this paper; \(W_{{ant}}\) referred the number of ants.
The flowchart of full-field fine-grid leveling operation path planning was shown in Fig. 4.
Flowchart of full-field fine-grid leveling operation path planning.
Results
To validate the robust global optimization capability and rapid convergence speed of the proposed IACO for inter-region path planning and the FIA*ACO for full-field precision operation path planning, simulation experiments were carried out using MATLAB. The parameters used in the algorithm were provided in Table 2. The distribution of earthwork volume in the two farmlands before levelling were presented in Fig. 5.
Information on the earthwork volume distribution of farmland before levelling. (a) 3D distribution of earthwork volume infarmland 1 before levelling. (b) 3D distribution of earthwork volume infarmland 2 before levelling.
Simulation test validation of inter-regional operation path planning
Performance test experiment for the IACO
The algorithm’s performance impacted the path planning results, which directly affected the effectiveness of flat terrain operations. To assess the optimization capability of the IACO proposed in this paper, four test functions (categorized as unimodal and multimodal) listed in Table 3 were utilized to evaluate the IACO algorithm’s performance in terms of convergence speed, accuracy, and global optimization.
The performance results from the simulation test were displayed in Table 4. Analysis of the table indicated that the optimal value, average value, and standard deviation of the proposed IACO were significantly superior to those of the ACO when solving both unimodal and multimodal functions.
The process of four functions converging to the optimal solution using the ACO and IACO were illustrated in Fig. 6. Analysis of the figures indicated that the IACO developed in this paper significantly outperformed the ACO in terms of convergence speed, accuracy, and global optimization, validating the effectiveness of the improvements made to the heuristic function and pheromone update strategy in the ACO.
The convergence processes of four functions to the optimal solution based on the ACO and IACO. (a) F1(x) converged to the optimal solutionbased on the ACO and IACO. (b) F2(x) converged to the optimal solutionbased on the ACO and IACO. (c) F3(x) converged to the optimal solutionbased on the ACO and IACO. (d) F4(x) converged to the optimal solutionbased on the ACO and IACO.
Simulation analysis of operation path planning with the same start and end regions
-
(1)
Path planning for farmland 1.
In the first inter-region path planning, the region near the edge of the farmland with the largest amount of earthwork volume to be excavated was selected as the starting region, and the region with the largest amount of earthwork volume to be filled was selected as the ending region for inter-region path search. As shown in Fig. 7a, Region 1 was set as the starting region, and region 10 was set as the ending region. The purple path represented the search path of the IACO, while the black path represented the search path of the ACO. For inter-region path planning in farmland 1, the convergence curves of different algorithms were presented in Fig. 7b, and the final path planning results were presented in Table 5. The simulation results indicated that, compared with the ACO, the IACO reduced the iterations to convergence by 31.75%, and the value of the optimized objective function after convergence was reduced by 47%.
Path planning and objective function convergence curve of farmland 1 based on the ACO and IACO. (a) Optimal inter-region operational path based on the ACO and IACO. (b) Convergence curve of the optimization objective function based on the ACO and IACO.
Figure 8a presented the optimal operational path planned by the ACO within farmland 1, and Fig. 8b presented the optimal operational path planned by the IACO within farmland 1. The path started from the starting region, passed through intermediate node regions, and finally reached the ending region. According to the simulation results, the ACO only optimized for the shortest inter-region operational distance, which did not reflect the actual flat terrain work condition. In contrast, the IACO generated a path that better fit the flat terrain work scenario, fully considering both inter-region distance and the volume of earthwork to be done between regions.
Optimal inter-region operational path planning of farmland 1 based on the ACO and IACO. (a) Optimal inter-region operational path searched and planned based on the ACO. (b) Optimal inter-region operational path searched and planned based on the IACO.
The evaluation indicators of the optimal operational paths planned by the algorithms mentioned above were presented in Table 6. The analysis indicated that, compared to the ACO, the IACO reduced empty load travel distance by 19.7% and increased the efficiency of earthwork volume movement by over 50%.
-
(2)
Path planning for farmland 2.
The optimal inter-regional operational path search and planning for farmland 2, based on the ACO and IACO, were presented in Fig. 9a. Region 1 was set as the starting point, and region 8 was set as the ending point. The optimal inter-regional operational path sequences planned by the ACO and IACO were presented in Table 7. Analysis of Fig. 9b indicated that, compared with the ACO, the IACO reduced the number of convergence iterations by 40% and decreased the value of the optimized objective function by 31.7%.
Path planning and objective function convergence curve of farmland 2 based on the ACO and IACO. (a) Optimal inter-region operational path based onthe ACO and IACO. (b) Convergence curve of the optimizationobjective function based on the ACO andIACO.
Figure 10a presented the optimal operational path planned by the ACO within farmland 2, and Fig. 10b presented the optimal operational path planned by the IACO within farmland 2.
Optimal inter-region operational path planning of farmland 2 based on the ACO and IACO. (a) Optimal inter-region operational pathsearched and planned based on the ACO. (b) Optimal inter-region operational pathsearched and planned based on the IACO.
The evaluation indicators for the optimal operational paths planned by the algorithms mentioned above were presented in Table 8. Analysis indicated that, compared with the ACO, the IACO reduced empty load travel distance by 17.3% and increased the efficiency of earthwork volume movement by more than 30%.
Through the analysis of the optimal operational path search and planning for two farmlands with different earthwork distributions and topographies, it was evident that the IACO not only optimized for the shortest operational distance but also integrated both operational distance and the volume of earthwork between regions. For the same starting and ending regions, the IACO significantly reduced empty load travel distance and increased the efficiency of earthwork volume movement during inter-region path planning.
Simulation analysis of inter-regional earthwork balance operation path planning
The above experiment only analyzed single-instance inter-region operational path planning. Although the IACO algorithm’s advantages were demonstrated, the analysis remained incomplete. Therefore, it was necessary to use both the ACO and IACO to complete the earthwork balance operations between regions and analyze the overall operational effect to further highlight the advantages of the IACO.
-
(1)
Simulation analysis of operation path planning in farmland 1.
The evaluation indicators after complete levelling operations between regions in farmland 1 were presented in Table 9. According to the simulation results, compared to the ACO, the IACO reduced the empty load rate by 17%, decreased the full load rate by 19.1%, reduced the total path length by 25.1%, and lowered empty load travel distance by 53.46%. Therefore, from the overall analysis of operational effectiveness, the levelling operation based on the IACO proved to be more efficient.
The remaining earthwork volume after complete levelling operations between regions in farmland 1, based on the ACO and IACO, were presented in Fig. 11. Figure 11a, b were the 3D information graphs of the remaining earthwork volume after complete levelling operations using the ACO and IACO, respectively. Figure 11c, d were the corresponding 2D information graphs. From the analysis of the figures, it could be observed that the remaining earthwork volume was lower, and the terrain was smoother after complete levelling operations between regions in farmland 1 based on the IACO.
Information on remaining earthwork volume after complete levelling operations between regions in farmland 1 based on the ACO and IACO. (a) 3D information of remaining earthworkvolume based on the ACO. (b) 3D information of remaining earthworkvolume based on the IACO. (c) 2D information of remaining earthworkvolume based on the ACO. (d) 2D information of remaining earthworkvolume based on the IACO.
-
(2)
Simulation analysis of operation path planning in farmland 2.
The evaluation indicators after complete levelling operations between regions in farmland 2 were presented in Table 10. According to the simulation results, compared to the ACO, the IACO reduced the empty load rate by 16.6%, decreased the full load rate by 19.65%, reduced the total path length by 29.9%, and lowered empty load travel distance by 36.55%. Therefore, from the overall analysis of operational effectiveness, the levelling operation based on the IACO proved to be more efficient.
The remaining earthwork volume after levelling operations between regions in farmland 2, based on the ACO and IACO, were presented in Fig. 12. Figure 12a, b represented the 3D information graphs of the remaining earthwork volume after levelling operations using the ACO and IACO, respectively. Figure 12c, d were the corresponding 2D information graphs. From the simulation results, it could be observed that for farmland with small terrain undulations, the earthmoving efficiency in complete levelling operations between regions based on the IACO was higher.
Information on remaining earthwork volume after complete levelling operations between regions in farmland 1 based on the ACO and IACO. (a) 3D information of remaining earthwork volume based on the ACO. (b) 3D information of remaining earthwork volume based on the IACO. (c) 2D information of remaining earthwork volume based on the ACO. (d) 2D information of remaining earthwork volume based on the IACO.
From the analysis of the above simulation results, it could be observed that the designed IACO demonstrated high operational efficiency and an effective levelling performance when working on farmland with varying terrains.
Simulation test validation of full-field precision operation path planning
Performance test experiment for the FIA*ACO
The experiment compared the performance of three different ant colony optimization algorithms applied to four typical test functions. The experimental results were presented in Table 11.
From the analysis of the table results, it could be observed that, compared with the other three ant colony optimization algorithms, the FIA*ACO designed in this paper performed better in terms of convergence accuracy and solution stability when solving the first three test functions. Although the convergence accuracy was slightly lower than that of the IACO when solving the fourth test function, its solution stability was thousands of times higher.
The process of convergence to the optimal solution for the four functions, based on the ACO, IACO, and FIA*ACO, were shown in Fig. 13. From the analysis of the figures, it was evident that the FIA*ACO demonstrated a faster convergence speed when solving both unimodal and multimodal functions.
The process of four functions converging to the optimal solution based on the ACO, IACO, and FIA*ACO. (a) F1(x) converged to the optimal solutionbased on the ACO, IACO, and FIA*ACO. (b) F2(x) converged to the optimal solutionbased on the ACO, IACO, and FIA*ACO. (c) F3(x) converged to the optimal solutionbased on the ACO, IACO, and FIA*ACO. (d) F4(x) converged to the optimal solutionbased on the ACO, IACO, and FIA*ACO.
Simulation analysis of operation path planning with the same start and end grids
-
(1)
Path planning for farmland 1.
In farmland 1, the path planning started from the grid coordinates (38.1) with a grid earthwork volume of 0.45 and ended at the grid coordinates (4.38) with a grid earthwork volume of −0.69. The optimal path planning based on the ACO and FIA*ACO were shown in Fig. 14a. Figure 14b presented the corresponding convergence curve of the optimization objective function value. From the analysis of the simulation results, it could be observed that, compared with the ACO, the FIA*ACO increased the convergence speed by 74% and reduced the optimization objective function value by 26.3%.
Optimal path planning and convergence curve of the objective function value for farmland 1 based on the ACO and FIA*ACO. (a) Optimal path planning based on the ACO andFIA*ACO. (b) Convergence curve of the objective functionvalue based on the ACO and FIA*ACO.
The specific evaluation indicators and values for the optimal planned operation path of farmland 1, based on different algorithms, were presented in Table 12. From the table, it could be observed that, when the total path length difference was small, compared with the ACO, the operation path planned by the FIA*ACO reduced the empty and full load rate by 12%, decreased the turning objective function value by 66.7%, and increased the efficiency of earthwork volume movement by 47.37%.
-
(2)
Path planning for farmland 2.
In farmland 2, the path planning started from the grid coordinates (36,40) with a grid earthwork volume of 0.66 and ended at the grid coordinates (7,8) with a grid earthwork volume of −0.59. The optimal path planning based on the ACO and FIA*ACO were shown in Fig. 15a. Figure 15b presented the corresponding convergence curve of the optimization objective function value. From the analysis of the simulation results, it could be observed that, compared with the ACO, the FIA*ACO increased the convergence speed by 63% and reduced the optimization objective function value by 24.8%.
Optimal path planning and convergence curve of the objective function value for farmland 2 based on the ACO and FIA*ACO. (a) Optimal path planning based on the ACO andFIA*ACO. (b) Convergence curve of the objective functionvalue based on the ACO and FIA*ACO.
The specific evaluation indicators and values for the optimal planned operation path of farmland 2, based on different algorithms, were presented in Table 13. From the table, it could be observed that, compared with the ACO, the operation path planned by the FIA*ACO reduced the empty and full load rate by 14.95%, decreased the turning objective function value by 65.38%, increased the efficiency of earthwork volume movement by 50.9%, and resulted in a greater cumulative sum of the load variation rate for the grader.
From the analysis of the above simulation test results, it could be observed that the FIA*ACO significantly reduced the empty and full load rate and the number of steering times, while increasing the volume of earthwork moved and the cumulative sum of the load variation rate for the grader in the planning of the single operation path.
Simulation analysis of full-field precision levelling operation path planning
-
(1)
Path planning for farmland 1.
The distribution of earthwork volume after the complete levelling operation of farmland 1, based on different algorithms, were presented in Fig. 16. From the analysis of the simulation results, it could be observed that the remaining earthwork volume after the complete levelling operation using the FIA*ACO was significantly lower.
Distribution of remaining earthwork volume after refined complete levelling operation for the whole field of farmland 1 based on the ACO and FIA*ACO. (a) Distribution of remaining earthwork volumeafter complete levelling operations based on theACO. (b) Distribution of remaining earthwork volumeafter complete levelling operations based on theFIA*ACO.
The specific evaluation indexes and values for the fully levelled operation paths in farmland 1, based on different algorithms, were presented in Table 14. From the analysis of the table, it could be observed that, compared with the ACO, the operation path based on the FIA*ACO resulted in a 15.9% reduction in the empty and full load rate, a 29% reduction in total path length, a 28.2% reduction in the total number of paths, and a lower remaining earthwork volume after the operation.
-
(2)
Path planning for farmland 2.
The distribution of the remaining earthwork volume after the complete levelling operation of farmland 2, based on different algorithms, were presented in Fig. 17. From the analysis of the simulation results, it could be observed that the levelness of the farmland was significantly improved after the complete levelling operation using the FIA*ACO.
Distribution of the remaining earthwork volume after refined complete levelling operation for the whole field of farmland 2 based on the ACO and FIA*ACO. (a) Distribution of the remaining earthworkvolume after complete levelling operationsbased on the ACO. (b) Distribution of the remaining earthworkvolume after complete levelling operationsbased on the FIA*ACO.
The specific evaluation indexes and values for the fully levelled operation paths in farmland 2, based on different algorithms, were presented in Table 15. From the analysis of the table, it could be observed that, compared with the ACO, the operation path based on the FIA*ACO resulted in a 10.66% reduction in the empty and full load rate, a 27.9% reduction in total path length, and a 32.6% reduction in the total number of paths. Additionally, the remaining earthwork volume after the operation with the FIA*ACO was only 35% of that with the ACO.
In summary, when the entire field underwent refined levelling operations using the FIA*ACO, the empty and full load rate was reduced by approximately 10%, the total path length was shortened by around 28%, and the total number of paths decreased by at least 28%. These results satisfied the requirements for full-field refinement following inter-regional earthwork balancing operations.
Analysis of field experiments
To validate the effectiveness of the variable scale levelling path planning method based on the improved ant colony algorithm designed in this study, a test field provided by Jiangsu Rungu Agricultural Technology Co., Ltd. was selected for a practical field levelling operation analysis. The test field, located at 32°07′39.34494″N and 119°43′45.15670″E, is a plowed area with significant terrain undulations, covering an area of about 15.68 acres, as shown in Fig. 18. The average elevation of the test field prior to levelling was 10.0615 \({\text{m}}\). The pre-levelling elevation data generated from UAV were imported into a visualization platform to generate both an inter-regional operation path and a refined operation path23,24,25, which were subsequently loaded into the automated grader platform for levelling operations. The elevation data at sampling points along the paths, before and after the operation, were measured separately. The flatness of the sampling points, the distribution of the 5 \({\text{cm}}\) elevation difference, and the maximum elevation difference were employed as the main evaluation indicators to assess the optimization effectiveness of the operation paths.
Test field before leveling.
Method for calculating flatness:
In the equation, \(S_{d}\) represented flatness, \(m\); \(n\) denoted the number of sampling points; \(h_{i}\) referred the elevation of the sampling points, \(m\); \(h_{{ave}}\) represented the average elevation of all sampling points along the path, \(m\).
The distribution of the 5 \({\text{cm}}\) elevation difference pertained to the ratio of sampling points whose elevation deviated from the reference elevation by ± 5 \({\text{cm}}\), relative to the total number of sampling points. This metric served as an indicator of the uniformity of the farm’s elevation.
Method for calculating maximum elevation difference:
In the equation, \(H_{{\max }}\) represented the maximum elevation difference, \(m\).
The Gaussian coordinates of the test field after rasterization were shown in Fig. 19a, b showed the corresponding Cartesian coordinates. By determining the Gaussian and Cartesian coordinates of the four vertices of the field, the Cartesian coordinate of any point within the field could be converted to the Gaussian coordinate using Eq. (29). On the visualization platform, the Cartesian coordinates of the path nodes were converted to the corresponding Gaussian coordinates. \(O\), \(A\), \(B\), and \(C\) represented the four vertices of the rectangular field.
Different coordinates of the field. (a) Gaussian coordinates of the field. (b) Cartesian coordinates of the field.
In the equation, \(X\) and \(Y\) represented Gaussian coordinates, while \({\mathcal{X}}\) and \(y\) denoted Cartesian coordinates.
The Gaussian and Cartesian coordinates of the four boundary points \(O\), \(A\), \(B\), and \(C\) were shown in Table 16.
Validation experiment of inter-regional operation path planning effectiveness
This experiment analyzed the levelling effectiveness of the inter-regional operation path planned using the IACO algorithm. The inter-regional operation path of the test field was planned using the visualization platform, with the start coordinates (3, 25, 0.41) and the end coordinates (27, 15, −0.54), as shown in Fig. 20. According to Eq. (29), the conversion from Gaussian coordinates to Cartesian coordinates of the field was carried out.
Inter-regional operation path planning based on the visualization platform.
The elevation information of grid nodes along the inter-regional path before and after the operation was shown in Fig. 21a, and it was converted into earthwork volume information as shown in Fig. 21b. Analysis of the figure showed that the ideal earthwork volume for the planned inter-regional path should be 2.91 \({\text{m}}^{3}\), while the actual levelling earthwork volume was 2.57 \({\text{m}}^{3}\). The ratio of actual to ideal earthwork volume was 88.3%, indicating that the planned inter-regional path met the requirements for practical field levelling operations.
Elevation and earthwork volume information of grid nodes along the inter-regional path before and after the operation. (a) Elevation of grid nodes along the interregionalpath before and after the operation. (b) Earthwork volume of grid nodes along theinter-regional path before and after the operation.
The evaluation indicator values of the inter-regional path before and after levelling were shown in Table 17. Analysis of the table showed that after the inter-regional levelling operation, the maximum elevation difference of the path decreased by 47.5%, the distribution of the 5 cm elevation difference increased by 26.3%, and the flatness improved by 53.7%. The planned inter-regional path demonstrated good levelling effectiveness, meeting the requirements for practical levelling operations.
Validation experiment of refined operation path planning effectiveness
This experiment analyzed the levelling effectiveness of the refined operation path planned using the FIA*ACO algorithm. The visualization platform was used to plan the refined operation path for the test field, with the start coordinates at (1, 21, 0.35) and the end coordinates at (26, 14, −0.56), as shown in Fig. 22.
Refined operation path planning based on the visualization platform.
The evaluation indicator values of the refined path before and after levelling were shown in Table 18. Analysis of the table showed that after the refined levelling operation, the maximum elevation difference of the path decreased by 62.9%, the distribution of the 5 cm elevation difference increased by 52.0%, and the flatness improved by 78.4%. The refined path demonstrated further improvement in levelling effectiveness compared to the inter-regional path.
The elevation information of grid nodes along the refined path before and after the operation was shown in Fig. 23a, and it was converted into earthwork volume information as shown in Fig. 23b. Analysis of the figures showed that the ideal earthwork volume for the planned refined operation path was 5.51 \({\text{m}}^{3}\), and the actual earthwork volume after levelling was 4.91 \({\text{m}}^{3}\). The ratio of actual to ideal earthwork volume was 89.1%, indicating that the refined path achieved better earthwork transfer effectiveness compared to the inter-regional path, meeting the requirements for practical field levelling operations.
Elevation and earthwork volume information of grid nodes along the refined path before and after the operation. (a) Elevation of grid nodes along the refined path before and after the operation. (b) Earthwork volume of grid nodes along the refined path before and after the operation.
Discussion and conclusions
-
1.
To address the issues of large data volumes in land leveling operation path planning, this paper proposed an improved ant colony optimization algorithm for large-scale inter-region earthwork balance operation path planning, and designed an integrated improved A* ant colony optimization algorithm for small-scale, fine-grained field leveling operation path planning. The IACO was proposed for the path planning of inter-region earthwork balance operations. Initially, the earthwork volume along the operational search paths between high and low terrain regions was incorporated into the heuristic function, which took into account both the inter-region distance and the earthwork to be completed in each region. Subsequently, the weight factor of the heuristic function and the pheromone evaporation factor were adaptively adjusted to enhance the function’s effectiveness at different stages of the search path, thereby better aligning with the practical requirements of leveling operations. The FIA*ACO was proposed for the fine-grained leveling operation path planning of the entire field. The first step was to improve the heuristic factor in the evaluation function of the A* algorithm by considering the load of the leveling blade at the parent node. Next, the pheromone update strategy in the ACO algorithm was enhanced with a reward-punishment mechanism to update the pheromone, encouraging ants to explore more optimal paths and reducing the total path length.
-
2.
To evaluate the performance of the IACO-based inter-region earthwork balance operation path planning and the FIA*ACO-based fine-grained leveling operation path planning, simulation tests were conducted on farmlands with varying terrain conditions. The results indicated that, when implementing inter-region path planning in farmlands 1 and 2, the IACO-based leveling operations reduced the empty load rate by 17% and 16.6%, respectively, compared to the ACO. Additionally, the full load rate decreased by 19.1% and 19.65%, respectively; the total path length was reduced by 25.1% and 29.9%, respectively; and the proportion of empty load travel diminished by 53.46% and 36.55%, respectively. In the context of grid-based path planning for farmlands 1 and 2, the FIA*ACO-based leveling operations led to a reduction in the combined empty and full load rate by 15.9% and 10.66%, respectively; the total path length was decreased by 29% and 27.9%, respectively; the total number of paths was reduced by 28.2% and 32.6%, respectively; and the remaining earthwork in the fields post-operation accounted for 47.06% and 35% of the ACO results. These findings confirmed that the proposed improved ant colony optimization algorithm offered enhanced leveling performance, increased operational efficiency, and broader applicability across diverse terrains.
-
3.
To verify the effectiveness of the land leveling path planning based on the variable-scale step-by-step strategy designed in this study, field experiments were conducted on a test field. The results showed that, following the inter-region operation path planning, the maximum elevation difference of the path decreased by 47.5%, the distribution of the 5 cm elevation difference increased by 26.3%, and the flatness improved by 53.7%. Subsequently, after the inter-grid operation path planning, the maximum elevation difference of the path decreased by 62.9%, the distribution of the 5 cm elevation difference increased by 52.0%, and the flatness improved by 78.4%. The inter-region operation path planning rapidly increased the area of the field meeting the leveling requirements, while the subsequent inter-grid operation path planning was used for full-field fine search planning, further increasing the area meeting the flatness requirements. This confirmed the effectiveness of the variable-scale stepwise planning strategy for leveling operation path planning as proposed in this study. Currently, the improved ant colony algorithm provided optimal solutions mainly for rectangular plots but encountered limitations when applied to smaller or more fragmented land areas. In future work, we intend to evaluate the method’s performance through further optimizing the parameters of the algorithm and further refine it to address the challenge of path optimization for autonomous land levelling in polygonal fields under unmanned farm operations.
Data availability
All data generated or analysed during this study are included in this published article.
References
Li, F., Xu, D. & Li, Y. Effectiveness evaluation and combined application of land leveling technologies. Nongye Gongcheng Xuebao (Trans. Chin. Soc. Agric. Eng.) 16(2), 50–53 (2000).
Chen, G. et al. A review of global precision land-leveling technologies and implements: Current status, challenges and future trends. Comput. Electron. Agric. 220, 108901 (2024).
Bueno, M. V. et al. Demarcation of levees in irrigated rice fields: Laser technology vs. GNSS-RTK. Appl. Eng. Agric. 35(3), 431–437 (2019).
Sidhu, H. S., Singh, S. K. & Pandey, H. S. Performance evaluation of automatic vis-à-vis manual topographic survey for precision land levelling. Precis. Agric. 21, 300–310 (2020).
Gagnon, P., Chrétien, F. & Thériault, G. Land leveling impact on surface runoff and soil losses: Estimation with coupled deterministic/stochastic models for a Québec agricultural field. J. Hydrol. 544, 488–499 (2017).
Enciso, J. et al. Assessing land leveling needs and performance with unmanned aerial system. J. Appl. Remote Sens. 12(1), 016001–016001 (2018).
Nilsson, R. S. & Zhou, K. Method and bench-marking framework for coverage path planning in arable farming. Biosyst. Eng. 198, 248–265 (2020).
Kang, X., Li, X. & Xia, Y. Design of fast land leveling system based on GNSS. Trans. Chin. Soc. Agric. Mach. 47(S1), 13–20 (2016).
Xia, Y., Liu, G. & Kang, X. Optimization and analysis of location accuracy based on GNSS-controlled precise land leveling system. Trans. Chin. Soc. Agric. Mach. 48(S1), 40–44 (2017).
Li, X., Li, H., Niu, D., Wang, Y. & Liu, G. Optimization of GNSS-controlled land leveling system and related experiments. Trans. Chin. Soc. Agric. Eng. 31(3), 48–55 (2015).
Jing, Y., Kang, X., Xia, Y., & Liu, G. Automatic steering system for land leveling based on GNSS. In 2018 ASABE Annual International Meeting (p. 1). American Society of Agricultural and Biological Engineers (2018).
Jing, Y., Liu, G. & Luo, C. Path tracking control with slip compensation of a global navigation satellite system based tractor-scraper land levelling system. Biosyst. Eng. 212, 360–377 (2021).
Gang, L., Xiao, L., Xi, K., Youxiang, X., & Dongling, N. Automatic navigation path planning method for land leveling based on GNSS. Nongye Jixie Xuebao/Trans. Chin. Soc. Agric. Mach. (2016).
Liu, G., Kang, X., Xia, Y. X. & Jing, Y. P. Global path planning algorithm and experiment based on GNSS-controlled precise land leveling system. Trans. CSAM 49(5), 27–33 (2018).
Jing, Y., Jin, Z. & Liu, G. Three dimensional path planning method for navigation of farmland leveling based on improved ant colony algorithm. Trans. Chin. Soc. Agric. Mach 51, 333–339 (2020).
Ojima, I., & Date, H. Path planning for a land leveler. In 2019 IEEE/SICE International Symposium on System Integration (SII), 222–226 (IEEE, 2019).
Jeon, C. W. et al. Autonomous paddy field puddling and leveling operations based on full-coverage path generation and tracking. Precis. Agric. 25(1), 235–256 (2024).
Jing, Y., Luo, C. & Liu, G. Multiobjective path optimization for autonomous land levelling operations based on an improved MOEA/D-ACO. Comput. Electron. Agric. 197, 106995 (2022).
Zhang, L. et al. Estimating leaf chlorophyll content of winter wheat from UAV multispectral images using machine learning algorithms under different species, growth stages, and nitrogen stress conditions. Agriculture 14(7), 1064 (2024).
Luo, Q., Wang, H., Zheng, Y. & He, J. Research on path planning of mobile robot based on improved ant colony algorithm. Neural Comput. Appl. 32, 1555–1566 (2020).
Liu, J., Yang, J., Liu, H., Tian, X. & Gao, M. An improved ant colony algorithm for robot path planning. Soft Comput. 21, 5829–5839 (2017).
Deng, W., Xu, J. & Zhao, H. An improved ant colony optimization algorithm based on hybrid strategies for scheduling problem. IEEE Access 7, 20281–20292 (2019).
Gao, Y. et al. Optimization of operating parameters for straw returning machine based on vibration characteristic analysis. Agronomy 14(10), 2388 (2024).
Zhang, L. et al. Estimating winter wheat plant nitrogen content by combining spectral and texture features based on a low-cost UAV RGB system throughout the growing season. Agriculture 14(3), 456 (2024).
Niu, Y. et al. Enhancing model accuracy of UAV-based biomass estimation by evaluating effects of image resolution and texture feature extraction strategy. IEEE J. Select. Top. Appl. Earth Observ. Remote Sens. 18, 1–15 (2024).
Acknowledgements
This work was supported by Jiangsu Provincial Agricultural Science and Technology Independent Innovation Project (Grant number CX(22)2040). Laboratory was provided by Key Laboratory for Theory and Technology of Intelligent Agricultural Machinery and Equipment of Jiangsu University, Zhenjiang, China. Thanks to Professors Xinhua Wei and Chengliang Liu for their guidance. Thanks to Jiaxin Yang, Lei Sun, Shaocen Zhang, Anzhe Wang, Xinying Zhou, Fei Wang et al. for their experimental program discussion and experimental assistance.
Funding
This study was funded by Jiangsu Provincial Agricultural Science and Technology Independent Innovation Project (Grant number CX(22)2040).
Author information
Authors and Affiliations
Contributions
Conceptualization, Xinhua Wei and Chengliang Liu; methodology, Jiaxin Yang; software, Wenming Chen; validation, Wenming Chen; formal analysis, Wenming Chen; investigation, Shaocen Zhang and Anzhe Wang; resources, Xinying Zhou and Lei Sun; data curation, Wenming Chen; writing—original draft preparation, Wenming Chen; writing—review and editing, Fei Wang; visualization, Xinhua Wei; supervision, Xinhua Wei; project administration, Xinhua Wei; funding acquisition, Xinhua Wei. All authors have read and agreed to the published version of the manuscript. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Chen, W., Yang, J., Zhang, S. et al. Variable scale operational path planning for land levelling based on the improved ant colony optimization algorithm. Sci Rep 15, 9854 (2025). https://doi.org/10.1038/s41598-025-94008-y
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-025-94008-y
Keywords
This article is cited by
-
A Q-learning-based hybrid search algorithm integrating PRM and ACO for 3D UAV path planning
Scientific Reports (2026)

























