1. Introduction
The infestation of pests such as fruit borers severely affects the growth of Rosa roxburghii, leading to a significant decline in its yield [1]. Traditional pest control methods that rely on manual spraying or mechanical equipment are not only labor-intensive and inefficient, but also result in substantial pesticide waste. Moreover, these approaches expose operators to the risk of pesticide poisoning, making them inadequate for large-scale cultivation [2]. Plant protection Unmanned Aerial Vehicles (UAVs) [3], with their advantages in agility, intelligence, and low carbon emissions, overcome the limitations of terrain and manual labor. They enable fast and precise operations, thereby greatly enhancing the efficiency and safety of agricultural pest control.
In the practical application of plant protection UAVs, determining an efficient and rapid path planning method is crucial to ensuring high-performance operation. Currently, mainstream path planning algorithms can be categorized into global path planning and local path planning. Local path planning refers to methods that utilize onboard sensors to detect environmental information in real time and generate a feasible path when only partial information about obstacles is available. Liu et al. [4] proposed a UAV Dynamic Path Planning Algorithm (UAV-DPPA-DWA) based on the integration of the dynamic window approach. By improving the elliptical tangent graph algorithm and adopting an adaptive obstacle avoidance strategy, their method significantly enhanced the UAV’s obstacle avoidance capability and task efficiency in complex dynamic environments. Zhang et al. [5] combined a Genetic Algorithm (GA) with an improved Rapidly-Exploring Random Tree (RRT) algorithm to successfully generate high-quality, collision-free paths for multi-objective planning in complex man-made forest areas. Yang et al. [6] integrated the multi-objective path planning algorithm MI-RRT* with an enhanced dynamic window approach, substantially improving robotic inspection efficiency in intelligent workshop environments, while also reducing operation time and path length. However, local path planning algorithms are highly dependent on real-time sensory data, making them prone to falling into local optima. Moreover, due to the lack of a holistic understanding of the global environment, they often fail to achieve globally optimal path planning.
Compared with local path planning algorithms, global path planning algorithms generate globally optimal paths based on comprehensive global map information. This approach avoids detours or redundancies caused by incomplete local information and effectively improves the accuracy and efficiency of path planning. Wang et al. [7] significantly reduced path search time and computational resource consumption in complex environments by combining Delaunay triangulation with the A* algorithm. Lu et al. [8] enhanced the performance of UAV three-dimensional path planning by improving the pheromone update rule in the ant colony algorithm and introducing a directional factor. Cao et al. [9] proposed a hierarchical multi-granularity three-dimensional UAV path planning method based on the A* algorithm, which improved search efficiency by optimizing the obstacle matrix and the open list of adjacent nodes. Allus et al. [10] developed an innovative multi-objective path planning sequencing algorithm that employs a “one distance-two angles” paradigm to optimize the visiting sequence of targets, thereby reducing computational complexity. Despite the significant advances in global path planning algorithms for path optimization, two core challenges remain. First, these algorithms are computationally intensive; when dealing with large-scale maps, the need to traverse a vast number of search points causes a surge in computation, greatly increasing planning time. Second, the smoothness of the planned paths is often inadequate. Current approaches typically generate paths by connecting discrete waypoints, neglecting the kinematic constraints of UAVs. This results in sharp-angle turns that fail to meet the smooth trajectory requirements of actual UAV operations in plant protection, thereby severely limiting the efficient control and maneuverability of such UAVs.
To address the problems of traditional path planning algorithms—namely high computational complexity, low search efficiency, and poor path smoothness due to non-compliance with kinematic constraints—this paper proposes a path planning method for plant protection UAVs based on the integration of dynamic weight functions and Bézier curves. First, an overall framework for the path planning algorithm is constructed based on the A* algorithm, and a weight function that dynamically adjusts along the path is introduced to improve the heuristic function of the A* algorithm, effectively reducing the number of search nodes and enhancing overall search efficiency. Then, second-order Bézier curves are integrated into the improved A* algorithm to reduce the number of turning points in the planning process and improve path smoothness. Finally, the effectiveness of the proposed algorithm is validated on Python and MATLAB platforms.
2. Algorithmic mechanism
2.1. Overall technical framework
This paper proposes a path planning method for plant protection UAVs based on the fusion of dynamic weight functions and Bézier curves. The overall technical framework is illustrated in Figure 1. First, parameter initialization is performed, including the start point, end point, as well as the open list and close list. Next, a dynamic weight coefficient w(n) is introduced to adjust the ratio between the actual cost and the estimated cost, thereby balancing the trade-off between search speed and path quality. The estimated cost H(N) is calculated to determine the corresponding value of the dynamic weight coefficient w(n), which is then used to modify the traditional A* algorithm. Finally, second-order Bézier curves are applied to smooth the turning points of the path generated by the improved A* algorithm, effectively enhancing the smoothness of the planned path.

