A method for tracking multiple targets of a drone swarm based on a graph attention network

By using a graph attention network-based approach, the problem of appearance feature failure caused by occlusion in UAV swarm tracking is solved by utilizing topological features and interaction information within the swarm, thus achieving higher tracking accuracy.

CN118506209BActive Publication Date: 2026-11-27ROCKET FORCE UNIV OF ENG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410483490.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2026-11-27
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

Existing drone swarm tracking methods cannot effectively utilize appearance features, especially when obstructed, making it difficult to accurately track targets within the drone swarm.

Method used

A graph attention network-based approach is adopted, which utilizes the topological features and interaction information within the bee colony to describe the internal topological features of the bee colony through graph structure, and uses graph attention neural network to analyze the graph structure, extract the features within the colony, and realize multi-target tracking.

Benefits of technology

It effectively solves the problem that appearance features cannot function during drone swarm tracking under obstructed conditions, achieving higher tracking accuracy and effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506209B_ABST
    Figure CN118506209B_ABST
Patent Text Reader

Abstract

The application relates to a UAV swarm multi-target tracking method based on a graph attention network, which can fully utilize the topological features and interaction information in the swarm, uses a graph structure to describe the internal topological features of the swarm, and then uses a graph attention neural network to analyze the graph structure and extract the features in the swarm, so that the objects in the swarm are well distinguished, and the problem that appearance features cannot play a role in the UAV swarm tracking process when occlusion occurs is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of drone swarm tracking technology, specifically to a multi-target tracking method for drone swarms based on graph attention networks. Background Technology

[0002] Drone swarms, as a cutting-edge technology in the development of intelligent swarms, refer to distributed and decentralized behavioral activities achieved by swarms of drones with a certain level of intelligence, simulating the dispersed, self-organizing swarm behavior strategies of biological organisms. Drone swarms possess a powerful advantage over other intelligent swarms due to their inter-swarm intelligence and individual flexibility, showing significant application prospects in both civilian and military fields. Correspondingly, the importance of efficient detection and control measures for drone swarms is increasingly prominent, making research on drone swarm detection and tracking particularly crucial.

[0003] Current tracking methods are mainly based on two paradigms: one is detection-based tracking, which treats detection and tracking as two separate tasks, performing complete detection first, and then performing identity association and trajectory matching based on the detection results; the second is to treat detection and tracking as a single task performed simultaneously. Most current tracking algorithms are general-purpose algorithms, relying heavily on appearance and motion features for trajectory matching, but this is not suitable for drone swarms. Drones in a swarm are small, exhibit significant homogeneity in appearance, and frequently experience occlusion, rendering appearance features ineffective in improving tracking performance. Summary of the Invention

[0004] To overcome at least one of the shortcomings of the prior art, this application provides a method for multi-target tracking of UAV swarms based on graph attention networks.

[0005] Firstly, a method for multi-target tracking of UAV swarms based on graph attention networks is provided, including:

[0006] Step S1: Collect a drone swarm image dataset, and train the target detector and the two-layer graph attention network based on the drone swarm image dataset to obtain the trained target detector and the trained two-layer graph attention network.

[0007] Step S2: For the current frame image in the image sequence, use the trained target detector to perform target detection, and obtain at least one detection box and the confidence of the detection box;

[0008] Step S3: Determine the high-scoring and low-scoring detection boxes based on the confidence level of the detection boxes;

[0009] Step S4: Based on the trajectory corresponding to the previous frame image, at least one estimated detection box of the current frame image is estimated using the Kalman filter estimation method.

[0010] Step S5: Calculate the intersection-union ratio (IUR) between each estimated detection box and each high-resolution detection box, and use the Hungarian algorithm based on the IUR to match each high-resolution detection box with the trajectory corresponding to the previous frame image to obtain the trajectory after one matching.

[0011] Step S6: Construct an undirected graph based on the successfully matched high-scoring detection boxes and the unmatched detection boxes; the unmatched detection boxes include low-scoring detection boxes and high-scoring detection boxes that were not successfully matched.

