Deep regression tracking method based on quadtree capsule

By using the quadtree capsule network and multispectral attitude matrix attention mechanism in the visual tracking task, combined with the temporal capsule local displacement strategy, the problem of high computational complexity of the capsule network is solved and efficient real-time target tracking is achieved.

CN115965652BActive Publication Date: 2024-09-03HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211224736.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2024-09-03
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

Existing capsule networks have high computational complexity in visual tracking tasks, resulting in slow processing speed and difficulty in achieving real-time tracking.

Method used

A deep regression tracking method based on quadtree capsule is used to extract features through the VGG-16 network pre-trained on ImageNet, construct a spatial capsule and design a symmetric guided routing algorithm and a multi-spectral attitude matrix attention mechanism, combined with the temporal capsule local displacement strategy , reduce computational overhead and increase tracking speed.

Benefits of technology

While achieving robust tracking results, the running speed reaches 43FPS, achieving real-time processing for the first time, significantly reducing the computational complexity and movement cost of the capsule network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115965652B
    Figure CN115965652B
Patent Text Reader

Abstract

The present invention discloses a deep regression tracking method based on quadtree capsules, the method comprising the following steps: 1. Given the search area of ​​the current frame, the conv4‑3 and conv5‑3 feature layers of the VGG‑16 network pre-trained on ImageNet are used as feature extractors to extract the underlying and high-level semantic representations respectively; 2. Constructing spatial capsules through the quadtree capsule module; 3. Constructing spatiotemporal capsules through multispectral attitude matrix attention; 4. Local displacement of temporal capsules; 5. Flattening the attitude matrix of the temporal capsules and passing them to the decoder for decoding. The present invention uses the search area as input and proposes to use the quadtree capsule architecture to construct the spatiotemporal relationship between the target and its context. Compared with the existing capsule network-based tracker, while achieving robust tracking results, the running speed reaches 43FPS, making the capsule network-based tracker achieve real-time processing for the first time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a target tracking method, and in particular to a deep regression tracking method based on quadtree capsule. Background Art

[0002] Capsule networks have been successful in many visual tasks due to their ability to capture the spatial relationship between parts and the whole. However, due to their high computational complexity, it is difficult to directly apply capsule networks to visual tracking tasks, as processing speed is an important indicator of visual tracking tasks. Summary of the invention

[0003] In order to better track the target, the present invention provides a deep regression tracking method based on quadtree capsule.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] A deep regression tracking method based on quadtree capsules includes the following steps:

[0006] Step 1: Given the search area of ​​the current frame, the conv4-3 and conv5-3 feature layers of the VGG-16 network pre-trained on ImageNet are used as feature extractors to extract the bottom-level and high-level semantic representations respectively;

[0007] Step 2: Construct a spatial capsule through the quadtree capsule module. The specific steps are as follows:

[0008] Step 21: Construct capsules of different scales at each layer of the feature pyramid through downsampling. The specific construction steps are as follows:

[0009] Step 2: Feature dimensionality reduction: Reduce the input feature h×w×c to h×w×1 / 16c through a convolutional layer with a kernel size of 1×1, where h, w, and c represent the height, width, and number of channels of the feature, respectively;

[0010] Step 2.12: Construction of posture matrix M and activation value a: For posture matrix M, first upgrade its dimension to h×w×c, then transform the upgraded feature into h×w×1 / 16c×1 / 8c, where the latter two dimensions represent the number of capsule categories and the size of the posture matrix respectively; for activation value a, transform the feature h×w×1 / 16c into h×w×1 / 16c×1 to match the capsule category;

[0011] Step 2-3: Capsule construction: Concatenate the pose matrix M and the last dimension of the activation value a to obtain the final capsule h×w×1 / 16c×(18c+1);

[0012] Step 22: Design a symmetric guided routing algorithm to fuse low-level features and high-level features to capture rich contextual information. The specific steps are as follows:

[0013] Step 221. Collecting bottom-level capsules and high-level capsules: Collecting capsules of the bottom-level feature Branch1 Capsules that collect high-level features Branch2 in, and Represent the posture matrix and activation value of the capsule respectively. The voting from the bottom capsule to the high-level capsule is defined as:

[0014]

[0015]

[0016]

[0017] in, are the calculated votes, They are the weight matrices that need to be learned;

[0018] Step 222: Guidance from Branch2 to Branch1: For the capsules of Branch2, use the EM routing algorithm to obtain a set of high-level capsules of Branch2, that is, To generate the boot information from Branch2 to Branch1, calculate and The pixel-level correlation Corr1 ij , which is used to calculate an assignment weight

[0019]

[0020] Among them, e * is an exponential function, Determines the contribution of the i-th specific entity in Branch1 to the j-th specific entity in Branch2; following the above steps, given And the corresponding distribution weights, a series of guided Branch1 capsules are obtained Similarly, by guiding Branch1 to Branch2, a set of high-level capsules of Branch2 are obtained.

[0021] Step 223: Bidirectional guided capsule construction: Branch1 capsule and Branch2 capsules The final bidirectional guided capsule is obtained by concatenating along the category axis;

[0022] Step 2: Given the bidirectional capsules at each level of the pyramid, select the top K capsules with the highest activation values ​​in the corresponding spatial index, and integrate the capsules at each level through the bitwise addition operation;

[0023] Step 3: Construct space-time capsules through multi-spectral attitude matrix attention. The specific steps are as follows:

[0024] Step 3.1 Store the pose matrix of each capsule in the cache, denoted as [capsule t-6 ,capsule t -5 ,...,capsule t-1 ], where t-* represents the temporal label of the video frame;

[0025] Step 3.2. Place each capsule * Transformed into H×W×C', where H and W represent the size of the capsule, C'=1 / 8C, and C is the product of the number of capsule categories and the capsule dimension;

[0026] Step 3: For each capsule i , assign the corresponding DCT (two-dimensional discrete cosine transform) frequency:

[0027]

[0028] Among them, PM i is the attitude matrix representation, [u i ,v i ] is PM i The corresponding 2D frequency components, the set of Freq, are obtained by concatenation:

[0029] Freq=cat([Freq t-6 ,Freq t-5 ,...,Freq t-1 ]);

[0030] Among them, Freq is the obtained multi-spectral vector, and cat is the concatenation operation;

[0031] The whole multi-spectral pose matrix attention PM att Expressed as:

[0032] PM att =sigmoid(fc(Freq));

[0033] Among them, sigmoid is the activation function, and fc is a learnable fully connected layer;

[0034] Step 4: Local displacement of the time capsule. The specific steps are as follows:

[0035] Step 41: During online tracking, the capsule representations of the past 8 frames are saved in a cache;

[0036] Step 42: When the posture matrix of the tth frame is obtained, a compressed representation is obtained by calculating the average value of the last dimension, and the compressed representation is 1 / 8 of the original size;

[0037] Step 43: Replace the first 1 / 8 of the posture matrix of the t-6 frame with the compressed representation obtained in step 42, and use the replaced posture matrix as the time capsule of the t+1 frame;

[0038] Step 5: Flatten the pose matrices of the temporal capsules and pass them to the decoder for decoding.

[0039] Compared with the prior art, the present invention has the following advantages:

[0040] 1. The whole process of the present invention uses the search area as input and proposes to use the quadtree capsule architecture to construct the spatiotemporal relationship between the target and its context.

[0041] 2. The quadtree capsule structure proposed in the present invention relies on the feature pyramid and uses a novel symmetric guided routing algorithm to select capsules at each level, which reduces the computational overhead of the capsule network to a certain extent.

[0042] 3. This paper proposes a multi-spectral pose matrix attention mechanism to explore the parts with discriminative and generalization capabilities over the spatial and temporal spans.

[0043] 4. The present invention designs a partial shift strategy for temporal capsules, which greatly reduces the cost of capsule movement during online reasoning.

[0044] 5. Compared with the existing capsule network-based trackers, the running speed reaches 43FPS while achieving robust tracking results, making the capsule network-based tracker achieve real-time processing for the first time. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart of the deep regression tracking based on quadtree of the present invention;

