An online multi-target tracking method based on joint detection and association

By combining target detection and association into a neural network, the problem of model complexity caused by differences in detection and association modes in the existing technology is solved, end-to-end online multi-target tracking is achieved, and tracking efficiency and accuracy are improved.

CN114820723BActive Publication Date: 2024-09-27HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210430025.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2024-09-27
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

In the existing one-stage method for online multi-target tracking, due to the modal differences between target detection and data association, the model design is complex, the detection results and the correlation results are inconsistent, and it is difficult to train an end-to-end multi-target tracking model.

Method used

An online multi-target tracking method based on joint detection and association is adopted to combine target detection and association into a single neural network. The total detection loss is obtained through the positioning head and the representation head, and the connection sub-module is entered to merge the object representation, and the association sub-module is entered. Convert the confusion matrix into a correlation matrix, define directionality, non-maximum value and balance loss, calculate the total correlation loss, and realize the correlation and trajectory update between objects.

Benefits of technology

An end-to-end architecture is designed to solve the problem of inconsistency between the detection sub-module output and the correlation sub-module input bounding box. Target representations are directly used to associate objects in different frames, achieving an efficient and simple model training process for online multi-target tracking. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114820723B
    Figure CN114820723B
Patent Text Reader

Abstract

The invention discloses an online multi-target tracking method based on joint detection and association, designs an end-to-end architecture to jointly process object detection and online MOT tasks; combines object detection and association into a single neural network, proposes a joint submodule and a suitable training data generation method to solve the problem of inconsistent bounding boxes between the output of the object detection submodule and the input of the association submodule, directly associates objects in different frames using the object representation, designs a two-stage training method to train the detection submodule and the association submodule, and performs the online MOT process completely in an end-to-end mode. The invention has a simple and efficient structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image processing, and in particular relates to an online multi-target tracking method based on joint detection and association. Background Art

[0002] With the development of artificial intelligence, visual target tracking can be applied to many fields, such as motion correction, unmanned driving, and security monitoring; target detection methods and data association methods are the two most important methods in online multi-object tracking (MOT). In recent years, there are two main technical paths for these two methods in online target tracking applications. One is the two-stage method, which is to process and optimize the two separate modules separately. But this leads to complex model design and requires redundant model parameters to be learned. The second is the one-stage method, which integrates the two subtasks into an end-to-end model to optimize the model. The one-stage method performs object detection and object tracking in a single network. Therefore, the two subtasks can share model parameters in target representation extraction, which can significantly reduce tracking costs. However, the one-stage method has the following main disadvantages: First, there are modal differences between object detection and data association. The former only involves the processing of spatial information, while the latter involves data association on time series. These differences make the design of the one-stage method model more difficult. Secondly, the existing detection results or labels in the MOT dataset do not have corresponding detection model implementations. Therefore, the inconsistency of bounding boxes between the output of the detection network and the input of the association network prevents the training process in the entire end-to-end MOT model. Finally, as the detection submodule continues to be trained, the bounding boxes inferred by the association submodule also have no corresponding ground truth. These factors make it difficult to obtain an end-to-end model to achieve MOT. Summary of the invention

[0003] The purpose of the present invention is to provide an online multi-target tracking method based on joint detection and association, which combines target detection and association into a single neural network to achieve end-to-end joint processing of object detection and MOT tasks.

[0004] The online multi-target tracking method based on joint detection and association provided by the present invention comprises the following steps:

[0005] S1. Establish the object detection submodule and obtain the total detection loss through the localization head and the representation head;

[0006] S2. Enter the connection submodule to merge the object representation in the current frame with the object representation in the historical coordinate system;

[0007] S3. Performing data enhancement processing on discontinuous data of historical frames and current video frames in the video sequence;

[0008] S4. Enter the correlation submodule and convert the expanded confusion matrix into a correlation matrix;

[0009] S5. Define directional loss, non-maximum loss and balance loss, and calculate the total correlation loss;

[0010] S6. After obtaining the association matrix between the current frame target and the target in the historical frame with the corresponding object representation, the current image object is associated with the historical image object to update the trajectory recorder to achieve online tracking.

