Fast multi-target tracking method

By employing a GPU two-dimensional array to manage trajectories in multi-target tracking, and using a novel IoU to calculate the cost matrix and Auction Algorithm, the problem of low computational efficiency in existing technologies is solved, achieving efficient computation for real-time multi-target tracking.

CN114742860BActive Publication Date: 2024-10-01DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210280455.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-10-01
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

Existing multi-target tracking methods have bottlenecks in computational efficiency, especially traditional correlation algorithms, which have high time complexity on CPUs and are difficult to meet real-time tracking requirements.

Method used

The system employs a GPU two-dimensional array to manage the tracking trajectory, uses a novel IoU to calculate the cost matrix, and performs asymmetric allocation through the Auction Algorithm. Combined with linear weighted trajectory updates, it replaces Kalman filtering to improve efficiency.

Benefits of technology

Real-time multi-target tracking was achieved, reaching 57 FPS on embedded devices and 191 FPS on desktop devices, significantly improving computing speed and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742860B_ABST
    Figure CN114742860B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of computer vision technology and provides a fast multi-target tracking method, which can be combined with an advanced detector YOLOX for multi-target tracking. In Fast, we propose two components, a simple linear weighting that can be used to replace the Kalman filter; and a new costmatrix with a new IoU. In terms of efficiency, we creatively propose to use GPU two-dimensional arrays to manage tracking trajectories, which can support efficient parallel modification; we also use the AuctionAlgorithm of asymmetric allocation problems as the association strategy of Fast for the first time. Fast can reach 57FPS on the embedded CUDA device Jetson AGXXavier; it can reach 191FPS on the GTX 1080Ti.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer vision and relates to a fast multi-target tracking method. Background Art

[0002] Tracking-by-detection has always been the mainstream mode in multi-target tracking. In recent years, with the rapid development of target detection, more and more general object detectors can achieve both high recall and high precision. Therefore, more and more tracking methods begin to use powerful detectors (such as RetinaNet, CenterNet, YOLOX) to obtain higher tracking performance. Before ByteTrack(Zhang, Y., Sun, P., Jiang, Y., Yu, D., Yuan, Z., Luo, P., Liu, W., Wang, X.: Bytetrack: Multi-object tracking by associating every detection box. In: arXiv, 2021), many adopted RetinaNet(Lin, TY, Goyal, P., Girshick, R., He, K., Dolla′r, P.: Focal loss for dense object detection. In: ICCV. pp. 2980–2988, 2017) or CenterNet(Zhou, X., Wang, D., P.:Objectsaspoints.arXivpreprintarXiv:1904.07850,2019) chooses to directly filter low-scoring detection boxes (confidence scores lower than 0.5), thereby removing most of the false positive boxes to ensure tracking performance because the detector has low accuracy. However, the high recall and precision of YOLOX (Ge, Z., Liu, S., Wang, F., Li, Z., Sun, J.: Yolox: Exceeding yolo series in2021.arXiv preprint arXiv:2107.08430,2021) ensure that even low-scoring detection boxes are likely to be correctly detected detection boxes. Therefore, ByteTrack achieves the current highest performance by adopting YOLOX and cascade association based on confidence scores, while ensuring simplicity and efficiency.

[0003] Association is the core of multi-target tracking, which first calculates the costmatrix between the trajectory and the detection, and then matches them according to the costmatrix. Among all the clues, the position information is the most general. Compared with appearance or feature information, the position information can be directly obtained from the general target detector without adding an additional feature extraction network or modifying the original detection network. Therefore, many methods use IoU to calculate the costmatrix. After calculating the costmatrix, the trajectory and detection are matched by an assignment strategy. This can be done by some classic linear assignment problem solutions, such as Hungarian Algorithm (Kuhn, HW: The hungarian method for the assignment problem. Naval research logistics quarterly 2 (1-2), 83–97, 1955) or LAPJV (Jonker, R., Volgenant, A.: A shortest augmenting path algorithm for dense and sparse linear assignment problems. Computing 38 (4), 325–340, 1987). For example, SORT (Bewley, A., Ge, Z., Ott, L., Ramos, F., Upcroft, B.: Simple online and realtime tracking. In: ICIP. pp. 3464–3468. IEEE, 2016) uses Hungarian Algorithm for one-time association; DeepSORT (Wojke, N., Bewley, A., Paulus, D.: Simple online and realtime tracking with a deepassociation metric. In: 2017 IEEE international conference on image processing (ICIP). pp. 688 3645–3649. IEEE, 2017) uses Hungarian Algorithm for cascade allocation; ByteTrack uses LAPJV for cascade allocation. However, the theoretical time complexity of both Hungarian Algorithm and LAPJV is O(n 3), and they are all CPU-based implementations. Here, we introduce another classic solution to the linear matching problem, called Auction Algorithm, which has a theoretical time complexity of O(log(n)) under GPU parallel acceleration. Summary of the invention

