A UAV swarm collaborative inspection method based on automatic machine nest
The bipartite graph matching algorithm and immune algorithm are used to optimize the task allocation and parking point selection of the UAV cluster, and the entry point is used to optimize the return method under abnormal circumstances, which solves the problem of task allocation, exception handling and parking point selection in the cooperative operation of the UAV cluster. Select the problem to achieve efficient and safe drone cluster inspection.
Patent Information
- Application Number
- CN202410834875.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Problems such as task allocation, exception handling, and parking point selection in UAV cluster collaborative operations result in low efficiency, making it difficult to achieve efficient and safe cluster collaborative inspection.
The multi-machine multi-task collaborative allocation method based on the bipartite graph matching algorithm is used for optimal task allocation, and the immune algorithm is combined to determine the inspection optimization station point, and the UAV abnormal return and anti-collision method using cut-in point optimization is used in abnormal situations.
It improves the efficiency and safety of UAV cluster collaborative inspection, ensures efficient task allocation and exception handling, optimizes parking point selection, and improves overall inspection efficiency and safety.
Smart Images

Figure CN118394110B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a drone cluster collaborative inspection method based on an automatic machine nest, belonging to the technical field of drone inspection. Background Art
[0002] With the rapid advancement of science and technology, drone inspection technology has made significant breakthroughs, gradually replacing traditional manual inspection methods and becoming an important tool in many fields. Especially in key industries such as electricity, water power, and transportation, the application of drones has become more and more extensive. This new inspection tool, with its high efficiency and precision, has greatly improved the efficiency and quality of inspection work, while also reducing labor costs and safety risks.
[0003] However, although drones have achieved remarkable results in single-machine automatic inspection, as their application deepens, people have put forward higher requirements for them. Therefore, the concept of using vehicles to carry out cluster collaborative operations with drones came into being and entered the stage of promotion and application. Cluster collaborative operations mean that multiple drones can work together to complete complex inspection tasks, which will greatly improve work efficiency, shorten the inspection cycle, and improve the accuracy and comprehensiveness of data collection.
[0004] However, in actual application, people found that the coordinated operation of drone clusters is not easy. Among them, issues such as drone cluster task allocation, exception handling, and parking point selection have become difficulties that restrict its efficiency. First of all, how to reasonably allocate inspection tasks to each drone in the cluster to ensure that they can efficiently complete their respective tasks and avoid task overload or idleness is an urgent problem to be solved. Secondly, when an abnormality occurs in the execution of a drone during a mission, how to quickly and effectively handle the abnormality to ensure the stable operation of the entire cluster is also an important technical challenge. Finally, the choice of parking points is also an issue that cannot be ignored. A reasonable parking point should not only facilitate the drone to return for charging or maintenance, but also ensure the continuity and stability of cluster operations.
[0005] Therefore, how to overcome these difficulties and improve the efficiency of UAV swarm collaborative operations is an urgent problem to be solved in the current development of UAV technology. This invention is proposed under such a technical background, aiming to solve the key problems in UAV swarm collaborative operations through innovative technical means and promote the application and development of UAV technology in more fields. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a UAV cluster collaborative inspection method based on an automatic machine nest, which realizes the transformation of a single-machine inspection / manual flight mode into a multi-machine inspection / automatic flight mode, thereby ensuring and realizing a flexible, efficient and safe UAV cluster collaborative task implementation plan.
[0007] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0008] The present invention provides a UAV cluster collaborative inspection method based on an automatic machine nest, comprising:
[0009] Performing inspection based on the assigned multi-machine inspection tasks, wherein the multi-machine inspection tasks are optimally assigned by a multi-machine multi-task collaborative assignment method based on a bipartite graph matching algorithm;
[0010] After completing the assigned multi-machine inspection task, return to the designated inspection optimization station point, wherein the inspection optimization station point is determined using an inspection vehicle station point optimization model based on an immune algorithm;
[0011] Among them, when executing multi-machine inspection tasks, if abnormal working conditions are encountered, the abnormal return and collision avoidance method of the drone based on entry point optimization is activated. By calculating the optimal entry point, the drone returns to the designated inspection optimization station according to the set return procedure.
[0012] Furthermore, the multi-machine multi-task collaborative allocation method includes a single-machine optimization method and a cluster optimization method.
[0013] Furthermore, the single-machine optimization method comprises:
[0014] For drones d i Find all towers t j Input-output ratio ROI ij , the formula is as follows:
[0015] ;
[0016] In the formula: b is the power; p is the number of patrol points; The time to fly to the destination; Time to fly back; Prepare coefficients for work; Prepare conversion factors for work; is the working coefficient; D ij For drones d i To the tower t j Horizontal distance of the patrol starting point; is the horizontal distance from the drone to the tower return point;
[0017] Select the tower so that it corresponds to ROI Value for all towers ROI ij Minimum; make patrol points p Take the maximum, p Limited by b i and p j ,get:
[0018] ;
[0019] calculate ROI ij Then traverse the tower and select ROI ij The smallest tower t j Optimization completed.
[0020] Furthermore, the cluster optimization method includes:
[0021] S11, initializing the feasible top mark;
[0022] S12. Use the Hungarian algorithm to find the best matching combination of drones and tasks in the bipartite graph;
[0023] S13. If the best matching combination is not found, modify the feasible top mark according to the modification criteria of the Hungarian algorithm;
[0024] S14. Repeat steps S12 and S13 until the best matching combination is found in the bipartite graph to achieve optimal allocation of multi-machine inspection tasks.
[0025] Furthermore, if an abnormal working condition is encountered, the abnormal return collision avoidance method of the UAV based on the optimization of the entry point is started. By calculating the optimal entry point, the UAV returns to the designated inspection optimization station point according to the set return procedure, including:
[0026] If the current wind speed is greater than the set first threshold, or the rainfall is greater than the set second threshold, or the drone power meets the cut-in condition, the drone is judged to be abnormal;
[0027] The system automatically switches on, interrupts the mission being performed by the drone, and then controls the drone to return to the designated inspection optimization point according to the set return procedure.
[0028] Furthermore, the UAV power meets the cut-in condition, specifically: the UAV is at a certain position When , the following formula is satisfied:
[0029] ;
[0030] in, is the nearest suitable return point, is the current battery power of the drone, Indicates the drone is from the position The minimum amount of power required to ascend and return. Is the drone from the location The minimum amount of power required to land directly to the end, It is the amount of electricity that the drone needs to consume to travel from its current location to the appropriate return point. Redundant safety power.
[0031] Furthermore, the inspection optimization station point is determined by using an inspection vehicle station point optimization model based on an immune algorithm, including:
[0032] S21. Define the objective function and constraint conditions of the inspection vehicle station optimization model;
[0033] S22, randomly generate an initial antibody group in the feasible solution space of the patrol vehicle station optimization, encode the antibodies by real number coding, and each antibody represents a patrol vehicle station solution;
[0034] S23, based on the objective function of the inspection vehicle station optimization model, calculating the affinity of the antibody group;
[0035] S24, based on the calculated affinity of the antibody group, retaining antibodies whose affinity to the antigen is within a set range and storing them in memory cells;
[0036] S25, judging whether the termination condition is met, if so, stopping the iteration, otherwise continuing the optimization;
[0037] S26, using immune operators to perform selection, crossover and mutation operations on the antibody group to generate a new antibody group, where the new antibodies in the new antibody group represent a new patrol vehicle stationing solution;
[0038] S27. Repeat steps S22 to S26 until the best stationary point solution that meets the termination condition is found.
[0039] Furthermore, the objective function of the inspection vehicle station optimization model is:
[0040] ;
[0041] In the formula, represents the objective function, c i Represents the geographical environment coefficient of the inspection vehicle station. Indicates iThe environmental weight near the inspection tower is: Indicates i The task allocation weight of each drone; n Indicates the number of inspected towers. Indicates the coordinates of the inspection vehicle in the north-south direction. Indicates the coordinates of the inspection vehicle in the east-west direction, Indicates the coordinates of the inspection vehicle station in the north-south direction. Indicates the coordinates of the inspection vehicle's station in the east-west direction.
[0042] Furthermore, the constraints of the inspection vehicle station optimization model are:
[0043] ;
[0044] ;
[0045] .
[0046] Furthermore, the method of encoding the antibody by real number encoding includes:
[0047] Set k The antibodies are , its weight That is, the first i The position coordinates of the stationary points.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The present invention provides a UAV cluster collaborative inspection method based on an automatic machine nest, which ensures and realizes a flexible, efficient and safe UAV cluster collaborative task implementation plan. Specifically, it proposes a multi-machine multi-task collaborative allocation method based on a bipartite graph matching algorithm to solve the problem of reasonably dividing the cluster inspection tasks on the basis of optimizing the single-machine tasks before and during the execution of the UAV cluster tasks, and improves the actual execution efficiency of the global airspace collaborative planning of the UAV cluster; proposes a UAV abnormal return anti-collision method based on entry point optimization to solve the problem of how to control the cluster to achieve anti-collision landing in a complex inspection environment in emergency situations such as low power or body failure, and improve the safety of the UAV cluster returning for charging or maintenance; comprehensively considers the geographical environment and the cluster tasks, and proposes a patrol vehicle station optimization method that considers multiple factors of complex geographical environment and cluster coordination, which solves the problem of how to determine the optimal stationing point of the patrol vehicle to maximize the patrol efficiency of the cluster, and improves the efficiency of the UAV cluster in performing patrol tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1It is a framework diagram of a drone cluster collaborative inspection method based on an automatic machine nest provided by an embodiment of the present invention;
[0051] Figure 2 is a bipartite graph for cluster collaborative task allocation provided by an embodiment of the present invention;
[0052] Figure 3 is an initially generated bipartite subgraph provided by an embodiment of the present invention;
[0053] Figure 4 is a bipartite subgraph after an augmented path has been found for X1 provided by an embodiment of the present invention;
[0054] Figure 5 The bipartite graph after the top mark is modified for finding the X2 augmented path provided by the embodiment of the present invention;
[0055] Figure 6 is a bipartite graph after an augmented path has been found for X2 provided by an embodiment of the present invention;
[0056] Figure 7 is a bipartite graph after an augmented path has been found for X3 provided by an embodiment of the present invention;
[0057] Figure 8 is a bipartite graph after an augmented path has been found for X4 provided by an embodiment of the present invention;
[0058] Fig. 9 It is a schematic diagram of the tower task benefits assigned to each drone provided by an embodiment of the present invention;
[0059] Fig.10 is a schematic diagram of an inspection route provided by an embodiment of the present invention;
[0060] Fig.11 is a schematic diagram of the selection of the entry point and the entry method provided by the embodiment of the present invention;
[0061] Fig.12 is a corresponding relationship diagram of the immune algorithm provided by an embodiment of the present invention;
[0062] Fig.13 This is a flow chart of the immune algorithm provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0064] Embodiment 1: This embodiment introduces a drone cluster collaborative inspection method based on an automatic machine nest, including:
[0065] Performing inspection based on the assigned multi-machine inspection tasks, wherein the multi-machine inspection tasks are optimally assigned by a multi-machine multi-task collaborative assignment method based on a bipartite graph matching algorithm;
[0066] After completing the assigned multi-machine inspection task, return to the designated inspection optimization station point, wherein the inspection optimization station point is determined using an inspection vehicle station point optimization model based on an immune algorithm;
[0067] Among them, when executing multi-machine inspection tasks, if abnormal working conditions are encountered, the abnormal return and collision avoidance method of the drone based on entry point optimization is activated. By calculating the optimal entry point, the drone returns to the designated inspection optimization station according to the set return procedure.
[0068] like Figure 1-Figure 13 As shown, the application process of the drone cluster collaborative inspection method based on the automatic machine nest provided in this embodiment specifically involves the following steps:
[0069] In order to solve the problems of collision, interference, unreasonable task arrangement and so on in the current multi-machine inspection process, a drone cluster collaboration technology based on multi-dimensional airspace management is proposed. This technology can greatly improve the efficiency of power transmission line inspection while ensuring the safe operation of drone groups in the same airspace. This technology has the following technical key points:
[0070] (1) Swarm task allocation: Before and during the UAV swarm’s mission execution, how to reasonably divide the swarm’s inspection tasks based on optimizing the tasks of individual aircraft determines the actual execution efficiency of the UAV swarm’s global airspace collaborative planning.
[0071] (2) Anti-collision during drone swarm return: In emergency situations such as low battery or aircraft failure, how to control the drone swarm to achieve anti-collision landing in complex inspection environments determines the safety of the drone swarm returning for charging or maintenance.
[0072] (3) Inspection vehicle stationing point optimization: Taking into account the geographical environment and fleet mission, how to determine the optimal inspection vehicle stationing point to maximize the fleet inspection efficiency determines the efficiency of the drone fleet in performing inspection tasks.
[0073] In view of the above technical key points, a multi-machine multi-task collaborative allocation method based on bipartite graph matching algorithm, a UAV abnormal return anti-collision method based on entry point optimization, and an inspection vehicle station optimization method considering complex geographical environment and multiple factors of fleet coordination are proposed. Figure 1 As shown;
[0074] 1. Task Allocation - Multi-machine Multi-task Collaborative Allocation Method Based on Bipartite Graph Matching Algorithm
[0075] In order to reasonably optimize the allocation of multi-UAV inspection tasks, a multi-machine multi-task collaborative allocation method based on bipartite graph matching algorithm is adopted to optimally allocate multi-UAV inspection tasks.
[0076] The multi-machine multi-task optimization collaborative allocation method includes a two-layer structure of single-machine optimization and cluster optimization.
[0077] (1) Lower layer structure: single machine task optimization management
[0078] For drones d i Find all the towers that can be inspected t j Input-output ratio ROI ij , the formula is as follows:
[0079] ;
[0080] In the formula: b is the power; p is the number of patrol points; The time to fly to the destination; Time to fly back; Prepare coefficients for work; Prepare conversion factors for work; is the working coefficient; D ij For drones d i To the tower t j Horizontal distance of the patrol starting point; is the horizontal distance from the drone to the tower return point;
[0081] For drones d i Find all the towers that can be inspected t j of ROI ij , the tower needs to be selected so that it corresponds to ROI Value for all towers ROI ij Minimum; To obtain the minimum ROI ij , the patrol points are required p Take the maximum, p Limited by b i and p j ;
[0082] ;
[0083] in, b toTo fly to the tower, b back The power consumption for returning from the tower, b work It is the power consumption of patrol point. It can be deduced that:
[0084] ;
[0085] calculate ROI ij Then traverse the tower and select ROI ij The smallest tower t j That's it.
[0086] (2) Superstructure: Cluster collaboration and global optimal task allocation
[0087] On the basis of single-machine task management, this layer adopts a bipartite graph matching algorithm to optimize the allocation of cluster tasks with the goal of achieving optimal global performance. This can reduce overall inspection time, improve inspection efficiency, reduce total power consumption, and save resource costs.
[0088] like Figure 2 As shown, on the left side of the figure X The set is the number of drones that can be assigned tasks. M ; Right side of the picture Y The set is the inspectable towers, the number is N If the drone d i The power is enough to reach the tower j ,point X i and Y j Connect an edge with a weight of ROI ij If the drone d i The power is not enough to reach the tower j There is no edge connecting the two points.
[0089] The bipartite graph algorithm is used for task matching. The optimal solution for the global task allocation of the cluster is the maximum weight matching (minimum weight matching / minimum cost flow) of the bipartite graph. The Kuhn-Munkres algorithm (KM algorithm) is used to perform maximum weight matching on the bipartite graph. X Set and Y If the number of points in the set is equal, "fill zero" for cluster coordination: add empty points to the side with fewer points to make the number of points on both sides equal, and set the weight of the "empty point" side to infinity. To reduce the complexity of the KM algorithm, YVertex A relaxation function, initialized to infinity when starting to find an augmenting path. In the process of finding an augmenting path, check the edge ( i , j ), if it is not in the equal subgraph, let the relaxation function become the original value and X i + Y j - ROI ij The smaller value of .
[0090] In the case of any number of drones, this method can obtain an inspection plan with the best efficiency. The time complexity of the calculation is O( N 3 ), N The actual calculation time does not exceed 0.1s, which can intelligently plan the inspection tasks of each drone without affecting the system performance, improve inspection efficiency, and save resource costs. In the future, it can even realize the real-time allocation of inspection tasks, which can further improve the inspection efficiency.
[0091] The following is a simple example of using the KM algorithm to find the maximum weight matching of a bipartite graph:
[0092] For the sake of simplicity, the relaxation amount used to quickly update the top mark in the improved KM algorithm is not reflected in the following simple example, which does not affect the demonstration of the overall algorithm idea, and the drone X Tasks with towers Y The edge weight between ROI Change to income W ( W It can be understood as 1 / ROI ), the maximum benefit is ROI Minimum. At this time, the adjacency list of the weighted bipartite graph is shown in Table 1.
[0093] Table 1 Adjacency list of weighted bipartite graph
[0094] .
[0095] There are 4 drones and 5 tower missions in total. X 4 The "empty points" filled in by the KM algorithm.
[0096] Initial drone X The top mark is equal to the edge weight of the edge connected to the point ROI ij Maximum value, tower task Y The top mark is equal to 0.
[0097] Since each vertex will have at least one matching point, the greedy algorithm must give priority to the edge with the largest weight on the vertex. The generated bipartite subgraph in the initial case is as follows Figure 3 shown.
[0098] The following is the process of KM generating a perfect match:
[0099] (1) From X 0 Find the augmenting path and find X 0 -Y 4 , because satisfying A i +B j =W ij Only Y 4 , At this time Y 4 No match, so found X 0 -Y 4 ,like Figure 3 shown.
[0100] (2) Find an augmenting path from X1, which satisfies A 1 +B j =W ij Only Y 4 ,but Y 4 has been matched, so from X 1 No augmenting path can be found, that is, new edges must be added to the bipartite graph so that X 1 It can find its match while maximizing the sum of weights.
[0101] because X 1 Leading to Y 4 Y 4 has been X 0 matches, so there are two possibilities: one is for X 0Find a new matching point and Y 4 Give X 1, or for X 1 Find a new matching point. At this time, modify the top mark to add a new edge.
[0102] Modification method: Search is completed and the visited paths are recorded X , Y point, but cannot find an augmenting path, set the path XThe vertex set is S , Y The vertex set is T , for all S Points in X i and not T Points in Y j ,calculate d =min{ A i + B j -W ij}, then adjust A i and B j :For those who have visited X Vertex, subtract its feasible mark d , for all visited Y Vertex, increase its feasible mark d ,because S Centralized X The top mark is reduced instead of T In Y The top mark remains unchanged, which is equivalent to the two sets A i +B j It has become smaller, that is, there are new edges that can be added to the bipartite graph, and the modified top label is still a feasible top label.
[0103] In this example, S={X 0 , X 1 }, T={Y 4 } , find the minimum value d=A i +B j -W ij =2 , and the new binary molecular diagram is obtained as Figure 4 shown.
[0104] Re-search for the augmentation path for X1 and find X 1 -Y 0 (This process is a cyclic process until the matching is terminated.) We can see that the weight of the new matching subgraph is 9+6=15, which is exactly less than the weight of the original illegal matching subgraph, 9+8=17. d =2.
[0105] (3) Next, X 2 starts and cannot find an augmenting path. The path it has taken is as follows Figure 4 As shown in the route. The illegal matching subgraph formed: X 0 -Y 4 , X 1 -Y 0 and X 2 -Y 0 The sum of the weights is 22. On this path, as long as S={X 0 ,X 1 ,X 2 } The problem can be solved by finding a new match for any vertex in d:
[0106] ;
[0107] The binary molecular graph after finding the augmenting path is as follows Figure 5 shown.
[0108] Re- X 2Find the augmented path and you will get the path: X 2 -Y 0 => Y 0 -X 1 => X 1 -Y 4 => Y 4 -X 0 => X 0 -Y 2 , the new weights of these vertices in the new matching subgraph are 21; the new matching subgraph is as follows Figure 6 shown.
[0109] (4) The same logic applies, such as Figure 7 and Figure 8 As shown, until X 4 Find a match.
[0110] Finally, all drones were matched with their respective tower tasks:
[0111] X 0 -Y 2 , X 1 -Y 4 , X 2 -Y 1 , X 3 -Y 0 , X 4 -Y 3 (empty points are ignored)
[0112] like Fig. 9 As shown in the shaded part, the total profit is the largest at this time, which is 6+8+5+6=25. ROI The sum is the smallest.
[0113] The above can be summarized into the following steps:
[0114] (1) Initialize the feasible top mark;
[0115] (2) Apply the Hungarian algorithm to find the best matching combination of drones and tasks in the bipartite graph;
[0116] (3) If the best matching combination is not found, modify the feasible top mark according to the modification criteria of the Hungarian algorithm;
[0117] (4) Repeat steps (2) and (3) until the best matching combination is found in the bipartite graph, achieving the optimal allocation of multi-machine inspection tasks.
[0118] The following is an experimental data. Using the algorithm described in this section to assign tasks yields better results.
[0119] There are three drones in the state of being assigned tasks, and four towers to be inspected. Their longitude and latitude coordinates with the vehicle are shown in Table 2.
[0120] Table 2 Latitude and longitude of drones, towers, and inspection vehicles
[0121]
[0122] The remaining inspection points of the four towers are 23, 23, 23, and 17 respectively. ROI , as shown in Table 3.
[0123] Table 3 ROI of drones and towers
[0124]
[0125] The results obtained by the bipartite graph matching algorithm are: drone 1 matches tower 2, drone 2 matches tower 3, and drone 3 matches tower 1. The time consumption is 0.50013165 and the power consumption is 67.70377462.
[0126] Two other task allocation ideas are compared with the bipartite graph matching method:
[0127] Method a: For the drones that can currently join the new task, greedily select a task with the highest expected current benefit to execute, but do not consider the overall planning. The results are: drone 1 matches tower 1, drone 2 matches tower 4, and drone 3 matches tower 3. It takes 1.64093709 seconds and consumes 70.38733896 seconds of electricity.
[0128] Method b: For the drones that can currently join the new task, the strategy of randomly assigning feasible tasks is adopted under the premise of sufficient power. The results are: drone 1 matches tower 3, drone 2 matches tower 2, and drone 3 matches tower 1. The time consumption is 0.55552509 and the power consumption is 68.77724848.
[0129] The total time consumption of the matching results of the bipartite graph matching algorithm is 30.5% and 90.0% of that of method a and method b, respectively, and the total power consumption is 96.2% and 98.4% of that of method a and method b, respectively.
[0130] 2. Exception handling - UAV abnormal return anti-collision method based on entry point optimization
[0131] When a drone is performing an inspection mission, it needs to return home as soon as possible when encountering abnormal conditions such as sudden weather changes or low battery. In a complex inspection environment, the conventional method of ascending and returning to the home position of a drone has a high risk of collision.
[0132] A UAV abnormal return collision avoidance method based on entry point optimization is proposed. This method can intervene in time when the UAV encounters an abnormality, allowing the UAV to return in a safe manner.
[0133] Assume that a patrol line is Fig.10 As shown, the return point is marked and recorded in the inspection route after the collection personnel confirm the return safety during the inspection route collection operation. The drone can directly ascend and return at the return point.
[0134] For the selection of entry points and entry methods, the design flow chart is as follows Fig.11 shown.
[0135] In case of sudden abnormal conditions such as heavy rain, strong wind, thunder and lightning, the drone needs to be safely returned as soon as possible. Since the system is equipped with a weather station, it can obtain weather data. When the weather changes and is not suitable for flying, the system will control the drone in a reliable way to complete the return.
[0136] The maximum wind speed of the drone selected by this system is 12m / s, and the waterproof level is IP43. Combined with the actual test situation, the entry rules set by this system include:
[0137] (1) The current wind speed is greater than 10m / s;
[0138] (2) The current rainfall is greater than 9 mm.
[0139] If any of the above conditions is met, the system will automatically switch in.
[0140] For abnormal situations such as low battery return, we first define It is a three-dimensional location point including longitude, latitude, and relative takeoff altitude.
[0141] Indicates the drone is from the position The minimum amount of power required to ascend and return. Indicates the drone is from the position The distance flown from ascending to returning to landing is calculated as shown in the following formula.
[0142] ;
[0143] Is the drone from the location The minimum amount of power required to land directly to the end, For location Height from the ground is as shown below.
[0144] ;
[0145] It is the amount of electricity that the drone needs to consume to travel from its current location to the appropriate return point. For location The distance along the inspection route to the nearest suitable return point in the forward or reverse direction is shown in the following formula.
[0146] ;
[0147] The autonomous entry point of the UAV flight control for low battery is at a certain position m, the current battery level of the UAV Satisfies the following formula:
[0148] ;
[0149] The flight control autonomous entry method does not take into account the problem of the appropriate return point. It is necessary to go to the appropriate return point and complete the ascent and return under the conditions of ensuring the safety of the path and sufficient power.
[0150] The system's entry conditions for low power are designed as follows:
[0151] The drone is at a certain location Time (the nearest suitable return point is ) satisfies the following formula.
[0152] ;
[0153] In this project, redundant safety power =5, coefficient Represents the distance coefficient, Indicates the height coefficient, Represents the distance coefficient. In the embodiment, the parameters are set as follows: =0.03, =0.01 , =0.02; Indicates the drone is from the position Minimum power required for ascent and return Is the drone from the location The minimum amount of power required to land directly to the end.
[0154] When the cut-in conditions are met, the system will automatically cut in. The cut-in method is to interrupt the mission performed by the drone, and then control the drone to move forward along the inspection route or retreat to the nearest suitable return point, and then ascend and return.
[0155] There is a risk of collision when flying straight back and forth to the waypoint, and the inspection route used by the system is a known safe and reliable route. Assuming that when UAV A inspects a certain position, it meets the cut-in condition, the system will enter abnormal return processing. The system controls the UAV to terminate the current inspection task, follow a safe way to a closer suitable return point, and then ascend and return. In this example, the cut-in position is Fig.10 The drone’s location and safe route are as follows: Fig.10 Shown in bold orange.
[0156] Table 4 gives a comparison of the test data before and after the proposed cut-in method. It can be seen that after using the method proposed in this section, although the number of midway returns has increased due to the influence of test conditions, the number of times that manual intervention is required for return has been reduced to zero. It can be considered that the safety of return has been improved.
[0157] Table 4 Comparison of test data before and after the cut-in method
[0158]
[0159] 3. Optimization of stationing point: an optimization method for patrol vehicle stationing points considering complex geographical environment and multiple factors of fleet coordination
[0160] Considering the actual geographical conditions and multi-machine coordination of the inspection work, it is necessary to model the optimal stopping point of the inspection vehicle, make suggestions for the stopping point, and consider the surrounding environment to determine the actual optimal stopping point.
[0161] for n Inspection towers, assuming that each tower is a positioning point and uses relative geographic coordinates P i To express, n The relative geographic coordinates of the inspection tower and the drone during the inspection can be expressed as:
[0162] , the position coordinates of the inspection vehicle are expressed as .
[0163] (1) Objective function
[0164] n The total distance between the inspection tower and the inspection vehicle can be expressed as:
[0165] ;
[0166] n The inspection towers are inspected by 4 drones. Considering the environmental factors near the inspection towers, the heavy workload of the drones, and the geographical environment factors of the inspection vehicle station, the objective function of the constructed model is:
[0167] ;
[0168] In the formula, represents the objective function, c i Represents the geographical environment coefficient of the inspection vehicle station. Indicates i The environmental weight near the inspection tower is: Indicates i The task allocation weight of each drone; n Indicates the number of inspected towers. Indicates the coordinates of the inspection vehicle in the north-south direction. Indicates the coordinates of the inspection vehicle in the east-west direction, Indicates the coordinates of the inspection vehicle station in the north-south direction. It indicates the coordinates of the inspection vehicle station in the east-west direction. Assuming that there are no obstacles near the inspection tower, the drones are assigned tasks equally, that is, , .
[0169] (2) Constraint function
[0170] Considering that the location coordinates where the inspection vehicle can stop during actual operation are restricted by factors such as the geographical environment, the constraints that need to be met are:
[0171] ;
[0172] ;
[0173] .
[0174] Obviously, the constructed model is a non-convex and non-smooth mixed integer nonlinear programming model with complex constraints. It has the characteristics of discontinuity, high dimensions, and many local extreme points. Solving such problems is prone to fall into local optimal solutions and fail to obtain the global optimal solution.
[0175] (3) Example solution
[0176] As an emerging intelligent algorithm, the immune algorithm uses the diversity and maintenance mechanism of the immune system to maintain the diversity of the population, performs antibody evaluation, crossover and mutation operations based on the affinity of individuals, avoids the algorithm from quickly falling into the local optimum, and finally obtains the global optimal solution, which can solve such problems well.
[0177] Similar to the general search algorithm for optimization problems, the antigen in the immune algorithm represents the objective function and constraints of the optimization problem, the antibody corresponds to the optimization solution, and the affinity between the antigen and the antibody represents the degree of match between the solution and the objective function, such as Fig.12 shown.
[0178] The immune algorithm is used for optimization and solution. The core process includes:
[0179] (1) Selection of initial antibodies: The initial antibody group is randomly selected from the memory bank, using a simple real number encoding method. Each site selection scheme is an antibody of length P, and each antibody represents the location coordinates of the inspection vehicle. For each antibody, the location of its station point must meet the constraints.
[0180] (2) Antibody diversity evaluation: including the calculation of affinity between antibody and antigen, the calculation of affinity between antibodies, and the calculation of antibody concentration, which are introduced below.
[0181] The affinity between the antibody and the antigen indicates the degree of recognition of the antibody to the antigen, which is represented by the fitness function fit. The calculation formula is as follows: the smaller the objective function value, the larger the fitness function.
[0182] ;
[0183] The affinity between antibodies reflects the similarity between antibodies, which is expressed as inter-antibody affinity. The calculation formula is as follows:
[0184] ;
[0185] Where: is the number of bits that are the same in antibody v and antibody s, and L is the length of the antibody.
[0186] In the immune algorithm, the expected reproduction probability of an individual is the probability of being selected. The calculation formula of the expected reproduction probability is as follows:
[0187] ;
[0188] Where: is a constant and C is the antibody concentration.
[0189] The antibody concentration is the proportion of similar individuals in a population, and its calculation formula is as follows:
[0190] ;
[0191] ;
[0192] Where: is the total number of antibodies, e is the antibody similarity evaluation parameter, which is a pre-set value. =1 means the two antibodies are similar, otherwise they are not similar. The higher the individual fitness, the greater the expected reproduction probability; the greater the individual concentration, the smaller the expected reproduction probability. In this way, while promoting individuals with high fitness, it suppresses individuals with high concentration, thus ensuring the diversity of individuals.
[0193] It is worth noting that when the immune algorithm suppresses individuals with high concentrations, individuals with the highest affinity to the antigen may also be suppressed due to their high concentration, which may lead to missing the optimal solution. Therefore, an elite retention strategy is adopted. The specific approach is that each time the memory bank is updated, the individuals with the highest affinity to the antigen are first saved in the memory bank, and then the remaining excellent individuals in the group are saved in the memory bank according to the expected reproduction probability.
[0194] (3) Immune operation: Immune operation includes selection, crossover and mutation. The selection of individuals is carried out by roulette selection mechanism, and the probability of an individual being selected is the expected reproduction probability; the crossover operation is carried out by single-point crossover method; the mutation operation is carried out by randomly selecting mutation sites.
[0195] In summary, the specific implementation steps of solving the patrol vehicle station optimization problem with complex geographical environment and multiple factors of fleet coordination based on immune algorithm are as follows:
[0196] (1) Define the objective function and constraints of the inspection vehicle station optimization model.
[0197] (2) In the feasible solution space of patrol vehicle stationing optimization, an initial antibody group is randomly generated and the antibodies are encoded using real number coding. Each antibody represents a patrol vehicle stationing solution. k The antibodies are , its weight That is, the first i The position coordinates of the stationary points.
[0198] (3) Based on the objective function of the inspection vehicle station optimization model, the affinity of the antibody group is calculated.
[0199] (4) Based on the calculated affinity of the antibody population, antibodies with an affinity to the antigen within a set range are retained and stored in memory cells.
[0200] (5) Determine whether the termination condition is met. If so, stop the iteration; otherwise, continue the optimization.
[0201] (6) Using immune operators to perform selection, crossover and mutation operations on the antibody group to generate a new antibody group. The new antibodies in the new antibody group represent new inspection vehicle stationing solutions.
[0202] (7) Repeat steps (2)-(6) until the optimal stationary point solution that meets the termination conditions is found.
[0203] The flowchart of the immune algorithm is as follows: Fig.13 shown.
[0204] The optimal solution of the stationary point is obtained by solving the immune algorithm, and the optimal stationary point result is obtained by combining the simplified actual tower line model.
[0205] Without considering the existence of obstacles at the stationary point, the optimal stationary point and the suboptimal stationary point are obtained; after considering the weights of various influencing factors, the suboptimal stationary point is selected as the optimal solution for actual parking, making it realistic and feasible.
[0206] Taking into account the complex geographical environment and the multi-factor environment of fleet coordination, an inspection vehicle stationing optimization model based on immune algorithm was established, and multiple optional inspection optimization stationing points were proposed. The optimal stationing point was obtained by combining the actual geographical environment to improve the inspection efficiency.
[0207] 4. Application effect and conclusion
[0208] After the above technologies were added to the project, significant results were achieved in the following aspects:
[0209] (1) It realizes the automation of multi-machine multi-task allocation while ensuring flight efficiency.
[0210] Two other task allocation ideas were proposed in the test for comparison with the bipartite graph matching method:
[0211] Method a: For the drones that can currently join the new mission, the strategy of randomly assigning feasible tasks is adopted under the premise of sufficient power.
[0212] Method b: For the drones that can currently join the new task, greedily select a task with the highest expected current benefit to execute, but do not consider the overall planning.
[0213] The experimental comparison shows that the total inspection time of the multi-machine multi-task collaborative allocation method is 30.5% of that of method a and 90.0% of that of method b. The total power consumption is estimated to be 96.2% of that of method a and 98.4% of that of method b, respectively. The overall efficiency is improved compared with the above two methods.
[0214] (2) Reliably prevent and respond to possible interference and collisions during drone missions / abnormal return.
[0215] Through simulation tests and field tests, the proposed UAV abnormal return collision avoidance method based on entry point optimization was added, which effectively reduced the number of UAVs forced to land due to severe low battery. In addition, in all missions, it can completely avoid the intersection of routes of multiple UAVs during missions or return.
[0216] (3) Coordinate with the geographical environment to optimize the patrol vehicle stationing points and improve the overall patrol efficiency.
[0217] Experimental statistics show that, based on the multi-machine multi-task collaborative allocation method and the UAV abnormal return anti-collision method based on entry point optimization, the inspection task is performed at the optimized station point. Compared with the random selection of station points, the projection of the flight routes of multiple UAVs on the latitude and longitude map produces fewer route intersections, and the UAVs will occupy a smaller range of flight altitude upper and lower limits when flying, making them more meaningful in scenarios with certain no-fly altitudes. At the same time, the flight time and power consumption of multiple UAVs that choose to perform tasks at the optimized station point are more averaged, and have a smaller statistical variance than the random selection of station points. This also means that the longest inspection time among all UAVs will be relatively shorter, which improves the overall inspection efficiency.
[0218] This technology realizes the transformation of single-machine inspection / manual flight mode into multi-machine inspection / automatic flight mode, ensuring and realizing a flexible, efficient and safe drone cluster collaborative task implementation plan.
[0219] Example 2: This example provides a transmission line UAV inspection coordination system based on multi-dimensional airspace management, including a UAV, and the UAV adopts any one of the methods described in Example 1 when performing multi-machine inspection.
[0220] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A drone cluster collaborative inspection method based on an automatic machine nest, characterized in that: include: Performing inspection based on the assigned multi-machine inspection tasks, wherein the multi-machine inspection tasks are optimally assigned by a multi-machine multi-task collaborative assignment method based on a bipartite graph matching algorithm; After completing the assigned multi-machine inspection task, return to the designated inspection optimization station point, wherein the inspection optimization station point is determined using an inspection vehicle station point optimization model based on an immune algorithm; Among them, in the process of executing multi-machine inspection tasks, if an abnormal working condition is encountered, the abnormal return collision avoidance method of the drone based on the optimization of the entry point is started, and the optimal entry point is calculated to make the drone return to the designated inspection optimization station point according to the set return procedure; The multi-machine multi-task collaborative allocation method includes a single-machine optimization method and a cluster optimization method; The single-machine optimization method comprises: For drones d i Find all towers t j Input-output ratio ROI ij , the formula is as follows: ; In the formula: b is the power; p is the number of patrol points; The time to fly to the destination; Time to fly back; Prepare coefficients for work; Prepare conversion factors for work; is the working coefficient; D ij For drones d i To the tower t j Horizontal distance of the patrol starting point; is the horizontal distance from the drone to the tower return point; Select the tower so that it corresponds to ROI Value for all towers ROI ij Minimum; make patrol points p Take the maximum, p Limited by b i and p j ,get: ; calculate ROI ij Then traverse the tower and select ROI ij The smallest tower t j Complete optimization; The cluster optimization method comprises: S11, initializing the feasible top mark; S12. Use the Hungarian algorithm to find the best matching combination of drones and tasks in the bipartite graph; S13. If the best matching combination is not found, modify the feasible top mark according to the modification criteria of the Hungarian algorithm; S14, repeating steps S12 and S13 until the best matching combination is found in the bipartite graph to achieve optimal allocation of multi-machine inspection tasks; The inspection optimization station point is determined by using an inspection vehicle station point optimization model based on an immune algorithm, including: S21. Define the objective function and constraint conditions of the inspection vehicle station optimization model; S22, randomly generate an initial antibody group in the feasible solution space of the patrol vehicle station optimization, encode the antibodies by real number coding, and each antibody represents a patrol vehicle station solution; S23, based on the objective function of the inspection vehicle station optimization model, calculating the affinity of the antibody group; S24, based on the calculated affinity of the antibody group, retaining antibodies whose affinity to the antigen is within a set range and storing them in memory cells; S25, judging whether the termination condition is met, if so, stopping the iteration, otherwise continuing the optimization; S26, using immune operators to perform selection, crossover and mutation operations on the antibody group to generate a new antibody group, where the new antibodies in the new antibody group represent a new patrol vehicle stationing solution; S27, repeat steps S22 to S26 until the best stationary point solution that meets the termination condition is found; The objective function of the inspection vehicle station optimization model is: ; In the formula, represents the objective function, c i Represents the geographical environment coefficient of the inspection vehicle station, Indicates i The environmental weight near the inspection tower is: Indicates i The task allocation weight of each drone; n Indicates the number of inspected towers. Indicates the coordinates of the inspection vehicle in the north-south direction. Indicates the coordinates of the inspection vehicle in the east-west direction, Indicates the coordinates of the inspection vehicle station in the north-south direction. Indicates the coordinates of the inspection vehicle station in the east-west direction; The constraints of the inspection vehicle station optimization model are: ; ; ; In the formula, c i Represents the geographical environment coefficient of the inspection vehicle station, Indicates the coordinates of the inspection vehicle in the north-south direction. Indicates the coordinates of the inspection vehicle in the east-west direction; The method of encoding the antibody by real number encoding includes: Set k The antibodies are , its weight That is, the first i The position coordinates of the stationary points.
2. The method for collaborative inspection of drone clusters based on automatic machine nests according to claim 1 is characterized in that: If an abnormal working condition is encountered, the abnormal return collision avoidance method of the drone based on the optimization of the entry point is activated. By calculating the optimal entry point, the drone returns to the designated inspection optimization station according to the set return procedure, including: If the current wind speed is greater than the set first threshold, or the rainfall is greater than the set second threshold, or the drone power meets the cut-in condition, the drone is judged to be abnormal; The system automatically switches on, interrupts the mission being performed by the drone, and then controls the drone to return to the designated inspection optimization point according to the set return procedure.
3. The method for collaborative inspection of drone clusters based on automatic machine nests according to claim 2 is characterized in that: The UAV power meets the cut-in conditions, specifically: the UAV is at a certain location When , the following formula is satisfied: ; in, is the nearest suitable return point, is the current battery power of the drone, Indicates the drone is from the position The minimum amount of power required to ascend and return. Is the drone from the location The minimum amount of power required to land directly to the end, It is the amount of electricity that the drone needs to consume to travel from its current location to the appropriate return point. Redundant safety power.
Citation Information
Patent Citations
Power transmission line intelligent collaborative inspection method, device and system and storage medium
CN114779811A
Unmanned vehicle and unmanned aerial vehicle cooperative path planning method
CN115079701A
Power transmission line unmanned aerial vehicle inspection task automatic planning method, device, equipment and medium
CN117032311A
Robot-task allocation method based on KM algorithm
CN117271080A
Unmanned aerial vehicle automatic cruise system applied to forest fire prevention scene
CN117369519A
