A method and device for visual tracking of multiple moving targets

By integrating the intra-class loss function with intra-class constraints in computer vision tracking, the feature distance between targets of different categories and the same category is increased, which solves the tracker drift problem caused by similar target interference in visual tracking, and improves the performance of multi-moving target tracking. Accuracy and real-time performance of network models.

CN114399534BActive Publication Date: 2024-10-29XIAN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210049218.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-10-29
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

Existing computer vision tracking technology is prone to tracker drift when dealing with scenes with similar targets, and it is difficult to effectively distinguish the characteristics of different target entities of the same category, resulting in a decrease in tracking accuracy.

Method used

By fusing the intra-class constrained intra-class loss function on the basis of the original loss function, a total loss function is constructed to increase the feature distance between different categories of targets and different entities of the same category, and the ImageNet data set is used to conduct deep convolutional neural networks. Offline training ensures that the network model has both inter-class and intra-class feature discrimination capabilities in visual tracking.

Benefits of technology

Without increasing the burden of network training, the accuracy of visual tracking of multi-moving targets is improved, the feasibility and real-time performance of the network model are enhanced, and the problem of insensitive feature recognition of different target entities of the same category is effectively solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114399534B_ABST
    Figure CN114399534B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and device for visual tracking of multiple moving targets, wherein the method includes two steps of offline pre-training of a model and online visual tracking. In the offline pre-training stage of the model, a total loss function is formed by fusing an intra-class loss function with an intra-class constraint on the basis of an original loss function with an inter-class constraint, and the model is trained offline by replacing the original loss function with the total loss function, thereby satisfying the requirement that the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category are increased at the same time. Through the technical solution disclosed in the present invention, the visual tracking task solves the defect of the prior art being insensitive to the distinction between different entities of the same category without increasing the burden of network model training and the network model having good feasibility and real-time performance, thereby improving the accuracy of visual tracking of multiple moving targets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision tracking, and in particular relates to a method and device for visual tracking of multiple moving targets. Background Art

[0002] Modern computer vision tracking usually performs network model pre-training under the framework of image classification. This training method encourages the extraction of inter-class features between targets of different categories and is insensitive to intra-class features between different target entities of the same category. However, one of the problems of visual tracking is the interference of similar targets. That is, in scenes with a large number of similar instances of the same category, interference from similar targets often causes tracker drift, which brings great difficulties to visual tracking. A visual tracking method is needed that does not increase the burden of network training and can improve the extraction of intra-class features of different target entities of the same category. Summary of the invention

[0003] The purpose of the present invention is to provide a method and device for visual tracking of multiple moving targets. By optimizing the loss function for network training, the network model is enabled to simultaneously increase the feature spacing of targets of different categories and different target entities of the same type, thereby solving the defect that the feature distinction of different target entities of the same type in multi-target visual tracking under the current image classification framework is not high.

[0004] The technical solution provided by the present invention to solve the technical problem is as follows:

[0005] In a first aspect, the present invention provides a method for visual tracking of multiple moving targets, comprising the steps of: offline model pre-training and online visual tracking, wherein, in the offline model pre-training stage, a total loss function is formed by fusing an intra-class loss function with an intra-class constraint on the basis of an original loss function with an inter-class constraint, and the total loss function replaces the original loss function to perform offline training on the model, so as to simultaneously increase the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category.

[0006] In a second aspect, the present invention provides a multi-moving target visual tracking device, including: a model pre-training module, used to construct a total loss function by fusing an intra-class loss function with an intra-class constraint on the basis of an original loss function with an inter-class constraint, replacing the original loss function with the total loss function, and selecting the ImageNet data set to perform offline training on a deep convolutional neural network to meet the simultaneous increase in the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category; an online visual tracking module, used to acquire a video image, input an initial frame image into a deep convolutional neural network that has undergone offline model pre-training for training to obtain multiple tracking targets, track each tracking target separately in the video image, and during the tracking period, start a correction strategy according to a fixed period to correct the target quantity and position of each tracking target until the last frame.

[0007] The beneficial effects of the present invention include:

[0008] The present invention constructs a method that can simultaneously increase the feature spacing of targets of different categories and replace the original loss function with the loss function of different target entities of the same category to perform offline pre-training of the network model and then perform online visual tracking. The visual tracking task does not increase the burden of network model training and the network model has good feasibility and real-time performance. This solves the defect of the prior art that feature recognition of different target entities of the same category is insensitive, and improves the accuracy of visual tracking of multiple moving targets. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The present invention will be further described below in conjunction with the accompanying drawings.

[0010] Figure 1 It is a flow chart of a method for visual tracking of multiple moving targets provided by an embodiment of the present invention.