[0004] The purpose of the present invention is to provide a fast multi-target tracking method (Fast) to meet the needs of real-time multi-target tracking.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A fast multi-target tracking method comprises the following steps:

[0007] 1) Establish a GPU two-dimensional array to manage all trajectories generated during tracking. Each row in the two-dimensional array represents a trajectory. A trajectory contains position information (i.e., the coordinates of the upper left and lower right points of a horizontal box), confidence score, tracking status (tracking or lost), tracking label, and end frame number, such as Figure 1 As shown in Figure 2, in terms of efficiency, the time complexity of updating all trajectories of the two-dimensional array is O(1).

[0008] 2) Establish linear weighting to update the trajectory; in the kth frame f of a video stream k In , the updated trajectory is calculated by a pair of matched trajectories and detections (including location information, confidence score, and category label), and w is a weighted value. Among them, the original trajectory contains location information B k-1 and the confidence score S k-1 ; Detection contains location information B dk and the confidence score S dk , the updated new trajectory contains the location information B k and the confidence score S k ; The calculation formula is as follows:

[0009]

[0010] 3) Establish HIoU to calculate the IoU between a single detection and a single track, defined as follows:

[0011]

[0012] HIoU receives a detected location information B det and a trajectory position information B trk , H det and H trkRespectively represent the height of the location information of the detection and trajectory. max and min represent the maximum / minimum value between the two values. If the ratio of their heights (small height to large height) is greater than or equal to the height ratio threshold λ (default is 0.8), the IoU between them is calculated; otherwise, the result of HIoU is 0;

[0013] 4) Calculate the cost matrix through HIoU in step 3); Specifically, for a trajectory list with N elements and a detection list with M elements, where each element has a location information B with a corresponding confidence score S, a cost matrix C of size N×M is calculated as follows:

[0014] C ij =HIOU(B i ,B j )×S i ×S j , (3)

[0015] Where i / j represents the i / jth element in the trajectory list / detection list;

[0016] 5) Use the Auction Algorithm for asymmetric allocation problems to solve the cost matrix in step 4). The results are the successfully matched trajectory-detection number pairs, the unmatched trajectory numbers, and the unmatched detection numbers;

[0017] 6) The methods from step 1) to step 5) above are combined into a fast multi-target tracking method; specifically, the input is a video sequence V, a detector Det, a maximum loss threshold τ and a tracking score threshold ε; the output is a list of trajectories. For the kth frame f in the video k , which first obtains the detection result, i.e., the detection list D, through the detector Det k ; Then the trajectory list T of the previous frame k-1 With D k Calculate the cost matrix; use the Auction Algorithm to solve the cost matrix to obtain the following four groups: matching detection group D matched , matching trajectory group T matched (D matched and T matched One-to-one correspondence), unmatched detection group D unmatched and the unmatched trajectory group T unmatched ; In D matched The detection in is updated to T matched After the corresponding trajectory in (the end frame number is updated to k and the tracking state is updated to tracking), a new empty trajectory list T is created.k And the updated T matched Put it in when; T unmatched If the difference between the ending frame number of the trajectory in T and k is greater than or equal to τ, it will be deleted, otherwise, it will be added to T k , its tracking state will be set to lost; when D unmatched When the confidence score of the detection in is greater than or equal to ε, it will be added to T after being initialized as a new trajectory (the end frame number is initialized to k and the tracking state is initialized to tracking). k The output of each frame is T k .

[0018] Beneficial effects of the invention: In Fast, we proposed two components, a simple linear weighting that can be used to replace the Kalman filter; a new costmatrix with a new IoU. In terms of efficiency, we creatively proposed to use GPU two-dimensional arrays to manage tracking trajectories, which can support efficient parallel modification; we also used the AuctionAlgorithm of asymmetric allocation problems as the association strategy of Fast for the first time. Fast can reach 57FPS on the embedded CUDA device Jetson AGXXavier; it can reach 191FPS on the GTX 1080Ti. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Schematic diagram of the GPU two-dimensional array of the present invention. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present invention more clear, the specific implementation modes of the present invention are further described in detail below.

[0021] This method (Fast) together with the detector YOLOX forms a multi-target tracking system FastTrack. Specifically, YOLOX provides Fast with the corresponding confidence scores and category labels of the detection boxes obtained from each frame of the image; Fast performs multi-target tracking based on this.

[0022] The ablation study of this method is shown in Table 1. The ablation experiment is performed on the MOT17Val Half dataset.

[0023] About costmatrix. In Table 1, the experiments of No.1 / 2 / 3 / 5 show that our proposed costmatrix and HIoU have achieved significant improvements in IDF1 and MOTA (IDF1: 71.1 vs. 73.2 vs. 76.6 vs. 77.8; MOTA: 71.1 vs. 72.2 vs. 75.1 vs. 76.1).

