Infrared image feature extraction method, device and infrared small target tracking method

Feature extraction of infrared images through multiple deep feature extraction modules and feature fusion modules solves the problem that convolutional neural networks cannot capture subtle features of infrared images, improves the positioning and segmentation accuracy of small infrared targets, and enhances infrared image processing accuracy.

CN118334364BActive Publication Date: 2024-10-18NANJING XUNYI INTELLIGENT TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410769073.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-18
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing convolutional neural networks cannot fully extract the subtle features of small targets in infrared images at different spatial resolutions, resulting in insufficient feature information and affecting the accuracy of infrared small target tracking.

Method used

Multiple deep feature extraction modules and feature fusion modules are used to extract features from infrared images through pyramid segmentation attention units and large kernel convolution units, and fuse different depth feature maps to avoid loss of feature information and improve the recognition of small targets in complex backgrounds. positioning and segmentation accuracy.

Benefits of technology

It improves the accuracy of infrared small target tracking, recognition or detection results and ensures the effectiveness of feature extraction and the real-time nature of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334364B_ABST
    Figure CN118334364B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of image processing technology, and relates to an infrared image feature extraction method, device and infrared small target tracking method, including: inputting the infrared image into an initial feature extraction module for preliminary feature extraction, and outputting an initial feature map; inputting the initial feature map into four depth feature extraction modules in series to obtain a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map; using a first feature fusion module, a second feature fusion module and a third feature fusion module to fuse the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map, and obtaining a first target feature map, a second target feature map and a third target feature map based on the output of each feature fusion module. The present application provides a method for fully extracting the subtle features of small targets in infrared images at different spatial resolutions, and improving the accuracy of positioning and segmentation of infrared small targets under complex backgrounds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an infrared image feature extraction method and device and an infrared small target tracking method. Background Art

[0002] Infrared imaging technology can capture infrared radiation emitted by objects and convert it into visible images. These images are not limited by lighting conditions and can effectively capture and distinguish targets even at night or in low-light environments. Therefore, infrared images have important application value in modern military, security, aerospace and other fields. Feature extraction based on infrared images is crucial for subsequent image processing, target recognition and other tasks. For example, infrared small target tracking is to achieve real-time, accurate and stable tracking of small targets in infrared images by extracting features from infrared images.

[0003] In the prior art, convolutional neural networks such as ResNet and LeNet-5 are generally used to extract features from infrared images. However, due to the low contrast of infrared images, that is, the brightness difference between the small infrared target and the background in the image is small, making it difficult to distinguish the small target from the background. Therefore, when using a simple convolutional neural network to extract features from infrared images, it is easily interfered by background similarities and it is difficult to capture the subtle features of the small target in the image at different spatial resolutions, resulting in insufficient extracted feature information, which reduces the accuracy of the results when performing target detection, target recognition or target tracking based on the feature information. For example, the existing infrared small target tracking method usually first uses a convolutional neural network to extract features from the template frame image (the first frame image in the image sequence) and the detection frame image (the other frame images in the image sequence) to obtain the template frame feature map and the detection frame feature map, and then performs deep cross-correlation on the template frame feature map and the detection frame feature map to obtain the center feature map, classification feature map and regression feature map of the detection frame image. Finally, based on the center feature map, classification feature map and regression feature map of the detection frame image, the center point coordinates of the infrared small target in the detection frame image are obtained to complete the infrared small target tracking. However, since the convolutional neural network cannot fully extract the subtle features of the small target in the image at different spatial resolutions, it is impossible to accurately locate the position of the infrared small target in the image based on the extracted feature map, which affects the accuracy of the infrared small target tracking result.

[0004] In summary, the existing convolutional neural network cannot fully extract the feature information of infrared images and it is difficult to capture the subtle features of small targets in infrared images at different spatial resolutions, resulting in the problem of insufficient extracted feature information. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem that the convolutional neural network in the prior art cannot fully extract the feature information of infrared images, and it is difficult to capture the subtle features of small targets in infrared images at different spatial resolutions, resulting in insufficient extracted feature information.

[0006] In order to solve the above technical problems, the present invention provides an infrared image feature extraction method, comprising:

[0007] Input the infrared image into the initial feature extraction module for preliminary feature extraction and output the initial feature map;

[0008] The initial feature map is input into a first depth feature extraction module, a second depth feature extraction module, a third depth feature extraction module and a fourth depth feature extraction module which are connected in series in a forward propagation direction, and a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map are obtained based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes:

[0009] Input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map;

[0010] Concatenate the first feature map and the second feature map and input them into a first convolution unit, and use the output of the first convolution unit as the output of the deep feature extraction module;

[0011] Inputting the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image;

[0012] Inputting the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image;

