Twin network target tracking method based on historical trajectory information and fine-grained matching

By introducing historical trajectory information and fine-grained matching into the twin network, combined with the method of predicting trajectory information using the LSTM network, the tracking failure problem of twin network target tracking under severe occlusion, similar target interference and deformation is solved, and tracking accuracy and stability are improved. sex.

CN114612518BInactive Publication Date: 2024-10-15XIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210258272.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing twin network target tracking methods are prone to tracking failure when faced with severe occlusion, similar target interference and large deformation, and the interference of background information in template features leads to inaccurate tracking positions.

Method used

The twin network target tracking method based on historical trajectory information and fine-grained matching is adopted. Deep features are extracted through the pre-trained AlexNet network and fine-grained matching is performed. It is combined with the predicted trajectory information of the LSTM network for weighted fusion to obtain the final tracking results.

Benefits of technology

It effectively suppresses background information interference, enhances the network's ability to respond to appearance deformation, similar interference and occlusion, solves the problem of tracking drift, and improves tracking accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612518B_ABST
    Figure CN114612518B_ABST
Patent Text Reader

Abstract

The present invention discloses a twin network target tracking method based on historical trajectory information and fine-grained matching, comprising: step 1, pre-training a full convolution feature extraction network; step 2, selecting a training trajectory predictor; step 3, obtaining a video sequence, using a full convolution feature extraction network to extract the deep features of the video sequence and decomposing it into a group of fine-grained convolution kernels by fine-grained matching, performing a windowing operation on the convolution kernel group to obtain a matching response map, thereby obtaining a target tracking result; step 4, inputting the tracking results of the 8 frames before the current frame as the historical trajectory information of the current frame into the trajectory predictor to predict the target tracking result in the current frame; step 5, weightedly fusing the target tracking result obtained in step 3 and the tracking result in step 4 to obtain the final tracking result. The present invention solves the problem that the existing twin network target tracking method is easily subject to severe occlusion, interference from similar targets, and large deformations, which lead to tracking failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of target tracking and relates to a twin network target tracking method based on historical trajectory information and fine-grained matching. Background Art

[0002] Single target tracking technology has always been the most basic and important topic and research direction in the current field of computer vision. Single target tracking technology refers to the technology that can infer the position and width and height information of the tracked target in a continuous video image sequence. Currently, single target tracking technology has been widely used in autonomous driving, video surveillance, human-computer interaction, etc., so it has very important research value and application prospects.

[0003] At present, the single target tracking method based on the twin architecture has become the mainstream in the single target tracking algorithm. Compared with the traditional correlation filter algorithm, the algorithm based on the twin network can achieve high accuracy and good real-time performance. The main idea of ​​the twin network is to use a function that can map the input image to a high-dimensional feature space so that the simple distance in this high-dimensional space can approximately replace the "semantic" information in the low-dimensional space. Secondly, the twin network measures the matching degree between two patterns in the high-dimensional space by finding a suitable matching function, so that the response value of the same class is very high, while the response value of different classes is very low. In the past, the twin network was mainly used for metric learning, such as measuring the similarity of signature handwriting or the similarity of voice information. In the single target tracking technology, the twin network first cuts out a target area containing the tracked target from the first frame as a template, and passes it through a fully convolutional network to generate template features. When the subsequent frame comes in, the search area of ​​the subsequent frame passes through the same fully convolutional network to generate the search area feature, and the similarity between it and the template feature is measured to obtain the position and size of the target in the current frame. Most of the existing twin network-based target tracking algorithms measure similarity through the appearance feature information of the target in the current frame, without considering the historical trajectory information of the target. Therefore, when the target undergoes a large deformation, encounters severe occlusion, or similar interference around it, it is easy for the tracker to be unable to cope with this situation well and thus fail to track. Secondly, directly using template features to measure similarity with the search area may sometimes introduce background information in the template, resulting in inaccurate final tracking position. Summary of the invention

[0004] The purpose of the present invention is to provide a twin network target tracking method based on historical trajectory information and fine-grained matching, which solves the problem that the existing twin network target tracking method is easily affected by severe occlusion, interference from similar targets, large deformation and other reasons that lead to tracking failure.

[0005] The technical solution adopted by the present invention is:

[0006] The twin network target tracking method based on historical trajectory information and fine-grained matching includes the following steps:

[0007] Step 1: Select the pre-trained AlexNet network as the fully convolutional feature extraction network of the twin network;

[0008] Step 2, select the pre-trained LSTM network as the trajectory predictor;

[0009] Step 3: Get the video sequence and use the fully convolutional feature extraction network The deep features of the video sequence are extracted and decomposed into a group of fine-grained convolution kernels through fine-grained matching. The convolution kernel group is windowed to obtain a matching response map, thereby obtaining the target tracking result.

[0010] Step 4: Input the tracking results of the previous 8 frames as the historical trajectory information of the current frame into the trajectory predictor L(·) to predict the tracking result of the target in the current frame;

[0011] Step 5: Perform weighted fusion on the target tracking result obtained in step 3 and the tracking result predicted by LSTM to obtain the final tracking result.

[0012] The present invention is also characterized in that:

[0013] Step 3 is as follows:

[0014] Step 3.1, obtain the tracking video, manually select the target area on the first frame of the video, input the target area of ​​the first frame as a template into the feature extraction network, and obtain the deep features of the template Then decompose the template features into a set of fine-grained convolution kernels according to the spatial dimension

[0015] Step 3.2 For the current frame, use the coordinate position (x t-1 ,y t-1 ) and width and height (w t-1 ,h t-1 ) Get the search area X of the current frame t , and input it into the feature extraction network to obtain the deep features of the search area of ​​the current frame

[0016] Step 3.3: Group the convolution kernels according to the windowing operation Sequentially and in the current frame search area depth features Do similarity calculation and get the corresponding response graph;

[0017] In step 3.4, the response map is interpolated to a fixed size. The maximum value point on the response map corresponds to the position of the target in the current frame, that is, the tracking result of the current frame.

[0018] Step 3.3 is as follows:

[0019] The convolution kernel group generated by template feature decomposition is matched in a fine-grained manner. Elements and search area features in Slide the window one by one,

[0020] When a single convolution kernel When acting on the search area, There is always an area with the same size as the convolution kernel on the surface, which is defined as

[0021] Using cosine similarity measure and The similarity of these two vectors is:

[0022]

[0023] is the feature vector after tiling at position (x, y) in the search area, It is the feature vector obtained after the mth convolution kernel in the convolution kernel group is flattened;

[0024] After each complete window operation, a feature map of the search area is generated. For response maps of the same size, when all convolution kernels complete the windowing operation in sequence, the size of the generated response map is the same as the size of the search area feature map. The final response map h c (Z,X t )for A collection of .

[0025] The specific window operation is as follows:

[0026] Convolution kernel group The convolution kernels in the search area start sliding from the upper left corner in turn, first sliding from the left to the right in the first row of the search area, then sliding from the left to the right in the second row, and so on, until it reaches the rightmost side of the last row.

[0027] Step 3.4 is as follows:

[0028] Step 3.4.1, calculate the offset of the previous frame using formula (7):

[0029] disp img =disp h×stride×scale1×scale2 (5)

[0030] Among them, disp h is the offset of the target relative to the center on the response graph, stride is the step size of the full convolutional network, scale1 is the scaling factor from the cropped image to the specified size, scale2 is the scale factor, disp img In fact, it contains the offset (Δx, Δy) of the target in the horizontal and vertical coordinates relative to the previous frame, and this offset is used to determine the position of the current frame.

[0031] Step 3.4.2, disp img In fact, it contains the offset (Δx, Δy) of the target relative to the previous frame in the horizontal and vertical coordinates, and uses this offset to determine the position of the current frame. The specific calculation formula is:

[0032]

[0033] Step 3.4.3, update the width and height of the current frame target (w t ,h t ) provides a basis for target tracking in the next frame. The update of width and height depends on the parameter scale2, which determines the change scale of width and height. The calculation method is as follows:

[0034] scale=(1-r)+r×scale2 (7)

[0035] Where r is the update rate, and the target width and height of the current frame are updated by the change scale. The calculation formula is:

[0036]

[0037] Step 7 is as follows: the position information and width and height information of the past 8 frames of the current frame are used as the input of the trajectory predictor to predict the position and width and height of the current frame. The calculation formula is:

[0038] Track t =L(Track t-7 ,Track t-6 ,…,Track t-1 ) (9)