[0024] About Auction. In No.4 / 5 in Table 1, Auction has similar or slightly better results than LAPJV in terms of MOTA and IDF1.

[0025] Regarding the efficiency of the tracker. We deployed FastTrack on two CUDA devices with very different computing power, namely Jetson AGX Xavier (an embedded CUDA device) and GTX 1080Ti (a desktop device), with maximum power consumption of 30W and 250W, and computing power of 32FLOPs and 7.3TFLOPs respectively. After using GPU two-dimensional arrays instead of traditional instance methods as data structures, the speed of the tracker is nearly doubled (Fast from 34FPS to 62FPS on 1080Ti; from 10FPS to 20FPS on AGX). After replacing the traditional Kalman filter with linear weighting, the tracker speed increased threefold (Fast increased from 62FPS to 186FPS on 1080Ti; from 20FPS to 55FPS on AGX); replacing LAPJV with Auction, the tracker speed increased further (Fast increased from 186FPS to 191FPS on 1080Ti; from 55FPS to 57FPS on AGX).

[0026] Table 1 Ablation study on the MOT17 Val Half dataset. The best results are shown in bold. D and T represent the corresponding scores of detection or tracklet multiplied by HIoU, respectively. MOTA and IDF1 represent the tracking performance; FP and FN represent the number of false detections and missed detections; IDs represents the number of ID switches.

[0027]

[0028]

[0029] The above are specific embodiments of the present invention and the technical principles used. If the changes made according to the concept of the present invention do not exceed the spirit covered by the description and drawings, they should still fall within the scope of protection of the present invention.

Claims

1. A fast multi-target tracking method, characterized in that: The method comprises the following steps: 1) Establish a GPU two-dimensional array to manage all trajectories generated during tracking. Each row in the two-dimensional array represents a trajectory. A trajectory contains location information, i.e., the coordinates of the upper left and lower right points of a horizontal box, confidence score, tracking state, tracking label, and end frame number. In terms of efficiency, the time complexity of updating all trajectories in the two-dimensional array is O(1). 2) Establish linear weighting to update the trajectory; in the kth frame f of a video stream k In , there is a pair of matched trajectories and the updated trajectory obtained by the detection calculation containing location information, confidence score, and category label, w is the weighted value; among them, the original trajectory contains location information B k-1 and the confidence score S k-1 ; Detection contains location information B dk and the confidence score S dk , the updated new trajectory contains the location information B k and the confidence score S k ; The calculation formula is as follows: 3) Establish HIoU to calculate the IoU between a single detection and a single track, defined as follows: HIoU receives a detected location information B det and a trajectory location information B trk , H det and H trk Respectively represent the height of the location information of the detection and trajectory; max and min represent the maximum and minimum values ​​between the two values. If the ratio of the minimum value to the maximum value is not less than the height ratio threshold λ=0.8, the IoU between them is calculated; otherwise, the result of HIoU is 0; 4) Calculate the costmatrix through the HIoU in step 3); Specifically, for a trajectory list with N elements and a detection list with M elements, where each element has a location information B with a corresponding confidence score S, then a costmatrix C of size N×M is ij The calculation is as follows: C ij =HIoU(B i ,B j )×S i ×S j , (3) Where i represents the i-th element in the trajectory list; j represents the j-th element in the detection list; 5) Using the AuctionAlgorithm of the asymmetric allocation problem to solve the costmatrix in step 4), the results obtained are the successfully matched trajectory-detection number pairs, the unmatched trajectory numbers, and the unmatched detection numbers; 6) The methods of steps 1) to 5) above are combined into a fast multi-target tracking method; specifically, the input is a video sequence V, a detector Det, a maximum loss threshold τ and a tracking score threshold ε; the output is a list of trajectories; for the kth frame f in the video k , which first obtains the detection result, i.e., the detection list D, through the detector Det k ; Then the trajectory list T of the previous frame k-1 With D k Calculate the costmatrix; use the Auction Algorithm to solve the costmatrix to obtain the following four groups: matching detection group D matched , matching trajectory group T matched , unmatched detection group D unmatched and the unmatched trajectory group T unmatched , D matched and T matched is a one-to-one correspondence; matched The detection in is updated to T matched In the corresponding trajectory in, the end frame number is updated to k, the tracking state is updated to tracking, and then a new empty trajectory list T is created. k And the updated T matched Put it in; T unmatched If the difference between the ending frame number of the trajectory in T and k is greater than or equal to τ, it will be deleted, otherwise, it will be added to T k , its tracking state will be set to lost; when D unmatched When the confidence score of the detection in is greater than or equal to ε, it will be initialized as a new trajectory, that is, the end frame number is initialized to k and the tracking state is initialized to tracking, and is added to T k The output of each frame is T k .