iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://doi.org/10.3390/s24041104
Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection
Next Article in Journal
Detection of Rehabilitation Training Effect of Upper Limb Movement Disorder Based on MPL-CNN
Next Article in Special Issue
A Novel 3D Reconstruction Sensor Using a Diving Lamp and a Camera for Underwater Cave Exploration
Previous Article in Journal
Study on Linewidth and Phase Noise Characteristics of a Narrow Linewidth External Cavity Diode Laser
Previous Article in Special Issue
Research on Trajectory-Tracking Control System of Tracked Wall-Climbing Robots
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection

1
School of Mechanical Engineering, North University of China, Taiyuan 030051, China
2
Shanxi Provincial Key Laboratory of Advanced Manufacturing Technology, North University of China, Taiyuan 030051, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(4), 1104; https://doi.org/10.3390/s24041104
Submission received: 19 December 2023 / Revised: 3 February 2024 / Accepted: 6 February 2024 / Published: 8 February 2024

Abstract

:
Intelligent workshop UAV inspection path planning is a typical indoor UAV path planning technology. The UAV can conduct intelligent inspection on each work area of the workshop to solve or provide timely feedback on problems in the work area. The sparrow search algorithm (SSA), as a novel swarm intelligence optimization algorithm, has been proven to have good optimization performance. However, the reduction in the SSA’s search capability in the middle or late stage of iterations reduces population diversity, leading to shortcomings of the algorithm, including low convergence speed, low solution accuracy and an increased risk of falling into local optima. To overcome these difficulties, an improved sparrow search algorithm (namely the chaotic mapping–firefly sparrow search algorithm (CFSSA)) is proposed by integrating chaotic cube mapping initialization, firefly algorithm disturbance search and tent chaos mapping perturbation search. First, chaotic cube mapping was used to initialize the population to improve the distribution quality and diversity of the population. Then, after the sparrow search, the firefly algorithm disturbance and tent chaos mapping perturbation were employed to update the positions of all individuals in the population to enable a full search of the algorithm in the solution space. This technique can effectively avoid falling into local optima and improve the convergence speed and solution accuracy. The simulation results showed that, compared with the traditional intelligent bionic algorithms, the optimized algorithm provided a greatly improved convergence capability. The feasibility of the proposed algorithm was validated with a final simulation test. Compared with other SSA optimization algorithms, the results show that the CFSSA has the best efficiency. In an inspection path planning problem, the CFSSA has its advantages and applicability and is an applicable algorithm compared to SSA optimization algorithms.

1. Introduction

1.1. UAV in Intelligent Manufacturing

With the rapid development of technologies, artificial intelligence and the Internet of Things have been widely applied. As the industrial revolution has developed from 1.0 to 4.0, traditional manufacturing workshops have been changing towards the direction of intelligent manufacturing. The concept of “intelligent manufacturing” was first proposed by American scholars Wright and Bourne and is defined as “the process of using integrated knowledge engineering, manufacturing software system and robot vision and other technologies to complete small batch production by intelligent robots alone without human intervention” [1]. Up to now, the specific meaning of “intelligent manufacturing” has been evolving, the academic circles have not yet reached a unified consensus. According to an earlier study by the US Department of Energy on the topic, intelligent manufacturing is a combination of technologies and practices of sensing, instrumentation, monitoring, control and process optimization. It integrates information and communication technologies with the manufacturing environment to achieve the real-time management of energy, productivity and cost in factories and enterprises [2]. Monitoring and control are particularly important parts of the intelligent manufacturing process. Therefore, it is of great practical importance to study the inspection of intelligent manufacturing workshops.
With the reduction in UAV costs and the broadening of their applications, UAVs serve as an important tool in not only the military but all aspects of life, such as agriculture [3], surveying and mapping [4], power inspection [5], package delivery [6] and so on. In the intelligent manufacturing industry, intelligent inspection can be carried out using UAV’s mobility to monitor manufacturing equipment and processes. After the acquired information is processed for optimization, feedback control can be conducted on the manufacturing equipment through the Internet of Things and artificial intelligence. UAV has a wide range of application prospects in the intelligent manufacturing industry.

1.2. UAV’s Path Planning

The path planning of a UAV is an important work in its function. UAV’s path planning capability directly reflects its operational and risk management capabilities. A simple path planning algorithm classification framework is shown in Figure 1.
In global algorithm path planning, the path in the known environment is planned. The environment information has been given and the information such as the location of obstacles does not change.
The classic A* Algorithm was first published in 1968 by Peter Hart et al. [7]. It can be considered as an extension of the Dijkstra algorithm. Due to the guidance of heuristic functions, the A* algorithm usually has better performance.
Tabu Search Algorithm (TSA) is an optimization algorithm proposed by Glover in 1986 [8]. It is a Neighborhood Search Algorithm (NSA) based on greedy thinking. However, the biggest drawback of NSA is that it is prone to falling into local optima. To solve this problem, a taboo table is introduced to form the TSA, which has strong global search optimization ability.
In local algorithm path planning, the path in an unknown environment is planned. Sensors and other tools are used to obtain the current local environment information. Based on this, path planning and obstacle avoidance are carried out.
In 1986, Khatib first proposed the artificial potential field algorithm and applied it to the field of path planning [9]. The convergence speed of the artificial potential field method is fast, and the obtained path has high reachability, which is very suitable for the planning tasks that require high real-time and security-of-path generation.
On the basis of the A* Algorithm, Ferguson et al. proposed a dynamic path planning algorithm, namely the D* algorithm, which is suitable for path planning in a dynamic environment [10]. The D* algorithm has excellent real-time performance, which makes it more suitable for dynamic path planning in complex environments. However, the D* algorithm usually searches feasible waypoints in a large space range, which makes the convergence speed of the algorithm unsatisfactory.
The intelligent bionic algorithm is a kind of random search method that simulates natural biological evolution or group social behavior. Because its solution does not depend on gradient information when solving, it is widely used in practical problems such as path planning. Intelligent bionic algorithms mainly include Ant Colony Optimization (ACO) [11], the Genetic Algorithm (GA) [12], Particle Swarm Optimization (PSO) [13] and so on.
In this paper, we proposed an improved sparrow search algorithm: the CFSSA. The CFSSA is an intelligent bionic algorithm based on the sparrow search algorithm (SSA) [14] to enable UAVs to conduct optimal path planning during intelligent inspection.