[0011] The step S1 includes taking a single video frame F as input, Represents a three-dimensional matrix; W is width; H is width; 3 represents the number of channels; obtain the object bounding box and the corresponding mathematical representation of each video frame; set up the backbone network and add the prediction head and the representation head to the backbone network; the positioning head is used to locate the target bounding box, and the representation head is used to calculate the object representation.

[0012] The backbone network uses ResNet-34; a variant of DLA (Deep Layer Aggregation) is used as the backbone of the target detection submodule;

[0013] The localization head includes: the input of the localization head is the output representation of the backbone network; each localization head has a 3×3 kernel size and 256 output channels, and then a 1×1 convolution is performed to produce the localization output, specifically generating a heat map head and a size head:

[0014] Use the heatmap head to predict the object center. The heatmap head is specifically: for the ground-truth bounding box in the i-th video frame Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; Indicates the ordinate value of the lower right corner of the i-th frame; obtains the center position p of the i-th frame i The goal, Find the position q on the i-th frame i , Where G represents the first downsampling factor; the current point position Heat map head response at r q Defined as in, represents a three-dimensional matrix; q k represents the position of the kth point; σ is the Gaussian kernel; the heat map head loss function L is formed according to the focal loss h As training goals:

[0015]

[0016] Where N represents the number of targets in the current video frame; Represents the predicted heat map response at the current point position q, the class number C of the predicted heat map response at the current point position q h =1; α represents the first hyperparameter of the focal loss; β represents the second hyperparameter of the focal loss; log(·) represents taking the logarithm for easy calculation;

[0017] Specifically, the size head is used to predict the width and height of the object around its center position; the output of the size head Defined as The output class number of the size header is C z =2; represents a three-dimensional matrix; G represents the first downsampling factor; W is the width; H is the width; Although the positioning accuracy has no direct relationship with the object representation, it will affect the performance of the detection subtask; for a real box b in the video frame i ,according to Get the size z of the i-th frame i , and the bounding box size predicted for the i-th frame is defined as Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; represents the ordinate value of the lower right corner of the i-th frame; the output of the offset header is represented as The class number output by the offset header is C d =2; the actual displacement d on the i-th frame i Expressed as p i represents the center position of the i-th frame; the displacement of the center position of the i-th frame is represented as Therefore, the similar loss L of the size head and the offset head s for:

[0018]

[0019] Where N represents the number of targets in the current video frame; z i Indicates the size of the i-th frame; represents the size of the bounding box predicted in the i-th frame; d i represents the real displacement on the graph; represents the center position displacement; ||·||1 represents the L1 norm;

[0020] Therefore, the positioning head loss L p is the combination of the first two losses:

[0021] L p =L h +L s

[0022] Among them, L h represents the heat map head loss function; L s Indicates similar losses for size head and offset head;

[0023] The representation head includes, the generated representation graph is in represents a three-dimensional matrix; S represents the second downsampling factor; W is the width; H is the width; the output channel C of the generated representation graph e = 128; target representation of the center position p learned by the representation head Represents a one-dimensional vector with C elements; for the real bounding box b in the i-th video frame i , get the target center position on the heat map of the i-th frame Learn an identity representation at a certain position in the i-th frame And output to a one-dimensional classification probability vector v(k), and the ground truth classification label of the i-th frame is represented as u i (j); Therefore, the identity classification loss L c is constructed as:

[0024]

[0025] Where N is the total number of frames; J is the total number of all identities in the dataset; v(j) is the predicted value of the identity; j is the count variable of the identity in the dataset; log(·) means taking the logarithm for easy calculation;

[0026] The total detection loss is L d =L p +L c , L c is the identity classification loss; L p For positioning head loss.

[0027] The step S2 includes entering the connection submodule S J , the current video frame F t The representation matrix R t The representation tensor copied vertically into the current frame And the representation matrix R in the first n frames t-n Representation tensor copied horizontally to the previous n frames The representation tensor M in the current frame t and the representation tensor M in the previous n frames t-nMerge along the channel direction of the object representation into the confusion tensor between the current frame and the previous n frames N m Indicates the maximum number of targets per frame; represents a three-dimensional matrix; t represents the current time.

