Training forming method of unsupervised multi-target tracking model based on multi-frame verification Re-ID
By introducing multi-frame verification and dynamic occlusion estimation modules into the multi-target tracking model, combined with the FairMOT framework, the occlusion and competition problems are solved, the speed and accuracy of multi-target tracking are improved, and more accurate target tracking is achieved.
Patent Information
- Application Number
- CN202410811314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-17
AI Technical Summary
Existing multi-target tracking models suffer from inaccurate target recognition due to occlusion problems in dense scenes, and frequent ID switching. Moreover, the traditional JDE paradigm is difficult to achieve real-time tracking. There is competition between the detection branch and the embedding branch, which affects the accuracy and speed of the model.
An unsupervised multi-target tracking model based on multi-frame verification is adopted. By training the unsupervised Re-ID module and dynamic occlusion estimation module, combined with the FairMOT framework, self-supervised contrastive learning and multi-frame verification strategies are used to improve the feature expression ability and occlusion of the model. processing capabilities and avoid competition issues.
It improves the speed and accuracy of multi-target tracking, reduces the occurrence of frequent ID switching, achieves more accurate target tracking, and avoids the low real-time performance and competition problems in traditional methods.
Smart Images

Figure CN118658101A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a training method for an unsupervised multi-target tracking model based on multi-frame verification Re-ID. Background Art
[0002] Multi-target tracking is an important and challenging problem in the fields of autonomous driving, intelligent monitoring, video analysis, etc. The multi-target tracking task is to detect and identify multiple different targets from a video or image, and extract their features to continuously track their positions, motion trajectories, and other related information. At present, the multi-target tracking task still faces many practical challenges, such as frequent ID switching due to occlusion problems, and the degradation of model performance due to the competition between different branch tasks.
[0003] The current multi-target tracking model requires a large number of target ID annotations for training, and obtaining these annotations is time-consuming and laborious. In order to solve the problem of difficult ID annotation, there are also many studies on unsupervised multi-target tracking.
[0004] One of the main challenges in unsupervised multi-object tracking is how to distinguish different objects in a video sequence and stably track the same object without labeled data.
[0005] In existing research, there are still many problems in pedestrian multi-target tracking algorithms:
[0006] (1) In dense scenes, targets are frequently occluded, which makes it impossible for the algorithm to accurately identify the target and determine its identity, resulting in target loss and frequent ID switching.
[0007] (2) The commonly used tracking-by-detection paradigm makes it difficult for the model to achieve real-time performance due to the separation of detection and tracking. The JDE paradigm measures speed and accuracy, but the competition between the detection branch and the embedding branch of this paradigm affects the model accuracy.
[0008] Therefore, it is necessary to propose a new training method for an unsupervised multi-target tracking model based on multi-frame verification Re-ID to solve the above problems. Summary of the invention
[0009] The purpose of the present invention is to provide a training method for an unsupervised multi-target tracking model based on multi-frame verification Re-ID to solve the problems raised in the background technology.
[0010] To achieve the above object, the present invention provides the following technical solution: a training method for an unsupervised multi-target tracking model based on multi-frame verification Re-ID, comprising at least the following steps:
[0011] S1: training an unsupervised Re-ID module, wherein the training of the unsupervised Re-ID module at least includes network structure training for embedding branches, and the network structure training is completed by building a loss function corresponding to the network structure;
[0012] S2: Use supervised design to train the dynamic occlusion estimation module;
[0013] S3: training the target detection method by building a loss function corresponding to the target detection method. The target detection method is a center point-based target detection method. The backbone of the target detection method network is DLA-34. The target detection method is a detection branch.
[0014] S4: Integrate the detection branch, unsupervised Re-ID module and dynamic occlusion estimation module into the FairMOT framework;
[0015] S5: Based on S1-S4, an unsupervised multi-target tracking model based on multi-frame verification Re-ID is constructed.
[0016] Furthermore, the construction of the loss function corresponding to the target detection method includes at least the following steps:
[0017] Through the Gaussian kernel function Achieved accurate distribution of target center points on the heat map
[0018] R / r represents the downsampling multiple of the network;
[0019] (x, y) represents the original target center coordinates; W, H represent the width and height of the feature map;
[0020] The GroundTruth of the center point coordinates of target k is (x k ,y k ), the adaptive adjustment of the standard deviation when the target size changes is σ k ;
[0021] When the position of an object on the heatmap is (i, j), its center offset and target box size are represented as G O and G S , the expressions are shown in formulas (1) and (2) respectively:
[0022]
[0023] G S(i,j,:)=(w,h)(2)
[0024] Because the number of center points in the heat map output by the network accounts for a very low proportion, Focal loss is used to effectively suppress non-target center points, as shown in formula (3);
[0025]
[0026] Among them, the predicted heat map is expressed as The value of each point in the heat map reflects the probability that the point belongs to the target center point. The heat map generated by the true value label is represented as Y, and the balance factor is α = 0.25;
[0027] The target size and center point offset are constrained using L1 loss, as shown in formula (4) and formula (5) respectively:
[0028] The target box size is learned by formula (4). The target box size is determined by the length and width, and the L1 loss is used;
[0029]
[0030] In order to reduce the error caused by downsampling, L1 loss is used to constrain the offset of the center point, as shown in formula (5);
[0031]
[0032] The total loss of the center-based object detection network is defined as follows:
[0033] L det =L cls +λ off L off +λ size L size (6).
[0034] Furthermore, the construction of the loss function corresponding to the network structure includes at least the following steps:
[0035] In the unsupervised Re-ID network structure training, there is no longer any trajectory annotation, and the dataset will be represented as
[0036] Use three consecutive frames of images to construct sub-video segments as model input; the data of each sub-video is represented as
[0037]
[0038] Among them I t ∈R c*h*w represents the t-th frame image, Represents the kth frame in the tth frame image tThe location corresponding to the target;
[0039] The feature vectors obtained by extracting features from these sub-videos are expressed as: and where x i They represent the feature vectors of their corresponding targets, k t , k t+1 and k t+2 The target total number corresponding to the video frames respectively;
[0040] Learn the distinguishability of different target features based on contrastive learning of targets within the same frame;
[0041] Since self-supervised contrastive learning is for positive sample pairs, and there are no positive samples in the same frame, the contrastive loss is rewritten by retaining the softmax-like operation, then replacing the similarity of the positive sample with the similarity of the negative sample, and finally taking the negative value instead of taking the logarithm;
[0042] The original calculation formula of the self-supervised contrast loss is shown in formula (7):
[0043]
[0044] in, represents the cosine similarity between target i and its positive sample, sim(x i ,x j ) represents the similarity between target i and other targets, τ is the temperature that controls the degree of constraint of difficult samples;
[0045] m i,j Represents the cosine similarity between the embedding vectors of two targets, as shown in formula (8):
[0046]
[0047] By calculating the value corresponding to each point according to formula (8), we obtain the cosine similarity matrix M between all objects between two frames. This matrix can be divided into four sub-matrices;
[0048] Among them, M t,t and M t+1,t+1 Respectively represent the similarity of the targets in the tth frame and the t+1th frame, M t,t+1 and M t+1,t Indicates the similarity between two frame targets;
[0049] Given that the targets in the same frame have different feature vectors, a loss L is designed to distinguish different targets. self , as shown in formula (9):
[0050]
[0051] L self It only limits the need to obtain different target features in the same frame, but does not model cross-frame targets;
[0052] In order to learn the similarity of the same target, the Hungarian algorithm is used to match the targets of frame t to frame t+1. The matching pairs are regarded as positive samples, and the loss L is constructed. cross , as shown in formula (10):
[0053]
[0054] The purpose of learning the similarity of the same target is to narrow the similarity of matching pairs between adjacent frames. It is believed that the tracking result from frame t to frame t+1 should be consistent with the tracking result from frame t+1 to frame t. Based on this, a constraint condition L is proposed. cycle , as shown in formula (11):
[0055]
[0056] If we only focus on the information of two adjacent frames, there may be accumulated errors in tracking, and the performance may degrade during long-term tracking. Multi-frame verification is added to constrain this.
[0057] It can be considered that the result of matching frame by frame from the tth frame to the t+2th frame should be consistent with the result of matching the tth frame directly with the t+2th frame, and the reverse matching should also be consistent. Therefore, the symmetric JS divergence is selected for constraint, as shown in formula (12):
[0058]
[0059] in represents the feature matrix calculated from frame-by-frame matching from the first frame to the third frame, It means that the feature matrix is calculated by matching the first frame directly with the third frame, and the reverse matching is the same;
[0060] The loss of the unsupervised embedding branch is defined as the sum of the above four losses, namely:
[0061] L ID =L self +L cross +L cycle +L cc (13)
[0062] The proportion of negative samples has an impact on the contrast loss performance, so additional negative samples will be sampled from different scenes.
[0063] Furthermore, the S2 at least includes the following steps:
[0064] Given the bounding box coordinates of two targets i and j in a frame, their overlapping area is defined as
[0065]
[0066] Define a function H to indicate whether the occlusion is effective. It is only effective when the overlapping area occupies a large part of the target, as shown in formula (14):
[0067]
[0068] In the formula, A is the function for calculating the area, τ is a hyperparameter, and o i,j The center point of is defined as the occlusion position of the two targets, and the GT occlusion map Y is rendered using a two-dimensional Gaussian kernel function. x,y ;
[0069] In the occlusion estimation implementation, an additional CNN head is introduced to obtain the predicted occlusion center heat map Focalloss is used to constrain the occlusion center point heat map loss, as shown in formula (15):
[0070]
[0071] Based on the idea of center point estimation, it is proposed to use L1 loss to regress the center point offset, as shown in formula (16):
[0072]
[0073] The overall occlusion estimation loss is given by formula (17):
[0074]
[0075] Compared with the prior art, the present invention has the following beneficial effects:
[0076] The present invention improves the feature expression ability of the model based on contrastive learning and multi-frame verification strategy, that is, trains an unsupervised Re-ID module, and introduces dynamic occlusion estimation so that the model can handle occlusion more accurately. Then, the unsupervised Re-ID module and the dynamic occlusion estimation module are combined into an online multi-target framework FairMOT based on the JDE paradigm, thereby avoiding the problems of the traditional JDE paradigm that is difficult to achieve real-time tracking and the inconvenience of tracking due to occlusion. At the same time, it further avoids the low real-time performance of the traditional JDE paradigm and the competition between the detection branch and the embedding branch, thereby improving the speed and accuracy of the overall multi-target tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0078] Figure 1 It is the overall framework diagram of the unsupervised multi-target tracking model based on multi-frame verification Re-ID of the present invention;
[0079] Figure 2 This is a diagram of the target detection network structure based on the center point of the present invention;
[0080] Figure 3 It is a priori analysis diagram of the present invention;
[0081] Figure 4 This is the unsupervised Re-ID training framework diagram of the present invention;
[0082] Figure 5 This is a comparative learning architecture diagram of the present invention;
[0083] Figure 6 It is a multi-frame verification design diagram of the present invention;
[0084] Figure 7 This is an example diagram of occlusion according to the present invention. DETAILED DESCRIPTION
[0085] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0086] The training method of the unsupervised multi-target tracking model based on multi-frame verification Re-ID includes at least the following steps:
[0087] S1: training an unsupervised Re-ID module, wherein the training of the unsupervised Re-ID module at least includes network structure training for embedding branches, and the network structure training is completed by building a loss function corresponding to the network structure;
[0088] S2: Use supervised design to train the dynamic occlusion estimation module;
[0089] S3: training the target detection method by building a loss function corresponding to the target detection method. The target detection method is a center point-based target detection method. The backbone of the target detection method network is DLA-34. The target detection method is a detection branch.
[0090] S4: Integrate the detection branch, unsupervised Re-ID module and dynamic occlusion estimation module into the FairMOT framework;
[0091] S5: Based on S1-S4, an unsupervised multi-target tracking model based on multi-frame verification Re-ID is constructed.
[0092] The overall framework of the unsupervised multi-target tracking model based on multi-frame verification Re-ID is as follows Figure 1 shown.
[0093] Based on S3:
[0094] The core goal of the target detection task is to identify the target in the image and define its effective range. The requirements of the multi-target tracking task are relatively simpler, usually only need to obtain the center point position and feature information of the target to meet the tracking requirements.
[0095] Therefore, we adopt a center point based target detection method, which is particularly suitable for tracking pedestrian targets.
[0096] The target detection network structure is shown in the figure Figure 2 As shown, the backbone of the network is DLA-34, which is a deep aggregation network
[56] , is an encoder-decoder structure, which adds many jump connections between low-level feature layers and high-level feature layers to enhance the network's ability to detect feature targets of different sizes. In the network, deformable convolution is used to replace all convolution layers in the upsampling process, which enables the network to flexibly and dynamically adjust its receptive field to better adapt to changes in the target. After the image is extracted by the backbone network, a feature map with a size of 1 / 4 of the original image is obtained. Then, the feature map passes through three prediction branches, each of which is composed of several convolutional layers and pooling layers, which are responsible for predicting the center point heat map of the target, the size of the target, and the offset of the target center point.
[0097] Building the loss function for the corresponding target detection method includes at least the following steps:
[0098] Through the Gaussian kernel function Achieved accurate distribution of target center points on the heat map R / r represents the downsampling multiple of the network;
[0099] The GroundTruth of the center point coordinates of target k is (x k ,y k ), the adaptive adjustment of the standard deviation when the target size changes is σ k ;
[0100] When the position of an object on the heatmap is (i, j), its center offset and target box size are represented as G O and G S , the expressions are shown in formulas (1) and (2) respectively:
[0101]
[0102] G S (i,j,:)=(w,h)(2)
[0103] Because the number of center points in the heat map output by the network accounts for a very low proportion, Focal loss is used to effectively suppress non-target center points, as shown in formula (3);
[0104]
[0105] Among them, the predicted heat map is expressed as The value of each point in the heat map reflects the probability that the point belongs to the target center point. The heat map generated by the true value label is represented as Y, and the balance factor is α = 0.25;
[0106] The target size and center point offset are constrained using L1 loss, as shown in formula (4) and formula (5) respectively:
[0107] The target box size is learned by formula (4). The target box size is determined by the length and width, and the L1 loss is used;
[0108]
[0109] In order to reduce the error caused by downsampling, L1 loss is used to constrain the offset of the center point, as shown in formula (5);
[0110]
[0111] The total loss of the center-based object detection network is defined as follows:
[0112] L det =L cls +λ off L off +λ size L size (6).
[0113] Based on S1:
[0114] In the unsupervised Re-ID network training, there is no longer any trajectory annotation, and the dataset will be represented as Obviously, it is no longer possible to use classification methods to train the network.
[0115] A priori, we can Figure 3 The construction of contrast loss is based on the following two main ideas: the features of the objects in the same frame must be different; similar objects can be found in the images of adjacent frames and positive samples can be constructed from them.
[0116] Unsupervised training frameworks such as Figure 4 As shown, the structure of Self-Contrast is as follows Figure 5 As shown, the contrast loss is used to constrain adjacent frames. For multi-frame verification, we use the constraint that forward tracking and backward tracking should be consistent, and use JS divergence to constrain, such as Figure 6 shown.
[0117] References [18-20] The method uses three consecutive frames of images to construct a sub-video segment as the model input;
[0118] The data of each sub-video is represented as The feature vectors obtained by extracting features from these sub-videos are expressed as: and Where xi represents the feature vector of the corresponding target, k t , k t+1 and k t+2 The target total number corresponding to the video frames respectively;
[0119] Learn the distinguishability of different target features based on contrastive learning of targets within the same frame;
[0120] Since self-supervised contrastive learning is for positive sample pairs, and there are no positive samples in the same frame, the contrastive loss is rewritten by retaining the softmax-like operation, then replacing the similarity of the positive sample with the similarity of the negative sample, and finally taking the negative value instead of taking the logarithm;
[0121] The original calculation formula of the self-supervised contrast loss is shown in formula (7):
[0122]
[0123] in, represents the cosine similarity between target i and its positive sample, sim(x i ,x j ) represents the similarity between target i and other targets, τ is the temperature that controls the degree of constraint of difficult samples;
[0124] m i,j Represents the cosine similarity between the embedding vectors of two targets, as shown in formula (8):
[0125]
[0126] By calculating the value corresponding to each point according to formula (8), we obtain the cosine similarity matrix M between all objects between two frames. This matrix can be divided into four sub-matrices;
[0127] Among them, M t,t and M t+1,t+1 Respectively represent the similarity of the targets in the tth frame and the t+1th frame, M t,t+1 and M t+1,t Indicates the similarity between two frame targets;
[0128] Given that the targets in the same frame have different feature vectors, a loss L is designed to distinguish different targets. self , as shown in formula (9):
[0129]
[0130] L self It only limits the need to obtain different target features in the same frame, but does not model cross-frame targets;
[0131] In order to learn the similarity of the same target, the Hungarian algorithm is used to match the targets of frame t to frame t+1. The matching pairs are regarded as positive samples, and the loss L is constructed. cross , as shown in formula (10):
[0132]
[0133] The purpose of learning the similarity of the same target is to narrow the similarity of matching pairs between adjacent frames. It is believed that the tracking result from frame t to frame t+1 should be consistent with the tracking result from frame t+1 to frame t. Based on this, a constraint condition L is proposed. cycle , as shown in formula (11):
[0134]
[0135] If we only focus on the information of two adjacent frames, there may be accumulated errors in tracking, and the performance may degrade during long-term tracking. Multi-frame verification is added to constrain this.
[0136] It can be considered that the result of matching frame by frame from the tth frame to the t+2th frame should be consistent with the result of matching the tth frame directly with the t+2th frame, and the reverse matching should also be consistent. Therefore, the symmetric JS divergence is selected for constraint, as shown in formula (12):
[0137]
[0138] The loss of the unsupervised embedding branch is defined as the sum of the above four losses, namely:
[0139] L ID=L self +L cross +L cycle +L cc (13)
[0140] The proportion of negative samples has an impact on the contrast loss performance, so additional negative samples will be sampled from different scenes.
[0141] Based on S2:
[0142] Inspired by the work on keypoint estimation
[17] ,The occluded position is taken as the key point and detected through key point estimation.,Different from the Re-ID module in the previous section, the occlusion estimation module adopts a supervised design. Figure 7 This is an example of an occlusion situation.
[0143] Given the bounding box coordinates of two targets i and j in a frame, their overlapping area is defined as
[0144] Define a function H to indicate whether the occlusion is effective. It is only effective when the overlapping area occupies a large part of the target, as shown in formula (14):
[0145]
[0146] In the formula, A is the function for calculating the area, τ is a hyperparameter, and o i,j The center point of is defined as the occlusion position of the two targets, and the GT occlusion map Y is rendered using a two-dimensional Gaussian kernel function. x,y ;
[0147] In the occlusion estimation implementation, an additional CNN head is introduced to obtain the predicted occlusion center heat map Focalloss is used to constrain the occlusion center point heat map loss, as shown in formula (15):
[0148]
[0149] Based on the idea of center point estimation, it is proposed to use L1 loss to regress the center point offset, as shown in formula (16):
[0150]
[0151] The overall occlusion estimation loss is given by formula (17):
[0152]
[0153] Experiment and analysis
[0154] Training data set and evaluation indicators
[0155] The experiments are mainly conducted using the MOT17 and MOT20 datasets. In addition to the test experiments, the rest of the experiments in this invention use the MOT17 dataset, with the first half of the dataset used as the training set and the second half as the validation set. In the test set experiments, an additional CrowdHuman dataset will be used.
[0156] In terms of evaluation indicators, the standard MOTChallenge evaluation indicators are used, focusing on MOTA, IDF1, IDSw, MT, and ML indicators.
[0157] Training details and parameter settings
[0158] The present invention embeds the module into the FairMOT framework for experimental comparison. To ensure fairness, the same hyperparameters of the network will be used. The Adam optimizer is used for training for 30 rounds, and the learning rate is set to 1*10-4. The loss of the module designed by the present invention uses trainable weights. The training of the present invention will be carried out on NVIDIA RTX 3090.
[0159] Ablation experiment
[0160] The ablation studies of unsupervised embedding training will be conducted on Loss, Negative sample numbers, Temperature and Linear assignment threshold respectively. These ablation experiments are all implemented based on the FairMOT framework.
[0161] Losses:
[0162] The first is the ablation study on the constraints of the Re-ID network. This module consists of four losses: L self Responsible for constraining the features of different objectives, L cross Responsible for constraining the matching positive samples, L cycle Responsible for ensuring the consistency of the forward and reverse matching of adjacent frames, L cc Responsible for reducing the error accumulation caused by missed detection and false detection. The results are shown in Table 1. The last line is the result of supervised training. It can be seen from the table that only L self We can achieve the same results as supervised training by adding L cross , L cycle and L cc After that, IDF1 is improved and IDSw is reduced, which shows that the designed losses have effectively improved the performance of the Re-ID branch, but at the same time caused a decrease in MOTA, that is, the detection performance has decreased. Analysis shows that this is caused by the competition between the detection task and the feature extraction task.
[0163] Table 1 Re-ID network loss ablation experiment
[0164]
[0165] Negative sample numbers:
[0166] L cross and L cycle They are all designed based on contrast loss, and the performance of the model will be affected by the proportion of negative samples. Table 2 shows the performance comparison of the model when using different negative samples. The best results are in bold, where N t is the number of targets in the first frame. It can be found that more negative samples can bring better IDF1 tracking effect, but at the same time it will reduce MOTA detection effect. In order to measure the two indicators, N is finally selected. neg / N t =2.
[0167] Table 2 Ablation experiment of the number of negative samples
[0168]
[0169]
[0170] Temperature:
[0171] Self-supervised contrast loss uses the parameter temperature to adjust the weight of difficult examples.
[24] It is discussed that this value will adapt to different optimal values according to different tasks, so this paper compares the impact of different T on model performance. The best results are shown in bold. From Table 3, it can be seen that dynamically obtaining parameters according to the number of targets will achieve the best results, so we set T = 1 / 2 (log (N t +N t+1 +1))
[0172] Table 3 Temperature comparison test
[0173]
[0174] Linear assignment thresh:
[0175] The present invention discusses the threshold thresh in the Hungarian algorithm. Table 4 shows the tracking performance of different values. The best results are shown in bold. From the experimental results, it can be seen that a higher threshold will lead to a decrease in the number of successful pairings and will not significantly improve the model performance. Based on this, thresh=0.7 is set.
[0176] Table 4 Comparison experiment of thresh and model performance
[0177]
[0178]
[0179] Ablation study for Occlusion:
[0180] To explore the effectiveness of the occlusion module for the model, we embed the trained unsupervised Re-ID module and the trained dynamic occlusion estimation module into the FairMOT framework for experimental comparison. We also use the supervised FairMOT method to fuse with the occlusion estimation module for experimental comparison to test the performance of occlusion estimation on the tracking model. The experimental results are shown in Table 5. It can be seen that the occlusion module proposed in the present invention improves the performance of the tracking model regardless of whether it is based on supervised or unsupervised feature embedding learning.
[0181] Table 5 Ablation experiment of occlusion module
[0182]
[0183] Comparative analysis of test set effects
[0184] We submit our results to the MOT Challenge benchmark to evaluate the performance of our proposed tracker. We compare our method with state-of-the-art supervised and unsupervised multi-object tracking algorithms, and we report the test results on the MOT17 and MOT20 datasets respectively.
[0185] We apply the unsupervised Re-ID network and the dynamic occlusion estimation network to FairMOT. From Table 6, we can see that our method can achieve comparable results with the supervised method on both the MOT17 and MOT20 datasets. This is a very strong result, especially considering that our method is highly generalizable under the JDE paradigm.
[0186] Table 6 Comparison of results with other algorithms on the MOT17 and MOT20 test sets
[0187]
[0188]
[0189] Summarize
[0190] The proposed method is based on the efficient JDE paradigm and uses self-supervised contrastive learning to train the embedding branch. It overcomes the problem that most Tracker models require a large number of instance-level trajectory annotations for training, and avoids the problem that most models that use classification methods to learn embedding networks are difficult to fit. It is based on the fact that the features of the target in each frame must be different, which naturally provides a large number of negative samples for contrastive learning, and we design a loss that pushes the distance of negative samples to increase the distance between the features of different objects in the same frame. At the same time, based on the similarity of objects in adjacent frames, we use simple matching to obtain pseudo-matching pairs of adjacent frames, and use contrastive loss to narrow the distance between the features of similar objects in different frames. Then, based on the idea that forward and backward matching should be consistent, consistency constraints and multi-frame verification strategies are used to further improve the performance of the model. This paper also proposes a dynamic occlusion prediction estimation module to further reduce the problem of frequent ID switching caused by occlusion.
[0191] A large number of experimental results show that the method of the present invention achieves good results in the unsupervised mode in the MOT17 and MOT20 benchmarks, which is comparable to the results of supervised learning. The unsupervised Re-ID module we proposed is a training method that is common to all JDE paradigm models and can be applied to the training of real-time MOT models and can also be used for online learning and updating of MOT models.
[0192] Based on the above content, the following references are proposed
[0193] [1] Du Yanhong, Gao Qingji, Sun Chengqi, et al. Object detection and recognition based on color and shape features. Journal of Northeast Electric Power University, 2005: 48-53.
[0194] [2] Dalal, N, Triggs, B. Histograms of oriented gradients for human detection. In 2005 IEEE computer society conference on computer vision and pattern recognition, 2005.886-893.
[0195] [3]Felzenszwalb P F,Girshick R B,McAllester D,et al.Object detectionwithdiscriminatively trained part-based models[J].IEEE transactions onpatternanalysis and machine intelligence,2009.1627-1645.
[0196] [4]Lowe,D.G.Distinctive image features from scale-invariantkeypoints.Internationaljournal ofcomputer vision,2004.91-110.
[0197] [5]Ojala T,Pietikainen M,Maenpaa T.Multi-resolution grayscale androtationinvariant texture classifica-tion with local binary patterns[J].IEEETrans on PatternAnalysis and Machine Intelligence,2002,24(7):971-987
[0198] [6]Cortes C,Vapnik V.Support-vector networks[J].Machine learning,1995,20:273-297.
[0199] [7]Freund Y,Schapire R E.A decision-theoretic generalization of on-linelearning and an application to boosting[J].Journal of computer andsystemsciences,1997,55(1):119-139..
[0200] [8]Quinlan,J.R.Induction ofdecision trees.Machine learning,1986.81-106.
[0201] [9]MacQueen,J.Some methods for classification and analysisofmultivariateobservations.In Proceedings of the fifth Berkeley symposium onmathematicalstatistics and probability.1967.281-297.
[0202]
[10] Girshick R,Donahue J,Darrell T,et al.Rich feature hierarchiesforaccurate object detection and semantic segmentation[C],Proceedings oftheIEEEconference on computer vision andpattern recognition.2014:580-587.
[0203]
[11] Girshick R.Fast r-cnn[C],Proceedings of the IEEE internationalconference on computervision.2015:1440-1448.
[0204]
[12] Ren S,He K,Girshick R,et al.Faster r-cnn:Towards real-time objectdetection with region proposal networks[J].Advances in neural informationprocessing systems,2015,28.
[0205]
[13] He K,Zhang X,Ren S,et al.Spatial pyramid pooling in deepconvolutional networks for visual recognition[J].IEEE transactions on patternanalysis and machine intelligence,2015,37(9):1904-1916.
[0206]
[14] He K, Gkioxari G, Dollár P, et al.Mask r-cnn[C], Proceedings of the IEEE international conference on computervision.2017:2961-2969.
[0207]
[15] Redmon J, Divvala S, Girshick R, et al. You only look once: Unified, real-time object detection[C] / / Proceedings of the IEEE conference on computervision and pattern recognition. 2016:779-788.
[0208]
[16] Liu W, Anguelov D, Erhan D, et al.Ssd: Single shot multibox detector[C] / / Computer Vision–ECCV 2016:14th European Conference,Amsterdam,The Netherlands,October 11–14,2016,Proceedings,Part I 14.Springer InternationalPublishing,2016:21-37.
[0209]
[17] Zhou X, Wang D, P.Objects as points[J].arXiv preprintarXiv:1904.07850,2019.
[0210]
[18] Li Xi, Liu Xiping, Li Wangcai, et al. A review of contrastive learning research [J]. Microcomputer Systems: 2023, 02: 1-14.
[0211]
[19] Creswell A, White T, Dumoulin V, et al. Generative adversarial networks: An overview [J]. IEEE signalprocessing magazine, 2018, 35(1): 53-65.
[0212]
[20] Kingma D P,Welling M.Auto-encoding variational bayes[J].arXivpreprint arXiv:1312.6114,2013.
[0213]
[21] Wu Z,Xiong Y,Yu S X,et al.Unsupervised feature learning vianon-parametric instance discrimination[C],Proceedings of the IEEE conferenceoncomputer vision and pattern recognition.2018:3733-3742.
[0214]
[22] Tian Y,Krishnan D,Isola P.Contrastive multiview coding[C],ComputerVision–ECCV 2020:16th European Conference,Glasgow,UK,August 23–28,2020,Proceedings,Part XI 16.Springer International Publishing,2020:776-794.
[0215]
[23] He K,Fan H,Wu Y,et al.Momentum contrast for unsupervisedvisualrepresentation learning[C],Proceedings ofthe IEEE / CVF conference oncomputervision and pattern recognition.2020:9729-9738.
[0216]
[24] Chen T,Kornblith S,Norouzi M,et al.A simple framework forcontrastivelearning of visual representations[C],International conference onmachinelearning.PMLR,2020:1597-1607.
[0217]
[25] Grill J B,Strub F,AltchéF,et al.Bootstrap your own latent-anewapproach to self-supervised learning[J].Advances in neuralinformationprocessing systems,2020,33:21271-21284.
[0218]
[26] Hou S,Shi H,Cao X,et al.Hyperspectral imagery classificationbased oncontrastive learning[J].IEEE Transactions on Geoscience and RemoteSensing,2021,60:1-13.
[0219]
[27] Li X,Shi D,Diao X,et al.SCL-MLNet:Boosting few-shot remotesensingscene classification via self-supervised contrastive learning[J].IEEETransactions on Geoscience and Remote Sensing,2021,60:1-12.
[0220]
[28] Wang X,Zhao K,Zhang R,et al.Contrastmask:Contrastive learningtosegment every thing[C],Proceedings of the IEEE / CVF Conference onComputerVision and Pattern Recognition.2022:11604-11613.
[0221]
[29] Han T,Xie W,Zisserman A.Video representation learning bydensepredictive coding[C],Proceedings of the IEEE / CVF InternationalConference onComputer Vision Workshops.2019:0-0.
[0222]
[30] Li H,Li Y,Zhang G,et al.Global and local contrastive self-supervisedlearning for semantic segmentation of HR remote sensing images[J].IEEETransactions on Geoscience and Remote Sensing,2022,60:1-14.
[0223]
[31] Bewley A,Ge Z,Ott L,et al.Simple online and realtime tracking[C],2016 IEEE international conference on image processing(ICIP).IEEE,2016:3464-3468.
[0224]
[32] Wojke N,BewleyA,Paulus D.Simple online and realtime tracking withadeep association metric[C],2017 IEEE international conference onimageprocessing(ICIP).IEEE,2017:3645-3649.
[0225]
[33] Sun S J,Akhtar N,Song H S,et al.Deep affinity network formultipleobject tracking[J].IEEE transactions on pattern analysis and machineintelligence,2019,43(1):104-119.
[0226]
[34] Wang Z,Zheng L,LiuY,et al.Towards real-time multi-object tracking[C],Computer Vision–ECCV 2020:16th European Conference,Glasgow,UK,August23–28,2020,Proceedings,Part XI 16.Springer International Publishing,2020:107-122.
[0227]
[35] Zhang Y,Wang C,Wang X,et al.Fairmot:On the fairness ofdetectionand re-identification in multiple object tracking[J].InternationalJournal ofComputer Vision,2021,129:3069-3087.
[0228]
[36] Liang C,Zhang Z,Zhou X,et al.Rethinking the competitionbetweendetection and ReID in multiobject tracking[J].IEEE Transactions onImageProcessing,2022,31:3182-3196.
[0229]
[37] Peng J,Wang C,Wan F,et al.Chained-tracker:Chaining pairedattentiveregression results for end-to-end joint multiple-object detectionandtracking[C] / / Computer Vision–ECCV 2020:16th European Conference,Glasgow,UK,August 23–28,2020,Proceedings,Part IV 16.Springer InternationalPublishing,2020:145-161.
[0230]
[38] Zhou X,Vladlen K,Philipp K.Tracking objects as points[C],ProceedingofEuropean Conference on ComputerVision,pp.474-490.Springer,Cham,2020.
[0231]
[39] Redmon J,Farhadi A.YOLO9000:better,faster,stronger[C] / / Proceedingsof the IEEE conference on computer vision and patternrecognition.2017:7263-7271.
[0232]
[40] Redmon J,Farhadi A.Yolov3:An incremental improvement[J].arXivpreprint arXiv:1804.02767,2018.
[0233]
[41] Bochkovskiy A,Wang C Y,Liao H Y M.Yolov4:Optimal speedandaccuracy ofobject detection[J].arXiv preprint arXiv:2004.10934,2020.
[0234]
[42] Ge Z,Liu S,Wang F,et al.Yolox:Exceeding yolo series in 2021[J].arXivpreprint arXiv:2107.08430,2021.
[0235]
[43] Law H,Deng J.Cornernet:Detecting objects as paired keypoints[C],Proceedings of the European conference on computer vision(ECCV).2018:734-750.
[0236]
[44] Newell A,Yang K,Deng J.Stacked hourglass networks for humanposeestimation[C],Proceedings of the European conference on computervision.Amsterdam,Springer,2016:483-499.
[0237]
[45] Krizhevsky A,Sutskever I,Hinton G E.Imagenet classification withdeepconvolutional neural networks[J].Communications of the ACM,2017,60(6):84-90.
[0238]
[46] Everingham M,Eslami S M A,Van Gool L,et al.The pascal visualobjectclasses challenge:A retrospective[J].International journal of computervision,2015,111:98-136.
[0239]
[47] Lin T Y,Maire M,Belongie S,et al.Microsoft coco:Common objectsincontext[C],Computer Vision–ECCV 2014:13th European Conference,Zurich,Switzerland,September 6-12,2014,Proceedings,Part V 13.SpringerInternationalPublishing,2014:740-755.
[0240]
[48] Zhang S,Benenson R,Schiele B.Citypersons:A diverse datasetforpedestrian detection[C] / / Proceedings of the IEEE conference on computervisionand pattern recognition.2017:3213-3221.
[0241]
[49] Shao S,Zhao Z,Li B,et al.Crowdhuman:A benchmark fordetectinghuman in a crowd[J].arXiv preprint arXiv:1805.00123,2018.
[0242]
[50] Geiger A,Lenz P,Urtasun R.Are we ready for autonomous driving?thekitti vision benchmark suite[C],2012 IEEE conference on computer visionandpattern recognition.IEEE,2012:3354-3361.
[0243]
[51] Zhang S,Xie Y,Wan J,et al.Widerperson:A diverse dataset fordensepedestrian detection in the wild[J].IEEE Transactions on Multimedia,2019,22(2):380-393.
[0244]
[52] Dendorfer P,Rezatofighi H,MilanA,et al.Mot20:Abenchmark formultiobject tracking in crowded scenes[J].arXiv preprint arXiv:2003.09003,2020.
[0245]
[53] Karthik S,Prabhu A,Gandhi V.Simple unsupervised multi-objecttracking[J].arXiv preprint arXiv:2006.02609,2020.
[0246]
[54] Chung T,Lee H,Cho M A,et al.Multi-object tracking withself-supervised associating network[J].arXiv preprint arXiv:2010.13424,2020.
[0247]
[55] Wei Li,Yuanjun Xiong,Shuo Yang et al.Semi-TCL:Semi-SupervisedTrack Contrastive epresentation Learning.arXiv preprint arXiv:2107.02396,2021.
[0248]
[56] Yu F,Wang D,Shelhamer E,et al.Deep layeraggregation[C] / / Proceedings of the IEEE conference on computer vision andpatternrecognition.2018:2403-2412.
[0249]
[57] Lin T Y,Goyal P,Girshick R,et al.Focal loss for denseobjectdetection[C] / / Proceedings of the IEEE international conference oncomputervision.2017:2980-2988.
[0250]
[58] Wang N,Song Y,Ma C,et al.Unsupervised deeptracking[C] / / Proceedings of the IEEE / CVF conference on computer vision andpatternrecognition.2019:1308-1317.
[0251]
[59] Vaswani A,Shazeer N,Parmar N,et al.Attention is all you need[J].
[0252] Advances in neural information processing systems,2017,30.
[0253]
[60] Zhang Q L,Yang Y B.Sa-net:Shuffle attention for deepconvolutionalneural networks[C] / / ICASSP 2021-2021IEEE InternationalConference onAcoustics,Speech and Signal Processing(ICASSP).IEEE,2021:2235-2239.
[0254]
[61] Liu H,Liu F,Fan X,et al.Polarized self-attention:Towards high-qualitypixel-wise regression[J].arXiv preprint arXiv:2107.00782,2021.
[0255]
[62] Li X,Hu X,Yang J.Spatial group-wise enhance:Improvingsemanticfeature learning in convolutional networks[J].arXiv preprint arXiv:1905.09646,2019.
[0257]
[63] Tolstikhin IO,Houlsby N,Kolesnikov A,et al.Mlp-mixer:An all-mlparchitecture for vision[J].Advances in neural information processingsystems,2021,34:24261-24272.
[0259]
[64] Zhang Y, Sun P, Jiang Y, et al. Bytetrack: Multi-object tracking by associating every detection box [C] / / European conference on computer vision.
[0260] Cham: Springer Nature Switzerland, 2022: 1-21.
[0261] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. Training method of unsupervised multi-target tracking model based on multi-frame verification Re-ID, Features: At least the following steps are included: S1: training an unsupervised Re-ID module, wherein the training of the unsupervised Re-ID module at least includes network structure training for embedding branches, and the network structure training is completed by building a loss function corresponding to the network structure; S2: Use supervised design to train the dynamic occlusion estimation module; S3: training the target detection method by building a loss function corresponding to the target detection method. The target detection method is a center point-based target detection method. The backbone of the target detection method network is DLA-34. The target detection method is a detection branch. S4: Integrate the detection branch, unsupervised Re-ID module and dynamic occlusion estimation module into the FairMOT framework; S5: Based on S1-S4, an unsupervised multi-target tracking model based on multi-frame verification Re-ID is constructed.
2. According to claim 1, the training method of the unsupervised multi-target tracking model based on multi-frame verification Re-ID, Features: The loss function of the target detection method is constructed by at least the following steps: Through the Gaussian kernel function Achieved accurate distribution of target center points on the heat map R / r represents the downsampling multiple of the network; (x, y) represents the original target center coordinates; W, H represent the width and height of the feature map; The GroundTruth of the center point coordinates of target k is (x k ,y k ), the adaptive adjustment of the standard deviation when the target size changes is σ k ; When the position of an object on the heatmap is (i, j), its center offset and target box size are represented as G O and G S , the expressions are shown in formulas (1) and (2) respectively: G S (i,j,:)=(w,h)(2) Because the number of center points in the heat map output by the network accounts for a very low proportion, Focalloss is used to effectively suppress non-target center points, as shown in formula (3); Among them, the predicted heat map is expressed as The value of each point in the heat map reflects the probability that the point belongs to the target center point. The heat map generated by the true value label is represented as Y, and the balance factor is α = 0.25; The target size and center point offset are constrained using L1 loss, as shown in formula (4) and formula (5) respectively: The target box size is learned by formula (4). The target box size is determined by the length and width, and the L1 loss is used; In order to reduce the error caused by downsampling, L1 loss is used to constrain the offset of the center point, as shown in formula (5); The total loss of the center-based object detection network is defined as follows: L det =L cls +λ off L off +λ size L size (6)。 3. According to the training method of the unsupervised multi-target tracking model based on multi-frame verification Re-ID according to claim 1, Features: The loss function of building the corresponding network structure includes at least the following steps: In the unsupervised Re-ID network structure training, there is no longer any trajectory annotation, and the dataset will be represented as Use three consecutive frames of images to construct sub-video segments as model input; the data of each sub-video is represented as Among them I t ∈R c*h*w represents the t-th frame image, Represents the kth frame in the tth frame image t The location corresponding to the target; The feature vectors obtained by extracting features from these sub-videos are expressed as: and where x i They represent the feature vectors of their corresponding targets, k t , k t+1 and k t+2 The target total number corresponding to the video frames respectively; Learn the distinguishability of different target features based on contrastive learning of targets within the same frame; Since self-supervised contrastive learning is for positive sample pairs, and there are no positive samples in the same frame, the contrastive loss is rewritten by retaining the softmax-like operation, then replacing the similarity of the positive sample with the similarity of the negative sample, and finally taking the negative value instead of taking the logarithm; The original calculation formula of the self-supervised contrast loss is shown in formula (7): in, represents the cosine similarity between target i and its positive sample, sim(x i ,x j ) represents the similarity between target i and other targets, τ is the temperature that controls the degree of constraint of difficult samples; m i,j Represents the cosine similarity between the embedding vectors of two targets, as shown in formula (8): By calculating the value corresponding to each point according to formula (8), we obtain the cosine similarity matrix M between all objects between two frames. This matrix can be divided into four sub-matrices; Among them, M t,t and M t+1,t+1 Respectively represent the similarity of the targets in the tth frame and the t+1th frame, M t,t+1 and M t+1,t Indicates the similarity between two frame targets; Given that the targets in the same frame have different feature vectors, a loss L is designed to distinguish different targets. self , as shown in formula (9): L self It only limits the need to obtain different target features in the same frame, but does not model cross-frame targets; In order to learn the similarity of the same target, the Hungarian algorithm is used to match the targets of frame t to frame t+1. The matching pairs are regarded as positive samples, and the loss L is constructed. cross , as shown in formula (10): The purpose of learning the similarity of the same target is to narrow the similarity of matching pairs between adjacent frames. It is believed that the tracking result from frame t to frame t+1 should be consistent with the tracking result from frame t+1 to frame t. Based on this, a constraint condition L is proposed. cycle , as shown in formula (11): If we only focus on the information of two adjacent frames, there may be accumulated errors in tracking, and the performance may degrade during long-term tracking. Multi-frame verification is added to constrain this. It can be considered that the result of matching frame by frame from the tth frame to the t+2th frame should be consistent with the result of matching the tth frame directly with the t+2th frame, and the reverse matching should also be consistent. Therefore, the symmetric JS divergence is selected for constraint, as shown in formula (12): in represents the feature matrix calculated from frame-by-frame matching from the first frame to the third frame, It means that the feature matrix is calculated by matching the first frame directly with the third frame, and the reverse matching is the same; The loss of the unsupervised embedding branch is defined as the sum of the above four losses, namely: L ID =L self +L cross +L cycle +L cc (13) The proportion of negative samples has an impact on the contrast loss performance, so additional negative samples will be sampled from different scenes.
4. The training method of the unsupervised multi-target tracking model based on multi-frame verification Re-ID according to claim 1, Features: The S2 at least comprises the following steps: Given the bounding box coordinates of two targets i and j in a frame, their overlapping area is defined as Define a function H to indicate whether the occlusion is effective. It is only effective when the overlapping area occupies a large part of the target, as shown in formula (14): In the formula, A is the function for calculating the area, τ is a hyperparameter, and o i,j The center point of is defined as the occlusion position of the two targets, and the GT occlusion map Y is rendered using a two-dimensional Gaussian kernel function. x,y ; In the occlusion estimation implementation, an additional CNN head is introduced to obtain the predicted occlusion center heat map Focalloss is used to constrain the occlusion center point heat map loss, as shown in formula (15): Based on the idea of center point estimation, it is proposed to use L1 loss to regress the center point offset, as shown in formula (16): The overall occlusion estimation loss is given by formula (17):
Citation Information
Patent Citations
Multi-target tracking method based on deep learning and multi-task joint training
CN114529581A
Preservative composition including peptide having antibacterial activity and cosmetic composition having the same
KR102215798B1