2. Actual Path Planning Problem and Model Building

2.1. Problem Description

In an aircraft manufacturing workshop, to save manufacturing time, the workshop was divided into several areas according to different functions, including the parts area, laser area, assembly area and integration area. In this workshop, a UAV was used to conduct periodic cyclic intelligent inspection in each area. The internal structure of the manufacturing workshop is shown in Figure 2.
To better address the inspection path topic, the following assumptions were made after simplifications [15,16,17]:
  • There was only one take-off/land location for UAV inspection in the aircraft manufacturing workshop. The UAV takes off and lands at the same location;
  • There were five inspection areas in the aircraft manufacturing workshop: the parts area, laser area, assembly area, integration area and finished product area. Each inspection area had six inspection locations in sequence for a total of 30 inspection locations;
  • One UAV was dispatched to carry out cyclic inspections of each inspection location; and the UAV only passed each inspection location once per inspection cycle.
It is assumed that   m = 0 ,   1 ,   2 ,   ,   M where m represents the inspection locations. The conditions of m = 0 and m = M refer to the take-off and land location of the UAV. Other involved parameters are defined as follows:
  • tm is the time spent on each inspection location;
  • tmax and tmin are the longest and shortest time spent on one inspection cycle, respectively;
  • dmn is the distance from location m to n;
  • Lmax is the maximum distance allowed for UAV inspection;
  • Hmax is the maximum flight height of the UAV in the aircraft manufacturing workshop;
  • Vmax is the maximum speed of the UAV during inspection; because the UAV needs to hover during inspection, there is no need to set a minimum speed;
  • V1 is the flight speed of the UAV between inspection locations, which is assumed to be a constant;
  • V2 is the flight speed of the UAV when at the inspection location;
  • h is the flight height of the UAV during inspection;
  • D is the entire distance covered by UAV during inspection.
The decision variables are defined as follows:
x m n = 1         U A V   f l i g h t   f r o m   m   t o   n 0                                             o t h e r s
y m = 1                       U A V   p a s s e s   a n   i n s p e c t i o n   l o c a t i o n 0         U A V   d o e s   n o t   p a s s   a n   i n s p e c t i o n   l o c a t i o n

2.2. Mathematical Models

The optimization objective parameter is the shortest inspection path of the UAV in the workshop, given by
m i n D = m = 1 M n = 1 N x m n d m n
The constraint condition of the maximum inspection speed of the UAV at the inspection location is given by
V 2 V max
The constraint conditions of the maximum and minimum inspection time are given by
m = 1 M y m t m + L m a x V 1 T m a x
m = 1 M y m t m + L m a x V 1 T m i n
There is only one drone at each inspection location, expressed as
m = 1 M x m n = y m         m
The constraint condition of the maximum inspection distance during the UAV inspection is given by
m = 1 M n = 1 M d m n x m n L m a x           m , n

2.3. Map Modelling

During the actual working process, we found that the UAV will directly climb to the working height in place after taking off. And the height remains unchanged throughout the inspection process. After the inspection is completed, the UAV flies directly above the take-off/land location and lands. Therefore, path planning during the inspection process can be regarded as a two-dimensional problem.
We modeled the map according to the real environment of the aircraft manufacturing workshop. Common maps include raster, topological and semantic maps. The raster map is simple in its data structure and can effectively express the variability of the space. And the two-dimensional raster map modelling method was used in this study to simulate the real UAV inspection environment in the workshop [15], as shown in Figure 3.
The colors of different raster areas in the constructed 2D raster map are defined as follows. The black parts are the fixed obstacles such as walls and wall columns. The pink parts are the work areas of the aircraft manufacturing workshop. The red parts are the UAV inspection areas. The default inspection area of the UAV is the range of a raster near the work area. The yellow part is the take-off and landing location of the UAV. The green part is the random positions of the staff.
Due to the flight control program settings of inspection, while inspecting a surrounded area, the UAV needs to move to the area’s center first, then fly around the area once and return to the area’s center. Therefore, the path planning problem can be transformed from moving between areas to moving between points, i.e., the travel salesman problem (TSP).

3. Principle of Standard SSA

3.1. Algorithm Introduction