[0012] Step S7: Input the undirected graph into the trained two-layer graph attention network, and perform a second matching between the unmatched detection boxes and the trajectory after the first matching to obtain the trajectory after the second matching.

[0013] Step S8: If there is a high-scoring detection box that does not match the trajectory, the high-scoring detection box is used as the new target and a new trajectory is created; if there is a low-scoring detection box that does not match the trajectory, the low-scoring detection box is deleted; if there is a trajectory that does not match the detection box, it is retained for a set time and then deleted to obtain the trajectory corresponding to the current frame image.

[0014] Step S9: Determine whether the current frame image is the last frame. If not, return to step S2 and perform multi-target tracking on the next frame image in the image sequence. If yes, end.

[0015] In one embodiment, the two-layer graph attention network includes an encoding module and a decoding module. The encoding module includes two graph attention units and a first multi-head attention layer, and the decoding module includes a second multi-head attention layer and a fully connected layer.

[0016] In one embodiment, an undirected graph is constructed based on successfully matched high-scoring detection boxes and unmatched detection boxes, including:

[0017] Each successfully matched high-scoring detection box and each unmatched detection box are treated as nodes in an undirected graph; if the distance between a successfully matched high-scoring detection box and an unmatched detection box is less than a set threshold, then there is an edge between the successfully matched high-scoring detection box and the unmatched detection box.

[0018] Secondly, a multi-target tracking device for drone swarms based on graph attention networks is provided, comprising:

[0019] The training module is used to collect a dataset of drone swarm images and to train the target detector and the two-layer graph attention network based on the drone swarm image dataset, resulting in the trained target detector and the trained two-layer graph attention network.

[0020] The object detection module is used to perform object detection on the current frame image in the image sequence using a trained object detector, and obtain at least one detection box and the confidence of the detection box;

[0021] The detection box classification module is used to determine high-scoring and low-scoring detection boxes based on their confidence levels.

[0022] The detection box estimation module is used to estimate at least one estimated detection box for the current frame image based on the trajectory corresponding to the previous frame image using the Kalman filter estimation method.

[0023] The first trajectory matching module is used to calculate the intersection-union ratio between each estimated detection box and each high-scoring detection box, and based on the intersection-union ratio, the Hungarian algorithm is used to match each high-scoring detection box with the trajectory corresponding to the previous frame image once to obtain the trajectory after the first matching.

[0024] The graph construction module is used to construct an undirected graph based on successfully matched high-scoring detection boxes and unmatched detection boxes; unmatched detection boxes include low-scoring detection boxes and unmatched high-scoring detection boxes.

[0025] The secondary trajectory matching module inputs the undirected graph into the trained two-layer graph attention network, and performs a secondary matching between the unmatched detection boxes and the trajectory after the first matching to obtain the trajectory after the second matching.

[0026] The trajectory determination module, if there is a high-resolution detection box that does not match the trajectory, will use the high-resolution detection box as the new target and create a new trajectory; if there is a low-resolution detection box that does not match the trajectory, will delete the low-resolution detection box; if there is a trajectory that does not match the detection box, will retain it for a set time and then delete it, thus obtaining the trajectory corresponding to the current frame image.

[0027] The judgment module is used to determine whether the current frame image is the last frame. If not, it enters the target detection module to perform multi-target tracking on the next frame image in the image sequence. If it is, it ends.

[0028] In one embodiment, the two-layer graph attention network includes an encoding module and a decoding module. The encoding module includes two graph attention units and a first multi-head attention layer, and the decoding module includes a second multi-head attention layer and a fully connected layer.

[0029] In one embodiment, the graph building module is also used for:

[0030] Each successfully matched high-scoring detection box and each unmatched detection box are treated as nodes in an undirected graph; if the distance between a successfully matched high-scoring detection box and an unmatched detection box is less than a set threshold, then there is an edge between the successfully matched high-scoring detection box and the unmatched detection box.

[0031] Thirdly, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the aforementioned UAV swarm multi-target tracking method based on graph attention networks.

[0032] Fourthly, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the aforementioned UAV swarm multi-target tracking method based on graph attention networks.