[0028] The step S3 includes converting the historical frame F t-n and the current video frame F t separated by n frames, where n∈[0,N a -1],N a represents the maximum number of historical frames; the historical frame F on each trajectory is calculated with a probability of 0.25 t-n and the current video frame F t Sampling is performed; the video frame is reshaped into a size of W×H×3, where W is the width and H is the width; the sampled video frame is horizontally flipped with a probability of 0.5, and the dimensionality compression from 256 to 1 is gradually achieved along the direction of object representation, and the convolution kernel size is 1×1.

[0029] The step S4 includes entering the association submodule and converting the expanded confusion matrix M t,tn Converted into a correlation matrix, the inter-frame correlation is obtained by utilizing the proposed correlation submodule and the maximum number of objects per frame N is used m Prediction history frame F t-n and the current video frame F t The object association matrix M a ; Along the horizontal and vertical directions, to the historical frame F t-n and the current video frame F t The object association matrix M a A zero vector is inserted into for generalization.

[0030] The step S5 includes using the historical frame F t-n and the current video frame F t Similarity association coding between t-n and the current video frame F t The object association matrix M a Then append a column to construct the first extended matrix M1. N m Indicates the maximum number of targets per frame; Represents a three-dimensional matrix; N m Indicates the maximum number of targets per frame; represents a two-dimensional matrix; the vertical vector attached at the end represents the vertical vector from the historical frame F t-n The current tracked object disappears in the last row; the horizontal vector attached in the last row indicates the current tracked object in the current frame F t The mth row of the first expansion matrix M1 converts the historical frame Ft-n The mth object in the current frame F t Nth m +1 object associated; N m +1 indicates the maximum target number +1; the horizontal expansion probability vector of the first expansion matrix M1 is normalized by executing the softmax function; the horizontal vector of the output association matrix A1 represents the current video frame F t The association probability between all targets and all targets in the current video frame F t middle, A1 represents the predicted value of the first association matrix; the total association loss L s Defined as the directional loss L d , non-maximum loss L m and balance loss L b The sum of L s =L d +L m +L b ,

[0031] Directional loss L d for:

[0032]

[0033] Among them, B1 represents B t-n,t Delete the last horizontal vector; B2 means B t-n,t Delete the last vertical vector; B t-n,t represents the true value of the correlation matrix between the historical frame and the current frame; ⊙ represents the Hadamard product; log(·) represents the logarithm for simple calculation; N m represents the maximum number of targets per frame; A2 represents the predicted value of the second association matrix;

[0034] Non-maximum loss L m for:

[0035]

[0036] Among them, N m Indicates the maximum number of targets per frame; B3 indicates B t-n,t Delete the last vertical vector and the last horizontal vector; log(·) means taking the logarithm, which is used for simple calculation; A m represents the predicted value of the third correlation matrix; A m =max(A c ,A r ), max(·) means taking the maximum value; A c Indicates that A1 deletes the last vertical vector and the last horizontal vector is clipped to N m ×Nm The matrix obtained by latitude; A r Indicates that A2 deletes the last vertical vector and the last horizontal vector is clipped to N m ×N m The matrix obtained by latitude;

[0037] Balance loss L b for,

[0038]

[0039] Among them, A c represents the predicted value of the correlation matrix with the last column removed; A r Represents the predicted value of the correlation matrix with the last row removed.

[0040] The step S6 includes obtaining the current video frame F t The target and the history frames F with corresponding object representations t-n After the association matrix between the targets in the image is obtained, the current image object is connected with the historical image object to update the trajectory recorder T t ; At the initial moment, the track recorder has the same number of tracks, a frame is transmitted through the detection submodule only once, and the object representation is reused several times to evaluate the similarity with the remaining images; Based on the association matrix; Many tracks are assigned to specific undetected object columns in the accumulation matrix by copying the last vertical vector of the accumulator to achieve online tracking.

[0041] The online multi-target tracking method based on joint detection and association provided by the present invention designs an end-to-end architecture to jointly process object detection and online MOT tasks; target detection and association are combined into a single neural network, and in order to solve the problem of inconsistent bounding boxes between the output of the target detection submodule and the input of the association submodule, a joint submodule and a suitable training data generation method are proposed, and the target representation is directly used to associate objects in different frames. At the same time, a two-stage training method is designed to train the detection submodule and the association submodule, and the online MOT process is completely performed in an end-to-end mode. The present invention has a simple structure and is efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the process of the present invention.

