Multi-feature target tracking method fusing LBP and attention based on twin network

By fusing LBP features and shallow and deep features in the twin network, and introducing a coordinated attention module, combined with the RPN network, the problem of accuracy and robustness of target tracking under illumination changes and complex environments is solved, and efficient goals are achieved. Track performance.

CN118628765APending Publication Date: 2024-09-10CHONGQING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
CN202410794241.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

Smart Images

  • Figure CN118628765A
    Figure CN118628765A
Patent Text Reader

Abstract

The invention discloses a multi-feature target tracking method fusing LBP and attention based on a twin network. The method comprises the following steps: S1, providing a twin network fusing LBP features; s2, carrying out LBP feature extraction on the video frame after preprocessing, then sending a local binary pattern graph into a twin network for training, and then carrying out shallow and deep feature extraction on a target; s3, introducing an attention coordinating module behind each feature layer of the network, and integrating channel and space coordinate information into a generated attention map; s4, fusing the information extracted from the shallow network and the network information extracted from the deep layer, and training through RPN; and S5, performing correlation operation by using two branches of SiamRPN to obtain final outputs of a classification branch and a regression branch so as to complete tracking of the target object. According to the method, the defect of the existing twin network in target tracking is overcome, the problem of position information loss is effectively relieved, and the tracking accuracy and robustness of the twin network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of target tracking, and specifically to a multi-feature target tracking method based on a twin network fusing LBP and attention. Background Art

[0002] The statements in this section only provide background information related to the present disclosure, and these statements may constitute prior art. In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art.

[0003] Target tracking is one of the important research topics in the field of machine vision. It has practical application value and great development potential. It is widely used in military equipment, smart medical care, intelligent robots, and unmanned driving. The purpose of target tracking is to predict the position and shape of a given target in each frame of video. When the position and scale information of the target object in the first frame is known, the background and other interference information in the video need to be distinguished from the target and the target object needs to be labeled during the tracking process. Then, the target needs to be continuously located and the scale estimated in subsequent video frames.

[0004] Nowadays, with the development of deep learning technology, convolutional neural network methods are widely used, and target tracking technology based on deep learning has gradually become a research hotspot. The target tracking method based on Siamese network (twin network) is a typical method that uses data sets to train the tracker end-to-end and converts the target tracking task into a similarity matching task. The two branches of the twin network input the template image of the first frame of the video and the search image of the current frame respectively.

[0005] The target tracker based on the twin network can overcome an important shortcoming of other deep learning networks, that is, the network speed is very slow when using a pre-trained network to extract features. The twin network has a faster speed and stronger tracking performance. Therefore, this paper also conducts research based on this type of target tracker.

[0006] Although Siamese can use a deep learning-based model to achieve a balance between tracking accuracy and speed in visual target tracking, under the influence of lighting, the target image will be easily overexposed and feature points of the target image will be lost, resulting in the target tracking failing to achieve real-time tracking and causing the tracked target to be lost. In addition, it also has the main problems commonly faced by visual target tracking technology, namely, when the target object to be tracked has a high degree of similarity with the surrounding environment, the target object cannot be effectively feature extracted, the local texture features of the image are unclear, the background information with a high degree of similarity is easily feature extracted, the target object is deformed, the network model cannot extract target features well, and important feature points are easily lost.

[0007] General target tracking network models use traditional manual feature extraction methods or only use deep features to extract target features, ignoring the impact of local texture features and shallow features of the image on target tracking. For example, the patent application number 202310060920.1 is called "Hyperspectral Video Target Tracking Method Based on Deep Spectral Cascade Texture Features". It combines deep features with spectral cascade texture prediction features. Although it overcomes the influence of illumination changes to distinguish targets from backgrounds to a certain extent, it still cannot solve the problem of low tracking accuracy and robustness of single extracted deep features in the environment. And it still cannot avoid the main problems commonly faced by visual target tracking technology.

