A fast video object tracking method based on Siamese network

By introducing the residual connection and channel attention mechanism into the SiamFC twin network and improving the template branch, the problem of the video target tracking algorithm in the existing technology being slow in complex environments and being difficult to fully utilize the target information of the first frame has been solved, and a more complete solution has been achieved. Efficient target location and discrimination capabilities.

CN112164094BActive Publication Date: 2024-10-15SHAANXI DESHENG HEHENG DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011004976.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-22
Publication Date
2024-10-15
Estimated Expiration
2040-09-22

AI Technical Summary

Technical Problem

Existing video target tracking algorithms based on Siamese networks are difficult to maintain efficient tracking performance when faced with complex environments such as target occlusion, scale changes, rapid motion, and interference from similar objects. Moreover, due to their reliance on deep network models, the training complexity is high and the speed is slow. , and it is difficult to fully utilize the target information of the first frame.

Method used

By introducing residual connections and channel attention mechanisms into the SiamFC twin network model, improving the template branch, designing the loss mask of the similarity response map, optimizing the model training process, and using residual connections to fuse shallow structural features and deep semantic features, And in offline training, the weight of the loss value of difficult-to-distinguish samples is increased to enhance the model's ability to distinguish similar semantic targets.

Benefits of technology

It improves the representation ability and generalization ability of the model, enables more accurate target positioning in complex environments, reduces the impact of tracking speed, enhances the discrimination of similar semantic targets, avoids tracking drift and loss, and improves tracking performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112164094B_ABST
    Figure CN112164094B_ABST
Patent Text Reader

Abstract

The present invention discloses a fast video target tracking method based on a twin network, which belongs to the field of pattern recognition and intelligent information processing. The method uses residual connection and channel attention mechanism to improve the template branch of the SiamFC twin network model, obtains the SiamRCCA model, and sets the loss mask Mask of the similarity response graph. n×n , and when training the SiamRCCA model offline, according to Mask n×n Increasing the weight of the loss value of difficult-to-distinguish samples enhances the discrimination of similar semantic targets and solves the problem of tracking drift or loss in complex situations such as target deformation and interference from similar objects during tracking. The SiamRCCA model has an asymmetric structure, that is, the residual connection and attention module are only applied to the template branch, that is, the feature extraction stage of the first frame target, which avoids simply adding network layers in the dual-branch network to affect the tracking speed. At the same time, it makes full use of the target information of the first frame to improve the tracking accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a fast video target tracking method based on a twin network, and belongs to the field of pattern recognition and intelligent information processing. Background Art

[0002] Object tracking is one of the important branches of computer vision and is widely used in human-computer interaction, intelligent robots, autonomous driving, video surveillance, smart cities and other fields. Although visual tracking technology has made great progress in the past few decades, it still faces severe challenges due to the complexity and variability of tracking environment factors such as target occlusion, scale change, fast motion, interference from similar objects, and high real-time and precision requirements.

[0003] In recent years, deep learning has become increasingly mature and its application in the field of target tracking has become more and more extensive. Deep learning can use a large amount of known data to train network models to learn the fitting ability of target feature information, can capture the deep semantic features of the target, and has strong representation capabilities. Therefore, many target tracking algorithms combined with deep convolutional neural networks have begun to emerge and attract a large number of domestic and foreign scholars to continue research and exploration. However, due to the slow speed of deep tracking algorithms based on classification networks and the difficulty of model-extracted features to retain position and texture information, the Siamese Network model began to be applied to target tracking and gradually became dominant:

[0004] Bertinetto et al. (Bertinetto L, Valmadre J, Henriques JF, et al. Fully-convolutional siamese networks for object tracking [C] / / European conference on computer vision. Springer, Cham, 2016: 850-865.) proposed a visual tracking algorithm based on a fully convolutional twin network, SiamFC, which uses two network branches with the same structure and parameters to extract target and candidate domain features, and calculates similarity through convolution operations to estimate the target position. This simple and effective model structure greatly improves tracking speed and accuracy. Since then, twin tracking algorithms based on SiamFC have emerged in an endless stream:

[0005] Li et al. combined the region proposal network with the twin network and proposed the SiamRPN algorithm. By replacing the traditional scale pyramid, a wider sampling interval was obtained, and the classification branch and regression branch were used to distinguish the target and fine-tune the target position of the model output respectively; Li et al. used the deeper VGG-16 convolutional network for feature extraction and proposed the SiamVGG algorithm. By utilizing higher-dimensional target features, a more robust feature expression was obtained, thereby improving the tracking effect; Zhang et al. proposed the SiamDW tracking algorithm. By designing the CIR (cropping-inside residual units) block, the padding operation used in the deep network would alleviate the problem of target spatial information loss, thereby using deeper and wider network models such as ResNet and Inception in the field of target tracking.