[0011] Figure 2 It is a module structure diagram of a multi-moving target visual tracking device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0012] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0013] Please refer to Figure 1The present invention provides a multi-moving target visual tracking method, comprising the steps of: model offline pre-training and online visual tracking. In the model offline pre-training stage, an intra-class loss function with an intra-class constraint is fused on the basis of an original loss function with an inter-class constraint to form a total loss function. The total loss function replaces the original loss function to perform offline training on the model, so as to meet the simultaneous increase of the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category.

[0014] Specifically, the mainstream structure of modern visual tracking can be divided into a feature extraction backbone network, a feature fusion module, and a bounding box prediction module. Traditional backbone networks are usually pre-trained under the framework of image classification. This training method encourages the backbone network to extract only inter-class features. However, visual tracking not only needs to distinguish between targets and background clutter belonging to other categories, but also needs to distinguish between instances belonging to the same category. This requires the feature network to extract features with inter-class and intra-class distinguishability. Through the multi-moving target visual tracking network training method, the original backbone network structure, training data, hyperparameters, etc. are not changed, and no additional workload and additional calculation are required. Compared with the traditional image classification backbone network, the multi-moving target visual tracking network is sensitive to both intra-class and inter-class changes; therefore, it is very beneficial for visual tracking. The multi-moving target visual tracking network can directly replace the traditional image classification backbone network without adding any connection modules, so it is very convenient to use.

[0015] Visual tracking is a fundamental task in computer vision (CV) with applications such as video surveillance, robotics, and human-computer interaction. Its goal is to predict the position and shape of a target in subsequent video frames based on the target information specified in the first frame. In the past decade or so, visual tracking based on convolutional neural networks (CNNs) has made remarkable progress. However, designing a high-precision tracker remains a challenging task due to many factors, one of the most important of which is interference from similar targets (IST). In scenarios with a large number of instances of the same type of targets, IST often causes tracker drift, bringing great difficulties to visual tracking. In typical basketball sports, players are different instances of the same category of targets. Players, especially those wearing the same color uniforms, look very similar, which can easily cause tracker drift. At this point, the tracker may lose the correct target and instead indicate a wrong target that is similar to the correct target, and the IST problem needs to be solved.

[0016] Most state-of-the-art (SOTA) tracking techniques use deep learning to train robust trackers based on extracted features of the target object and its surroundings to solve the tracking problem. In recent years, a new trend has emerged in the field of object tracking, which is to use CNNs trained on large-scale classification databases (such as ImageNet) to extract features of the target of interest, and then use the features to obtain tracking results through correlation filtering, feature matching, and attention mechanisms. This approach fully utilizes the powerful representation ability of deep features and avoids directly training large-scale CNNs when there is insufficient tracking data. The original backbone network is used to extract image features to complete the classification task; therefore, the features extracted by the backbone network carry rich high-level semantic information and can effectively distinguish different categories of targets. In addition, these features are related to the target visual cues. Therefore, the use of the backbone network can significantly improve the accuracy of target tracking.

[0017] However, object tracking based on categorical features is risky. Unlike visual classification tasks that focus only on categorical features, visual tracking may require searching for a specific target in the entire field of view that may contain other targets belonging to the same category. Traditional pre-trained backbone networks only focus on increasing inter-class differences, and the extracted deep features are insensitive to intra-class changes. Therefore, these features are not effective enough for trackers to accurately distinguish between targets and distractors with the same category label. This is the main reason why modern trackers cannot effectively handle the IST problem. In the backbone network, higher network layers can capture semantic concepts related to the target category, while lower network layers can encode more discriminative features to capture intra-class changes. Therefore, using multiple layers of features or filtering features helps to distinguish intra-class instances. However, for scenes where very similar instances exist, such as basketball sequences, the performance of this method is also poor. In addition, some methods use tracking data to fine-tune the backbone network, which improves the intra-class instance recognition ability of the backbone network to a certain extent. However, due to the small amount of tracking data, this improvement is very limited.

[0018] By proposing clever training techniques to guide the backbone network to extract features that are sensitive to both inter-class and intra-class changes, multi-moving target visual tracking can help modern trackers better solve the IST problem and achieve higher tracking accuracy compared to the original backbone network.

[0019] Preferably, the method of fusing a loss function with intra-class constraints on the basis of the original loss function with inter-class constraints is: inter-class Add an intra-class loss function L intra-class , the total loss function after fusion is: L ins-aware =L inter-class +γL intra-class ,γ is the adaptive weight parameter used to balance the two loss functions.

