A target tracking method based on adaptive multi-layer response fusion of Siamese network
Patent Information
- Application Number
- CN202110800081.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Existing video target tracking technology has insufficient robustness and anti-interference capabilities when faced with interference factors such as illumination changes, object rotation, attitude changes, scale scaling, target occlusion, and similar objects in the background, resulting in reduced target tracking accuracy.
An adaptive multi-layer response fusion method based on deep twin neural network is designed. By constructing a deep twin neural network with residual channel attention clipping module, multi-scale information fusion representation and adaptive attention module are used to improve target tracking. robustness and generalization ability.
It achieves improved target tracking accuracy and enhanced robustness in complex backgrounds, can effectively respond to target deformation and appearance changes, improves the intelligence level of the video surveillance system, reduces human intervention, and enhances public safety.
Smart Images

Figure CN113689464B
Abstract
Description
Technical Field
[0001] The present invention relates to the intersection of deep learning, digital image processing and computer vision, and to a target tracking method based on a fully convolutional twin network. Background Art
[0002] With the development of society, people are increasingly pursuing a smarter life. Video surveillance has been applied to many areas of people's lives, including criminal investigation monitoring, traffic vehicle monitoring, community security monitoring, etc. However, at present, many of the target tracking work in these surveillance videos is done manually. Due to the uncertainty of manual work, important information may be missed. Therefore, it is necessary to propose a method that can effectively and automatically track targets in surveillance videos.
[0003] Video target tracking refers to the process of obtaining video data through electronic devices, selecting one or more objects in the video as targets, giving the position and scale information of the target's initial state, and then using the target tracking algorithm to complete the prediction of the target's state information in the subsequent video frame sequence, thereby tracking the target's movement. Video target tracking is the basis of high-level video tasks and plays an important role in video analysis, video understanding, and video interaction. Therefore, it has broad application prospects in industrial, military, and civilian fields such as intelligent video surveillance, intelligent transportation, human-computer interaction, autonomous driving, and missile guidance.
[0004] Although video-based target tracking technology has a wide range of application needs, it can free people from a large number of tasks and provide people with an important basis for analysis and decision-making. However, in real scenes, there are many interference factors including illumination changes, object rotation, posture changes, scale scaling, target occlusion, imaging blur, and highly similar objects in the background, which makes video-based target tracking a more difficult problem. Existing target tracking technologies such as continuous convolution tracking operators and efficient convolution operators use a combination of deep features and correlation filtering to improve the robustness and anti-interference ability of target tracking algorithms, but do not use the end-to-end learning ability of deep learning and its powerful fitting and adaptive capabilities. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the present invention provides a target tracking method based on an adaptive multi-layer response fusion of a twin network. Therefore, the present invention designs a video target tracking method and method that can meet the needs of practical applications, so as to achieve robust tracking of targets in surveillance videos. In view of the shortcomings of today's traditional target tracking methods, a target tracking method based on an adaptive multi-layer response fusion of a twin network is proposed. In order to solve the problem of background similarity interference, the present invention proposes a new multi-scale information fusion representation to achieve correct tracking of the target; in order to solve the problem of deformation of the moving target or change of the appearance model, the present invention proposes an adaptive attention module to cope with the deformation problem of the tracked object, so as to improve the accuracy of target tracking, and improve the robustness and generalization ability of target tracking in complex backgrounds.
[0006] The main steps of the technical solution adopted by the present invention to solve its technical problem are as follows:
[0007] Step 1: Build a deep twin neural network with a residual channel attention cropping module and use the deep twin neural network for feature extraction; the twin neural network consists of two parallel networks, namely the target template branch and the search area branch. The target template branch is used to extract the feature map of the target, and the search area branch is used to extract the features of different feature spaces in the search area;
[0008] Step 2: Input the target image and the search image into the target template branch and the search area branch corresponding to the deep twin neural network. The target image and the search image are respectively generated into corresponding feature maps through the deep twin neural network.
[0009] Step 3: Obtain three features from different feature spaces of the target template branch and the search area branch, namely, low-level features, middle-level features, and high-level features. Use the three features of the target template branch and the search area branch as convolution kernels, perform convolution operations on the features corresponding to the search area branch, and obtain three score maps, which are the similarities between each position of the search image in the search area and the target image in the target template branch.
[0010] Step 4: Perform a fusion and addition operation on the three obtained score maps, and finally obtain a more reliable fused score map calculated from multi-layer features; the position with the largest response in the fused score map is the position of the target in this frame, and then a cropping operation is performed to crop the output feature map. The cropping operation removes the outermost features on the boundary of the feature map affected by the zero padding operation;
[0011] Step 5: By adjusting the hyperparameters of the deep twin neural network, the learning performance and effect of the network are improved to obtain the optimized deep twin neural network;
[0012] Step 6: After the training operation in step 5, the search image to be tracked is passed through steps 1 to 4, and the detection results are given through the deep twin neural network to achieve automatic target tracking.
[0013] In the step 1, the deep twin neural network backbone network includes a residual channel attention cropping module, which is composed of a stack of 3 convolutional layers and 1 channel attention module, and a residual structure composed of a short jump connection with a convolutional layer, wherein the short jump connection is a 1x1 convolution; the 3 convolutional layers are 1x1 convolution, 3x3 convolution and 1x1 convolution, respectively, and the channel attention module is after the 3x3 convolutional layer, wherein the 3x3 convolutional layer includes a padding of size 1 and a padding value of 0, and the outermost features on the feature map boundary affected by the zero padding operation are removed by the cropping operation; the residual channel attention cropping module is an adaptive structure, and the adaptive structure reduces the size of the output feature through a maximum pooling layer to ensure the completeness of the information. The adaptive structure can enhance the discrimination and adaptive capabilities of the tracker while reducing the impact of noise.
[0014] In step 5, the hyperparameters include learning rate, batch size, convolution kernel size and activation function.
[0015] The beneficial effect of the present invention is that the present invention provides a target tracking method based on adaptive multi-layer response fusion of twin networks. The method fully utilizes the information of different target objects through the feature adaptive module, can adapt well to different target objects, and can track any target specified by the user in the video sequence. In addition, the present invention further improves the reliability of target tracking by using the strategy of multi-layer response fusion. The present invention can be used in a public safety detection system, using the provided adaptive target tracking method to continuously track suspicious targets such as suspicious vehicles and suspicious pedestrians, and using target behavior recognition technology to analyze the target behavior during the continuous tracking process, making the monitoring system more intelligent, providing great protection for social public safety, and reducing economic losses caused by accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the tracking process of the present invention;
[0017] Figure 2 It is the residual channel attention cropping module of the present invention;
[0018] Figure 3 It is the channel attention structure of the present invention;
[0019] Figure 4 This is the multi-layer response fusion positioning system structure of the present invention. DETAILED DESCRIPTION
[0020] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0021] To address the problems of video-based target tracking in complex backgrounds, a target tracking method based on adaptive multi-layer response fusion of Siamese networks is proposed.
[0022] The embodiment of the present invention provides a multi-layer response fusion target adaptive tracking method, which uses the idea of cross-correlation, uses convolution operation to replace sliding window detection, and proposes a feature adaptive module to achieve adaptive tracking of different targets in the video. By fusing multiple responses, a more robust response map is finally obtained to accurately locate the target.
[0023] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description is given below with reference to the accompanying drawings.
[0024] The present invention proposes an adaptive structure in the target tracking adaptive system, which combines the residual idea with the channel attention, namely the residual channel attention clipping module, which is a key component of the entire network and can bring great optimization and effective representation to the network. The specific composition of the residual channel attention clipping module is as follows Figure 2 As shown in the figure, it is first composed of a residual structure consisting of a stack of three convolutional layers and a channel attention module and a short jump connection with a convolutional layer. A 1x1 convolution is used on this short jump connection. The three convolutional layers are 1x1 convolution, 3x3 convolution and 1x1 convolution. The 1x1 convolution is responsible for reducing and restoring the channel dimension, so that the 3x3 convolution layer has a very small input and output dimension as a bottleneck layer, reducing the amount of calculation. This 3x3 convolution layer includes a padding of size 1 and a padding value of 0 to ensure the compatibility of the output size before addition. However, in the traditional twin network tracking framework, when the target moves to the edge of the image, this zero padding operation will introduce position deviation, resulting in the performance of the target tracker not being improved but rather being reduced. Therefore, a cropping operation is added after the addition, which removes the outermost features on the boundary of the feature map affected by the zero padding operation. This simple operation can remove the position deviation introduced by the zero padding operation. The adaptive structure ends with a maximum pooling layer to reduce the size of the output feature and ensure the completeness of the information. This adaptive structure can reduce the impact of noise while enhancing the tracker's discrimination and adaptability.
[0025] The channel attention in the adaptive structure is as follows: Figure 3 As shown in the figure, it consists of a global average pooling, a weight downsampling layer, a weight upsampling layer, and a sigmoid function.
[0026] The input is a H×W×C feature X=[x1,…,x n ,…,x c ], which contains c feature channels of size H×W. First, a spatial global average pooling (GAP) is performed to obtain a 1×1×C channel description. Then, a downsampling layer (WD), an upsampling layer (WU) and a Sigmoid function (F) are used to obtain the weight coefficient of each channel. The weight coefficient is multiplied by the original feature to obtain the scaled new feature. The whole process is actually a re-weighted distribution of the features of different channels. By modeling the interdependence between feature channels, the features of each channel are adaptively rescaled, allowing the network to focus on more useful channels and enhance the discriminative learning ability and adaptive ability. Among them, the weight downsampling layer and the weight upsampling layer are both implemented through 1x1 convolution. The weight downsampling layer uses C / r 1x1 convolutions to reduce the number of channels to the original 1 / r. The activation function used is Relu. The weight upsampling layer increases the number of channels to the original C, where r is the scaling factor of the number of channels.
[0027] The target image and the search image are input into the deep twin neural network, and the target image and the search image are respectively transformed into corresponding feature maps by the deep twin neural network with the residual channel attention cropping module.
[0028] In the multiple fusion response positioning module, the low-level features, middle-level features, and high-level features of the target template branch are used as convolution kernels, and the corresponding low-level features, middle-level features, and high-level features on the search branch are respectively convolved to obtain three predicted score maps. The three obtained score maps are added together to finally obtain a more reliable score map calculated from multiple layers of features. The position with the largest response in the fused score map is the position of the target in this frame.
[0029] Among them, the formula for the convolution operation is:
[0030]
[0031] b represents the value of each position in the score map; As the convolution kernel, Convolution is performed on .
[0032] The three obtained score maps are fused and added together to finally obtain a more reliable score map calculated from multiple layers of features. The position with the largest response in the score map is the position of the target in this frame.
[0033] By adjusting the hyperparameters of the deep twin neural network, the learning performance and effect of the network can be improved. The main hyperparameters include learning rate, batch size, convolution kernel size, and activation function.
[0034] The parameters of the network are updated by minimizing the logistic loss function through the optimizer. The initialized parameter values follow the Gaussian distribution and are adjusted according to the improved Xavier method, where the weights of the convolution kernel and the full connection are unified using Xavier, and the remaining parameters are initialized to fixed values 0 or 1. A total of 50 epochs were conducted during the training process, and training was performed on 2 GPUs, each GPU was responsible for 8 images, so the gradient of each iteration was calculated and estimated by a minimum batch size of 16. Stochastic gradient descent (SGD) was used for optimization during training, and the learning rate was automatically adjusted from 0.01 to 0.00001 in each round of training in a geometric annealing manner, and the weight decay coefficient was set to 0.0005.
[0035] After training, the video to be tracked is input into the network, and the detection results are given through the optimized deep twin neural network to achieve automatic target tracking.
[0036] In summary, the process of this adaptive target tracking method is as follows Figure 1 As shown in the figure, the target template image uses the target area of the first frame of the video sequence; the search image is the target search area in the subsequent frames; the target template branch and the search area branch are respectively passed through a convolutional neural network with shared weights, and the original image is mapped to a specific feature space through the feature mapping operation of the convolutional neural network. The features of different feature spaces from the target template branch and the search area branch are obtained, namely, low-level features, middle-level features, and high-level features. The three features of the template branch are used as convolution kernels, and convolution operations are performed on the features corresponding to the search area branch to obtain three score maps, which are the similarity values between each position in the search area and the target template. The three score maps are fused, and the position with the largest response value is the position of the target in this frame. When tracking the next frame, the search image centered on the target position of the previous frame is used to calculate the response score map.
[0037] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A target tracking method based on adaptive multi-layer response fusion of Siamese network, characterized in that The steps include: Step 1: Construct a deep twin neural network with a residual channel attention cropping module, and use the deep twin neural network for feature extraction; the twin neural network consists of two parallel networks, namely the target template branch and the search area branch, the target template branch is used to extract the feature map of the target, and the search area branch is used to extract the features of different feature spaces in the search area; the deep twin neural network backbone network contains a residual channel attention cropping module, which is composed of a stack of 3 convolutional layers and 1 channel attention module, and a short jump connection with a convolutional layer to form a residual structure, where the short jump connection is 1x1 convolution; the 3 convolutional layers are 1x1 convolution, 3x3 convolution and 1x1 convolution, respectively, and the channel attention module is after the 3x3 convolutional layer, where the 3x3 convolutional layer includes a padding of size 1 and a padding value of 0, and the outermost features on the feature map boundary affected by the zero padding operation are removed by the cropping operation; the residual channel attention cropping module is an adaptive structure, which reduces the size of the output feature through a maximum pooling layer to ensure the completeness of the information; Step 2: Input the target image and the search image into the target template branch and the search area branch corresponding to the deep twin neural network. The target image and the search image are respectively generated into corresponding feature maps through the deep twin neural network. Step 3: Obtain three features from different feature spaces of the target template branch and the search area branch, namely, low-level features, middle-level features and high-level features, use the three features of the target template branch and the search area branch as convolution kernels, perform convolution operations on the features corresponding to the search area branch, and obtain three score maps, which are the similarities between each position of the search image in the search area and the target image in the target template branch; specifically, the target template image uses the target area of the first frame of the video sequence; the search image is the target search area in subsequent frames; the target template branch and the search area branch are respectively subjected to a convolutional neural network with shared weights, and the original image is mapped to a specific feature space through the feature mapping operation of the convolutional neural network; obtain low-level features, middle-level features and high-level features from different feature spaces of the target template branch and the search area branch, use the low-level features, middle-level features and high-level features of the template branch as convolution kernels, perform convolution operations on the features corresponding to the search area branch, and obtain three score maps, which are the similarity values between each position in the search area and the target template; Step 4: Perform a fusion and addition operation on the three obtained score maps, and finally obtain a more reliable fused score map calculated from multi-layer features; the position with the largest response in the fused score map is the position of the target in this frame, and then a cropping operation is performed to crop the output feature map. The cropping operation removes the outermost features on the boundary of the feature map affected by the zero padding operation; Step 5: By adjusting the hyperparameters of the deep twin neural network to improve the learning performance and effect of the network, an optimized deep twin neural network is obtained; wherein the hyperparameters include learning rate, batch size, convolution kernel size and activation function; Step 6: After the training operation in step 5, the search image to be tracked is passed through steps 1 to 4, and the detection results are given through the deep twin neural network to achieve automatic target tracking.