The SSA, proposed by Xue et al. in 2020 [14], mimics the behavior of sparrow populations in the sense that the population is divided into producers and scroungers in the process of finding food. The producers are mainly responsible for finding food in a wide range of environments. They need to find the location and direction of food for the sparrow population. Conversely, the scroungers follow the producers to forage around the food location. Each individual sparrow’s role as a producer or scrounger is not fixed, and they need to be able to flexibly switch according to the situation.
In the natural environment, because the sparrows in the periphery are vulnerable to attack, they gradually adjust their positions to move closer to the center of the population to increase their security. Moreover, all sparrows are constantly on alert, and when one sparrow within the population detects danger, the entire population moves from its current location to a safe environment to continue foraging.

3.2. Algorithm Flow

When the SSA is started, it first initializes a group of random particles (random solutions) and sets the maximum number of iterations. It is assumed that there are N particles in a D-dimensional search space. Therefore, the population size of the particle swarm is N. Each particle has velocity and position properties.
Producer: The producer has a larger foraging search area than the scrounger because in addition to meeting its own food needs, it also needs to provide the direction of the foraging area for the entire population. During each iteration, the position of the ith producer particle is updated as follows:
x i k + 1 = x i k · exp i α · k m a x         i f   R < S T x i k + Q · L                         i f   R > S T
where k is the number of current iterations, kmax is the maximum number of iterations, α is a random number in the interval (0, 1), Q is a random number subject to the normal distribution, L is a matrix of 1 × D with all elements being 1, R is an alarm value in the range of [0, 1] and ST is a safety threshold in the range of [0.5, 1].
When R < ST, there is no danger in the vicinity, and the producer can search in the surrounding space. When RST, the producer senses danger and moves in a random direction.
Scrounger: All particles except the producer are scroungers. They constantly monitor the producer’s information. Once the scrounger notices that the producer has found a better foraging area, they give up their current position and move to the better foraging area to look for food. During each iteration, the position of the ith scrounger particle (xi) is updated as follows:
x i k + 1 = Q · exp p w k x i k i 2                                 i f   i > N 2 p b k + 1 +   x i k p b k + 1   · A · L               i f   i N 2
where pb is the global best position, pw is the global worst position and A’ is a matrix of D × D, with all elements being randomly 1 or −1.
When i > N 2 , the amount of food obtained by the scrounger is too little, so it flies to other places to find food. When i N 2 , the scrounger follows the producer to the optimal foraging area.
Watchman: In the preset rules, each particle has a reconnaissance and early warning mechanism. A particle may be aware of danger and therefore abandon the current area and move to a safe area. A particle in this state is called a watchman. During each iteration, the position of the ith watchman particle is updated as follows:
x i k + 1 = p b k + β ·   x i k p b k                       i f   f i > f b p b k + K · x i k p w k   f i f w   + ε                 i f   f i = f b
where β is a step size regulating factor, and its value is a random number with a normal distribution with the mean being 0 and the variance being 1. K is a random number within [−1, 1]. The parameter fi is the fitness of the ith particle, while fb and fw are the current best and worst fitness values, respectively. The parameter ε is a very small constant to prevent the denominator from being zero.
When f i > f b , the particle is located at the edge of the population, and it preferentially moves closer to the center of the population. When f i = f b , the particle is located in the middle of the population, and it moves randomly to get close to other particles to avoid being preyed upon.
The complete computation flow of the SSA is as follows:
Step 1: Initialize the population by setting up the population size N, the maximum number of iterations Iteration, the proportion of producers, the proportion of sparrows that are aware of danger and a safety threshold;
Step 2: Calculate the fitness of the current population’s individuals, and sort to find the current best and worst values;
Step 3: Select the particles with good fitness values as the producers according to the proportion of producers and update the producer’s position according to Equation (9);
Step 4: Treat the remaining particles in the population as the scroungers and update their positions according to Equation (10);
Step 5: Randomly select some individuals in the population as the particles that are aware of danger according to the proportion of watchmen and treat them as the watchmen. Update their positions according to Equation (11) and calculate the new fitness values. If the fitness is better than the current optimal value, update the positions;
Step 6: Calculate the fitness values and retain the position of the optimal individual;
Step 7: Check whether the stop criterion is met. If yes, stop the algorithm and output the optimal result. Otherwise, go to Step 2.

4. Optimization Design of the CFSSA

Similar to other swarm-based intelligence algorithms, the SSA also has defects in the optimization process, such as a high risk of falling into local optima and insufficient convergence accuracy, which need further research to improve. Many scholars have improved the SSA to address its shortcomings [18,19,20]. The efforts have prevented the SSA from falling into local optima to a certain extent and improved the performance of the algorithm. However, the SSA still needs to be further improved in terms of optimization accuracy, convergence speed and stability.
Based on the SSA, this paper proposes an improved algorithm that adds chaotic cube mapping initialization, a firefly algorithm disturbance search and a tent chaos mapping perturbation search. The proposed algorithm optimizes the initial population distribution through chaotic cube mapping initialization and uses the firefly algorithm disturbance strategy and tent chaos mapping perturbation strategy to further optimize and update the sparrow’s location after the sparrow search. It improves the search ability and enriches the diversity of solutions. Therefore, the algorithm can avoid falling into local optima.

4.1. Improvement of Population Initialisation Stage Based on Chaotic Cube Mapping