[0033] Compared with the prior art, this application has the following beneficial effects: The multi-target tracking method of UAV swarm based on graph attention network of this application can make full use of the multi-target tracking technology of topological features and interaction information within the swarm. It uses graph structure to summarize and describe the topological features within the swarm, and then uses graph attention neural network to parse the graph structure and extract the features within the swarm, thereby achieving good differentiation of objects within the swarm. This effectively solves the problem that appearance features cannot play a role in the UAV swarm tracking process when occlusion occurs. Attached Figure Description

[0034] This application can be better understood by referring to the description given below in conjunction with the accompanying drawings, which, together with the detailed description below, are incorporated in and form part of this specification. In the drawings:

[0035] Figure 1 A flowchart of a multi-target tracking method for drone swarms based on graph attention networks according to an embodiment of this application is shown;

[0036] Figure 2 A schematic diagram of the structure of a two-layer graph attention network is shown.

[0037] Figure 3 A schematic diagram of the tracking effect is shown;

[0038] Figure 4 A structural block diagram of a drone swarm multi-target tracking device based on a graph attention network according to an embodiment of this application is shown. Detailed Implementation

[0039] Exemplary embodiments of the present application will be described below with reference to the accompanying drawings. For clarity and brevity, not all features of the actual embodiments are described in the specification. However, it should be understood that many embodiment-specific decisions can be made in the development of any such actual embodiment to achieve the developer’s specific objectives, and these decisions may vary as the embodiments differ.

[0040] It should also be noted that, in order to avoid obscuring this application with unnecessary details, only the device structure closely related to the solution according to this application is shown in the accompanying drawings, while other details that are not closely related to this application are omitted.

[0041] It should be understood that this application is not limited to the described embodiments by virtue of the following description with reference to the accompanying drawings. In this document, embodiments may be combined with each other, features may be substituted or borrowed between different embodiments, and one or more features may be omitted in one embodiment, where feasible.

[0042] This application provides a multi-target tracking method for UAV swarms based on graph attention networks. This method completely abandons the appearance features of the targets and uses the unique intra-swarm topological features combined with motion features for the tracking process. First, the graph attention network in the detector and tracker is trained using a UAV swarm dataset. Then, the image sequence to be detected is input into the detector frame by frame to obtain the target detection results. The detection boxes are divided into high-scoring boxes and low-scoring boxes according to their confidence. Kalman filtering and Hungarian algorithm are used to perform the first matching of high-scoring detection boxes. Then, a graph model is built by fully connecting the matched detection boxes and the unmatched detection boxes. The graph is input into the trained graph attention network for feature extraction. Then, decoding and matching are performed through multi-head self-attention layer, linear layer and normalization layer to achieve the final second matching and obtain the final multi-target tracking result.

[0043] Figure 1 A flowchart of a UAV swarm multi-target tracking method based on graph attention networks according to an embodiment of this application is shown. See also... Figure 1 A method for multi-target tracking of UAV swarms based on graph attention networks includes the following steps:

[0044] Step S1: Collect a drone swarm image dataset, and train the target detector and the two-layer graph attention network based on the drone swarm image dataset to obtain the trained target detector and the trained two-layer graph attention network.

[0045] Here, infrared equipment is used to acquire images of the drone swarm, and the acquired images are labeled, that is, the location information of the drones is labeled using detection boxes, and a drone swarm image dataset is constructed.

[0046] Specifically, the target detector can be YOLOv5. Here, the target detector is trained based on the drone swarm image dataset to obtain the trained target detector.

[0047] Specifically, Figure 2The diagram illustrates the structure of a two-layer graph attention network. The network includes an encoding module and a decoding module. The encoding module comprises two graph attention units (GATs) and a first multi-head attention layer. The decoding module includes a second multi-head attention layer and a fully connected layer. During training, image samples from the UAV swarm image dataset are first converted into a graph model representation. Detection boxes in the images are treated as nodes in the graph. A specific node is designated as the target node, and edges exist between the target node and its neighboring nodes. Here, neighboring nodes are those whose distance from the target node is less than a set threshold.