[0043] Figure 2 Schematic diagram of a flow chart of an embodiment of the present invention.

[0044] Figure 3 Schematic diagram of the association submodule flow in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] like Figure 1 The flowchart of the method of the present invention is as follows: The online multi-target tracking method based on joint detection and association provided by the present invention comprises the following steps:

[0046] S1. Establish the object detection submodule and obtain the total detection loss through the localization head and the representation head;

[0047] S2. Enter the connection submodule to merge the object representation in the current frame with the object representation in the historical coordinate system;

[0048] S3. Performing data enhancement processing on discontinuous data of historical frames and current video frames in the video sequence;

[0049] S4. Enter the correlation submodule and convert the expanded confusion matrix into a correlation matrix;

[0050] S5. Define directional loss, non-maximum loss and balance loss, and calculate the total correlation loss;

[0051] S6. After obtaining the association matrix between the current frame target and the target in the historical frame with the corresponding object representation, the current image object is associated with the historical image object to update the trajectory recorder to achieve online tracking.

[0052] The step S1 includes taking a single video frame F as input, Represents a three-dimensional matrix; W is width; H is width; 3 represents the number of channels; obtain the object bounding box and the corresponding mathematical representation of each video frame; set up the backbone network and add the prediction head and the representation head to the backbone network; the positioning head is used to locate the target bounding box, and the representation head is used to calculate the object representation.

[0053] like Figure 2 It is a flowchart of an embodiment of the present invention. The backbone network is crucial for the MOT task. In order to consider both model complexity and accuracy, ResNet-34 is used. A variant of DLA (Deep Layer Aggregation) is used as the backbone of the target detection submodule, which can adapt to targets of various scales. Compared with the original DLA, the variant of DLA has an additional bypass between low-level and high-level representations. In addition, all modifications in the upsampling process are also helpful in alleviating the alignment problem.

[0054] The localization head includes: the input of the localization head is the output representation of the backbone network; each localization head has a 3×3 kernel size and 256 output channels, and then a 1×1 convolution is performed to produce the localization output, specifically to generate a low-resolution heat map head and a size head:

[0055] The heatmap head is used to predict the center of the object. When the positioning head overlaps with the true center target position, the output of the heatmap head at a certain position is 1, and the output value decreases as the distance to the target center position increases. Specifically, the heatmap head is, for the true bounding box in the i-th frame of the video frame Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; Indicates the ordinate value of the lower right corner of the i-th frame; obtains the center position p of the i-th frame i The goal, Therefore, the position q on the i-th frame is calculated by dividing the center position by the first downsampling factor i , Where G represents the first downsampling factor, G = 4. Formally, the current point position Heat map head response at r q Defined as in, represents a three-dimensional matrix; q k represents the position of the kth point; σ is the Gaussian kernel, which is a function of the target size. The heat map head loss function L is formed according to the focal loss h As training goals:

[0056]

[0057] Where N represents the number of targets in the current video frame; Represents the predicted heat map response at the current point position q, the class number C of the predicted heat map response at the current point position q h =1; α represents the first hyperparameter of the focal loss; β represents the second hyperparameter of the focal loss; log(·) represents taking the logarithm for easy calculation;

[0058] Specifically, the size head is used to predict the width and height of the object around its center position; the output of the size head Defined as The output class number of the size header is C z =2; represents a three-dimensional matrix; G represents the first downsampling factor; W is the width; H is the width; Although the positioning accuracy has no direct relationship with the object representation, it will affect the performance of the detection subtask. For a real box b in the video frame i ,according to Get the size z of the i-th frame i , and the bounding box size predicted for the i-th frame is defined as Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; represents the ordinate value of the lower right corner of the i-th frame. In addition, FairMOT shows that a refined bounding box with a central position is important for improving MOT accuracy, and the first downsampling factor in the backbone network will play a strong quantization effect. The offset head is used to detect the target more accurately, although the advantage of improving detection accuracy is minimal. The offset head is the introduction of MOT data association because the object representation is based on extremely accurate bounding box learning. The output of the offset head is represented as The class number output by the offset header is C d =2; the actual displacement d on the i-th frame i Expressed as p i represents the center position of the i-th frame; the displacement of the center position of the i-th frame is represented as Therefore, the similar loss L of the size head and the offset head s for:

[0059]

