Attention-guided hybrid double-branch spatial decomposition neural network infrared weak and small target detection method

By designing an attention-guided hybrid dual-branch spatial decomposition neural network in infrared weak and small target detection, the Gaussian distribution characteristics and sparse low-rank characteristics are used to extract target features and perform background estimation, which solves the problems of low detection accuracy and poor real-time performance, and achieves high efficiency. Infrared weak and small target detection.

CN118570439AActive Publication Date: 2024-08-30BEIHANG UNIV

Patent Information

Application Number
CN202410455122.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-08-30
Estimated Expiration
2044-04-16

AI Technical Summary

Technical Problem

Existing infrared weak and small target detection methods have low detection accuracy, poor real-time performance under complex backgrounds, and poor generalization performance, making it difficult to effectively capture the long-distance dependency between the target and the background.

Method used

An attention-guided hybrid dual-branch spatial decomposition neural network is designed, which uses an adaptive selection multi-scale receptive field module based on Gaussian distribution characteristics, a cross-attention background estimation module with sparse low-rank characteristics, and a foreground and background salient feature fusion module. Extract features of weak and small infrared targets and perform background estimation and feature fusion to improve detection accuracy and real-time performance.

Benefits of technology

It achieves efficient infrared weak and small target detection in complex backgrounds, improves detection accuracy and real-time performance, reduces model parameters and running time, and enhances target recognition capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570439A
    Figure CN118570439A
Patent Text Reader

Abstract

The invention provides an attention-guided hybrid double-branch spatial decomposition neural network infrared weak and small target detection method, and the method comprises the specific steps: 1, constructing a self-adaptive selection multi-scale receptive field module based on Gaussian distribution characteristics, and carrying out the self-adaptive selection of a receptive field for multi-scale input information; 2, constructing a cross-attention background estimation module based on sparse low-rank characteristics, and carrying out cross-attention background estimation on the feature maps after target enhancement and target submerging processing; 3, constructing a foreground and background feature fusion module, carrying out difference on feature maps in the two steps, supplementing detail information, and obtaining a pixel-level probability prediction map of the whole image through a segmentation head; 4, connecting the two modules in the step 1 and the step 2 in parallel and then connecting the two modules in series with the foreground and background feature fusion module in the step 3 to complete a neural network, and constructing a loss function to train the network; and carrying out loss calculation by using a prediction result and a pixel-level label to realize training of network parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, which belongs to the field of digital image processing and computer vision, mainly involves deep learning and target detection technology, and has broad application prospects in various image-based application systems. Background Art

[0002] At present, infrared small target detection plays an important role in target early warning, ground monitoring and precision guidance, and the accuracy and real-time performance of the detection algorithm are crucial. However, due to the limitations of long-distance infrared imaging conditions, the target occupies a small number of pixels in the image (usually less than 1% of the image) and lacks texture features, which easily leads to missed detection and false detection. At the same time, infrared radiation from complex information such as clouds, sea waves, and mountains and trees in the background will also interfere with the accurate detection of targets. General target detection methods have poor generalization performance on this task, so efficient and fast detection of infrared small targets is a challenging task.

[0003] Around the infrared small target detection task, researchers have proposed many detection algorithms based on task characteristics, including methods based on local contrast (see references: Chen CLP, Li H, Wei Y, et al. A Local Contrast Method for Small Infrared Target Detection[J]. IEEE Transactions on Geoscience and Remote Sensing, 2013, 52(1): 574-581.), Deng H, Sun X, Liu M, et al. Small Infrared Target Detection Based on Weighted Local Difference Measure[J]. IEEE Transactions on Geoscience and Remote Sensing, 2016, 54(7): 4204-4214. Sensing, 2016, 54(7): 4204-4214.)), filtering-based methods (see references: Su Yoge et al., Max-Mean and Max-Median Filters for Detection of Small-Targets [C]. SPIEConference on Signal and Data Processing of Small Targets, 1999, 3809: 74-83. (SD Deshpande, MHEr, R. Venkateswarlu, and P. Chan, Max-Mean and Max-Median Filters for Detection of Small-Targets [C]. SPIEConference on Signal and Data Processing of Small Targets, 1999, 3089(74): 73-84.), Bai Xiangzhi et al., Novel top-hat transform analysis and its application in infrared weak small target detection, Pattern Recognition, 2010, 43(6): 2145-2156.(Bai X and Zhou F, Analysis of New Top-hat Transformation and the Application for Infrared Dim Small Target Detection[J], Pattern Recognition, 2010, 43(6): 2145-2156.)) and optimization-based methods (see references: Dai Yimian et al., Reweighted Infrared Patch-Tensor Model With Both Non-Local and Local Priors for Single-Frame Small Target Detection[J]. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2017, 10(8): 3752-3767. Sensing, 2017, 10(8): 3752-3767.), Gao Chenqiang et al. Infrared Patch-image Model for Small Target Detection in a Single Image[J].IEEE Transactions on Image Processing, 2013, 22(12): 4996-5009. (Gao C, Meng D, Yang Y, et al. Infrared Patch-image Model for Small Target Detection in a Single Image[J].IEEE Transactions on Image Processing, 2013, 22(12): 4996-5009.) However, the detection effect of these methods depends on the matching degree between the algorithm parameters and the data, and the algorithm generalization ability is poor. When the background of the infrared weak small target changes, the detection effect decreases significantly. .

[0004] With the rise of deep learning technology, data-driven infrared dim target detection algorithms have achieved good detection results in practical applications. Dai et al. proposed a non-modulated symmetric context mechanism, which uses top-down global attention modulation and bottom-up local attention modulation to exchange multi-scale context to obtain richer semantic information and spatial details (see reference: Dai Yimian et al. Asymmetric contextual modulation for infrared small target detection [C]. Proceedings of the IEEE / CVF Winter Conference on Applications of Computer Vision. 2021: 950-959.)); Wang et al. proposed a deep adversarial learning framework to balance the false detection rate and false alarm rate in the process of infrared weak small target detection (see reference: Wang Huan et al. Missed detection and false alarm: adversarial learning for small object segmentation in infrared images, Institute of Electrical and Electronics Engineers / International Conference on Computer Vision, 2019: 8508-8517. (Wang H, Zhou L and Wang L, Miss Detection vs.False Alarm:Adversarial Learning for Small Object Segmentation in Infrared Images[C].IEEE / CVF International Conference on Computer Vision.2019:8508-8517.)); Li et al. proposed a dense nested attention network to fuse and enhance the multi-level features of small targets (see reference: Li Boyang et al., Dense Nested Attention Network for Infrared Small Target Detection, IEEE Transactions on Image Processing, 2022, 32:1745-1758. (Li B, Xiao C, Wang L, et al. Dense Nested Attention Networkfor Infrared Small Target Detection[J].IEEE Transactions on ImageProcessing.2022, 32:1745-1758.)).The above convolutional neural network-based methods are not good at capturing the long-distance dependency between the target and the background. With the outstanding performance of visual transformers in visual tasks such as classification, detection, and segmentation, people have also begun to study infrared dim target detection methods based on visual transformers. Wu et al. proposed a multi-layer TransUNet to extract multi-level features of targets and capture long-distance dependencies (see reference: Wu Tianhao et al., MTU-Net: Multilevel TransUNet for Space-Based Infrared Tiny Ship Detection[J].IEEE Transactions on Geoscience and Remote Sensing, 2023, 61:1-15. (Wu T, Li B, Luo Y, et al. MTU-Net: Multilevel TransUNet for Space-Based Infrared Tiny Ship Detection[J].IEEE Transactions on Geoscience and Remote Sensing, 2023, 61:1-15.)); Lin et al. combined the advantages of convolutional neural networks and visual transformers to study the correlation between targets, neighboring pixels and global images (see reference: Lin Jian et al., IR-TransDet: Infrared Dim and Small Target Detection System Using Infrared Transformers, IEEE Transactions on Geography and Remote Sensing, 2023, 61:1-13. (Lin J, Li S, Zhang L, et al. IR-TransDet: Infrared Dim and Small Target Detection System Using Infrared Transformers, IEEE Transactions on Geography and Remote Sensing, 2023, 61:1-13. Detection WithIR-Transformer[J].IEEE Transactions on Geoscience and Remote Sensing,2023,61:1-13.)).

[0005] Although deep learning methods have advantages in accuracy, the current methods based on convolutional neural networks and visual transformers focus on how to extract rich target features, while ignoring the unique characteristics of infrared small targets and the use of background information. At the same time, due to the complex network structure design, the real-time performance is poor and the performance in small target detection tasks is limited. In order to achieve fast and efficient small target detection, the present invention designs a deep learning network model based on the grayscale distribution characteristics of small targets and backgrounds, and proposes an attention-guided hybrid dual-branch spatial decomposition neural network infrared small target detection method. Summary of the invention

[0006] 1. Purpose: To solve the problems of low accuracy and poor real-time performance in infrared small target detection under complex background, this paper proposes an attention-guided hybrid dual-branch spatial decomposition neural network infrared small target detection method. The model fully extracts the mixed receptive field features of infrared small targets with Gaussian distribution characteristics, uses the sparse and low-rank characteristics of images to estimate cross-attention background, and designs the network based on the idea of ​​fusion of foreground and background saliency features, which has obvious improvements in improving detection accuracy, reducing model parameters and running time.

[0007] 2. Technical solution: To achieve the above purpose, the overall idea of ​​the present invention is based on the sparse target and low-rank background characteristics in infrared small target images. From the three perspectives of mixed receptive field target enhancement, cross-attention background estimation and foreground background feature fusion, an adaptive selection multi-scale receptive field module based on Gaussian distribution characteristics, a cross-attention module based on sparse low-rank characteristics and a foreground background saliency feature fusion module are designed to build a lightweight neural network for infrared small target detection, while ensuring faster detection speed and higher target detection accuracy. The algorithm technology ideas of the present invention are mainly reflected in the following three aspects:

[0008] 1) According to the statistical characteristics of the two-dimensional Gaussian distribution of small targets in images at long distances, a module for adaptively selecting multi-scale receptive fields based on the Gaussian distribution characteristics is designed. By connecting several convolution units with different expansion coefficients in series, it can fully extract the features of small targets and adaptively select multi-scale receptive fields to achieve the effect of enhancing the target.

[0009] 2) According to the statistical characteristics of sparse target distribution and low-rank background distribution in weak target images, a cross-attention module based on sparse and low-rank is designed to calculate the local similarity between the feature map processed by target enhancement and the feature map processed by target submersion, so as to achieve the effect of estimating the background.

[0010] 3) In order to highlight the target, suppress the background, and prevent the loss of detail information of weak targets, a foreground-background saliency feature fusion module is designed to differentiate the two feature maps after enhanced target and estimated background processing, and supplement the lower-level detail information, so as to achieve better segmentation and detection effect.

[0011] The present invention relates to an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, the specific steps of the method are as follows:

[0012] Step 1: Construct a multi-scale receptive field module based on Gaussian distribution characteristics, use learnable Gaussian convolution units with different expansion coefficients to extract features in series, adaptively select the receptive field of multi-scale input information, and achieve target feature enhancement;

[0013] Step 2: Construct a cross-attention background estimation module based on sparse low-rank characteristics, and use cross-attention to estimate the background of the feature maps after target enhancement and target submergence processing;

[0014] Step 3: Construct a foreground and background feature fusion module, differentiate the feature maps in the above two steps, add detailed information, and obtain a pixel-level probability prediction map of the entire image through the segmentation head;

[0015] Step 4: Connect the two modules in steps 1 and 2 in parallel and then connect them in series with the module in step 3 to complete the neural network, and construct a loss function to train the network. Use the prediction results and pixel-level labels to calculate the loss to train the network parameters.

[0016] Output: Infrared image processed with the trained neural network; after sufficient iterative training of the attention-guided hybrid two-branch spatial decomposition neural network using the training data, the trained network is obtained to detect target pixels.

[0017] Wherein, the step 1 is specifically as follows:

[0018] 1.1: The network first uses a convolution unit to extract shallow features F stem This convolution unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion coefficient is 1, the step size is 1, and each side of the image is padded with 1 layer, generating a shallow feature F with 16 channels. stem ;

[0019] 1.2: Secondly, the network constructs three learnable Gaussian convolution units LGCUnit1, LGCUnit2, and LGCUnit3 with different expansion coefficients to extract features in series. Each learnable Gaussian convolution unit is operated in parallel by three branches. It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Realize residual connection; According to the statistical characteristics of small and weak targets presenting a two-dimensional isotropic Gaussian distribution in the image, the convolution kernel with Gaussian distribution can extract richer target features, so the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. In the learnable Gaussian convolution layer, the standard deviation of the two-dimensional Gaussian distribution is set as a network learnable parameter. In order to ensure that the standard deviation is always positive during the network propagation parameter update process, the parameter log_sigma is first initialized to 0 in the network, and the exponential form of the parameter e is log_sigma As the standard deviation σ of the two-dimensional Gaussian distribution, in the process of generating the two-dimensional Gaussian convolution kernel using σ, first according to the formula Generate a one-dimensional Gaussian distribution vector, and then use the outer product of two one-dimensional vectors to generate a two-dimensional Gaussian convolution kernel; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit1 The first branch in the second learnable Gaussian convolution unit LGCUnit2 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with LGCUnit1; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit2 The first branch in the third learnable Gaussian convolution unit LGCUnit3 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with LGCUnit1; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit3 Then, F LGCUnit1 、F LGCUnit2 and F LGCUnit3 Add and get the feature map F with 16 channels LGCUnit .

[0020] 1.3: The network then adaptively selects the receptive field for multi-scale input information. LGCUnit Perform global average pooling on the channel dimension to obtain the feature map F avg , use the fully connected unit FCUnit1 to F avg Perform the operation to generate a feature map F with 32 channels fc1 This fully connected unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. Then, the fully connected unit FCUnit2 is used to map the feature map F fc1 Perform the operation to generate a receptive field selection weight feature map F with 48 channels att , split its channel dimension into two dimensions: the number of branches and the output channel, and perform the Softmax activation function to obtain the feature map F′ att , where the number of branches is 3 and the number of output channels is 16; then F′ att Divide into 3 blocks F′ in the branch number dimension att1 , F′ att2 , F′ att3 , and the above three feature maps are respectively LGCUnit1 、F LGCUnit2 、F LGCUnit3 Multiply to get the feature map F after adaptively selecting the receptive field size select .

[0021] 1.4: The network performs channel attention operation on the feature map obtained in the previous step. First, the feature map Fselect The Sigmoid activation function is performed, and then the global maximum pooling operation is performed in the spatial dimension. A one-dimensional convolution layer with a convolution kernel of 3, an expansion factor of 1, a step size of 1, and no padding on each side of the image is used for the next step. The feature map obtained after the one-dimensional convolution operation is again subjected to the Sigmoid activation function operation and combined with F select Multiply to get the target enhanced feature map F target .

[0022] Wherein, the step 2 is specifically as follows:

[0023] 2.1: Construct a cross-attention background estimation module based on sparse low-rank characteristics. First, use a convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function to operate on the original image I of the input network. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. The feature F′ with 16 channels is generated. stem ; Secondly, for feature F target , F′ stem Cut them separately, where for feature F target A convolutional layer with a kernel size of 8×8, an expansion factor of 1, a step size of 8, and no padding on the edges of the image is used to generate an image block with 16 channels and a block size of 64×64. The height and width dimensions of the image block are combined and then layer normalization is used to obtain the image block P target ; For feature F′ stem Directly reshape the image into a block with a size of 64×64. In view of the fact that small targets are sparsely distributed in the image and account for less than 1% of the image block, the present invention believes that small targets can be modeled as abnormal bright spots with a large contrast with the background in the image. Therefore, the 1% pixels with the largest grayscale value in each channel of the image block are replaced by the average value of the remaining pixel values ​​to achieve the purpose of submerging the small targets, and the image block is linearly projected to 16 channels and layer normalized to obtain the image block P. background ; Then set a learnable embedding vector cls token Respectively with P target , P background The spliced ​​image block is then added to the set learnable position code and processed by a dropout layer with a probability of 0.1 inactivation of each neuron to obtain the enhanced image block P′. target And the image block P′ after the target is submerged background ; Given that the background part of the weak target image has high similarity at different positions and exhibits low-rank characteristics, P′ target , P′ backgroundThe similarity between the two image blocks in the original corresponding blocks containing weak targets is low, and the similarity between the corresponding blocks in the original background is high, so the above two image blocks are input into a single-head cross-attention part for P′ target Linear projection obtains the Q1 matrix, for P′ background Linear projection obtains K2 and V2 matrices, and the formula Get P att , after being processed by a dropout layer where each neuron has a probability of inactivation of 0.1, and P att Add and normalize through the layer to get P′ att , then P′ att After being processed by a multi-layer perceptron unit, this unit consists of a linear projection layer mapped to 1024 dimensions, a GeLU activation function, a dropout layer with a probability of 0.1 inactivation, a linear projection layer mapped to 16 dimensions, and a dropout layer with a probability of 0.1 inactivation in series. The processed result is the same as P′ att Add and normalize the layers to get P″ att ; Then P″ att Back-project and restore the image block to the feature map F of the original size background .

[0024] Wherein, the step three is specifically as follows:

[0025] 3.1: Construct foreground and background salient feature fusion module. Usually, an infrared weak target image is considered to be composed of three parts: target, background, and noise, that is, I = B + T + N, where I represents the original image matrix, B represents the background matrix, T represents the target matrix, and N represents the error matrix such as noise. According to the feature maps obtained in steps one and two, F target The target information is more prominent, F background The background and noise information are more prominent in the image, so the two feature maps can be differentiated to achieve the effect of highlighting the target and suppressing the background; then the differential result is operated by a Gaussian weighted deformable convolution unit. In this unit, a convolution layer with a convolution kernel size of 3×3, an expansion factor of 1, a step size of 1, and 1 layer of padding on each side of the image is first used to generate a pixel offset feature map F with a channel number of 18 offset ; Secondly, a learnable Gaussian convolution unit composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation is used to generate a pixel weight mask feature map F with 9 channels mask, the convolution kernel size in the Gaussian convolution layer can be learned to be 3×3, the expansion coefficient is 1, the step size is 1, and the image edges are filled with 1 layer. The generation process of the Gaussian convolution layer can be learned to be consistent with LGCUnit1 in step 1.2; then a convolution kernel size of 3×3, expansion coefficient 1, step size 1, and 1 layer of padding on each side of the image are used to generate a convolution kernel weight F with a channel number of 32. weight ; Finally, using formula F deform =(F weight +F offset )×F mask Construct a Gaussian weighted deformable convolution layer to operate the difference result to obtain the feature map F deform .

[0026] 3.2: The network supplements the detailed information and obtains the pixel-level probability prediction map of the entire image through the segmentation head. First, a residual convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function is used to perform F target Perform the operation to generate a feature map F′ with 32 channels target , where the convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled; secondly, F′ target With F deform Add and activate the ReLU function to get the feature map F fusion ; Finally, the feature map is input into the full convolutional network segmentation head to obtain the probability prediction map F at the pixel level of the full image out This segmentation head consists of a convolutional layer, a batch normalization layer, a ReLU activation function, a dropout layer with a probability loss of 0.1, and a second convolutional layer connected in series. The convolution kernel size in the first convolutional layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer to generate a feature map with 4 channels. The convolution kernel size in the second convolutional layer is 1×1, the expansion factor is 1, the step size is 1, and each side of the image is not padded to generate a probability prediction map F with 1 channel. out .

[0027] Wherein, the step 4 is specifically as follows:

[0028] 4.1: Connect the modules in step 1 and step 2 in parallel, and then connect them in series with the modules in step 3 to build a hybrid dual-branch neural network, such as Figure 1 As shown in Figure 2, the loss function consists of the smoothed intersection-over-union (SoftIoU) loss, where L = L SoftIoUThe intersection-over-union ratio refers to the overlap ratio between the generated prediction area and the true target area, that is, the ratio of the intersection and union of the two; the smoothed intersection-over-union ratio is a smoothing of the intersection-over-union ratio to better optimize the training process and handle the situation of class imbalance. In actual situations, the value of the smoothed intersection-over-union ratio is always between 0 and 1, and the larger the value, the more accurate the detection effect of the network. Therefore, the intersection-over-union loss is defined Wherein area(predict) is the target area predicted by the method of the present invention, area(trut) is the area of ​​the real target area, ∩ is the set intersection operation, and ∪ is the set union operation. After the above loss function definition is given, the infrared image is input into the convolutional neural network to obtain the probability prediction map and perform pixel-by-pixel multiplication with the annotated real result map to obtain the overlap result of the predicted target area and the real target area, that is, area(predict)∩area(trut); on this basis, the number of pixels of the real target area, the predicted target area, and the overlapping area of ​​the two are respectively summed up and calculated, and then the smooth intersection loss is calculated.

[0029] 4.2: This paper uses AdaGrad optimizer for optimization. The initial learning rate of the network is 0.005 and the weight decay coefficient is 10 -4 During training, a decay coefficient of 0.9 is used to adjust the learning rate, and the network parameters are adjusted through gradient back propagation to reduce the corresponding loss function.

[0030] 3. Advantages and effects:

[0031] The present invention proposes an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method. Starting from the statistical characteristics of infrared dim small targets presenting two-dimensional Gaussian distribution in images, an adaptive selection multi-scale receptive field module based on Gaussian characteristics is designed to fully extract target features and select the most relevant spatial context information; starting from the sparse low-rank characteristics presented in dim small target images, a cross-attention background estimation module is designed to achieve the effect of extracting background information; at the same time, a foreground and background saliency feature fusion module is constructed to fuse the information of the two branches, better retain the small target features, and reduce the interference of complex background information. The model design starts from the characteristics of infrared dim small targets, has good performance in interpretability and performance, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a principle flow chart of the attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method proposed in the present invention.

[0033] Figure 2 Schematic diagram of adaptively selecting a multi-scale receptive field module based on Gaussian characteristics.

[0034] Figure 3Schematic diagram of the cross-attention background estimation module based on sparse low-rank characteristics.

[0035] Figure 4 Schematic diagram of the foreground and background salient feature fusion module.

[0036] Figure 5a-5h The test results of the present invention in actual scenes are shown; Figure 5a , 5b , 5e, and 5f are the original infrared images, where the small target is marked by a white box. Figure 5c , 5d , 5g, and 5h are the detection results of the method of the present invention. DETAILED DESCRIPTION

[0037] In order to better understand the technical solution of the present invention, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0038] The present invention relates to an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method. Figure 1 As shown, the specific steps of this method are as follows:

[0039] Step 1: Construct a multi-scale receptive field module based on Gaussian distribution characteristics, use learnable Gaussian convolution units with different expansion coefficients to extract features in series, adaptively select the receptive field of multi-scale input information, and achieve target feature enhancement;

[0040] Step 2: Construct a cross-attention background estimation module based on sparse low-rank characteristics, and use the cross-attention mechanism to estimate the background of the feature maps after target enhancement and target submergence processing;

[0041] Step 3: Construct a foreground and background feature fusion module, differentiate the feature maps in the above two steps, add detailed information, and obtain a pixel-level probability prediction map of the entire image through the segmentation head;

[0042] Step 4: Connect the two modules in steps 1 and 2 in parallel and then connect them in series with the module in step 3 to complete the neural network. Construct a loss function to train the network. Use the prediction results and pixel-level labels to calculate the loss to train the network parameters.

[0043] Output: Infrared image processed with the trained neural network; after sufficient iterative training of the attention-guided hybrid two-branch spatial decomposition neural network using the training data, the trained network is obtained to detect target pixels.

[0044] Wherein, the step 1 is as follows, the details are as follows Figure 2 As shown:

[0045] 1.1: The network first uses a regular convolution unit to extract shallow features F stemm This conventional convolution unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating a shallow feature F with 16 channels. stemm ;

[0046] 1.2: Secondly, the network constructs three learnable Gaussian convolution units LGCUnit1, LGCUnit2, and LGCUnit3 with different expansion coefficients to extract features in series. Each learnable Gaussian convolution unit is operated in parallel by three branches. It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Realize residual connection; According to the statistical characteristics of small and weak targets presenting a two-dimensional isotropic Gaussian distribution in the image, the convolution kernel with Gaussian distribution can extract richer target features, so the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. In the learnable Gaussian convolution layer, the standard deviation of the two-dimensional Gaussian distribution is set as a network learnable parameter. In order to ensure that the standard deviation is always positive during the network propagation parameter update process, the parameter log_sigma is first initialized to 0 in the network, and the exponential form of the parameter e is log_sigma As the standard deviation σ of the two-dimensional Gaussian distribution, in the process of generating the two-dimensional Gaussian convolution kernel using σ, first according to the formula Generate a one-dimensional Gaussian distribution vector, and then use the outer product of two one-dimensional vectors to generate a two-dimensional Gaussian convolution kernel; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit1 The first branch in the second learnable Gaussian convolution unit LGCUnit2 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with LGCUnit1; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit2 The first branch in the third learnable Gaussian convolution unit LGCUnit3 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with LGCUnit1; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit3 Then, F LGCUnit1 、F LGCUnit2 and F LGCUnit3 Add and get the feature map F with 16 channels LGCUnit .

[0047] 1.3: The network then adaptively selects the receptive field for multi-scale input information. LGCUnit Perform global average pooling on the channel dimension to obtain the feature map F avg , use the fully connected unit FCUnit1 to F avg Perform the operation to generate a feature map F with 32 channels fc1 This fully connected unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. Then, the fully connected unit FCUnit2 is used to map the feature map F fc1 Perform the operation to generate a receptive field selection weight feature map F with 48 channels att , split its channel dimension into two dimensions: the number of branches and the output channel, and perform the Softmax activation function to obtain the feature map F′ att , where the number of branches is 3 and the number of output channels is 16; then F′ att Divide into 3 blocks F′ in the branch number dimension att1 , F′ att2 , F′ att3 , and the above three feature maps are respectively LGCUnit1 、F LGCUnit2 、F LGCUnit3 Multiply to get the feature map F after adaptively selecting the receptive field size select .

[0048] 1.4: The network performs channel attention operation on the feature map obtained in the previous step. First, the feature map F select The Sigmoid activation function is performed, and then the global maximum pooling operation is performed in the spatial dimension. A one-dimensional convolution layer with a convolution kernel of 3, an expansion factor of 1, a step size of 1, and no padding on each side of the image is used for the next step. The Sigmoid activation function is performed on the feature map after the one-dimensional convolution again and combined with F select Multiply to get the target enhanced feature map F target The specific process is as follows: Figure 2 shown.

[0049] Wherein, the step 2 is specifically as follows:

[0050] 2.1: Construct a cross-attention background estimation module based on sparse low-rank characteristics. The specific process is as follows Figure 3 First, a convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function is used to operate the original image I of the input network. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. The feature F′ with 16 channels is generated.stem ; Secondly, for feature F target , F′ stem Cut them separately, where for feature F targget A convolutional layer with a kernel size of 8×8, an expansion factor of 1, a step size of 8, and no padding on the edges of the image is used to generate an image block with 16 channels and a block size of 64×64. The height and width dimensions of the image block are combined and then layer normalization is used to obtain the image block P targget ; For feature F′ stemm Directly reshape the image into a block with a size of 64×64. In view of the fact that small targets are sparsely distributed in the image and account for less than 1% of the image block, the present invention believes that small targets can be modeled as abnormal bright spots with a large contrast with the background in the image. Therefore, the 1% pixels with the largest grayscale value in each channel of the image block are replaced by the average value of the remaining pixel values ​​to achieve the purpose of submerging the small targets, and the image block is linearly projected to 16 channels and layer normalized to obtain the image block P. background ; Then set a learnable embedding vector cls token Respectively with P target , P background The spliced ​​image block is then added to the set learnable position code and processed by a dropout layer with a probability of 0.1 inactivation of each neuron to obtain the enhanced image block P′. target And the image block P′ after the target is submerged background ; Given that the background part of the weak target image has high similarity at different positions and exhibits low-rank characteristics, P′ target , P′ background The similarity between the two image blocks in the original corresponding blocks containing weak targets is low, and the similarity between the corresponding blocks in the original background is high, so the above two image blocks are input into a single-head cross-attention part for P′ target Perform layer normalization and linear projection to obtain the Q1 matrix, and then background Perform layer normalization and linear projection to obtain K2 and V2 matrices. Get P att , after being processed by a dropout layer where each neuron has a probability of inactivation of 0.1, and P att Add together to get P′ att , then P′ att The layers are normalized and processed by a multi-layer perceptron unit, which consists of a linear projection layer mapped to 1024 dimensions, a GeLU activation function, a dropout layer with a probability of 0.1 inactivation, a linear projection layer mapped to 16 dimensions, and a dropout layer with a probability of 0.1 inactivation in series. The processed result is the same as P′att Add together to get P″ att ; Then P″ att Back-project and restore the image block to the feature map F of the original size background .

[0051] Wherein, the step three is specifically as follows: Figure 4 As shown:

[0052] 3.1: Construct foreground and background salient feature fusion module. The specific process is as follows Figure 4 As shown. Usually, an infrared weak target image is considered to be composed of three parts: target, background, and noise, that is, I = B + T + N, where I represents the original image matrix, B represents the background matrix, T represents the target matrix, and N represents the error matrix such as noise. According to the feature map obtained in steps one and two, F target The target information is more prominent, F background The background and noise information are more prominent in the image, so the two feature maps can be differentiated to achieve the effect of highlighting the target and suppressing the background; then the differential result is operated by a Gaussian weighted deformable convolution unit. In this unit, a convolution layer with a convolution kernel size of 3×3, an expansion factor of 1, a step size of 1, and 1 layer of padding on each side of the image is first used to generate a pixel offset feature map F with a channel number of 18 offset ; Secondly, a learnable Gaussian convolution unit composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation is used to generate a pixel Gaussian weight mask feature map F with 9 channels mask , the convolution kernel size in the Gaussian convolution layer can be learned to be 3×3, the expansion coefficient is 1, the step size is 1, and each side of the image is padded with 1 layer. The generation process of the Gaussian convolution layer can be learned to be consistent with LGCUnit1 in step 1.2; then a convolution kernel size of 3×3, expansion coefficient 1, step size 1, and each side of the image is padded with 1 layer are used to generate a convolution kernel weight F with a channel number of 32. weight ; Finally, using formula F deform =(F weight +F offset )×F mask Construct a Gaussian weighted deformable convolution layer to operate the difference result to obtain the feature map F deform .

[0053] 3.2: The network supplements the detailed information and obtains the pixel-level probability prediction map of the entire image through the segmentation head. First, a residual convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function is used to perform F target Perform the operation to generate a feature map F′ with 32 channels target, where the convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled; secondly, F′ target With F deform Add and activate the ReLU function to get the feature map F fusion ; Finally, the feature map is input into the full convolutional network segmentation head to obtain the probability prediction map F at the pixel level of the full image out This segmentation head consists of a convolutional layer, a batch normalization layer, a ReLU activation function, a dropout layer with a probability loss of 0.1, and a second convolutional layer connected in series. The convolution kernel size in the first convolutional layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer to generate a feature map with 4 channels. The convolution kernel size in the second convolutional layer is 1×1, the expansion factor is 1, the step size is 1, and each side of the image is not padded to generate a probability prediction map F with 1 channel. out .

[0054] Wherein, the step 4 is specifically as follows:

[0055] 4.1: Connect the modules in step 1 and step 2 in parallel, and then connect them in series with the modules in step 3 to build a hybrid dual-branch neural network, as shown in Figure x. The loss function is composed of the smoothed intersection over union (SoftIoU) loss, L = L SoftIoU The intersection-over-union ratio refers to the overlap ratio between the generated prediction area and the true target area, that is, the ratio of the intersection and union of the two; the smoothed intersection-over-union ratio is a smoothing of the intersection-over-union ratio to better optimize the training process and handle the situation of class imbalance. In actual situations, the value of the smoothed intersection-over-union ratio is always between 0 and 1, and the larger the value, the more accurate the detection effect of the network. Therefore, the intersection-over-union loss is defined Wherein area(predict) is the target area predicted by the method of the present invention, area(trut) is the area of ​​the real target area, ∩ is the set intersection operation, and ∪ is the set union operation. After the above loss function definition is given, the infrared image is input into the convolutional neural network to obtain the probability prediction map and perform pixel-by-pixel multiplication with the annotated real result map to obtain the overlap result of the predicted target area and the real target area, that is, area(predict)∩area(trut); on this basis, the number of pixels of the real target area, the predicted target area, and the overlapping area of ​​the two are respectively summed up and calculated, and then the smooth intersection loss is calculated.

[0056] 4.2: This paper uses AdaGrad optimizer for optimization. The initial learning rate of the network is 0.005 and the weight decay coefficient is 10 -4, a decay coefficient of 0.9 is used to adjust the learning rate during training, and the network parameters are adjusted through gradient back propagation to reduce the corresponding loss function. In this process, the gradient descent method is used for back propagation, and the loss function is partial-derived with respect to a certain network parameter by the chain rule of derivation to update the parameters: where θ i is the network parameter before back propagation, θ′ i is the network parameter after back propagation update, η is the learning rate, and L is the loss function.

[0057] Figure 5a-5h This is the application of the present invention in an actual infrared scene. The position of the weak target is marked with a white frame. Figure 5c , 5d , 5g, and 5h are the corresponding detection results. The images used for the experiment come from different infrared scenes, most of which are very dim and small in size, making it difficult to extract effective texture information. In addition, there are complex interferences such as clouds, vegetation, and noise in the background. However, the experimental results not only effectively eliminate noise interference and accurately detect the position and shape of the target, but also have advantages in computing time, achieving the goal of fast and accurate detection. This fully demonstrates the high efficiency of the present invention, which can be widely used in various infrared weak target detection systems and has broad market prospects and application value.

Claims

1. An attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, It is characterized in that The specific steps of this method are as follows: Step 1: Construct a multi-scale receptive field module based on Gaussian distribution characteristics, use learnable Gaussian convolution units with different expansion coefficients to extract features in series, adaptively select the receptive field of multi-scale input information, and achieve target feature enhancement; Step 2: Construct a cross-attention background estimation module based on sparse low-rank characteristics, and use cross-attention to estimate the background of the feature maps after target enhancement and target submergence processing; Step 3: Construct a foreground and background feature fusion module, differentiate the feature maps in the above two steps, add detailed information, and obtain a pixel-level probability prediction map of the entire image through the segmentation head; Step 4: Connect the two modules in steps 1 and 2 in parallel and then connect them in series with the foreground-background feature fusion module in step 3 to complete the neural network, and construct a loss function to train the neural network; use the prediction results and pixel-level labels to calculate the loss and realize the training of the neural network parameters; Output: Infrared image processed with the trained neural network; after sufficient iterative training of the attention-guided hybrid two-branch spatial decomposition neural network using the training data, the trained neural network is obtained to detect target pixels.

2. According to claim 1, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 1, the neural network first uses a convolutional unit to extract shallow features F stem ; This convolution unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion coefficient is 1, the step size is 1, and each side of the image is padded with 1 layer, generating a shallow feature F with 16 channels. stem .

3. According to claim 2, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 1, the neural network constructs three learnable Gaussian convolution units LGCUnit1, LGCUnit2, and LGCUnit3 with different expansion coefficients to extract features in series. Each learnable Gaussian convolution unit is operated in parallel by three branches; the first branch of the first learnable Gaussian convolution unit LGCUnit1 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Realize residual connection; According to the statistical characteristics of small and weak targets presenting a two-dimensional isotropic Gaussian distribution in the image, the convolution kernel with Gaussian distribution can extract richer target features, so the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 1, the step size is 1, and each side of the image is padded with 1 layer, generating features with 16 channels. In the learnable Gaussian convolution layer, the standard deviation of the two-dimensional Gaussian distribution is set as a learnable parameter of the neural network.

4. According to claim 3, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 1, in order to ensure that the standard deviation is always positive during the parameter update process of the neural network, the parameter log_sigma is first initialized to 0 in the neural network, and the exponential form of the parameter e is log_sigma As the standard deviation σ of the two-dimensional Gaussian distribution, in the process of generating the two-dimensional Gaussian convolution kernel using σ, first according to the formula Generate a one-dimensional Gaussian distribution vector, and then use the outer product of two one-dimensional vectors to generate a two-dimensional Gaussian convolution kernel; after obtaining the three branch feature maps, add them together and perform the ReLU activation function operation to obtain F LGCUnit1 ; The first branch in the second learnable Gaussian convolution unit LGCUnit2 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 2, the step size is 1, and the image is padded with 2 layers on each side, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with that of LGCUnit1. After obtaining the three branch feature maps, they are added together and the ReLU activation function is performed to obtain F LGCUnit2 ; The first branch in the third learnable Gaussian convolution unit LGCUnit3 It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. Second branch It is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion factor is 1, the step size is 1, the edges of the image are not padded, and the number of channels generated is 16. and Implementing residual connection; the third branch It is composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the learnable Gaussian convolution layer is 3×3, the expansion factor is 3, the step size is 1, and the image edges are padded with 3 layers, generating features with 16 channels. The generation process of the learnable Gaussian convolutional layer is consistent with that of LGCUnit1. After obtaining the three branch feature maps, they are added together and the ReLU activation function is performed to obtain F LGCUnit3 ; Then F LGCUnit1 、F LGCUnit2 and F LGCUbit3 Add and get the feature map F with 16 channels LGCUnit .

5. According to claim 3 or 4, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 1, the neural network adaptively selects the receptive field for multi-scale input information; LGCUnit Perform global average pooling on the channel dimension to obtain the feature map F avg , use the fully connected unit FCUnit1 to F avg Perform the operation to generate a feature map F with 32 channels fc1 This fully connected unit is composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. Then, the fully connected unit FCUnit2 is used to map the feature map F fc1 Perform the operation to generate a receptive field selection weight feature map F with 48 channels att , split its channel dimension into two dimensions: the number of branches and the output channel, and perform the Softmax activation function to obtain the feature map F′ att , where the number of branches is 3 and the number of output channels is 16; then F′ att Divide into 3 blocks F′ in the branch number dimension att1 , F′ att2 , F′ att3 , and the above three feature maps are respectively LGCUnit1 、F LGCUnit2 、F LGCUnit3 Multiply to get the feature map F after adaptively selecting the receptive field size select .

6. According to claim 5, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 1, the feature map F select Perform the Sigmoid activation function operation, perform the global maximum pooling operation in the spatial dimension, and use a one-dimensional convolution layer with a convolution kernel of 3, an expansion factor of 1, a step size of 1, and no padding on the edges of the image for the next step. Perform the Sigmoid activation function operation on the feature map obtained after the one-dimensional convolution operation again and combine it with F select Multiply to get the target enhanced feature map F target .

7. According to claim 1, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 2, the original image I input to the neural network is first operated using a convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function operation. The convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled. The feature F′ with 16 channels is generated. stem ; Secondly, for feature F target , F′ stem Cut them separately, where for feature F target A convolutional layer with a kernel size of 8×8, an expansion factor of 1, a step size of 8, and no padding on the edges of the image is used to generate an image block with 16 channels and a block size of 64×64. The height and width dimensions of the image block are combined and then layer normalization is used to obtain the image block P target ; For feature F′ stem Directly reshape the image into a 64×64 block, replace the 1% pixels with the largest grayscale value in each channel of the image block with the average value of the remaining pixels to achieve the purpose of submerging the weak target, and linearly project the image block to 16 channels and perform layer normalization to obtain the image block P background ; Then set a learnable embedding vector cls token Respectively with P target , P background The spliced ​​image block is then added to the set learnable position code and processed by a dropout layer with a probability of 0.1 inactivation of each neuron to obtain the enhanced image block P′. target And the image block P′ after the target is submerged background ; P′ target , P′ background These two image patches are input to a single-head cross-attention layer for P′ target Linear projection gives Q 1 Matrix, for P′ background Linear projection obtains K 2 、V 2 Matrix, through the formula Get P att , after being processed by a dropout layer where each neuron has a probability of inactivation of 0.1, and P att Add and normalize through the layer to get P′ att , then P′ att After being processed by a multi-layer perceptron unit, this unit consists of a linear projection layer mapped to 1024 dimensions, a GeLU activation function, a dropout layer with a probability of 0.1 inactivation, a linear projection layer mapped to 16 dimensions, and a dropout layer with a probability of 0.1 inactivation in series. The processed result is the same as P′ att Add and normalize the layers to get P″ att ; Then P″ att Back-project and restore the image block to the feature map F of the original size background .

8. According to claim 1, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 3, the feature map F target and F background Perform a difference operation; then perform a Gaussian weighted deformable convolution unit operation on the result after the difference. First, use a convolution layer with a convolution kernel size of 3×3, an expansion factor of 1, a step size of 1, and 1 layer of padding on each side of the image to generate a pixel offset feature map F with a channel number of 18 offset ; Secondly, a learnable Gaussian convolution unit composed of a learnable Gaussian convolution layer, a batch normalization layer, and a LeakyReLU activation function operation is used to generate a pixel weight mask feature map F with 9 channels mask , we can learn a Gaussian convolution layer with a kernel size of 3×3, an expansion factor of 1, a stride of 1, and 1 padding on each side of the image; then we use a convolution layer with a kernel size of 3×3, an expansion factor of 1, a stride of 1, and 1 padding on each side of the image to generate a convolution kernel weight F with a channel number of 32 weight ; Finally, using formula F deform =(F weight +F offset )×F mask Construct a Gaussian weighted deformable convolution layer to operate the difference result to obtain the feature map F deform .

9. According to claim 8, an attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method, Features: In step 3, the neural network supplements the detailed information and obtains the probability prediction map of the pixel level of the entire image through the segmentation head; first, the residual convolution unit composed of a convolution layer, a batch normalization layer, and a LeakyReLU activation function is used to operate F target Perform the operation to generate a feature map F′ with 32 channels target , where the convolution kernel size in the convolution layer is 1×1, the expansion coefficient is 1, the step size is 1, and the edges of the image are not filled; secondly, F′ target With F deform Add and activate the ReLU function to get the feature map F fusion ; Finally, the feature map is input into the full convolutional neural network segmentation head to obtain the probability prediction map F at the pixel level of the full image out .

10. The attention-guided hybrid dual-branch spatial decomposition neural network infrared dim small target detection method according to claim 1, Features: In step 4, define the intersection-over-union loss: Among them, area(predict) is the predicted target area, area(trut) is the area of ​​the real target area, ∩ is the set intersection operation, and ∪ is the set union operation; the infrared image is input into the convolutional neural network to obtain the probability prediction map and perform pixel-by-pixel multiplication with the annotated real result map to obtain the overlapping result of the predicted target area and the real target area, that is, area(predict)∩area(trut); on this basis, the number of pixels of the real target area, the predicted target area, and the overlapping area of ​​the two are calculated and then the smooth intersection-union ratio loss is calculated.

Citation Information

Patent Citations

  • Infrared weak and small target detection method based on attention mechanism convolutional neural network

    CN114863097A

  • Infrared weak and small target detection method based on hybrid spatial modulation feature convolutional neural network

    CN116486102A

  • Person re-identification method and apparatus for fusing global features with ladder-shaped local features

    WO2024021394A1

Cited By

  • Infrared small target detection method based on data expansion and weak feature enhancement

    CN118736241A

  • Infrared small target feature enhancement method based on local motion perception

    CN119478447A

  • Double-branch infrared small target detection method based on neural low-rank background modeling

    CN120374943A

  • A dual-branch infrared small target detection method based on neural low-rank background modeling

    CN120374943B

  • Sparsity-based image enhancement method and system under low-illumination condition

    CN120387960A