[0039] Finally, the tracking results obtained by fine-grained matching and the results obtained by trajectory prediction are weighted fused to obtain the final tracking result. The formula is:

[0040] HF t =λ Track t +(1-λ)H t (10)

[0041] Among them, λ is a hyperparameter, Track t is the prediction result of the trajectory predictor, H t This is the tracking result based on fine-grained matching.

[0042] The beneficial effects of the present invention are:

[0043] 1. The present invention replaces the original measurement method with a fine-grained measurement method, so that the interference caused by the background information in the template is suppressed, thereby effectively solving the problem of tracking failure caused by background interference.

[0044] 2. By integrating the prediction results of the trajectory predictor with the measurement results of fine-grained matching, the target's motion information and current appearance feature information are fully considered. This enables the network to better cope with appearance deformation, similar interference and occlusion problems, and solves the tracking drift problem caused by them. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart of the twin network target tracking method based on historical trajectory information and fine-grained matching of the present invention.

[0046] Figure 2 It is a schematic diagram of spatially decomposing template features to form a set of fine-grained convolution kernel groups in a twin network target tracking method based on historical trajectory information and fine-grained matching of the present invention;

[0047] Figure 3 It is a schematic diagram of the sliding window operation performed in the process of fine-grained matching of the present invention.

[0048] Figure 4 This is the tracking result of a certain frame on the OTB test set of Example 1 of the present invention.

[0049] Figure 5 It is the tracking IOU value curve of the video sequence Vase on the OTB test set according to Example 1 of the present invention. DETAILED DESCRIPTION

[0050] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] The twin network target tracking method of the present invention is based on historical trajectory information and fine-grained matching, such as Figure 1 , including the following steps:

[0052] Step 1: Select the pre-trained AlexNet network as the fully convolutional feature extraction network of the twin network;

[0053] Step 2, select the pre-trained LSTM network as the trajectory predictor;

[0054] Step 3: Get the video sequence and use the fully convolutional feature extraction network The deep features of the video sequence are extracted and decomposed into a group of fine-grained convolution kernels through fine-grained matching. The convolution kernel group is windowed to obtain a matching response map, thereby obtaining the target tracking result.

[0055] Step 4: Input the tracking results of the previous 8 frames as the historical trajectory information of the current frame into the trajectory predictor L(·) to predict the tracking result of the target in the current frame;

[0056] Step 5: Perform weighted fusion on the target tracking result obtained in step 3 and the tracking result predicted by LSTM to obtain the final tracking result.

[0057] Step 3 is as follows:

[0058] Step 3.1, get the tracking video, manually select the target area on the first frame of the video, let (x, y) represent the center point coordinates of the target in the first frame, w and h represent the width and height of the target area respectively. Take the center point (x, y) of the selected target in the first frame as the center, intercept a square area with a side length of z_sz, and the calculation formula of z_sz is as follows:

[0059]

[0060] Where pad = (w + h) / 4, which indicates the padding amount. If the padded square area exceeds the original image, the excess part is filled with the RGB mean value of the image. Then the square area with a side length of z_sz is scaled to 127 × 127 to obtain the target area Z of the first frame.

[0061] The target area of ​​the first frame is input into the feature extraction network as a template to obtain a feature map of size w. z ×h z Template features of ×c The template features are decomposed into convolution kernels of size 1×1×c according to the spatial dimension (such as Figure 2 ), a total of n z convolution kernels, where n z =w z ×h z , w z and h z Represents the template features The width and height of this set of convolution kernels are used To express.

[0062] Step 3.2 For the current frame, use the coordinate position (xt-1 ,y t-1 ) and width and height (w t-1 ,h t-1 ) Get the search area X of the current frame t , and input it into the feature extraction network to obtain the deep features of the search area of ​​the current frame Specifically:

[0063] Using the center position coordinates (x t-1 ,y t-1 ) and width and height (w t-1 ,h t-1 ) intercepts a square area with a side length of x_sx. The calculation formula of x_sx is as follows:

[0064]

[0065] Among them, pad t-1 =(w t-1 +h t-1 ) / 4, which indicates the filling amount. If the filled square area exceeds the image, the excess part is filled with the RGB mean value of the image. Then the square area with a side length of x_sx is scaled to 255×255 to obtain the search area X of the current frame. t , and input it into the feature extraction network to obtain the features of the search area of ​​the current frame The size is w x ×h x ×c.