[0060] Where N represents the number of targets in the current video frame; z i Indicates the size of the i-th frame; represents the size of the bounding box predicted in the i-th frame; d i represents the real displacement on the graph; represents the center position displacement; ||·||1 represents the L1 norm;

[0061] Therefore, the positioning head loss L p is the combination of the first two losses:

[0062] L p =L h +L s

[0063] Among them, L h represents the heat map head loss function; L s Indicates similar losses for size head and offset head.

[0064] The representation head includes the purpose of extracting representations that can distinguish various tracking targets. Ideally, the differences between different pedestrians are greater than the differences between the same pedestrians. To achieve this goal, the output of the backbone network is used to learn the object representation of the detected target. The generated representation graph is in represents a three-dimensional matrix; S represents the second downsampling factor; W is the width; H is the width; the output channel C of the generated representation graph e = 128; target representation of the center position p learned by the representation head Represents a one-dimensional vector with C elements; the tracking target recognition is regarded as a classification problem, and all targets with the same identity in the training data set are regarded as one label; for the real bounding box b in the i-th video frame i , get the target center position on the heat map of the i-th frame Learn an identity representation at a certain position in the i-th frame And output to a one-dimensional classification probability vector v(k), and the ground truth classification label of the i-th frame is represented as u i (j); Therefore, the identity classification loss L c is constructed as:

[0065]

[0066] Where N is the total number of frames; J is the total number of all identities in the dataset; v(j) is the predicted value of the identity; j is the count variable of the identity in the dataset; log(·) means taking the logarithm for easy calculation;

[0067] The total detection loss is L d =L p +L c , L c is the identity classification loss; L p For positioning head loss.

[0068] The step S2 includes entering the connection submodule S J , the current video frame F t The representation matrix R t The representation tensor copied vertically into the current frame And the representation matrix R in the first n frames t-n Representation tensor copied horizontally to the previous n frames The representation tensor M in the current frame t and the representation tensor M in the previous n frames t-n Merge along the channel direction of the object representation into the confusion tensor between the current frame and the previous n frames N m Indicates the maximum number of targets per frame; represents a three-dimensional matrix; t represents the current time.

[0069] The step S3 includes the historical frame F t-n and the current video frame F t In the video sequence, it is not necessarily continuous. t-n and the current video frame F t separated by n frames, where n∈[0,N a -1],N arepresents the maximum number of historical frames; using skipped video frames for training is conducive to using existing MOT methods in data association between the current frame and a series of historical video frames. In addition, the training data used in MOT always lacks the ability to capture background changes, camera distortion, and many realistic effects to maintain the robustness of MOT. In the proposed tracking method, the training data involves enough irrelevant tracking attributes to enhance the robustness of the MOT model. Therefore, subsequent data augmentation is performed on the MOT training dataset. The historical frame F on each trajectory is skipped with a probability of 0.25. t-n and the current video frame F t Then, these video frames are reshaped to the specified size W×H×3; the sampled video frames are horizontally flipped with a probability of 0.5, and the dimension compression from 256 to 1 is gradually achieved along the direction of object representation. The convolution kernel size is 1×1, and the adjacent channels in the representation map will not affect each other.

[0070] like Figure 3 The schematic diagram of the association submodule flow of the embodiment of the present invention; the step S4 includes entering the association submodule, and converting the expanded confusion matrix M t,tn is converted into a correlation matrix, and the inter-frame correlation is obtained by utilizing the proposed correlation submodule, as Figure 2 As shown in the second half of the figure, the maximum number of targets per frame N is used. m Prediction history frame F t-n and the current video frame F t The object association matrix M a ; Along the horizontal and vertical directions, to the historical frame F t-n and the current video frame F t The object association matrix M a A zero vector (as an object placeholder) is inserted into for generalization.

