Unmanned aerial vehicle multi-point coverage flight path optimization method and system based on Kmeans-ant colony

The Kmeans-ant colony method is used to divide multiple fixed points into sub-point clusters and optimize the path, which solves the problems of slow algorithm convergence and poor path quality in UAV multi-point coverage trajectory optimization, and achieves the effect of quickly solving shorter paths.

CN118533171APending Publication Date: 2024-08-23XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410369427.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing UAV multi-point coverage trajectory optimization algorithms are prone to falling into local optima when faced with large-scale problems, take a long time to calculate, and are difficult to find better approximate solutions.

Method used

The method based on Kmeans-ant colony is used to divide multiple fixed points into smaller sub-point clusters, use the Kmeans algorithm for clustering, and then use the ant colony algorithm to find the optimal path in each sub-point cluster, and use the optimal connection method Connect the routes between sub-point clusters into a globally optimal path.

Benefits of technology

It effectively reduces the generation of sub-optimal solutions, improves calculation speed, and can quickly find shorter coverage paths, which is suitable for large-scale UAV multi-point coverage problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533171A
    Figure CN118533171A
Patent Text Reader

Abstract

The invention discloses an unmanned aerial vehicle multi-point coverage flight path optimization method and system based on a Kmeans-ant colony. The method comprises the steps that feature information is generated according to the coordinate position of a fixed point; performing Kmeans clustering according to the feature information of the fixed points to divide the plurality of fixed points into a plurality of sub-point clusters; obtaining an optimal path for a single sub-point cluster in the plurality of sub-point clusters through an ant colony algorithm, and in the single sub-point cluster, arranging fixed points which sequentially pass through in sequence; calculating the distance between two adjacent fixed points in one sub-point cluster in the plurality of sub-point clusters and two adjacent fixed points in the other sub-point cluster; the method comprises the steps of selecting a position with the minimum distance as a connection point between two sub-point clusters, permutation and combination of connection modes between the sub-point clusters, selecting a connection mode with the shortest overall path distance, and generating a final path connection mode. And the path solving capability of unmanned aerial vehicle multi-point coverage trajectory optimization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of multi-point coverage trajectory optimization in the field of unmanned aerial vehicles, and specifically relates to a flight trajectory optimization method and system for unmanned aerial vehicle multi-point coverage based on Kmeans-ant colony. Background Art

[0002] The problem of optimizing the multi-point coverage trajectory of drones is a classic combinatorial optimization problem. Its goal is to find the shortest path so that the drone passes through all given points in sequence and finally returns to the starting point. This problem is NP-hard, which means that in general, there is no known efficient algorithm that can solve it in polynomial time. This problem has a wide range of applications in computer science, transportation, logistics and other fields.

[0003] The commonly used optimization algorithms for solving multi-point coverage trajectory planning of UAVs can be divided into the following five categories according to their forms: exhaustive method based on searching all paths, but it is not applicable to large-scale problems due to the exponential growth of paths. Heuristic algorithms that search for possible solutions based on rules or heuristic strategies, such as ant colony optimization, genetic algorithm, simulated annealing algorithm, etc., but they are prone to fall into local optimality and convergence for large-scale problems and have poor results. Dynamic programming algorithms based on storing intermediate results to avoid complex calculations, but they are also impractical due to increased computational complexity when facing large-scale problems. Approximate algorithms based on finding the optimal solution in polynomial time, in large-scale problems, need to make a trade-off between solution and computation time, and it is difficult to obtain a better approximate solution in large-scale problems. Meta-heuristic algorithms based on combination or variant search of heuristic algorithms, such as particle swarm optimization (PSO) and ant colony genetic algorithm, can usually search the solution space more effectively, but they are also prone to fall into local optimality in large-scale problems.

[0004] It can be seen that although the research on the optimization problem of multi-point coverage trajectory of UAVs has made great progress, when facing large-scale problems, there are shortcomings such as slow algorithm convergence, results converge to local optimality, poor overall path quality, and long calculation time. Summary of the invention