[0048] Step S2: For the current frame image in the image sequence, use the trained target detector to perform target detection, and obtain at least one detection box and the confidence of the detection box; here, the confidence of the detection box refers to the probability that the detection box is identified as a target.

[0049] Step S3: Determine high-scoring and low-scoring detection boxes based on the confidence level of the detection boxes. Here, a confidence threshold is set. Detection boxes with a confidence level greater than the confidence threshold are high-scoring detection boxes, and those with a confidence level greater than the confidence threshold are low-scoring detection boxes.

[0050] Step S4: Based on the trajectory corresponding to the previous frame image, at least one estimated detection box for the current frame image is estimated using the Kalman filter estimation method. Here, the trajectory corresponding to the previous frame image is the final trajectory determined after trajectory tracking of the previous frame image.

[0051] Step S5: Calculate the intersection-union ratio (IUR) between each estimated detection box and each high-resolution detection box, and use the Hungarian algorithm based on the IUR to match each high-resolution detection box with the trajectory corresponding to the previous frame image once to obtain the trajectory after one matching; here, the trajectory after one matching is the updated trajectory after matching the high-resolution detection box.

[0052] Step S6: Construct an undirected graph based on the successfully matched high-scoring detection boxes and the unmatched detection boxes; the unmatched detection boxes include low-scoring detection boxes and high-scoring detection boxes that were not successfully matched.

[0053] Here, each successfully matched high-scoring detection box and each unmatched detection box are treated as nodes in an undirected graph; if the distance between a successfully matched high-scoring detection box and an unmatched detection box is less than a set threshold, then there is an edge between the successfully matched high-scoring detection box and the unmatched detection box.

[0054] Step S7: Input the undirected graph into the trained two-layer graph attention network, and perform a second matching between the unmatched detection boxes and the trajectory after the first matching to obtain the trajectory after the second matching.

[0055] Here, the encoder in the two-layer graph attention network extracts the relative and absolute position features of nodes in the graph, and then inputs these features into the decoder for decoding and classification, achieving a secondary matching between unmatched detection boxes and successfully matched high-scoring detection boxes. Specifically, the graph is input into the encoder, and the graph attention unit extracts the neighbors of unmatched nodes according to the adjacency matrix, deleting unmatched nodes without neighbors. The decoder outputs the matching probability of each unmatched detection box with the trajectory after the first matching, and selects the trajectory with the highest matching probability as the trajectory that matches the detection box.

[0056] Step S8: If there is a high-scoring detection box that does not match the trajectory, the high-scoring detection box is used as the new target and a new trajectory is created; if there is a low-scoring detection box that does not match the trajectory, the low-scoring detection box is deleted; if there is a trajectory that does not match the detection box, it is retained for a set time and then deleted. Here, the set time can be 2-3 frames, to obtain the trajectory corresponding to the current frame image.

[0057] Step S9: Determine whether the current frame image is the last frame. If not, return to step S2 and perform multi-target tracking on the next frame image in the image sequence. If yes, end.

[0058] The UAV swarm multi-target tracking method based on graph attention network proposed in this application can make full use of the topological features and interaction information within the swarm. It uses graph structure to summarize and describe the topological features within the swarm, and then uses graph attention neural network to parse the graph structure and extract the features within the swarm, thereby achieving good differentiation of objects within the swarm. This effectively solves the problem that appearance features cannot play a role in the UAV swarm tracking process when occlusion occurs.

[0059] To further verify the effectiveness of the method proposed in this application, a self-built UAV swarm infrared dataset was used to test the proposed UAV swarm multi-target tracking method. The detection dataset used YOLOv5 format, and the tracking dataset used MOT17 format. The experiment was conducted according to the specific implementation steps, and four UAV swarm formations were tracked in this experiment. Figure 3 The diagram shows the tracking effect. Experiments show that on the self-built UAV swarm infrared dataset, MOTA achieves 89.6%, which is an improvement over conventional algorithms such as sort, deepsort, and bytetrack, and achieves better results in UAV swarm tracking.