In the population initialization stage, the SSA relies on a simple random function. The particle population generated with such a mechanism has an uneven distribution and insufficient diversity. Therefore, the optimization ability of the algorithm fluctuates greatly due to the different locations of the randomly generated population, leading to insufficient stability of the algorithm. The convergence accuracy of the algorithm is also negatively affected. To solve this common problem in swarm-based intelligence algorithms, chaotic sequencing has been widely used. Chaotic sequencing can be used to generate the initial population of swarm-based intelligence algorithms and optimize the performance of mutants. According to different mathematical principles, chaotic sequencing can be achieved by mapping different chaotic models, including the widely used Tent-map, Logistics-map, Kent-map and Cube-map. Studies have shown that chaotic cube mapping offers better distribution uniformity and predictability than other mapping methods [21]. Therefore, chaotic cube mapping was adopted in this study to improve the initialization stage of the SSA.
Chaotic cube mapping is described by the following formula:
y i + 1 = 4 y i 3 3 y i , 1 < y i < 1 ,   y i 0 ,   i = 0 , 1 , , N
The population initialization process of the SSA can be improved with chaotic cube mapping according to the following three steps.
First, assuming there are N particles in the D-dimensional search space, a random particle is first generated with each dimension having a range of [−1, 1], Y = y 1 , y 2 , y 3 ,     , y D ;
Second, each dimension of each particle is iterated with Equation (12) by a total of N − 1 iterations, generating N particles;
Finally, after the iterations of all particles are completed, they are mapped to the solution space of the problem according to Equation (13). Then, the position of each particle can be calculated by
x i = x m i n + x m a x x m i n · y i + 1 2
where xmin and xmax represent the upper and lower limits of the solution space, respectively.
As the initial location information of the sparrow population, the data generated via chaotic cube mapping are more evenly distributed in the solution space. This approach can effectively improve population diversity, algorithm stability and global search capability. The population distribution generated via chaotic cube mapping is shown in Figure 4.

4.2. Improvement of Location Update Based on Firefly Algorithm Disturbance

The SSA may suffer from premature convergence when searching for the target in the solution space, resulting in insufficient accuracy of the optimal solution. The producer can easily jump directly to the area surrounding the current extreme value in the late stage of the position update iteration, leading to an insufficient search in the range and falling into local optima. The optimization accuracy is also affected.
To overcome this shortcoming, the iterative strategy of firefly algorithm disturbance was introduced after the sparrow search. The firefly disturbance strategy was applied to the algorithm. With the help of the firefly’s luminous attraction, the individuals with better positions in the neighborhood structure can be found to enhance the diversity of the solution.
The Firefly Algorithm (FA) was proposed by Yang, a Cambridge scholar [22], to achieve location optimization by simulating the luminous behavior of fireflies. The mathematical modelling in the FA is described below.
The relative fluorescence luminance I of the firefly is
I = I 0 · e x p γ r i j
where I0 is the maximum fluorescence brightness (i.e., the fluorescence brightness at zero distance). The individual having a better fitness value has a greater I0 value. The parameter γ is the light intensity absorption coefficient, reflecting the attenuation effects of increased distance and medium absorption on the firefly’s fluorescence. The parameter rij is the spatial distance between fireflies i and j.
The relative attraction of the firefly δ is given by
δ = δ 0 · e x p γ r i j 2
where δ0 is the maximum attraction (i.e., the attraction when the distance between two fireflies becomes zero).
The location update is calculated for the disturbance of firefly i caused by firefly j as follows:
x i = x i + δ · x j x i + ζ · r a n d · 0.5
where ζ is the step size regulating factor and rand(·) is a random factor subject to the uniform distribution with the range of [0, 1].

4.3. Improvement of Location Update Based on Tent Chaos Mapping Perturbation

In frequently used chaotic models, the traversal uniformity and convergence speed of tent chaos mapping are all preferable. Research proved that tent chaos mapping can be used as a chaotic sequence for generating optimization algorithms [23]. Therefore, tent chaos mapping perturbation was also applied to the algorithm. By adding tent chaos mapping perturbation terms, the search area can be expanded, and the global search ability of the algorithm can be improved.
Tent chaos mapping is described by the following formula:
y i + 1 = 2 y i + r a n d 0 ,   1 1 N ,   0 y i 1 2 ,   i = 0 , 1 , , N 2 1 y i + r a n d 0 ,   1 1 N ,   1 2 < y i 1 ,   i = 0 , 1 , , N
The formula after Bernoulli transformation is given by
y i + 1 = 2 y i m o d 1 + r a n d 0 ,   1 1 N ,   i = 0 , 1 , , N
The population location update process of the SSA can be improved with tent cube mapping according to the following three steps.
First, generate chaotic variable Y d with Equation (18). Y d includes all particles which need to be tent chaos mapped;
Second, carry the chaotic variable into the solution space via
y i = x m i n + x m a x x m i n Y d
where xmin and xmax represent the upper and lower limits of the solution space, respectively.
Finally, perform chaotic perturbation via
x i = x i + y i / 2
Adding firefly algorithm disturbance and tent chaos mapping perturbation can help to prevent the solution from falling into local optima. Meanwhile, the sparrow position can be further updated to enhance the overall search of the population, improving the convergence accuracy.

4.4. Algorithm Flow of the CFSSA