[0071] The step S5 includes using the historical frame F t-n and the current video frame F t The similarity association encoding between them is used to consider the disappearance and appearance of multiple targets; considering the disappearance of the target, in the historical frame F t-n and the current video frame F t The object association matrix M a Then append a column to construct the first extended matrix M1. N m Indicates the maximum number of targets per frame; Represents a three-dimensional matrix; N m Indicates the maximum number of targets per frame; represents a two-dimensional matrix; the vertical vector attached at the end represents the vertical vector from the historical frame F t-nThe horizontal vector added in the last row represents the current tracked object that disappears in the current frame F. t Emerging targets that come into view; such as Figure 3 The first expansion matrix M1 has the mth row transforming the historical frame F t-n The mth object in the current frame F t Nth m +1 object associated; N m +1 indicates the maximum target number +1; the horizontal expansion probability vector of the first expansion matrix M1 is normalized by executing the softmax function; therefore, the horizontal vector of the output association matrix A1 represents the current video frame F t The association probability between all targets and all targets in the current video frame F t Including the unrecognized targets in the current video frame. A1 represents the predicted value of the first association matrix; the total association loss L s Defined as the directional loss L d , non-maximum loss L m and balance loss L b The sum of L s =L d +L m +L b ,

[0072] Specifically, we use the directional loss L d to suppress the disappearance and appearance of erroneous target associations.

[0073]

[0074] Among them, B1 represents B t-n,t Delete the last horizontal vector; B2 means B t-n,t Delete the last vertical vector; B t-n,t represents the true value of the correlation matrix between the historical frame and the current frame; ⊙ represents the Hadamard product; log(·) represents the logarithm for simple calculation; N m represents the maximum number of targets per frame; A2 represents the predicted value of the second association matrix;

[0075] The associated submodule is trained using non-maximum loss and balanced loss; the non-maximum loss L m Penalize non-maximum associations in the disappearance and appearance of association calculations.

[0076]

[0077] Among them, N m Indicates the maximum number of targets per frame; B3 indicates B t-n,tDelete the last vertical vector and the last horizontal vector; log(·) means taking the logarithm, which is used for simple calculation; A m represents the predicted value of the third correlation matrix; A m =max(A c ,A r ), max(·) means taking the maximum value; A c Indicates that A1 deletes the last vertical vector and the last horizontal vector is clipped to N m ×N m The matrix obtained by latitude; A r Indicates that A2 deletes the last vertical vector and the last horizontal vector is clipped to N m ×N m The matrix obtained by latitude is as follows Figure 3 shown.

[0078] Balance loss L b Penalize any imbalance between disappearances and appearances. This means that the number of objects that appear is equal to the number of objects that disappear.

[0079]

[0080] Among them, A c represents the predicted value of the correlation matrix with the last column removed; A r Represents the predicted value of the correlation matrix with the last row removed.

[0081] The step S6 includes obtaining the current video frame F t The target and the history frames F with corresponding object representations t-n After the association matrix between the targets in the image is obtained, the current image object is linked to the historical image object to update the trajectory recorder T t ; At the initial moment, i.e. t = 0, the track recorder has the same number of tracks, a frame is transmitted through the detection submodule only once, but the object representation is reused several times to evaluate the similarity with the remaining images; Based on the association matrix; By copying the last vertical vector of the accumulator, many tracks can be assigned to a specific undetected object column in the accumulation matrix to achieve online tracking.

[0082] The specific embodiments are:

[0083] In this embodiment, the overall performance of the proposed method is extensively tested on two different MOT benchmark datasets, MOT15 and MOT17. Table 1 shows the test results of the embodiment of the present invention, specifically:

[0084] Table 1

[0085]

[0086] Among them, JDE is an existing one-stage MOT method. MDP_SubCNN, CDA_DDAL, EAMTT, AP_HWDPL, RAR15, DMAN, MTDF, FAMNet, Tracktor++ and SST are existing two-stage MOT methods. Compared with various widely used MOT methods before, this method (i.e., Joint Detection Association Network, JDAN) obtains the best IDF1 (the ratio of correctly identified detection results to the average of true and predicted detection results) score, MT (the proportion of hit target tracks to the total ground truth tracks), ML (the proportion of lost target tracks to the total groundtruth tracks), Hz (frequency) on two MOT benchmarks, and outperforms the MOTA (standard MOT accuracy, the most important evaluation indicator) score of all two-stage methods. ID_Sw (number of ID switches) also achieves good results, and obtains a tracking speed close to the frame rate, which represents excellent MOT performance.

Claims