[0066] Step 3.3: Group the convolution kernels according to the windowing operation Sequentially and in the current frame search area depth features Do similarity calculation and get the corresponding response graph;

[0067] Step 3.4, interpolate the response map to a fixed size. The maximum value point on the response map corresponds to the position of the target in the current frame. Then use linear interpolation to update the width and height of the target to obtain the position and size information H of the target on the original image. t , which is the tracking result of the current frame.

[0068] Step 3.3 is as follows:

[0069] The convolution kernel group generated by template feature decomposition is matched in a fine-grained manner. Elements and search area features in Do as follows Figure 3 The window operation shown is the convolution kernel group The convolution kernels in the search area start sliding from the upper left corner in turn, first sliding from the left to the right in the first row of the search area, then sliding from the left to the right in the second row, and so on, until they reach the rightmost of the last row. When acting on the search area, There is always an area with the same size as the convolution kernel. This area is defined as Where i and j represent the convolution kernels respectively. In search area The subscripts for horizontal and vertical movement are The size of is 1, so its The step size of moving up is also 1, so the value ranges of i and j are as follows:

[0070]

[0071] because and The size of the and They are tiled into one-dimensional vectors of (1×1×c)×1 and

[0072] Use cosine similarity to measure the similarity between these two vectors. Solution and The cosine similarity is as follows:

[0073]

[0074] is the feature vector after tiling at position (x, y) in the search area, It is the feature vector obtained after the mth convolution kernel in the convolution kernel group is flattened. The cosine similarity metric can well reflect the similarity between two feature maps.

[0075] After each complete window operation, a feature map of the search area is generated. For response maps of the same size, when all convolution kernels complete the windowing operation in sequence, the size of the generated response map is the same as the size of the search area feature map. The final response map h c (Z,X t )for A collection of .

[0076] Step 3.4 is as follows:

[0077] Step 3.4.1, in the response graph, the offset of the point with the highest response value relative to the center position is equivalent to the mapping of the change in the target relative to the previous frame position in the response graph. Since the response graph is generated by first cropping the original image, then scaling it to a specified size, and finally generating it through a fully convolutional network, the offset of the target on the original image relative to the previous frame position can be obtained by reverse deduction of the process.

[0078] disp img =disp h ×stride×scale1×scale2 (5)

[0079] Among them, disp h is the offset of the target relative to the center on the response graph, stride is the step size of the full convolutional network, and scale1 is the scaling factor of the cropped image to the specified size. Since the target will change in scale during movement, in order to cope with this change, after cropping the original image, we will enlarge or reduce the cropped image according to the scale factor scale2. Therefore, when predicting the offset of the target in the original image, it is necessary to compensate for it by multiplying it by scale2. Finally, we will get the position offset disp of the target compared to the previous frame. img ;

[0080] Step 3.4.2, disp img It actually contains the target's horizontal and vertical coordinates (x t-1 ,y t-1 ) and use this offset to determine the position of the current frame. The specific calculation formula is:

[0081]

[0082] Step 3.4.3 Update the width and height of the current frame target (w t ,h t ) provides a basis for target tracking in the next frame. The update of width and height depends on the parameter scale2, which determines the change scale of width and height. The calculation method is as follows:

[0083] scale=(1-r)+r×scale2 (7)

[0084] Where r is the update rate, and the target width and height of the current frame are updated by the change scale. The calculation formula is:

[0085]

[0086] w t-1 and h t-1They are the width and height of the target in the previous frame respectively.

[0087] Step 4 is as follows: the position information and width and height information of the past 8 frames of the current frame are used as the input of the trajectory prediction predictor to predict the position and width and height of the current frame. The calculation formula is:

[0088] Track t =L(Track t-7 ,Track t-6 ,…,Track t-1 ) (9)

[0089] It should be noted that when the past historical trajectory information is insufficient, we can copy the past historical information, for example, Track2 = L(Track1, Track1, …, Track1), or Track7 = L(Track1, Track1, …, Track6). After the tracking of the current frame is completed, the input of the LSTM module is updated by the tracking result, and the next frame is taken as the current frame to jump to step 4 for tracking subsequent frames.

[0090] The specific calculation method of step 5 is:

[0091] HF t =λ Track t +(1-λ)H t (10)

[0092] Among them, λ is a hyperparameter, Track t is the prediction result of the trajectory predictor, H t This is the tracking result based on fine-grained matching.

[0093] Example 1

[0094] Step 1: Select the AlexNet network pre-trained on the ImageNet dataset as

[0095] Table 1 Feature extraction network parameters

[0096]

[0097]

[0098] Fully convolutional feature extraction network The parameters of are shown in Table 1. It contains 5 convolutional layers and 2 pooling layers. The first two convolutional layers are followed by two maximum pooling layers. The first four convolutional layers are followed by dropout layers and RELU nonlinear activation functions.

[0099] Step 2: The LSTM module pre-trained on the GOT10K dataset is used as the trajectory predictor L(·) in the overall network architecture.

[0100] Table 2 Trajectory predictor parameters

[0101] Parameter name Dimensionality Input Features 4 Hidden State 100 Number of stacking layers 8 Output characteristics 4

[0102] Input features refer to the input of the trajectory predictor in the present invention, which contains four dimensions in total, namely the center coordinates and width and height of the target. Hidden state refers to the state of the forget gate, input gate and output gate in the LSTM module, where the forget gate is used to control how much of the cell state at the previous moment is retained in the current state, the input gate is used to control how much of the current input is retained in the current cell state, and the output gate is used to control how much of the current cell state is output. In order to adapt to different motion laws in various scenarios, the dimensions of the three gates are set to 100. The number of stacking layers represents the input amount of the LSTM module. In the trajectory predictor of the present invention, the past 8 historical information is used to predict the current center coordinates and width and height, so the number of stacking layers of the LSTM module is 8. Finally, LSTM outputs the tracking prediction result of the current frame, and the output dimension is 4.

[0103] Step 3 is as follows:

[0104] Step 3.1, where the square area with a side length of z_sz is scaled to 127×127 to obtain the target area Z of the first frame. Finally, the target area Z of the first frame is input into the pre-trained feature extraction network Get a template feature with a size of 6×6×256 The template features are decomposed into convolution kernels of size 1×1×256 according to the spatial dimension. There are 36 convolution kernels in total. This set of convolution kernels is used To express.

[0105] Execute step 3.2, where the square area with a side length of x_sx is scaled to 255×255 to obtain the search area X of the current frame. t , and input it into the feature extraction network to obtain the features of the search area of ​​the current frame The size is 22×22×256.

[0106] Execute step 3.3 to match the convolution kernel group generated by template feature decomposition in a fine-grained manner. and search area features Do as follows Figure 3 The window operation shown. When a single convolution kernel When acting on the search area, There is always an area with the same size as the convolution kernel. This area is defined as Where i and j represent the convolution kernels respectively. In search area The subscripts for horizontal and vertical movement are The size of is 1, so its The step size of moving up is also 1, so the value ranges of i and j are as follows:

[0107]

[0108] because and The size of is 1×1×256. and Tiled into a one-dimensional vector of (1×1×256)×1 and Use cosine similarity to measure the similarity between these two vectors. Solution and The cosine similarity is as follows:

[0109]

[0110] After each complete window operation, a feature map of the search area is generated. For response maps of the same size, when all convolution kernels complete the windowing operation in sequence, the size of the generated response map is the same as the size of the search area feature map. The final response map h c (Z,X t )for A collection of .

[0111] Execute step 3.4, where r=0.21 in formula (7);

[0112] Execute steps 4 to 5, and take λ=0.40 in formula (10).

[0113] as follows, Figure 4 is the tracking result of a frame in the video sequence Vase in the OTB test set by this method. Figure 5 It is the IOU value curve of the method of the present invention on the video sequence.

Claims

1. A twin network target tracking method based on historical trajectory information and fine-grained matching, characterized in that: The following steps are involved: Step 1: Select the pre-trained AlexNet network as the fully convolutional feature extraction network of the twin network; Step 2, select the pre-trained LSTM network as the trajectory predictor; Step 3: Get the video sequence and use the fully convolutional feature extraction network The deep features of the video sequence are extracted and decomposed into a group of fine-grained convolution kernels through fine-grained matching. The convolution kernel group is windowed to obtain a matching response map, thereby obtaining the target tracking result. Step 4: The tracking results of the previous 8 frames of the current frame are input into the trajectory predictor L(·) as the historical trajectory information of the current frame to predict the tracking result of the target in the current frame; Step 5: weighted fusion of the target tracking result obtained in step 3 and the tracking result predicted by LSTM to obtain the final tracking result; The step 3 is specifically as follows: Step 3.1, obtain the tracking video, manually select the target area on the first frame of the video, and input the target area of ​​the first frame as a template into the feature extraction network to obtain a feature extraction network with a size of w z ×h z Template features of ×c Then decompose the template features into a set of fine-grained convolution kernels according to the spatial dimension A set of fine-grained sizes is 1×1×c, with a total of n z convolution kernels, where n z =w z ×h z , w z and h z Represents the template features width and height; Step 3.2 For the current frame, use the coordinate position (x t-1 ,y t-1 ) and width and height (w t-1 ,h t-1 ) Get the search area X of the current frame t , and input it into the feature extraction network to obtain the deep features of the search area of ​​the current frame Step 3.3: Group the convolution kernels according to the windowing operation Sequentially and in the current frame search area depth features Do similarity calculation and get the corresponding response graph; In step 3.4, the response map is interpolated to a fixed size. The maximum value point on the response map corresponds to the position of the target in the current frame, that is, the tracking result of the current frame.

2. The twin network target tracking method based on historical trajectory information and fine-grained matching according to claim 1 is characterized in that: The step 3.3 is specifically as follows: The convolution kernel group generated by template feature decomposition is matched in a fine-grained manner. Elements and search area features in Slide the window one by one, When a single convolution kernel When acting on the search area, There is always an area with the same size as the convolution kernel on the surface, which is defined as Using cosine similarity measure and The similarity of these two vectors is: n z i and j are both integers (4) is the feature vector after tiling at position (x, y) in the search area, It is the feature vector obtained after the mth convolution kernel in the convolution kernel group is flattened; After each complete window operation, a feature map of the search area is generated. For response maps of the same size, when all convolution kernels complete the windowing operation in sequence, the size of the generated response map is the same as the size of the search area feature map. The final response map h c (Z,X t )for A collection of .

3. The twin network target tracking method based on historical trajectory information and fine-grained matching as claimed in claim 2, characterized in that: The window sliding operation is specifically as follows: Convolution kernel group The convolution kernels in the search area start sliding from the upper left corner in turn, first sliding from the left to the right in the first row of the search area, then sliding from the left to the right in the second row, and so on, until it reaches the rightmost side of the last row.

4. The twin network target tracking method based on historical trajectory information and fine-grained matching according to claim 1 is characterized in that: The specific steps of step 3.4 are as follows: Step 3.4.1, calculate the offset of the previous frame using formula (5): disp img =disp h ×stride×scale1×scale2 (5) Among them, disp h is the offset of the target relative to the center on the response graph, stride is the step size of the full convolutional network, scale1 is the scaling factor from the cropped image to the specified size; scale2 is the proportional coefficient, disp img In fact, it contains the offset (Δx, Δy) of the target relative to the previous frame in the horizontal and vertical coordinates, and this offset is used to determine the position of the current frame; Step 3.4.2, disp img In fact, it contains the offset (Δx, Δy) of the target relative to the previous frame in the horizontal and vertical coordinates, and uses this offset to determine the position of the current frame. The specific calculation formula is: Step 3.4.3, update the width and height of the current frame target (w t ,h t ) provides a basis for target tracking in the next frame. The update of width and height depends on the parameter scale2, which determines the change scale of width and height. The calculation method is as follows: scale=(1-r)+r×scale2 (7) Where r is the update rate, and the target width and height of the current frame are updated by the change scale. The calculation formula is:

5. The twin network target tracking method based on historical trajectory information and fine-grained matching according to claim 1 is characterized in that: Step 7 is as follows: the position information and width and height information of the past 8 frames of the current frame are used as the input of the trajectory predictor to predict the position and width and height of the current frame. The calculation formula is: Track t =L(Track t-7 ,Track t-6 ,…,Track t-1 ) (9) Finally, the tracking results obtained by fine-grained matching and the results obtained by trajectory prediction are weighted fused to obtain the final tracking result. The formula is: HF t =λ·Track t +(1-λ)H t (10) Among them, λ is a hyperparameter, Track t is the prediction result of the trajectory predictor, H t This is the tracking result based on fine-grained matching.