The improved algorithm is called the chaotic mapping–firefly sparrow search algorithm (CFSSA). These improvements can enhance the stability, convergence accuracy and optimization accuracy of the original SSA.
The algorithm flow is given as follows:
Step 1: Initialize the population, and set the population size N, the maximum number of iterations Iteration, the proportion of producers, the proportion of sparrows that are aware of danger and the safety threshold. Use chaotic cube mapping to modify the initial positions of the particles to make their distributions more uniform and improve the diversity of the population;
Step 2: Calculate the fitness values of the individuals in the current population and sort them to find the current best value and worst value;
Step 3: Select the particles with better fitness values as the producers according to the proportion of producers and update their positions according to Equation (9);
Step 4: Treat the remaining particles in the population as the scroungers and update their positions according to Equation (10);
Step 5: Randomly select some individuals in the population as the particles that are aware of danger according to the proportion of watchmen and treat them as the watchmen. Update their positions according to Equation (11) and calculate the new fitness values. If the fitness is better than the current optimal value, update the positions;
Step 6: Check the particles’ fitness values and compare them with average fitness value f a v g . If f i < f a v g , the particle is more inclined to gather together; this particle goes to Step 7. If f i f a v g , the particle is more inclined to scatter, this particle goes to Step 8;
Step 7: Introduce the FA where the particles in the population are equivalent to individual fireflies. According to the position after the previous iteration, calculate the fitness function value as the maximum fluorescence brightness of each firefly (I0). Calculate the relative fluorescence brightness I and the attraction δ of each firefly according to Equations (14) and (15). Then, determine the search direction of the population. Use Equation (16) of firefly disturbance to update the position of the population. Randomly disturb the fireflies in the optimal positions. Go to Step 9;
Step 8: Use tent cube mapping to modify the positions of the particles;
Step 9: Calculate the fitness values and retain the position of the optimal individual;
Step 10: Check whether the stop criterion is met. If yes, end the algorithm and output the optimal result. Otherwise, go to Step 2.

5. Reference Function Test of the CFSSA

To verify the optimization performance of the CFSSA, several different reference functions were selected for testing. There are 23 commonly used reference functions, and six representative ones were selected in this study [24,25,26]. The function parameters are shown in Table 1.
In frequently used intelligent bionic algorithms, the PSO [13], Whale Optimization Algorithm (WOA) [27] and SSA [14] were selected for a performance comparison with the CFSSA. The integrated development environment of the test was MATLAB R2020a. The operating system was WIN10 with 64 bits. All of the calculation processes were repeated 30 times, and the best, worst and average values and the standard deviation of the results were taken as the evaluation criteria of algorithm performance. The number of iterations of the four algorithms was set to 1000, and the population size was set to 100. The simulation results are shown in Table 2.
To intuitively illustrate the optimization effect of the algorithm, Figure 5 and Figure 6 show the search spaces of the reference functions and the convergence curves of the four algorithms.
The results of the simulation test using the single-peak, multi-peak and low-dimensional multi-peak test functions reflect the performance of the four algorithms in terms of local search capability, global search capability and ability to jump out of local optima. With the single-peak test function f 1 x ~ f 3 x , the CFSSA showed good convergence speed and optimization accuracy. It could accurately find the optimal value, performing significantly better than the other algorithms. With the multi-peak test function f 4 x ~ f 5 x and the low-dimensional multi-peak test function f 6 x , the CFSSA could effectively escape local optima and find the global optimal solution. Although the improvement in the order of magnitude of the optimization result was usually small, the CFSSA exhibited the highest optimization accuracy. It could obtain a good average value with a small standard deviation. These results indicate that the CFSSA is robust and has significantly better optimization stability than the other algorithms.

6. Application of the CFSSA to Actual Path Planning Problem

6.1. Performance Comparison with Traditional Algorithms

The path planning problem’s description and math model was shown in Section 2. On this basis, we selected ACO, the GA, PSO, the SSA and the CFSSA for performance analysis. The number of iterations was set to 1000, and the population size was set to 100. Thirty simulation tests were conducted to compare the algorithms by using the 2D raster model map to generate optimal paths. The simulation results showed that the shortest inspection path of the UAV was 233.196 m and the shortest flight time was 15.019 s. The comparison is shown in Table 3, Table 4 and Table 5.
The following results can be obtained from the tables:
The CFSSA has the best optimization performance. The CFSSA found the global optimal path length solution of 233.196 m nine times. The GA found the global optimal solution two times. Other algorithms fell into local optima and could not find the global optimal solution. The average path length given via the CFSSA is 238.808 m, which is 3.20% higher than the SSA and even higher compared to the other algorithms.
The CFSSA has the best stability. The standard deviation of the CFSSA is 4.84% higher than the SSA and even higher compared to the other algorithms.
The CFSSA has the best efficiency. Because the numbers of iterations (and populations) of the algorithms used in the test were the same, the test time of the CFSSA and the SSA was very close. But compared with algorithms other than the SSA, the CFSSA has the shortest test time and the best efficiency. In addition, although the GA can find the global optimal solution, its test time is the longest among all algorithms and has the worst efficiency.
Figure 7 and Figure 8 show the optimal inspection paths with the SSA and CFSSA, respectively. The cyan part indicates the planned path. Figure 9 shows the comparison of the iteration effect before and after the CFSSA’s improvement. As shown, the CFSSA could iterate to the global optimal solution faster than the SSA, while the SSA was more likely to fall into local optima.

6.2. Performance Comparison with Other SSA Optimization Algorithms

