An interpretable multi-scale infrared small target detection network design method
By designing a multi-scale infrared weak and small target detection network, combined with multi-scale target enhancement, global response, channel attention and feature fusion modules, the robustness and contour descriptive problems of infrared weak and small target detection under complex backgrounds are solved, achieving a more accurate and interpretable test results.
Patent Information
- Application Number
- CN202210503167.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-09
AI Technical Summary
The existing technology has poor robustness and contour descriptor in detecting infrared weak and small targets under complex backgrounds, making it difficult to achieve accurate detection. Moreover, the scale of infrared weak and small targets is variable, and it is easy to be submerged in the background and missed detection.
Design an interpretable multi-scale infrared weak and small target detection network, which combines the multi-scale target enhancement module, global target response module, channel attention module and multi-layer feature fusion module to improve detection accuracy through multi-loss joint constraints and iterative training. efficiency and robustness.
It effectively improves the accuracy and robustness of infrared weak and small target detection under complex backgrounds, enhances contour description performance, provides more prior information for subsequent recognition and tracking operations, and reduces false alarms and missed detections.
Smart Images

Figure CN114998566B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of infrared image target detection, that is, using an interpretable network model to achieve accurate segmentation of multi-scale infrared dim small targets under different complex backgrounds, and specifically is an interpretable multi-scale infrared dim small target detection network design method. Background Art
[0002] Infrared target detection is one of the core technologies of long-range early warning and precision guidance systems, among which infrared weak small target detection is a classic problem. The main difficulties are: 1) The imaging distance is very far, and the infrared weak small target is displayed as a light spot with a size of 2×2-9×9 pixels and a Gaussian distribution of grayscale in the image, lacking color, texture and detail information, which brings great difficulties to detection; 2) The clutter edge or the strong edge of the building in the complex background can easily be misdetected as a target, which increases the false alarm; 3) The scale of infrared weak small targets varies, and they are often submerged in the complex background, resulting in serious missed detection. Therefore, multi-scale infrared weak small target detection in complex background has always been a very challenging task.
[0003] At present, there are few studies on infrared small target detection. The related infrared small target detection methods can be roughly divided into model-driven mathematical modeling methods and data-driven deep learning methods. Among them, the model-driven mathematical modeling method has a fast detection speed, good detection effect under specific types of backgrounds, and does not require training. However, this type of algorithm has the following disadvantages: 1) The algorithm has poor robustness, and the detection accuracy cannot be guaranteed in the face of different types of complex backgrounds, making it difficult to apply to practical projects; 2) The algorithm has poor contour description, and can only obtain the target center of mass and surrounding pixel coordinates, providing less prior knowledge for subsequent recognition or tracking operations. The data-driven deep learning method learns the data distribution of multi-scale infrared small targets from a large number of infrared images under complex backgrounds by designing a suitable network model, and has strong detection robustness and contour description for infrared small targets under different backgrounds.
[0004] From the perspective of processing ideas, there are two types of data-driven infrared weak target detection methods: 1) Target detection network, which detects the target by regressing the minimum bounding rectangle of the target. If the actual target in the infrared image is very weak, this type of network model is very likely to lose the real target in the feature encoding stage; and because it only regresses the coordinates of the bounding rectangle of the real target, this type of network model does not have the performance of describing the contour of the real target. 2) Target segmentation network, which achieves accurate segmentation of the real target by pixel-by-pixel classification of the infrared image. This type of network is more accurate in detecting real targets and has better contour description performance. Therefore, the target segmentation network should be used for accurate detection of multi-scale infrared weak targets. Summary of the invention
[0005] Aiming at the problems that the scale of infrared dim targets in complex backgrounds is small and changeable and the robustness and contour description of existing baseline detection algorithms are poor, the present invention proposes an explainable multi-scale infrared dim target detection network design method, which is used for dim target detection in multi-scale infrared images under different complex backgrounds, and effectively improves the detection accuracy and robustness.
[0006] The present invention adopts the following technical scheme: using an interpretable multi-scale infrared dim target detection network to accurately detect infrared dim targets under different complex backgrounds, the steps are as follows: constructing a multi-scale target enhancement module (Multi-scale Target Enhancement, MTE) and a multiple loss joint constraint module (Multiple LossConstraint, MLC), introducing a global target response module (Global Target Response, GTR), a channel attention module (Channel attention module, ChAtte) and a multi-layer feature fusion module (Multi-layer Feature Fusion, MFF) to jointly constitute a multi-scale infrared dim target detection network; wherein, MTE transforms the grayscale contrast between the target and the neighborhood background into a network structure to enhance the real target; GTR breaks the limitation of the fixed receptive field of the convolution kernel and performs context modeling in a global range; ChAtte adopts a channel attention mechanism to strengthen the channel dependence on the convolution operation, so that the network model selectively enhances features with large information content and suppresses useless features, and MFF fuses deep semantic features and shallow detail features of the source image to decode the target; MLC combines multiple losses to effectively constrain the network output. The combination of the above modules constitutes an interpretable multi-scale infrared dim target detection network. The trained network model is obtained by using the data set for multiple iterative training and using the loss function to effectively constrain the network output. The infrared image to be detected is input into the network model to output the detection result image containing the real target.
[0007] The multi-scale target enhancement module includes two parts: feature extraction and feature enhancement. The feature extraction part extracts shallow detail features and deep semantic information of the input image. The feature enhancement part enhances small targets by calculating local contrast to ensure that the real target is not lost during the feature extraction process and can always be maintained to the decoder. The source image is enhanced by the multi-scale target enhancement module to achieve the enhancement of the real target and the extraction of shallow and deep features.
[0008] The global target response module includes a GC block network structure, which performs context modeling on the feature map output by the multi-scale target enhancement module, breaks the limitation of the fixed receptive field of the convolution operation in the feature extraction process of the multi-scale target enhancement module, captures the long-distance dependency between pixels, and responds to the real target after aggregating global information;
[0009] The channel attention module uses the channel attention mechanism to set different weights for different channel feature maps in the output of the deep multi-scale target enhancement module, selectively enhances features with large amounts of information and suppresses useless features, strengthens the channel dependence of the network model on the convolution operation, and facilitates subsequent operations to fuse useful features and decode the real target;
[0010] The multi-layer feature fusion module redundantly and repeatedly fuses the output of the global target response module and the channel attention module output, and decodes and outputs the real target by combining the shallow detail features and deep semantic features of the source infrared image. The MFF module is composed of the RRDBNet network structure to achieve progressive interaction between high-level features and low-level features. Through repeated fusion and enhancement, the context information of small targets is well utilized to ensure that weak targets are always kept in the feature layer, so as to achieve the purpose of accurately classifying target and background pixels.
[0011] The multi-loss joint constraint module combines the softIoU_loss and focal_loss loss functions to effectively constrain the output of the multi-layer feature fusion module. By setting different parameters for the focal_loss loss function, the constraints on the low false alarm rate and low missed detection rate of the network output are realized. Then, the low false alarm rate feature map and the low missed detection rate feature map are fused to obtain the final network output. By calculating the softIoU_loss loss function value of the final network output and the label image, the contour description performance of the network model is improved.
[0012] The above-mentioned multi-scale target enhancement module uses the feature extraction block of the ResNet network model to extract the feature map X′, and then uses the multi-scale target enhancement module to enhance weak targets: the number of channels of the feature map X′ obtained by the feature extraction module is reduced to 1 using a 1×1 convolution operation to obtain a reduced-dimensional feature map X″, and then the grayscale contrast between the target area and the neighborhood background area is calculated; the grayscale contrast calculation process is as follows: first, a mean pooling operation is performed on X″ to obtain a pooled feature map X″′ s , the pooling diameter is s, the step size is 1, and the feature map size is not changed. Then, X″′ s Perform a cyclic shift operation, shift direction θ, shift distance v, and obtain the shift feature map X″′ θ,v, different pooling diameters and shift distances are used to calculate the contrast between the real target area of different scales and the local neighborhood background, and then the channel minimum pooling operation is performed on the contrast feature map group calculated by the same shift distance to obtain the weight feature map V corresponding to the shift distance. s , for the weighted feature map V s Perform channel maximum pooling and channel expansion operations, perform a dot multiplication operation on the expanded weight feature map and X′, and then perform a concat operation with X′ to obtain the MTE module output MTE_X.
[0013] The multi-layer feature fusion module is composed of RRDBNet modules. The input is the output GTR_X of the global target response module and the output ChAtte_X of the channel attention module. The output is MFF_X. The specific calculation process of MFF_X is as follows: in, They represent the weights corresponding to different feature maps, which are 0.5, 0.8, and 0.2, respectively, which can achieve the best fusion effect. MFF(·) represents the multi-layer feature fusion operation, and X is the source infrared image.
[0014] The above-mentioned interpretable multi-scale infrared dim target detection network design method uses the focal_loss loss function to constrain the network output. The focal_loss loss function is: Among them, y represents the pixel value of the network output image Y; y′ represents the pixel value of the label image Y′, representing the background pixel and the target pixel; α is the balance factor, γ is the weight adjustment factor of the simple and easy-to-classify sample, and when α=0.8, γ=2 and α=0.2, γ=2, the output feature map can be guaranteed to have a low missed detection rate and a low false alarm rate. Therefore, two different parameters are selected to constrain the network output at the same time, and a low missed detection rate feature map and a low false alarm rate feature map are obtained. The two feature maps are effectively fused through the convolution operation to obtain a network output with more correct pixel classification; at the same time, the softIoU_loss loss function is used to constrain the network output for contour description performance, and the total loss function is calculated as follows: Among them, δ is the activation function tanh / 2+0.5; ε1, ε2, ε3 are the weights corresponding to each loss function, the purpose is to adjust the values of each loss function to the same level, which are 1, 1, and 1000 respectively; L fl (·),L sf (·) represents focal_loss and softIoU_loss loss functions, FL_X1 and FL_X2 represent low missed detection rate feature maps and low false alarm rate feature maps, respectively. Y and Y′ represent the network output image and label image, respectively.
[0015] The above-mentioned interpretable multi-scale infrared dim target detection network design method, the input source image and label image are obtained by the following process: using the NUAA-SIRST dataset as the basic dataset for model training, and expanding the basic data; the amount of basic data is expanded to 5000; in addition, an infrared long-wave camera is used to shoot real infrared scenes under different backgrounds to construct the NUC-SIRST dataset, the number of which is 5000. The background is a real infrared background, and the target is a manually added virtual target. Therefore, the dataset used in this method has a total of 10,000 images, of which the training set, validation set, and test set account for 70%, 20%, and 10% respectively, and the image size is 128×128.
[0016] In order to solve the problem of robust detection of multi-scale infrared dim targets under different complex backgrounds, the present invention proposes an explainable multi-scale infrared dim target detection network design method, which realizes robust detection of real targets by designing an end-to-end encoding and decoding infrared dim target segmentation network, effectively suppresses different complex background clutter, improves the contour description performance of real targets, and provides more prior information for subsequent recognition and tracking operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a structural diagram of the network model of the present invention.
[0018] Figure 2 This is a structural diagram of the multi-scale target enhancement module of the present invention.
[0019] Figure 3 It is a cyclic shift map in the multi-scale target enhancement module of the present invention.
[0020] Figure 4 It is a structural diagram of the global target response module of the present invention.
[0021] Figure 5 This is a structural diagram of the multi-layer feature fusion module of the present invention.
[0022] Figure 6 This is a structural diagram of the multi-loss joint constraint module of the present invention.
[0023] Figure 7 This is a structural diagram of the channel attention module of the present invention.
[0024] Figure 8 (a) is the original infrared input image in the embodiment of the present invention.
[0025] Figure 8 (b) is the label image corresponding to the source image in an embodiment of the present invention.
[0026] Figure 8(c) is the detection network output image in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments:
[0028] Reference Figure 1 In this embodiment, an interpretable multi-scale infrared small target detection network design method includes the following steps:
[0029] Step 1: Input an infrared image to be detected X∈R H×W×1 ;
[0030] Step 2.1: Send the infrared image to be detected X into the multi-scale target enhancement module (MTE) for feature extraction and feature enhancement;
[0031] Step 2.2: MTE feature extraction: reference Figure 2 In the ResBlock module, two cascaded convolution layers (the convolution kernel size is 3×3, the step size is 1, and the filling method selects "filling the same pixels on the edge" to keep the output feature map and the input feature map the same size), the Leaky_Relu activation function and the data normalization layer (BN layer) together constitute the feature extraction layer in ResBlock. The ResBlock block consists of two layers of feature extraction layers, and the feature extraction layers are short-circuited. The specific operations are as follows:
[0032] X′=Fe(Fe(X)) (1)
[0033] Fe(X)=X+BN(σ(W2σ(W1X))) (2)
[0034] Where W1, W2, σ, and BN represent the first and second layer convolution kernel parameters, activation functions, and data normalization operations, respectively; Fe(·) represents the feature extraction operation; and X′ represents the intermediate features extracted by the ResBlock block;
[0035] Step 2.3: MTE feature enhancement: reference Figure 2 In the target enhancement operation in , the number of channels of the feature map X′ is reduced to 1 using a 1×1 convolution operation to obtain a reduced-dimensional feature map X″, and then the grayscale contrast between the target area and the neighborhood background area is calculated. The grayscale contrast calculation process is as follows: First, a mean pooling operation is performed on X″ to obtain a pooled feature map X″′ s , the pooling diameter is s (s = 3, 5, 7, 9), the step size is 1, the feature map size is not changed, and then X″′ s Perform a circular shift operation (refer to Figure 3 Circular shift diagram), shift direction Shift distance v (v = 3, 5, 7, 9), get the shift feature map X″′ θ,v Different pooling diameters and shift distances are used to calculate the contrast between the real target area of different scales and the local neighborhood background. Then, the channel minimum pooling operation is performed on the contrast feature map group calculated with the same shift distance to obtain the weight feature map V corresponding to the shift distance. s . V s The calculation is as follows:
[0036]
[0037] Where α is a very small positive value to avoid divisor being 0;
[0038] Step 2.4: Weight feature map V s ={V3,V5,V7,V9}∈R H×W×4 Perform channel maximum pooling and channel expansion operations with an expansion multiple of C. Perform a dot multiplication operation on the expanded weight feature map and X′ and then perform a concat operation with X′ to obtain the MTE module output MTE_X. MTE_X is calculated as follows:
[0039]
[0040] The superscript C indicates that the channel is expanded C times, ⊙ indicates the matrix pixel-by-pixel multiplication operation, concat(·) indicates the channel merging operation, and MTE_X indicates the output of the MTE module;
[0041] Step 3.1: Send the output MTE_X of the MTE module to the global target response module (GTR) for context modeling. By calculating the correlation between pixels in the MTE_X feature map, the fixed receptive field limitation of the convolution module is broken, the long-distance dependency between pixels is captured, and the context information is aggregated to respond to the real target.
[0042] Step 3.2: The GTR module is composed of GC blocks, refer to Figure 4 , the input feature in the GC block is MTE_X∈R H ×W×C First, 1×1 convolution and softmax function are used to obtain attention weights; then the attention weights are globally pooled to obtain context features; then the context features are transformed into bottleneck structures to capture channel dependencies; finally, the features that fuse global attention and channel dependencies are added to the original mapping features to complete the modeling of global context information. The GCblock output is GTR_X. The specific calculation process is as follows:
[0043]
[0044] Among them, x i 、x j and x m Respectively represent the i, j and m (1≤i, j, m≤N) of the input feature map MTE_X p ) pixels, z i Output feature map GTR_X and x i The output pixel at the corresponding position, N p Represents the total number of pixels in the feature map, represents the attention weight after global pooling, W v2 Relu(LN(W v1 (·))) represents the bottleneck transformation structure, W k , W v1 and W v2 is a nonlinear change, LN(·) and Relu(·) represent the normalization operation and activation function respectively;
[0045] Step 4: Reference Figure 1 and Figure 7 , in the deepest layer of the encoding stage (ChAtte module), the channel attention mechanism is used to strengthen the channel dependence of the convolution operation, so that the network model selectively enhances the features with large information content and suppresses useless features, which is convenient for the subsequent fusion of useful features and target decoding. The channel attention mechanism uses L2 regularization after the fully connected layer to enhance the sparsity of the semantic feature map, which not only speeds up the training speed of the model, but also makes the network pay more attention to the required features and ignores useless features. The specific operation of the channel attention mechanism is as follows: first, a global pooling operation is performed on the input feature map MTE_X, and the size of the feature map is converted from H×W× C to 1×1×C. Then, the feature map is connected to the fully connected layer to change the channel length. The channel length is converted from C to C / r (r is the transformation coefficient). The activation function in the fully connected layer selects Relu, and then the L2 regularization operation is added to enhance the sparsity of the feature map. The activation function of the final fully connected layer selects sigmoid, and then the size of the feature map is converted from 1×1×C to H×W×C and multiplied with the original feature map to obtain the attention mechanism output feature map ChAtte_X;
[0046] Step 5.1: Send the GTR_X feature map and the ChAtte_X feature map to the multi-layer feature fusion module (MFF) for feature fusion and real target decoding. This module effectively fuses deep semantic features and shallow detail features to achieve progressive interaction between high-level features and low-level features. Through repeated fusion and enhancement, the context information of small targets is well utilized to ensure that weak targets are always kept in the feature layer, so as to achieve the purpose of accurately classifying target and background pixels.
[0047] Step 5.2: Reference Figure 5The MFF module is mainly composed of the RRDBNet network structure, which has GTR_X and ChAtte_X as inputs and MFF_X as outputs. It consists of three repeated Basic block modules, and the Basic block modules are short-circuited. Among them, the Basic block module is a densely nested network structure, consisting of five cascaded convolutional layers (the convolution kernel size is 3×3, the step size is 1, and the filling method selects "edge same pixel filling") and the Leaky_Relu activation function. Each block is short-circuited, and the last layer does not have an activation function. The specific calculation process of MFF_X is as follows:
[0048]
[0049]
[0050] in, They represent the weights corresponding to different feature maps, which are 0.5, 0.8, and 0.2 respectively. MFF(·) represents the multi-layer feature fusion operation, and MFF_X is the output feature map of the module. The subscript 3 in formula (7) means that the module is repeated 3 times;
[0051] Step 6.1: Reference Figure 6 , after MFF_X is convolved with a channel number of 2 and a convolution kernel size of 1×1, the [FL_X1, FL_X2] feature map is obtained, and then the network final output Y is obtained after a convolution operation with a channel number of 1 and a convolution kernel size of 1 ×1. MLC combines the softIoU_loss and focal_loss loss functions to effectively constrain the [FL_X1, FL_X2] feature maps and the network final output Y respectively. By setting different parameters in the focal_loss loss function, the constraints of low false alarm rate and low missed detection rate of the [FL_X1, FL_X2] feature maps are realized, and then the low false alarm rate feature map and the low missed detection rate feature map are fused to obtain the final network output Y. By optimizing the softIoU_loss loss value of the network final output and the label image, the contour description performance of the network model is improved;
[0052] Step 6.2: The softIoU_loss loss function is calculated as:
[0053]
[0054] Among them, Y represents the network output image, Y′ represents the label image, and the pixel values are all 0 and 1. Y×Y′ represents the intersection of the label image and the output segmentation image, and Y+Y′-Y×Y′ represents the union of the label image and the output segmentation image. The loss value reflects the contour fitting ability of the network model to the real target. The larger the value, the closer the network output target is to the real target in terms of shape and contour.
[0055] Step 6.3: The focal_loss loss function is calculated as follows:
[0056]
[0057] Among them, y represents the pixel value of the network output image Y, and the output range is [0,1]; y′ represents the pixel value of the label image Y′, and the value is 0 and 1, representing the background pixel and the target pixel; α is the balance factor, which balances the importance of positive and negative samples, and is generally taken as 0.25; γ is the weight adjustment factor of simple and easy-to-classify samples. γ>0 reduces the loss of easy-to-classify samples and makes the network pay more attention to difficult and misclassified samples. The value is generally 2.
[0058] Step 6.4: The total loss function is calculated as follows:
[0059]
[0060] Among them, δ is the activation function tanh / 2+0.5; ε1, ε2, ε3 are the weights corresponding to each loss function, the purpose is to adjust the values of each loss function to the same level, which are 1, 1, and 1000 respectively; L fl (·),L sf (·) represents focal_loss and softIoU_loss loss functions, FL_X1 and FL_X2 represent low missed detection rate feature maps and low false alarm rate feature maps, respectively. Y and Y′ represent the final network output and label image, respectively.
[0061] Step 7: Image data set establishment: The present invention uses the NUAA-SIRST data set (427 images) as the basic data set for model training. For network models with a large number of parameters, a small amount of data sets can easily lead to problems such as unstable network training, model failure to converge, and overfitting. Therefore, the basic data is expanded. The expansion methods include rotation, cropping, adding random noise, adding weak targets that conform to Gaussian distribution, etc., and the amount of basic data is expanded to 5,000. In addition, an infrared long-wave camera is used to shoot real infrared scenes under different backgrounds to construct the NUC-SIRST data set. The number of this data set is 5,000. The background is a real infrared background (including sky cloud background, artificial building background, pedestrian interference background, and natural scenery background, etc.), and the target is a manually added virtual target (the number is random 1-3, the target position conforms to the uniform distribution, the target grayscale conforms to the two-dimensional Gaussian distribution, the grayscale maximum value is 180-255, the signal-to-noise ratio is 2.0-5.0, and the target size is 2×2-9×9). Therefore, the data set used in the present invention contains a total of 10,000 images, of which the training set, validation set, and test set account for 70%, 20%, and 10% respectively, and the image size is 128×128;
[0062] Step 8.1: Model training process: The interpretable multi-scale infrared small target detection network of the present invention belongs to an end-to-end fully convolutional network. Every 4 images are sent to the network model as a batch for parameter iteration optimization. The network output and the corresponding label image are subjected to softIoU_loss and focal_loss loss function calculations, and then the network parameters are updated by gradient backpropagation through derivation. After training 250 batch training sets, 100 batch validation sets are used to verify the network model. At the same time, the network model loss reduction curve and the transformation curve of each evaluation index are printed to ensure the normal network training process and avoid overfitting or underfitting. When the number of epochs of network model training reaches the preset number or the loss value remains stable, the training is stopped. The trained network model is tested using the test set, and the test results are evaluated using evaluation indicators (Signal-Clutter Ratio Gain (SCRG), Background Suppression Factor (BSF), Intersection of Union (IoU), Precision (Pr), Recall (Re) and F measure);
[0063] Step 8.2: Model training parameter setting: A Ubuntu server with a graphics card model of Tesla M40 and a video memory of 12GB was used for model training. The test software used was PyCharm 2019.3. The number of network training, verification, and test data was 7000, 2000, and 1000 respectively, the image size was 128×128, the total number of training epochs was 20, the learning rate was initialized to 0.001 and decreased by 30% every 5 epochs, the optimization function selected Adam optimizer, and the network framework was Tensorflow2.4.
Claims
1. An interpretable multi-scale infrared small target detection network design method, characterized by: The following steps are involved: A multi-scale target enhancement module and a multi-loss joint constraint module are constructed, and a global target response module, a channel attention module and a multi-layer feature fusion module are introduced to form a multi-scale infrared dim target detection network. Among them, the multi-scale target enhancement module converts the grayscale contrast between the target and the neighborhood background into a network structure to enhance the real target. The global target response module breaks the limitation of the fixed receptive field of the convolution kernel and performs context modeling on a global scale. The channel attention module uses the channel attention mechanism to strengthen the channel dependence of the convolution operation, so that the network model selectively enhances features with large information content and suppresses useless features. The multi-layer feature fusion module fuses the deep semantic features and shallow detail features of the source image to decode the target. The multi-loss joint constraint module effectively constrains the network output with the joint loss function. The combination of the above modules constitutes an interpretable multi-scale infrared dim target detection network. By using the data set for multiple iterative training and using the loss function to effectively constrain the network output, the trained network model is obtained. The infrared image to be detected is input into the network model to output the detection result image containing the real target. The multi-scale object enhancement module consists of two parts: feature extraction and feature enhancement. The feature extraction part extracts shallow detail features and deep semantic information from the input image. The feature enhancement part enhances small objects by calculating local contrast to ensure that the true object is not lost during the feature extraction process and can always be maintained at the decoder end. The source image is passed through the multi-scale object enhancement module to enhance the true object and extract shallow and deep features. The global object response module includes a GC block network structure, which performs contextual modeling on the feature maps output by the multi-scale object enhancement module. This overcomes the limitation of the fixed receptive field of the convolution operation during feature extraction in the multi-scale object enhancement module, captures long-distance dependencies between pixels, and aggregates global information to respond to real objects. The channel attention module uses the channel attention mechanism to set different weights for different channel feature maps in the output of the deep multi-scale object enhancement module, selectively enhancing features with high information content and suppressing useless features, strengthening the network model's channel dependence on convolution operations, and facilitating subsequent operations to fuse useful features and decode the true target; The multi-layer feature fusion module redundantly and repeatedly fuses the outputs of the global target response module and the channel attention module, combining the shallow detail features and deep semantic features of the source infrared image to decode and output the real target. The MFF module, composed of the RRDBNet network structure, realizes the progressive interaction between high-level features and low-level features. Through repeated fusion and enhancement, it makes good use of the contextual information of small targets, ensuring that weak targets are always retained in the feature layer, achieving the purpose of accurately classifying target and background pixels. The multi-loss joint constraint module combines the softIoU_loss and focal_loss loss functions to effectively constrain the output of the multi-layer feature fusion module. By setting different parameters for the focal_loss loss function, it constrains the network output to have a low false alarm rate and a low missed detection rate. The low false alarm rate feature map and the low missed detection rate feature map are then fused to obtain the final network output. The softIoU_loss loss function value is calculated between the final network output and the label image to improve the contour description performance of the network model. The multi-scale target enhancement module uses the feature extraction block of the ResNet network model to extract the feature map X′, and then uses the multi-scale target enhancement module to enhance weak targets: the number of channels of the feature map X′ obtained by the feature extraction module is reduced to 1 using a 1×1 convolution operation to obtain a reduced-dimensional feature map X″, and then the grayscale contrast between the target area and the neighboring background area is calculated; the grayscale contrast calculation process is as follows: first, a mean pooling operation is performed on X″ to obtain a pooled feature map X″′ s , the pooling diameter is s, the step size is 1, the feature map size is not changed, and then X″′ s Perform a cyclic shift operation, shift direction θ, shift distance v, and obtain the shift feature map X″′ θ,v , different pooling diameters and shift distances are used to calculate the contrast between the real target area of different scales and the local neighborhood background, and then the channel minimum pooling operation is performed on the contrast feature map group calculated with the same shift distance to obtain the weight feature map V corresponding to the shift distance s , for the weighted feature map V s Perform channel maximum pooling and channel expansion operations, perform a dot multiplication operation on the expanded weight feature map and X′, and then perform a concat operation with X′ to obtain the MTE module output MTE_X; The multi-layer feature fusion module is composed of RRDBNet modules. The input is the output of the global target response module GTR_X and the output of the channel attention module ChAtte_X. The output is MFF_X. The specific calculation process of MFF_X is as follows: in, They represent the weights corresponding to different feature maps, which are 0.5, 0.8, and 0.2, respectively, which can achieve the best fusion effect. MFF(g) represents the multi-layer feature fusion operation, and X is the source infrared image; Reference the focal_loss loss function to constrain the network output. The focal_loss loss function is: Among them, y represents the pixel value of the network output image Y; y′ represents the pixel value of the label image Y′, representing the background pixel and the target pixel; α is the balance factor, and γ is the weight adjustment factor of the simple and easy-to-classify samples. When α = 0.8, γ = 2 and α = 0.2, γ = 2, the output feature map can be guaranteed to have a low missed detection rate and a low false alarm rate. Therefore, two different parameters are selected to constrain the network output at the same time to obtain a low missed detection rate feature map and a low false alarm rate feature map. The two feature maps are effectively fused through the convolution operation to obtain a network output with more correct pixel classification. At the same time, the softIoU_loss loss function is used to constrain the network output to perform contour description performance constraints. The total loss function is calculated as follows: Among them, δ is the activation function tanh / 2+0.5; ε1, ε2, ε3 are the weights corresponding to each loss function, the purpose of which is to adjust the values of each loss function to the same level, which are 1, 1, and 1000 respectively; L fl (g), L sf (g) represents the focal_loss and softIoU_loss loss functions, FL_X1 and FL_X2 represent the low missed detection rate feature map and the low false alarm rate feature map, respectively. Y and Y′ represent the network output image and the label image, respectively.
2. The interpretable multi-scale infrared small target detection network design method according to claim 1 is characterized by: The NUAA-SIRST dataset is used as the basic dataset for model training, and the basic data is expanded; the amount of basic data is expanded to 5,000; in addition, an infrared long-wave camera is used to shoot real infrared scenes under different backgrounds to construct the NUC-SIRST dataset, which has 5,000 images. The background is a real infrared background, and the target is a manually added virtual target. Therefore, the dataset used in this method contains a total of 10,000 images, of which the training set, validation set, and test set account for 70%, 20%, and 10% respectively, and the image size is 128×128.
