Anchor-frame-free infrared ship multi-target video tracking method and system based on twin network

Multi-target tracking in infrared videos is carried out through the anchor-free method based on Siamese network. Accurate appearance features are extracted through hierarchical decoupling and feature reconstruction, which solves the problem of low tracking accuracy in infrared videos and achieves high accuracy and high performance. Efficient infrared ship tracking.

CN118628523APending Publication Date: 2024-09-10BEIJING UNIV OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing multi-target tracking algorithms suffer from low image resolution, low contrast, and lack of color information in infrared videos, resulting in low tracking accuracy. It is especially difficult to effectively track infrared ship targets in complex ocean environments.

Method used

An anchor-free frame-free infrared ship multi-target video tracking method based on the twin network is used to generate multi-scale feature maps by inputting adjacent frame images in the video sequence to the twin network, and performs hierarchical decoupling and feature reconstruction, combined with identity re-identification The network generates target identity embedding vectors to achieve the tasks of detection and identity re-identification.

Benefits of technology

It improves the accuracy and robustness of infrared video tracking, reduces model complexity, is suitable for infrared ship target tracking on the sea surface background, and improves tracking efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628523A
    Figure CN118628523A
Patent Text Reader

Abstract

The invention discloses an anchor-frame-free infrared ship multi-target video tracking method and system based on a twin network, and the method comprises the steps: inputting two adjacent frames of images into two branches of the twin network, and generating a multi-scale feature map; then inputting into a hierarchical decoupling network, and generating a multi-scale feature map used for a detection task and a multi-scale feature map used for an identity re-recognition task; inputting a feature reconstruction network, and generating a feature map for a detection task and a feature map for an identity re-recognition task; inputting into an identity re-identification network to generate a target identity embedding vector; dividing an infrared multi-target tracking data set into a training set and a test set, and sequentially inputting the training set into a twin network, a hierarchical decoupling network, a feature reconstruction network and an identity re-recognition network for training and learning to obtain a trained model; a test set value is put into the trained model, and a prediction track is obtained; according to the method, accurate and robust appearance features are extracted through hierarchical decoupling and dynamic allocation, so that the tracking accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video image processing, and in particular to a method and system for multi-target video tracking of an infrared ship without an anchor frame based on a twin network. Background Art

[0002] Ships are one of the important means of transportation in today's modern society. Accurate tracking of ships is of great significance for maritime transportation monitoring, marine resource detection, marine fishery production safety and military activities. Compared with visible light imaging equipment, infrared imaging equipment has the characteristics of strong anti-interference and penetration, and can work day and night, so it can be better used in complex marine areas.

[0003] However, infrared images are easily affected by the surrounding environment, which will cause a large range of changes in the target's grayscale distribution, contour shape and other appearance information. In addition, the low contrast, low resolution and lack of color information of infrared images limit the improvement of infrared target tracking accuracy. When similar interference objects appear in the infrared scene, the tracker cannot distinguish the target due to the lack of discrimination of infrared image features, resulting in tracking failure.

[0004] With the rapid increase in the demand for infrared tracking, how to design a high-accuracy tracking model for infrared video has become a research hotspot at home and abroad. The existing multi-target tracking algorithms are roughly divided into detection-based tracking algorithms, detection and identity embedding fusion tracking algorithms, and detection and tracking unified tracking algorithms: 1. The general process of the detection-based tracking algorithm is to first train a detector to detect the image of each frame and output the corresponding detection frame; train a feature embedding network to model the appearance features of each target, which is conducive to improving the robustness of target identity re-identification; predict the position of the target in each frame through the Kalman filter to obtain the predicted trajectory; use the intersection and union ratio between the target feature vector and the target frame to calculate the similarity between the predicted trajectory and the detection frame, and then use a data association method, usually the Hungarian algorithm, to establish a one-to-one connection between the predicted trajectory and the detection frame. 2. The tracking algorithm that integrates detection and identity embedding has attracted widespread research interest in recent years. Since both the detection network and the feature embedding network contain feature extraction networks, and there is a correlation between the two tasks, this type of tracking algorithm fuses the two tasks and uses a unified model to simultaneously achieve detection and feature embedding by sharing the feature extraction network. 3. Detection and tracking Unified tracking algorithms can achieve detection and tracking simultaneously in an end-to-end network, without the need for additional data association modules. For example, the fully end-to-end transformer-based tracking framework MO3TR uses a combination of spatial and temporal transformers to encode object interactions into long-term temporal embeddings, and recursively uses information and input data to predict the state of all tracked objects.

[0005] At present, since the twin network is conducive to the calculation of the similarity between target features and thus determine the identity of the target, some scholars have also adopted the structure of the twin network in the multi-target tracking task. For example, SiamMT applies the single target tracking technology to the multi-target tracking task and proposes a similarity calculation method between paired feature maps to improve the efficiency of comparison between feature maps.

[0006] Although a large number of multi-target tracking algorithms have emerged in recent years, which have greatly promoted the development of multi-target tracking tasks, the existing multi-target tracking methods still have shortcomings. How to design a robust tracking model for infrared videos has attracted attention. This model can reduce the impact of low resolution of infrared images and serious loss of target contour, texture, and spatial structure information on the final result, and can have a higher tracking accuracy. Summary of the invention

[0007] In view of the shortcomings existing in the above problems, the present invention provides an anchor-free infrared ship multi-target video tracking method and system based on a twin network.

[0008] To achieve the above object, the present invention provides an anchor-free infrared ship multi-target video tracking method based on a twin network, comprising:

[0009] Two adjacent frames in a video sequence are input into two branches of the twin network to generate two sets of multi-scale feature maps.

[0010] Inputting the two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for a detection task and a multi-scale feature map for an identity re-identification task;

[0011] Inputting the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into a feature reconstruction network to generate a feature map for the detection task and a feature map for the identity re-identification task;

[0012] Inputting the feature map for the identity re-identification task into the identity re-identification network to generate a target identity embedding vector;

[0013] The infrared multi-target tracking data set is divided into a training set and a test set, and the training set is sequentially input into the twin network, the hierarchical decoupling network, the feature reconstruction network and the identity re-identification network for training and learning to obtain a trained model;

[0014] The test set values ​​are added to the trained model to obtain a predicted trajectory.

[0015] Preferably, the hierarchical decoupling network performs spatial decoupling and semantic decoupling;

[0016] The spatial decoupling has an important impact on the shallow feature map. Decoupling is performed, and the steps include:

[0017] Use two different convolutional layers to reduce the number of channels of the two layers of multi-scale feature maps of the input to 1 to obtain F d and F r ;

[0018] Matrix multiplication is used to encode the constraints of row and column vectors to generate the row correlation graph F h And column correlation graph F w ;

[0019] Add four different linear layers W1, W2, W3 and W4 to F h and F w Decouple and get F' w , F” w , F' h and F” h ;

[0020] F' w and F'h Add, F" w and F” h Add, and multiply the result with the input feature map to combine the row constraints and column constraints to produce a feature map for the detection task and feature maps for identity re-identification tasks

[0021] The semantic decoupling is applied to the deep feature map Decoupling is performed, and the steps include:

[0022] The three-layer multi-scale feature map is compressed using four different convolutional layers to obtain four feature vectors F containing global semantic information. c1 、F c2 、F c3 and F c4 ;

[0023] The eigenvector F is obtained by matrix multiplication c2 and the eigenvector F c3 The channel similarity F between c ;

[0024] The channel similarity F c After two linear mapping functions W' implemented by the fully connected layers c and W” c , generating task-specific channel attention weights F' c and F” c ;

[0025] The task-specific channel attention weight F' c and F” c Applied to the eigenvector F c1 and the eigenvector F c4 Implement feature update, the updated features are consistent with the input features F i Perform pixel-level multiplication to obtain updated feature pixel-level multiplication to obtain feature maps for detection tasks and identity re-identification tasks and

[0026] Preferably, a matrix multiplication operation is used to encode the constraints of the row vector and the column vector to generate a row correlation graph F h And column correlation graph F w The formula is:

[0027]

[0028] Add four different linear layers W1, W2, W3 and W4 to F h and F wDecouple and get F' w , F” w , F' h and F” h , the decoupling formula is:

[0029] F' w =W1·F w ;

[0030] F” w =W2·F w ;

[0031] F' h =W3·F h ;

[0032] F” h =W4·F h ;

[0033] Generate feature maps for detection tasks and feature maps for identity re-identification tasks The formula is:

[0034]

[0035] Preferably, four feature vectors F containing global semantic information are obtained c1 、F c2 、F c3 and F c4 , the formula is:

[0036] F c1 =W c1 ·F i ;

[0037] F c2 =W c2 ·F i ;

[0038] F c3 =W c3 ·F i ;

[0039] F c4 =W c4 ·F i ;

[0040] Using matrix multiplication operation to get F c2 and F c3 The channel similarity F between c , the formula is:

[0041]

[0042] Generate task-specific channel attention weights F' c and F” c , the formula is:

[0043] F' c =W' c ·F c ;

[0044] F” c =W” c ·F c .

[0045] Preferably, the feature reconstruction network is composed of a feature aggregation module, adopts a feature pyramid network idea, and includes an upsampling stage and a downsampling stage;

[0046] In the upsampling stage, the deep feature map F 5 Through three upsampling modules, respectively with F 4 、F 3 and F 2 Fusion gets output;

[0047] In the downsampling stage, the shallow feature map passes through a downsampling module and is fused with the output of the upsampling stage to obtain a feature map for the detection task. and feature maps for identity re-identification tasks

[0048] Preferably, inputting the feature map for the identity re-identification task into the identity re-identification network to generate an enhanced target feature map comprises:

[0049] In the branch of the identity re-identification network, the feature map for the identity re-identification task By solving the optimal transmission problem, we can find the transmission flow M with the minimum cost from the source set to the target set, so that the cost from the source set to the target set is minimized.

[0050]

[0051] Source Collection m=H'×W', target set m=H'×W',P ij represents the transmission cost from the i-th unit in the source set to the j-th unit in the target set, which is defined by cosine similarity as:

[0052]

[0053] The transmission cost is calculated based on the similarity of the feature vectors, and the optimal transmission problem is solved by the SinkhornKnopp algorithm. The constraints r and c are defined as follows:

[0054]

[0055] The optimal output flow M is combined with Multiply to obtain enhanced feature representation;

[0056] The enhanced feature representation is encoded through a layer of convolution to encode the identity embedding vector at each pixel position; then, after being processed by the ROI pooling layer, a set of target identity embedding vectors is obtained. K represents the number of targets, F k Represents the feature map of the k-th object.

[0057] Preferably, inputting the enhanced target feature map into a dynamic allocation network to generate an identity embedding vector comprises:

[0058] The dynamic allocation network in the identity re-identification network enables F k After the linear projection layer generates an offset of the target center position, the target center coordinates are filled in each pixel position of the feature map through a broadcast operation and moved to the target position according to the offset;

[0059] Extract the vector at the target position to get After that, the identity embedding vector is obtained by cumulative sum operation.

[0060] Preferably, a lightweight space-channel reconstruction convolution module is used in the network instead of a common convolution module, and the space-channel reconstruction convolution consists of a space reconstruction unit and a channel reconstruction unit.

[0061] The present application also provides an anchor-free infrared ship multi-target video tracking system based on a twin network, comprising:

[0062] The input module is used to input two adjacent frames of images in a video sequence into two branches of the twin network respectively to generate two sets of multi-scale feature maps;

[0063] A decoupling module, used for inputting the two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for a detection task and a multi-scale feature map for an identity re-identification task;

[0064] A feature reconstruction module, used to input the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into a feature reconstruction network to generate a feature map for the detection task and a feature map for the identity re-identification task;

[0065] An identity re-identification module, used to input the feature map for the identity re-identification task into the identity re-identification network to generate a target identity embedding vector;

[0066] A training module is used to divide the infrared multi-target tracking data set into a training set and a test set, and input the training set into the twin network, the hierarchical decoupling network, the feature reconstruction network and the identity re-identification network in sequence for training and learning to obtain a trained model;

[0067] The testing module is used to input the test set values ​​into the trained model to obtain a predicted trajectory.

[0068] Compared with the prior art, the present invention has the following beneficial effects:

[0069] The present invention extracts accurate and robust appearance features through hierarchical decoupling and dynamic allocation, thereby improving the tracking accuracy; lightweight modules are used to reduce model complexity, thereby improving the tracking efficiency; the present invention has strong operability, scalability and flexibility, and is suitable for infrared ship target tracking against a sea background. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a flow chart of the anchor-free infrared ship multi-target video tracking method based on twin network of the present invention;

[0071] Figure 2 Predicting a result image for an infrared video image;

[0072] Figure 3 A visualization of the impact of layer-wise decoupled networks on model performance. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] Reference Figure 1 The present invention provides a method for tracking multiple targets of infrared ships without anchor frames based on a twin network, comprising:

[0075] Two adjacent frames in a video sequence are input into two branches of the twin network to generate two sets of multi-scale feature maps.

[0076] Input the two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for the detection task and a multi-scale feature map for the identity re-identification task;

[0077] Inputting the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into the feature reconstruction network to generate the feature map for the detection task and the feature map for the identity re-identification task;

[0078] Input the feature map used for the identity re-identification task into the identity re-identification network to generate the target identity embedding vector;

[0079] The infrared multi-target tracking dataset is divided into a training set and a test set, and the training set is sequentially input into the twin network, hierarchical decoupling network, feature reconstruction network and identity re-identification network for training and learning to obtain a trained model;

[0080] The test set values ​​are added to the trained model to obtain the predicted trajectory.

[0081] Example

[0082] The anchor-free infrared ship multi-target video tracking method based on Siamese network includes:

[0083] Step 1: Take two consecutive frame images from a video sequence as input, that is, the current frame and the previous frame with 3 channels and size H×W. The two frames are input into the two branches of the twin network respectively to generate multi-scale feature maps.

[0084] Step 2: Based on the twin network structure without anchor boxes, a hierarchical decoupling network is added after the feature embedding network, and the two sets of multi-scale feature maps are input into the same hierarchical decoupling network for spatial decoupling and semantic decoupling. The spatial decoupling module performs spatial decoupling and semantic decoupling on the shallow feature maps containing structural information. Decouple. Use two different convolutional layers to transform the input feature map F i The F obtained by reducing the number of channels to 1 d and F r . Matrix multiplication is used to encode the constraints of row and column vectors to generate row correlation graphs and column correlation plot

[0085]

[0086] Add four different linear layers W1, W2, W3 and W4 to F h and F w Decouple and get F' w , F” w 、F' h and F” h :

[0087] F' w =W1·F w

[0088] F” w =W2·F w

[0089] F' h =W3·F h

[0090] F” h =W4·F h

[0091] Finally, F' w and F' h Add, F" w and F” h Add, and multiply the result with the input feature map to combine the row constraints and column constraints to produce a feature map for the detection task and feature maps for identity re-identification tasks

[0092]

[0093]

[0094] The spatial decoupling module fully realizes feature decoupling at the spatial level by applying different row and column attention to shallow features, so that the network can adaptively adjust different weights to provide the spatial structure information required by each task. The semantic decoupling module decouples the deep feature maps containing semantic information to form the deep feature maps of the last three layers of the backbone network. As input, input F i Four different convolutional layers are used to compress the spatial dimension and obtain four feature vectors F containing global semantic information. c1 、F c2 、F c3 and F c4 :

[0095] F c1 =W c1 ·F i

[0096] F c2 =W c2 ·F i

[0097] F c3 =W c3 ·F i

[0098] Fc4 =W c4 ·F i

[0099] Next, we use matrix multiplication to get F c2 and F c3 The channel similarity between

[0100]

[0101] F c After two linear mapping functions W' implemented by the fully connected layers c and W" c , generating task-specific channel attention weights F' c and F” c :

[0102] F' c =W' c ·F c

[0103] F” c =W” c ·F c

[0104] F' c and F” c Applied to F c1 and F c4 Finally, the updated features are combined with the input features F i By pixel-level multiplication, we can obtain the feature maps for detection and identity re-identification tasks. and The semantic decoupling module applies different attention to different channels through the correlation between channels, thus achieving full separation of semantic information.

[0105] Step 3: Based on the network in step 2, add a feature aggregation module to the feature reconstruction network after the hierarchical decoupling network. After the hierarchical decoupling network, a multi-scale feature map for detection tasks and identity re-identification tasks is obtained, and the multi-scale information is fused in the feature reconstruction network. The feature reconstruction network consists of a feature aggregation module. and As input, the feature pyramid network idea is adopted, which includes an upsampling stage and a downsampling stage. For example, for a set of multi-scale feature maps, in the upsampling stage, the deep feature map Through three upsampling modules, respectively and The output is obtained by fusion. In the downsampling stage, the shallow feature map After passing through a downsampling module, it is fused with the output of the upsampling stage to obtain the final output, which is the feature map used for the detection task. and feature maps for identity re-identification tasks

[0106] Step 4: Based on the network in step 3, introduce a fusion algorithm based on optimal transmission theory into the identity re-identification network and add a dynamic allocation network. The detection branch predicts the target center position, the offset of the center point, and the length and width of the target through three different detection heads. In the identity re-identification branch, first and By solving the optimal transmission problem, we can find the transmission flow M with the minimum cost from the source set to the target set, so that the cost from the source set to the target set is minimized:

[0107]

[0108] Source Collection m=H'×W', target set m=H'×W',P ij represents the transmission cost from the i-th unit in the source set to the j-th unit in the target set, which is defined by cosine similarity as:

[0109]

[0110] In order to ensure that there is no many-to-one matching in the matrix M, uniformly distributed constraints r and c are imposed on each row and column of the transmission flow, and the transmission cost is calculated according to the similarity of the eigenvectors. The optimal transmission problem is solved by the SinkhornKnopp algorithm. The constraints r and c are defined as follows:

[0111]

[0112] The optimal output flow M obtained is Multiplying highlights the target area that exists in both frames and enhances the feature representation. The use of optimal transfer theory makes the identity embedding vectors extracted from the same target as similar as possible by learning the joint information in the two frames, thereby improving the recognizability of the target. Secondly, the enhanced feature representation obtained by the optimal transfer theory is encoded through a layer of convolution to encode the identity embedding vector at each pixel position. Then, after processing by the ROI pooling layer, a set of target identity embedding vectors is obtained. K represents the number of targets, F k Represents the feature map of the k-th object.

[0113] Dynamically allocate networks to enable F k After the linear projection layer generates the offset of the target center position, the target center coordinates are filled in each pixel position of the feature map through the broadcast operation and moved to the target position according to the offset. The vector at the target position is extracted to obtain After that, the identity embedding vector is obtained by cumulative sum operation. The dynamic allocation network learns a set of center position offsets so that the extracted feature vector is no longer limited to the target center point, but comes from the unoccluded area of ​​the target, improving the quality of the target identity embedding vector.

[0114] Based on the network in step 4, a lightweight spatial-channel reconstruction convolution module is used to replace the ordinary convolution module. The spatial-channel reconstruction convolution consists of a spatial reconstruction unit and a channel reconstruction unit. In the spatial reconstruction unit, given Where B represents the batch size, and X is obtained by a layer of group regularization out :

[0115]

[0116] where μ and σ represent the mean and standard deviation respectively, ε is a positive constant to ensure stable division, and γ and β are trainable affine transformations. It is used to measure the variance of spatial pixels in each channel. The richer the spatial information, the greater the variance of spatial pixels. γ is regularized to obtain W, which represents the correlation weight:

[0117]

[0118] Next, the weights are mapped to (0,1) through the sigmoid function, and the weights W1 and W2 with rich information and no information are obtained through the threshold function. The input feature X is multiplied by W1 and W2 to obtain spatial features with strong and weak expressive abilities. and right and Perform cross-feature addition operations and fuse the resulting features through a channel concatenation layer to obtain the spatial refinement feature X W The channel reconstruction unit will input X W In the channel dimension, it is divided into two parts with the number of channels αC and (1-α)C respectively. The two features are obtained by 1×1 convolution compression channels respectively. and Next, for X up A k×k convolution layer, a point convolution layer and an addition operation are used to extract high-level expression information.

[0119]

[0120] in and are the weights of group convolution and point convolution respectively.

[0121] X low After being sent into a point convolution, the channel is spliced ​​with the original features to extract the low-level expression information, and the

[0122]

[0123] here

[0124] In order to fuse Y1 and Y2, we first collect global spatial information through a global average pooling layer, stack the pooled results, and use channel-level soft attention operations to generate feature importance vectors β1 and β2:

[0125]

[0126] Finally, under the guidance of the feature importance vector, Y1 and Y2 are merged to obtain the channel refinement feature Y:

[0127] Y=β1Y1+β2Y2

[0128] Step 5: Divide the infrared multi-target tracking dataset into a training set and a test set in a ratio of 3:2. Input the training dataset into the feature embedding network, hierarchical decoupling network, feature reconstruction network, and detection and identity re-identification network in sequence. Select hyperparameters such as the number of iterations and learning rate to train the feature extraction network and obtain classification and regression results. Select a suitable loss function to evaluate the training results and back-propagate the training network.

[0129] Step 6: Save the trained model. Input the test infrared video data into the model, get the predicted trajectory, calculate the intersection of the predicted tracking frame and the true value tracking frame and the tracking accuracy, and evaluate the model performance. The infrared video image prediction results are shown in the attached figure. Figure 2 , the visualization results of the impact of the hierarchical decoupling network on the model performance are as follows Figure 3 .

[0130] The present application also provides an anchor-free infrared ship multi-target video tracking system based on a twin network, comprising:

[0131] The input module is used to input two adjacent frames of images in a video sequence into two branches of the twin network respectively to generate two sets of multi-scale feature maps;

[0132] A decoupling module is used to input two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for the detection task and a multi-scale feature map for the identity re-identification task;

[0133] A feature reconstruction module, used to input the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into the feature reconstruction network to generate a feature map for the detection task and a feature map for the identity re-identification task;

[0134] An identity re-identification module, used to input the feature map used for the identity re-identification task into the identity re-identification network to generate a target identity embedding vector;

[0135] The training module is used to divide the infrared multi-target tracking data set into a training set and a test set, and input the training set into the twin network, the hierarchical decoupling network, the feature reconstruction network and the identity re-identification network in sequence for training and learning to obtain a trained model;

[0136] The test module is used to inject the test set values ​​into the trained model to obtain the predicted trajectory.

[0137] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for multi-target video tracking of infrared ships without anchor frames based on twin networks, characterized in that: include: Two adjacent frames in a video sequence are input into two branches of the twin network to generate two sets of multi-scale feature maps. Inputting the two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for a detection task and a multi-scale feature map for an identity re-identification task; Inputting the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into a feature reconstruction network to generate a feature map for the detection task and a feature map for the identity re-identification task; Inputting the feature map for the identity re-identification task into the identity re-identification network to generate a target identity embedding vector; The infrared multi-target tracking data set is divided into a training set and a test set, and the training set is sequentially input into the twin network, the hierarchical decoupling network, the feature reconstruction network and the identity re-identification network for training and learning to obtain a trained model; The test set values ​​are added to the trained model to obtain a predicted trajectory.

2. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 1 is characterized in that: The hierarchical decoupling network performs spatial decoupling and semantic decoupling; The spatial decoupling has an important impact on the shallow feature map. Decoupling is performed, and the steps include: F is obtained by using two different convolutional layers to reduce the number of channels of the two-layer multi-scale feature map input to 1 d and F r ; The constraints of row and column vectors are encoded using matrix multiplication operations to generate a row correlation graph F h And column correlation graph F w ; Add four different linear layers W1, W2, W3 and W4 to F h and F w Decouple and get F' w , F” w , F' h and F” h ; F' w and F' h Add, F" w and F” h Add, and multiply the result with the input feature map to combine the row constraints and column constraints to produce a feature map for the detection task and feature maps for identity re-identification tasks The semantic decoupling is applied to the deep feature map Decoupling is performed, and the steps include: The three-layer multi-scale feature map is compressed using four different convolutional layers to obtain four feature vectors F containing global semantic information. c1 、F c2 、F c3 and F c4 ; The eigenvector F is obtained by matrix multiplication c2 and the eigenvector F c3 The channel similarity F between c ; The channel similarity F c After two linear mapping functions W' implemented by fully connected layers c and W” c , generating task-specific channel attention weights F' c and F” c ; The task-specific channel attention weight F' c and F” c Applied to the eigenvector F c1 and the eigenvector F c4 Implement feature update, the updated features are consistent with the input features F i Perform pixel-level multiplication to obtain feature maps for detection tasks and for identity re-identification tasks and 3. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 2 is characterized in that: The constraints of row and column vectors are encoded using matrix multiplication operations to generate a row correlation graph F h And column correlation graph F w The formula is: Add four different linear layers W1, W2, W3 and W4 to F h and F w Decouple and get F' w , F” w , F' h and F” h , the decoupling formula is: F' w =W1·F w ; F” w =W2·F w ; F' h =W3·F h ; F” h =W4 F h ; Generate feature maps for detection tasks and feature maps for identity re-identification tasks The formula is:

4. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 3 is characterized in that: Get four feature vectors F containing global semantic information c1 、F c2 、F c3 and F c4 , the formula is: F c1 =W c1 ·F i ; F c2 =W c2 ·F i ; F c3 =W c3 ·F i ; F c4 =W c4 ·F i ; Using matrix multiplication operation to get F c2 and F c3 The channel similarity F between c , the formula is: Generate task-specific channel attention weights F' c and F” c , the formula is: F' c =W' c ·F c ; F” c =W” c ·F c 。 5. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 4 is characterized in that: The feature reconstruction network is composed of a feature aggregation module, adopts the feature pyramid network idea, and includes an upsampling stage and a downsampling stage; In the upsampling stage, the deep feature map F 5 Through three upsampling modules, respectively with F 4 、F 3 and F 2 Fusion gets output; In the downsampling stage, the shallow feature map passes through a downsampling module and is fused with the output of the upsampling stage to obtain a feature map for the detection task. and feature maps for identity re-identification tasks 6. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 5 is characterized in that: Inputting the feature map for the identity re-identification task into the identity re-identification network to generate an enhanced target feature map includes: In the branch of the identity re-identification network, the feature map for the identity re-identification task By solving the optimal transmission problem, we can find the transmission flow M with the minimum cost from the source set to the target set, so that the cost from the source set to the target set is minimized. Source Collection m=H'×W', target set P ij represents the transmission cost from the i-th unit in the source set to the j-th unit in the target set, which is defined by cosine similarity as: The transmission cost is calculated based on the similarity of the feature vectors, and the optimal transmission problem is solved by the SinkhornKnopp algorithm. The constraints r and c are defined as follows: The optimal output flow M is combined with Multiply to obtain enhanced feature representation; The enhanced feature representation is encoded through a layer of convolution to embed the identity vector at each pixel position; Next, after processing by the ROI pooling layer, a set of embedding vectors representing the target identity is obtained K represents the number of targets, F k Represents the feature map of the k-th object.

7. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 6 is characterized in that: Inputting the enhanced target feature map into a dynamic allocation network to generate an identity embedding vector includes: The dynamic allocation network in the identity re-identification network enables F k After the linear projection layer generates an offset of the target center position, the target center coordinates are filled in each pixel position of the feature map through a broadcast operation and moved to the target position according to the offset; Extract the vector at the target position to get After that, the identity embedding vector is obtained by cumulative sum operation.

8. The anchor-free infrared ship multi-target video tracking method based on a twin network according to claim 7 is characterized in that: A lightweight space-channel reconstruction convolution module is used in the network instead of the ordinary convolution module. The space-channel reconstruction convolution consists of a space reconstruction unit and a channel reconstruction unit.

9. An anchor-free infrared ship multi-target video tracking system based on a twin network, characterized in that: include: The input module is used to input two adjacent frames of images in a video sequence into two branches of the twin network respectively to generate two sets of multi-scale feature maps; A decoupling module, used for inputting the two sets of multi-scale feature maps into the same hierarchical decoupling network to generate a multi-scale feature map for a detection task and a multi-scale feature map for an identity re-identification task; A feature reconstruction module, used to input the multi-scale feature map for the detection task and the multi-scale feature map for the identity re-identification task into a feature reconstruction network to generate a feature map for the detection task and a feature map for the identity re-identification task; An identity re-identification module, used to input the feature map for the identity re-identification task into the identity re-identification network to generate a target identity embedding vector; A training module is used to divide the infrared multi-target tracking data set into a training set and a test set, and input the training set into the twin network, the hierarchical decoupling network, the feature reconstruction network and the identity re-identification network in sequence for training and learning to obtain a trained model; The testing module is used to input the test set values ​​into the trained model to obtain a predicted trajectory.

Citation Information

Patent Citations

  • Twin network structure target tracking method fusing target re-identification

    CN113963032A

  • Anchor-free joint detection and embedding-based multi-target tracking method

    CN114972805A

  • Rapid target detection method based on convolutional neural network

    CN116091892A

  • Falling person target detection method based on optimized YOLOv8s network structure

    CN116863539A

  • Target tracking method, device, and computer system

    WO2021047492A1