[0005] In order to solve the problems existing in the prior art, the present invention provides a flight trajectory optimization method for multi-point coverage of a UAV based on Kmeans-ant colony. Considering the distribution of fixed points that need to be passed, the Kmeans algorithm is used to divide the fixed points with a relatively close distance into a sub-point cluster. Therefore, the large-scale fixed points are divided into several smaller sub-point clusters. Then, the ant colony algorithm is used to implement path planning for a single sub-point cluster to find the optimal path for each sub-point cluster. On this basis, the optimal connection method is used to connect the routes between several sub-point clusters into a global optimal path to reduce the generation of suboptimal solutions and the calculation time of large-scale fixed points.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is: a flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony, comprising the following steps:

[0007] Generate feature information according to the coordinate position of the fixed point; perform Kmeans clustering according to the feature information of the fixed point to divide multiple fixed points into multiple sub-point clusters;

[0008] The optimal path is obtained for a single sub-point cluster among multiple sub-point clusters by using the ant colony algorithm, and the fixed points that are passed in sequence are arranged in order in the single sub-point cluster;

[0009] Calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster among multiple sub-point clusters; select the point with the smallest distance as the connection point between the two sub-point clusters, arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method.

[0010] Furthermore, when generating feature information according to the coordinate position of the fixed point, the coordinates of each fixed point and the distances between the fixed points are known, and the position information is generated by the horizontal coordinate and the vertical coordinate of the fixed point as the feature information of the fixed point;

[0011] Kmeans clustering is performed based on the characteristics of the fixed points to divide multiple fixed points into multiple sub-point clusters including:

[0012] For fixed points with location feature information, clustering method is used to divide sub-point clusters.

[0013] For a given sample set D = {x1, x2, ..., x m}, use the Kmeans algorithm to divide D, and use the minimum square difference distance for clustering, as shown in formula (1), and get the sub-point group C = {C1, C2, ..., C k}.

[0014]

[0015] In the formula, It is cluster C i The mean vector of .

[0016] Furthermore, when the ant colony algorithm is used to obtain the optimal path for a single sub-point cluster among multiple sub-point clusters, the ant colony algorithm is used to solve the optimal path for the sub-point cluster obtained after clustering, including path construction and pheromone update, as follows:

[0017] 1) Path construction

[0018] Each ant selects a fixed point as its starting point and maintains a path memory vector to store the fixed points that the ant has passed through once. In each step of building a path, the ant selects the next fixed point to be reached according to a random proportion rule. The pseudo proportion selection is shown in formula (2):

[0019]

[0020] In the formula, i and j are the starting point and the end point respectively. is visibility, which represents the inverse of the distance between two points i and j, τ ij (t) represents the pheromone concentration from i to j at time t, allowed k is the set of nodes that have not been visited, α and β are two constants, which are the weighted values ​​of pheromone and visibility respectively;

[0021] 2) Update of pheromones

[0022] First, initialize the pheromone concentration, as shown in formula (3):

[0023] τ ij (t) = C (3)

[0024] After that, the concentration is updated. When all ants reach the end point, the pheromone concentration of each path is updated once. The pheromone update includes evaporation and release. The update process is shown in formula (4):

[0025]

[0026] Where m is the number of ants, 0<ρ≤1 is the evaporation rate of pheromone, where:

[0027]

[0028] In the formula, C k It is the total path length obtained after the kth ant completes the path.

[0029] Furthermore, in a single sub-point cluster, when the fixed points that have passed through are arranged in order,

[0030] In a single sub-point cluster, the fixed points are arranged in a random order as shown in formula (6):

[0031] C=[c1,c2,c3,…,c n ] (6)

[0032] After the sub-point cluster is calculated by the ant colony algorithm, an optimal path is obtained, and the returned form is the corresponding fixed point sequence obtained according to the fixed point sequence in C, as shown in formula (7):

