A twin network target tracking method based on meta-adaptive boundary positioning

By introducing a boundary localization branch and the Meta-SGD optimization method into the Siamese network, the mismatch between the classification and regression branches is solved, improving the accuracy and speed of target tracking and enabling rapid model adaptation and synchronous optimization.

CN117670933BActive Publication Date: 2026-11-27NANJING UNIV OF INFORMATION SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311652705.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2026-11-27
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

In existing twin network target tracking methods, the classification branch and regression branch have a mismatch problem during the optimization process, resulting in poor tracking performance. Furthermore, the traditional SGD optimization method leads to slow model convergence and overfitting.

Method used

A boundary localization branch is introduced, and the BorderAlign module is used to extract boundary features. The Meta-SGD meta-adaptive optimization method is adopted to optimize the model learning rate and network parameters by dynamically weighting and fusing the losses of the three factors, thereby enhancing the localization accuracy.

Benefits of technology

It improves the accuracy and speed of target tracking, reduces bounding box loss, and enables rapid model adaptation and synchronous optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117670933B_ABST
    Figure CN117670933B_ABST
Patent Text Reader

Abstract

The application discloses a twin network target tracking method based on meta adaptive boundary positioning, which comprises the following steps: loading a model based on a twin network; inputting a template and a search image to obtain a feature map; performing a deep cross-correlation operation on a classification branch and a regression branch to respectively generate a classification score map and a regression prediction frame; a boundary positioning branch generates a boundary positioning score and a boundary positioning prediction frame; the results of the classification branch and the regression branch are corrected by using the results of the boundary positioning branch to realize final positioning; the losses of the three branches are dynamically weighted to obtain a total loss optimization target, and then the learning rate and network parameters of the model are updated by using Meta-SGD; the updated model is loaded, and the above steps are repeated to complete a new target tracking task. The application introduces the boundary positioning branch, enhances the positioning accuracy, dynamically weights the losses of the three branches to reduce the mismatching problem among the branches, and adopts Meta-SGD to train the model, so that the model can quickly adapt to a new tracking task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of deep learning technology, specifically relating to a twin network target tracking method based on meta-adaptive boundary localization. Background Technology

[0002] In recent years, with the rapid development of computing power and deep learning, artificial intelligence has become one of the leading forces of the new generation of technological revolution. Visual object tracking technology, as a hot topic in computer vision and artificial intelligence, plays a crucial role in smart cities, intelligent transportation, autonomous driving, and video surveillance, and has enormous development potential. With the rapid development of deep learning, its application in object tracking is becoming increasingly widespread, especially the object tracking method based on Siamese Networks, which has achieved excellent results in both accuracy and speed, and is gradually becoming the mainstream algorithm.

[0003] Generally, Siamese network trackers consist of a feature extraction network and a region candidate network. The feature extraction network is used for feature extraction; the region candidate network comprises two parts: a classification branch and a regression branch. The classification branch predicts the target confidence score to determine whether the target exists, while the regression branch uses an anchor box mechanism to predict the target's precise location. However, this Siamese network structure typically optimizes the classification and regression branches independently, without proper synchronization between them. This leads to an accuracy discrepancy between the classification and regression branches; that is, the bounding box corresponding to the position with the highest score from the classification branch has a lower score, while the bounding box predicted by the regression branch has a lower classification confidence score. Moreover, most Siamese network-based trackers use SGD to optimize the tracking model, which slows down the model's convergence speed and leads to overfitting, exacerbating the mismatch between the two branches. Due to this mismatch, the tracker is likely to miss accurately located bounding boxes, resulting in poor tracking performance. Summary of the Invention

[0004] Technical problem solved: To address the above-mentioned technical problems, this invention provides a twin network target tracking method based on meta-adaptive boundary localization. It introduces a boundary localization branch and uses the BorderAlign module to extract boundary features from the extreme points of the predicted box boundary to enhance localization accuracy. During model training, a meta-adaptive optimization method is used to learn the gradient descent algorithm instead of the traditional SGD algorithm, enabling the model to quickly adapt to new tracking tasks.

[0005] Technical solution: A twin network target tracking method based on meta-adaptive boundary localization, comprising the following steps:

[0006] Step 1: Load the tracker model based on Siamese network, which includes a feature extraction network and a region candidate network, and the region candidate network includes a classification branch, a regression branch and a boundary localization branch;

[0007] Step 2: Input the template image and the search image to be tracked into the feature extraction network for feature extraction to obtain the feature map extracted by convolution;

[0008] Step 3: Input the feature map extracted by convolution into the region candidate network. The classification branch and the regression branch perform deep cross-correlation operation to generate classification score map and regression prediction box respectively. The boundary localization branch has a BorderAlign module to generate boundary localization score and boundary localization prediction box.