[0013] The first depth feature map, the fourth depth feature map, the first target feature map and the second target feature map are input into a third feature fusion module to obtain a third target feature map of the infrared image.

[0014] Preferably, the output of the deep feature extraction module is:

[0015] ,

[0016] in, Indicates The output of the deep feature extraction module, represents the activation function, represents the convolution operation, represents normalization, represents the pyramid split attention operation, Indicates The input of the deep feature extraction module, Represents a large kernel convolution operation.

[0017] Preferably, the initial feature extraction module comprises a second convolution unit and a maximum pooling unit connected in series along a forward propagation direction.

[0018] Preferably, the output of the initial feature extraction module is:

[0019] ,

[0020] in, represents the output of the initial feature extraction module, represents the maximum pooling, represents the activation function, represents normalization, represents the convolution operation, Represents the input of the initial feature extraction module.

[0021] The present invention also provides an infrared image feature extraction device, comprising:

[0022] An initial feature map acquisition module is used to input the infrared image into the initial feature extraction module for preliminary feature extraction and output an initial feature map;

[0023] A depth feature map acquisition module is used to input the initial feature map into a first depth feature extraction module, a second depth feature extraction module, a third depth feature extraction module and a fourth depth feature extraction module which are sequentially connected in series along the forward propagation direction, and obtain a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes:

[0024] A first feature map and a second feature map acquisition unit, used to input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map;

[0025] A feature map splicing and convolution unit, used for splicing the first feature map and the second feature map and inputting them into a first convolution unit, and using the output of the first convolution unit as the output of the deep feature extraction module;

[0026] A first target feature map acquisition module, used for inputting the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image;

[0027] A second target feature map acquisition module, used for inputting the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image;

[0028] The third target feature map acquisition module is used to input the first depth feature map, the fourth depth feature map, the first target feature map and the second target feature map into a third feature fusion module to obtain a third target feature map of the infrared image.

[0029] The present invention also provides an infrared small target tracking method, comprising:

[0030] Using the above infrared image feature extraction method, feature extraction is performed on the first frame image and the t-th frame image in the infrared image sequence to be tracked, respectively, to obtain the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image, and the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image; wherein, , is the number of image frames in the infrared image sequence to be tracked;

[0031] Down-sampling the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image respectively, and outputting the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the first frame image;

[0032] Down-sampling the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image respectively, and outputting the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the t-th frame image;

[0033] Performing depth cross-correlation on the first down-sampled feature map corresponding to the first frame image and the first down-sampled feature map corresponding to the t-th frame image, and outputting a first response feature map;

[0034] Performing depth cross-correlation on the second down-sampled feature map corresponding to the first frame image and the second down-sampled feature map corresponding to the t-th frame image, and outputting a second response feature map;

[0035] Performing depth cross-correlation on the third down-sampled feature map corresponding to the first frame image and the third down-sampled feature map corresponding to the t-th frame image, and outputting a third response feature map;

[0036] The first response feature map, the second response feature map and the third response feature map are spliced ​​along the channel to obtain a fourth response feature map, and the fourth response feature map is subjected to channel transformation, convolution and group normalization to obtain a target response feature map of the t-th frame image, and an infrared small target tracking result of the t-th frame image is generated.

[0037] Preferably, generating the infrared small target tracking result of the t-th frame image includes:

[0038] Based on the target response feature map of the t-th frame image, a classification feature map, a center feature map and a regression feature map of the t-th frame image are obtained, and based on the regression feature map of the t-th frame image, a width and a height of a predicted target box in the t-th frame image are obtained;

[0039] Calculate the penalty factor of the t-th frame image based on the width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image;

[0040] Normalize the classification feature map and the center feature map of the t-th frame image respectively, and output the target classification feature map and the target center feature map of the t-th frame image;

[0041] Based on the product of the penalty factor of the t-th frame image, the target classification feature map and the target centrality feature map, a penalty score map of the t-th frame image is obtained; based on the penalty score map and the Hanning window of the t-th frame image, a Hanning window score map of the t-th frame image is obtained;

[0042] Upsampling the Hanning window score map, penalty score map, target classification feature map and regression feature map of the t-th frame image respectively, and obtaining a rough positioning score map of the t-th frame image based on the upsampled Hanning window score map and penalty score map;

[0043] The infrared small target offset is calculated based on the rough positioning score map of the t-th frame image, and the center point coordinates of the infrared small target in the t-1-th frame image are obtained based on the infrared small target offset and the center point coordinates of the infrared small target in the t-1-th frame image.

[0044] Preferably, the penalty factor of the t-th frame image is calculated as follows:

[0045] ,

[0046] ,