2.2. Principle of the A* algorithm
The A* algorithm is a heuristic search algorithm that improves search efficiency by introducing a heuristic function based on Dijkstra’s algorithm. First, the search area is divided into square grids, with the center of each grid cell defined as a node. Once a path is found, the agent moves from the center of one grid cell to the center of the next until reaching the destination. Next, two lists must be defined: an open list and a close list. The open list is used to store grid cells that are to be examined—these are potential candidates for the path, though not all of them will be included in the final path. Initially, the open list contains only one element, the starting point A. The close list stores grid cells that no longer need to be considered—these are cells that have been confirmed as part of the path. Then, a cost function needs to be defined.
Where
In the above formula,
The total cost of the path is
Where
2.3. Improvement of the heuristic function
In path planning algorithms, the A* algorithm is widely used because it balances the actual path cost and the heuristic estimate. However, in the traditional A* algorithm, the cost function F
The value of the weight coefficient w(n) is adjusted based on the estimated cost H(N) of the current node. The dynamic weighting strategy proposed in this paper essentially balances the trade-off between search speed and path quality during the pathfinding process. When the weight coefficient w(n) is relatively large, the algorithm behaves more aggressively, quickly covering a larger search space, which is suitable for the early stages of the search. Conversely, as the algorithm approaches the target, reducing w(n) makes the search more cautious, prioritizing paths with lower costs. This flexible weight adjustment mechanism effectively reduces the number of search nodes and improves overall search efficiency. The specific adjustment strategy is as follows
1) Rapid Search Phase: When
2) Fine Search Phase: When
2.4. Bézier curve smoothing
Bézier curves, developed from Bernstein polynomials, feature a simple control structure that allows for smooth processing of curves according to corresponding strategies. Therefore, this paper employs second-order Bézier curves to smooth the turning points of the path generated by the improved A* algorithm, effectively enhancing the smoothness of the flight trajectory. The parametric equation for a point on a Bézier curve [12] is:
Where P(t) is the motion control point on the Bézier curve;
Where

Define
In the formula,
3. Experimental validation
3.1. Algorithm performance comparison experiment
The experiments were conducted in the Python 3.13 environment. The initial map was set to 70 × 70 units, with a grid size of 2.0 units. To account for the UAV’s size, the robot radius was set to 1.0. The traditional A* algorithm, the A* algorithm integrated only with the dynamic weight function, the A* algorithm integrated only with the Bézier curve method, and the A* algorithm integrating both the Bézier curve method and dynamic weight function were run on the map. The same start and end points were used under identical map sizes and obstacle sparsity to observe the effects of different algorithm improvements on path planning. The start point was set at (−5, −5) and the end point at (55, 55). The simulation results are shown in Figure 3, and the performance comparison is presented in Table 1:

Where (a) represents the path generated by the traditional A* algorithm, (b) the path generated by the A* algorithm integrated only with the dynamic weight function, (c) the path generated by the A* algorithm integrated only with the Bézier curve method, and (d) the path generated by the A* algorithm integrating both the dynamic weight function and Bézier curve. By statistically analyzing the data from the experimental paths.
algorithm |
search time (s) |
path length (m) |
number of search nodes |
number of turns |
A* algorithm |
0.85 |
125.6 |
482 |
18 |
A* algorithm incorporating dynamic weights |
0.42 |
132.3 |
295 |
22 |
A algorithm integrated with Bézier curves* |
0.79 |
118.9 |
482 |
5 |
A algorithm integrating dynamic weight functions and Bézier curves* |
0.40 |
125.1 |
295 |
8 |
As shown in Figure 3 and Table 1, the traditional A* algorithm traverses the greatest number of search nodes (represented by blue crosses in the figure), totaling 482 nodes, and has the longest search time at 0.85 seconds. In contrast, the A* algorithm integrated with the dynamic weight function reduces the number of search nodes by 38.8% compared to the traditional A* algorithm, significantly improving search efficiency. The path planned by the traditional A* algorithm contains 18 turns, whereas after integrating the Bézier curve method, the number of turns decreases to 5, a reduction of 72.2%, markedly enhancing path smoothness. The proposed method, which fuses both the dynamic weight function and Bézier curve with the A* algorithm, reduces the number of search nodes from 482 to 295—a 38.8% decrease—and decreases the number of turns from 18 to 8, a 55.6% reduction, compared to the traditional A* algorithm. These results demonstrate that the improved path planning algorithm proposed in this paper significantly enhances both search efficiency and path smoothness.
3.2. Analysis of the impact of dynamic weight
To analyze the effect of different values of the dynamic weight function on path planning performance, the heuristic function’s weight coefficient was set to 0.2, 0.5, 1.0, 3.0, and dynamically adjusted weight, respectively. The map size and the start and end points were kept the same as in the previous experiment. The comparative results are shown in Figure 4, and the performance comparison of different weighting schemes is presented in Table 2.

Path quality was evaluated using a comprehensive 10-point scoring system encompassing four core dimensions: Basic Efficiency (3 points): Focuses on path directness, measured by the deviation of the path length from the theoretical shortest path and the redundancy ratio between the total path length and the straight-line distance from start to end. Smoothness (2.5 points): Emphasizes motion stability, assessed based on whether the path’s maximum curvature complies with the robot’s tolerance and the frequency of turns (direction changes ≥ 15°). Safety (3 points): Centers on collision avoidance, primarily examining the minimum safe distance between the path and obstacles relative to the robot’s radius; in dynamic environments, additional evaluation considers the spatiotemporal overlap with moving obstacle trajectories. Feasibility (1 point): Verifies whether the path aligns with the robot’s motion capabilities, including whether the distances between adjacent points and turning angles fall within mechanical constraints. The total score is the sum of the four dimensions, with a maximum of 10 points. Scores between 9 and 10 are rated excellent, 7 to 8 good, 5 to 6 acceptable, and below 5 unacceptable. This system comprehensively reflects the overall performance of the path in terms of efficiency, smoothness, safety, and executability.
Weight scheme |
path length(m) |
search time (s) |
number of search nodes |
Path quality score |
w=0.2 |
158.6 |
2.85 |
820 |
8.5 |
w=0.5 |
142.3 |
1.92 |
590 |
9.0 |
W=1.0 |
135.7 |
1.28 |
450 |
9.2 |
W=3.0 |
128.4 |
0.65 |
280 |
7.5 |
Dynamic weight |
132.5 |
0.78 |
320 |
9.1 |
Analysis of Figure 4 and Table 3 shows that the path length, search time, and number of search nodes in path planning all exhibit a negative correlation with the weight coefficient. Specifically, as the weight coefficient increases, the path length gradually decreases, search time shortens, and the number of search nodes reduces. For example, when the weight coefficient w=3.0, the path length is minimized (128.4 m), the search time is the shortest (0.65 s), and the number of search nodes is the lowest (280). Compared to the traditional A* algorithm with w=1.0, this represents a 5.4% reduction in path length, a 49.2% decrease in search time, and a 65.9% reduction in search nodes. Unfortunately, as the weight coefficient increases, the overall path quality score declines from 8.5 to 7.5, indicating a significant drop in quality.
For the dynamic weight coefficient, the searched path length is 132.5 m, the search time is 0.78 s, and the number of search nodes is 320. Compared to the traditional A* algorithm with w=1.0, this represents a 2.3% reduction in path length, a 39.1% decrease in search time, and a 28.9% decrease in search nodes. Although the dynamic weight coefficient results in slightly higher values in path length, search time, and number of search nodes compared to the case with w=3.0, the path quality score achieved is 9.1—significantly higher than the 7.5 score at w=3.0 and only 0.1 lower than that at w=1.0. This demonstrates that the dynamic weight coefficient substantially improves the quality of path planning.
3.3. Analysis of Bézier curve smoothing effect
To analyze the improvement in path smoothness achieved by the Bézier curve algorithm, this paper constructs a three-dimensional spatial environment featuring undulating terrain that better reflects the topographical changes encountered during UAV flight. The start point is set at (11, 11, 1.5), and the end point at (1, 1, 0.6). As shown in Figure 5, the blue path represents the route planned by the traditional A* algorithm, while the red path corresponds to the path planned by the A* algorithm integrated with the Bézier curve method. Using path length, number of path nodes, and number of turning points as evaluation metrics, the performance comparison results are presented in Table 3.