[0046] Figure 2 It is a quadtree capsule structure diagram;

[0047] Figure 3 It is a schematic diagram of symmetric guided routing;

[0048] Figure 4 Visualize and compare capsules at different levels;

[0049] Figure 5 Schematic diagram of the multi-spectral pose matrix attention module;

[0050] Figure 6 Schematic diagram of local displacement of the timing capsule;

[0051] Figure 7 Comparison between the method of the present invention and other mainstream target tracking methods on the LaSOT dataset;

[0052] Figure 8 The figure shows the comparison of the speed and accuracy between the method of the present invention and other mainstream target tracking methods. DETAILED DESCRIPTION

[0053] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.

[0054] The present invention provides a deep regression tracking method based on quadtree capsules, and the method proposes a deep regression tracking network (QuadTreeCapsule) based on quadtree capsules. In the first step, given the search area of ​​the current frame, the two feature layers conv4-3 and conv5-3 of the VGG-16 network pre-trained on ImageNet are used as feature extractors to extract low-level and high-level semantic representations respectively. In the second step, spatial capsules are generated through the quadtree capsule module. Afterwards, the temporal capsules are represented by the capsule representations collected in the cache. The multi-spectral posture matrix attention module proposed in the present invention enhances and aggregates the spatiotemporal capsules to form the spatiotemporal relationship of the input. In addition, the present invention designs a temporal capsule local shift strategy to accelerate the construction of temporal capsules.

[0055] Figure 1 The overall structure of the entire network is shown, which can be roughly divided into four parts. The specific contents are as follows:

[0056] The first part is to construct spatial capsules through the quadtree capsule module to reduce the computational complexity of capsules.

[0057] 1. In order to encode the visual information of a given search area, a VGG-16 network pre-trained on ImageNet is used to extract multi-level semantic representations. Specifically, the conv4-3 and conv5-3 feature layers are selected as feature extractors to extract low-level and high-level semantic representations respectively.

[0058] 2. Recursively divide the two-dimensional space into four sub-regions of equal size through the quadtree structure and construct capsules. The capsules at each level are routed from coarse to fine. Since the search area contains a large number of redundant background areas, the results of the coarse layer are used to quickly filter out irrelevant areas in the fine layer, which can not only reduce the loss of useless information, but also achieve higher computational efficiency. Specifically, capsules of different scales are constructed at each layer of the feature pyramid through downsampling. Here, the feature 7×7×128 at the coarsest granularity level is taken as an example to introduce the construction process of capsules.

[0059] like Figure 2 As shown in Figure 1, given a downsampled feature map, a capsule is constructed at each feature level. The construction of the capsule consists of the following three steps:

[0060] Step (1) Feature dimensionality reduction: The input feature 7×7×128 is reduced to 7×7×8 through a convolutional layer with a kernel size of 1×1.

[0061] Step (2) Construction of pose matrix M and activation value a: For pose matrix M, first upscale it to 7×7×128. Then, transform the upscaled features into 7×7×8×16, where the last two dimensions represent the number of capsule categories and the size of the pose matrix. For activation value a, transform the feature 7×7×8 into 7×7×8×1 to match the capsule category.

[0062] Step (3) Capsule construction: Concatenate the pose matrix M and the last dimension of the activation value a to obtain the final capsule 7×7×8×17.

[0063] After constructing capsules at each level, considering that the low-level features (conv4-3) help capture fine-grained details, while the high-level features (conv4-3) can perceive semantic knowledge, the present invention designs a symmetric guided routing algorithm to fuse the above two to capture rich contextual information.

[0064] like Figure 3 As shown in the figure, taking the coarsest granularity level as an example, the process of the symmetric guided routing algorithm is shown. The specific steps are as follows:

[0065] Step (1) Collection of low-level capsules and high-level capsules: In order to model the guidance from Branch2 to Branch1, capsules of the low-level feature Branch1 are collected. Similarly, collect capsules of high-level features Branch2 (7×7×8×16), (7×7×8×1). The voting from the bottom capsule to the upper capsule is defined as:

[0066]

[0067]

[0068]

[0069] in, are the weight matrices that need to be learned.

[0070] Step (2) Guidance from Branch2 to Branch1: For the capsules of Branch2, use the EM routing algorithm to obtain a set of high-level capsules of Branch2, that is, To generate the boot information from Branch2 to Branch1, calculate and The pixel-level correlation Corr1 ij . This correlation is used to calculate an assignment weight:

[0071]

[0072] Determines the contribution of the i-th specific entity in Branch1 to the j-th specific entity in Branch2. Following the above steps, given And the corresponding distribution weights, we can get a series of guided Branch1 capsules Similarly, by guiding Branch1 to Branch2, a set of high-level capsules of Branch2 are obtained.

[0073] Step (3) Bidirectional guided capsule construction: Branch1 capsule and Branch2 capsules The final bidirectional guided capsule 7×7×16×17 is obtained by concatenating along the category axis.

[0074] Given the bidirectional capsules at each level of the pyramid, select the top K capsules with the highest activation values ​​in the corresponding spatial index. At the finest level, only the routing iteration with the selected top K capsules of the lower level is required. The spatial index of each level is related to the number of capsules of each type and the K value. Among them, the number of capsules of each type is related to the feature size of the input. The final spatial capsule is 56×56×8×17, which integrates the capsules of each level through the bitwise addition operation. Figure 4 Visualization results of capsules at different levels.

[0075] The second part is the multi-spectral pose matrix attention module.

[0076] Existing capsule-based tracking methods construct spatiotemporal relationships by connecting spatiotemporal capsules in series. This does not obtain relationships that generalize across time spans. To address this problem, this section proposes to aggregate spatiotemporal capsules using multi-frequency components of 2D DCT. Specifically, Figure 5 As shown, the pose matrix of each capsule is stored in the cache, denoted as [capsule t-6 ,capsule t-5 ,...,capsule t-1 ]. * Transformed into H×W×C', where C'=1 / 8C (C is the product of the number of capsule categories and the capsule dimension). i , assign the corresponding DCT frequencies:

[0077]

[0078] Among them, [u i ,v i ] is PM i The corresponding 2D frequency components, the set of Freq, are obtained by concatenation:

[0079] Freq=cat([Freq t-6 ,Freq t-5 ,...,Freq t-1 ]);

[0080] where Freq is the resulting multispectral vector.

[0081] The attention of the entire multispectral pose matrix can be expressed as:

[0082] PM att =sigmoid(fc(Freq)).

[0083] Through the above operations, the information after spatiotemporal aggregation is richly represented. After that, the dimension of the space-time capsule is 56×56×8×16.

[0084] The third part is the local displacement strategy of the timing capsule.

[0085] The multi-spectral attitude matrix attention module is mainly used for short-term temporal modeling. In order to effectively enhance the long-term modeling capability of the model, this section proposes a local displacement strategy for temporal capsules. Figure 6As shown in the figure, during the online tracking process, the capsule representations of the past 8 frames are saved in the cache. When the pose matrix of the t-th frame is obtained, a compressed representation is obtained by calculating the average value of its last dimension. Specifically, the compressed representation is 1 / 8 of the original size, that is, 56×56×16. Then, the first 1 / 8 of the pose matrix of the t-6 frame is replaced with this compressed representation. Finally, the replaced pose matrix is ​​used as the temporal capsule of the t+1-th frame.

[0086] The fourth part is the decoder.

[0087] After obtaining the spatiotemporal capsules, a convolutional capsule layer containing 8 capsule types is connected. To obtain a single-channel response for a given target, the capsule pose matrices are flattened and passed to a decoder consisting of 3 deconvolutions. In addition, skip connections are used to enhance fine-grained spatial information. The final result is a 288×288×1 response map of the same size as the input.

[0088] Experimental results:

[0089] The present invention is implemented by Pytorch and runs on a machine equipped with an Intel(R) 10700k CPU and an Nvidia RTX3090 GPU at a running speed of 43FPS. The visual encoder is initialized using weights pre-trained on ImageNet. The search area used for positioning is 5 times the size of the target area and further scaled to 288×288. In the offline training stage, the training sets of OTB99 and LaSOT are used for offline training. The model is trained for a total of 100 cycles, with 600 iterations per cycle and 36 image pairs per batch. The training uses the Adam optimizer, with an initial learning rate set to 0.01 and a decay coefficient of 0.2 every 10 cycles. During the model initialization process, data augmentation methods such as translation, rotation and blurring of different degrees are used to obtain a total of 100 initialization training samples, and the sample set is used to perform 50 rounds of model parameter fine-tuning. For the labels used in training, a two-dimensional Gaussian function is used to generate soft labels, and its kernel width is 0.1 times the target size.

[0090] When verifying the performance of the present invention, the present invention uses the standard public database LaSOT to evaluate the performance of the target tracking method proposed in the present invention. The LaSOT dataset is a large-scale dataset, which contains 1,400 video sequences and a total of 3.5 million frames. Similarly, in addition to the annotation of the target position, it also includes annotations of 14 video attributes. All tracking methods involved in the comparison are evaluated through a standard one-time evaluation (OPE). Among them, the OTB99 dataset uses tracking accuracy (Precision) and tracking success rate (Success) to measure the performance of the tracker. In the LaSOT dataset, in addition to tracking accuracy (Precision) and tracking success rate (Success), the measurement indicators also include an additional tracking normalized accuracy (Norm.Prec.) indicator.

[0091] Figure 7 The comparison results of the proposed method and other currently best natural language query-based methods on the LaSOT dataset are shown. The video attributes include illumination variation (IV), partial occlusion (POC), deformation (DEF), motion blur (MB), camera movement (CM), rotation (ROT), background complexity (BC), view change (VC), scale change (SV), full occlusion (FOC), fast motion (FM), out of field of view (OV), low resolution (LR) and aspect ratio change (ARC). Figure 7 As shown in Figure 2, the present invention is compared with 12 trackers on LaSOT. By using the quadtree capsule architecture and the multi-spectral pose matrix attention module, the present invention greatly improves the performance of the capsule-based tracker (i.e., CapsuleRRT) and obtains advanced results (68.4% and 72.3%) on the LaSOT dataset.

[0092] Figure 8The comparison of the present invention and other state-of-the-art trackers in tracking success rate and tracking speed is shown. As can be seen from the figure, QuadTreeCapsule (43FPS) has reached real-time speed (the first capsule-based tracker to reach real-time), and the good performance of the present invention is attributed to three reasons. First, the present invention draws on the core idea of ​​the capsule network, that is, capturing the relationship between the part and the whole. Here, the present invention does not directly adopt the original capsule network with high computational complexity. Instead, the present invention designs an effective structure that makes it more suitable for deep regression tracking. The sparse capsule representation obtained by the quadtree structure can quickly filter out the capsules corresponding to the low-contribution background area. This approach not only reduces the computational complexity of the capsule network, but also extracts meaningful spatial relationships. Secondly, the present invention uses multi-spectral attention to fuse multiple temporal capsules to further promote the learning of relational space-time. Third, the present invention designs a local displacement strategy for temporal capsules to enhance the spatiotemporal relationship by exchanging information with adjacent frames in the time dimension.

Claims

1. A deep regression tracking method based on quadtree capsule, characterized in that The method comprises the following steps: Step 1: Given the search area of ​​the current frame, the conv4-3 and conv5-3 feature layers of the VGG-16 network pre-trained on ImageNet are used as feature extractors to extract the bottom-level and high-level semantic representations respectively; Step 2: Construct a spatial capsule through the quadtree capsule module. The specific steps are as follows: Step 21: Construct capsules of different scales at each layer of the feature pyramid through downsampling; Step 22: Design a symmetric guided routing algorithm to fuse low-level features and high-level features to capture rich contextual information; Step 2: Given the bidirectional capsules at each level of the pyramid, select the top K capsules with the highest activation values ​​in the corresponding spatial index and integrate the capsules at each level through the bitwise addition operation; Step 3: Construct space-time capsules through multi-spectral attitude matrix attention. The specific steps are as follows: Step 3.1 Store the pose matrix of each capsule in the cache, denoted as [capsule t-6 ,capsule t-5 ,...,capsule t-1 ], where t-* represents the temporal label of the video frame; Step 3.