[0033] K=[k1,k2,k3,…,k n ] (7)

[0034] According to the optimal path number K, the sub-point sequence C is reorganized to obtain a new fixed-point sequence C′;

[0035] C′=[c1′,c2′,c3′,…,c n ′] (8).

[0036] Furthermore, when calculating the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster, the fixed point sequence after the optimal path reorganization of each sub-point cluster is obtained by the ant colony algorithm, and the fixed point sequence is connected to form a closed loop. At least four fixed points are required to form a closed loop between two sub-point clusters. The formation of a new closed loop is accompanied by a change in the path distance. The smaller the distance change, the better the effect. Two sub-point clusters A and B whose sequences are reorganized by the ant colony algorithm are given;

[0037] A=[a1,a2,a3,…,a m ] (9)

[0038] B=[b1,b2,b3,…,b n ] (10)

[0039] According to the sub-point clusters of the recombined sequence, the loss function of the path distance change is calculated as shown in formula (11):

[0040]

[0041] Further, selecting the point with the smallest distance as the connection point between two sub-point clusters includes:

[0042] D is obtained according to the path distance change loss function min i and j at the position are the connection points of the two sub-point clusters. There are two connection methods, as shown below:

[0043] AB=[a1,a2,…,a i ,b j ,b j-1 ,…,b1,bm ,b m-1 ,b j+1 ,a i+1 ,a i+2 ,…,a n ]

[0044] AB=[a1,a2,…,a i ,b j+1 ,b j+2 ,…,b m ,b1,b2,…,b j ,a i+1 ,a i+2 ,…,a n ]

[0045] Specific selection situation according to The value in is determined.

[0046] Furthermore, the connection modes between sub-point clusters are arranged and combined, and the connection mode with the shortest overall path distance is selected. When the final path connection mode is generated, two sub-point clusters can generate a closed loop. The forms of multiple sub-point clusters generating closed loops include:

[0047] Two sub-point clusters generate a closed loop, a new closed loop is generated with the third sub-point cluster to generate a new closed loop, and so on, and finally an overall multi-point coverage closed loop path is generated.

[0048] There are k sub-point clusters, such as

[0049] C={C1,C2,…,C k}

[0050] C1,C2→C′

[0051] C′,C3→C′

[0052] …

[0053] C′,C k →C′

[0054] According to this method, the generated types are shown in formula (12):

[0055] n=(k-1)! (12)

[0056] Select the generation method with the smallest total path, that is, the optimal total path.

[0057] Based on the technical concept of the method, the present invention also provides a flight trajectory optimization system for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony, including a sub-point clustering module, an arrangement module and a path connection mode calculation module;

[0058] The sub-point clustering module is used to generate feature information according to the coordinate position of the fixed point; Kmeans clustering is performed according to the feature information of the fixed point to divide multiple fixed points into multiple sub-point clusters;

[0059] The arrangement module is used to obtain the optimal path for a single sub-point cluster among multiple sub-point clusters through the ant colony algorithm, and arrange the fixed points that are passed in sequence in the single sub-point cluster;

[0060] The path connection method calculation module is used to calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster among multiple sub-point clusters; select the point with the smallest distance as the connection point between the two sub-point clusters, arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method.

[0061] The present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the flight trajectory optimization method for multi-point coverage of a drone based on Kmeans-ant colony described in the present invention.

[0062] At the same time, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the flight trajectory optimization method for multi-point coverage of a UAV based on Kmeans-ant colony according to the present invention can be implemented.

[0063] Compared with the prior art, the present invention has at least the following beneficial effects: first, the method described in the present invention can find a shorter coverage path in the problem of multi-point coverage of drones; second, in the problem of multi-point coverage of drones, it can be solved quickly, the amount of calculation is reduced, and the solution speed is fast; finally, the method can not only be applied to the field of drones, but also has good effects in the field of multi-point coverage trajectory planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 The present invention is a flowchart of an implementable method.