algorithm |
path length(m) |
number of search nodes |
number of turns |
A* algorithm |
152.34 |
28 |
12 |
A algorithm integrated with Bézier curves* |
148.56 |
25 |
5 |
As shown in Figure 5 and Table 3, the proposed A* optimization algorithm incorporating Bézier curve smoothing can be effectively implemented in a three-dimensional environment. Additionally, for the same start and end points, the path length planned by the A* algorithm with Bézier curve integration decreased from 152.34 m to 148.56 m, a reduction of 10.7%. The number of nodes decreased from 28 to 25. Most notably, the number of turning points was reduced from 12 to 5, a 58.3% decrease, indicating a significant improvement in trajectory smoothness.
4. Conclusion
This paper addresses the issues of high computational complexity, low search efficiency, and poor path smoothness caused by traditional path planning algorithms that do not comply with kinematic constraints. A path planning method for plant protection UAVs based on the fusion of dynamic weight functions and Bézier curves is proposed, and the effectiveness of the algorithm is verified on Python and MATLAB platforms. The main conclusions are as follows:
1) By introducing a dynamically adjusted weight function into the heuristic function of the A* algorithm, the number of search nodes can be effectively reduced, thereby improving overall search efficiency. Integrating the second-order Bézier curve with the improved A* algorithm reduces the number of turning points during path planning, significantly enhancing path smoothness.
2) After fusing the dynamic weight function and Bézier curve algorithms with the A* algorithm, compared to the traditional A* algorithm, the number of search nodes decreased from 482 to 295, a reduction of 38.8%; the number of path turns reduced from 18 to 8, a decrease of 55.6%.
3) Compared with the search performance at a weight coefficient of
References
[1]. Dong, G. M. (2025). Research on Rosa roxburghii cultivation management and pest control techniques.Seed Science and Technology, 43(4), 117–119.
[2]. Zeng, X. T., & Duan, Z. Y. (2025). Application research on agricultural plant protection UAVs in wheat pest and disease control.Rural Science and Technology, 16(9), 148–151. https: //doi.org/10.19345/j.cnki.1674-7909.2025.09.031
[3]. Kong, D. P. (2025). Advantages and development suggestions for promoting the application of plant protection UAVs.Rural Practical Technology, (4), 99–100.
[4]. Liu, B., Lan, Y., Huang, & W. T. (2024). UAV dynamic path planning algorithm based on integration with dynamic window approach.Journal of System Simulation, 36(8), 1834–1853. https: //doi.org/10.16182/j.issn1004731x.joss.23-0993
[5]. Zhang, B., Kang, F., & Xu, S. T. (2025). Multi-objective path planning based on improved RRT and GA: A case study on UAV forest inspection [J/OL].Journal of Beijing Forestry University,1–14.
[6]. Yang, H., Luo, X., Duan, C., Wang, P., Zhu, K., Deng, X., & Ren, W. (2025). Research on multi-objective point path planning for mobile inspection robot based on Multi-Informed-Rapidly Exploring Random Tree∗.Engineering Applications of Artificial Intelligence, 151, 110645.
[7]. Wang, T. Q., Yang, L. Y., & Huang, C. X. (2025). A path planning method based on topological map and A* algorithm [J/OL].Computer Applications and Research, 1–9.
[8]. Lu, L., Sun, Y. H., & Sun, Q. G. (2025). Research on 3D UAV path planning based on improved ant colony algorithm.Journal of Guangdong Communications Polytechnic, 24(1), 46–51, 114.
[9]. Cao, H. Y., Zhou, B., & Li, X. B. (2025). Hierarchical multi-granularity UAV 3D path planning algorithm based on A-star algorithm [J/OL].Journal of Xiangtan University (Natural Science Edition), 1–15.
[10]. Allus, A., & Unel, M. (2025). Angle-based multi-goal ordering and path-planning using an improved A-star algorithm.Robotics and Autonomous Systems, 190, 105001.
[11]. Wei, B. W., & Yan, H. (2021). An improved jump point search path planning algorithm for unstructured environments.Science Technology and Engineering, 21(6), 2363–2370.
[12]. Zhao, W. D., & Zhou, D. C. (2023). An improved path planning algorithm based on A* and third-order Bézier curves.Journal of Anhui University of Technology (Natural Science Edition), 40(3), 333–338.
Cite this article
Li,L. (2025). A path planning method for plant protection UAVs based on the fusion of dynamic weight functions and Bézier curves. Advances in Engineering Innovation,16(8),28-36.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Journal:Advances in Engineering Innovation
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).
References
[1]. Dong, G. M. (2025). Research on Rosa roxburghii cultivation management and pest control techniques.Seed Science and Technology, 43(4), 117–119.
[2]. Zeng, X. T., & Duan, Z. Y. (2025). Application research on agricultural plant protection UAVs in wheat pest and disease control.Rural Science and Technology, 16(9), 148–151. https: //doi.org/10.19345/j.cnki.1674-7909.2025.09.031
[3]. Kong, D. P. (2025). Advantages and development suggestions for promoting the application of plant protection UAVs.Rural Practical Technology, (4), 99–100.
[4]. Liu, B., Lan, Y., Huang, & W. T. (2024). UAV dynamic path planning algorithm based on integration with dynamic window approach.Journal of System Simulation, 36(8), 1834–1853. https: //doi.org/10.16182/j.issn1004731x.joss.23-0993
[5]. Zhang, B., Kang, F., & Xu, S. T. (2025). Multi-objective path planning based on improved RRT and GA: A case study on UAV forest inspection [J/OL].Journal of Beijing Forestry University,1–14.
[6]. Yang, H., Luo, X., Duan, C., Wang, P., Zhu, K., Deng, X., & Ren, W. (2025). Research on multi-objective point path planning for mobile inspection robot based on Multi-Informed-Rapidly Exploring Random Tree∗.Engineering Applications of Artificial Intelligence, 151, 110645.
[7]. Wang, T. Q., Yang, L. Y., & Huang, C. X. (2025). A path planning method based on topological map and A* algorithm [J/OL].Computer Applications and Research, 1–9.
[8]. Lu, L., Sun, Y. H., & Sun, Q. G. (2025). Research on 3D UAV path planning based on improved ant colony algorithm.Journal of Guangdong Communications Polytechnic, 24(1), 46–51, 114.
[9]. Cao, H. Y., Zhou, B., & Li, X. B. (2025). Hierarchical multi-granularity UAV 3D path planning algorithm based on A-star algorithm [J/OL].Journal of Xiangtan University (Natural Science Edition), 1–15.
[10]. Allus, A., & Unel, M. (2025). Angle-based multi-goal ordering and path-planning using an improved A-star algorithm.Robotics and Autonomous Systems, 190, 105001.
[11]. Wei, B. W., & Yan, H. (2021). An improved jump point search path planning algorithm for unstructured environments.Science Technology and Engineering, 21(6), 2363–2370.
[12]. Zhao, W. D., & Zhou, D. C. (2023). An improved path planning algorithm based on A* and third-order Bézier curves.Journal of Anhui University of Technology (Natural Science Edition), 40(3), 333–338.