2. Place each capsule * Transformed into H×W×C', where H and W represent the size of the capsule, C'=1 / 8C, and C is the product of the number of capsule categories and the capsule dimension; Step 3: For each capsule i , assign the corresponding DCT frequencies: Among them, PM i is the attitude matrix representation, [u i ,v i ] is PM i The corresponding 2D frequency components; The whole multi-spectral pose matrix attention PM att Expressed as: PM att =sigmoid(fc(Freq)); Among them, sigmoid is the activation function, and fc is a learnable fully connected layer; Step 4: Local displacement of the time capsule. The specific steps are as follows: Step 41: During online tracking, the capsule representations of the past 8 frames are saved in a cache; Step 42: When the posture matrix of the tth frame is obtained, a compressed representation is obtained by calculating the average value of the last dimension, and the compressed representation is 1 / 8 of the original size; Step 43: Replace the first 1 / 8 of the posture matrix of the t-6 frame with the compressed representation obtained in step 42, and use the replaced posture matrix as the time capsule of the t+1 frame; Step 5: Flatten the pose matrices of the temporal capsules and pass them to the decoder for decoding.

2. The deep regression tracking method based on quadtree capsule according to claim 1 is characterized in that The specific construction steps of step 21 are as follows: Step 2: Feature dimensionality reduction: Reduce the input feature h×w×c to h×w×1 / 16c through a convolutional layer with a kernel size of 1×1, where h, w, and c represent the height, width, and number of channels of the feature, respectively; Step 2.12: Construction of posture matrix M and activation value a: For posture matrix M, first upgrade its dimension to h×w×c, then transform the upgraded feature into h×w×1 / 16c×1 / 8c, where the latter two dimensions represent the number of capsule categories and the size of the posture matrix respectively; for activation value a, transform the feature h×w×1 / 16c into h×w×1 / 16c×1 to match the capsule category; Step 213. Capsule construction: Concatenate the posture matrix M and the last dimension of the activation value a to obtain the final capsule h×w×1 / 16c×(1 / 8c+1).

3. The deep regression tracking method based on quadtree capsule according to claim 1 is characterized in that The specific steps of step 22 are as follows: Step 221. Collecting bottom-level capsules and high-level capsules: Collecting capsules of the bottom-level feature Branch1 Capsules that collect high-level features Branch2 in, and Represent the posture matrix and activation value of the capsule respectively. The voting from the bottom capsule to the high-level capsule is defined as: in, are the calculated votes, They are the weight matrices that need to be learned; Step 222: Guidance from Branch2 to Branch1: For the capsules of Branch2, use the EM routing algorithm to obtain a set of high-level capsules of Branch2, that is, To generate the boot information from Branch2 to Branch1, calculate and The pixel-level correlation Corr1 ij , which is used to calculate the allocation weight Determines the contribution of the i-th specific entity in Branch1 to the j-th specific entity in Branch2; following the above steps, given And the corresponding distribution weights, a series of guided Branch1 capsules are obtained Similarly, by guiding Branch1 to Branch2, a set of high-level capsules of Branch2 are obtained. Step 223: Bidirectional guided capsule construction: Branch1 capsule and Branch2 capsules The final bidirectional guided capsule is obtained by concatenation along the category axis.

4. The deep regression tracking method based on quadtree capsule according to claim 3 is characterized in that In step 222, weights are assigned The calculation formula is as follows: Among them, e * is an exponential function.

5. The deep regression tracking method based on quadtree capsule according to claim 1, characterized in that In step 33, the set of Freq is obtained by concatenation: Freq=cat([Freq t-6 ,Freq t-5 ,...,Freq t-1 ]); Among them, Freq is the obtained multispectral vector, and cat is the concatenation operation.