[0006] These twin network models based on similarity learning rely on the effectiveness of the target features of the first frame in the video domain. However, most twin network algorithms cannot make full use of the target information of the first frame. Most of them only extract higher-dimensional target features by introducing deeper and more complex network models, which improves the tracking accuracy to a certain extent, but also increases the complexity of model training and seriously affects the tracking speed. Moreover, due to the translation invariance of convolutional features, the twin tracking model is difficult to cope with the interference of objects with similar semantics. Summary of the invention

[0007] In order to solve at least one of the above problems, the present invention provides a fast video target tracking method based on a twin network, the method comprising:

[0008] The template branch of the SiamFC twin network model is improved by using residual connection and channel attention mechanism to obtain the target tracking network model SiamRCCA.

[0009] Set the loss mask Mask of the similarity response map n×n , and when training the SiamRCCA model offline, according to Mask n×n Increase the weight of the loss value of the difficult sample; the loss mask Mask of the similarity response graph n×n for:

[0010] Mask n×n =Norm(Relu(V n×n -V n×n [t]))

[0011] Among them, Norm(·) is the normalization operation, V n×n is the similarity response value map, with a size of n×n; V n×n [t] is the response value of the SiamRCCA model to the true target point t; Relu(·) is the activation function;

[0012] The SiamRCCA model after offline training is used for target tracking.

[0013] Optionally, the use of residual connection and channel attention mechanism to improve the template branch of the SiamFC twin network model includes:

[0014] The second layer convolution feature F of the template branch of the SiamFC twin network model 2,256*12*12 Perform downsampling operation to obtain the downsampling feature F 2d,256*6*6 ;

[0015] The first frame target feature F extracted from the template branch ori,256*6*6 , through global average pooling and fully connected layers, the corresponding feature channel weights are determined and the dependency between each feature channel and its adjacent k = 3 channels is captured to obtain the channel weight coefficient C of 1*256 dimension 1*256 ;

[0016] Using C 1*256 F ori,256*6*6 Each corresponding feature channel is weighted, and the weighted features and downsampled features F are connected through residual connections. 2d,256*6*6 Perform linear fusion to obtain the final template branch features.

[0017] Optionally, the method comprises:

[0018] (1) iteratively training the template branch and the search branch of the SiamRCCA model simultaneously, and increasing the loss value weight of the difficult negative samples by the loss mask during training;

[0019] (2) Input the video frame sequence and the target position (X1, Y1, H1, W1) of the first frame image N1, where X1 is the horizontal coordinate of the target center position, Y1 is the vertical coordinate of the target center position, H1 is the height of the tracking bounding box, and W1 is the width of the tracking bounding box;

[0020] (3) Extract the target feature F1 of the first frame image N1 through the SiamRCCA template branch;

[0021] (4) For the tth frame image N in the video frame sequence t , take (X t-1 ,Y t-1 ,3H t-1 +W t-1 ,3W t-1 +H t-1 ) area as the search box, and scale the search box to S1, S2, and S3 respectively to extract three candidate domains of different sizes, and uniformly perform bicubic interpolation on all candidate domains to 255×255 to obtain three search domains of the same size;

[0022] (5) Extract the deep features of the above three search domains through the SiamRCCA search branch, and calculate the similarity response with the target feature F1 respectively. The obtained response graphs are recorded as: Response1, Response2, Response3;

[0023] (6) Calculate the response graph corresponding to the maximum response value k and the scaling S k , k∈{1,2,3};

[0024] (7) Use cosine window to analyze the response k Perform edge response value suppression;

[0025] (8) By scaling S k and 8) Response after edge response value suppression k The maximum position of the current frame target position (X t ,Y t ,H t ,W t );

[0026] (9) Repeat steps (4) to (8) until all frames in the current sequence are tracked to determine the position of the target in the current frame.

[0027] Optionally, the optimized minimization loss function L(Y n×n ,V n×n )for:

[0028]

[0029] μ is the influence coefficient of the control loss mask in the loss value calculation, V n×n [i] is the response value of the i-th point in the similarity response graph output by the SiamRCCA model; Y n×n [i]∈[0,1] is the true sample category of the corresponding point, where 1 is the center area point of the positive sample and the rest are 0; Mask n×n [i] is the loss mask corresponding to the i-th point in the similarity response graph output by the SiamRCCA model.