[0009] Step 4: The BorderAlign module multiplies the boundary localization score with the classification score map to generate a new confidence score; the average of the boundary localization prediction box and the regression prediction box is calculated to obtain a new boundary prediction box.

[0010] Step 5: Adaptively weightedly fuse the new confidence score and the new bounding box to obtain the model's predicted confidence score and the model's predicted bounding box, which is the target tracking result. The weights are optimized synchronously with the network.

[0011] Step 6: Dynamically weight the losses of the classification branch, regression branch, and boundary localization branch to obtain the total loss optimization objective, and then use Meta-SGD to update the model's learning rate and network parameters;

[0012] Step 7: Load the updated model and repeat steps 1 through 6 to complete the new target tracking task.

[0013] Preferably, the feature extraction network includes a search branch and a template branch.

[0014] Furthermore, the specific operation of step two is as follows:

[0015] (1) The template image and the search image to be tracked are cropped into template patches and search patches respectively and input into the feature extraction network. Their sizes are 127×127×3 and 255×255×3 respectively.

[0016] (2) After feature extraction, the results of the 3rd, 4th and 5th convolutional layers in the search branch and template branch are extracted respectively. The corresponding convolutional results are cross-correlated to obtain the feature map extracted by convolution.

[0017] Preferably, the region candidate network consists of three cascaded Heads, each with a classification branch, a regression branch, and a boundary localization branch.

[0018] Preferably, the specific operation of generating boundary localization scores and boundary localization prediction boxes in step three is as follows: the feature map extracted by convolution is up-dimensioned using a 1×1 convolutional layer, and then the up-dimensioned features are input into the BorderAlign module. The BorderAlign module uses channel-level max pooling to extract features at the extreme points of the boundary prediction boxes, thereby generating boundary localization scores and boundary localization prediction boxes.

[0019] Preferably, the total loss optimization objective in step six is ​​expressed as follows:

[0020] ;

[0021] in, This represents the loss of the classification branch. This represents the loss of the regression branch. This represents the loss of the boundary localization branch, and = =1.

[0022] Preferably, the loss of the classification branch is expressed as follows:

[0023] ;

[0024] in, This represents the loss of the classification branch. The number of positive samples The cross-entropy loss used for the classification branch, For the classification score chart, For labels used in foreground and background classification, IoU is used to calculate the loss value between the regression predicted box and the ground truth box. Indicates the regression branch through the offset. , , , The obtained regression prediction box, This represents the true label value of the regression prediction box.

[0025] Preferably, the loss of the regression branch is expressed as follows:

[0026] ;

[0027] in, This represents the loss of the regression branch. The number of positive samples For labels used to classify foreground and background, L IoU The crossover ratio loss used for the regression branch This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value indicating the offset of the regression prediction box. This is a classification score chart.

[0028] Preferably, the loss of the boundary localization branch is expressed as follows:

[0029] ;

[0030] in, This represents the loss of the boundary location branch. The number of positive samples For labels used to classify foreground and background, L BCE The binary cross-entropy loss used to locate branches at the boundaries The IoU represents the boundary localization score, used to calculate the loss value between the regression predicted bounding box offset and its true label value. This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value of the regression prediction box offset.

[0031] Preferably, the learning rate and network parameter update process of the Meta-SGD training model in step six is ​​as follows:

[0032] ;

[0033] ;

[0034] ;

[0035] in, Here, β represents the learning rate, β represents a fixed value, and θ represents the network parameters. This represents the gradient.

[0036] Beneficial Effects: This invention employs the Meta-SGD meta-adaptive optimization method to update the model, enabling it to quickly adapt to the next tracking task. Furthermore, in addition to the original classification and regression branches, this invention adds a third branch: a boundary localization branch. The purpose is to utilize the BorderAlign module to extract boundary features from the extreme points of the predicted bounding box boundaries. Using the boundary features converged from each predicted bounding box boundary, the original point features are enhanced, improving the response to boundary extreme points without involving background noise. This generates boundary localization scores and boundary localization predicted boxes to correct the corresponding results of the classification and regression branches. Moreover, this invention integrates the information obtained from the classification, regression, and boundary localization branches and establishes a reciprocal relationship among the three branches, refining the tracking results and ensuring synchronous optimization of all three branches, thereby producing outputs with consistent accuracy. Attached Figure Description

[0037] Figure 1 This is a flowchart of the twin network target tracking method based on meta-adaptive boundary localization of the present invention;

[0038] Figure 2 This is a framework diagram of the twin network target tracking method based on meta-adaptive boundary localization of this invention. Detailed Implementation

[0039] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0040] Example 1