[0047] in, represents the penalty factor of the t-th frame image, is a hyperparameter, Represents the ratio of the height and width of the predicted target box in the t-th frame image, Represents the ratio of the height and width of the target box in the t-1th frame image, represents the square root of the area of ​​the predicted target box in the t-th frame image, represents the square root of the area of ​​the target box in the t-1th frame image, Represents the width of the predicted target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image, Represents the average value of the width and height of the predicted target box in the t-th frame image, ;

[0048] The calculation formula of the Hanning window score map of the t-th frame image is:

[0049] ,

[0050] in, Represents the Hanning window score map of the t-th frame image, Represents the penalty score map of the t-th frame image, represents the influence factor of the cosine window, represents the Hanning window.

[0051] Preferably, after obtaining the coordinates of the center point of the small infrared target in the t-th frame image, the method further includes:

[0052] Update the width and height of the predicted target box in the t-th frame image based on the upsampled regression feature map, and calculate the target penalty factor of the t-th frame image based on the updated width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image;

[0053] Calculate the learning rate of the width and height of the target frame of the t-th frame image based on the target penalty factor of the t-th frame image, the upsampled target classification feature map, and the coarse positioning score map;

[0054] Based on the learning rate of the target box width and height of the t-th frame image, the updated width and height of the predicted target box in the t-th frame image, and the width and height of the target box in the t-1-th frame image, the width and height of the target box in the t-th frame image are calculated.

[0055] Preferably, the calculation formula of the target frame width and height learning rate of the t-th frame image is:

[0056] ,

[0057] in, represents the learning rate of the width and height of the target frame of the t-th frame image, represents the target penalty factor of the t-th frame image, represents the upsampled target classification feature map of the t-th frame image, Represents the row and column coordinates of the maximum value in the rough positioning score map of the t-th frame image, is a hyperparameter;

[0058] The calculation formula for the width and height of the target box in the t-th frame image is:

[0059] ,

[0060] ,

[0061] in, represents the width of the target box in the t-th frame image, Represents the width of the predicted target box in the t-th frame image after update, Indicates the width of the target box in the t-1th frame image, Represents the height of the target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image after update, Indicates the height of the target box in the t-1th frame image.

[0062] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0063] 1. The infrared image feature extraction method provided in the present application first performs preliminary feature extraction on the infrared image through an initial feature extraction module to obtain an initial feature map of the infrared image, and then uses multiple deep feature extraction modules to further extract features from the initial feature map. In each deep feature extraction module, a parallel pyramid segmentation attention unit and a large kernel convolution unit are designed. The pyramid segmentation attention unit is used to extract features of the infrared image at different scales. Smaller-scale features help capture the fine structure and edge information of small targets in the infrared image, while larger-scale features can reflect the overall morphology of small targets in the infrared image. At the same time, since small targets in infrared images are embedded in a complex background, their recognition not only depends on the characteristics of the target itself, but also on the local information of the target itself. The features of the small target also depend on the information of the surrounding environment. Therefore, a large-kernel convolution unit is used to increase the receptive field of the convolution kernel, so as to better integrate the feature information of the small target and the surrounding environment, so as to help understand the relationship between the small target and the background; finally, multiple feature fusion modules are used to fuse the outputs of different depth feature extraction modules respectively, and multiple target feature maps corresponding to the infrared image are obtained, which avoids the problem of feature information loss caused by the feature extraction process of long connections. In addition, the multiple target feature maps finally obtained fully reflect the subtle features of the small target in the infrared image at different spatial resolutions, which improves the positioning and segmentation accuracy of the small target in a complex background, thereby improving the accuracy of the results of infrared small target tracking, recognition or detection based on the target feature map;

[0064] 2. In this application, four deep feature extraction modules are used to fully extract the deep and shallow features of infrared images, which can not only obtain the contour information of small infrared targets, but also ensure fine-grained information; then three feature fusion modules are used to fuse fine-grained detail information and coarse-grained contour information, which can not only fully capture the key information in the infrared image, but also avoid extracting redundant noise information, taking into account both the effectiveness of feature extraction and the computational complexity and real-time performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0066] Figure 1 Flowchart of the infrared image feature extraction method provided in this application;

[0067] Figure 2 Schematic diagram of the infrared image feature extraction network structure provided for this application;

[0068] Figure 3 Schematic diagram of the pyramid segmentation attention unit structure provided for this application;

[0069] Figure 4 A schematic diagram of the structure of the infrared image feature extraction device provided in this application;

[0070] Figure 5 Flowchart of the infrared small target tracking method provided in this application. DETAILED DESCRIPTION

[0071] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention. Example 1

[0072] See also Figure 1 , Figure 1 The infrared image feature extraction method provided by the present application is shown, and the method specifically includes:

[0073] S10: inputting the infrared image into the initial feature extraction module for preliminary feature extraction, and outputting an initial feature map;