[0065] Figure 2 The present invention provides a process and result of an implementable method. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention are further described in detail below.

[0067] The process of the method proposed by the present invention is as follows Figure 1 As shown, the details are as follows:

[0068] Step 1: Generate feature information based on the coordinate position of the fixed point, perform Kmeans clustering based on the feature information of the fixed point, and divide multiple fixed points into multiple sub-point clusters; since the coordinates of each fixed point and the distance between each fixed point are known, the position information can be generated through the horizontal and vertical coordinates of the fixed point as the feature information of the fixed point.

[0069] Kmeans clustering is performed based on the characteristics of the fixed points to divide multiple fixed points into multiple sub-point clusters including:

[0070] For fixed points with location feature information, clustering method is used to divide sub-point clusters. Clustering is the analysis process of grouping a collection of physical objects or abstract objects into multiple classes consisting of objects that are similar to each other. For a given sample set D = {x1, x2, ..., x m}, use the Kmeans algorithm to divide D, and use the minimum square difference distance for clustering, as shown in formula (1), and get the sub-point group C = {C1, C2, ..., C k}.

[0071]

[0072] In the formula, It is cluster C i The mean vector of .

[0073] The schematic diagram of sub-point cluster classification is as follows Figure 2 As shown in (a).

[0074] Step 2: Obtain the optimal path for a single sub-point cluster through the ant colony algorithm; in the single sub-point cluster, arrange the fixed points that are passed in sequence;

[0075] The optimal path for a single sub-point cluster obtained by ant colony algorithm includes:

[0076] Solving the optimal path for a single sub-point cluster can be divided into two parts: path construction and pheromone update.

[0077] 1) Path construction

[0078] Each ant selects a fixed point as its starting point and maintains a path memory vector to store the fixed points that the ant has passed through. In each step of building a path, the ant selects the next fixed point to reach according to a random proportion rule. The pseudo proportion selection is as follows:

[0079]

[0080] In the formula, i and j are the starting point and the end point respectively. is visibility, which represents the inverse of the distance between two points i and j, τ ij(t) represents the pheromone concentration from i to j at time t, allowed k is the set of nodes that have not been visited, α and β are two constants, which are the weighted values ​​of pheromone and visibility respectively.

[0081] 2)Pheromone Update

[0082] First, initialize the pheromone concentration, as shown in formula (3).

[0083] τ ij (t) = C (3)

[0084] After that, the concentration needs to be updated. In order to simulate the ants leaving more pheromones on a shorter path, when all ants reach the end point, the pheromone concentration of each path must be updated once. The pheromone update is also divided into two steps: evaporation and release. The update process is shown in formula (4).

[0085]

[0086] Where m is the number of ants, 0<ρ≤1 is the evaporation rate of pheromone, where:

[0087]

[0088] In the formula, C k It is the total path length obtained after the kth ant completes the path.

[0089] The final single sub-point cluster path diagram constructed by the ant colony algorithm is as follows: Figure 2 (b) as shown.

[0090] In a single sub-point cluster, the points that are passed sequentially are arranged in order. The main steps include:

[0091] In a single sub-point cluster, the fixed points are arranged in a random order, as shown in formula (6).

[0092] C=[c1,c2,c3,…,c n ] (6)

[0093] After the sub-point cluster is calculated by the ant colony algorithm, an optimal path will be obtained. The returned form is the corresponding fixed point sequence number obtained according to the fixed point sequence in C, as shown in formula (7):

[0094] K=[k1,k2,k3,…,k n ] (7)

[0095] According to the optimal path number K, the fixed-point sequence C is reorganized to obtain a new fixed-point sequence C′.

[0096] C′=[c1′,c2′,c3′,…,c n ′] (8)

[0097] Step 3: Calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster; select the point with the smallest distance as the connection point between the two sub-point clusters; arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method;