[0060] Employing the same inventive concept as the UAV swarm multi-target tracking method based on graph attention networks, this embodiment also provides a corresponding UAV swarm multi-target tracking device based on graph attention networks. Figure 4 A structural block diagram of a UAV swarm multi-target tracking device based on a graph attention network according to an embodiment of this application is shown, including:

[0061] Training module 41 is used to collect drone swarm image datasets and train the target detector and the two-layer graph attention network based on the drone swarm image datasets to obtain the trained target detector and the trained two-layer graph attention network.

[0062] The target detection module 42 is used to perform target detection on the current frame image in the image sequence using a trained target detector to obtain at least one detection box and the confidence of the detection box.

[0063] The detection box classification module 43 is used to determine high-scoring and low-scoring detection boxes based on the confidence level of the detection boxes.

[0064] The detection box estimation module 44 is used to estimate at least one estimated detection box of the current frame image based on the trajectory corresponding to the previous frame image using the Kalman filter estimation method.

[0065] The trajectory matching module 45 is used to calculate the intersection-union ratio between each estimated detection box and each high-scoring detection box, and based on the intersection-union ratio, the Hungarian algorithm is used to match each high-scoring detection box with the trajectory corresponding to the previous frame image to obtain the trajectory after the first matching.

[0066] Graph construction module 46 is used to construct an undirected graph based on successfully matched high-scoring detection boxes and unmatched detection boxes; unmatched detection boxes include low-scoring detection boxes and unmatched high-scoring detection boxes.

[0067] The secondary trajectory matching module 47 inputs the undirected graph into the trained two-layer graph attention network, and performs secondary matching between the unmatched detection boxes and the trajectory after the first matching to obtain the trajectory after secondary matching.

[0068] The trajectory determination module 48, if there is a high-resolution detection box that does not match the trajectory, will take the high-resolution detection box as the new target and create a new trajectory; if there is a low-resolution detection box that does not match the trajectory, will delete the low-resolution detection box; if there is a trajectory that does not match the detection box, will retain it for a set time and then delete it, thus obtaining the trajectory corresponding to the current frame image.

[0069] The judgment module 49 is used to determine whether the current frame image is the last frame. If not, it enters the target detection module 42 to perform multi-target tracking on the next frame image in the image sequence. If it is, it ends.

[0070] The UAV swarm multi-target tracking device based on graph attention network in this embodiment has the same inventive concept as the UAV swarm multi-target tracking method based on graph attention network described above. Therefore, the specific implementation of this device can be found in the embodiment section of the UAV swarm multi-target tracking method based on graph attention network described above, and its technical effects correspond to the technical effects of the above method, so it will not be repeated here.

[0071] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the above-described UAV swarm multi-target tracking method based on graph attention networks.

[0072] This application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the above-described UAV swarm multi-target tracking method based on graph attention networks.

[0073] The above descriptions are merely various embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for multi-target tracking of UAV swarms based on graph attention networks, characterized in that, include: Step S1: Collect a drone swarm image dataset, and train the target detector and the two-layer graph attention network based on the drone swarm image dataset to obtain the trained target detector and the trained two-layer graph attention network. Step S2: For the current frame image in the image sequence, use the trained target detector to perform target detection to obtain at least one detection box and the confidence of the detection box; Step S3: Determine the high-scoring detection box and the low-scoring detection box based on the confidence level of the detection box; Step S4: Based on the trajectory corresponding to the previous frame image, at least one estimated detection box of the current frame image is estimated using the Kalman filter estimation method. Step S5: Calculate the intersection-union ratio (IUR) between each estimated detection box and each high-resolution detection box, and use the Hungarian algorithm based on the IUR to match each high-resolution detection box with the trajectory corresponding to the previous frame image once to obtain the trajectory after one matching. Step S6: Construct an undirected graph based on successfully matched high-scoring detection boxes and unmatched detection boxes; the unmatched detection boxes include low-scoring detection boxes and unmatched high-scoring detection boxes. Step S7: Input the undirected graph into the trained two-layer graph attention network, and perform a second matching between the unmatched detection box and the trajectory after the first matching to obtain the trajectory after the second matching. Step S8: If there is a high-resolution detection box that does not match the trajectory, the high-resolution detection box is used as the new target and a new trajectory is created; if there is a low-resolution detection box that does not match the trajectory, the low-resolution detection box is deleted; if there is a trajectory that does not match the detection box, it is retained for a set time and then deleted to obtain the trajectory corresponding to the current frame image. Step S9: Determine whether the current frame image is the last frame. If not, return to step S2 and perform multi-target tracking on the next frame image in the image sequence. If yes, end.

