A method for infrared dim small target detection based on multi-scale feature enhancement

By designing the YOLO-MSFE network in infrared weak and small target detection and using multi-scale feature enhancement and feature fusion technology, the problem of insufficient information and noise interference in infrared images is solved, and the detection accuracy and stability are improved.

CN118230104BActive Publication Date: 2024-08-27SOUTHWEAT UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410344537.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2024-08-27
Estimated Expiration
2044-03-25

AI Technical Summary

Technical Problem

When existing infrared weak and small target detection methods process infrared images, due to the lack of sensitivity of deep neural networks to local small changes, information is omitted or lost, and the information extracted by the network is not enough to capture subtle features, resulting in poor detection results.

Method used

An infrared weak and small target detection method based on multi-scale feature enhancement is designed, using YOLO-MSFE network, through the combination of backbone subnet, neck subnet and head subnet, using dilated convolution and U-shaped structure to extract features. And feature fusion is performed through the GREP structure to enhance the model's ability to process targets of different scales.

Benefits of technology

It improves the performance of infrared weak and small target detection, reduces the false detection rate and missed detection rate of the model, and enhances the representation ability of infrared weak and small targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230104B
    Figure CN118230104B
Patent Text Reader

Abstract

The present invention discloses an infrared small target detection method based on multi-scale feature enhancement, comprising: S1: obtaining a single-frame infrared small target data set based on a real scene; S2: preprocessing the single-frame infrared small target data set to obtain a preprocessed data set; S3: inputting the preprocessed data set into a YOLO-MSFE network, performing infrared small target detection using the YOLO-MSFE network, and obtaining an infrared small target detection result. The present invention can solve the problems of the existing infrared image lacking color information, very sparse small targets, and much noise interference, and the problems of poor detection effect caused by the large network depth and insufficient information utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of infrared dim small target detection, and in particular to an infrared dim small target detection method based on multi-scale feature enhancement. Background Art

[0002] Infrared thermal imaging acquires information by passively collecting infrared radiation emitted by objects and mapping it into images. It has the ability to operate in all weather conditions and penetrate inclement weather such as clouds and fog. Therefore, infrared small target detection (IRSTD) has extremely important applications in many fields, including aerospace, medical treatment, and disaster relief. In the 256×256 pixel infrared image captured by some infrared sensors, if the target size is less than 9×9 pixels, it is defined as an infrared small target. Compared to visible light, infrared small target images have the following difficulties: the imaging distance is too long, resulting in a very small target, and the infrared image contains a large amount of interference noise. These difficulties make infrared small target detection extremely difficult.

[0003] Traditional infrared small target detection methods have been categorized primarily into filtering, the human visual system, and low-rank sparse recovery. While computationally demanding and complex, these methods rely heavily on prior knowledge, often due to the high levels of noise and small size of infrared small target images. This results in low detection accuracy and poor system stability. Compared to these traditional methods, deep learning-based approaches can automatically extract features without manual design, offering advantages such as faster recognition speed and more stable systems. Currently, two representative object detection algorithms are candidate bounding box algorithms and regression algorithms.

[0004] While the latest YOLOv8 algorithm has achieved remarkable results in target detection, its deep neural network model design, due to its potential lack of sensitivity to subtle local changes, can miss or even lose information when processing infrared data of small, dim targets, leading to poor detection results. Furthermore, given the unique characteristics of infrared data, this can also result in insufficient information extracted by the network to effectively capture and describe subtle features of the target. Summary of the Invention

[0005] The purpose of the present invention is to provide an infrared dim small target detection method based on multi-scale feature enhancement to solve the problems of poor detection effect caused by the lack of color information in existing infrared images, very sparse small targets and high noise interference, as well as the large network depth and insufficient information utilization.

[0006] The technical solution of the present invention to solve the above technical problems is as follows:

[0007] The present invention provides an infrared dim small target detection method based on multi-scale feature enhancement, comprising:

[0008] S1: Acquire a single-frame infrared dim target dataset based on real scenes;

[0009] S2: preprocessing the single-frame infrared dim target data set to obtain a preprocessed data set;

[0010] S3: Input the preprocessed data set into the YOLO-MSFE network, use the YOLO-MSFE network to perform infrared dim small target detection, and obtain infrared dim small target detection results;

[0011] The YOLO-MSFE network includes:

[0012] A backbone subnet, a neck subnet, and a head subnet, wherein the backbone subnet includes a first CBS module, a first MUDC module, a first C2f module, a second MUDC module, a second C2f module, a third MUDC module, a third C2f module, a fourth MUDC module, a fourth C2f module, and an SPPF module, which are arranged in sequence;

[0013] The neck subnet includes a GREP structure, a first UpSample module, a second UpSample module, a first concat layer to a sixth concat layer, a fifth C2f module to a tenth C2f module, a fifth MUDC module, a second CBS module and a third CBS module;

[0014] The output results of the second MUDC module, the third MUDC module and the fourth MUDC module are simultaneously used as the input of the GREP structure, the output result of the GREP structure is simultaneously used as the first input of the fifth concat layer and the input of the fifth MUDC module, the output result of the SPPF module is simultaneously used as the input of the first UpSample module, the first UpSample module, the first concat layer, the fifth C2f module, the second UpSample module, the second concat layer and the sixth C2f module are set in sequence, and the output of the second C2f module is used as another input of the second concat layer, and the output of the third C2f module is used as the first concat layer. the other input of the sixth concat layer, the output result of the sixth C2f module is simultaneously used as the second input of the fifth concat layer and the input of the second CBS module, the output result of the second CBS module and the output result of the fifth C2f module are simultaneously used as the input of the third concat layer, the third concat layer, the seventh C2f module, the third CBS module, the fourth concat layer and the eighth C2f module are arranged in sequence; the output result of the seventh C2f module and the output result of the fifth MUDC module are simultaneously used as the input of the sixth concat layer, the output result of the sixth concat layer is used as the input of the tenth C2f module; the output result of the fifth concat layer is used as the input of the ninth C2f module;

[0015] The head subnet includes a first Detect module, a second Detect module and a third Detect module; the output result of the ninth C2f module serves as the input of the first Detect module; the output result of the tenth C2f module serves as the input of the second Detect module, and the output result of the eighth C2f module serves as the input of the third Detect module; the first CBS module to the third CBS module are constructed to have the same structure.

[0016] Optionally, the first C2f module to the tenth C2f module are constructed to have the same structure, and each of the C2f modules includes a first CBS sub-module, a Split layer, a first Bottleneck sub-module to an nth Bottleneck sub-module, a concat layer, and a second CBS sub-module arranged in sequence. The output result of the first CBS sub-module is respectively used as the input of the Split layer, the first input of each Bottleneck sub-module, and the first input of the concat layer. The output of the Split layer is used as the second input of the first Bottleneck sub-module, the output result of the first Bottleneck sub-module is used as the second input of the second Bottleneck sub-module, the output result of the (n-1)th Bottleneck sub-module is used as the second input of the nth Bottleneck sub-module, the output result of the nth Bottleneck sub-module is used as the second input of the concat layer, the output of the concat layer is used as the input of the second CBS sub-module, and the output of the second CBS sub-module is used as the output of each of the C2f modules.

[0017] Optionally, the first Bottleneck submodule to the nth Bottleneck submodule are constructed to have the same structure and each Bottleneck submodule includes a branched first CBS, a branched second CBS and an add layer arranged in sequence, the input of each Bottleneck submodule serves as both the input of the branched first CBS and the first input of the add layer, the output result of the branched second CBS serves as the second input of the add layer, and the output result of the add layer serves as the output result of each Bottleneck submodule.

[0018] Optionally, the first to nth Bottleneck submodules are constructed to have the same structure, and each of the Bottleneck submodules includes a first branch CBS and a second branch CBS arranged in sequence, the input of each Bottleneck submodule serves as the input of the first branch CBS, and the output result of the second branch CBS serves as the output result of each Bottleneck submodule;

[0019] The branched first CBS and the branched second CBS are configured to have the same structure as the CBS modules.

[0020] Optionally, the SPPF module includes a CBS submodule, a first maximum pooling layer, a second maximum pooling layer, a third maximum pooling layer and a seventh concat layer, which are arranged in sequence. The output result of the CBS submodule is simultaneously used as the input of the first maximum pooling layer, the first input of the second maximum pooling layer and the first input of the seventh concat layer. The output result of the first maximum pooling layer is used as the second input of the second maximum pooling layer, the output result of the second maximum pooling layer is used as the input of the third maximum pooling layer, the output result of the third maximum pooling layer is used as the second input of the seventh concat layer, and the output result of the seventh concat layer is used as the output result of the SPPF module.

[0021] The CBS submodule and each of the CBS modules are constructed to have the same structure.

[0022] Optionally, the first MUDC module to the fifth MUDC module are constructed to have the same structure, and each MUDC module includes a maximum pooling layer, a first convolution block, a first expanded convolution layer, an eighth concat layer, a second expanded convolution layer, a ninth concat layer, a third expanded convolution layer and a second convolution block. The output result of the maximum pooling layer is used as the input of the first convolution block, and the output result of the first convolution block is simultaneously used as the input of the first expanded convolution layer and the first input of the eighth concat layer. The output result of the first expanded convolution layer is used as the input of the second expanded convolution layer, and the output result of the second expanded convolution layer is used as the second input of the eighth concat layer. The output result of the eighth concat layer is used as the input of the third expanded convolution layer, and the output result of the third expanded convolution layer is used as the second input of the ninth concat layer. The output result of the ninth concat layer is used as the input of the second convolution block, and the output result of the second convolution block is used as the output result of each MUDC module.

[0023] Optionally, the GREP structure includes a third UpSample module, a fourth UpSample module, a tenth concat layer, a RepBlock layer and a CBS layer, the CBS layer and each of the CBS modules are constructed to have the same structure, the input of the GREP structure, the output result of the third UpSample module and the output result of the fourth UpSample module are simultaneously used as the input of the tenth concat layer, the output result of the concat layer is used as the input of the RepBlock layer, the output result of the RepBlock layer is used as the input of the CBS layer, and the output result of the CBS layer is used as the output result of the GREP structure.

[0024] Optionally, each of the CBS modules includes a convolution layer, a batch normalization layer, and a Silu activation function layer arranged in sequence, and the output result of the Silu activation function layer is used as the output result of each of the CBS modules.

[0025] Optionally, the S2 includes:

[0026] Re-labeling the multi-target data in the single-frame infrared dim target data set, retaining the labeling frame of the single target data, and obtaining a new data set;

[0027] Performing data augmentation processing on the new data set to obtain an augmented data set;

[0028] The augmented data set is divided into a training set and a test set, and the divided data set is output as the preprocessed data set.

[0029] The present invention also provides a system based on the above-mentioned infrared dim small target detection method based on multi-scale feature enhancement, the system comprising:

[0030] A data acquisition module is used to acquire a single-frame infrared dim target data set based on a real scene;

[0031] A preprocessing module, wherein the preprocessing module is used to preprocess the single-frame infrared dim target data set to obtain a preprocessed data set;

[0032] The target detection module is used to detect infrared small targets using the YOLO-MSFE network to obtain infrared small target detection results.

[0033] The present invention has the following beneficial effects:

[0034] To address the small size and feature scarcity of infrared targets, this paper employs dilated convolution in the network feature extraction process to increase the receptive field and retain more features through a U-shaped structure. Furthermore, a neck module is added to fuse features from multiple layers, fully utilizing deep feature information and enhancing the representation of small infrared targets. The YOLO-MSFE network achieves higher performance in detecting small infrared targets while effectively reducing the false detection rate and missed detection rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of the infrared dim small target detection method based on multi-scale feature enhancement of the present invention;

[0036] Figure 2 (a) is a schematic diagram of the initial labeled data; Figure 2 (b) is a schematic diagram of the relabeled data; Figure 2(c) is a schematic diagram of data flipped and randomly scaled; Figure 2 (d) is a schematic diagram of data flipped and contrast enhanced;

[0037] Figure 3 Schematic diagram of the structure of the YOLO-MSFE network;

[0038] Figure 4 It is a structural diagram of the MUDC module;

[0039] Figure 5 Schematic diagram of the feature extraction results of the MUDC module;

[0040] Figure 6 It is a structural diagram of the GREP structure;

[0041] Figure 7 This is a structural diagram of the RepBlock layer. DETAILED DESCRIPTION

[0042] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0043] The present invention provides an infrared dim small target detection method based on multi-scale feature enhancement, referring to Figure 1 As shown, including:

[0044] S1: Acquire a single-frame infrared dim target dataset based on real scenes;

[0045] This paper uses the published NUAA-SIRST dataset, a single-frame infrared small target dataset based on real-world scenarios. This dataset contains 427 infrared images with an average resolution of approximately 300×200 pixels and a total of 480 targets. Due to the long imaging distance, most of the targets in the dataset are blurred and submerged in the complex background.

[0046] S2: Preprocess the single-frame infrared weak target dataset to obtain a preprocessed dataset; since the public NUAA-SIRST dataset has deviations in the annotation of target positions, when there are multiple targets in the image, one annotation box covers all targets, and such annotation is obviously unreasonable. In order to find the specific position of infrared weak targets more accurately, the present invention uses Labelimg to re-label all multi-target data, while retaining the official annotation box for data with only a single target. At the same time, considering the small number of samples in the original dataset, the present invention adopts data augmentation technology to enhance the generalization performance of the model, including up / down / left / right flipping contrast changes and random image scaling to perform 2x augmentation. Some effects of the dataset are as follows. Figure 2Finally, the present invention uses 1024 images as the training set and 257 images as the test set.

[0047] S3: Input the preprocessed data set into the YOLO-MSFE network, use the YOLO-MSFE network to perform infrared dim small target detection, and obtain infrared dim small target detection results;

[0048] refer to Figure 3 As shown, the YOLO-MSFE network of the present invention includes: a backbone subnet, a neck subnet and a head subnet;

[0049] Figure 3 Here, "BackBone" represents a backbone subnet, which includes a first CBS module, a first MUDC module, a first C2f module, a second MUDC module, a second C2f module, a third MUDC module, a third C2f module, a fourth MUDC module, a fourth C2f module, and an SPPF module, which are arranged in sequence.

[0050] The neck subnet includes a GREP structure, a first UpSample module, a second UpSample module, a first concat layer to a sixth concat layer, a fifth C2f module to a tenth C2f module, a fifth MUDC module, a second CBS module and a third CBS module;

[0051] The output results of the second MUDC module, the third MUDC module and the fourth MUDC module are simultaneously used as the input of the GREP structure, the output result of the GREP structure is simultaneously used as the first input of the fifth concat layer and the input of the fifth MUDC module, the output result of the SPPF module is simultaneously used as the input of the first UpSample module, the first UpSample module, the first concat layer, the fifth C2f module, the second UpSample module, the second concat layer and the sixth C2f module are arranged in sequence, and the output of the second C2f module is used as another input of the second concat layer, the output of the third C2f module is used as another input of the first concat layer, and the output result of the sixth C2f module is simultaneously used as the input of the fifth concat layer The second input and the input of the second CBS module, the output result of the second CBS module and the output result of the fifth C2f module are simultaneously used as the input of the third concat layer, the third concat layer, the seventh C2f module, the third CBS module, the fourth concat layer and the eighth C2f module are arranged in sequence; the output result of the seventh C2f module and the output result of the fifth MUDC module are simultaneously used as the input of the sixth concat layer, the output result of the sixth concat layer is used as the input of the tenth C2f module; the output result of the fifth concat layer is used as the input of the ninth C2f module; the neck adopts the FPN+PAN structure, and by introducing lateral connections at multiple levels, the model's processing ability for targets of different scales is enhanced, mainly used to fuse the features extracted by the backbone network and perform more refined feature extraction.

[0052] The head subnetwork includes a first Detect module, a second Detect module, and a third Detect module. The output of the ninth C2f module serves as the input to the first Detect module; the output of the tenth C2f module serves as the input to the second Detect module, and the output of the eighth C2f module serves as the input to the third Detect module. The first through third CBS modules have identical structures. The head is responsible for target prediction based on the multi-scale feature maps of the neck. During decoding, prediction box regression and target classification are separated, eliminating the reliance on anchor boxes found in traditional detection methods. This allows the model to better adapt to and detect targets of varying scales.

[0053] Optionally, the first C2f module to the tenth C2f module are constructed to have the same structure, and each of the C2f modules includes a first CBS sub-module, a Split layer, a first Bottleneck sub-module to an nth Bottleneck sub-module, a concat layer, and a second CBS sub-module arranged in sequence. The output result of the first CBS sub-module is respectively used as the input of the Split layer, the first input of each Bottleneck sub-module, and the first input of the concat layer. The output of the Split layer is used as the second input of the first Bottleneck sub-module, the output result of the first Bottleneck sub-module is used as the second input of the second Bottleneck sub-module, the output result of the (n-1)th Bottleneck sub-module is used as the second input of the nth Bottleneck sub-module, the output result of the nth Bottleneck sub-module is used as the second input of the concat layer, the output of the concat layer is used as the input of the second CBS sub-module, and the output of the second CBS sub-module is used as the output of each of the C2f modules. The design of the C2f module in this invention is inspired by the C3 module in YOLOv5 and the ELAN module in YOLOv7. By combining and redesigning these two structures, a more lightweight network structure is obtained, while also obtaining more gradient flow information.

[0054] Optionally, the first Bottleneck submodule to the nth Bottleneck submodule are constructed to have the same structure and each Bottleneck submodule includes a branched first CBS, a branched second CBS and an add layer arranged in sequence, the input of each Bottleneck submodule serves as both the input of the branched first CBS and the first input of the add layer, the output result of the branched second CBS serves as the second input of the add layer, and the output result of the add layer serves as the output result of each Bottleneck submodule.

[0055] Optionally, the first to nth Bottleneck submodules are constructed to have the same structure, and each of the Bottleneck submodules includes a first branch CBS and a second branch CBS arranged in sequence, the input of each Bottleneck submodule serves as the input of the first branch CBS, and the output result of the second branch CBS serves as the output result of each Bottleneck submodule;

[0056] The branched first CBS and the branched second CBS are configured to have the same structure as the CBS modules.

[0057] Optionally, the SPPF module includes a CBS submodule, a first maximum pooling layer, a second maximum pooling layer, a third maximum pooling layer and a seventh concat layer, which are arranged in sequence. The output result of the CBS submodule is simultaneously used as the input of the first maximum pooling layer, the first input of the second maximum pooling layer and the first input of the seventh concat layer. The output result of the first maximum pooling layer is used as the second input of the second maximum pooling layer, the output result of the second maximum pooling layer is used as the input of the third maximum pooling layer, the output result of the third maximum pooling layer is used as the second input of the seventh concat layer, and the output result of the seventh concat layer is used as the output result of the SPPF module.

[0058] The CBS submodule and each CBS module are constructed to have the same structure. The SPPF module connects different pooling operations to form a spatial pyramid structure, integrating feature information of different scales, which enables the network to perceive different areas of the input image more comprehensively.

[0059] The feature extraction network uses a multi-layer 2D convolutional neural network. The downsampling part uses convolution with a step size of 2 to increase the receptive field, increase the dimension of the feature map, and extract feature information. However, after multiple simple downsampling steps, weak target features may be lost in the shallow layers, and most of the noise in the shallow layers is also transferred to the deeper layers. To better preserve these weak target features and remove noise, the present invention designs the MUDC module (MaxPooling and U-shaped Dilated Convolution). Optionally, the first MUDC module to the fifth MUDC module are constructed to have the same structure, and each of the MUDC modules includes a maximum pooling layer, a first convolution block, a first expanded convolution layer (first DC), an eighth concat layer, a second expanded convolution layer (second DC), a ninth concat layer, a third expanded convolution layer (third DC) and a second convolution block, the output result of the maximum pooling layer is used as the input of the first convolution block, the output result of the first convolution block is used as the input of the first expanded convolution layer and the first input of the eighth concat layer at the same time, the output result of the first expanded convolution layer is used as the input of the second expanded convolution layer, the output result of the second expanded convolution layer is used as the second input of the eighth concat layer, the output result of the eighth concat layer is used as the input of the third expanded convolution layer, the output result of the third expanded convolution layer is used as the second input of the ninth concat layer, the output result of the ninth concat layer is used as the input of the second convolution block, and the output result of the second convolution block is used as the output result of each of the MUDC modules. Figure 4As shown, the MUDC module is a U-shaped architecture. Given an input feature I∈R H×W×C , first reduce the image resolution I through a maximum pooling operation M ∈R H / 2×W / 2×C In order to reduce the number of parameters for subsequent processing, while retaining the key features in the image, roughly improve the receptive field size of the feature map; use 1×1 convolution blocks to deepen the number of output feature channels and obtain feature map I c ∈R H / 2×W / 2×2C , enhance the expressiveness and flexibility of the network; subsequent c Three extended convolutions are then used to enrich the semantic information of the shallow feature map, obtain longer-range information, and better filter out noise near weak infrared targets. At the same time, information exchange is enhanced with conventional convolutions in a jump connection manner.

[0060] When the original input features only pass through one convolution block with a stride of 2 in the backbone network and the rest of the downsampling convolutions are replaced by the MUDC module, more original small target information can be retained in the shallow feature extraction part, effectively eliminating the noise interference near the infrared weak small targets and reducing the false detection rate of the model. The visualization results of sampling and feature extraction using the MUDC module are shown in the figure below. Figure 5 As shown in the figure, the red box marks the location of the infrared weak target.

[0061] In the neck of the network, feature maps at different levels represent the position and semantic information of targets of different scales. Larger feature maps have richer semantic information and position information of smaller targets, while smaller feature maps contain deep information and position information of larger targets. The existing information transmission and fusion methods are prone to losing small target information during the calculation process, and the interaction between layers is not tight. The information of a certain layer is only helpful to its nearby layers, and the global help is weak. In order to reduce the loss of information during the transmission process, the present invention proposes a GREP (Gather and Reconstruction Parameterization) structure. By aggregating and fusing the information extracted by the backbone network, and then enhancing the information and combining it with other positions in the neck, this additional structure avoids the inherent information loss of the original neck structure, and at the same time enhances the feature fusion and information extraction capabilities of the neck without introducing redundancy.

[0062] refer to Figure 6As shown, optionally, the GREP structure includes a third UpSample module, a fourth UpSample module, a tenth concat layer, a RepBlock layer, and a CBS layer. The CBS layer and each of the CBS modules are constructed to have the same structure. The input of the GREP structure, the output result of the third UpSample module, and the output result of the fourth UpSample module are simultaneously used as the input of the tenth concat layer, the output result of the concat layer is used as the input of the RepBlock layer, the output result of the RepBlock layer is used as the input of the CBS layer, and the output result of the CBS layer is used as the output result of the GREP structure. The structure of the RepBlock layer is referenced. Figure 7 As shown, it includes a first CBS sublayer, a second CBS sublayer, a RepConv*N unit and an eleventh concat layer. The input of the RepBlock layer is simultaneously used as the input of the first CBS sublayer and the input of the second CBS sublayer, the output result of the second CBS sublayer is used as the input of the RepBlock layer, the output result of the RepBlock layer and the output result of the first CBS sublayer are simultaneously used as the input of the eleventh concat layer, and the output result of the eleventh concat layer is used as the output result of the RepBlock layer. In addition, the RepConv*N unit includes CBS K=3, CBS K=1 and BN layers arranged in parallel. The output results of the CBS K=3, CBS K=1 and BN layers are simultaneously used as the input of the add layer, the output of the add layer is used as the input of the SiLU activation function layer, and the output result of the SiLU activation function layer is used as the output result of the RepConv*N unit.

[0063] For the input features in the GREP module, the present invention selects the P3, P4, and P5 feature layers in the backbone network for design. The size and dimension of the feature maps of the three are expressed as F Pi ∈(H×W) Pi ×C Pi ,i={3,4,5}, where as the deeper the layer, the size (H×W) Pi Exponentially reduced, dimension C Pi By combining multi-scale features, we can obtain more feature information of small and weak targets distributed in images of different resolutions, and obtain the best combination through subsequent ablation experiments.

[0064] The GREP module includes two parts: shallow feature aggregation and reparameterization. In the shallow feature aggregation part (Feature Gather module, FGM), the present invention maintains the maximum resolution feature map unchanged, and uses the nearest neighbor method to perform upsampling operations on the remaining lower resolution feature maps to achieve size unification. In order to make up for the shortcomings of the FPN structure, such as the easy loss of small target information and the possible confusion caused by the random stacking of semantic information in different layers, the present invention accepts and fuses the feature information of the backbone network through a reparameterized structure (RepBlock).

[0065] The fused multi-level features (denoted as F gather ) The dimension size is equal to the sum of the dimensions of the three shallow feature maps P3, P4, and P5 C = C P3 +C P4 +C P5 . Feature F gather After entering the RepBlock structure, it will first be divided into two branches. One of the branches only performs a simple convolution module (CBS) operation to change the feature dimension and obtain the output dimension C conv =C P3 The other main branch also undergoes dimensionality change before entering N serial reparameterization steps. During network training, conventional 3×3 convolutional blocks, 1×1 convolutional blocks, and batch normalization (BN) layers are combined in parallel. During inference, only 3×3 convolutional blocks are used. This reparameterized structure reduces model complexity while providing a more optimized and stable model representation. The reparameterized structure allows for feature fusion of the high-dimensional feature information obtained from the aggregation process, reducing conflicts between features at different levels and enhancing feature representation. Finally, the results of the two branches are concatenated to avoid vanishing gradients after multiple operations.

[0066] After feature aggregation and fusion (denoted as F enhance ), the present invention designs F enhance Instead of being transmitted through the FPN structure, it is directly connected to the detection head, so that the global information can be supplemented and enhanced. The overall GREP process can be shown by formulas (1), (2), and (3):

[0067] F gather =FGM([P3,P4,P5]) (1)

[0068] F enhance =RepBlock(F gather ) (2)

[0069] F fuse =[fuse(P3,F enhance ),fuse(P4,F enhance)] (3)

[0070] In the final layer fusion, the present invention combines the finer and richer features obtained by the GREP module with the output layer of PANet to select the optimal combination. Finally, given that the C2f module can more effectively handle object scale variations and contextual information, it is fully utilized before passing the network output features to the detection head for final decoding prediction to reduce the computational burden of the detection head and further enhance the model's ability to detect small objects.

[0071] refer to Figure 2 As shown, optionally, all CBS structures of the present invention are the same and include a convolutional layer (Conv2d k, s, p), a batch normalization layer (BatchNorm2d) and a Silu activation function layer arranged in sequence, and the output result of the Silu activation function layer is used as the output result of each CBS module. Each CBS module is used to roughly extract the features of the input image and perform downsampling for use in subsequent modules.

[0072] The present invention also provides a system based on the above-mentioned infrared dim small target detection method based on multi-scale feature enhancement, the system comprising:

[0073] A data acquisition module is used to acquire a single-frame infrared dim target data set based on a real scene;

[0074] A preprocessing module, wherein the preprocessing module is used to preprocess the single-frame infrared dim target data set to obtain a preprocessed data set;

[0075] The target detection module is used to detect infrared small targets using the YOLO-MSFE network to obtain infrared small target detection results.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for infrared dim small target detection based on multi-scale feature enhancement, characterized in that: include: S1: Obtain a single-frame infrared dim target dataset based on real scenes; S2: preprocessing the single-frame infrared dim target data set to obtain a preprocessed data set; S3: inputting the preprocessed data set into the YOLO-MSFE network, using the YOLO-MSFE network to perform infrared dim small target detection, and obtaining infrared dim small target detection results; The YOLO-MSFE network includes: A backbone subnet, a neck subnet and a head subnet, wherein the backbone subnet includes a first CBS module, a first MUDC module, a first C2f module, a second MUDC module, a second C2f module, a third MUDC module, a third C2f module, a fourth MUDC module, a fourth C2f module and an SPPF module which are arranged in sequence; The neck subnet includes a GREP structure, a first UpSample module, a second UpSample module, a first concat layer to a sixth concat layer, a fifth C2f module to a tenth C2f module, a fifth MUDC module, a second CBS module and a third CBS module; The output results of the second MUDC module, the third MUDC module and the fourth MUDC module are simultaneously used as the input of the GREP structure, the output result of the GREP structure is simultaneously used as the first input of the fifth concat layer and the input of the fifth MUDC module, the output result of the SPPF module is simultaneously used as the input of the first UpSample module, the first UpSample module, the first concat layer, the fifth C2f module, the second UpSample module, the second concat layer and the sixth C2f module are arranged in sequence, and the output of the second C2f module is used as another input of the second concat layer, the third C2f module as another input of the first concat layer, the output result of the sixth C2f module is simultaneously used as the second input of the fifth concat layer and the input of the second CBS module, the output result of the second CBS module and the output result of the fifth C2f module are simultaneously used as the input of the third concat layer, the third concat layer, the seventh C2f module, the third CBS module, the fourth concat layer and the eighth C2f module are sequentially arranged; the output result of the seventh C2f module and the output result of the fifth MUDC module are simultaneously used as the input of the sixth concat layer, and the output result of the sixth concat layer is used as the input of the tenth C2f module; The output result of the fifth concat layer is used as the input of the ninth C2f module; The head subnet includes a first Detect module, a second Detect module and a third Detect module; the output result of the ninth C2f module is used as the input of the first Detect module; the output result of the tenth C2f module is used as the input of the second Detect module, and the output result of the eighth C2f module is used as the input of the third Detect module; the first CBS module to the third CBS module are constructed to have the same structure.

2. The infrared small target detection method based on multi-scale feature enhancement according to claim 1 is characterized in that: The first C2f module to the tenth C2f module are constructed to have the same structure, and each of the C2f modules includes a first CBS submodule, a Split layer, a first Bottleneck submodule to an nth Bottleneck submodule, a concat layer and a second CBS submodule, which are arranged in sequence. The output result of the first CBS submodule is respectively used as the input of the Split layer, the first input of each Bottleneck submodule and the first input of the concat layer, the output of the Split layer is used as the second input of the first Bottleneck submodule, the output result of the first Bottleneck submodule is used as the second input of the second Bottleneck submodule, the output result of the (n-1)th Bottleneck submodule is used as the second input of the nth Bottleneck submodule, the output result of the nth Bottleneck submodule is used as the second input of the concat layer, the output of the concat layer is used as the input of the second CBS submodule, and the output of the second CBS submodule is used as the output of each of the C2f modules.

3. The infrared small target detection method based on multi-scale feature enhancement according to claim 2 is characterized in that: The first Bottleneck submodule to the nth Bottleneck submodule are constructed to have the same structure and each of the Bottleneck submodules includes a branched first CBS, a branched second CBS and an add layer arranged in sequence, the input of each of the Bottleneck submodules is simultaneously used as the input of the branched first CBS and the first input of the add layer, the output result of the branched second CBS is used as the second input of the add layer, and the output result of the add layer is used as the output result of each of the Bottleneck submodules.

4. The infrared small target detection method based on multi-scale feature enhancement according to claim 2 is characterized in that: The first Bottleneck submodule to the nth Bottleneck submodule are constructed to have the same structure and each of the Bottleneck submodules includes a branched first CBS and a branched second CBS arranged in sequence, the input of each of the Bottleneck submodules is used as the input of the branched first CBS, and the output result of the branched second CBS is used as the output result of each of the Bottleneck submodules; The branch first CBS and the branch second CBS are configured to have the same structure as the CBS modules.

5. The infrared small target detection method based on multi-scale feature enhancement according to claim 1 is characterized in that: The SPPF module includes a CBS submodule, a first maximum pooling layer, a second maximum pooling layer, a third maximum pooling layer and a seventh concat layer which are arranged in sequence, the output result of the CBS submodule is simultaneously used as the input of the first maximum pooling layer, the first input of the second maximum pooling layer and the first input of the seventh concat layer, the output result of the first maximum pooling layer is used as the second input of the second maximum pooling layer, the output result of the second maximum pooling layer is used as the input of the third maximum pooling layer, the output result of the third maximum pooling layer is used as the second input of the seventh concat layer, and the output result of the seventh concat layer is used as the output result of the SPPF module; The CBS submodule and each of the CBS modules are constructed to have the same structure.

6. The infrared small target detection method based on multi-scale feature enhancement according to claim 1 is characterized in that: The first MUDC module to the fifth MUDC module are constructed to have the same structure, and each of the MUDC modules includes a maximum pooling layer, a first convolution block, a first extended convolution layer, an eighth concat layer, a second extended convolution layer, a ninth concat layer, a third extended convolution layer and a second convolution block. The output result of the maximum pooling layer is used as the input of the first convolution block, and the output result of the first convolution block is used as the input of the first extended convolution layer and the first input of the eighth concat layer at the same time. The output result of the first extended convolution layer is used as the input of the second extended convolution layer, and the output result of the second extended convolution layer is used as the second input of the eighth concat layer. The output result of the eighth concat layer is used as the input of the third extended convolution layer, and the output result of the third extended convolution layer is used as the second input of the ninth concat layer. The output result of the ninth concat layer is used as the input of the second convolution block, and the output result of the second convolution block is used as the output result of each of the MUDC modules.

7. The infrared small target detection method based on multi-scale feature enhancement according to claim 1 is characterized in that: The GREP structure includes a third UpSample module, a fourth UpSample module, a tenth concat layer, a RepBlock layer and a CBS layer. The CBS layer and each of the CBS modules are constructed to have the same structure. The input of the GREP structure, the output result of the third UpSample module and the output result of the fourth UpSample module are simultaneously used as the input of the tenth concat layer, the output result of the concat layer is used as the input of the RepBlock layer, the output result of the RepBlock layer is used as the input of the CBS layer, and the output result of the CBS layer is used as the output result of the GREP structure.

8. The infrared small target detection method based on multi-scale feature enhancement according to any one of claims 1 to 7, characterized in that: Each of the CBS modules includes a convolutional layer, a batch normalization layer and a Silu activation function layer which are arranged in sequence, and the output result of the Silu activation function layer is used as the output result of each of the CBS modules.

9. The infrared small target detection method based on multi-scale feature enhancement according to claim 1 is characterized in that: The S2 includes: Re-labeling the multi-target data in the single-frame infrared dim target data set, retaining the labeling frame of the single target data, and obtaining a new data set; Performing data augmentation processing on the new data set to obtain an augmented data set; The augmented data set is divided into a training set and a test set, and the divided data set is output as the preprocessed data set.

10. A system based on the infrared dim small target detection method based on multi-scale feature enhancement according to any one of claims 1 to 8, characterized in that: The system comprises: A data acquisition module, wherein the data acquisition module is used to acquire a single-frame infrared dim target data set based on a real scene; A preprocessing module, wherein the preprocessing module is used to preprocess the single-frame infrared small target data set to obtain a preprocessed data set; The target detection module is used to perform infrared small target detection using the YOLO-MSFE network to obtain infrared small target detection results.