[0074] S20: Inputting the initial feature map to a first depth feature extraction module, a second depth feature extraction module, a third depth feature extraction module and a fourth depth feature extraction module which are connected in series in the forward propagation direction, and obtaining a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes:

[0075] S200: Input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map;

[0076] S210: splicing the first feature map and the second feature map and inputting them into a first convolution unit, and using the output of the first convolution unit as the output of the deep feature extraction module;

[0077] S30: Inputting the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image;

[0078] S40: Inputting the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image;

[0079] S50: Input the first depth feature map, the fourth depth feature map, the first target feature map, and the second target feature map into a third feature fusion module to obtain a third target feature map of the infrared image.

[0080] The infrared image feature extraction method provided by the present application first performs preliminary feature extraction on the infrared image through an initial feature extraction module to obtain an initial feature map of the infrared image, and then uses multiple deep feature extraction modules to further extract features from the initial feature map. In each deep feature extraction module, a parallel pyramid segmentation attention unit and a large kernel convolution unit are designed. The pyramid segmentation attention unit is used to extract features of the infrared image at different scales. Smaller-scale features help capture the fine structure and edge information of small targets in the infrared image, while larger-scale features can reflect the overall morphology of small targets in the infrared image. At the same time, since small targets in infrared images are embedded in a complex background, their recognition not only depends on the features of the target itself, but also on the local environment. , and also depends on the information of the surrounding environment. Therefore, a large-kernel convolution unit is used to increase the receptive field of the convolution kernel, so as to better integrate the feature information of the small target and the surrounding environment, so as to help understand the relationship between the small target and the background; finally, multiple feature fusion modules are used to fuse the outputs of different depth feature extraction modules respectively, and multiple target feature maps corresponding to the infrared image are obtained, which avoids the problem of feature information loss caused by the long-connected feature extraction process, and the multiple target feature maps finally obtained fully reflect the subtle features of the small target in the infrared image at different spatial resolutions, which improves the positioning and segmentation accuracy of the small target in a complex background, thereby improving the accuracy of the results of infrared small target tracking, recognition or detection based on the target feature map.

[0081] Specifically, the infrared image feature extraction network provided in this application is a U-shaped long-connected extraction layer fusion layer structure, such as Figure 2 As shown, the left side of the figure is the extraction layer part, En1 is the initial feature extraction module, En2~En5 are the first deep feature extraction module, the second deep feature extraction module, the third deep feature extraction module and the fourth deep feature extraction module respectively; the right side of the figure is the fusion layer part, De2 is the first feature fusion module, De3 is the second feature fusion module, and De4 is the third feature fusion module;

[0082] Each deep feature extraction module includes a parallel pyramid segmentation attention unit, a large kernel convolution unit, and a first convolution unit. Specifically, the output of the deep feature extraction unit can be expressed as:

[0083] ,

[0084] in, Indicates The output of the deep feature extraction module, represents the activation function, represents the convolution operation, represents normalization, represents the pyramid split attention operation, Indicates The input of the deep feature extraction module, Represents a large kernel convolution operation.

[0085] The initial feature extraction module En1 mainly performs preliminary feature extraction on the input image. In some embodiments of the present application, the initial feature extraction module includes a second convolution unit and a maximum pooling unit connected in series along the forward propagation direction. Specifically, the output of the initial feature extraction module can be expressed as:

[0086] ,

[0087] in, represents the output of the initial feature extraction module, represents the maximum pooling, represents the activation function, represents normalization, represents the convolution operation, Represents the input of the initial feature extraction module.

[0088] Specifically, the pyramid split attention unit is used to dynamically allocate the weights of group convolutions, such as Figure 3 As shown, the specific principle is: the first feature map is copied into n parts. In a specific example of the present application, the value of n is 4, wherein the channel of each part , the copied feature map is represented as ; Through this replication method, convolution kernels of different sizes can be used to process the input tensor in parallel at multiple scales, thereby obtaining feature maps with different convolution characteristics. As the size of the convolution kernel increases, the number of parameters also increases. Therefore, a group convolution method is introduced to divide the parallel processed feature maps into different numbers of groups for convolution according to the size of the convolution kernel. Size and Group The relationship between the sizes can be expressed as: , especially when hour, . Therefore, the grouped convolution can be expressed as:

[0089] ,

[0090] in, , , , after multiple group convolutions, fused feature maps of multiple scales can be obtained:

[0091] ,

[0092] After extracting multi-scale features, attention weights need to be extracted for each group convolution, calculated as follows:

[0093] ,

[0094] in, , represents adaptive average pooling, Indicates full connection, represents the activation function, represents the sigmoid function, , concatenate multiple groups of attention weights along the channel dimension to get the entire attention weight: In order to realize the information interaction between multi-scale channels, the Softmax function is further used to adjust the weights Recalibrate and get Finally, the redistributed weights are multiplied with the feature map after the group convolution to form a feature map with richer information. :

[0095] ,

[0096] ,

[0097] in, represents channel dimension multiplication, Feature map representing multi-scale channel attention weights.

[0098] Specifically, the large kernel convolution unit is used to expand the receptive field and obtain more feature information. The process of large kernel convolution can be expressed as the following formula:

[0099] ,

[0100] ,

[0101] ,

[0102] ,

[0103] in, and denote convolution and Hadamard product respectively, , , Represents the feature maps The height and width of represents the expansion rate, Indicates size The weight of the convolution kernel, Representation feature map The size is The convolution kernel and size are The feature map output after the convolution kernel depth convolution, Representation feature map The size is The convolution kernel and size are The feature map output after the convolution kernel depth convolution, Indicates rounding down. After the 1*1 convolution kernel and the original feature map Multiply the corresponding positions and get .

[0104] Based on the infrared image feature extraction method provided in the above embodiment, the present application embodiment also provides an infrared image feature extraction device, such as Figure 4 As shown, the device specifically includes:

[0105] An initial feature map acquisition module 10 is used to input the infrared image into the initial feature extraction module for preliminary feature extraction and output an initial feature map;

[0106] The depth feature map acquisition module 20 is used to input the initial feature map to the first depth feature extraction module, the second depth feature extraction module, the third depth feature extraction module and the fourth depth feature extraction module which are connected in series in the forward propagation direction, and obtain the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes:

[0107] A first feature map and a second feature map acquisition unit, used to input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map;

[0108] A feature map concatenation and convolution unit, used for concatenating the first feature map and the second feature map and inputting them into the first convolution unit, and using the output of the first convolution unit as the output of the deep feature extraction module;

[0109] A first target feature map acquisition module 30, used to input the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image;

[0110] A second target feature map acquisition module 40, used to input the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image;

[0111] The third target feature map acquisition module 50 is used to input the first depth feature map, the fourth depth feature map, the first target feature map and the second target feature map into the third feature fusion module to obtain the third target feature map of the infrared image. Example 2

[0112] Based on the infrared image feature extraction method provided in the above embodiment 1, this embodiment also provides an infrared small target tracking method, such as Figure 5 As shown, the method specifically includes:

[0113] S1: Using the infrared image feature extraction method provided in the above-mentioned embodiment 1, feature extraction is performed on the first frame image and the t-th frame image in the infrared image sequence to be tracked, respectively, to obtain the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image, and the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image; wherein, , is the number of image frames in the infrared image sequence to be tracked;

[0114] S2: down-sample the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image respectively, and output the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the first frame image;

[0115] S3: down-sample the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image respectively, and output the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the t-th frame image;

[0116] Specifically, in the embodiment of the present application, the target feature map is downsampled using the HWD downsampling module to retain the detail information in the target feature map;

[0117] For example, the input features are , , after Haar wavelet transform, low-frequency information (Y_L) and high-frequency information (Y_HL, Y_LH, Y_HH) are obtained, and the low-frequency and high-frequency information are spliced ​​along the channel direction to obtain separated low-frequency and high-frequency features, and then the final aggregated low-frequency and high-frequency feature map is obtained through feature fusion mechanism (Conv+BN+Relu) , , ;

[0118] S4: performing depth cross-correlation on the first down-sampled feature map corresponding to the first frame image and the first down-sampled feature map corresponding to the t-th frame image, and outputting a first response feature map;

[0119] S5: performing depth cross-correlation on the second down-sampled feature map corresponding to the first frame image and the second down-sampled feature map corresponding to the t-th frame image, and outputting a second response feature map;

[0120] S6: performing depth cross-correlation on the third down-sampled feature map corresponding to the first frame image and the third down-sampled feature map corresponding to the t-th frame image, and outputting a third response feature map;

[0121] Specifically, the depth cross-correlation can be expressed as:

[0122] ,

[0123] in, Indicates the first frame image corresponding to the The downsampled feature map and the t-th frame image corresponding to the The first Response characteristic diagram, Indicates the tth frame image corresponding to the Downsampled feature maps, Indicates the first frame image corresponding to the Downsampled feature maps;

[0124] S7: splicing the first response feature map, the second response feature map and the third response feature map along the channel to obtain a fourth response feature map, performing channel transformation, convolution and group normalization on the fourth response feature map to obtain a target response feature map of the t-th frame image, and generating an infrared small target tracking result of the t-th frame image.

[0125] Specifically, in some embodiments of the present application, the infrared small target tracking result of the t-th frame image generated in step S7 includes:

[0126] S70: obtaining a classification feature map, a center feature map, and a regression feature map of the t-th frame image based on the target response feature map of the t-th frame image, and obtaining a width and a height of a predicted target box in the t-th frame image based on the regression feature map of the t-th frame image;

[0127] Specifically, the three response feature maps are spliced ​​along the channel, and the channel dimension is converted by a convolution operation to form a feature map, and then the classification feature map, the center feature map and the regression feature map are obtained by three different numbers of convolution kernels. For example, in a specific embodiment of the present application, the number of channels of the obtained center feature map is 1, which is expressed as ; The number of channels of the classification feature map is 2, expressed as ; The number of channels of the regression feature map is 4, expressed as , and Represent the width and height of the feature map respectively;

[0128] S71: Calculate a penalty factor of the t-th frame image based on the width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image;

[0129] Specifically, the calculation formula of the penalty factor of the t-th frame image is:

[0130] ,

[0131] ,

[0132] in, represents the penalty factor of the t-th frame image, is a hyperparameter, Represents the ratio of the height and width of the predicted target box in the t-th frame image, Represents the ratio of the height and width of the target box in the t-1th frame image, represents the square root of the area of ​​the predicted target box in the t-th frame image, represents the square root of the area of ​​the target box in the t-1th frame image, Represents the width of the predicted target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image, Represents the average value of the width and height of the predicted target box in the t-th frame image, ;

[0133] Specifically, when t is 2, the t-1 frame image is the first frame image in the infrared image sequence. The first frame image is a template frame image with a label. The center coordinates and scale of the initial position of the infrared small target can be obtained according to the label of the first frame image, and the initial center coordinates and width and height of the infrared small target are used as the target tracking result of the first frame image, that is, the target frame. In some embodiments, according to the target label determined by the first frame image, considering the size and moving speed of the infrared small target, the width and height of the search area can be expanded to twice the original, that is, the area of ​​the search area is four times the area of ​​the target area. Considering that when the infrared small target is at the edge position, the corresponding label area may exceed the range of the search area, and the image can also be filled, that is, the part exceeding the search area is filled with the global pixel mean, and the template frame image of the new size is regenerated;

[0134] S72: normalize the classification feature map and the center feature map of the t-th frame image respectively, and output the target classification feature map and the target center feature map of the t-th frame image;

[0135] S73: obtaining a penalty score map of the t-th frame image based on the product of the penalty factor of the t-th frame image, the target classification feature map, and the target centrality feature map; obtaining a Hanning window score map of the t-th frame image based on the penalty score map and the Hanning window of the t-th frame image;

[0136] The calculation formula of the Hanning window score map of the t-th frame image is:

[0137] ,

[0138] in, Represents the Hanning window score map of the t-th frame image, Represents the penalty score map of the t-th frame image, represents the influence factor of the cosine window, represents the Hanning window;

[0139] S74: upsampling the Hanning window score map, the penalty score map, the target classification feature map, and the regression feature map of the t-th frame image respectively, and obtaining a rough positioning score map of the t-th frame image based on the upsampled Hanning window score map and the penalty score map;

[0140] Specifically, the maximum value index is obtained from the upsampled Hanning window score map, and the upsampled Hanning window score map is scaled, the row and column coordinates are adjusted, and the boundary is cropped to ensure that the cropped Hanning window score map is within the valid area; then the upper, lower, left, and right boundary ranges are calculated according to the preset local search area, a binary mask with the same shape as the penalty score map is created, and the area around the rough position of the target is set to 1, and the rest is set to 0, and the set binary mask is multiplied by the penalty score map element by element to obtain a rough positioning score map;

[0141] S75: calculating the offset of the infrared small target based on the rough positioning score map of the t-th frame image, and obtaining the coordinates of the center point of the infrared small target in the t-th frame image based on the offset of the infrared small target and the coordinates of the center point of the infrared small target in the t-1-th frame image;

[0142] Specifically, the maximum value index is obtained from the coarse positioning score map, the offset between the search boundary range and the t-th frame image is calculated, and the maximum value coordinate index of the coarse positioning score map is updated using the offset, so as to calculate the relative offset between the center point coordinates of the small infrared target and the center point of the t-th frame image. The relative offset is added to the center point coordinates of the small infrared target in the t-1-th frame image to obtain the center point coordinates of the small infrared target in the t-th frame image.

[0143] Optionally, in some embodiments of the present application, after obtaining the coordinates of the center point of the small infrared target in the t-th frame image, the method further includes:

[0144] Update the width and height of the predicted target box in the t-th frame image based on the upsampled regression feature map, and calculate the target penalty factor of the t-th frame image based on the updated width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image;

[0145] Calculate the learning rate of the width and height of the target frame of the t-th frame image based on the target penalty factor of the t-th frame image, the upsampled target classification feature map, and the coarse positioning score map;

[0146] Specifically, the calculation formula for the learning rate of the target frame width and height of the t-th frame image is:

[0147] ,

[0148] in, represents the learning rate of the width and height of the target frame of the t-th frame image, represents the target penalty factor of the t-th frame image, represents the upsampled target classification feature map of the t-th frame image, Represents the row and column coordinates of the maximum value in the rough positioning score map of the t-th frame image, is a hyperparameter;

[0149] Calculate the width and height of the target box in the t-th frame image based on the learning rate of the target box width and height of the t-th frame image, the width and height of the predicted target box in the t-th frame image after update, and the width and height of the target box in the t-1-th frame image;

[0150] Specifically, the calculation formula for the width and height of the target box in the t-th frame image is:

[0151] ,

[0152] ,

[0153] in, represents the width of the target box in the t-th frame image, Represents the width of the predicted target box in the t-th frame image after update, Indicates the width of the target box in the t-1th frame image, Represents the height of the target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image after update, Indicates the height of the target box in the t-1th frame image.

[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0155] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0158] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for extracting infrared image features, characterized in that: include: Input the infrared image into the initial feature extraction module for preliminary feature extraction and output the initial feature map; The initial feature map is input into a first depth feature extraction module, a second depth feature extraction module, a third depth feature extraction module and a fourth depth feature extraction module which are connected in series in a forward propagation direction, and a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map are obtained based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes: Input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map; Concatenate the first feature map and the second feature map and input them into a first convolution unit, and use the output of the first convolution unit as the output of the deep feature extraction module; Inputting the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image; Inputting the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image; The first depth feature map, the fourth depth feature map, the first target feature map and the second target feature map are input into a third feature fusion module to obtain a third target feature map of the infrared image.

2. The infrared image feature extraction method according to claim 1, characterized in that: The output of the deep feature extraction module is: , in, Indicates The output of the deep feature extraction module, represents the activation function, represents the convolution operation, represents normalization, represents the pyramid split attention operation, Indicates The input of the deep feature extraction module, Represents a large kernel convolution operation.

3. The infrared image feature extraction method according to claim 1, characterized in that: The initial feature extraction module includes a second convolution unit and a maximum pooling unit connected in series along a forward propagation direction.

4. The infrared image feature extraction method according to claim 3, characterized in that: The output of the initial feature extraction module is: , in, represents the output of the initial feature extraction module, represents the maximum pooling, represents the activation function, represents normalization, represents the convolution operation, Represents the input of the initial feature extraction module.

5. An infrared image feature extraction device, characterized in that: include: An initial feature map acquisition module is used to input the infrared image into the initial feature extraction module for preliminary feature extraction and output an initial feature map; A depth feature map acquisition module is used to input the initial feature map into a first depth feature extraction module, a second depth feature extraction module, a third depth feature extraction module and a fourth depth feature extraction module which are sequentially connected in series along the forward propagation direction, and obtain a first depth feature map, a second depth feature map, a third depth feature map and a fourth depth feature map based on the output of each depth feature extraction module; wherein the step of extracting features from the input feature map by the depth feature extraction module includes: A first feature map and a second feature map acquisition unit, used to input the input feature map to the pyramid segmentation attention unit and the large kernel convolution unit respectively, and output the first feature map and the second feature map; A feature map splicing and convolution unit, used for splicing the first feature map and the second feature map and inputting them into a first convolution unit, and using the output of the first convolution unit as the output of the deep feature extraction module; A first target feature map acquisition module, used for inputting the first depth feature map, the second depth feature map, the third depth feature map and the fourth depth feature map into a first feature fusion module to obtain a first target feature map of the infrared image; A second target feature map acquisition module, used for inputting the first depth feature map, the second depth feature map, the fourth depth feature map and the first target feature map into a second feature fusion module to obtain a second target feature map of the infrared image; The third target feature map acquisition module is used to input the first depth feature map, the fourth depth feature map, the first target feature map and the second target feature map into a third feature fusion module to obtain a third target feature map of the infrared image.

6. A small infrared target tracking method, characterized in that: include: Using the infrared image feature extraction method as described in any one of claims 1 to 4, feature extraction is performed on the first frame image and the t-th frame image in the infrared image sequence to be tracked, respectively, to obtain the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image, and the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image; wherein, , is the number of image frames in the infrared image sequence to be tracked; Down-sampling the first target feature map, the second target feature map, and the third target feature map corresponding to the first frame image respectively, and outputting the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the first frame image; Down-sampling the first target feature map, the second target feature map, and the third target feature map corresponding to the t-th frame image respectively, and outputting the first down-sampled feature map, the second down-sampled feature map, and the third down-sampled feature map corresponding to the t-th frame image; Performing depth cross-correlation on the first down-sampled feature map corresponding to the first frame image and the first down-sampled feature map corresponding to the t-th frame image, and outputting a first response feature map; Performing depth cross-correlation on the second down-sampled feature map corresponding to the first frame image and the second down-sampled feature map corresponding to the t-th frame image, and outputting a second response feature map; Performing depth cross-correlation on the third down-sampled feature map corresponding to the first frame image and the third down-sampled feature map corresponding to the t-th frame image, and outputting a third response feature map; The first response feature map, the second response feature map and the third response feature map are spliced ​​along the channel to obtain a fourth response feature map, and the fourth response feature map is subjected to channel transformation, convolution and group normalization to obtain a target response feature map of the t-th frame image, and an infrared small target tracking result of the t-th frame image is generated.

7. The infrared small target tracking method according to claim 6, characterized in that: The infrared small target tracking results generated for the t-th frame image include: Based on the target response feature map of the t-th frame image, a classification feature map, a center feature map and a regression feature map of the t-th frame image are obtained, and based on the regression feature map of the t-th frame image, a width and a height of a predicted target box in the t-th frame image are obtained; Calculate the penalty factor of the t-th frame image based on the width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image; Normalize the classification feature map and the center feature map of the t-th frame image respectively, and output the target classification feature map and the target center feature map of the t-th frame image; Based on the product of the penalty factor of the t-th frame image, the target classification feature map and the target centrality feature map, a penalty score map of the t-th frame image is obtained; based on the penalty score map and the Hanning window of the t-th frame image, a Hanning window score map of the t-th frame image is obtained; Upsampling the Hanning window score map, penalty score map, target classification feature map and regression feature map of the t-th frame image respectively, and obtaining a rough positioning score map of the t-th frame image based on the upsampled Hanning window score map and penalty score map; The infrared small target offset is calculated based on the rough positioning score map of the t-th frame image, and the center point coordinates of the infrared small target in the t-1-th frame image are obtained based on the infrared small target offset and the center point coordinates of the infrared small target in the t-1-th frame image.

8. The infrared small target tracking method according to claim 7, characterized in that: The calculation formula of the penalty factor of the t-th frame image is: , , in, represents the penalty factor of the t-th frame image, is a hyperparameter, Represents the ratio of the height and width of the predicted target box in the t-th frame image, Represents the ratio of the height and width of the target box in the t-1th frame image, represents the square root of the area of ​​the predicted target box in the t-th frame image, represents the square root of the area of ​​the target box in the t-1th frame image, Represents the width of the predicted target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image, Represents the average value of the width and height of the predicted target box in the t-th frame image, ; The calculation formula of the Hanning window score map of the t-th frame image is: , in, Represents the Hanning window score map of the t-th frame image, Represents the penalty score map of the t-th frame image, represents the influence factor of the cosine window, represents the Hanning window.

9. The infrared small target tracking method according to claim 7, characterized in that: After obtaining the center point coordinates of the infrared small target in the t-th frame image, the following steps are also included: Update the width and height of the predicted target box in the t-th frame image based on the upsampled regression feature map, and calculate the target penalty factor of the t-th frame image based on the updated width and height of the predicted target box in the t-th frame image and the width and height of the target box in the t-1-th frame image; Calculate the learning rate of the width and height of the target frame of the t-th frame image based on the target penalty factor of the t-th frame image, the upsampled target classification feature map, and the coarse positioning score map; Based on the target box width and height learning rate of the t-th frame image, the updated predicted width and height of the target box in the t-th frame image, and the width and height of the target box in the t-1-th frame image, the width and height of the target box in the t-th frame image are calculated.

10. The infrared small target tracking method according to claim 9, characterized in that: The calculation formula for the learning rate of the target frame width and height of the t-th frame image is: , in, represents the learning rate of the width and height of the target frame of the t-th frame image, represents the target penalty factor of the t-th frame image, represents the upsampled target classification feature map of the t-th frame image, Represents the row and column coordinates of the maximum value in the rough positioning score map of the t-th frame image, is a hyperparameter; The calculation formula for the width and height of the target box in the t-th frame image is: , , in, Indicates the width of the target box in the t-th frame image, Represents the width of the predicted target box in the t-th frame image after update, Indicates the width of the target box in the t-1th frame image, Represents the height of the target box in the t-th frame image, Represents the height of the predicted target box in the t-th frame image after update, Indicates the height of the target box in the t-1th frame image.

Citation Information

Patent Citations

  • Deep learning target tracking method based on feature map segmentation and adaptive fusion

    CN112330719A

  • Infrared weak and small target tracking method based on style re-calibration and improved twin network

    CN116630373A