Method for feature hierarchical embedding target tracking based on twin network framework
By introducing a feature-level embedding method into the Siamese network framework, utilizing sparse inline attention and Transformer Decoder, and combining motion tokens, the tracking failure problem of traditional Siamese networks under challenges such as occlusion and deformation is solved, achieving more robust and faster target tracking.
Patent Information
- Application Number
- CN202311238943.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-25
AI Technical Summary
Traditional twin network trackers are prone to failure when dealing with challenges such as target occlusion, deformation, blurring, and similar interference, and they fail to effectively utilize temporal context information.
A feature-level embedding method based on the Siamese network framework is adopted, including an instance feature enhancement module, a category feature aggregation module, and a motion information embedding module. By using a sparse in-line attention encoder, a Transformer Decoder, and motion tokens, the method improves instance discriminability and category consistency, and combines temporal context features.
The tracker's robustness and operating speed in complex environments have been enhanced, enabling it to accurately track target boundaries under conditions of target rotation, deformation, and partial occlusion.
Smart Images

Figure CN117541773B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of target tracking and deep learning technology, and in particular relates to a method for target tracking based on feature hierarchical embedding of a Siamese network framework. Background Technology
[0002] Target tracking is a task based on a given video or image sequence. In the first frame, the bounding box of a target of interest is annotated. Then, in subsequent frames, candidate regions matching the target are searched, and their coordinates in the image are located. In this way, we can obtain a series of continuously changing states of the target closely related to the target of interest annotated in the first frame.
[0003] Visual object tracking plays a crucial role in computer vision, serving as the foundation for many tasks such as visual analysis, autonomous driving, and pose estimation. However, object tracking is often challenged by variations in lighting, deformation, occlusion, background interference, and appearance changes caused by object motion. Furthermore, in practical applications, efficient object tracking algorithms must also consider time efficiency.
[0004] In recent years, with the significant improvement in computing power, deep learning has demonstrated enormous potential in various fields and achieved major breakthroughs in the field of artificial intelligence. In visual object tracking, the widespread application of deep learning methods has brought significant performance improvements, surpassing traditional classical methods. This has enabled object tracking technology to be widely used in the fields of artificial intelligence and computer vision, achieving satisfactory results.
[0005] With the help of deep neural networks, the emergence of Siamese networks has significantly improved tracking performance. In these methods, robust target representation learning plays a crucial role in enhancing tracking performance. However, existing tracking methods primarily focus on modeling instance features while neglecting the modeling of category information. Furthermore, the unconstrained feature learning process increases the risk of overfitting, causing the model to either overemphasize instance information or overemphasize category information.
[0006] In Siamese network-based visual trackers, cross-correlation is a commonly used method to measure the similarity between the target template and the search region, and it has been extensively studied in visual tracking. However, cross-correlation performs a local linear matching process, which can easily get trapped in local optima. Furthermore, cross-correlation can destroy the semantic information of the input features, hindering accurate perception of target boundaries. Therefore, most Siamese network trackers still face difficulties in handling target deformation, partial occlusion, and scale changes.
[0007] The utilization of spatiotemporal information is a core issue in the field of target tracking, as both spatial and temporal information are crucial. The former contains object appearance information used for target localization, while the latter includes the object's state changes across frames. Most Siamese network trackers are spatial trackers, treating target tracking as a template match between an initial template and the current search area, without effectively utilizing temporal information.
[0008] Therefore, there is an urgent need for a new technical solution to address this problem. Summary of the Invention
[0009] The technical problem to be solved by this invention is to provide a feature-hierarchical embedding target tracking method based on the Siamese network framework. This method addresses the issues that traditional Siamese network unconstrained feature learning causes the model to either emphasize instance information or category information, leading to tracking failures when the target is occluded, deformed, blurred, or interfered with by similar objects. It also addresses the problem that most traditional Siamese network trackers only utilize spatial information for tracking and do not make good use of temporal context information.
[0010] A feature-based hierarchical embedding target tracking method based on a Siamese network framework, comprising four modules: a Siamese network, an instance feature enhancement module, a category feature aggregation module, and a motion information embedding module, including the following steps, performed sequentially:
[0011] Step 1: Input the target template region Z and the target search region X t Feature extraction is performed using a Siamese Network to obtain the features f of the target template region Z. z and target search area X t Features f x The Siamese Network is divided into a template branch and a search branch, which share parameters to extract deep features;
[0012] Step 2: Apply the features f of the target template region Z obtained in Step 1. z and target search area X t Features f x After being flattened, the data is input into the instance feature enhancement module to obtain search features with instance discriminative power. and template features
[0013] The instance feature enhancement module includes multiple encoders based on a sparse embedded attention mechanism. The sparse embedded attention mechanism embeds an attention layer on top of the traditional attention mechanism to seek consistency among all relevant vectors. It also replaces the Softmax function in the original attention mechanism with the ReLU function, giving the attention sparsity. This allows the encoder to focus on the original information of the target and improve the instance discrimination capability of the features.
[0014] Step 3: Combine the target template region Z and the target search region X obtained in Step 1. t Features f x Input the category classifier and category encoder from the category feature aggregation module respectively to obtain the category features of the output template region of the category classifier. The category encoder module ultimately outputs the category aggregation features of the search region.
[0015] The category classifier takes the target template region Z as input, extracts features through a convolutional block, and then feeds the features into a fully connected layer for category classification. The parameters of the fully connected layer constitute the weights of the classifier. The category encoder module consists of N cascaded Transformer Encoders, which receive the search region X. t Features f x As input to Q, K and V are set as the weight matrices of the category classifier;
[0016] Step 4: Combine the output features from Step 2 and Step 3. After concatenation, the data is fed into the TransformerDecoder, where cross-attention of the output features is calculated instead of the cross-correlation operation of the traditional Siamese network, resulting in an enhanced feature representation f. vm ;
[0017] Step 5: Convert the enhanced feature representation f output by the Transformer Decoder in Step 4 into a single value. vm The input is fed into a corner-based prediction head network, and the prediction box coordinates are obtained by calculating the expected value of the corner probability distribution.
[0018] Step Six: Input the predicted box coordinates obtained in Step Five into the motion information embedding module. The motion information embedding module adjusts the search region X based on the predicted box coordinates. t The vector is cropped, and four embedding matrices are used to embed elements in the box coordinate system. The bounding box coordinates of all sampled target trajectories are then embedded and concatenated to obtain the final motion vector.
[0019] Step 7: Convert the motion vector E obtained in Step 6 into... motionThe feedback is sent to step four to provide temporal context features for the tracking network, enabling accurate tracking.
[0020] In step one, the Siamese networks all use ResNet50 convolutional neural network as the backbone network for feature extraction. ResNet50 introduces residual blocks and BN (Batch Normalization) layers on the basis of the traditional ResNet network, and abandons Dropout to solve the problems of gradient vanishing and gradient explosion caused by increasing the depth of the convolutional network.
[0021] The enhancement process of the instance feature enhancement module in step two is represented as follows:
[0022]
[0023] …
[0024]
[0025]
[0026] …
[0027]
[0028] in This indicates that the template region feature f z and search region features f x The l-th layer of hybrid features is generated by cascading along the spatial dimensions after flattening. Indicates calculation Self-focused hybrid features f represents the mixed features of the (l+1)th layer, where l represents the lth layer. N This represents the enhanced features of a hybrid instance of the search frame and the template frame. N represents the number of encoders. SparseInnerAttn represents the self-attention of the computational hybrid. FFN represents the refinement of features generated by the SparseInnerAttn module. LN represents layer normalization. DeConcat represents the decoupling of the template and search region tokens.
[0029] The category feature aggregation module in step three is represented as follows:
[0030]
[0031] Where ω represents the classifier weights, which are decomposed into C vectors, denoted as [ω1,…,ω]. C ].
[0032] The enhanced feature representation f in step four vm The output process is as follows: using search features with instance distinguishability. and template features Category aggregation features Motion vector E motion As input, first and splicing to enhance search frame features Then through calculation and Cross-attention between them, outputting an enhanced feature representation f vm Used in the subsequent prediction head network, the entire process is described as follows:
[0033]
[0034]
[0035]
[0036]
[0037] In the formula, Enhance features for instances of the search frame and category aggregation features Enhanced features of the spliced search frames For motion label E motion Template enhancement features Search Frame Enhancement Features The middle representation of the three components is MCA, which stands for Multi-head Cross-Attention Module. v ′ m This is the residual representation of the output of the multi-head cross-attention module and the enhanced features of the search frame.
[0038] The specific steps for obtaining the predicted box coordinates in step five are as follows:
[0039] The enhanced feature representation f output in step four vm The input is fed into a two-branch fully convolutional network (FCN), which consists of L stacked Conv-BN-ReLU layers and outputs two probability maps P for the top-left and bottom-right corners of the prediction box, respectively. tl (x,y) and P br (x, y), and finally, by calculating the expected value of the corner probability distribution, the coordinates of the top-left corner of the prediction box are obtained. and the bottom right corner It is expressed as follows:
[0040]
[0041]
[0042] In the formula, H represents the height of the enhanced feature map, and W represents the width of the enhanced feature map.
[0043] The final motion vector is obtained in step six. The specific steps are as follows:
[0044] ① Represent the historical trajectory of the target as a set of target object bounding box coordinates, T={Φ1,Φ2,…,Φ t}, where t represents the frame index, Φ represents the bounding box of the target object, and Φ is determined by the coordinates of the top-left corner of the target object. and bottom right corner Defined as The target trajectory is sampled using the following method;
[0045]
[0046] Where n is the number of sampled object trajectories, Δ is the fixed sampling interval, and Φ s(n) Let s(i) be the bounding box of the target in the nth frame, and s(i) be the frame index of the target trajectory sampling point;
[0047] ② For a tracker based on a Siamese network framework, the search region is cropped from the input image, given points in the input image (x... i ,y i The corresponding point in the search area is (x) o ,y o The pruning process used in the preprocessing of the twin network tracker is described as follows:
[0048] x o =(x i -i x )s x +o x
[0049] y o =(y i -i y )s y +o y
[0050] Among them, (i x i y ) represents the center coordinates of the cropping window in the input image, s x ,s y These are the scaling factors in the x and y directions, respectively. x ,o y () represents the center coordinates of the cropping and scaling window within the search area;
[0051] ③ Perform the same transformation on the sampled object trajectory to ensure that the object trajectory remains unchanged after clipping. The clipped result is represented as follows:
[0052] Four embedding matrices are used to embed elements in the box coordinate system, thereby embedding the transformed target trajectory into the network. The embedding matrices are represented as follows:
[0053] Where g represents the embedding granularity of the control target trajectory, d represents the size of each embedding vector, and the last entry of the embedding matrix is used as a padding vector to indicate invalid states;
[0054] ④ Normalize the coordinates of the sampled target bounding box to the range [1, g], quantize them into integers, and obtain the index of the embedding vector. This process is described as follows:
[0055]
[0056]
[0057]
[0058] Where (w,h) is the size of the feature map of the search region. This represents mapping the bounding box coordinates to row indices in the embedding matrix; in (o,l), o represents the bounding box coordinates and l represents the normalized scale parameter.
[0059] ⑤ Embed and concatenate the coordinates of all bounding boxes on the sampled target trajectory to obtain the motion feature vector.
[0060] Through the above design scheme, the present invention can bring the following beneficial effects:
[0061] This invention proposes a feature-level embedding tracking method based on a Siamese network framework. By learning feature embeddings that possess both instance discriminative power and intra-category consistency, it enhances the tracker's robustness against complex challenges. First, an instance feature enhancement module is proposed, with a sparsely embedded attention encoder at its core. This module calculates relevance from a global perspective and concentrates the most relevant information in the original search region to improve the network's instance discriminative ability. Second, a category feature aggregation module is proposed to summarize high-level category information, improving intra-category compactness and stabilizing target instance features even when instance appearance changes. Furthermore, considering that tracking is a temporal task, and current Siamese network trackers only utilize spatial information, a motion token embedded in the target's historical trajectory is proposed to improve tracking by providing temporal context features. Finally, a Transformer Decoder is used instead of traditional cross-correlation to measure the similarity between the target template and the search region, addressing the problems of cross-correlation destroying the semantic information of input features and hindering accurate target boundary perception. The tracker developed using this method maintains sufficient robustness and speed even under conditions of target rotation, deformation, partial occlusion, and similarity interference. Attached Figure Description
[0062] The present invention will be further described below with reference to the accompanying drawings and specific embodiments:
[0063] Figure 1 This is a flowchart of the feature hierarchical embedding tracking method based on the Siamese network framework of the present invention;
[0064] Figure 2 This is a schematic diagram of the feature enhancement module in this invention.
[0065] Figure 3 This is a schematic diagram of the category feature aggregation module in this invention. Detailed Implementation
[0066] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, this invention is not limited to the following embodiments, and specific implementation methods can be determined according to the technical solutions of this invention and actual circumstances. To avoid obscuring the essence of this invention, well-known methods, processes, and procedures are not described in detail.
[0067] This invention proposes a feature-level embedding target tracking method based on a Siamese network framework. By learning feature embeddings that possess both instance discriminative power and intra-category consistency, the robustness of the tracker to complex challenges is enhanced. The proposed instance feature enhancement module, with a sparse inline attention encoder at its core, calculates relevance from a global perspective and concentrates the most relevant information in the original search region to improve the network's instance discriminative ability. The proposed category feature aggregation module summarizes high-level category information, improving intra-category compactness and stabilizing target instance features even with changes in instance appearance. Furthermore, considering that tracking is a temporal task, and current Siamese network trackers only utilize spatial information, a motion token embedded in the target's historical trajectory is proposed to improve tracking by providing temporal context features. Finally, a Transformer Decoder is used instead of traditional cross-correlation to measure the similarity between the target template and the search region, improving upon the problems of cross-correlation destroying the semantic information of input features and hindering accurate perception of target boundaries. The tracker maintains sufficient robustness and running speed even under conditions of target rotation, deformation, partial occlusion, and similarity interference.
[0068] Figure 1 The diagram illustrates the framework of the feature-hierarchical embedding target tracking method based on a Siamese network framework according to the present invention. The specific implementation process of this method includes the following steps:
[0069] A. Connect the target template region Z and the target search region X. t The input is fed into a Siamese network for feature extraction to obtain the features f of the target template region Z. z and target search area X t Features f x The Siamese Network is divided into a template branch and a search branch, which share parameters to extract deep features;
[0070] Specifically, the Siamese Network is divided into two branches: a template branch and a search branch. These two branches share parameters and both use the ResNet50 convolutional neural network as the backbone for feature extraction. The ResNet50 convolutional neural network introduces residual blocks and Batch Normalization (BN) layers on the basis of the traditional ResNet network and abandons Dropout to solve the problems of network degradation, gradient vanishing, and gradient explosion caused by increasing the depth of convolutional networks.
[0071] B. The feature f of the target template region Z obtained in the above steps z and target search area X t Features f xAfter being flattened, the data is input into the instance feature enhancement module to obtain search features with instance discriminative power. and template features Figure 2 The diagram shown is a schematic representation of the feature enhancement module in this invention.
[0072] Specifically, the instance feature enhancement module mainly consists of an encoder with a sparse embedded attention mechanism at its core. The sparse embedded attention mechanism embeds an attention layer on top of the traditional attention mechanism to seek consistency among all relevant vectors. It also replaces the Softmax function in the original attention mechanism with the ReLU function, giving the attention sparsity and making the encoder focus on the original information of the target, thereby improving the instance discrimination ability of the features.
[0073] C. Combine the target template region Z and the target search region X from the above steps. t Features f x Input the category classifier and category encoder from the category feature aggregation module respectively to obtain the category features of the output template region of the category classifier. The category encoder module ultimately outputs the category aggregation features of the search region. Figure 3 The diagram shown is a structural schematic of the category feature aggregation module in this invention;
[0074] Specifically, the category feature aggregation module consists of two parts: a category classifier and a category encoder. The category classifier receives the target template region Z as input, extracts features through a convolutional block, and then feeds the features into a fully connected layer for category classification. The parameters of the fully connected layer constitute the weights of the classifier. Assuming there are C known categories, the classifier weights ω are decomposed into C vectors, represented as [ω1,…,ω]. C The category encoder module consists of N cascaded Transformer Encoders, which receive the search frame features f. x As input to Q, K and V are set as the weight matrices of the category classifier. The category encoder module ultimately outputs the category features after aggregating the search regions.
[0075] D. The output features of the above steps After concatenation, the data is fed into the Transformer Decoder, where cross-attention of the output features replaces the cross-correlation operation of the traditional Siamese network, resulting in an enhanced feature representation f. vm .
[0076] Specifically, the Transformer Dedocer structure used consists of a Multi-Head Cross-Attention (MCA) module and a Feedforward Network (FFN). The decoder uses search features with instance discriminative power. and template features Category aggregation features Motion vector E motion As input, first and splicing to enhance search frame features Then through calculation and Cross-attention between them, outputting an enhanced feature representation f vm Used in the subsequent prediction head network, the entire process can be described as follows:
[0077]
[0078]
[0079]
[0080] f vm =f v ′ m +FFN(LN(f v ′ m ))
[0081] In the formula, Enhance features for instances of the search frame and category aggregation features Enhanced features of the spliced search frames For motion label E motion Template enhancement features Search Frame Enhancement Features The middle representation of the three components is MCA, which stands for Multi-head Cross-Attention Module. v ′ m This represents the residual between the output of the multi-head cross-attention module and the enhanced features of the search frame.
[0082] E. The enhanced feature representation f output by the Transformer Decoder in the above steps. vm The input is fed into a corner-based prediction head network, and the prediction box coordinates are obtained by calculating the expected value of the corner probability distribution.
[0083] Specifically, it refers to the enhanced feature representation f output by the decoder. vm The input is fed into a two-branch fully convolutional network (FCN), which consists of L stacked Conv-BN-ReLU layers and outputs two probability maps P for the top-left and bottom-right corners of the prediction box, respectively. tl (x,y) and P br(x, y), and finally, by calculating the expected value of the corner probability distribution, the coordinates of the top-left corner of the prediction box are obtained. and the bottom right corner It is expressed as follows:
[0084]
[0085]
[0086] In the formula, H represents the height of the enhanced feature map, and W represents the width of the enhanced feature map.
[0087] F. Input the predicted box coordinates obtained from the prediction head network into the motion information embedding module. The motion information embedding module then adjusts the search region X based on the predicted box coordinates. t The process involves cropping the bounding box coordinates and then embedding them into four embedding matrices to obtain the final motion vector.
[0088] Specifically, the historical trajectory of the target is represented as a set of target bounding box coordinates, T = {Φ1, Φ2, ..., Φ...} t}, where t represents the frame index and Φ represents the bounding box of the target object. Φ is determined by the coordinates of the top-left corner of the target object. and bottom right corner Defined as The target trajectory is sampled using the following method:
[0089]
[0090] Where n is the number of sampled object trajectories, Δ is the fixed sampling interval, and Φ s(n) Let s(i) be the bounding box of the target in the nth frame, and s(i) be the frame index of the target trajectory sampling point;
[0091] For a tracker based on a Siamese network framework, the search region is cropped from the input image. Given points in the input image (x... i ,y i The corresponding point in the search area is (x) o ,y o The pruning process used in the preprocessing of the twin network tracker is described as follows:
[0092] x o =(x i -i x )s x +o x
[0093] y o =(y i -iy )s y +o y
[0094] Among them, (i x i y ) represents the center coordinates of the cropping window in the input image, s x ,s y These are the scaling factors in the x and y directions, respectively. x ,o y () represents the center coordinates of the cropping and scaling window within the search area. We apply the same transformation to the sampled object trajectory to ensure that the object trajectory is invariant to cropping; the cropped result is represented as:
[0095] Then, to embed the transformed target trajectory into the network, we use four embedding matrices to embed the elements in the box coordinate system. The embedding matrices are represented as follows: Here, g controls the embedding granularity of the target trajectory, and d represents the size of each embedding vector. The last entry of the embedding matrix is used as a padding vector to indicate invalid states, such as the object not existing or not in the search region. We normalize the sampled target object bounding box coordinates to the range [1, g], quantize them into integers, and obtain the indices of the embedding vectors. This process can be described as follows:
[0096]
[0097]
[0098]
[0099] Where (w,h) is the size of the feature map of the search region. This represents mapping the bounding box coordinates to row indices in the embedding matrix; in (o,l), o represents the bounding box coordinates and l represents the normalized scale parameter.
[0100] Finally, the coordinates of all bounding boxes on the sampled target trajectory are embedded and concatenated to obtain the motion feature vector.
[0101] G. The motion vector E obtained by embedding motion information into the module. motion The data is fed back to the Transformer Decoder to provide the network with temporal context features, enabling accurate tracking.
Claims
1. A method for target tracking based on feature hierarchical embedding within a Siamese network framework, the method comprising the following four modules: Siamese network, instance feature enhancement module, category feature aggregation module, and motion information embedding module, characterized by: It includes the following steps, and the following steps are performed in sequence. Step 1: Input the target template area and target search area Feature extraction is performed on the Siamese network to obtain the target template region. Features and target search area Features The twin network is divided into a template branch and a search branch, which share parameters to extract deep features; Step 2: Select the target template area obtained in Step 1. Features and target search area Features After being flattened, the data is input into the instance feature enhancement module to obtain search features with instance discriminative power. and template features ; The instance feature enhancement module includes multiple encoders based on a sparse embedded attention mechanism. The sparse embedded attention mechanism embeds an attention layer on top of the traditional attention mechanism to seek consistency among all relevant vectors. It also replaces the Softmax function in the original attention mechanism with the ReLU function, giving the attention sparsity. This allows the encoder to focus on the original information of the target and improve the instance discrimination capability of the features. Step 3: Select the target template area obtained in Step 1. and target search area Features The category classifier and category encoder in the category feature aggregation module are input respectively, and the category classifier obtains the category features of the output template region. The category encoder module ultimately outputs the category aggregation features of the search region. ; The category classifier will target the template region. As input, features are extracted through a convolutional block, and then fed into a fully connected layer for category classification. The parameters of the fully connected layer constitute the weights of the classifier; the category encoder module consists of... A series It consists of a search area. Features As enter, and The weight matrix set as the category classifier ; Step 4: Use search features with instance distinguishability and template features Category aggregation features Motion vectors As input, first and Concatenated into search frames to enhance features Then through calculation and Cross-attention between them, outputting enhanced feature representations ,in, Represents motion vector Template features Search frame enhancement features The three parts are spliced together; Step 5: (The text appears to be incomplete and contains several grammatical errors. A more accurate translation would require the full context.) Enhanced feature representation of output The input is fed into a corner-based prediction head network, and the prediction box coordinates are obtained by calculating the expected value of the corner probability distribution. Step Six: Input the predicted box coordinates obtained in Step Five into the motion information embedding module. The motion information embedding module then uses the predicted box coordinates to adjust the search area. The vector is cropped, and four embedding matrices are used to embed elements in the box coordinate system. The bounding box coordinates of all sampled target trajectories are then embedded and concatenated to obtain the final motion vector. ; Step 7: Convert the motion vectors obtained in Step 6 into... The feedback is sent to step four to provide temporal context features for the tracking network, enabling accurate tracking.
2. The feature-hierarchical embedding target tracking method based on a Siamese network framework according to claim 1, characterized in that: In step one, the twin networks all use convolutional neural networks. Convolutional neural networks serve as the backbone of feature extraction. In tradition Residual blocks and Layers, and were deprecated. This aims to address the issues of gradient vanishing and gradient explosion caused by increasing the depth of convolutional networks.
3. The feature-hierarchical embedding target tracking method based on a Siamese network framework according to claim 1, characterized in that: The enhancement process of the instance feature enhancement module in step two is represented as follows: ; in, Indicates the template region features and search region features The first generation generated after flattening and cascading along spatial dimensions Layer blending features Indicates calculation Self-focused hybrid features Indicates the first Layer blending features Indicates the first layer, This represents a hybrid instance enhancement feature representing a search frame and a template frame. Indicates the number of encoders, This indicates the use of computational mixing for self-concern. Indicates to Feature refinement generated by the module Representation layer normalization, This indicates the decoupling of the template and the search area token.
4. The feature-hierarchical embedding target tracking method based on a Siamese network framework according to claim 1, characterized in that: The category feature aggregation module in step three is represented as follows: ; in, Classifier weights Decomposed into vectors, denoted as .
5. The method for feature-hierarchical embedding target tracking based on a Siamese network framework according to claim 1, characterized in that: The enhanced feature representation in step four The output process is as follows: ; In the formula, For search features and category aggregation features Enhanced features of the spliced search frames Motion vector Template features Search frame enhancement features The middle part, formed by combining the three elements. It is a multi-head cross-attention module. This represents the residual between the output of the multi-head cross-attention module and the enhanced features of the search frame.
6. The method for feature-hierarchical embedding target tracking based on a Siamese network framework according to claim 1, characterized in that: The specific steps for obtaining the predicted box coordinates in step five are as follows: The enhanced feature representation output in step four The input is fed into a two-branch fully convolutional network, which is composed of... Stacked The system consists of layers and outputs two probability maps for the top left and bottom right corners of the prediction box, respectively. and Finally, by calculating the expected value of the corner probability distribution, the coordinates of the top-left corner of the prediction box are obtained. and the coordinates of the bottom right corner It is expressed as follows: ; In the formula, Indicates the height of the enhanced feature map. This indicates the width of the enhanced feature map.
7. The method for target tracking based on feature hierarchical embedding of a Siamese network framework according to claim 1, characterized in that: The final motion vector is obtained in step six. The specific steps are as follows: ① Represent the historical trajectory of the target as a set of target object bounding box coordinates. ,in Indicates the frame index. The bounding box representing the target object. The top left corner coordinates of the target object and bottom right corner Defined as The target trajectory is sampled using the following method; ; in, The number of trajectories of the sampled objects. For a fixed sampling interval, For the goal of The bounding box of the frame. The frame index for the target trajectory sampling points; ② For a tracker based on a Siamese network framework, the search region is cropped from the input image, given points in the input image as... The corresponding point in the search area is The pruning process used in the preprocessing of the twin network tracker is described as follows: ; in, These are the center coordinates of the cropping window in the input image. These are the scaling factors in the x and y directions, respectively. These are the center coordinates of the cropping and scaling window within the search area; ③ Perform the same transformation on the sampled object trajectory to ensure that the object trajectory remains unchanged after clipping. The clipped result is represented as follows: ; Four embedding matrices are used to embed elements in the box coordinate system, thereby embedding the transformed target trajectory into the network. The embedding matrices are represented as follows: ; in, This indicates the embedding granularity for controlling the target trajectory. This represents the size of each embedding vector, with the last entry of the embedding matrix used as a padding vector to indicate invalid states; ④ Normalize the coordinates of the sampled target bounding box. Within the range, quantize to integers to obtain the index of the embedded vector. This process is described as follows: ; in, It is the size of the feature map of the search region. This indicates that the target bounding box coordinates are mapped to row indices in the embedding matrix; middle, Indicates the coordinates of the target bounding box. The scale parameter represents the normalization. ⑤ Embed and stitch together the coordinates of all bounding boxes on the sampled target trajectory to obtain the motion vector. .