1. An online multi-target tracking method based on joint detection and association, characterized in that The steps include: S1. Establish the object detection submodule, obtain the total detection loss through the localization head and the representation head; including taking a single video frame F as input, represents a three-dimensional matrix; W is width; H is width; 3 represents the number of channels; obtain the object bounding box and corresponding mathematical representation of each video frame; set up the backbone network and add the prediction head and representation head to the backbone network; the positioning head is used to locate the target bounding box, and the representation head is used to calculate the object representation; The backbone network uses ResNet-34; a variant of DLA is used as the backbone of the target detection submodule; The localization head includes: the input of the localization head is the output representation of the backbone network; each localization head has a 3×3 kernel size and 256 output channels, and then a 1×1 convolution is performed to produce the localization output, specifically generating a heat map head and a size head: Use the heatmap head to predict the object center. The heatmap head is specifically: for the ground-truth bounding box in the i-th video frame Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; Indicates the vertical coordinate value of the lower right corner of the i-th frame; Get the center position p of the i-th frame i The goal, Find the position q on the i-th frame i , Where G represents the first downsampling factor; the current point position Heat map head response at r q Defined as in, represents a three-dimensional matrix; q k represents the position of the kth point; σ is the Gaussian kernel; the heat map head loss function L is formed according to the focal loss h As training goals: Where N represents the number of targets in the current video frame; Represents the predicted heat map response at the current point position q, the class number C of the predicted heat map response at the current point position q h =1; α represents the first hyperparameter of the focal loss; β represents the second hyperparameter of the focal loss; log(·) represents taking the logarithm for easy calculation; Specifically, the size head is used to predict the width and height of the object around its center position; the output of the size head Defined as The output class number of the size header is C z =2; represents a three-dimensional matrix; G represents the first downsampling factor; W is the width; H is the width; Although the positioning accuracy has no direct relationship with the object representation, it will affect the performance of the detection subtask; for a real box b in the video frame i ,according to Get the size z of the i-th frame i , and the bounding box size predicted for the i-th frame is defined as Indicates the horizontal coordinate value of the upper left corner of the i-th frame; Indicates the vertical coordinate value of the upper left corner of the i-th frame; Indicates the horizontal coordinate value of the lower right corner of the i-th frame; represents the ordinate value of the lower right corner of the i-th frame; the output of the offset header is represented as The class number output by the offset header is C d =2; the actual displacement d on the i-th frame i Expressed as p i represents the center position of the i-th frame; the displacement of the center position of the i-th frame is represented as Therefore, the similar loss L of the size head and the offset head s for: Where N represents the number of targets in the current video frame; z i Indicates the size of the i-th frame; represents the size of the bounding box predicted in the i-th frame; d i represents the real displacement on the graph; represents the center position displacement; ||·||1 represents the L1 norm; Therefore, the positioning head loss L p is the combination of the first two losses: L p =L h +L s Among them, L h represents the heat map head loss function; L s Indicates similar losses for size head and offset head; The representation head includes, the generated representation graph is in represents a three-dimensional matrix; S represents the second downsampling factor; W is the width; H is the width; the output channel C of the generated representation graph e = 128; target representation of the center position p learned by the representation head Represents a one-dimensional vector with C elements; for the real bounding box b in the i-th video frame i , get the target center position on the heat map of the i-th frame Learn an identity representation at a certain position in the i-th frame And output to a one-dimensional classification probability vector v(k), and the ground truth classification label of the i-th frame is represented as u i (j); Therefore, the identity classification loss L c is constructed as: Where N is the total number of frames; J is the total number of all identities in the dataset; v(j) is the predicted value of the identity; j is the count variable of the identity in the dataset; log(.) means taking the logarithm for easy calculation; The total detection loss is L d =L p +L c , L c is the identity classification loss; L p To locate the head loss; S2. Enter the connection submodule to merge the object representation in the current frame with the object representation in the historical coordinate system; S3. Performing data enhancement processing on discontinuous data of historical frames and current video frames in the video sequence; S4. Enter the association submodule to convert the extended confusion matrix into an association matrix; including entering the association submodule to convert the extended confusion matrix M t,tn Converted into a correlation matrix, the inter-frame correlation is obtained by utilizing the proposed correlation submodule and the maximum number of objects per frame N is used m Prediction history frame F t-n and the current video frame F t The object association matrix M a ; Along the horizontal and vertical directions, to the historical frame F t-n and the current video frame F t The object association matrix M a Insert zero vectors in for generalization; S5. Define directional loss, non-maximum loss and balance loss, and calculate the total association loss; including using the historical frame F t-n and the current video frame F t Similarity association coding between t-n and the current video frame F t The object association matrix M a Then append a column to construct the first extended matrix M1. N m Indicates the maximum number of targets per frame; Represents a three-dimensional matrix; N m Indicates the maximum number of targets per frame; represents a two-dimensional matrix; the vertical vector attached at the end represents the vertical vector from the historical frame F t-n The current tracked object disappears in the last row; the horizontal vector attached in the last row indicates the current tracked object in the current frame F t The mth row of the first expansion matrix M1 converts the historical frame F t-n The mth object in the current frame F t Nth m +1 object associated; N m +1 indicates the maximum target number +1; the horizontal expansion probability vector of the first expansion matrix M1 is normalized by executing the softmax function; the horizontal vector of the output association matrix A1 represents the current video frame F t The association probability between all targets and all targets in the current video frame F t middle, A1 represents the predicted value of the first association matrix; the total association loss L s Defined as the directional loss L d , non-maximum loss L m and balance loss L b The sum of L s =L d +L m +L b , Directional loss L d for: Among them, B1 represents B t-n,t Delete the last horizontal vector; B2 means B t-n,t Delete the last vertical vector; B t-n,t represents the true value of the correlation matrix between the historical frame and the current frame; ⊙ represents the Hadamard product; log(.) represents the logarithm, which is used for simple calculation; N m represents the maximum number of targets per frame; A2 represents the predicted value of the second association matrix; Non-maximum loss L m for: Among them, N m Indicates the maximum number of targets per frame; B3 indicates B t-n,t Delete the last vertical vector and the last horizontal vector; log(·) means taking the logarithm, which is used for simple calculation; A m Represents the predicted value of the third correlation matrix; A m =max(A c ,A r ), max(·) means taking the maximum value; A c Indicates that A1 deletes the last vertical vector and the last horizontal vector is clipped to N m ×N m The matrix obtained by latitude; A r Indicates that A2 deletes the last vertical vector and the last horizontal vector is clipped to N m ×N m The matrix obtained by latitude; Balance loss L b for, Among them, A c represents the predicted value of the correlation matrix with the last column removed; A r represents the predicted value of the correlation matrix with the last row removed; S6. After obtaining the association matrix between the current frame target and the target in the historical frame with the corresponding object representation, the current image object is associated with the historical image object to update the trajectory recorder to achieve online tracking.