[0008] In order to solve the defects of single extraction of deep features, the patent application number 202311662185.8, entitled "A single target combining attention mechanism and weighted response", adopts a residual semantic embedding module to adaptively introduce deep semantic information into shallow features, and then weightedly fuse shallow feature responses and deep feature responses in an attempt to solve the problem of drift or tracking loss in the tracking process. Although this method takes shallow features into account when extracting features, and attempts to facilitate the distinction between targets and backgrounds and the discrimination between targets and similar interferences by extracting shallow features, the applicant has found through experiments that the network model still cannot extract target features well and is prone to losing important feature points due to the loss of target image feature points due to overexposure, unclear local texture features of the image, easy feature extraction of background information with high similarity, and deformation of the target object. In addition, the position information is easily lost, and its tracking accuracy and robustness are still not high.

[0009] Although a small number of patents have taken channel and spatial position information into consideration through channel attention modules and spatial attention modules, the use of large-scale pooling methods is more likely to lead to the loss of position information in image frames. Summary of the invention

[0010] In view of the above problems, the object of the present invention is to solve part of the problems in the prior art, or at least alleviate these problems.

[0011] The multi-feature target tracking method based on the twin network fusion LBP and attention is characterized by comprising the following steps:

[0012] Construct a twin network that integrates LBP features, one branch is used to input the template image, and the other branch is used to input the search image;

[0013] After video preprocessing, the obtained template image and search image are respectively input into the corresponding branches of the twin network for LBP feature extraction to obtain the local binary images of the two branches;

[0014] The local binary image is subjected to shallow and deep feature extraction and feature fusion to obtain fused feature maps of the two branches respectively;

[0015] The fused feature maps of the two branches are sent to the RPN network to perform related operations, and the final output is weighted fused to obtain the output of the classification branch and the regression branch;

[0016] The target object is tracked based on the outputs of the classification branch and the regression branch, and the target position is finally output.

[0017] The twin network uses ResNeSt (residual neural network with split transformer) as the backbone network and deletes the last fully connected layer of the network.

[0018] The LBP operator used in the LBP feature extraction allows any number of pixels in a circular neighborhood with a radius of R, which can be expressed as a mathematical formula:

[0019]

[0020] Where p represents the pth sampling point among the total P sampling points in the circular area; I(c) represents the gray value of the center pixel, and I(p) represents the gray value of the pth point among the circular boundary pixels; there are a total of p points on the circular boundary, x c Indicates the horizontal coordinate of the center pixel, y c Represents the ordinate of the center pixel, and the coordinates of these points are as follows:

[0021]

[0022] The s(x) formula is the same as in the original LBP, as follows:

[0023]

[0024] The local binary image is subjected to shallow and deep feature extraction and feature fusion, including the following steps:

[0025] Input the image after LBP feature extraction into the twin network for feature extraction;

[0026] The shallow features and deep features extracted from the twin network are connected using the skip connection method;

[0027] The shallow network information is subjected to feature fusion with the deep network information after passing through Max pooling and 1×1 convolution modules.

[0028] Furthermore, a coordinated attention module is introduced after each convolutional layer of the twin network to coordinate attention on the input data given by the convolutional layer to associate the channel and spatial feature information between the convolution kernels.

[0029] Furthermore, the coordinated attention includes two steps: coordinate information embedding and coordinate attention generation; the coordinate information embedding is used to encode channel information in horizontal and vertical coordinates; the coordinate attention generation is used to capture position information and generate weight values.

[0030] Furthermore, the data of the convolutional layer is coordinated with attention, including the following steps:

[0031] According to the input X given by the convolutional layer, for each channel, a pooling kernel of size (H, 1) or (1, W) is used to encode in the horizontal and vertical directions respectively, and the encoding features of the cth channel at height H and width W are obtained respectively. and

[0032]

[0033] Where h is the height of X; w is the width of X; x c (h,i) represents the position (h,i) in the cth channel, x c (j,w) represents the position (j,w) in the cth channel;

[0034] The two coded features and Connect in the spatial dimension so that its length becomes (H+W), and use the shared convolution transformation function F1 to process it to obtain the intermediate feature map f:

[0035] f=δ(F1([z h ,z w ])) (6)

[0036] Among them, [z h ,z w ] represents the concatenation operation in the spatial dimension, δ is a nonlinear activation function, and f is the intermediate feature map that encodes the spatial information in the horizontal and vertical directions;

[0037] Decompose f into two separate tensors f along the spatial dimension h and f w ;