[0098] Calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster. The main steps include:

[0099] There are two sub-point clusters A and B whose sequences are reassembled by ant colony algorithm.

[0100] A=[a1,a2,a3,…,a m ] (9)

[0101] B=[b1,b2,b3,…,b n ] (10)

[0102] According to the sub-point clusters of the recombinant sequence, the loss function of the path distance change is calculated as shown in formula (11).

[0103]

[0104] Select the point with the smallest distance as the connection point between two sub-point clusters. The main steps include:

[0105] After obtaining the path distance change loss function, we can obtain D min i and j at , which are the connection points of the two sub-point clusters. There are two connection methods, as shown below

[0106] AB=[a1,a2,…,a i ,b j ,b j-1 ,…,b1,b m ,b m-1 ,b j+1 ,a i+1 ,a i+2 ,…,a n ]

[0107] AB=[a1,a2,…,a i ,b j+1 ,b j+2 ,…,b m ,b1,b2,…,b j ,a i+1 ,a i+2 ,…,an ]

[0108] Specific selection situation according to

[0109]

[0110] The value in is determined.

[0111] Select the point with the smallest distance as the connection point between two clusters. The main steps include:

[0112] After obtaining the path distance change loss function, we can obtain D min i and j at , which are the connection points of the two sub-point clusters. There are two connection methods, as shown below

[0113] AB=[a1,a2,…,a i ,b j ,b j-1 ,…,b1,b m ,b m-1 ,b j+1 ,a i+1 ,a i+2 ,…,a n ]

[0114] AB=[a1,a2,…,a i ,b j+1 ,b j+2 ,…,b m ,b1,b2,…,b j ,a i+1 ,a i+2 ,…,a n ]

[0115] Specific selection situation according to

[0116]

[0117] The value in is determined.

[0118] Arrange and combine the connection methods between sub-node clusters, select the connection method with the shortest overall path distance, and generate the final path connection method; the main steps include:

[0119] Through the above generation method, two sub-point clusters can generate a closed loop, so the form of multiple sub-point clusters generating a closed loop can be divided into two steps. First, two sub-point clusters generate a closed loop, and then a new closed loop is generated with the third sub-point cluster to generate a new closed loop, and so on to finally generate an overall multi-point coverage closed loop path.

[0120] There are k sub-point clusters, such as

[0121] C={C1,C2,…,C k}

[0122] C1,C2→C′

[0123] C′,C3→C′

[0124] …

[0125] C′,C k →C′

[0126] According to this method, the generated types are shown in formula (12):

[0127] n=(k-1)! (12)

[0128] Select the generation method with the smallest total path, that is, the optimal total path. The final path diagram is as follows Figure 2 (c) as shown.

[0129] Based on the technical concept of the method, the present invention also provides a flight trajectory optimization system for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony, including a sub-point clustering module, an arrangement module and a path connection mode calculation module;

[0130] The sub-point clustering module is used to generate feature information according to the coordinate position of the fixed point; Kmeans clustering is performed according to the feature information of the fixed point to divide multiple fixed points into multiple sub-point clusters;

[0131] The arrangement module is used to obtain the optimal path for a single sub-point cluster among multiple sub-point clusters through the ant colony algorithm, and arrange the fixed points that are passed in sequence in the single sub-point cluster;

[0132] The path connection method calculation module is used to calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster among multiple sub-point clusters; select the point with the smallest distance as the connection point between the two sub-point clusters, arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method.

[0133] On the other hand, the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the flight trajectory optimization method for multi-point coverage of a drone based on Kmeans-ant colony described in the present invention can be implemented.

[0134] The computer device may be a laptop computer, a desktop computer or a workstation.

[0135] The present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the flight trajectory optimization method for multi-point coverage of a drone based on Kmeans-ant colony described in the present invention.

[0136] The processor may be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf field programmable gate array (FPGA).