[0020] Specifically, a backbone network with the same network structure is retrained on the same classification dataset (such as ImageNet) as the original backbone network. The features extracted by the backbone network can effectively distinguish different classes of objects and different instances belonging to the same class. To achieve this goal, a total loss function L is constructed by modifying the training process of the classification network. ins-aware To guide the classification network to output classification vectors with both intra-class and inter-class discriminative power, and through back propagation, the backbone network learns how to extract features with both intra-class and inter-class discriminative power. The loss function includes L inter-class and L intra-class Two parts. Among them, L inter-class It is used to guide the backbone network to learn features with inter-class discrimination ability, while L intra-class Used to guide the backbone network to learn features with intra-class discrimination capabilities.

[0021] Preferably, L inter-class The cross entropy loss function is used to guide the backbone network to learn features with inter-class discrimination ability between different categories of targets, which is constructed as follows: For the i-th input image belonging to the k-th class, by minimizing L inter-class Constrain the backbone network to output a vector Y that is as close as possible to the corresponding true class i =Y k =(y i1 ,…,y ik ,…,y iM ) T The classification vector P i =(p i1 ,…,p ik ,…,p iM ) T , Y k is the label vector.

[0022] Specifically, L inter-class Use the cross entropy loss function commonly used in image classification networks:

[0023]

[0024] For the i-th input image belonging to the k-th class, the classification network outputs a vector Y as close as possible to the corresponding true class by minimizing (1) i =Y k =(y i1 ,…,y ik ,…,y iM ) T The classification vector P i =(p i1 ,…,p ik ,…,piM ) T Here, Y k is a one-hot label vector. During the training of the classification network, the classification vectors of all similar images are constrained to gradually approach their label vectors, and clear boundaries are formed between different image categories. Through back propagation, the backbone network is also guided to tend to generate features with similar characteristics.

[0025] Preferably, L intra-class It is used to guide the backbone network to generate features with strong intra-class discrimination ability. Assuming that K samples belong to class k, the variance of their classification vector is: Therefore L intra-class is constructed as

[0026] Specifically, L inter-class The constraint helps the backbone network generate features with strong inter-class discrimination ability. However, this causes similar features to be too close, which makes it difficult to distinguish instances belonging to the same class. To improve this unfavorable situation, L intra-class Guide the backbone network to generate features with strong intra-class discrimination capabilities. intra-class The classification network is encouraged to output classification vectors with larger variance for images of the same category to increase the discreteness of its classification vector; then, the backbone network is guided to output features with intra-class discrimination capabilities through back propagation. Assuming that K samples belong to class k, the variance of their classification vectors is

[0027]

[0028] Therefore, L intra-class is constructed as

[0029]

[0030] The total loss consists of intra-class loss and inter-class loss:

[0031] L ins-aware =L inter-class +λL intra-class

[0032] By the maximum L ins-aware Under the constraints, the classification network can learn how to generate classification vectors that have both intra-class and inter-class discrimination capabilities. ins-aware The role of is: through the joint action of intra-class constraints and inter-class constraints, the inter-class distance and intra-class distance of the features are increased at the same time, which is very beneficial to the target tracking task.

[0033] Preferably, the model offline pre-training method is: inputting the ImageNet data set as training data into the deep convolutional neural network, and using the total loss function to optimize the parameters in the neural network using the gradient back propagation algorithm.

[0034] Specifically, the backbone network of deep models used in visual tracking (CV) usually refers to convolutional layers composed of convolution and pooling operations, which are used to extract features from the input image. The commonly used backbone networks are usually borrowed from the most famous image classification networks. These classification networks take images as input to a series of convolutional layers, which are used to extract semantic information that is crucial for many visual tasks. The convolutional layers are followed by fully connected (FC) layers, which are usually used to predict the category of the input image. CNNs require a large amount of training data and are trained on the large-scale ImageNet dataset. In visual tracking tasks, transferring pre-trained convolutional layers as the backbone network can avoid large-scale CNNs from being directly trained when there is insufficient tracking data. At present, the commonly used backbone networks in visual tracking methods are mainly from image classification networks, such as AlexNet, VGGNet, ResNet and their improved versions.

[0035] Image classification networks usually consist of a series of convolutional layers and several FC layers. These convolutional layers are often used as the backbone feature network for various visual tasks. Classification networks usually work like this: an image is input to the backbone network and then passes through a series of convolutional layers. Each convolutional layer outputs a set of feature maps, which are also the inputs to the next convolutional layer. The features output from the last convolutional layer of the backbone network are merged or flattened into a feature vector. The feature vector outputs a category encoding vector through the last few FC layers, with the elements corresponding to the input image category as 1 and the other elements as 0. This requires that all images belonging to the same category output the same classification vector after passing through the classification network. This requirement is passed to each convolutional layer of the backbone network through backpropagation during network training to restrict each convolutional layer to output features as close as possible in the feature space for images belonging to the same category. The features of each network layer are densely distributed in the feature space. Moreover, the closer to the output layer, the more concentrated the feature distribution. The features of similar instances are too close, which is not conducive to visual tracking tasks. This is because unlike image classification tasks, which only need to distinguish between objects of different categories, visual tracking tasks not only need to distinguish between objects of different categories, but also need to distinguish between similar instances. If the features of these instances are too close in the feature space, it will be difficult to distinguish the instances. Visual tracking requires the backbone network to provide features that can easily distinguish objects belonging to the same or different categories.