[0030] Optionally, when iteratively training the template branch and search branch of the SiamRCCA model, set the initial value of the training learning rate to 0.01, the decay coefficient to 0.8685, train for 50 epochs, use the model activation function as Mish, and use the stochastic gradient descent optimization strategy to minimize the loss function L(Y n×n ,V n×n ) for optimization, where: Y n×nis the real sample distribution, V n×n Similarity response value map output by the SiamRCCA model.

[0031] Optionally, the Norm(·) is:

[0032]

[0033] Where S is a normalized vector.

[0034] Optionally, the scales S1, S2, and S3 are respectively:

[0035] S1=1.0572 -1 , S2=1, S3=1.0572.

[0036] Optional, for Response k When edge response value suppression is performed, the cosine window weight coefficient is set to 0.2356.

[0037] The present invention also provides a target tracking network model SiamRCCA, which is a model obtained by improving the template branch of the SiamFC twin network model using residual connection and channel attention mechanism.

[0038] The present invention also provides an application method of a fast video target tracking method based on a twin network in human-computer interaction, intelligent robots, autonomous driving, video surveillance and smart cities. The fast video target tracking method based on a twin network is a method for target tracking using the above-mentioned target tracking network model SiamRCCA.

[0039] The beneficial effects of the present invention are:

[0040] (1) The present invention uses residual connections to fuse shallow structural features with deep semantic features, thereby improving the representation ability of the model, so that the model can use shallow structural features to achieve more accurate target positioning while using deep semantic information to identify candidate samples.

[0041] (2) The present invention introduces the ECA channel attention module, which enables the model to adaptively weight different semantic target feature channels, thereby improving the generalization ability of the model.

[0042] (3) The present invention designs a weight mask based on correlation response values, which increases the weight of the loss value of similar semantic targets during offline training, so that the model can enhance the discrimination of similar semantic targets in end-to-end offline learning, thereby solving the problem of tracking drift or loss in complex situations such as target deformation and interference from similar objects during tracking.

[0043] (4) The model improvements of the present invention are all concentrated on the offline training and the feature extraction stage of the first frame target of the template branch, making full use of the first frame target information, overcoming the problem of slow tracking speed caused by the existing tracking methods that can only improve the tracking accuracy by introducing deeper and more complex network models. Moreover, the SiamRCCA model has an asymmetric structure, that is, the residual connection and the attention module are only applied to the template branch, that is, the feature extraction stage of the first frame target, avoiding the impact of simply adding network layers in the dual-branch network on the tracking speed, avoiding the impact on the tracking speed to the greatest extent, and improving the tracking performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 The present invention is an implementation flow chart of an embodiment.

[0046] Figure 2 The main structure diagram of the SiamRCCA model of an embodiment is shown in FIG.

[0047] Figure 3 The figure is a visualization diagram of the output features of each convolutional layer of the SiamRCCA model in an embodiment.

[0048] FIG4 is a comparison chart of comprehensive accuracy and tracking success rate of SiamRCCA and the contrast tracking algorithm on the OTB2013 standard data set in one embodiment; Figure 4A is the comprehensive accuracy; Figure 4B To track the success rate.

[0049] FIG5 is a comparison chart of comprehensive accuracy and tracking success rate of SiamRCCA and contrast tracking algorithms on the OTB50 standard data set in one embodiment; Figure 5A is the comprehensive accuracy; Figure 5B To track the success rate.

[0050] FIG6 is a comparison chart of comprehensive accuracy and tracking success rate of SiamRCCA and contrast tracking algorithms on the OTB100 standard data set in one embodiment; Fig. 6A is the comprehensive accuracy; Figure 6B To track the success rate.

[0051] FIG7 is a comparison chart of comprehensive accuracy and tracking success rate of SiamRCCA and contrast tracking algorithm on TempleColor128 standard data set in Example 1; wherein Fig. 7Ais the comprehensive accuracy; Figure 7B To track the success rate. DETAILED DESCRIPTION

[0052] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0053] In order to facilitate those skilled in the art to understand this solution, the basic theories involved in this field are first introduced as follows:

[0054] 1.SiamFC algorithm

[0055] The SiamFC network model consists of two branches with shared weights: a template branch and a search branch, which are used to extract features from the first frame target and the input image respectively, and input the extracted features into the cross-correlation layer for similarity calculation to achieve positioning and tracking of moving targets.

[0056] The key to the SiamFC algorithm is to learn a similarity measurement function f(·) offline to calculate the similarity of the features extracted by the two branches, estimate the target position through the highest response point, and then perform subsequent operations. The function f(·) is as follows:

[0057]

[0058] Where: z is the first frame target image, x is the input search image, is the deep feature extracted by each branch for the corresponding image, * is the cross-correlation operation; b∈R n×n is the bias signal of each position point, where R n×n is an n×n real matrix, where n represents the matrix dimension. f(·) outputs a correlation response score graph between z and x, where the highest value point is the relative position of the target.

[0059] In offline training, SiamFC obtains the optimal model parameters by minimizing the loss function during iterative training. The minimization loss function is as follows:

[0060]

[0061] Where: V n×n [i] is the response value of the i-th point in the similarity response graph output by the model; Y n×n [i]∈[0,1] is the true sample category of the corresponding point, where 1 is the center area point of the positive sample and the rest are 0.

[0062] 2. Channel Attention Mechanism

[0063] The attention mechanism is widely used in target detection, image classification, and human posture estimation. It enables the model to learn the modeling ability of space, feature channels, and background information during training, effectively improving the representation performance of convolutional neural networks. Since different feature channels model the target depth information from different angles, the role played by feature channels for different targets is different, and there is also mutual dependence between channels. Based on this, Hu et al. proposed the SENet algorithm, which significantly improved the model's image classification ability by explicitly modeling the mutual dependence between feature channels and adaptively extracting the weights of different channels; Wang et al. proposed the ECA-Net algorithm based on SENet, which replaced the "Squeeze-Ecxcitation" operation with 1D convolution, and at the same time limited the extraction of the dependency of a single channel to the adjacent k (k<9) channels according to the feature dimension based on the locality of the dependency between channels, significantly improving the model's modeling speed for channel information.

[0064] Embodiment 1:

[0065] This embodiment provides a fast video target tracking method based on a twin network, the method comprising:

[0066] The template branch of the SiamFC twin network model is improved by using residual connection and channel attention mechanism to obtain the target tracking network model SiamRCCA.

[0067] Set the loss mask Mask of the similarity response map n×n , and when training the SiamRCCA model offline, according to Mask n×n Increase the weight of the loss value of the difficult sample; the loss mask Mask of the similarity response graph n×n for:

[0068] Mask n×n =Norm(Relu(V n×n -V n×n [t]))

[0069] Among them, Norm(·) is the normalization operation, V n×n is the similarity response value map, with a size of n×n; V n×n [t] is the response value of the SiamRCCA model to the true target point t; Relu(·) is the activation function;

[0070] The SiamRCCA model after offline training is used for target tracking.

[0071] Specifically, the method includes:

[0072] (1) iteratively training the template branch and the search branch of the SiamRCCA model simultaneously, and increasing the loss value weight of the difficult negative samples by the loss mask during training;

[0073] (2) Input the video frame sequence and the target position (X1, Y1, H1, W1) of the first frame image N1, where X1 is the horizontal coordinate of the target center position, Y1 is the vertical coordinate of the target center position, H1 is the height of the tracking bounding box, and W1 is the width of the tracking bounding box;

[0074] (3) Extract the target feature F1 of the first frame image N1 through the SiamRCCA template branch;

[0075] (4) For the tth frame image N in the video frame sequence t , take (X t-1 ,Y t-1 ,3H t-1 +W t-1 ,3W t-1 +H t-1 ) area as the search box, and scale the search box to S1, S2, and S3 respectively to extract three candidate domains of different sizes, and uniformly perform bicubic interpolation on all candidate domains to 255×255 to obtain three search domains of the same size;

[0076] (5) Extract the deep features of the above three search domains through the SiamRCCA search branch, and calculate the similarity response with the target feature F1 respectively. The obtained response graphs are recorded as: Response1, Response2, Response3;

[0077] (6) Calculate the response graph corresponding to the maximum response value k and the scaling S k , k∈{1,2,3};

[0078] (7) Use cosine window to analyze the response k Perform edge response value suppression;

[0079] (8) By scaling S k and 8) Response after edge response value suppression k The maximum position of the current frame target position (X t ,Y t ,H t ,W t );

[0080] (9) Repeat steps (4) to (8) until all frames in the current sequence are tracked to determine the position of the target in the current frame.

[0081] Embodiment 2:

[0082] This embodiment provides a fast video target tracking method based on a twin network (referred to as SiamRCCA), see Figure 1 , the method comprising:

[0083] Step 1: Based on the SiamFC twin network model, the residual connection and channel attention mechanism are used to improve its template branch to form a new target tracking network model SiamRCCA.

[0084] like Figure 2 As shown, the SiamRCCA algorithm model of the present invention uses the nearest neighbor interpolation method to perform the second layer convolution feature F 2,256*12*12 Perform downsampling operation and connect the obtained sampled features F through residual connection 2d,256*6*6 With the last layer of convolutional features F 5,256*6*6 Linear fusion.

[0085] Through end-to-end offline training, the SiamRCCA model of the present invention can learn the corresponding weights of structural features and semantic features in fusion in iterations, retain the structural information of the target while extracting semantic information, and perform similarity judgment by combining the semantic and structural features of the target, thereby achieving robust target tracking.

[0086] The convolutional neural network generates the target high-dimensional deep features by layer-by-layer calculation and forward propagation, such as Figure 3 As shown in the figure, different convolutional layers have different emphases on representing target information. Deep networks are conducive to extracting target semantic features to achieve higher confidence classification, while shallow layers are more conducive to retaining the target's position, contour, scale, color and other structural features. However, most deep models only use the output features of the final layer to represent samples, which to a certain extent causes loss and waste of model performance.

[0087] Because the attribute of target tracking is essentially different from the classification task, while deeper semantic information is needed to distinguish candidate samples, more abundant shallow structural features are also needed to achieve more accurate target positioning. Therefore, the lightweight convolutional neural network AlexNet proposed for classification is difficult to cope with complex tracking environments, and the deeper convolutional networks such as VGG and RasNet greatly affect the tracking speed. Based on this, the present invention uses improved AlexNet as the model backbone network, by fusing different layers of convolutional features, to maximize the representation ability of the network model while maintaining real-time performance.

[0088] At the same time, different feature channels are extracted by different convolution kernels, corresponding to different types of visual patterns and semantic attributes. For different targets, some feature channels may be more important, while some feature channels may be completely irrelevant. Such feature channels that are irrelevant to the target semantics often affect the similarity calculation process of the model, thereby affecting the tracking results.

[0089] like Figure 2 As shown, the present invention combines ECA to design a channel attention module in the processing of the first frame target, determines the corresponding feature channel weights through global average pooling (GAP) and fully connected layer (FC) for the first frame target features extracted by the template branch, and captures the dependency between each feature channel and its adjacent k=3 channels. Through the introduction of this channel attention mechanism, the model can learn the importance interpretation ability of different feature channels for different semantic targets in end-to-end training, thereby adaptively weighting the feature channels to fully explore and utilize the semantic information of the first frame target and improve the representation ability of the model.

[0090] The target information of the first frame of the video sequence is crucial for target tracking. In addition to structural data such as appearance and position, it can also provide semantic information of the target in the entire video domain, which can be extracted by a deep convolutional neural network (CNN). However, most twin tracking models cannot make full use of the target information of the first frame, and are only used to obtain its similarity response in subsequent frames. Based on this, the residual connection and attention module used by the SiamRCCA algorithm of the present invention are only applied to the template branch, that is, the feature extraction stage of the first frame target, avoiding the simple addition of network layers in the dual-branch network to affect the tracking speed. Thanks to the network model design of this asymmetric structure, SiamRCCA can extract features of higher dimensions (256*6*6, 256*22*22) while significantly reducing the risk of overfitting, thereby generating performance gains, increasing the utilization of the first frame target information while maximizing the real-time tracking performance.

[0091] Step 2: Iteratively train the template branch and search branch of the designed network model on the GOT-10k labeled dataset at the same time. The initial value of the training learning rate is 0.01, the decay coefficient is 0.8685, and the training is 50 epochs. The model activation function is Mish, and the stochastic gradient descent SGD optimization strategy is used to minimize the loss function L(Y n×n ,V n×n ), where: Y n×n is the real sample distribution, V n×n Similarity response value graph output by the model.

[0092] During training, SiamFC directly subtracts the response value map from the target distribution map to calculate the loss value. Although such a simple loss function can achieve a certain effect, it regards all negative samples as ordinary negative samples without distinction, which is not conducive to the model's ability to learn to distinguish interference objects with similar semantics or appearance attributes, that is, difficult-to-distinguish negative samples.

[0093] In order to enhance the model's ability to distinguish similar objects during offline training, the present invention designs and implements a loss mask based on a similarity response graph, which aims to increase the weight of the loss value of the difficult sample in each iterative loss value calculation, so that the model can partially shift the parameter optimization direction to distinguishing difficult samples. n×n The calculation method is as follows:

[0094] Mask n×n =Norm(Relu(V n×n -V n×n [t]))

[0095]

[0096] V in the formula n×n is a similarity response value graph, with a size of n×n (n=15 in the algorithm of the present invention); V n×n [t] is the response value of the model to the true target point t; Relu(·) is an activation function used to filter out difficult samples and only retain candidates whose response values ​​are greater than the true target point; Norm(·) is a normalization operation to avoid excessive weight loss of local points that masks the influence of other positions on the training process; V n×n [t] is the response value of the model to the true target point; Relu(·) is an activation function used to filter out hard-to-classify samples and only retain candidates whose response values ​​are greater than the true target point; Norm(·) is a normalization operation to prevent the local point loss weight from being too large and masking the influence of other positions on the training process.

[0097] Mask n×n It can improve the performance of the tracking model without causing any loss in online tracking speed, and due to the low computational complexity and few related parameters, the impact on offline training is also small. The following formula is the improved loss function, where μ is a hyperparameter that controls the influence coefficient of the mask in the loss calculation.

[0098]

[0099] Step 3, input the video frame sequence and the target position (X1, Y1, H1, W1) of the first frame image N1, where X1 is the horizontal coordinate of the target center position, Y1 is the vertical coordinate of the target center position, H1 is the height of the bounding box, and W1 is the width of the bounding box;

[0100] Step 4: Extract the target feature F1 of N1 through the SiamRCCA template branch;

[0101] Step 5: For the t-th frame image N t , take (X t-1 ,Y t-1 ,3H t-1 +W t-1 ,3W t-1 +H t-1 ) area as the search box, and scale the search box to S1 = 1.0572 -1 , S2=1, S3=1.0572, then three candidate domains of different sizes are intercepted, and all candidate domains are uniformly bicubicly interpolated to a size of 255×255 to obtain three search domains of the same size;

[0102] Step 6: Extract the deep features of the above three search domains through the SiamRCCA search branch, and calculate the similarity response with F1 respectively, and obtain the response graphs: Response1, Response2, Response3;

[0103] Step 7: Calculate the response graph corresponding to the maximum response value k and the scaling S k (k∈{1,2,3});

[0104] Step 8: Use the cosine window to calculate the response k To suppress edge response value, the cosine window weight coefficient is set to 0.2356;

[0105] Step 9: Use S k and 8) the processed Response k The maximum position of the current frame target position (X t ,Y t ,H t ,W t );

[0106] Step 10: Repeat steps 5 to 9 until all frames in the current sequence are tracked.

[0107] In order to verify the tracking performance of the above method in target tracking, a simulation experiment is performed to compare the method proposed in the present invention with the currently commonly used target tracking algorithm as follows:

[0108] 1. Simulation conditions and parameters

[0109] The SiamRCCA algorithm of the present invention is implemented based on the CUDA 10.0 deep learning framework and the PyTorch 1.2.0 programming language. The experimental operating system is Ubuntu 16.04, the memory is 64GB, the CPU is Intel i9-9900x 3.5GHz, and the GPU is NVIDIA RTX2080Ti.

[0110] The model is trained offline on the GOT-10k labeled dataset (http: / / got-10k.aitestunion.com / ), with an initial learning rate of 0.01 and a decay coefficient of 0.8685; 50 epochs are trained; the model activation function is Mish; μ in formula (4) is set to 3, and the cosine window weight coefficient is set to 0.2356.

[0111] 2. Simulation content and result analysis

[0112] In order to verify the effectiveness of the tracking method using SiamRCCA in the above embodiment, comparative experiments are conducted on the OTB2013, OTB50, OTB100 and TempleColor128 public data sets. The comparison algorithms mainly include the currently commonly used target tracking algorithms:

[0113] SiamFC; Bertinetto et al. (Bertinetto L, Valmadre J, Henriques JF, et al. Fully-convolutional siamese networks for object tracking [C] / / European conference on computer vision. Springer, Cham, 2016: 850-865.);

[0114] ACFN (Choi J, Jin Chang H, Yun S, et al. Attentional correlation filter network for adaptive visual tracking [C] / / Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 4807-4816.);

[0115] SiamTri(Dong X,Shen J.Triplet loss in siamese network for objecttracking[C] / / Proceedings of the European Conference on Computer Vision(ECCV).2018:459-474.);

[0116] DCFNet(Bertinetto L,Valmadre J,Henriques J F,et al.Fully-convolutional siamese networks for object tracking[C] / / European conference oncomputer vision.Springer,Cham,2016:850-865.);

[0117] SRDCF(M.Danelljan,G. F.Shahbaz Khan,and M.Felsberg.Learningspatially regularized correlation filters for visual tracking.In ICCV,2015.);

[0118] staple(Bertinetto L,Valmadre J,Golodetz S,et al.Staple:Complementarylearners for real-time tracking[C] / / Proceedings of the IEEE conference oncomputer vision and pattern recognition.2016:1401-1409.);

[0119] SiamRPN(Li B,Yan J,Wu W,et al.High performance visual tracking withsiamese region proposal network[C] / / Proceedings of the IEEE Conference onComputer Vision and Pattern Recognition.2018:8971-8980.);

[0120] UDT+(Wang N,Song Y,Ma C,et al.Unsupervised deep tracking[C] / / Proceedings of the IEEE Conference on Computer Vision and PatternRecognition.2019:1308-1317.);

[0121] In the comparative simulation experiment, quantitative analysis is used, that is, the tracking performance is judged by calculating the evaluation index. The evaluation indexes used in the experiment are tracking accuracy (Precision) and tracking success rate (Success Rate).

[0122] The comparative simulation experiment results are shown in Figure 4-7:

[0123] Figure 4A and Figure 4B The comparison charts of comprehensive accuracy and tracking success rate of SiamRCCA and the above-mentioned tracking algorithms on the OTB2013 standard dataset are shown respectively; Figure 5A and Figure 5B The comparison charts of comprehensive accuracy and tracking success rate of SiamRCCA and contrast tracking algorithm on OTB50 standard dataset are shown respectively; Fig. 6A and Figure 6B The following are the comparison charts of comprehensive accuracy and tracking success rate of SiamRCCA and comparative tracking algorithm on the OTB100 standard dataset.

[0124] It can be seen that SiamRCCA shows better tracking accuracy and success rate than the above-mentioned comparison algorithms on all OTB standard datasets; in OTB100, which has the most video sequences, SiamRCCA's comprehensive tracking accuracy is 86.2% and the success rate is 64.7%, which are 5.8% and 5.5% higher than SiamFC, and 1.1% and 1% higher than the other best comparison algorithms.

[0125] Fig. 7A and Figure 7B The following are the comparison curves of the average tracking accuracy and success rate of SiamRCCA and other comparative tracking algorithms on the TempleColor128 dataset. It can be seen that SiamRCCA still maintains superior tracking performance on TempleColor128, with the tracking accuracy and success rate increased by 1% and 0.7% respectively compared with the best comparative model, and increased by 4.9% and 5.6% respectively compared with SiamFC, indicating that the comprehensive performance of the present invention on this dataset is significantly improved.

[0126] For the 11 different video attributes contained in the OTB dataset: illumination change (IV), scale change (SV), target occlusion (OCC), target deformation (DEF), motion blur (MB), fast motion (FM), plane rotation (IPR), out-of-plane rotation (OPR), target out of view (OV), low resolution (LR) and background similarity interference (BC), Table 1 quantitatively shows the average tracking accuracy (Precision) of SiamRCCA and various comparison tracking models under these complex tracking factors.

[0127] Table 1 Quantitative comparison results of tracking accuracy of 11 video attributes between SiamRCCA and other comparison algorithms on the OTB100 dataset

[0128]

[0129] Table 1 is a quantitative comparison of the tracking success rates of SiamRCCA and the comparative tracking algorithms on 11 different video attributes on the OTB100 dataset. The bold fonts in the table are the optimal values ​​in each row, and the italics are the suboptimal values ​​in each row. It can be seen that SiamRCCA maintains the optimal performance in 7 of the 11 complex tracking factors in the OTB dataset, and the rest have achieved suboptimal performance; and it is significantly ahead of SiamFC in dealing with all the above tracking factors. Among them, the tracking accuracy is improved by 10%, 5.6% and 11.4% respectively when the target is occluded, the appearance is deformed, and the interference of similar objects is compared with SiamFC.

[0130] Table 2 shows the comparative experimental results of tracking success rate and tracking frame rate (FPS, frames per second) of SiamRCCA based on the OTB100 dataset in this experimental environment with the cutting-edge twin network derivative models: SiamVGG, SiamDW, RASNet, SiamRPN, UDT+ and SiamFC, where:

[0131] SiamVGG(Li Y, Zhang X.SiamVGG:Visual tracking using deeper siamesenetworks[J].arXiv preprint arXiv:1902.02804,2019.);

[0132] SiamDW(Zhang Z,Peng H.Deeper and wider siamese networks for real-timevisual tracking[C] / / Proceedings of the IEEE Conference on Computer Vision andPattern Recognition.2019:4591-4600.);

[0133] RASNet (Wang Q, Teng Z, Xing J, et al. Learning attentions: residualattentional siamese network for high performance online visual tracking [C] / / Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 4854-4863.).

[0134] Table 2 Comparison results of tracking success rate and frame rate of SiamRCCA and other comparison algorithms on the OTB100 dataset

[0135]

[0136] As can be seen from Table 2, SiamRCCA is superior to RASNet and SiamRPN in tracking success rate and tracking speed; the AUC value is greatly improved when the frame rate is slightly lower than SiamFC and SiamTri; although the AUC is 0.7%, 0.7% and 0.9% lower than SiamDW, SiamVGG and TADT respectively, the tracking frame rate of SiamRCCA is about 1.5 to 2.5 times that of the latter. It can be seen that SiamRCCA can better balance the target positioning capability and tracking speed, can meet the real-time requirements in a variety of application environments, and has good comprehensive tracking performance.

[0137] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.

[0138] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A fast video target tracking method based on a twin network, characterized in that: The method comprises: The template branch of the SiamFC twin network model is improved by using residual connection and channel attention mechanism to obtain the target tracking network model SiamRCCA. Set the loss mask Mask of the similarity response map n×n , and when training the SiamRCCA model offline, according to Mask n×n Increase the weight of the loss value of the difficult sample; the loss mask Mask of the similarity response graph n×n for: Mask n×n =Norm(Relu(V n×n -V n×n [t])) Among them, Norm(·) is the normalization operation, V n×n is the similarity response value map, with a size of n×n; V n×n [t] is the response value of the SiamRCCA model to the true target point t; Relu(·) is the activation function; The SiamRCCA model after offline training is used for target tracking; The method of improving the template branch of the SiamFC twin network model by using residual connection and channel attention mechanism includes: The second layer convolution feature F of the template branch of the SiamFC twin network model 2,256*12*12 Perform downsampling operation to obtain the downsampling feature F 2d,256*6*6 ; The first frame target feature F extracted from the template branch ori,256*6*6 , through global average pooling and fully connected layers, the corresponding feature channel weights are determined and the dependency between each feature channel and its adjacent k=3 channels is captured to obtain the channel weight coefficient C of 1*256 dimension 1*256 ; Using C 1*256 F ori,256*6*6 Each corresponding feature channel is weighted, and the weighted features and downsampled features F are connected through residual connections. 2d,256*6*6 Perform linear fusion to obtain the final template branch features; The method comprises: (1) iteratively training the template branch and the search branch of the SiamRCCA model simultaneously, and increasing the loss value weight of the difficult negative samples by the loss mask during training; (2) Input the video frame sequence and the target position (X1, Y1, H1, W1) of the first frame image N1, where X1 is the horizontal coordinate of the target center position, Y1 is the vertical coordinate of the target center position, H1 is the height of the tracking bounding box, and W1 is the width of the tracking bounding box; (3) Extract the target feature F1 of the first frame image N1 through the SiamRCCA template branch; (4) For the tth frame image N in the video frame sequence t , take (X t-1 ,Y t-1 ,3H t-1 +W t-1 ,3W t-1 +H t-1 ) area as the search box, and scale the search box to S1, S2, and S3 respectively to extract three candidate domains of different sizes, and uniformly perform bicubic interpolation on all candidate domains to 255×255 to obtain three search domains of the same size; (5) Extract the deep features of the above three search domains through the SiamRCCA search branch, and calculate the similarity response with the target feature F1 respectively. The obtained response graphs are recorded as: Response1, Response2, Response3; (6) Calculate the response graph corresponding to the maximum response value k and the scaling S k , k∈{1,2,3}; (7) Use cosine window to analyze the response k Perform edge response value suppression; (8) By scaling S k And the Response after edge response value suppression k The maximum position of the current frame target position (X t ,Y t ,H t ,W t ); (9) Repeat steps (4) to (8) until all frames in the current sequence are tracked to determine the position of the target in the current frame; The loss function L(Y n×n ,V n×n )for: μ is the influence coefficient of the control loss mask in the loss value calculation, V n×n [i] is the response value of the i-th point in the similarity response graph output by the SiamRCCA model; Y n×n [i]∈[0,1] is the true sample category of the corresponding point, where 1 is the center area point of the positive sample and the rest are 0; Mask n×n [i] is the loss mask corresponding to the i-th point in the similarity response graph output by the SiamRCCA model; When iteratively training the template branch and search branch of the SiamRCCA model, the initial value of the training learning rate is set to 0.01, the decay coefficient is 0.8685, the training is 50 epochs, the model activation function is Mish, and the stochastic gradient descent optimization strategy is used to minimize the loss function L(Y n×n ,V n×n ) for optimization, where: Y n×n is the real sample distribution, V n×n Similarity response value graph output by SiamRCCA model; The Norm(·) is: Where S is a normalized vector.

2. The method according to claim 1, characterized in that The scales S1, S2, and S3 are respectively taken as follows: <h2 style=";text-align:left;direction:ltr">S1 = 1.0572<h2 style=";text-align:left;direction:ltr"> -1 <h2 style=";text-align:left;direction:ltr"> S2 = 1, S3 = 1.0572.

3. The method according to claim 2, characterized in that Response k When edge response value suppression is performed, the cosine window weight coefficient is set to 0.2356.

4. The method according to any one of claims 1 to 3, characterized in that: This method is applied in human-computer interaction, intelligent robots, autonomous driving, video surveillance and smart cities.