[0041] like Figure 1 As shown, this invention proposes a twin network target tracking method based on meta-adaptive boundary localization, which specifically includes the following steps:

[0042] Step 1: Load the tracker model based on Siamese network. The Siamese network includes a feature extraction network and a region candidate network. The feature extraction network includes a search branch and a template branch. The region candidate network consists of three cascaded heads, each of which has a classification branch, a regression branch, and a boundary localization branch.

[0043] Step 2: Input the template image and the search image to be tracked into the feature extraction network for feature extraction, and obtain the feature map extracted by convolution, as follows:

[0044] (1) The template image and the search image to be tracked are cropped into template patches and search patches respectively and input into the feature extraction network. Their sizes are 127×127×3 and 255×255×3 respectively.

[0045] (2) After feature extraction, the results of the 3rd, 4th and 5th convolutional layers in the search branch and template branch are extracted respectively. The corresponding convolutional results are cross-correlated to obtain three cross-correlated feature maps extracted by convolution.

[0046] Step 3: Input the feature maps extracted by convolution into the three cascaded heads of the region candidate network for classification and regression operations. The classification and regression branches undergo deep cross-correlation to generate classification score maps and regression prediction boxes, as detailed below:

[0047] ;

[0048] in, , This represents the template features and search features generated by the classification branch. , This represents the template features and search features generated by the regression branch, with * indicating a deep cross-correlation operation. Represents the classification score chart. Represents the regression prediction box;

[0049] The boundary localization branch includes a BorderAlign module, which generates boundary localization scores and predicted boundary localization bounding boxes, as detailed below:

[0050] The feature maps extracted by convolution are upscaled using a 1×1 convolutional layer. The upscaled features are then input into the BorderAlign module. The BorderAlign module employs channel-level max pooling, independently performing max pooling on the four boundaries on each of the C-channel input feature maps to extract features at the extreme points of the boundary prediction boxes, generating boundary localization scores and boundary localization prediction boxes. The output feature maps are as follows:

[0051] ;

[0052] in, This represents the value of the c-th channel at position (i, j) on the feature map. Let (i, j) represent the predicted bounding box at point (i, j), where w and h are the width and height of the predicted box. To eliminate quantization error, bilinear interpolation is used to obtain the accurate values. and neighboring feature values ​​on the feature map;

[0053] Step 4: The BorderAlign module multiplies the boundary localization score with the classification score map to generate a new confidence score; the average of the boundary localization prediction box and the regression prediction box is calculated to obtain a new boundary prediction box.

[0054] Step 5: Adaptively weightedly fuse the new confidence score and the new bounding box to obtain the model's predicted confidence score and the model's predicted bounding box, which is the target tracking result. The weights are optimized synchronously with the network.

[0055] Step 6: Dynamically weight the losses of the classification branch, regression branch, and boundary localization branch to obtain the total loss optimization objective, and then use Meta-SGD to update the model's learning rate and network parameters;

[0056] The overall loss optimization objective is expressed as follows:

[0057] ;

[0058] in, This represents the loss of the classification branch. This represents the loss of the regression branch. This represents the loss of the boundary localization branch, and = =1;

[0059] The loss for the classification branch is expressed as follows:

[0060] ;

[0061] in, This represents the loss of the classification branch. The number of positive samples The cross-entropy loss used for the classification branch, For the classification score chart, For labels used in foreground and background classification, IoU is used to calculate the loss value between the regression predicted box and the ground truth box. Indicates the regression branch through the offset. , , , The obtained regression prediction box, This represents the true label value of the regression prediction box.

[0062] The loss of the regression branch is expressed as follows:

[0063] ;

[0064] in, This represents the loss of the regression branch. The number of positive samples For labels used to classify foreground and background, L IoU The crossover ratio loss used for the regression branch This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value indicating the offset of the regression prediction box. This is a classification score chart.

[0065] The loss of the boundary localization branch is expressed as follows:

[0066] ;

[0067] in, This represents the loss of the boundary location branch. The number of positive samples For labels used to classify foreground and background, L BCE The binary cross-entropy loss used to locate branches at the boundaries The IoU represents the boundary localization score, used to calculate the loss value between the regression predicted bounding box offset and its true label value. This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value of the regression prediction box offset.

[0068] The entire training process employs the Meta-SGD algorithm instead of the traditional SGD to optimize the tracker model. It can initialize and adjust any differentiable learner in a single step, learning not only the initialization of the base tracker but also its update direction and learning rate. Multiply all parameters This means that all parameters in the tracking model are multiplied by a fixed learning rate. Size and They are all the same size, and this It is learnable, and Treated as ordinary parameters, they can be learned using gradient descent. The overall update is also performed using the normal gradient descent method. The learning rate and network parameter update process of the Meta-SGD training model are as follows:

[0069] ;

[0070] ;

[0071] ;

[0072] in, Here, β represents the learning rate, β represents a fixed value, and θ represents the network parameters. Represents the gradient;

[0073] Step 7: Load the updated model and repeat steps 1 through 6 to complete the new target tracking task.

Claims

1. A twin network target tracking method based on meta-adaptive boundary localization, characterized in that, The steps include the following: Step 1: Load the tracker model based on Siamese network, which includes a feature extraction network and a region candidate network, and the region candidate network includes a classification branch, a regression branch and a boundary localization branch; Step 2: Input the template image and the search image to be tracked into the feature extraction network for feature extraction to obtain the feature map extracted by convolution; Step 3: Input the feature map extracted by convolution into the region candidate network. The classification branch and the regression branch perform deep cross-correlation operation to generate classification score map and regression prediction box respectively. The boundary localization branch has a BorderAlign module to generate boundary localization score and boundary localization prediction box. Step 4: The BorderAlign module multiplies the boundary localization score with the classification score map to generate a new confidence score; the average of the boundary localization prediction box and the regression prediction box is calculated to obtain a new boundary prediction box. Step 5: Adaptively weightedly fuse the new confidence score and the new bounding box to obtain the model's predicted confidence score and the model's predicted bounding box, which is the target tracking result. The weights are optimized synchronously with the network. Step 6: Dynamically weight the losses of the classification branch, regression branch, and boundary localization branch to obtain the total loss optimization objective, and then use Meta-SGD to update the model's learning rate and network parameters; The overall loss optimization objective is expressed as follows: ; in, This represents the loss of the classification branch. This represents the loss of the regression branch. This represents the loss of the boundary localization branch, and = =1; The loss for the classification branch is expressed as follows: ; in, This represents the loss of the classification branch. The number of positive samples Cross-entropy loss used for classification branches, For the classification score chart, For labels used in foreground and background classification, IoU is used to calculate the loss value between the regression predicted box and the ground truth box. Indicates the regression branch through the offset. , , , The obtained regression prediction box, This represents the true label value of the regression prediction box; The loss of the regression branch is expressed as follows: ; in, This represents the loss of the regression branch. The number of positive samples For labels used to classify foreground and background, L IoU The crossover ratio loss used for the regression branch This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value indicating the offset of the regression prediction box. For classification score chart; The loss of the boundary localization branch is expressed as follows: ; in, This represents the loss of the boundary location branch. The number of positive samples For labels used to classify foreground and background, L BCE The binary cross-entropy loss used to locate branches at the boundaries The IoU represents the boundary localization score, used to calculate the loss value between the regression predicted bounding box offset and its true label value. This represents the width, height, and offset of the target center coordinates from the ground truth bounding box in the regression prediction bounding box. This represents the true label value indicating the offset of the regression prediction box; The learning rate and network parameter update process of the Meta-SGD model is as follows: ; ; ; in, Here, β represents the learning rate, β represents a fixed value, and θ represents the network parameters. Represents the gradient; Step 7: Load the updated model and repeat steps 1 through 6 to complete the new target tracking task.

2. The twin network target tracking method based on meta-adaptive boundary localization according to claim 1, characterized in that, The feature extraction network includes a search branch and a template branch.

3. The twin network target tracking method based on meta-adaptive boundary localization according to claim 2, characterized in that, The specific steps for step two are as follows: (1) The template image and the search image to be tracked are cropped into template patches and search patches respectively and input into the feature extraction network. Their sizes are 127×127×3 and 255×255×3 respectively. (2) After feature extraction, the results of the 3rd, 4th and 5th convolutional layers in the search branch and template branch are extracted respectively. The corresponding convolutional results are cross-correlated to obtain the feature map extracted by convolution.

4. The twin network target tracking method based on meta-adaptive boundary localization according to claim 1, characterized in that, The region candidate network consists of three cascaded Heads, each with a classification branch, a regression branch, and a boundary localization branch.

5. The twin network target tracking method based on meta-adaptive boundary localization according to claim 1, characterized in that, The specific operations for generating boundary localization scores and boundary localization prediction boxes in step three are as follows: the feature map extracted by convolution is upscaled using a 1×1 convolutional layer, and then the upscaled features are input into the BorderAlign module. The BorderAlign module uses channel-level max pooling to extract features at the extreme points of the boundary prediction boxes, thereby generating boundary localization scores and boundary localization prediction boxes.

Citation Information

Patent Citations

  • Robust vision SLAM method based on deep learning in dynamic scene

    CN112446882A

  • Style-based architecture for generative neural networks

    CN113408694A