[0038] Using two convolution transformations, f h and f w Transformed into a tensor with the same number of channels as the input X, and then processed with the sigmoid activation function to obtain g h and g w :

[0039]

[0040] Finally, g h and g w Fused with the input feature X, we get the output of the coordinated attention module:

[0041]

[0042] F h and F w It is two 1×1 convolutions, g h and g w It is a two-dimensional weight; the Chinese-S-shaped activation function of the sigmoid activation function.

[0043] The related operation is a cross convolution operation; the fused feature maps obtained from the two branches are sent to the RPN network to perform related operations, including the following steps:

[0044] The fused feature maps obtained from the two branches are and Through two convolution operations, Divided into two branches and Corresponding to 2k channels and 4k channels respectively; It is also divided into two branches and The number of channels is the same as before;

[0045] by and are convolution kernels, respectively. and A convolution operation is performed on the feature map to obtain a 17x17x2k output and a 17x17x4k output. The convolution formula is as follows:

[0046]

[0047] Where * represents the convolution operation; the final classification branch outputs a feature map with 2k channels, k is the number of anchors (candidate boxes), which are grouped into k groups in pairs. Each group has a score map with 2 channels, which represent the scores of the foreground and background respectively; for the regression branch, the final output is a feature map with 4k channels, each group of 4, indicating the center position and size of the anchor, which is also divided into K groups.