We selected four SSA optimization algorithms proposed by other scholars to verify the performance differences between the CFSSA and other SSA optimization algorithms. These algorithms are called CSSA [18], MSISSA [19], QMESSA [20] and ICSSA [28]. Parameters of the math model and raster map were unchanged. And the comparison is shown in Table 6 and Table 7.
The following results can be obtained from the tables:
The ICSSA has the best optimization performance. All of the algorithms could find the global optimal solution. They found the global optimal path length solution of 233.196 m 9 times, 12 times, 9 times, 11 times and 14 times, respectively. The average path length given via the ICSSA is 237.358 m, which is higher than the other algorithms.
The QMESSA has the best stability. The standard deviation of the QMESSA is higher than the other algorithms.
The CFSSA has the best efficiency. The CFSSA has the shortest test time and the best efficiency.
During the inspection process, something’s location in the workshop will change with time (e.g., the staff). For safety reasons, the UAV’s path needs to avoid being directly above them, which means the UAV may need to recalculate its subsequent path after passing a point. Therefore, the speed of path calculation is an important influencing factor. The CFSSA has the fastest calculation speed and the best efficiency, as well as preferable optimization performance and stability. In the SSA optimization algorithms, the CFSSA has its advantages and applicability for the inspection path planning problem.

7. Conclusions

An improved SSA was proposed by adding chaotic cube mapping initialization, firefly algorithm disturbance search and tent chaos mapping perturbation search. The initial population distribution was optimized by using chaotic cube initialization. Then, the locations of the sparrows were further optimized and updated by using the firefly disturbance strategy and tent chaos mapping perturbation after the sparrow search. The proposed algorithm improved the search capability and enhanced the diversity of solutions.
Six different reference functions were used to validate the optimization performance of the proposed CFSSA. Compared with the PSO, WOA and SSA, the CFSSA demonstrated better convergence speed and convergence accuracy. The performance of the ACO, GA, PSO, SSA and CFSSA was simulated and analyzed in an 2D raster simulation map from a practical application, and the CFSSA demonstrated better performance than the other algorithms. The experiment showed that the proposed algorithm significantly increased the convergence speed and generated more concise and smooth flight routes.
Also, the performance of the CFSSA and the other four SSA optimization algorithms was simulated. The CFSSA has the best efficiency, preferable optimization performance and stability. In the inspection path planning problem, the CFSSA has its advantages and applicability and is an applicable algorithm.

Author Contributions

Data Curation, J.Z.; Formal Analysis, J.Z.; Investigation, J.Z.; Methodology, J.Z.; Project Administration, X.Z. and J.L.; Resources, X.Z. and J.L.; Supervision, X.Z. and J.L.; Validation, J.Z.; Visualization, J.Z.; Writing—Original Draft, J.Z.; Writing—Review and Editing, X.Z. and J.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, project number 51975540, and the Natural Science Fund of Shanxi Province, grant number 202203021222041.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Weight, P.K.; Bourne, D.A. Manufacturing Intelligence; Addison-Wesley Publishing Company: Glenview, IL, USA, 1998. [Google Scholar]
  2. Research Group on Manufacturers Strategic. Study of Manufacturers Strategic: Special Topics on Intelligent Manufacturing, 5th ed.; Publishing House of Electronics Industry: Beijing, China, 2015. [Google Scholar]
  3. Perz, R.; Wronowski, K. UAV application for precision agriculture. Aircr. Eng. Aerosp. Technol. 2019, 91, 257–263. [Google Scholar] [CrossRef]
  4. Muid, A.; Kane, H.; Sarasawita, I.K.; Evita, M.; Aminah, N.S.; Budiman, M.; Djamal, M. Potential of UAV Application for Forest Fire Detection. J. Phys. Conf. Ser. 2022, 2243, 012041. [Google Scholar] [CrossRef]
  5. Addabbo, P.; Angrisano, A.; Bernardi, M.L.; Gagliarde, G.; Mennella, A.; Nisi, M.; Ullo, S.L. UAV system for photovoltaic plant inspection. IEEE Aerosp. Electron. Syst. Mag. 2018, 33, 58–67. [Google Scholar] [CrossRef]
  6. Shugo, K.; Joaquim, R.R.A.M. Fleet Design Optimization of Package Delivery Unmanned Aerial Vehicles Considering Operations. J. Aircr. 2023, 60, 1061–1077. [Google Scholar]
  7. Peter, E.H.; Nils, J.N.; Bertram, R. A Formal Basis for the Heuristic Determination of Minimum Cost Paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar]
  8. Fred, G. Future Paths for Integer Programming and Links to Artificial Intelligence. Comput. Oper. Res. 1986, 13, 533–549. [Google Scholar]
  9. Khatib, O. Real-time Obstacle Avoidance System for Manipulators and Mobile Robots. Int. J. Robot. Res. 1986, 5, 90–98. [Google Scholar] [CrossRef]
  10. Ferguson, D.; Stentz, A. Field D*: An Interpolation-based Path Planner and Replanner. Robot. Res. 2007, 28, 239–253. [Google Scholar]
  11. Dorigo, M.; Gambardella, L.M. Ant Colony System: A Cooperative Learning Approach to the Traveling Salesman Problem. IEEE Trans Evol. Comput. 1997, 1, 53–66. [Google Scholar] [CrossRef]
  12. Narvydas, G.; Simutis, R.; Raudonis, V. Autonomous mobile robot control using IF-THEN rules and genetic algorithm. Inf. Technol. Control 2008, 37, 193–197. [Google Scholar]
  13. Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the IEEE Annual International Conference on Neural Networks, San Diego, CA, USA, 24–27 July 1988. [Google Scholar]
  14. Xue, J.K.; Shen, B. A novel swarm intelligence optimization approach: Sparrow search algorithm. Syst. Sci. Control Eng. 2020, 8, 22–34. [Google Scholar] [CrossRef]
  15. Gen, L.; Hang, L.; Shuaiyang, Z.H.; Qiuhui, L.; Hongfan, Y.A. Optimal path planning and parameter analysis based on ant colony algorithm. China Sci. Pap. 2018, 13, 1909–1914. [Google Scholar]
  16. Greco, A.; Pluchino, A.; Cannizzaro, F. An improved ant colony optimization algorithm and its applications to limit analysis of frame structures. Eng. Optmization 2019, 51, 1867–1883. [Google Scholar] [CrossRef]
  17. Wang, L.; Xia, X.H.; Cao, J.H.; Liu, X.; Liu, J.W. Improved Ant Colony-Genetic Algorithm for Information Transmission Path Optimization in Remanufacturing Service System. Chin. J. Mech. Eng. 2018, 31, 1–12. [Google Scholar] [CrossRef]
  18. Liu, J.H.; Wang, Z.H. A hybrid sparrow search algorithm based on constructing similarity. IEEE Access 2021, 9, 117581–117595. [Google Scholar]
  19. Liu, Z.C.; Bai, Y.S.; Jia, X.S. Multi-strategy Improved Sparrow Search Algorithm. J. Phys. Conf. Ser. 2023, 2549, 012030. [Google Scholar] [CrossRef]
  20. Wu, R.; Huang, H.; Wei, J.; Ma, C.; Zhu, Y.; Chen, Y.; Fan, Q. An improved sparrow search algorithm based on quantum computations and multi-strategy enhancement. Expert Syst. Appl. 2023, 215, 119421. [Google Scholar] [CrossRef]
  21. Saroya, M.; Best, G.; Hollinger, G.A. Roadmap Learning for Probabilistic Occupancy Maps with Topology-Informed Growing Neural Gas. IEEE Robot. Autom. Lett. 2021, 6, 4805–4812. [Google Scholar] [CrossRef]
  22. Fister, I., Jr.; Fister, I.; Yang, X.S.; Brest, J. A comprehensive review of firefly algorithms. Swarm Evol. Comput. 2013, 13, 34–46. [Google Scholar] [CrossRef]
  23. Shan, L.; Qiang, H.; Li, J.; Wang, Z. Chaotic optimization algorithm based on Tent map. Control Decis. 2005, 20, 179–182. [Google Scholar]
  24. Yao, X.; Liu, Y. Evolutionary programming made faster. IEEE Trans. Evol. Comput. 1999, 3, 82–102. [Google Scholar]
  25. Digalakis, J.G.; Margaritis, K.G. On benchmarking functions for genetic algorithms. Int. J. Comput. Math. 2001, 77, 481–506. [Google Scholar] [CrossRef]
  26. Yang, X.S. Firefly algorithm, stochastic test functions and design optimization. Int. J. Bio-Inspired Comput. 2010, 2, 78–84. [Google Scholar] [CrossRef]
  27. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  28. He, Y.; Wang, M.R. An improved chaos sparrow search algorithm for UAV path planning. Sci. Rep. 2024, 14, 366. [Google Scholar] [CrossRef]