[0036] Preferably, online visual tracking includes the steps of acquiring a video image, inputting an initial frame image into a deep convolutional neural network that has been pre-trained offline to train a model to obtain multiple tracking targets, tracking each tracking target individually in the video image, and starting a correction strategy at a fixed period during tracking to correct the target quantity and position of each tracking target until the last frame.

[0037] Please refer to Figure 2 The present invention provides a multi-moving target visual tracking device, comprising: a model pre-training module, which is used to construct a total loss function by fusing an intra-class loss function with an intra-class constraint on the basis of an original loss function with an inter-class constraint, replacing the original loss function with the total loss function, selecting an ImageNet data set to perform offline training on a deep convolutional neural network to meet the requirement that the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category are increased at the same time, and the total loss function, the original loss function and the intra-class loss function are the same as those described in the above-mentioned multi-moving target visual tracking classification method; an online visual tracking module, which is used to obtain a video image, input an initial frame image into a deep convolutional neural network that has been pre-trained offline by the model for training to obtain multiple tracking targets, and track each tracking target separately in the video image, and during the tracking period, start a correction strategy according to a fixed period to correct the target quantity and position of each tracking target until the last frame.

[0038] In general, the multi-moving target visual tracking method can be implemented by using the same network structure, initialization method, training data, and hyperparameters as the traditional image classification and tracking algorithm. Therefore, building a multi-moving target tracking method does not increase the workload or computational load of the tracking method used. In addition, the multi-moving target tracking method can directly replace the existing tracking method without any other connection modules. Therefore, this method is extremely convenient to use.

[0039] The technical solutions provided by the embodiments of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the methods and core ideas of the present invention. For those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. This specification should not be understood as a limitation on the present invention.

Claims

1. A method for visual tracking of multiple moving targets, comprising the steps of: offline model pre-training and online visual tracking, characterized in that: In the offline pre-training stage of the model, an intra-class loss function with an intra-class constraint is fused to form a total loss function based on the original loss function with an inter-class constraint, and the total loss function replaces the original loss function to perform offline training on the model, so as to meet the requirement that the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category are increased at the same time; The method of fusing a loss function with intra-class constraints on the basis of the original loss function with inter-class constraints is as follows: Add an intra-class loss function , the total loss function after fusion is: = + , is the adaptive weight parameter used to balance the two loss functions; Said The cross entropy loss function is used to guide the backbone network to learn the features of inter-class discrimination ability between different categories of targets, which is constructed as , for the i-th input image belonging to the k-th class, by minimizing Constrain the backbone network to output a vector that is as close as possible to the true class vector The classification vector , is the label vector; Said It is used to guide the backbone network to generate features with strong intra-class discrimination ability. Assume that K samples belong to class, the variance of its classification vector is ,therefore is constructed as .

2. The method for visually tracking multiple moving targets as claimed in claim 1, characterized in that: The model offline pre-training method is: inputting the ImageNet data set as training data into the deep convolutional neural network, and using the total loss function to optimize the parameters in the neural network using the gradient back propagation algorithm.

3. The method for visually tracking multiple moving targets as claimed in claim 2, characterized in that: The online visual tracking includes the steps of acquiring a video image, inputting an initial frame image into a deep convolutional neural network that has been pre-trained offline by a model for training to obtain multiple tracking targets, tracking each tracking target individually in the video image, and starting a correction strategy according to a fixed period during tracking to correct the target quantity and position of each tracking target until the last frame.

4. A multi-moving target visual tracking device, used to implement the method described in any one of claims 1 to 3, characterized in that: include: The model pre-training module is used to construct a total loss function by integrating an intra-class loss function with an inter-class constraint on the basis of the original loss function with an inter-class constraint. The original loss function is replaced by the total loss function, and the ImageNet dataset is used to perform offline training on the deep convolutional neural network to meet the requirements of increasing the inter-class feature vector spacing between targets of different categories and the intra-class feature vector spacing between different entities of the same category at the same time. The online visual tracking module is used to acquire video images, input the initial frame image into the deep convolutional neural network that has been pre-trained offline for training to obtain multiple tracking targets, and track each tracking target separately in the video image. During the tracking period, the correction strategy is started according to a fixed period to correct the target number and position of each tracking target until the last frame.