2. The online multi-target tracking method based on joint detection and association according to claim 1 is characterized in that The step S2 includes entering the connection submodule S J , the current video frame F t The representation matrix R t The representation tensor copied vertically into the current frame And the representation matrix R in the first n frames t-n Representation tensor copied horizontally to the previous n frames The representation tensor M in the current frame t and the representation tensor M in the previous n frames t-n Merge along the channel direction of the object representation into the confusion tensor between the current frame and the previous n frames N m Indicates the maximum number of targets per frame; represents a three-dimensional matrix; t represents the current time.

3. The online multi-target tracking method based on joint detection and association according to claim 2 is characterized in that The step S3 includes converting the historical frame F t-n and the current video frame F t separated by n frames, where n∈[0,N a -1],N a represents the maximum number of historical frames; the historical frame F on each trajectory is calculated with a probability of 0.25 t-n and the current video frame F t Take samples; Reshape the video frame to size W×H×3; W is width; H is width; The sampled video frames are horizontally flipped with a probability of 0.5, and the dimensionality is gradually compressed from 256 to 1 along the direction of the object representation, with a convolution kernel size of 1×1.

4. The online multi-target tracking method based on joint detection and association according to claim 3 is characterized in that The step S6 includes obtaining the current video frame F t The target and the history frames F with corresponding object representations t-n After the association matrix between the targets in the image is obtained, the current image object is connected with the historical image object to update the trajectory recorder T t ; At the initial moment, the track recorder has the same number of tracks, a frame is transmitted through the detection submodule only once, and the object representation is reused several times to evaluate the similarity with the remaining images; Based on the association matrix; Many tracks are assigned to specific undetected object columns in the accumulation matrix by copying the last vertical vector of the accumulator to achieve online tracking.