2. The method as described in claim 1, characterized in that, The dual-layer graph attention network includes an encoding module and a decoding module. The encoding module includes two graph attention units and a first multi-head attention layer. The decoding module includes a second multi-head attention layer and a fully connected layer.

3. The method as described in claim 1, characterized in that, The construction of an undirected graph based on successfully matched high-scoring detection boxes and unmatched detection boxes includes: Each successfully matched high-scoring detection box and each unmatched detection box are treated as nodes in an undirected graph; if the distance between a successfully matched high-scoring detection box and an unmatched detection box is less than a set threshold, then there is an edge between the successfully matched high-scoring detection box and the unmatched detection box.

4. A multi-target tracking device for UAV swarms based on graph attention networks, characterized in that, include: The training module is used to collect a dataset of drone swarm images and to train the target detector and the two-layer graph attention network based on the drone swarm image dataset, so as to obtain the trained target detector and the trained two-layer graph attention network. The target detection module is used to perform target detection on the current frame image in the image sequence using the trained target detector, and obtain at least one detection box and the confidence of the detection box; The detection box classification module is used to determine high-scoring and low-scoring detection boxes based on the confidence level of the detection boxes. The detection box estimation module is used to estimate at least one estimated detection box of the current frame image based on the trajectory corresponding to the previous frame image using the Kalman filter estimation method. A trajectory matching module is used to calculate the intersection-union ratio between each estimated detection box and each high-resolution detection box, and based on the intersection-union ratio, use the Hungarian algorithm to match each high-resolution detection box with the trajectory corresponding to the previous frame image once to obtain the trajectory after one matching. The graph construction module is used to construct an undirected graph based on successfully matched high-scoring detection boxes and unmatched detection boxes; the unmatched detection boxes include low-scoring detection boxes and unmatched high-scoring detection boxes. The secondary trajectory matching module inputs the undirected graph into the trained two-layer graph attention network and performs a secondary matching between the unmatched detection boxes and the trajectory after the first matching to obtain the trajectory after secondary matching. The trajectory determination module, if there is a high-resolution detection box that does not match the trajectory, will use the high-resolution detection box as the new target and create a new trajectory; if there is a low-resolution detection box that does not match the trajectory, will delete the low-resolution detection box; if there is a trajectory that does not match the detection box, will retain it for a set time and then delete it, thus obtaining the trajectory corresponding to the current frame image. The judgment module is used to determine whether the current frame image is the last frame. If not, it enters the target detection module to perform multi-target tracking on the next frame image in the image sequence. If it is, it ends.

5. The apparatus as described in claim 4, characterized in that, The dual-layer graph attention network includes an encoding module and a decoding module. The encoding module includes two graph attention units and a first multi-head attention layer. The decoding module includes a second multi-head attention layer and a fully connected layer.

6. The apparatus as claimed in claim 4, characterized in that, The graph construction module is also used for: Each successfully matched high-scoring detection box and each unmatched detection box are treated as nodes in an undirected graph; if the distance between a successfully matched high-scoring detection box and an unmatched detection box is less than a set threshold, then there is an edge between the successfully matched high-scoring detection box and the unmatched detection box.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the UAV swarm multi-target tracking method based on graph attention networks as described in any one of claims 1-3.

8. A computer program product, characterized in that, Includes a computer program / instruction, which, when executed by a processor, implements the UAV swarm multi-target tracking method based on graph attention networks as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Garbage type identification method and device, computer equipment and storage medium

    CN114742989A

  • Multi-target tracking method and device under aerial view angle

    CN115984586A