1 Introduction
Unmanned aerial vehicles (UAVs) are aircraft that do not require a pilot on board and are controlled by radio signals and automated programming. They are commonly used for complex missions due to their quiet operation, flexibility, and advanced technology integration
[1–4]. Planning the route for the UAVs has become increasingly important for successful mission execution, as it lays the groundwork for autonomous navigation and mission planning
[5–7].
Efficient and precise trajectory planning is crucial for improving the responsiveness of police UAV broadcasts in unpredictable situations
[8–12]. In mountainous cities, traffic accidents can be more challenging to manage due to the hilly terrain and the risk of parked cars sliding backward, posing a severe safety threat. In such situations, it may be difficult for police officers to access the accident site promptly. To overcome this challenge, emergency drones can be utilized, which can efficiently plan the best flight path to reach the site quickly. This allows the drone to gather and transmit essential site data to the command center, which can then develop an effective action plan based on the situation on the ground. By using drones, police officers can reduce their workload, ease traffic congestion and ensure public safety
[13–15]. Hence, drones must plan a safe, efficient, and seamless flight path to carry out their tasks effectively.
Airspace modeling and trajectory search operations are both important parts of the difficult process of UAV trajectory planning in mountainous cities. Initially, airspace modeling integrates flight space into distinct abstract areas, which serves as the foundation for trajectory planning. For police UAVs, each mission is closely related to the safety of people's lives, so it is necessary to make a more demanding choice of the flight path
[16]. In comparison to plain area airspace modeling, mountainous urban airspace modeling can be much more complex due to the increased number of obstacles and decreased fault tolerance in the flight domain. The high information density in the physical space of mountain towns must be taken into account for accurate and reliable mountain city airspace modeling
[17, 18]. Hence, great resolution of the abstract space must be guaranteed by mountain city modeling techniques.
The practical applicability of traditional airspace modeling techniques is constrained, particularly for complicated barrier boundaries such as irregular surfaces that could introduce modeling bias. In response, Chen, et al. constructed Voronoi diagrams based on each threat center and used an artificial potential field approach to generate local tracks. For tracking points within the Voronoi diagram, the moving target is tracked along one side of the Voronoi diagram using Dijkstra's algorithm
[19]. However, the construction of Voronoi diagrams can be difficult when the null domain is too complex. Rivera et al combined Manhattan distance and Octel distance to define a
recursive neighborhood and a
distance function in a two-dimensional setting, which can be used as a heuristic, and proposed a
neighborhood implementation of jump-point search, which has a short running time and also opens the door for future research on the arbitrary angle of incremental search opens the door to future research
[20]. However, the application of this method to a 3D environment assumes that the flight altitude of the UAV remains constant, making it difficult to generalize the method. The size of the neighborhood also affects the efficiency of the UAV's trajectory planning.
The creation of planning algorithms is a key component of trajectory search. Trajectory planning in complex mountainous urban areas must guarantee that each step of the UAV's flight in the 3D flying airspace is precise and secure. Three different types of UAV track planning algorithms are currently in widespread use: conventional track planning algorithms, heuristic track planning algorithms, and swarm intelligence bionic track planning algorithms. To solve the issue of classic trajectory optimization techniques' lengthy processing times, Wu, et al. combine the bi-directional artificial potential field method with bi-directional bias sampling, which cleverly varies the sampling space to nicely reduce sampling of irrelevant space and improve the convergence ratio
[21]. Huang, et al. suggested a bi-directional fast exploration random tree algorithm based on the greedy strategy optimization algorithms' productivity and stability in varied situations can be improved. The expansion of the algorithm nodes is also improved to enhance the solving efficiency
[22]. However, the above method takes a long time to compute and is not effective in practice.
To address the drawback that the heuristic algorithm has low search efficiency and can only generate one path when the operation area is large, Bai, et al. improved the knowledge about the flight environment and the motion limitations of the typical A* algorithm UAV and adaptively adjusted the evaluation function based on the safety threshold, obstacles and environmental information of the UAV to alleviate the limitations of the DWA algorithm in terms of local optimization and planning time
[23]. Sichen, et al. employed a simulated annealing approach to compute approximate optimized pathways inside a sub-region, in order to reduce a single UAV's energy loss and to establish a balanced distribution of duties within a UAV formation. Compared to a traditional zigzag path, the path length is cut by about 12.6%
[24]. However, such algorithms require powerful computing power, which is not conducive to police UAVs performing fast-response, mobile, and flexible combat missions.
To address the shortcomings of the swarm intelligent bionic trajectory planning algorithm in relation to local optimality, Huang, et al. recommended a better method based on spherical vectors, this took into account the correlation between the search space and the UAV's inherent constraints
[25]. The improved algorithm has stable convergence and improves the safety in addition to the viability of the selected paths. Zhang, et al. offered a new by using a genetic algorithm mixed initialization methods, firstly, in order to avoid redundant paths and inhibit the algorithm from entering a near - optimal solution, the duplicative clusters or redundant paths in the path are decided to delete. Three free meshes are randomly chosen as the central nodes, after which one part uses the random initialization method and the other part uses the greedy correlation technique to generate the direction
[26]. Wang, et al. made the initial suggestion for improving the BA method by including differential evolution (DE) to optimize the 3D path planning problem. In IBA, the variation operator of DE was used for bat selection during the position update process. By connecting the selected nodes using IBA, a safe path was successfully obtained. The experimental results show that IBA accomplishes the 3D path planning problem better than the basic BA model
[27]. Lin, et al. used a fusion algorithm combining artificial potential field and chaotic bat algorithm so that the initial distribution of bats can be randomized and homogenized, thus the solution space can be traversed, on the basis of this, to avoid the algorithm reaching a local optimum, they recommended an adaptive parameter updating technique. The approach's success in resolving multi-objective optimization problems was shown by the simulation results
[28]. These algorithms' convergence speed and stability have significantly increased over earlier trajectory planning techniques. It has been demonstrated, nonetheless, that the majority of swarm intelligent bionic trajectory algorithms for UAV route planning problems still suffer from performance issues, particularly regarding solution accuracy, smooth path trajectories, and sporadically falling into local optimum.
Based on the preceding research, there is no optimal solution for UAV trajectory planning in complicated situations that can concurrently handle the following problems: 1) 3D modeling based on complicated settings in hilly cities; 2) rapid and efficient flight pathways; 3) smooth flight trajectories.
The following techniques are used in this research to resolve the trajectory planning issue for police UAVs in the aforementioned complex environment.
Ⅰ: Using a three-dimensional grid method, the cost function is set to reflect the various threats faced by the UAV and the various constraints on the flight path. The three-dimensional space is broken down into several horizontal planes perpendicular to the -axis, and each horizontal plane is then divided into a grid to reduce the computational complexity. Generally speaking, the trajectory is better and adoption is easier the narrower the cost function.
Ⅱ: B-sample curve method is introduced for pre-processing to enhance the fit to the flight trajectory and to enhance the robustness of the flight trajectory.
Ⅲ: It is suggested that the particle swarm algorithm be grafted into the bat algorithm. This would improve the sluggish convergence speed, low convergence accuracy, and propensity to fall into local extremes in the late stages of the bat algorithm, as well as create a safe and effective flight path.
The remainder of the essay is structured as follows. The cost function setup, smoothing technique, and modeling of the UAV flight trajectory planning problem are all covered in the second section. The final section goes into detail about the particle swarm bat algorithm (PSOBA). The analytical and experimental results are presented in Part Ⅳ. In Part Ⅴ, we put an end to this research effort and offer a look ahead.
2 Model Construction
2.1 Environmental Modeling
The modeling of mountainous cities has to take into account the special characteristics of mountainous cities compared to plain areas. In addition to the standing tall buildings, the terrain places higher demands on the planning of flight paths, and it is also crucial to find a suitable environment modeling method in conjunction with the UAVs applied in this paper in specific areas
[29–32].
In the coordinate system XOY, the drone's beginning is indicated by the following locations: and the ending point as . There are obstacles between and . A safe and efficient flight path needs to be planned between and in a reasonable way.
First, connect points and , then divide the SE segment into equal parts. At each segmented point, make a vertical line of the SE segment, noted as , take a discrete point at each vertical segment and connect these discrete points in sequence to form the flight path of the UAV, as shown in Figure 1. Hence, the trajectory planning issue is changed into a multi-objective constraint problem that is optimized to determine the cost function's ideal adaption value.
Figure 1 Simulation of flight path in a two-dimensional environment |
Full size|PPT slide
While modeling the environment in 3D space, a 3D grid approach is used to establish a 3D right-angle coordinate system OXYZ. The region OABC-MNPQ in the coordinate system is selected, where the plane OABC is on a plane OXY. Next, OABC-MNPQ is divided into parts along the -axis, OABC-MNPQ is divided into parts along the -axis, and OABC-MNPQ is divided into parts along the -axis. The planning space will be divided into cubes, as shown in Figure 2.
Figure 2 Three-dimensional spatial modeling grid |
Full size|PPT slide
For different-sized UAVs and professional settings, the grid of units grid lengths on the XOY plane and -axis can be reset according to the UAV's own obstacle-crossing capability, obstacle size, mountain height, and hillside angle.
After the aforementioned processing, a collection of nodes serves as the UAV's working area, and the following equation can be used to translate the length of the UAV flight track into the combination of the unique points' distances
[33].
where is the total number of discrete points flown by the UAV.
2.2 Cost Assessment Models
The UAV flight track cost assessment must take into account three elements: energy consumption, flight height, and collision threat
[34]. The fuel consumption cost is proportional to the total flight range, the altitude cost is determined by the altitude at which the UAV flies, and the collision threat mainly considers the probability of collision between the UAV and potential hazards during flight.
The cost of fuel consumption is defined, as shown in Equation (2).
where represents the fuel consumption per unit length of the UAV during the mission, define the safe altitude at which the UAV must not exceed, represents the energy cost of maintaining the UAV at a certain altitude, and define the current altitude of the UAV.
The flight level threat is defined, as shown in Equation (3).
where represents the severity of the threat if the drone is flying too high, describe the average flight altitude in the paragraph , the maximum altitude at which the drone can fly, specify the drone's distance from the ground at the lowest safe altitude, define normal number. The collision threat is defined, as shown in Equation (4).
where describe the threat factor, which measures the threat level between the threat source and the drone node. represents the total number of threat sources, the coordinates of the drone , and the coordinates of the center of the threat source .
2.3 UAV Manoeuvrability Constraint Model
Finding the best flight path from the mission's departure position to the destination point is the main objective of the UAV trajectory planning problem. It is vital to take into account the UAV's own limits in addition to the environmental information of the mission space, which mainly include turn radius constraints, pitch angle constraints and minimum inertia distance constraints
[35].
The UAV turning radius is the turning arc of the UAV from one sub-path segment to the next during flight. In an effort to ensure the UAV's air safety, a maximum steering angle needs to be set during UAV trajectory planning. Assuming that the horizontal projection of the path segment is , Equation (5) should be satisfied between adjacent path segments.
Pitch angle constraint means that when the UAV climbs or dives, it will be subject to certain restrictions, mainly in the form of the maximum angle size between the axis of the fuselage and the horizontal plane in the vertical direction cannot exceed the maximum pitch angle that the UAV itself can withstand, then the maximum pitch angle constraint should satisfy Equation (6).
where describe the maximum pitch angle and are the -axis coordinates of the start and end points of the section of the path.
The minimum inertia distance is the shortest distance the UAV needs to travel in its original direction when suddenly changing its current direction. This study searches the nearby grids divided in the built environment planning model for the UAV trajectory, so the grid size can be set to the size of the minimum inertia distance. Let the UAV have segments of trajectory and let the minimum UAV trajectory segment length be , then the minimum inertia distance constraint is shown in Equation (7).
In this regard, the following function is chosen as the UAV flight track cost assessment model in this paper.
where define a weighted value, describe the fuel cost, which is proportional to the flight range if the UAV maintains a constant speed in flight, is the altitude threat, represents the collision threat, and represents the UAV maneuverability constraint threat.
2.4 Pre-Processing of Track Smoothing Strategies
After the trajectory planning, the generated flight path consists of a series of straight-line segments. This planning result has a guiding effect and does not meet the actual flight characteristics of smooth UAV turns, and in mountainous cities, the probability of collision of UAVs due to excessive turn angles is greater compared to flying in plain areas, which is not practical
[36, 37]. Therefore, after generating the optimal path in the discretized grid, the resulting folded flight trajectory needs to be smoothed. A feasible smoothing result needs to satisfy two requirements, the first being that the curve is smooth everywhere and the second being that the curve cannot create intersections with threatening objects in the environment. Considering that
cannot locally modify the UAV flight trajectory, this paper introduces the
spline curve method for trajectory smoothing, because
spline curves allow local control surfaces and curves, their polynomials' number may not be determined by the amount of command posts
[38, 39]. The
times
spline curve expression is Equation (9).
where define the times spline basis function, which satisfies the following recursive equation, which is shown in Equation (10).
A smooth flight path is obtained after this method. As can be seen in Figure 3, the adjusted flight path is more feasible.
Figure 3 Flight trajectory after B-sample method processing |
Full size|PPT slide
3 Particle Swarm Bat Fusion Algorithm
3.1 Introduction to Particle Swarm Algorithms
The particle swarm algorithm (PSO) is bionic intelligent optimization algorithm that is inspired by the cooperative foraging behavior of birds. It operates on the following principle: Each solution to an optimization problem is viewed as a bird, or a particle, and each particle moves in a multi-dimensional search space to search for the optimal solution, with each movement representing one iteration. To find the best answer, each particle moves in a multidimensional search space. The fitness value computed by the fitness function is used to determine each particle's current position, and the particle relies on its own "memory" function to store both its ideal position and the population's optimal position. Each iteration represents one iteration. Each movement of a particle is determined by its velocity vector, which is influenced by three factors: The "inertial component", "self-awareness" and "population experience"
[40–43]. The PSO algorithm begins by creating a population of particles in the viable solution space, each of which represents a potential optimal solution to the extreme value optimization issue. The particles are then given positions, velocities, and fitness values to describe them. The algorithm is represented by Equations (11) and (12).
In Equation (11), is the particle's current number of iterations, is the velocity of the particle in the third iteration; is the best position of the particle in the iteration, is the best position of all particles from the first iteration to the iteration; is the particle in the iteration; represents the inertia weight, which is mainly used to measure the ratio of global search and local search, when the value of is small, do a small local search, otherwise do a global search process, according to practical tests, the value of is generally set to 0.729; is a factor of speed control, can use the current historical optimal value of individual particles and the global optimal value of the group of particles to fully regulate the search rate, and , usually take the value of , is a uniformly distributed random number, and ; in Equation (11) as well as Equation (12), denotes the particle. The variable represents the velocity of the particle in the -dimensional space after the iteration; accordingly, the variable represents the position of the particle in the -dimensional space after the iteration.
3.2 Introduction to the Bat Algorithm
The bat algorithm was inspired by the echolocation of miniature bats and was proposed by Xin-She Yang in 2010
[44–46]. Most miniature bats radiate sound into their surroundings, identifying prey and avoiding obstacles by picking up echoes from different objects. The loudness is usually highest at the beginning of the prey search, which facilitates the search of a larger space, and then gradually decreases while the pulse frequency gradually increases, which facilitates the approach and accurate localization of the prey, thus completing the hunt. The bat algorithm can automatically switch from the exploration phase to the exploitation phase because exploitation becomes focused as the search approaches the global optimum in terms of changes in loudness and pulse firing rate
[47].
The movement of the virtual bat is shown below.
where define the frequency with which bats find prey, and are the minimum and maximum values, respectively. denotes the position of the bat in the solution space, denotes the bat's speed, describe the number of current iterations, define a uniformly distributed random number, and , denotes the global optimal solution found so far for the entire population.
Miniature bats transmit a frequency, a fixed frequency , a variable wavelength , and a loudness to search for prey. The bats fly randomly at speed at the position . They can adjust the frequency of the emitted pulses and adjust the pulse emission rate from 0 to 1 depending on the proximity of the target. in each iteration, a random number 1 is generated and compared . If the random number 1 is greater than and the search type is a local range, the target range will be further reduced, making the search more efficient and the population update is achieved by Equation (16). In Equation (16), denotes the best solution for the current state, is a random number that represents the average loudness of all bats at the current time step , and ; is the loudness of the iteration.
Firstly, the exact position of the individual is obtained and the fitness value is calculated. Based on the fitness value and loudness, it is decided whether the position is updated or not, and if it needs to be updated, it can be replaced directly with the updated condition: . The update of and is shown by Equations (17) to (18).
where and are constants and are usually set to .
In the final stage of iterative processing, as the bat populations all gather toward the optimal bats, the original bat population will update to the optimal state, and the flight speed update drops to zero, resulting in a reduction in the diversity of the population and a local optimum, at which point BA is unable to continuously optimize other regions and is in a state of no evolution, reducing the overall optimization-seeking accuracy of the algorithm, and more seriously, the algorithm is difficult to solve the optimization-seeking problem in the processing of high-dimensional complex functions.
3.3 Particle Swarm Bat Fusion Algorithm
From the above analysis of the bat algorithm, we can see that Equations (14) to (15) exhibit the characteristics of fast convergence in the early stage, robustness, and easy implementation, but still suffer from the shortcomings of poor convergence accuracy in the late stage and the tendency to fall into local optimality. On this basis, the traditional bat algorithm is improved by combining the characteristics of UAV trajectory planning, and the particle swarm algorithm is integrated into the late search process of the bat algorithm. Particle swarm algorithms have the advantages of stochastic global search and local depth search, optimization, and independence from specific problems and potential parallel operations, and are therefore often used in engineering applications for function optimization, pattern classification, neural network training, fuzzy control, and other fields.
The particle swarm bat fusion algorithm is based on the bat algorithm and fuses the particle swarm optimization algorithm. Each algorithm is run through independent optimizations, i.e. particle swarm algorithms have their individuals and better solutions to replace the inferior bat individuals in the bat algorithm. Based on the position and velocity parameters, an update system that matches each other between the two is constructed, and when the algorithm performs iterative operations, it will use the particle swarm algorithm to generate better bat individuals and the traditional bat algorithm randomly generated bat individuals to compete again, select the corresponding individuals with smaller fitness values as the bat position after local search and record, then determine whether the bat position and fitness value need to be updated, last but not least, compare the global fitness value to the current fitness value. the need for updating and replacing the current global fitness value and the ideal location of each bat within the global range, and accept synchronous update processing. Description of particle swarm bat fusion algorithm.
The specific steps for the implementation of the PSOBA are as follows.
Step 1: Parameter initialization. Set the initial value of population size , the maximum number of iterations , set the value of acceleration factor and , the maximum speed , the inertia value , the loudness , the pulse frequency , the maximum value of pulse frequency , and the minimum value of pulse frequency .
Step 2: Randomly initialize bats. Set the bat as , according to the best position selection judgment expression , get the current position of the bat, and iteratively process step by step to find out the best position in the global range (denoted by ) and the best (denoted by ).
Step 3: Update the spatial location of bats. Based on the updating algorithm in BA algorithm, the corresponding data are solved by Equations (14) and (15) to do the updating process.
Step 4: Generate a random number , if , then.
① The optimal individual corresponding to it is generated by Equation (16), and the fitness value, i.e. , which is the alternative optimal position for the current local search, is also computed.
② Particle swarm operation is performed based on Equations (11) and (12) to find out the best particles and do BA local search process. In the particle swarm algorithm, its initial population, initial fitness i.e. bat population and the fitness corresponding to it, the initial population updates the initial velocity and position of the particle swarm in accordance with Equations (11) and (12) to form the optimal particle. Find the optimal particle and calculate the value of the fitness, denoted as .
③ Comparing and , the minimum value is noted as , the corresponding individual with the smaller fitness value is selected as the bat location after the local search and recorded.
Step 5: Generate random number and compare with to determine whether it needs to be updated or not, if the update condition is: , then it needs to update the corresponding bat position and fitness value, otherwise the original position and fitness value will be kept.
Step 6: Compare the current fitness value with the global fitness value to determine whether the current fitness value and needs to be updated and replaced, the judgment conditions are as follows: , when both need to be updated, and accept the synchronized update process.
Step 7: Judge whether the number of searches reaches the maximum, if it is consistent with the corresponding requirements, then proceed to the next step, if not, then go back to Step 3.
The fusion algorithm still has rich population diversity in the later stage, solves the problem of precocious maturity, improves the local random search ability, allows the bat population to simulate the method of bird foraging in nature to generate new positions, and then finds the best position and speed, thereby identifying the global best state, to make up for the shortcomings in the bat algorithm and particle swarm algorithm, and optimize the algorithm. The particle swarm algorithm is used to speed up the iterative process of finding the ideal value by applying the local search of the bat method while fully utilizing both the local and global solutions. Algorithm 1 details the pseudocode of PSOBA.
Table 1 Pseudocodes for PSOBA |
Algorithm 1 PSOBA |
1. Begin |
2. Initialize , , , , , , , , , |
3. for do |
4. for do |
5. initialize the bat randomly. Let the bat be |
6. generate by Equation (8) |
7. generate (i.e. ) and the best position and assign it |
8. generate initial solution by Equations (14) and (15) |
9. if () then |
10. |
11. calculate |
12. calculate by Equations (11) to (12) |
13. calculate by comparing and |
14. end if |
15. if () then |
16. calculate |
17. end if |
18. if () then |
19. calculate and |
20. end if |
21. end for |
22. end for |
23. End |
4 Results and Discussions
4.1 Parameters Setting
During the simulation trials, we used a 64-bit Windows 10 computer with an Intel(R) Core(TM) i7-8550U CPU running at 1.80 GHz or 1.99 GHz. By contrasting the performance of the various algorithms in the trajectory planning task of the UAV built in this work, the effectiveness of the enhanced particle swarm bat method is demonstrated.
The coordinates of the start point and the target point in the 3D environment simulation are (0, 0, 0) and (100, 98, 135). The parameter settings of the traditional bat algorithm, the differential evolution-based bat algorithm, and the improved particle swarm bat algorithm in this paper are shown in Table 2.
Table 2 Table of algorithm parameterss |
Parameter | Implication | Value |
| Fuel cost factor | 0.2 |
| Flight altitude cost factor | 0.2 |
| Collision threat cost factor | 0.3 |
| Total number of discrete points flown by drones | 50 |
| Particle population size | 100 |
| A minimum safe distance from the surface | 0.5 |
| Number of iterations | 50 |
| Initial transmitting frequency | 0.3 |
| Initial Loudness | 0.97 |
4.2 Analysis of Results
Based on the above conditions, simulations of UAV trajectory planning were carried out using the traditional bat algorithm, the differential evolution-based bat algorithm, and the improved particle swarm bat algorithm in this paper, with 100 simulations. The average time taken to search the trajectory, the length of the trajectory, and the fitness value of each of the three algorithms was recorded.
The UAV trajectory planning problem in a 3D environment is different from the UAV trajectory planning problem in a 2D environment. In addition to the flight track length, the flight altitude is also an important factor in evaluating the planning performance of the algorithm. In a complex flight environment such as a mountainous city, changes in flight altitude can cause the UAV to consume more energy than if it were flying steadily over a plain. These factors are therefore considered in the cost function fitness values for further analysis.
In the graph of simulation results, irregularly shaped objects represent mountains, cubes represent residential living areas, spikes represent no-fly areas, burgundy solid dots represent PSOBA planning paths, orange hollow dots represent Differential Evolution based Bat Algorithm (DEBA) planning paths and grey solid dots represent BA planning paths. To enable the UAV to avoid threats as quickly as possible during flight, reduce flight time in complex terrain and reduce flight risk, it is necessary to shorten the flyable range
[48]. The picture makes it clear that the trajectories predicted by all three algorithms enable the UAV to reach the destination position safely from the starting point while avoiding no-fly zones and hitting any structures or mountains. When comparing the three trajectories, the PSOBA path is smoother than the DEBA and BA paths, and the trajectory is shorter.
This is a display of the simulation's results. The simulation results' front perspective is depicted in Figure 4. Figure 5 displays the simulation results from the side.
Figure 4 Front view of simulation results |
Full size|PPT slide
Figure 5 Overhead view of simulation results |
Full size|PPT slide
From the iterative convergence curves, we can see that after the same iterations, the convergence value of PSOBA is always lower than that of DEBA and BA, and after tens of iterations, the objective function finally converges to a relatively stable value. The lower the value of convergence adaptation, the shorter the corresponding flight path length, the lower the average flight altitude, and the lower the fuel cost.
The iterative convergence curve is shown as Figure 6.
Figure 6 Convergence curve of the objective function in a 3D environment |
Full size|PPT slide
Due to the stochastic nature of the BA algorithm search process, just one run is not sufficient to evaluate the performance of different BA algorithms. To obtain relatively reliable data and to better demonstrate the advantages of the proposed algorithms, several iterative simulations of several algorithms were therefore performed to ensure reliability. Table 3 lists the evaluation metrics for BA, DEBA, and PSOBA in a 3D environment in terms of optimal track length, flight cost fitness function value, number of final iterations, and algorithm execution time.
Table 3 Table of three-dimensional environmental evaluation indicators |
type of algorithm | average track length/m | the average fitness function value | the average final number of iterations possible | average algorithm execution time/s |
BA | 152.36 | 394.472 | 87 | 4.21 |
DEBA | 160.12 | 317.612 | 84 | 3.89 |
PSOBA | 175.89 | 244.332 | 87 | 3.35 |
Figure 6 shows that the late adaptation value varies very little and does not differ significantly from the final adaptation value, despite Table 3 indicating that the enhanced PSOBA method in this article has an average of more final iterations than the DEBA algorithm. In addition, the remaining indicators of the PSOBA algorithm are significantly better than those of DEBA, thus it can be proved that the paths planned by the algorithm in this paper have better stability. The convergence values of the objective function show that the PSOBA algorithm is 23% lower than DEBA and 38% lower than BA. Comparing the algorithm execution time, the value of the PSOBA algorithm is 13.89% faster than DEBA and 20.43% faster than BA. This also shows that the flight trajectory planned in this paper is safer and has a shorter travel time.
In summary, the PSOBA algorithm can generate trajectory routes that converge faster and at a lower combined cost, which can assist police officers in reducing the time lag in understanding the conditions at the incident scene and thus performing their tasks more efficiently.
4.3 Simulation Results and Analysis Based on the Real Environment
The mountains, buildings, and no-fly zones in the 3D environment modeled using MATLAB are artificially arranged and are not always universal. Therefore this paper uses a police UAV with the primary model DJI Warp M300 RTK to take a remotely sensed terrain map of an area, then integrates this terrain map using Pix4D mapper software, followed by a DEM visualization operation of the terrain map using Global Mapper 20 software, and finally performs data extraction to plan the UAV's trajectory in the visualized terrain map. In Figure 7, the precise operating process is depicted. The PSOBA algorithm can also be verified and tested again in the simulation based on the real environment, considering that the environment changes when the police UAV is on the mission. The parameter settings for this experiment are all the same as above.
Figure 7 Operational flow based on real environment simulation |
Full size|PPT slide
The PSOBA-planned flight route enables the UAV to safely travel from the starting point to the target location on a terrain map based on the actual surroundingst, but the flight paths planned by DEBA and BA cannot avoid the existence of breakpoints, which is not allowed to exist when the police UAV is performing its mission. By comparing the three trajectories, it is clear that the PSOBA algorithm's planned trajectory is smoother and shorter than the trajectories planned by DEBA and BA.
The simulation results based on the real environment are shown below. Figure 8 shows the side view of the simulation results. Figure 9 shows the top view of the simulation results.
Figure 8 Side view of simulation results |
Full size|PPT slide
Figure 9 Top view of simulation results |
Full size|PPT slide
From the iterative convergence curves, it can be concluded that after the same iterations, the final convergence value of PSOBA is significantly lower than that of DEBA and BA, and this convergence value is very low. The convergence curves are shown in Figure 10.
Figure 10 Convergence curve of the objective function in a 3D environment |
Full size|PPT slide
Again, due to the random nature of the search process of the BA algorithm, just one run is not sufficient to evaluate the performance of different BA algorithms. To obtain relatively reliable data and to better demonstrate the advantages of the proposed algorithms, several iterative simulations of several algorithms were therefore carried out to ensure reliability. Table 4 lists the evaluation metrics for BA, DEBA, and PSOBA in a 3D environment in terms of optimal track length, flight cost fitness function value, number of final iterations, and algorithm execution time.
Table 4 Table of three-dimensional environmental evaluation indicators |
type of algorithm | average track length/m | the average fitness function value | the average final number of iterations possible | average algorithm execution time/s |
BA | 163.26 | 394.288 | 81 | 4.04 |
DEBA | 157.82 | 344.565 | 81 | 3.42 |
PSOBA | 148.39 | 205.910 | 100 | 3.05 |
Table 4 shows that even though the improved PSOBA algorithm has an average final iteration count that is nine times higher than that of DEBA and BA, it can be seen from Figure 8 that the late adaptation value changes very little and does not differ much from the final adaptation value, and the adaptation value of the PSOBA algorithm is significantly lower than that of DEBA and BA. In addition, the rest of the indicators of the PSOBA algorithm are significantly better than those of DEBA, thus proving that the flight paths planned by this algorithm are more feasible. From the convergence values of the objective function, it can be concluded that the PSOBA algorithm has a value 40.25% lower than DEBA and 47.78% lower than BA. Comparing the algorithm execution time, the value of the PSOBA algorithm is 10.82% faster than DEBA and 24.5% faster than BA. This also indicates that the flight trajectory planned in this paper is more efficient and has a shorter travel time.
In summary, the PSOBA algorithm plans flight trajectories that are more suitable for the changing environment in which police UAVs fly and can produce perfect flight trajectories with a lower overall cost.
5 Summary and Outlook
In an asymmetric network architecture environment like mountain cities, intelligent control of UAVs has been a hot topic for the trajectory planning problem of police UAVs. This study employs a 3D grid topographic map to accurately represent the landscape of a mountainous city in order to imitate the real situation. It also establishes a cost function to attempt to recreate the scenario of a police UAV on a mission. The particle swarm optimization algorithm is grafted onto the bat algorithm to effectively solve the problems of low convergence accuracy, the classic bat technique has a slow convergence rate and a propensity to settle into local minima, while B-sample curves can be used to improve the stability of the UAV flight path. This reduces the amount of time needed to plan the flight path. The PSOBA algorithm outperforms DEBA and BA and greatly raises the success rate of UAV trajectory planning, according to experimental findings and objective analysis. The convergence time is reduced, which is undoubtedly more appropriate for police UAVs applied in special scenarios.
Although this paper makes targeted improvements to the trajectory planning time of police UAVs to improve the speed of trajectory planning and obtain lower-cost trajectories, there is still much room for improvement in the field of mobile intelligent device trajectory planning research. UAVs occasionally need to fly near the ground in the process of searching for targets, when there are dynamic threats or local bad weather, and thus online dynamic UAV track planning is the next research direction in order to cope with the dynamically changing 3D complex environment.
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}