[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the multi-feature target tracking method based on a twin network fusing LBP and attention.

[0049] The present invention has the following beneficial effects:

[0050] 1. The present invention constructs a twin network that integrates LBP features, fuses the local binary pattern of the image with deep features and shallow features, and cooperates with the cross convolution operation of the RPN network to improve the tracking accuracy; wherein, the LBP feature has strong robustness to lighting changes, first extracts the LBP feature of the template, and then extracts the shallow features and deep features of the video frame through the twin network for fusion, thereby improving the problem of low tracking accuracy and robustness of the extracted single deep feature in the environment, and can cooperate well with the twin network, so that the twin network has a faster speed and stronger tracking performance; and utilizes the grayscale invariance of the LBP feature to highlight the edge characteristics of the video content, and cooperates with the appearance information contained in the shallow features, so that the extracted features are more suitable for distinguishing between background and target, which is convenient for target positioning.

[0051] 2. The present invention introduces a coordinated attention module after each feature layer of the twin network, which helps to adaptively adjust the attention to different feature layers in the deep network, so that the network can be more focused on the semantic information related to the target and effectively alleviate the problem of position information loss; it can be well coordinated with LBP features and shallow and deep feature extraction to further improve tracking accuracy.

[0052] 3. The present invention adopts the improved LBP operator, which can not only adapt to texture features of different scales, but also meet the requirements of grayscale and rotation invariance, and can better cooperate with the shallow and deep feature extraction and fusion operations after the twin network. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a network structure framework diagram of the LBP and shallow-deep multi-feature fusion attention of the present invention;

[0054] Figure 2 is a flow chart of the present invention;

[0055] Figure 3 It is a framework diagram of the coordinated attention calculation process of the present invention. DETAILED DESCRIPTION

[0056] The present invention is further described below in conjunction with the accompanying drawings. The embodiments of the present invention are only used to illustrate the present invention rather than to limit the present invention. Without departing from the technical idea of ​​the present invention, various substitutions and changes can be made according to common technical knowledge and customary means in the field, which should all be included in the scope of the present invention.

[0057] In order to improve tracking accuracy and robustness, the applicant designed the following scheme.

[0058] like Figure 1 As shown in 2, the multi-feature target tracking method based on the fusion of LBP and attention based on the twin network includes the following steps:

[0059] S1: Twin network construction.

[0060] A twin network integrating LBP features is constructed, one branch is used to input the template image, and the other branch is used to input the search image.

[0061] The twin network uses ResNeSt as the backbone network. Since there is no need to perform classification operations on the results in Siamese, the last fully connected layer of the network is deleted. The present invention adopts the SiamRPN network as the overall network framework. SiamRPN includes two functional modules, wherein the Siamese module is used for feature extraction, and its structure is the same as the network structure in SiamFC; and the RPN module is used to generate suggestions, that is, to generate candidate target areas. The two branches of the RPN module are used for classification and regression respectively, wherein the classification branch realizes the discrimination of the target and the background, and the regression branch realizes the precise positioning of the target. The twin network of the present invention adds the advantageous functions of regression and classification.

[0062] S2: LBP feature extraction.

[0063] After video preprocessing, the obtained template image and search image are respectively input into the corresponding branches of the twin network for LBP feature extraction, and the local binary images of the two branches are obtained respectively.

[0064] After video preprocessing, LBP feature extraction is performed to highlight the edge characteristics of the video, and then shallow and deep features are extracted for the target. As a classic texture description method, LBP features are highly robust to illumination changes. Video frames extracted with LBP features show more obvious texture information than the original videos. Even in low-resolution and noisy video frames, these texture images can effectively detect edges and corners, highlighting their edge characteristics. In addition, LBP features are robust to illumination changes and noise, and can reduce feature distortion caused by environmental changes to a certain extent. By combining LBP features with the feature learning capabilities of the twin network, it can better adapt to target tracking tasks in various complex scenarios.

[0065] After the video frame is preprocessed, when LBP feature extraction is performed, in order to adapt to texture features of different scales and meet the requirements of grayscale and rotation invariance, the 3×3 neighborhood is expanded to an arbitrary neighborhood, and the square neighborhood is replaced by a circular neighborhood. After the improvement, the LBP operator used in the LBP feature extraction allows any number of pixels in a circular neighborhood with a radius of R, thereby obtaining an LBP operator containing P sampling points in a circular area with a radius of R, which is expressed as a mathematical formula:

[0066]

[0067] Where p represents the pth sampling point among the total P sampling points in the circular area; I(c) represents the gray value of the center pixel, and I(p) represents the gray value of the pth point among the circular boundary pixels; there are a total of p points on the circular boundary, x c Indicates the horizontal coordinate of the center pixel, y c Represents the ordinate of the center pixel, and the coordinates of these points are as follows:

[0068]

[0069] The s(x) formula is the same as in the original LBP, as follows:

[0070]

[0071] The improved LBP operator can not only adapt to texture features of different scales, but also meet the requirements of grayscale and rotation invariance, and can better cooperate with the shallow and deep feature extraction and fusion operations after the twin network.

[0072] S3: Shallow and deep feature extraction and fusion.

[0073] The local binary images of the two branches are subjected to shallow and deep feature extraction respectively, and feature fusion is performed to obtain fused feature images of the two branches respectively.

[0074] The local binary image is subjected to shallow and deep feature extraction and feature fusion, including the following steps:

[0075] Input the image after LBP feature extraction into the twin network for feature extraction;

[0076] The shallow features and deep features extracted from the twin network are connected using the skip connection method;

[0077] The shallow network information is subjected to feature fusion with the deep network information after passing through Max pooling and 1×1 convolution modules.

[0078] Specifically, the local binary image is input into the first three convolution layers of the twin network to obtain shallow network information; the shallow network information is passed through two more convolution layers to obtain deep network information. After the convolution operation of the first three layers is completed, the conv3 of the two branches and the conv5 that has passed through two layers of conventional CNN convolution are fused through Max pooling and 1×1 convolution modules.

[0079] After preprocessing, the LBP features of the target are first extracted, and then the video frames are extracted through the twin network for shallow features and deep features for fusion. Since the LBP feature has grayscale invariance, it highlights the edge characteristics of the video content and is suitable for distinguishing between the background and the target; and the shallow features contain appearance information, which is helpful for distinguishing between the target and the background and distinguishing between the target and similar interferences, and is suitable for target positioning. Therefore, after the video frames after LBP feature extraction are extracted through the twin network, the shallow features and deep features are fused by jump connection. The present invention adopts a method of fusing image local binary patterns (LBP) with deep features and shallow features to improve the problem of low tracking accuracy and robustness of the extracted single deep feature in the environment, thereby improving the tracking accuracy and robustness.

[0080] When extracting features from an image, in order to better select information in the network that is valuable for the task and associate the channel and spatial feature information between convolutional layers, the applicant introduces a coordinated attention module after each convolutional layer of the twin network to coordinate attention to the input data given by the convolutional layer to associate the channel and spatial feature information between the convolution kernels and reduce the amount of calculation. The specific fusion of shallow and deep information is as follows: Incorporating a coordinated attention mechanism after each feature layer of the network helps to adaptively adjust the attention to different feature layers in a deep network, so that the network is more focused on semantic information related to the target, and effectively alleviates the problem of position information loss.

[0081] The coordinated attention, the specific operation steps can be divided into two parts, including coordinate information embedding and coordinate attention generation; the coordinate information embedding is used to encode channel information in horizontal and vertical coordinates; the coordinate attention generation is used to capture position information and generate weight values.

[0082] like Figure 3 As shown, coordinating attention on the data of the convolutional layer includes the following steps:

[0083] ① Coordinate information embedding

[0084] According to the input X given by the convolutional layer, first for each channel, use the pooling kernel of size (H, 1) or (1, W) to encode in the horizontal and vertical directions respectively, and obtain the encoding features of the cth channel at height H and width W respectively and

[0085]

[0086] Where h is the height of X; w is the width of X; x c (h,i) represents the position (h,i) in the cth channel, x c (j,w) represents the position (j,w) in the cth channel;

[0087] ② Coordinate attention generation

[0088] The two coded features and Connect in the spatial dimension so that its length becomes (H+W), and use the shared convolution transformation function F1 to process it to obtain the intermediate feature map f:

[0089] f=δ(F1([z h ,z w ])) (6)

[0090] Among them, [z h ,z w ] represents the concatenation operation in the spatial dimension, δ is a nonlinear activation function, and f is the intermediate feature map that encodes the spatial information in the horizontal and vertical directions;

[0091] Then f is decomposed into two separate tensors f along the spatial dimension h and f w ;

[0092] In addition, two convolution transformations are used to transform f h and f w Transformed into a tensor with the same number of channels as the input X, and then processed with the sigmoid activation function to obtain g h and g w :

[0093]

[0094] Finally, g h and g w Fused with the input feature X, we get the output of the coordinated attention module:

[0095]

[0096] F h and F w It is two 1×1 convolutions, g h and g wIt is a two-dimensional weight; the Chinese-S-shaped activation function of the sigmoid activation function.

[0097] The coordinated attention module embeds position information into channel attention to expand the scope of attention while avoiding a lot of computational overhead. This module uses two parallel one-dimensional feature encoders to integrate channel and spatial coordinate information into the generated attention map, while solving the problem of position information loss caused by two-dimensional global pooling in CBAM. This module is a plug-and-play, flexible and lightweight model that not only considers channel and spatial information at the same time, but also effectively solves the long-term dependency problem.

[0098] S4: Weighted fusion.

[0099] The fused feature maps of the two branches are sent to the RPN network to perform related operations, and the final output is weighted fused to obtain the output of the classification branch and the regression branch.

[0100] The related operation is a cross convolution operation; the fused feature maps obtained from the two branches are sent to the RPN network to perform related operations, including the following steps:

[0101] The fused feature maps obtained from the two branches are and Through two convolution operations, Divided into two branches and Corresponding to 2k channels and 4k channels respectively; It is also divided into two branches through convolution and and The difference is, The number of channels of the two layers remains the same as before. We introduce Max pooling and 1×1 convolution modules to ensure that the fused two layers of feature maps have the same size. Max pooling and 1×1 convolution modules can unify the image and retain the original spatial information.

[0102] Then, a special "convolution" operation is performed to and are convolution kernels, respectively. and A convolution operation (cross convolution) is performed on the feature map to obtain a 17x17x2k output and a 17x17x4k output. The convolution formula is as follows:

[0103]

[0104] Where * represents the convolution operation; the final classification branch outputs a feature map with 2k channels, K is the number of anchors (candidate boxes), and this feature map will be divided into k groups in pairs. Each group has a score map with 2 channels, which respectively represent the scores of the foreground and background. For the regression branch, the final output is a feature map with 4k channels, each group of 4, indicating the center position and size of the anchor, which is also divided into K groups.

[0105] S5: Complete the tracking of the target object according to the output of the classification branch and the regression branch, and finally output the position of the target.

[0106] The classification branch predicts the positive and negative samples in the current sequence, and the regression branch predicts the position and scale information of the current output target, and finally outputs the position of the target. This step is performed by the twin network itself and is an existing technology.

[0107] The present invention discloses a multi-feature target tracking method based on a twin network integrating LBP and attention. The method comprises the following steps: proposing a twin network integrating LBP features; firstly extracting LBP features from video frames after preprocessing, and then sending the local binary pattern map into the twin network for training, and then extracting shallow and deep features of the target; introducing a coordinated attention module after each feature layer of the network, and integrating channel and spatial coordinate information into the generated attention map; fusing the information extracted from the shallow network with the network information extracted from the deep layer, and then training through RPN; performing correlation operations using two branches of SiamRPN to obtain the output of the final classification branch and regression branch, thereby completing the tracking of the target object.

[0108] In the designed model, a coordinated attention model is built and integrated into the network. In order to ensure that the size and number of channels of each layer of feature maps are consistent during the fusion process, an adjustment module consisting of 1×1 convolution and maximum pooling is added to perform jump connections on the network to obtain the network feature score map, thereby obtaining more accurate target classification and regression.

[0109] The present invention adopts a method of fusing local binary patterns of images with deep features and shallow features. Among them, LBP features, as a classic texture description method, have strong robustness to changes in illumination. Therefore, after preprocessing, the LBP features of the target are first extracted, and then the shallow features and deep features of the video frame are extracted through the twin network for fusion, so as to improve the problem of low tracking accuracy and robustness of the extracted single deep features in the environment. And it can cooperate well with the target tracker based on the twin network to overcome the problem of very slow network speed when using a pre-trained network to extract features, so that the twin network has a faster speed and stronger tracking performance. Therefore, the present invention is also based on this type of target tracker for research.

[0110] And when extracting features from images, in order to better select information in the network that is valuable to the task and associate the channel and spatial feature information between convolutional layers, the present invention proposes to introduce a coordinated attention module after each feature layer of the backbone network. The coordinated attention module helps to adaptively adjust the attention to different feature layers in the deep network, so that the network can focus more on the semantic information related to the target, and effectively alleviate the problem of position information loss. The LBP feature has grayscale invariance, highlights the edge characteristics of the video content, and is suitable for distinguishing between the background and the target; while the shallow feature contains appearance information, which helps to distinguish between the target and the background and the discrimination between the target and similar interferences, and is suitable for target positioning; so after the video frame after LBP feature extraction is extracted through the twin network, the shallow features and deep features are fused by skip connection.

[0111] The present invention constructs a twin network that integrates LBP features, adopts the image local binary pattern (BLP) and integrates deep features and shallow features, and cooperates with the cross convolution operation of the RPN network to improve the accuracy and robustness of target tracking. The LBP operator is improved to make it more adaptable to texture features of different scales and meet the requirements of grayscale and rotation invariance. The coordinated attention module introduced after each convolution layer of the twin network is used to associate the channel and spatial feature information between the convolution kernels, so that the network can focus more on semantic information related to the target, and effectively alleviate the problem of position information loss, further improving the tracking accuracy. Experimental results show that the present invention has improvements in all aspects of performance compared to other traditional trackers.

[0112] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the multi-feature target tracking method based on a twin network fusing LBP and attention.

Claims

1. A multi-feature target tracking method based on a twin network integrating LBP and attention, characterized in that: The following steps are involved: Construct a twin network that integrates LBP features, one branch is used to input the template image, and the other branch is used to input the search image; After video preprocessing, the obtained template image and search image are respectively input into the corresponding branches of the twin network for LBP feature extraction to obtain the local binary images of the two branches; The local binary image is subjected to shallow and deep feature extraction and feature fusion to obtain fused feature maps of the two branches respectively; The fused feature maps of the two branches are sent to the RPN network to perform related operations, and the final output is weighted fused to obtain the output of the classification branch and the regression branch; The target object is tracked based on the outputs of the classification branch and the regression branch, and the target position is finally output.

2. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 1 is characterized in that: The twin network uses ResNeSt (residual neural network with split transformer) as the backbone network and deletes the last fully connected layer of the network.

3. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 1 is characterized in that: The LBP operator used in the LBP feature extraction allows any number of pixels in a circular neighborhood with a radius of R, which can be expressed as a mathematical formula: Where p represents the pth sampling point among the total P sampling points in the circular area; I(c) represents the gray value of the center pixel, and I(p) represents the gray value of the pth point among the circular boundary pixels; there are a total of p points on the circular boundary, x c Indicates the horizontal coordinate of the center pixel, y c Represents the ordinate of the center pixel, and the coordinates of these points are as follows: The s(x) formula is the same as in the original LBP, as follows:

4. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 1 is characterized in that: The local binary image is subjected to shallow and deep feature extraction and feature fusion, including the following steps: Input the image after LBP feature extraction into the twin network for feature extraction; The shallow features and deep features extracted from the twin network are connected using the skip connection method; The shallow network information is subjected to feature fusion with the deep network information after passing through Max pooling and 1×1 convolution modules.

5. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 4 is characterized in that: A coordinated attention module is introduced after each convolutional layer of the twin network to coordinate attention on the input data given by the convolutional layer to associate the channel and spatial feature information between the convolution kernels.

6. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 5 is characterized in that: The coordinated attention includes two steps: coordinate information embedding and coordinate attention generation; the coordinate information embedding is used to encode channel information in horizontal and vertical coordinates; the coordinate attention generation is used to capture position information and generate weight values.

7. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 6 is characterized in that: Coordinate attention on the data of the convolutional layer, including the following steps: According to the input X given by the convolutional layer, for each channel, a pooling kernel of size (H, 1) or (1, W) is used to encode in the horizontal and vertical directions respectively, and the encoding features of the cth channel at height H and width W are obtained respectively. and Where h is the height of X; w is the width of X; x c (h,i) represents the position (h,i) in the cth channel, x c (j,w) represents the position (j,w) in the cth channel; The two coded features and Connect in the spatial dimension so that its length becomes (H+W), and use the shared convolution transformation function F1 to process it to obtain the intermediate feature map f: f=δ(F1([z h ,z w ])) (6) Among them, [z h ,z w ] represents the concatenation operation in the spatial dimension, δ is a nonlinear activation function, and f is the intermediate feature map that encodes the spatial information in the horizontal and vertical directions; Decompose f into two separate tensors f along the spatial dimension h and f w ; Using two convolution transformations, f h and f w Transformed into a tensor with the same number of channels as the input X, and then processed with the sigmoid activation function to obtain g h and g w : Finally, g h and g w Fused with the input feature X, we get the output of the coordinated attention module: F h and F w It is two 1×1 convolutions, g h and g w It is a two-dimensional weight; the Chinese-S-shaped activation function of the sigmoid activation function.

8. The multi-feature target tracking method based on the fusion of LBP and attention based on the twin network according to claim 1 is characterized in that: The related operation is a cross convolution operation; the fused feature maps obtained from the two branches are sent to the RPN network to perform related operations, including the following steps: The fused feature maps obtained from the two branches are and Through two convolution operations, Divided into two branches and Corresponding to 2k channels and 4k channels respectively; It is also divided into two branches and The number of channels is the same as before; by and are convolution kernels, respectively. and A convolution operation is performed on the feature map to obtain a 17x17x2k output and a 17x17x4k output. The convolution formula is as follows: Where * represents the convolution operation; the final classification branch outputs a feature map with 2k channels, k is the number of anchors (candidate boxes), which are grouped into k groups in pairs. Each group has a score map with 2 channels, which represent the scores of the foreground and background respectively; for the regression branch, the final output is a feature map with 4k channels, each group of 4, indicating the center position and size of the anchor, which is also divided into K groups.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multi-feature target tracking method based on the fusion of LBP and attention based on a twin network are implemented as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Hyperspectral video target tracking method based on depth spectrum cascade texture features

    CN116091545A

  • Single target tracking method combining attention mechanism and weighted response

    CN117788515A

Cited By

  • Dynamic target tracking method based on LBP features and semantic features

    CN120411176A

  • Dynamic target tracking method based on LBP features and semantic features

    CN120411176B