[0137] The memory of the present invention may be an internal storage unit of a laptop computer, a desktop computer or a workstation, such as a memory or a hard disk; or an external storage unit, such as a mobile hard disk or a flash memory card.

[0138] Computer-readable storage media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer-readable storage media may include: read-only memory (ROM), random access memory (RAM), solid-state drive (SSD) or optical disk, etc. Among them, random access memory may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).

Claims

1. A flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony, characterized in that: The following steps are involved: Generate feature information according to the coordinate position of the fixed point; Kmeans clustering is performed based on the feature information of the fixed points to divide multiple fixed points into multiple sub-point clusters; The optimal path is obtained for a single sub-point cluster among multiple sub-point clusters by using the ant colony algorithm, and the fixed points that are passed in sequence are arranged in order in the single sub-point cluster; Calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster among multiple sub-point clusters; select the point with the smallest distance as the connection point between the two sub-point clusters, arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method.

2. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: When generating feature information according to the coordinate position of a fixed point, the coordinates of each fixed point and the distances between the fixed points are known, and the position information is generated by the horizontal coordinate and the vertical coordinate of the fixed point as the feature information of the fixed point; Kmeans clustering is performed based on the characteristics of the fixed points to divide multiple fixed points into multiple sub-point clusters including: For fixed points with location feature information, clustering method is used to divide sub-point clusters. For a given sample set D = {x1, x2, ..., x m }, use the Kmeans algorithm to divide D, and use the minimum square difference distance for clustering, as shown in formula (1), and get the sub-point group C = {C1, C2, ..., C k }, In the formula, It is cluster C i The mean vector of .

3. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: When the ant colony algorithm is used to obtain the optimal path for a single sub-point cluster among multiple sub-point clusters, the ant colony algorithm is used to solve the optimal path for the sub-point cluster obtained after clustering, including path construction and pheromone update, as follows: 1) Path construction Each ant selects a fixed point as its starting point and maintains a path memory vector to store the fixed points that the ant has passed through once. In each step of building a path, the ant selects the next fixed point to be reached according to a random proportion rule. The pseudo proportion selection is shown in formula (2): In the formula, i and j are the starting point and the end point respectively. is visibility, which represents the inverse of the distance between two points i and j, τ ij (t) represents the pheromone concentration from i to j at time t, allowed k is the set of nodes that have not been visited, α and β are two constants, which are the weighted values ​​of pheromone and visibility respectively; 2) Update of pheromones First, initialize the pheromone concentration, as shown in formula (3): t ij (t)=C (3) After that, the concentration is updated. When all ants reach the end point, the pheromone concentration of each path is updated once. The pheromone update includes evaporation and release. The update process is shown in formula (4): Where m is the number of ants, 0<ρ≤1 is the evaporation rate of pheromone, where: In the formula, C k It is the total path length obtained after the kth ant completes the path.

4. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: In a single sub-point cluster, when the fixed points that pass through one after another are arranged in order, In a single sub-point cluster, the fixed points are arranged in a random order as shown in formula (6): C=[c1,c2,c3,…,c n ] (6) After the sub-point cluster is calculated by the ant colony algorithm, an optimal path is obtained, and the returned form is the corresponding fixed point sequence number obtained according to the fixed point sequence in C, as shown in formula (7): K=[k1,k2,k3,…,k n ] (7) According to the optimal path number K, the sub-point sequence C is reorganized to obtain a new fixed-point sequence C′; C′=[c1′,c2′,c3′,…,c n ′] (8)。 5. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: When calculating the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster, the fixed point sequence after the optimal path reorganization of each sub-point cluster is obtained by the ant colony algorithm, and the fixed point sequence is connected to form a closed loop. At least four fixed points are required to form a closed loop between two sub-point clusters. The formation of a new closed loop is accompanied by a change in the path distance. The smaller the distance change, the better the effect. Two sub-point clusters A and B whose sequences are reorganized by the ant colony algorithm are given; <h2 style=";text-align:left;direction:ltr">A = [a1,a2,a3,…,a<h2 style=";text-align:left;direction:ltr"> m <h2 style=";text-align:left;direction:ltr"> ] (9) <h2 style=";text-align:left;direction:ltr">B=[b1,b2,b3,…,b<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> ] (10) According to the sub-point clusters of the recombined sequence, the loss function of the path distance change is calculated as shown in formula (11):

6. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: Selecting the point with the smallest distance as the connection point between two sub-point clusters includes: D is obtained according to the path distance change loss function min i and j at the position are the connection points of the two sub-point clusters. There are two connection methods, as shown below: AB=[a1,a2,…,a i ,b j ,b j-1 ,…,b1,b m ,b m-1 ,b j+1 ,a i+1 ,a i+2 ,…,a n ] <h2 style=";text-align:left;direction:ltr">AB = [a1,a2,…,a<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> ,b<h2 style=";text-align:left;direction:ltr"> j+1 <h2 style=";text-align:left;direction:ltr"> ,b<h2 style=";text-align:left;direction:ltr"> j+2 <h2 style=";text-align:left;direction:ltr"> ,…,b<h2 style=";text-align:left;direction:ltr"> m <h2 style=";text-align:left;direction:ltr"> b1, b2,…, b<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> ,a<h2 style=";text-align:left;direction:ltr"> i+1 <h2 style=";text-align:left;direction:ltr"> ,a<h2 style=";text-align:left;direction:ltr"> i+2 <h2 style=";text-align:left;direction:ltr"> ,…,a<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> ] Specific selection situation according to The value in is determined.

7. The flight trajectory optimization method for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony according to claim 1 is characterized in that: Arrange and combine the connection modes between sub-point clusters, select the connection mode with the shortest overall path distance, and generate the final path connection mode. Two sub-point clusters can generate a closed loop. The forms of multiple sub-point clusters generating closed loops include: Two sub-point clusters generate a closed loop, which generates a new closed loop and the third sub-point cluster generates a new closed loop, and so on, and finally generates an overall multi-point coverage closed loop path. There are k sub-point clusters, such as C={C1,C2,…,C k } C1,C2→C′ C′,C3→C′ … C′,C k →C′ According to this method, the generated types are shown in formula (12): n=(k-1)! (12) Select the generation method with the smallest total path, that is, the optimal total path.

8. A flight trajectory optimization system for multi-point coverage of unmanned aerial vehicles based on Kmeans-ant colony, characterized in that: It includes a sub-point clustering module, an arrangement module, and a path connection mode calculation module; The sub-point clustering module is used to generate feature information according to the coordinate position of the fixed point; Kmeans clustering is performed according to the feature information of the fixed point to divide multiple fixed points into multiple sub-point clusters; The arrangement module is used to obtain the optimal path for a single sub-point cluster among multiple sub-point clusters through the ant colony algorithm, and arrange the fixed points that are passed in sequence in the single sub-point cluster; The path connection method calculation module is used to calculate the distance between two adjacent fixed points in one sub-point cluster and two adjacent fixed points in another sub-point cluster among multiple sub-point clusters; select the point with the smallest distance as the connection point between the two sub-point clusters, arrange and combine the connection methods between the sub-point clusters, select the connection method with the shortest overall path distance, and generate the final path connection method.

9. A computer device, characterized in that: It includes a processor and a memory, the memory is used to store a computer executable program, the processor reads part or all of the computer executable program from the memory and executes it, and when the processor executes part or all of the computer executable program, it can implement the flight trajectory optimization method for multi-point coverage of a drone based on Kmeans-ant colony as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored in a computer-readable storage medium. When the computer program is executed by a processor, the flight trajectory optimization method for multi-point coverage of a drone based on Kmeans-ant colony can be implemented as described in any one of claims 1 to 7.