Figure 1. Path planning algorithm classification framework.
Figure 1. Path planning algorithm classification framework.
Sensors 24 01104 g001
Figure 2. Photo of an aircraft manufacturing workshop: (a) left half part; (b) right half part and (c) entire workshop.
Figure 2. Photo of an aircraft manufacturing workshop: (a) left half part; (b) right half part and (c) entire workshop.
Sensors 24 01104 g002
Figure 3. Two-dimensional raster map.
Figure 3. Two-dimensional raster map.
Sensors 24 01104 g003
Figure 4. Population distribution map of chaotic cubic mapping.
Figure 4. Population distribution map of chaotic cubic mapping.
Sensors 24 01104 g004
Figure 5. Function search spaces.
Figure 5. Function search spaces.
Sensors 24 01104 g005
Figure 6. Function convergence curves.
Figure 6. Function convergence curves.
Sensors 24 01104 g006
Figure 7. Optimal inspection path with the SSA.
Figure 7. Optimal inspection path with the SSA.
Sensors 24 01104 g007
Figure 8. Optimal inspection path with the CFSSA.
Figure 8. Optimal inspection path with the CFSSA.
Sensors 24 01104 g008
Figure 9. Comparison of iteration effect before and after improvement.
Figure 9. Comparison of iteration effect before and after improvement.
Sensors 24 01104 g009
Table 1. Parameters of reference functions.
Table 1. Parameters of reference functions.
Reference FunctionRangeDimensionMinimum
f 1 x = i = 1 n x i 2 [−100, 100]300
f 2 x = i = 1 n x i + i = 1 n x i [−10, 10]300
f 3 x = m a x i x i ,   1 i n [−100, 100]300
f 4 x = i = 1 n x i s i n x i [−500, 500]30418.982n
f 5 x = π n 10 sin π y 1 + i = 1 n 1 y i 1 2 1 + 10 s i n 2 π y i + 1 + y n 1 2 + i = 1 n u x i , 10 , 100 , 4 y i = 1 + x i + 1 4 u x i , a , k , m = k x i a m , x i > a 0 , a < x i < a k x i a m , x i < a [−50, 50]300
f 6 x = 1 500 + j = 1 25 1 j + i = 1 2 x i a i j 6 1 [−65, 65]21
Table 2. Simulation results.
Table 2. Simulation results.
Reference FunctionAlgorithmBestWorstAverageStandard Deviation
f 1 x PSO0.4933.8872.0210.779
WOA3.986 × 10−2063.658 × 10−1891.231 × 10−1900
SSA0000
CFSSA0000
f 2 x PSO4.636 × 10−230.2796.6248.386
WOA1.074 × 10−1211.155 × 10−1126.398 × 10−1142.272 × 10−113
SSA02.075 × 10−2747.410 × 10−2760
CFSSA01.032 × 10−2653.691 × 10−2670
f 3 x PSO2.0477.6683.4591.248
WOA6.110 × 10−1171.58816.36720.591
SSA07.305 × 10−2172.519 × 10−2180
CFSSA04.290 × 10−2001.483 × 10−2010
f 4 x PSO−8067.380−5422.630−6604.396595.849
WOA−12,569.465−8256.652−12,030.776928.457
SSA−12,213.757−6152.891−8920.4962322.395
CFSSA−12,571.034−11,402.927−11,981.637501.026
f 5 x PSO0.9828.2663.1861.527
WOA1.127 × 10−51.020 × 10−44.701 × 10−52.159 × 10−5
SSA1.432 × 10−86.362 × 10−71.836 × 10−71.398 × 10−7
CFSSA9.415 × 10−95.787 × 10−71.603 × 10−71.291 × 10−7
f 6 x PSO0.9980.9980.9980
WOA0.9982.9821.0640.356
SSA0.99812.6706.9534.841
CFSSA0.9980.9980.9980
Table 3. Comparison of path length simulation data.
Table 3. Comparison of path length simulation data.
TestACO Path (m)GA Path (m)PSO Path (m)SSA Path (m)CFSSA Path (m)
1268.367255.708253.176253.176245.577
2270.510265.546253.137248.174242.989
3253.145243.409243.409243.409243.501
4256.099261.024246.249246.249237.854
5268.435245.644248.176253.241233.196
6258.645253.719248.792246.329241.926
7257.755277.582247.841247.841241.011
8260.239243.214248.078243.214235.561
9265.013235.567242.928245.382238.080
10256.872256.872235.208237.844233.196
11271.006286.492255.520258.101233.196
12258.774266.238246.333248.821238.189
13270.813273.275246.194246.194238.123
14264.964282.629254.870252.347241.357
15271.396258.946244.007248.987241.581
16254.429247.159239.890242.313247.556
17263.022250.845248.410243.539243.487
18262.847253.021245.651245.651233.196
19256.624233.196244.519242.098233.196
20266.101268.520244.329241.910237.611
21260.450240.794245.708245.708242.298
22254.012249.264239.768237.394233.196
23258.212260.626246.146241.320244.086
24268.271255.735253.228250.721238.503
25267.142272.043242.633245.084244.621
26265.271270.276247.753250.256233.196
27272.043272.043252.077249.581240.433
28255.531233.196240.929243.363233.196
29268.906273.886253.967248.987241.130
30278.617255.821248.222253.288233.196
Table 4. Algorithm path lengths for CFSSA with traditional algorithms.
Table 4. Algorithm path lengths for CFSSA with traditional algorithms.
AlgorithmBestWorstAverageStandard Deviation
ACO253.145278.617263.4506.498
GA233.196286.492258.07614.146
PSO235.208255.520246.9054.793
SSA237.394258.101246.6844.669
CFSSA233.196247.556238.8084.443
Table 5. Algorithm time costs for CFSSA with traditional algorithms.
Table 5. Algorithm time costs for CFSSA with traditional algorithms.
AlgorithmShortest Time Cost(s)Longest Time Cost(s)Average Time Cost(s)
ACO21.03724.89022.986
GA38.92752.10646.200
PSO18.03521.20819.633
SSA15.02215.83415.410
CFSSA15.01915.77315.362
Table 6. Algorithm path lengths for CFSSA with other SSA optimization algorithms.
Table 6. Algorithm path lengths for CFSSA with other SSA optimization algorithms.
AlgorithmBestWorstAverageStandard Deviation
CFSSA233.196247.556238.8084.443
CSSA233.196241.683237.7364.105
MSISSA233.196249.094240.1346.580
QMESSA233.196243.170238.2853.928
ICSSA233.196244.329237.3584.256
Table 7. Algorithm time costs for CFSSA with other SSA optimization algorithms.
Table 7. Algorithm time costs for CFSSA with other SSA optimization algorithms.
AlgorithmShortest Time Cost(s)Longest Time Cost(s)Average Time Cost(s)
CFSSA15.01915.77315.362
CSSA36.24739.50437.885
MSISSA18.65719.49319.015
QMESSA22.38125.54823.914
ICSSA17.20019.03418.146
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 MDPI and/or the editor(s). MDPI 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.

Share and Cite

MDPI and ACS Style

Zhang, J.; Zhu, X.; Li, J. Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection. Sensors 2024, 24, 1104. https://doi.org/10.3390/s24041104

AMA Style

Zhang J, Zhu X, Li J. Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection. Sensors. 2024; 24(4):1104. https://doi.org/10.3390/s24041104

Chicago/Turabian Style

Zhang, Jinwei, Xijing Zhu, and Jing Li. 2024. "Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection" Sensors 24, no. 4: 1104. https://doi.org/10.3390/s24041104

APA Style

Zhang, J., Zhu, X., & Li, J. (2024). Intelligent Path Planning with an Improved Sparrow Search Algorithm for Workshop UAV Inspection. Sensors, 24(4), 1104. https://doi.org/10.3390/s24041104

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop