Single target tracking method based on target perception enhancement-twin memory network

By introducing a dynamic dual-level sparse attention mechanism and target perception module into the twin network, combined with the memory network, the problem of insufficient robustness of the twin network when the target is occluded is solved, and more accurate target position prediction and state maintenance are achieved. Improved the robustness and adaptability of the tracker.

CN118735959APending Publication Date: 2024-10-01ZHENGZHOU UNIVERSITY OF LIGHT INDUSTRY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410859580.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the Siamese network is not robust enough when the target is occluded, making it difficult to accurately predict the target position and status. Moreover, the consistent representation of the overall target by the memory network makes it difficult to maintain effective feature representation in the case of occlusion.

Method used

Combining memory network and twin network, a dynamic dual-level sparse attention mechanism is introduced to focus attention on important areas around the target through the target perception module, reducing background interference and improving robustness.

Benefits of technology

Significantly improves the tracker's robustness in scenes where the target is occluded, can predict the target position and status more accurately, and enhances adaptability to target appearance changes and environmental understanding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735959A_ABST
    Figure CN118735959A_ABST
Patent Text Reader

Abstract

The invention provides a single target tracking method based on a target perception enhancement-twin memory network, and the method comprises the following steps: S0, building a tracker model which comprises a backbone network, a target perception module, a cross attention module and a prediction head; the method comprises the following steps: S1, respectively carrying out feature extraction on a memory branch and a search branch to obtain a memory branch feature map and a search branch feature map; s2, the target perception module divides the search branch feature map into a plurality of divided regions, calculates a feature vector of each divided region, performs coarse-grained region-level sparse calculation and fine-grained self-attention calculation, and obtains search branch features after target perception enhancement; s3, performing feature fusion on the search branch features after target perception enhancement and features in the memory branch series feature map to obtain a fused feature map; and S4, the prediction head predicts a target position according to the fused feature map. According to the invention, a target sensing module based on a dynamic two-stage sparse attention mechanism is introduced into a search branch, so that the network is focused on important areas around the target, the robustness of a tracker facing a target shielded scene is improved, and the position and state of the target can be accurately predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a single target tracking method based on target perception enhancement-twin memory network. Background Art

[0002] The target tracking algorithm based on the Siamese network has attracted much attention because of its excellent tracking accuracy while maintaining real-time tracking speed. The Siamese network tracker usually uses the first frame as a template to predict the similarity mapping between the target template and the feature representation learned in the search area. However, in actual tracking scenarios, the size and aspect ratio of the target often vary. Using a fixed-size template may result in a large amount of background interference information, which will blur the spatial information of the generated response map, which may reduce the accuracy and robustness of subsequent prediction tasks.

[0003] Memory networks usually have the ability to dynamically update, and can automatically update the stored historical information based on the target information observed in real time, which makes up for the deficiency that most twin network-based trackers in target tracking only use a single first frame as a template. This enables trackers using memory networks to accurately locate the target when the target appearance changes. However, since the design of the memory network relies on the consistent representation of the overall target, once the target is occluded, it may be difficult for the network to accurately predict the position and state of the target. The memory network shows high sensitivity when dealing with the situation where the target is occluded, especially when the key part of the target is occluded, and this sensitivity may cause the algorithm to lose the ability to track the target correctly. The scene where the target is occluded will introduce incomplete visual information, making it difficult for the memory network to maintain an effective representation of the overall characteristics of the target, and the memory network is likely to remember the wrong historical frame information and difficult to correct itself, facing difficult to resolve ambiguous situations and leading to tracking failure.

[0004] The patent with the publication number of CN116563337A discloses a target tracking method based on a dual attention mechanism, including: constructing a backbone network model, the backbone network model includes a detection branch and a template branch, for a given set of template frames and search frames, respectively using the template branch to extract deep features from the template frame and the detection branch to extract deep features from the search frame; selectively enhancing the deep features extracted in step 1 through a deformable attention mechanism; performing layered cross-fusion of weight redistribution on the features enhanced in step 2 through sparse attention, and finally obtaining fused features; predicting the fused features obtained in step 3 through a multi-layer perceptron to obtain the position and scale of the target; the multi-layer perceptron outputs the target position information of each detection frame to complete the tracking. The present invention can reduce the attention weight to the background, increase the attention weight to the potential targets in the search area, and enhance the robustness of the network, and finally overcome the interference of the background on the tracker. The attention mechanism is designed to traverse and weighted calculation of the feature map, both of which will generate a large computational burden, and the network's global perception ability of the target's surrounding environment is insufficient, and it cannot better improve the robustness of the tracker when facing a scene where the target is blocked. Summary of the invention

[0005] In view of the technical problems in the prior art that the network has insufficient global perception ability of the target's surrounding environment and insufficient robustness when the target is occluded, the present invention proposes a single target tracking method based on target perception enhancement-twin memory network, which combines the memory network with the twin network and introduces a dynamic two-level sparse attention mechanism to enable the network to focus on important areas around the target, reduce the interference of irrelevant background information, and improve the robustness of the tracker when facing scenes where the target is occluded, so as to accurately predict the target's position and state.

[0006] In order to achieve the above object, the technical solution of the present invention is achieved as follows:

[0007] A single target tracking method based on target perception enhancement-twin memory network includes the following steps:

[0008] S0: Build the tracker model, including the backbone network, target perception module, cross-attention module and prediction head connected in sequence;

[0009] S1: The backbone network uses the memory branch and the search branch to extract features from the input image, and obtains the memory branch feature map and the search branch feature map;

[0010] S2: The target perception module divides the search branch feature map into multiple partitioned regions, calculates the feature vector of each partitioned region, and performs coarse-grained region-level sparse calculation and fine-grained self-attention calculation in sequence to obtain the search branch feature map after target perception enhancement;

[0011] S3: The cross attention module performs feature fusion on the memory branch concatenation feature map obtained by concatenating the search branch feature map after target perception enhancement with the memory branch feature map to obtain a fused feature map;

[0012] S4: The prediction head predicts the target box position based on the fused feature map.

[0013] The method of extracting features from the input image using the memory branch in step S1 is as follows: and adaptive mask c a is the input, a is [0,T-1], and the memory frame m a Input to the first convolutional layer of the memory branch The adaptive mask c a Input to the additional convolutional layer g, the output of the first convolutional layer in each memory branch and the output g(c a ) elements, and finally the sum of the elements Input to the convolutional layer after the first convolutional layer in each memory branch In the dimensionality reduction layer h m For each convolutional layer after the first convolutional layer in the memory branch The output of is reduced in dimension to obtain the memory branch feature map; the calculation process formula is:

[0014]

[0015] in, represents the feature map of the ath memory branch, C represents the number of image channels, H represents the image height,

[0016] W represents the width of the image, Indicates the addition of corresponding elements.

[0017] The method for extracting features by using the search branch in step S1 is: As input, and then pass through the backbone network in sequence and the dimension reduction layer h q Dimensionality reduction, the calculation process formula is:

[0018]

[0019] in, Represents the search branch feature graph.

[0020] The method for implementing the division of the search branch feature map into multiple regions in step S2 is as follows: the target perception module divides the search branch feature map into multiple regions. Divide into S×S partition areas, and the feature map of each partition area is: Search branch feature graph f q The pixels of each divided area are The feature vector is the query vector Q, the key vector K and the value vector V. The formula for calculating the eigenvector of each region is:

[0021] Q=X r W q , K = X r W K , V = X r W v ;

[0022] in is the similarity matrix calculated by the query vector Q, is the similarity matrix calculated by the key vector K, is the similarity matrix calculated from the value vector V.

[0023] The method for performing coarse-grained region-level sparse calculation in step S2 is: first, the feature map X r Sparse calculation is performed at the coarse-grained region level to obtain a similarity matrix, and then sparse calculation is performed on the similarity matrix to obtain adjacent partitioned regions.

[0024] The feature map X r The method for performing sparse calculation at the coarse-grained region level is to calculate the mean query vector Q and key vector K for each partitioned region respectively to obtain the mean query vector and the mean key vector The mean query vector and the mean key vector K r Calculate the similarity matrix A r , the calculation formula of the similarity matrix is:

[0025] A r =Q r (K r ) T .

[0026] The method for performing sparse calculation on the similarity matrix is ​​as follows: using the top-k selection strategy to respectively select the first k mean key vectors most relevant to each mean query vector, and representing the partitioned area where these k mean key vectors are located as the adjacent partitioned area I most relevant to each partitioned area. r , the calculation formula is:

[0027] I r =topkIndex(A r );

[0028] Among them, topkIndex() represents a matrix with indexes that saves the top-k related areas.

[0029] The method for performing fine-grained self-attention calculation in step S2 is: according to the Token-level self-attention mechanism, first collect the key information of the key tensor and the value tensor. The collection process formula is:

[0030] K g =gather(K,I r ),V g =gather(V,I r );

[0031] Among them, gather() means collecting elements from a given tensor by index, where are the two tensors collected, k is the number of partitioned regions selected by top-k, and then the self-attention is calculated. Then the value vector V is deeply convolved and weighted on the calculated attention to obtain the search branch feature map O after target perception enhancement. The calculation formula of the search branch feature map O after target perception enhancement is:

[0032] O=Attention(Q,K g ,V g )+DConv(V);

[0033] Among them, Attention() represents the self-attention calculation function, and DConv() represents the deep convolution function.

[0034] The method of feature fusion in step S3 is: The memory branch concatenation feature map is obtained by concatenation Using the cross attention mechanism, calculate the memory branch concatenation feature map And the search branch feature map after target perception enhancement Similarity matrix The similarity matrix calculation formula is:

[0035]

[0036] Among them, f i m Concatenate feature maps f for the memory branch m The i-th feature in O j is the jth feature in the search branch feature map O after target perception enhancement, w ij Represents the feature f i m and feature O j Similarity relationship, w ij ∈w, s represents the scaling factor;

[0037] Then, the two branches are connected in series in the dimension to generate the fused feature map y. The generation process formula is:

[0038]

[0039] in, Represents the memory branch concatenation feature map f m The i-th feature of the transposition of ; represents matrix multiplication, concat() represents vector concatenation operation along the channel dimension, y b Represents the b-th feature of the fused feature map y.

[0040] The method for predicting the target position in step S4 is:

[0041] First, in the classification branch, a classification convolutional network ω is used cls Encode the fused feature map y to obtain the classification convolutional network ω cls The output feature O cls , and then, the classification convolutional network ω is respectively cls The output feature O cls Dimensionality reduction, generating the final classification response map Rcls∈R 1×H×W And the centrality response map R ctr ∈R 1×H×W ; In the regression branch, the fused feature map y is passed to the regression convolutional network ω reg , we get the regression convolutional network ω reg The output feature O reg , and then regress the convolutional network ω reg The output feature O reg Dimensionality reduction, generating regression response map R for target bounding box estimation reg ∈R 4 ×H×W , using the regression response plot R reg Regress the specific location of the target box.

[0042] Beneficial effects of the present invention:

[0043] The present invention combines the memory network with the twin network, clearly separates the memory branch and the search branch, and uses the memory branch as a module specifically for storing and retrieving historical information, so that it can focus on the extraction and utilization of historical information. The search branch does not rely on the memory network, but directly receives a single branch input, thereby simplifying the model structure and reducing the computational complexity.

[0044] The present invention uses a memory network to store the historical information of the target, that is, the relevant information of the target obtained during the tracking process. The stored historical information includes the appearance characteristics, movement patterns, and surrounding environment of the target, which makes the tracker more adaptable and can better understand the movement patterns and environmental changes of the target. By storing and using this historical information, the tracker can better adapt to the appearance changes of the target during the tracking process and locate the target position more accurately.

[0045] The present invention ensures global perception of the target's surrounding environment through a memory network, instead of the traditional twin tracker focusing only on the information of the first frame. This helps the tracker to more fully understand the target's environmental conditions, especially the background information and surrounding scenes, thereby improving the tracker's understanding and robustness of the target.

[0046] The present invention introduces a target perception module based on a dynamic two-level sparse attention mechanism in the search branch, which enables the network to focus on important areas around the target, reduces the interference of irrelevant background information, helps the memory network to concentrate on processing information around the target, and improves the robustness of the tracker when facing scenes where the target is obscured. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0048] Figure 1 It is a framework diagram of the tracker in the present invention.

[0049] Figure 2 It is a calculation flow chart of the target perception module in the present invention.

[0050] Figure 3 It is the cross-attention flow chart of the present invention.

[0051] Figure 4 It is a comparison chart of the success rate and accuracy of the experimental results of the LaSOT dataset in the present invention.

[0052] Figure 5 It is a visualization diagram of the tracking results in the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the 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. 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.

[0054] A single target tracking method based on target perception enhancement-twin memory network includes the following steps:

[0055] S0: Build a tracker model, including a backbone network for feature extraction, a target perception module for target perception of the search frame, a cross attention module for feature fusion of memory branch features and search branch features, and a prediction head for predicting the target position.

[0056] In order to give full play to the advantages of memory network and twin network in target tracking algorithm and improve the anti-interference ability of memory network, this paper proposes a single target tracking method based on target perception enhancement-twin memory network. The tracker framework is as follows Figure 1 As shown, it includes a memory network for memorizing input, a backbone network for feature extraction, a target perception module for target perception of search frames, a cross-attention module for feature fusion of memory branch features and search branch features, and a prediction head for predicting target positions.

[0057] The memory frames acquired by the tracker in the present invention are multiple historical frames in the tracking sequence, and the search frame refers to the video frame in the current tracking sequence. The memory frame and the search frame are input by a data set, and the data set contains a memory template and a search image. Once the feature extraction process is completed, the spatiotemporal memory network will retrieve information related to the target from the features of all historical frames. Such a retrieval process helps to generate a comprehensive feature map, and then the features of the search frame enhanced by the target perception module and the memory frame features are calculated by cross-attention to obtain a synthetic feature map, and finally the target is located, and the bounding box of the target in the video frame is predicted at the same time. The method of the present invention can utilize the information of the historical frames in the tracking sequence, combined with the features of the current frame (i.e., the search frame), to effectively classify and locate the target.

[0058] S1: The backbone network uses the memory branch and the search branch to extract features from the input image and obtain the memory branch feature map and the search branch feature map;

[0059] The tracker in the present invention adopts the GoogLeNet neural network as the backbone network, including a memory branch and a search branch. The backbone network is used to extract the features of the input image. However, unlike the traditional target tracking algorithm based on the twin network, the two branches of the backbone network in this tracker have the same network structure but do not share weights. The two branches of the traditional algorithm are only used for feature extraction, so they can share weights. The two branches of this algorithm are different. The memory branch uses memory network technology, so it cannot share weights.

[0060] Among them, the memory branch is a memory network. In order to prevent the memory branch from recording too much background clutter information and affecting the learning ability of the memory network, the method of the present invention marks the pixels in the target area as 1 and the background area as 0 to ensure that the memory network can learn the true features of the target rather than erroneous information.

[0061] Specifically, the method of using memory branches to extract features is as follows: and adaptive mask c a As input, it is input into T memory branches. The area marked as 0 may still contain information related to the target, so the memory frame is input into the convolution layer The mask is fed into an additional convolutional layer g, and the first convolutional layer in each memory branch The output of the additional convolutional layer g is summed element-wise, and the sum obtained by element-wise summation g is finally input into the first convolutional layer in each memory branch. The convolutional layer after and passes through a 1×1 dimension reduction layer h m f m The dimension is reduced to 512, and the calculation process is shown in formula (1):

[0062]

[0063] in, represents the feature map of the ath memory branch, C represents the number of channels of the image, H represents the image height, W represents the width of the image, a∈[0,T-1], is the convolutional layer after the first convolutional layer in each memory branch, Indicates the addition of corresponding elements.

[0064] Specifically, the method of using the search branch to extract features is: As input, the dimension is then reduced to 512 through the convolution layer and dimensionality reduction layer. Because there are many convolution layers in the backbone network, the output feature dimension is too large, which is not conducive to subsequent calculations. Therefore, the dimensionality reduction to 512 is emphasized here. The calculation process is shown in formula (2):

[0065]

[0066] in is the backbone network, h q is the dimension reduction layer, Represents the search branch feature graph.

[0067] S2: The target perception module divides the search branch feature map into multiple regions, calculates the feature vector of each region respectively, and performs coarse-grained region-level sparse calculation and fine-grained self-attention calculation in sequence to obtain the search branch features after target perception enhancement.

[0068] Since in many challenging scenarios, memory networks usually rely on information from historical frames to capture the target's motion patterns and appearance changes, during long-term tracking, when encountering a scene where the target is occluded, the historical frames may contain erroneous information or information that does not match the current scene, causing the memory network to remember erroneous historical frame information. The key idea of ​​the present invention is to effectively distinguish and discern the information of the search area (query area) in the search branch, enhance the perception of the target, effectively process incomplete information, and improve the robustness of the memory network during tracking. Inspired by recent work in the field of computer vision, the present invention proposes a target perception module, which consists of a dynamic two-level sparse attention mechanism. The specific process is to filter out most irrelevant key-value pairs at the coarse area level, so that only a small number of the most critical areas are retained; then, fine-grained Token-to-Token attention calculations are applied in these critical areas. In this process, the target perception module will dynamically select the k areas that are most relevant to the query target, and perform attention calculations on these k areas with other areas around them. The specific process is as follows: Figure 2 shown.

[0069] Specifically, the target perception module first searches for the branch feature map Divide into S×S partition areas, and the feature map of each partition area is: Feature map f q The pixels of each divided area are Then, the query vector Q, key vector K and value vector V in each partition area are calculated respectively, and the feature map f q The query vector and key vector in are also divided into S×S regions, where The specific calculation formula is shown in formula (3):

[0070] Q=X r W q , K = X r W K , V = X r W v ; (3)

[0071] in, is the similarity matrix calculated by the query vector Q, is the similarity matrix calculated by the key vector K, is the similarity matrix calculated from the value vector V.

[0072] Specifically, the method for performing coarse-grained region-level sparse calculation is: first, the feature map X r Sparse calculation is performed at the coarse-grained region level to obtain a similarity matrix, and then sparse calculation is performed on the similarity matrix to obtain adjacent partitioned regions.

[0073] Specifically, the feature map X r The method for performing sparse calculation at the coarse-grained region level is to calculate the mean query vector Q and key vector K for each partitioned region respectively to obtain the mean query vector and the mean key vector The mean query vector and the mean key vector K r Calculate the similarity matrix A r , use the calculation to get the dynamic mean query vector The sum of the mean key vectors K r The similarity matrix A between the feature representations r Represents the partition area map, which is used to indicate the degree of semantic association between different partition areas. The similarity matrix A r The calculation process is shown in formula (4):

[0074] A r =Q r (K r ) T (4)

[0075] Specifically, the similarity matrix A r The method for sparse calculation is: use the top-k selection strategy to filter out the first k mean key vectors most relevant to each mean query vector, assign the pixels of the partitioned area where the other mean key vectors are located to 0, and represent the partitioned area where these k mean key vectors are located as the adjacent partitioned area I most relevant to each partitioned area. r , the calculation process is shown in formula (5):

[0076] I r =topkIndex(A r ) (5)

[0077] topkIndex() represents a matrix with indices that stores the top-k related regions.

[0078] In order to retain the most relevant information in each partition area to the query (search) target, the partition area I obtained by top-k screening of formula (5) is rAttention calculation is performed to ensure the effectiveness and accuracy of the attention mechanism. According to the top-k selected partition area I r , extract the corresponding region information from the key vector K and the value vector V, and efficiently obtain the required information without traversing the entire tensor, thereby improving the computational efficiency and performance.

[0079] Specifically, the method for performing fine-grained self-attention calculation is: according to the Token-level self-attention mechanism, first collect the key information of the key tensor and the value tensor, and the collection process is shown in formula (6):

[0080] K g =gather(K,I r ),V g =gather(V,I r ) (6)

[0081] gather() gathers elements from a given tensor by index.

[0082] The two tensors are collected, k is the number of other partitioned areas filtered by top-k. Secondly, self-attention is calculated. In order to better capture local features and context information and improve the tracker's understanding, representation and memory capabilities of the target, the value vector V is deeply convolved and weighted on the calculated attention. The convolution kernel size is set to 5. The calculation process is shown in formula (7):

[0083] O=Attention(Q,K g ,V g )+DConv(V) (7)

[0084] Among them, Attention() represents the self-attention calculation function, DConv() represents the deep convolution function, It represents the final output of the two-level sparse self-attention, that is, the search branch feature map after target perception enhancement.

[0085] The target perception module can perform two-level sparse self-attention calculations on the search area. Each area dynamically selects the k most relevant areas and performs attention calculations with other surrounding areas. This module effectively focuses on the information most relevant to the target and can complement the memory network, making it more robust in the face of target changes and occlusion.

[0086] S3: The cross-attention module fuses the search branch features enhanced by the target perception module with the features in the memory branch feature map to obtain a fused feature map.

[0087] In order to better read the historical information stored in the memory network efficiently and efficiently fuse the features in the memory branch feature map with the features enhanced by the target perception module, this chapter uses cross attention in the feature fusion stage to achieve fine-tuning between the historical information features stored in the memory network and the features enhanced by the target perception module, helping the tracker to better capture the key features of the target and improve tracking performance.

[0088] Specifically, the cross attention calculation process is as follows Figure 3 As shown, the method for performing feature fusion is:

[0089] First, by the memory branch The memory branch concatenation feature map is obtained by concatenation Compute memory branch concatenation feature map Feature map of search branch after target perception enhancement Similarity matrix The calculation formula is shown in Figure (8):

[0090]

[0091] Among them, f i m Concatenate feature maps f for the memory branch m The i-th pixel in (the pixel here refers to the feature of the feature map), O j is the jth pixel in the search branch feature map O after target perception enhancement, w ij Represents pixel f i m and Pixel O j Similarity relationship, w ij ∈w, ⊙ represents the vector dot product, k is the number of other partitioned regions selected by top-k, and s represents the scaling factor, which is used to prevent the exp function from overflowing numerically. m contains historical frames related to the target. In order to adaptively retrieve relevant information of the target in the search frame, the two branches are connected in series along the channel dimension (vector connection along the channel dimension, also known as vector connection or vector splicing, refers to combining two or more vectors into a new vector) to generate a fused feature map y. The generation process is shown in formula (9):

[0092]

[0093] in, Represents the memory branch concatenation feature map f m The transposed i-th pixel. Represents matrix multiplication. concat() represents a vector concatenation operation along the channel dimension. b Represents the b-th pixel of the fused feature map y.

[0094] Through cross-attention calculation, the features containing target-related information of multiple historical frames can be efficiently fused with the features of the search area enhanced by the target perception module, which plays an important role in the subsequent prediction of the target position.

[0095] S4: The prediction head predicts the target box position based on the fused feature map.

[0096] like Figure 1 Specifically, first, in the classification branch, a lightweight classification convolutional network ω is used cls Encode the fused feature map y to obtain a lightweight classification convolutional network ω cls The output feature O cls , to integrate the target-aware enhanced search branch feature map O and the concatenated feature map f from the memory branch m The retrieved information is then adapted to the classification task. Then, the lightweight classification convolutional network ω is constructed using a linear convolutional layer with a 1×1 kernel. cls The output feature O cls Reduce the dimension to 1 and generate the final classification response map R cls ∈R 1×H×W In addition, positive samples near the object boundary often predict low-quality objects. Therefore, in the lightweight classification convolutional network ω cls The lightweight classification convolutional network ω is then constructed using a linear convolutional layer with a 1×1 kernel. cls The output feature O cls The dimension is reduced to 1, generating the centrality response graph R ctr ∈R 1×H×W ,like Figure 1 During inference (i.e., testing the trained model), the classification response map R cls Multiply the centrality response map R ctr To suppress the classification confidence scores of pixels far from the target center. In the regression branch, the fused feature map y is passed to another lightweight regression convolutional network ω reg , and obtain the lightweight regression convolutional network ω reg The output feature O reg , and then output feature O reg The dimension is reduced to 4, generating the regression response graph R reg ∈R 4×H×W , from the regression response plot R reg Regress the specific location of the target box.

[0097] Experimental results and analysis: including experimental settings, comparative experiments, ablation experiments and visualization results analysis.

[0098] Experimental settings: The model of this embodiment was trained 20 times using the SGD optimizer. Each epoch (round) contains 300,000 samples, and the mini-batch size is set to 64. The number of memory frames in the training phase is set to 3, and the number of memory frames in the inference phase is set to 6. (T number setting) The entire training phase takes about 40 hours and converges on 6 NVIDIA TeslaV100 GPUs. The momentum decay rate is set to 0.9 and the weight decay rate is 0.001. In the first epoch, a warm-up technique is used to increase the learning rate from 0.01 to 0.08; in subsequent epochs, a cosine annealing learning rate schedule is used to reduce the learning rate from 0.08 to 0.00001. The tracker of this embodiment is trained using five training sets: ILSVRC VID, ILSVRC DET, LaSOT, GOT-10k and COCO. The tracker proposed in this embodiment is evaluated on four benchmark datasets: OTB2015, UAV123, LaSOT and GOT-10k.

[0099] Comparative experiment: LaSOT: LaSOT is a large-scale long-term tracking benchmark in visual object tracking, and this dataset contains 1,400 video sequences, totaling more than 3.5 million frames. When tracking in the LaSOT dataset, there will be a wide variety of challenging scenes, which requires a higher robustness of the tracker. Figure 4 The experimental results of the method of this embodiment and other advanced trackers on this data set are compared. The tracker proposed in this embodiment performs well, achieving a best success rate of 60.7% and a best accuracy of 63.1%. Compared with the LTMU tracker based on the memory network, the success rate is 1% higher and the accuracy is 2.9% higher. Compared with the tracker based on the traditional twin network, it shows better performance. The results show that the memory network and target perception module in the method proposed in this embodiment complement each other, and can still achieve excellent results even when tested in large-scale long-term data sets.

[0100] UAV123: UAV123 covers 123 real drone low-altitude aerial photography data sets, which are characterized by small targets, blurred targets and fast movement speeds, which are very challenging for trackers. Despite this, the method of this embodiment can still cope with these challenges well. In the face of scenes such as fast-moving targets and blurred motion, the tracker proposed in this embodiment still achieved excellent performance. Compared with other twin network-based and anchor-based trackers, such as SiamRPN and SiamRPN++, the tracker proposed in this embodiment has far exceeded the performance of these trackers, as shown in Table 1. It can be seen that the memory twin network effectively forms long-term memory of the target to determine the target position. Even if the target moves quickly or is blurred, the target perception module can still capture the contextual information around the target, which helps to improve the purity of the target representation, thereby better supporting the learning and reasoning of the memory network.

[0101] Table 1 Comparison results with other trackers on UAV123

[0102]

[0103]

[0104] Ablation experiment: In order to prove the effectiveness of the target perception module proposed in this embodiment, this embodiment conducts experimental comparisons on the trackers using the target perception module and those not using the target perception on the two datasets of OTB-2015 and GOT-10k. The experimental results are shown in Table 2. The experimental data in the table show that the performance of the original tracker using the target perception module is greatly improved compared with that of the original tracker not using the target perception module. The success rate and accuracy are 1.6% and 2.7% higher on OTB-2015, and 1.5% and 3.6% higher on GOT-10k. The ablation experiment proves the effectiveness of the target perception module proposed in this embodiment, which complements the memory twin network and effectively improves the robustness and comprehensive performance of the tracker.

[0105] Table 2 Ablation experiment results on OTB-2015 and GOT-10k

[0106] Datasets and Indicators Using the Object Awareness Module Without using target awareness module OTB-2015 success rate (%) 72.8 71.2 OTB-2015 accuracy (%) 94.5 91.8 GOT-10k success rate (%) 65.5 64.0 GOT-10k accuracy (%) 75.7 72.1

[0107] Visualization result analysis: In order to intuitively prove the effectiveness and robustness of the tracker proposed in this embodiment when facing the scene where the target is occluded, the tracking results of multiple scenes where the target is occluded in OTB-2015 are visualized to more intuitively prove the performance of the tracker in this chapter, such as Figure 5As shown. In the Bird1 sequence (first row), the target (green box is the real position) is occluded for a long time. The tracker STMTrack (blue) based on the memory network also memorizes the wrong historical frame information, causing the tracking frame to drift. The trackers SiamCAR and SiamFC based on the twin network also fail to track. The method of this embodiment (red) relies on the target perception module to globally model the search area and capture the contextual information around the target, which helps to improve the purity of the target representation and effectively helps the memory network to effectively memorize the most relevant information about the target, effectively improving the robustness of the tracker when the target is occluded for a long time. In the Girl2 sequence (second row), the target (little girl) is lost after being occluded by a man. STMTrack memorizes the wrong historical frame, causing tracking drift, and memory errors occur in multiple frames, resulting in tracking failures. However, the method of this embodiment can still effectively identify and accurately track. In the Human4 (third row) sequence, the target is small, occluded and deformed, but the embodiment method still maintains accurate tracking. In the Coke sequence (the fourth row), the target keeps moving and occlusion occurs. For example, the target is occluded in the 264th frame. The method of this embodiment (red) has a higher overlap rate with the true value (green). This result is attributed to the excellent performance of the target perception module in continuously extracting the most relevant information from the search area. In many scenes where the target is occluded, the method of this embodiment shows good robustness and adaptability in many scenes where the target is occluded.

[0108] The present invention proposes a single target tracking method based on target perception enhancement-twin memory network, which can store the memory of the template, make full use of the historical information of the target, and better adapt to the appearance changes during the tracking process. At the same time, the target perception module is introduced in the search branch to save computing resources while concentrating the most relevant information in the search area. Sufficient ablation experiments have proved the effectiveness of the target perception module in improving tracking performance, especially in the face of scenes where the target is occluded and deformed, and experiments on four benchmark datasets have further verified the robustness and generalization ability of the algorithm.

[0109] 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 single target tracking method based on target perception enhancement-twin memory network, characterized in that: The following steps are involved: S0: Build the tracker model, including the backbone network, target perception module, cross-attention module and prediction head connected in sequence; S1: The backbone network uses the memory branch and the search branch to extract features from the input image, and obtains the memory branch feature map and the search branch feature map; S2: The target perception module divides the search branch feature map into multiple partitioned regions, calculates the feature vector of each partitioned region, and performs coarse-grained region-level sparse calculation and fine-grained self-attention calculation in sequence to obtain the search branch feature map after target perception enhancement; S3: The cross attention module performs feature fusion on the memory branch concatenation feature map obtained by concatenating the search branch feature map after target perception enhancement with the memory branch feature map to obtain a fused feature map; S4: The prediction head predicts the target box position based on the fused feature map.

2. The single target tracking method based on target perception enhancement-twin memory network according to claim 1 is characterized in that: The method of extracting features from the input image using the memory branch in step S1 is as follows: and adaptive mask c a is the input, a is [0,T-1], and the memory frame m a Input to the first convolutional layer of the memory branch The adaptive mask c a Input to the additional convolutional layer g, the output of the first convolutional layer in each memory branch and the output g(c a ) elements, and finally the sum of the elements Input to the convolutional layer after the first convolutional layer in each memory branch In the dimensionality reduction layer h m For each convolutional layer after the first convolutional layer in the memory branch The output of is reduced in dimension to obtain the memory branch feature map; the calculation process formula is: in, represents the feature map of the ath memory branch, C represents the number of image channels, H represents the image height, and W represents the image width. Indicates the addition of corresponding elements.

3. The single target tracking method based on target perception enhancement-twin memory network according to claim 1 or 2 is characterized in that: The method for extracting features by using the search branch in step S1 is: As input, and then pass through the backbone network in sequence and the dimension reduction layer h q Dimensionality reduction, the calculation process formula is: in, Represents the search branch feature graph.

4. The single target tracking method based on target perception enhancement-twin memory network according to claim 3 is characterized in that: The method for implementing the division of the search branch feature map into multiple regions in step S2 is as follows: the target perception module divides the search branch feature map into multiple regions. Divide into S×S partition areas, and the feature map of each partition area is: Search branch feature graph f q The pixels of each divided area are The feature vector is the query vector Q, the key vector K and the value vector V. The formula for calculating the eigenvector of each region is: Q=X r W q ,K=X r W K ,V=X r W v ; in is the similarity matrix calculated by the query vector Q, is the similarity matrix calculated by the key vector K, is the similarity matrix calculated from the value vector V.

5. The single target tracking method based on target perception enhancement-twin memory network according to claim 4 is characterized in that: The method for performing coarse-grained region-level sparse calculation in step S2 is: first, the feature map X r Sparse calculation is performed at the coarse-grained region level to obtain a similarity matrix, and then sparse calculation is performed on the similarity matrix to obtain adjacent partitioned regions.

6. The single target tracking method based on target perception enhancement-twin memory network according to claim 5 is characterized in that: The feature map X r The method for performing sparse calculation at the coarse-grained region level is to calculate the mean query vector Q and key vector K for each partitioned region respectively to obtain the mean query vector and the mean key vector The mean query vector and the mean key vector K r Calculate the similarity matrix A r , the calculation formula of the similarity matrix is: A r =Q r (K r ) T 。 7. The single target tracking method based on target perception enhancement-twin memory network according to claim 6 is characterized in that: The method for performing sparse calculation on the similarity matrix is ​​as follows: using the top-k selection strategy to respectively select the first k mean key vectors most relevant to each mean query vector, and representing the partitioned area where these k mean key vectors are located as the adjacent partitioned area I most relevant to each partitioned area. r , the calculation formula is: I r =topkIndex(A r ); Among them, topkIndex() represents a matrix with indexes that saves the top-k related areas.

8. The single target tracking method based on target perception enhancement-twin memory network according to claim 7 is characterized in that: The method for performing fine-grained self-attention calculation in step S2 is: according to the Token-level self-attention mechanism, first collect the key information of the key tensor and the value tensor. The collection process formula is: K g =gather(K,I r ),V g =gather(V,I r ); Among them, gather() means collecting elements from a given tensor by index, where are the two tensors collected, k is the number of partitioned regions selected by top-k, and then the self-attention is calculated. Then the value vector V is deeply convolved and weighted on the calculated attention to obtain the search branch feature map O after target perception enhancement. The calculation formula of the search branch feature map O after target perception enhancement is: O=Attention(Q,K g ,V g )+DConv(V); Among them, Attention() represents the self-attention calculation function, and DConv() represents the deep convolution function.

9. The single target tracking method based on target perception enhancement-twin memory network according to claim 8 is characterized in that: The method of feature fusion in step S3 is: The memory branch concatenation feature map is obtained by concatenation Using the cross attention mechanism, calculate the memory branch concatenation feature map And the search branch feature map after target perception enhancement Similarity matrix The similarity matrix calculation formula is: in, Concatenate feature maps f for the memory branch m The i-th feature in O j is the jth feature in the search branch feature map O after target perception enhancement, w ij Representation characteristics and feature O j Similarity relationship, w ij ∈w, s represents the scaling factor; Then, the two branches are connected in series in the dimension to generate the fused feature map y. The generation process formula is: in, Represents the memory branch concatenation feature map f m The i-th feature of the transposition of ; represents matrix multiplication, concat() represents vector concatenation operation along the channel dimension, y b Represents the b-th feature of the fused feature map y.

10. The single target tracking method based on target perception enhancement-twin memory network according to claim 9 is characterized in that: The method for predicting the target position in step S4 is: First, in the classification branch, a classification convolutional network ω is used cls Encode the fused feature map y to obtain the classification convolutional network ω cls The output feature O cls , and then, the classification convolutional network ω is respectively cls The output feature O cls Dimensionality reduction, generating the final classification response map Rcls∈R 1×H×W And the centrality response map R ctr ∈R 1×H×W ; In the regression branch, the fused feature map y is passed to the regression convolutional network ω reg , we get the regression convolutional network ω reg The output feature O reg , and then regress the convolutional network ω reg The output feature O reg Dimensionality reduction, generating regression response map R for target bounding box estimation reg ∈R 4×H×W , using the regression response plot R reg Regress the specific location of the target box.

Citation Information

Cited By

  • Electronic device, method and computer program product for object tracking

    TWI908591B