Infrared small target detection model establishment method and detection method based on multi-scale attention feature superposition
Through the infrared small object detection model with multi-scale attention features superposition, the problem of poor infrared small object detection quality is solved. By extracting and fusing different scale features, the small object characteristics are enhanced, and high-quality detection of infrared small objects is achieved.
Patent Information
- Application Number
- CN202410877321.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-02
AI Technical Summary
The existing infrared small target detection methods cannot effectively deal with the characteristics of small infrared targets with small size, low brightness and low contrast between background, resulting in poor detection quality.
An infrared small object detection model based on multi-scale attention feature superposition is adopted. Through a multi-scale regional candidate network and segmentation encoder, different scale features are extracted and spatial attention fusion is performed to enhance small object features and improve detection accuracy.
The quality of infrared small target detection is improved, the problem of feature information loss is overcome, and the characteristics of infrared small targets is adapted to, and effective detection and improvement of detection results is achieved.
Smart Images

Figure CN118968012A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of infrared small target detection, and more specifically, relates to an infrared small target detection model establishment method and a detection method based on multi-scale attention feature superposition. Background Art
[0002] Infrared imaging plays an important role in search and rescue, detection, early warning, aerospace guidance and other fields due to its characteristics of not being limited by time period and long imaging distance. Since the imaging distance of infrared images is too far, such as several thousand meters, the targets in the image generally have only a few pixels or even only one pixel. Therefore, the targets in infrared images are generally called small infrared targets or weak targets. The detection of weak targets in infrared images has always been a widely used task. In practical applications, the task of detecting small infrared targets faces the following difficulties:
[0003] (1) The size of infrared small targets is very small, often only a few pixels or even only one pixel, which makes many detection methods unsuitable for infrared small target detection.
[0004] (2) The brightness of small infrared targets is relatively low. If the image background (the background in the sky, such as the sun or other heat sources) is brighter, the target may be submerged in it, making it difficult to detect the target.
[0005] (3) The contrast between the target and the background area of the infrared image is low, and there is a lot of noise in the entire image. The weak target to be detected has low brightness and small size, so it is easy to be confused with the noise and difficult to detect.
[0006] In order to cope with the task of infrared small target detection, there are two main processing methods. The first is the traditional method based on the shallow features of the target. This method uses the structural features of small targets in infrared images as a detection method, such as maximum median filtering, feature kernel transformation, top hat morphological filtering, etc. Local contrast enhancement methods can obtain the spatial characteristics of weak targets in infrared images and realize the detection of small targets. However, the traditional detection method based on shallow target features has certain shortcomings, because the traditional method can only rely on the low-dimensional features of the target and cannot obtain the deep features of the target. Therefore, feature confusion is prone to occur. In today's situation where the resolution of infrared images is getting higher and higher and the countermeasures are increasing, it is difficult to adapt to all scenes, and the detection effect is often poor.
[0007] Another infrared small target detection method is a detection method based on deep learning. The deep learning algorithm has the characteristics of self-learning and multi-level feature extraction, so it has been widely used in the field of infrared small targets. In particular, the introduction of algorithms such as ACMNet, DNANet, ALCNet, and ResNet has opened the way for deep learning in the field of infrared small target detection. The detection method based on deep learning usually first uses a typical deep learning network such as ResNet to extract image features, and then uses an image segmentation encoder to complete infrared small target detection based on the extracted image features. The method of using deep learning methods to detect infrared small targets still has certain difficulties, because deep learning methods generally use convolutional layers and pooling layers to process images to extract high-dimensional features of the image, and the weak targets in infrared images have low contrast and small size, resulting in extremely unclear features. The weak target features will be submerged in the background or interference. Therefore, directly using a typical deep learning network to extract features will deteriorate the detection quality.
[0008] In general, the existing infrared small target detection methods cannot adapt to the characteristics of small infrared targets, such as small size, low brightness, and low contrast with the background, and the detection quality needs to be further improved. Summary of the invention
[0009] In view of the defects of the prior art and the need for improvement, the present invention provides a method for establishing an infrared small target detection model based on the superposition of multi-scale attention features and a detection method. The purpose is to improve the detection model structure based on the characteristics of small infrared targets, such as small size, low brightness, and low contrast with the background, so as to improve the detection quality of small infrared targets.
[0010] To achieve the above object, according to one aspect of the present invention, a method for establishing an infrared small target detection model based on multi-scale attention feature superposition is provided, comprising:
[0011] Obtain an infrared image set containing infrared small targets, mark the target frame where each small target is located for each infrared image, and mark the pixels belonging to the small target and the background respectively;
[0012] An initial detection network is established to detect small infrared targets in infrared images, and the annotated infrared image set is used to train the initial detection network. After the training, an infrared small target detection model is obtained.
[0013] Among them, the initial detection network includes a multi-scale region proposal network, a semantic extractor, and a segmentation encoder;
[0014] The multi-scale region candidate network includes a multi-scale attention feature extraction network and a feature mapping convolution layer; the multi-scale attention feature extraction network is used to extract features of different scales of the input image, extract the spatial attention of the features of each scale, and fuse the features of different scales together based on the spatial attention to obtain a fused feature map; the feature mapping convolution layer is used to map the fused feature map into a five-channel feature map, and filter out the target frame containing the infrared small target; in the five-channel feature map, the information at each point includes the center coordinates, length, width and confidence of the corresponding target frame;
[0015] The semantic extractor is used to extract the semantic features of the input image, and extract the semantic features belonging to the screened target box from it to obtain the ROI image block;
[0016] The segmentation encoder is used to encode the ROI image block to identify the probability that each pixel belongs to a small target and obtain the infrared small target detection result.
[0017] Furthermore, the multi-scale attention feature extraction network includes: a plurality of enhanced attention extraction modules connected in sequence, each enhanced attention extraction module is further connected to a downsampling layer;
[0018] The enhanced attention extraction module includes: a splitting layer, four branches, a connection layer and a residual structure; the splitting layer is used to split the feature map into four sub-feature maps with equal number of channels, which are input into four branches respectively; the four branches are used to extract features from the four sub-feature maps respectively; the connection layer is used to stack the features extracted from the four branches by channel to obtain multi-scale attention features; the residual structure is used to fuse the multi-scale attention features with the image to obtain a fused feature map;
[0019] Among them, among the four branches, the first branch includes: feature extraction unit C1, 1×1 convolution layer and addition unit A1 in sequence; the second branch includes: feature extraction unit C2, 3×3 convolution layer, multiplication unit M1, feature enhancement unit E1 and addition unit A2 in sequence; the third branch includes: feature extraction unit C3, 5×5 convolution layer, feature extraction unit C4, multiplication unit M3, feature enhancement unit E2 and addition unit A3 in sequence; the fourth branch includes: feature extraction unit C5, 7×7 convolution layer, feature extraction unit C6, feature extraction unit C7, multiplication unit M3, feature enhancement unit E3; the first branch and the second branch also include a spatial attention module SA1, the second branch and the third branch also include a spatial attention module SA2, and the third branch and the fourth branch also include a spatial attention module SA3;
[0020] The 1×1 convolution layer takes the fusion result of the output features of feature extraction units C1 and C2 as input, and obtains feature F1 through convolution operation. The 3×3 convolution layer takes the fusion result of the output features of feature extraction units C2 and C3 as input, and obtains feature F2 through convolution operation. The 5×5 convolution layer takes the fusion result of the output features of feature extraction units C3 and C4 as input, and obtains feature F3 through convolution operation.
[0021] The spatial attention module SA1 takes the output of feature F1 as input; the multiplication unit M1 takes the spatial attention map extracted by the spatial attention module SA1 and feature F2 as input, and obtains feature FA1 after multiplying the two; the feature enhancement unit E1 takes feature FA1 as input, and obtains feature FAE1 after enhancing it; the feature extraction unit C4 takes the result of fusion of features F2 and F3 as input, and obtains feature F after convolution operation. 23 ; The feature extraction unit C6 takes the result of fusion of feature F2 and feature F4 output by 7×7 convolution as input, and obtains feature F after convolution operation. 34 ;
[0022] The addition unit A1 takes the features F1 and FAE1 as input, and adds them together to obtain the features extracted by the first branch; the spatial attention module SA2 takes the features FAE1 as input; the multiplication unit M2 takes the spatial attention map extracted by the spatial attention module SA2 and the feature F 23 The feature enhancement unit E2 takes the feature FA2 as input and obtains the feature FAE2 after convolution operation. The feature extraction unit C7 takes the feature F as input and obtains the feature FAE2 after convolution operation. 23 and F 34 The fused result is the input, and after the convolution operation, the feature F is obtained. 234 ;
[0023] The addition unit A2 takes the features FAE1 and FAE2 as input, and adds them together to obtain the features extracted by the second branch; the spatial attention module SA3 takes the feature FAE2 as input; the multiplication unit M3 takes the spatial attention map extracted by the spatial attention module SA3 and the feature F 234 The feature enhancement unit E3 takes the feature FA3 as input, and enhances it to obtain the feature FAE3, which is also used as the feature extracted by the fourth branch.
[0024] Addition unit A3 takes features FAE2 and FAE3 as input and adds them together to obtain the features extracted by the third branch.
[0025] Furthermore, when the initial detection network is trained using the annotated infrared image set, a two-stage training is adopted;
[0026] The first stage of training includes: training the initial detection network. During the training process, the parameters of the segmentation encoder are frozen, and the parameters of the multi-scale region candidate network are updated using the target box annotation results as supervision information;
[0027] The second stage of training includes: after the first stage of training, unlock the segmentation encoder, train the initial detection network, and use the target box annotation results and pixel annotation results as supervision information to update the parameters of the multi-scale region candidate network and the segmentation encoder.
[0028] Furthermore, in the first stage of training, the training loss includes the target box prediction loss of the multi-scale region proposal network; in the second stage of training, the training loss includes the target box prediction loss of the multi-scale region proposal network and the segmentation loss of the segmentation encoder;
[0029] Among them, the target box prediction loss is used to measure the loss of the filtered target box for the target box annotation result; the segmentation loss is used to measure the loss of the segmentation result relative to the pixel value annotation result.
[0030] Furthermore, the expression of the target box prediction loss is:
[0031]
[0032] Among them, L RPN represents the target box prediction loss; M represents the total number of screened target boxes; represents the confidence of the target box; c represents the true value of the confidence. If the predicted target box is a marked target box containing a small infrared target, its true value of confidence is 1, otherwise it is 0; L CIoU Represents the CIoU between the predicted target box and the reference anchor box.
[0033] Furthermore, the expression of segmentation loss is:
[0034]
[0035] Among them, L c represents the segmentation loss; N represents the total number of pixels; represents the probability prediction result that the i-th pixel belongs to a small infrared target, p i Represents the true value of the labeled category.
[0036] Furthermore, the target frame containing the infrared small target is filtered out, including:
[0037] Eliminate target boxes whose confidence is lower than the preset confidence threshold.
[0038] Furthermore, filtering out the target frame containing the small infrared target also includes at least one of the following operations:
[0039] Eliminate target boxes whose area is larger than the preset size threshold;
[0040] Eliminate target frames whose aspect ratios are not within the preset aspect ratio range.
[0041] According to another aspect of the present invention, there is provided a method for detecting small infrared targets, comprising:
[0042] Input the infrared image to be detected into a pre-established infrared small target detection model;
[0043] Among them, the infrared small target detection model is established by the above-mentioned infrared small target detection model establishment method based on multi-scale attention feature superposition provided by the present invention.
[0044] According to another aspect of the present invention, a computer-readable storage medium is provided, comprising a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for establishing an infrared small target detection model based on multi-scale attention feature superposition provided by the present invention, and / or the above-mentioned infrared small target detection method provided by the present invention.
[0045] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0046] (1) The infrared small target detection model based on multi-scale attention feature superposition established by the present invention, wherein the multi-scale region candidate network specifically extracts features of different scales of the input image when extracting infrared image features, and extracts the spatial attention of the features of each scale, and fuses the features of different scales together based on the spatial attention. Through this feature extraction method, the small target features can be enhanced using the attention map, so that the weak small target features are retained in the image, overcoming the disadvantage of information loss of infrared small targets in feature transmission. This feature extraction method is adapted to the characteristics of small infrared targets, such as small size, low brightness, and low contrast with the background. The extracted features are of high quality, can achieve effective infrared small target detection, and improve the detection quality of infrared small targets.
[0047] (2) In the preferred embodiment of the present invention, the multi-scale attention feature extraction network in the multi-scale region candidate network specifically includes four branches, which respectively extract features from the sub-feature maps obtained by splitting the feature map, and then splice them as the overall features; the feature scales extracted by the four branches are different, which can effectively adapt to the variable infrared target sizes, and the attention of the smaller-scale features will be gradually transferred to the larger-scale features, thereby realizing the feature enhancement of weak targets and enabling the features of weak targets to be retained in the image, effectively improving the quality of the extracted features, and thus improving the quality of the infrared small target detection results.
[0048] (3) In the preferred embodiment of the present invention, a two-stage training method is specifically adopted when training the model. In the first stage of training, only the parameters of the multi-scale region candidate network are updated. In the second stage of training, the parameters of the multi-scale region candidate network and the segmentation encoder are updated at the same time. Since the segmentation result of the segmentation encoder depends on the prediction result of the multi-scale region candidate network for the target box, the present invention is based on this two-stage training method. When the multi-scale region candidate network has a certain prediction ability through the first stage of training, the parameters of the segmentation encoder are updated, thereby ensuring the effectiveness of the parameter update and improving the training efficiency.
[0049] (4) The size of small infrared targets is usually small and they all have relatively regular shapes. In the preferred embodiment of the present invention, on the basis of screening the target frame based on the confidence level, the target frame with a large area or abnormal aspect ratio will be eliminated, thereby improving the accuracy of the target frame prediction and further improving the accuracy of the subsequent segmentation prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a method for establishing an infrared small target detection model based on multi-scale attention feature superposition and a detection method provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of the structure of an infrared small target detection model based on multi-scale attention feature superposition provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of a multi-scale attention feature extraction network provided for an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of infrared small target detection results provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0055] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0056] In order to solve the technical problem of poor detection quality of existing infrared small target detection methods, the present invention provides an infrared small target detection model establishment method and a detection method based on multi-scale attention feature superposition. The overall idea is to improve the feature extraction part in the detection model based on the characteristics of small infrared targets, such as small size, low brightness, and low contrast with the background, so that it can process infrared weak targets of different sizes, and use the attention map to enhance the small target features so that the weak target features can be retained in the image, thereby achieving effective small target detection, overcoming the disadvantage of information loss of weak targets in feature transmission, and ultimately improving the detection quality of infrared small targets.
[0057] The following are examples.
[0058] Embodiment 1:
[0059] A method for establishing an infrared small target detection model based on multi-scale attention feature superposition, such as Figure 1 As shown, this embodiment includes three main steps, namely, a data set construction step, a network construction step, and a training step, wherein the data set construction step is used to annotate infrared images containing infrared small targets to construct a data set that can be used to train infrared small target models; the network construction step is used to build a network model that can accurately detect infrared small targets; and the training step uses the data set constructed in the data set construction step to train the network model constructed in the network construction step, so that the established network model has the ability to perform actual infrared small target detection tasks. The following is a specific explanation of each target.
[0060] In this embodiment, the data set construction step specifically includes: obtaining an infrared image set containing infrared small targets, marking the target frame where each small target is located for each infrared image, and marking pixels belonging to the small target and the background respectively.
[0061] It is easy to understand that the typical size distribution of infrared small targets is 1-10 pixels. In this embodiment, the size of the small target is also 1-10 pixels. The type of infrared small target is mainly UAV targets. If the target is too large, a general method can be used for detection instead of a specific algorithm for processing.
[0062] In the network model established in this embodiment, the image needs to be downsampled four times when it is forwarded in the network. Therefore, in the infrared image set acquired in this embodiment, the images are cropped to a number of pixels whose length and width are multiples of 16. At the same time, considering that most infrared weak target images are far away, small in size, and have few pixels, the number of pixels in the image application scenario in the infrared image set acquired in this embodiment is limited to between 128 and 384.
[0063] In addition, in order to give the deep learning algorithm sufficient feature fitting, this embodiment uses at least 200 typical infrared small target images in different scenes for annotation, training, and recognition to ensure the robustness of the algorithm in different scenes.
[0064] For each image in the infrared image set, the annotation method adopted in this embodiment is a two-stage supervised annotation, including reference position annotation and target segmentation annotation, wherein the reference position annotation is to annotate the target box where each small target is located, and the target segmentation annotation is to annotate the pixels belonging to the small target and the background respectively;
[0065] In this embodiment, the reference position annotation covers the position of each small infrared target, and the minimum circumscribed rectangle of the small infrared target is annotated using the coordinates based on the target Box. In practical applications, the data is recorded in the CSV format commonly used by multiple operating systems. The Box format is:
[0066] I m =[B1,B2,...,B n ]
[0067] In the formula, I m represents the mth infrared image, B i Represents the Box coordinate frame of the i-th infrared small target contained in the image, where the position of each coordinate frame is defined as follows:
[0068] Box=[x l ,y l ,x r ,y r ]
[0069] In the formula, x l ,y l Respectively represent the upper left corner coordinates of the infrared small target, x r ,y r Indicates the coordinates of the lower right corner of the target.
[0070] The target segmentation annotation is a pixel-level annotation, which is used to supervise whether the final small target segmentation detection image is correct at the second-level output of the network. In order to effectively distinguish each position and reduce the amount of data, the annotation method uses the image format. During the image annotation, an 8-bit single-channel grayscale image with the same size as the infrared image is generated to record the accurate pixel position of the target. In this annotated image, the pixel value 255 is used to represent the true value position of the target, and the pixel value 0 is used to represent the background area position, that is, in this image:
[0071]
[0072] In the formula, I represents the entire annotated image, p irepresents the pixel value of the i-th pixel in the image, o i Indicates whether the pixel position belongs to the target or the background. If its value is 1, it means it belongs to the target. If the value is 0, it means it is the background.
[0073] Based on the above-mentioned annotation method, the pixel value can simultaneously represent the pixel category. Specifically, a pixel value of 255 indicates that the pixel is a target pixel, and a pixel value of 0 indicates that the pixel is a background pixel.
[0074] The above segmentation annotation data is used as the second-stage output supervision data of the network, which is also the final output data of the entire network, that is, the detection result of small infrared targets is represented by a binary segmentation map.
[0075] In order to adapt to the characteristics of small infrared targets, such as small size, long distance, low brightness, and low contrast with the background, in the network building step of this embodiment, the network model built, i.e., the initial detection network, has a structure as follows: Figure 2 As shown, it includes a multi-scale region proposal network, a semantic extractor, and a segmentation encoder;
[0076] The multi-scale region candidate network includes a multi-scale attention feature extraction network and a feature mapping convolution layer; the multi-scale attention feature extraction network is used to extract features of different scales of the input image, extract the spatial attention of the features of each scale, and fuse the features of different scales together based on the spatial attention to obtain a fused feature map; the feature mapping convolution layer is used to map the fused feature map into a five-channel feature map, and filter out the target frame containing the infrared small target; in the five-channel feature map, the information at each point includes the center coordinates, length, width and confidence of the corresponding target frame;
[0077] The semantic extractor is used to extract the semantic features of the input image, and extract the semantic features belonging to the screened target box from it to obtain the ROI image block;
[0078] The segmentation encoder is used to encode the ROI image block to identify the probability that each pixel belongs to a small target and obtain the infrared small target detection result.
[0079] In the above model constructed in this embodiment, when extracting infrared image features, the multi-scale region candidate network specifically extracts features of different scales of the input image, and extracts the spatial attention of the features of each scale, and fuses the features of different scales together based on the spatial attention. Through this feature extraction method, the attention map can be used to enhance the features of small targets, so that the weak small target features are retained in the image, overcoming the disadvantage of information loss of small infrared targets in feature transmission. This feature extraction method is adapted to the characteristics of small infrared targets with small size, low brightness, and low contrast with the background. The extracted features are of high quality, can achieve effective detection of small infrared targets, and improve the detection quality of small infrared targets.
[0080] Specifically, in this embodiment, the multi-scale attention feature extraction network includes: four enhanced attention extraction modules connected in sequence, namely Figure 2 In the EAModule, each enhanced attention extraction module is also connected to a downsampling layer. Optionally, in this embodiment, the downsampling layer is specifically connected through a pooling layer (i.e. Figure 2 Pool) implementation after EAModule in .
[0081] The structure of the enhanced attention extraction module is as follows Figure 3 As shown, it specifically includes: a split layer, four branches, a connection layer and a residual structure;
[0082] The split layer is used to split the feature map into four sub-feature maps with equal number of channels, which are input into four branches respectively; I represents the channel input of the input image X of the enhanced attention extraction module, then the channel input of each sub-feature map is C I / 4; for the first EAModule, its input image X is the input image of the entire multi-scale attention feature extraction network; for the remaining EAModules, its input image X is the feature map of the downsampled features output by the previous EAModule;
[0083] The four branches are used to extract features from the four sub-feature maps respectively;
[0084] The connection layer is used to stack the features extracted from the four branches by channel to obtain multi-scale attention features;
[0085] The residual structure is used to fuse multi-scale attention features and images to obtain a fused feature map.
[0086] like Figure 3 As shown, among the four branches of EAModule, the first branch includes: feature extraction unit C1, 1×1 convolution layer and addition unit A1 in sequence; the second branch includes: feature extraction unit C2, 3×3 convolution layer, multiplication unit M1, feature enhancement unit E1 and addition unit A2 in sequence; the third branch includes: feature extraction unit C3, 5×5 convolution layer, feature extraction unit C4, multiplication unit M3, feature enhancement unit E2 and addition unit A3 in sequence; the fourth branch includes: feature extraction unit C5, 7×7 convolution layer, feature extraction unit C6, feature extraction unit C7, multiplication unit M3, feature enhancement unit E3; the first branch and the second branch also include a spatial attention module SA1, the second branch and the third branch also include a spatial attention module SA2, and the third branch and the fourth branch also include a spatial attention module SA3;
[0087] The 1×1 convolution layer takes the fusion result of the output features of the feature extraction units C1 and C2 as input, and obtains the feature F1 through the convolution operation. The 3×3 convolution layer takes the fusion result of the output features of the feature extraction units C2 and C3 as input, and obtains the feature F2 through the convolution operation. The 5×5 convolution layer takes the fusion result of the output features of the feature extraction units C3 and C4 as input, and obtains the feature F3 through the convolution operation. In this embodiment, after performing preliminary image feature extraction on each sub-feature map, convolution kernels with convolution kernel sizes of 1, 3, 5, and 7 are used to extract features again. By performing feature extraction through such four convolutions, it can be ensured that infrared small targets of all scales are covered. At the same time, before feature extraction, the features in the next channel will be fused into the features of the current channel, thereby effectively expanding the receptive field when extracting features of different scales.
[0088] The spatial attention module SA1 takes the output of feature F1 as input; the multiplication unit M1 takes the spatial attention map extracted by the spatial attention module SA1 and feature F2 as input, and obtains feature FA1 after multiplying the two; the feature enhancement unit E1 takes feature FA1 as input, and obtains feature FAE1 after enhancing it; the feature extraction unit C4 takes the result of fusion of features F2 and F3 as input, and obtains feature F after convolution operation. 23 ; The feature extraction unit C6 takes the result of fusion of feature F2 and feature F4 output by 7×7 convolution as input, and obtains feature F after convolution operation. 34 ;
[0089] The addition unit A1 takes the features F1 and FAE1 as input, and adds them together to obtain the features extracted by the first branch; the spatial attention module SA2 takes the features FAE1 as input; the multiplication unit M2 takes the spatial attention map extracted by the spatial attention module SA2 and the feature F 23 The feature enhancement unit E2 takes the feature FA2 as input and obtains the feature FAE2 after convolution operation. The feature extraction unit C7 takes the feature F as input and obtains the feature FAE2 after convolution operation. 23 and F 34 The fused result is the input, and after the convolution operation, the feature F is obtained. 234 ;
[0090] The addition unit A2 takes the features FAE1 and FAE2 as input, and adds them together to obtain the features extracted by the second branch; the spatial attention module SA3 takes the feature FAE2 as input; the multiplication unit M3 takes the spatial attention map extracted by the spatial attention module SA3 and the feature F 234 The feature enhancement unit E3 takes the feature FA3 as input, and enhances it to obtain the feature FAE3, which is also used as the feature extracted by the fourth branch.
[0091] Addition unit A3 takes features FAE2 and FAE3 as input and adds them together to obtain the features extracted by the third branch.
[0092] Based on the above structure, each branch will transfer feature information while extracting features of different scales. The attention map of the smaller-scale features will be transferred downward step by step, that is, the attention map of the features extracted by the first branch will be gradually transferred to the second, third, and fourth branches, the attention map of the features extracted by the second branch will be gradually transferred to the third and fourth branches, and the attention map of the features extracted by the third branch will be transferred to the fourth branch; through such a feature information transmission method, the feature enhancement of weak targets is achieved, and the features of weak targets can be retained in the image, which effectively improves the quality of the extracted features. After extracting features of different scales, before extracting features again, the features of the previous branch will be fused into the features of the current branch, so that the extracted features can be smoother. Each time the attention map is multiplied by the feature, the feature enhancement will be performed, and the enhanced features will be transferred back to the previous branch. Through such a feature transmission method, the target features can be effectively enhanced, and the contrast between the target features and the background features can be effectively increased.
[0093] Optionally, in this embodiment, the feature extraction units are all 3×3 convolutional layers, and the feature enhancement modules are all 3×3 convolutional layers; when the residual structure fuses the multi-scale attention features and the image, it will specifically use 3×3 convolutional layers and 1×1 convolutional layers to perform convolution operations on the multi-scale attention features and the original input image respectively to achieve smoothing, and then add the two together to finally obtain the fused feature map Y.
[0094] X represents the tensor image of the input EAModule, which can be expressed as follows:
[0095]
[0096] Where H and W represent the height and width of the tensor image X respectively.
[0097] When the tensor image X is input, EAModule processes the tensor image X as follows:
[0098] First, split it into four sub-feature maps, and process different features in different levels. The number of feature channels of the four sub-feature maps is C I / 4. After extracting the basic image semantics using the feature extraction convolution layer, the number of channels of each sub-feature map is C O / 4, and then use convolution kernels with sizes of 1, 3, 5, and 7 for feature extraction to adapt to different target sizes.
[0099] Use channel fusion connection to connect the different features of each two layers in parallel to achieve multi-scale feature fusion. The results are as follows:
[0100] X imso =[X i ,X i+1 ]
[0101] In the above formula, X imso represents the multi-scale hierarchical fusion result, X i Represents the features extracted by the convolution operation of the i-th scale. Then, the small-scale spatial attention results of the previous layer are used to enhance the large-scale features of the next layer, thereby highlighting the target information. The calculation method is as follows:
[0102]
[0103] Where, X i With X i+1 represents the features before processing, X′ i+1 represents the processed features, softmax is the activation function, and SA represents the spatial attention operation.
[0104] After the attention fusion calculation, a layer of enhanced convolution is superimposed to achieve a thorough fusion of features at different scales. After a layer of attention features is fused, an addition operation is used to make it complementary to the features of the previous layer. The calculation method is as follows:
[0105]
[0106] In the formula, X′ i represents the feature after superposition and complementation, X i represents the feature layer before processing, Indicates features that have been reinforced by upper-level attention.
[0107] After the feature processing of the four levels is completed, the feature maps of the four discrete sub-channels are fused again using the Concat connection. The operation is as follows:
[0108] X'=Concat(X1,X2,X3,X4)∈R C×H×W
[0109] In the formula, X' represents the fused features, X i ∈R C / 4×H×W To fuse the features of each level before, the number of feature channels after fusion becomes C again O .
[0110] In order to achieve feature extraction with a wider dimension, in this embodiment, the output dimensions of the 4-layer enhanced attention extraction modules in the multi-scale attention feature extraction network are set to 64, 64, 128, and 256 respectively. As the network depth increases, the number of channels is gradually increased to obtain more high-dimensional semantics. It should be noted that the setting of the number of enhanced attention extraction modules and the output dimension setting of each enhanced attention extraction module here are only a preferred implementation method and should not be understood as the only limitation of the present invention. In some other embodiments of the present invention, it can also be set to other numbers according to the actual detection task characteristics. Accordingly, the number of downsampling modules can be adjusted accordingly, and the output dimension of each enhanced attention extraction module can also be flexibly adjusted as needed.
[0111] Based on the above structure, the multi-scale attention feature extraction network can extract high-quality 256-channel feature maps. In the five-channel feature maps obtained by mapping the feature mapping convolution layer, each point corresponds to a target box prediction result, which can be expressed as follows:
[0112]
[0113] Among them, They respectively represent the x and y coordinates of the center position of the predicted target box, the length and width of the target box, and the predicted confidence value; the confidence reflects the possibility that the target box prediction is accurate.
[0114] Based on the above five-channel feature map, this embodiment will remove the target frame with lower confidence and only retain the target frame with higher confidence. Specifically, the confidence threshold is set to 0.5, and the target frame with confidence lower than 0.5 is removed.
[0115] Further considering that the infrared small target is small in size, and the drone targets are all relatively regular in shape, appearing as point targets or point-shaped area targets in the infrared image, in order to accurately screen out the target frame containing the infrared small target, this embodiment further sets a size threshold and aspect ratio range. Optionally, the size threshold is 15, and the aspect ratio range is [0.5, 2]. Based on this, the target frame with a length and width greater than 15 pixels will be further eliminated, and the target frame with an aspect ratio less than 0.5 or greater than 2 will be eliminated to ensure the rationality and accuracy of the selected target frame. Since all target frames are floating point numbers after network extraction, when calculating the length and width of the target frame, rounding is performed according to the principle of coordinate value + 0.5.
[0116] Optionally, in this embodiment, the segmentation encoder is constructed using a Transformer encoder structure, and the input it receives is an image block, which is obtained by obtaining a mask on the semantic image from the ROI extracted by the multi-scale region candidate network. In order to supplement the semantic dimension of the image block, a semantic generator is used to obtain high-dimensional semantics, which is a fully convolutional structure with 7 convolutional layers and no downsampling units. The image size is guaranteed to remain unchanged during the transformation process, and the output feature dimension is 512. When the mask corresponding to the ROI is applied to the high-dimensional semantic feature map, the image block of the suspected target area is obtained, so the dimension of all image blocks is 512, the same size as the ROI.
[0117] After obtaining the target image block, it is serialized and sent to the codec structure. The segmentation encoder structure consists of 4 layers. For an input sequence containing n image blocks, it is represented as follows:
[0118] S={w1,w2,...,w n},w i ∈R d×h×w
[0119] In the formula, w i represents the i-th image patch, and d represents the dimension of the input image patch, which is the same as the dimension of the semantic extractor, and the value is 512.
[0120] The input and output structures of the 4-layer structure are consistent. The input sequence S is projected onto the Q, K, and V matrices, and the matrix dimensions are all d. s ×n,d s Represents the maximum length-width product of the input image block, and its value is 128. For each layer of the encoder, the attention calculation method used is as follows:
[0121]
[0122] in is a size coefficient used to prevent the weight of the dot product attention from returning to zero. In order to allow the attention structure to regress different semantic features, this embodiment specifically uses a 4-head attention structure and uses a feedforward network to map the attention output, which is expressed as follows:
[0123] M(Q,K,V)=Concat(h1,…,h m )W O
[0124] h i =A(Q i ,K i ,V i )
[0125] X'=FFN(M)+M
[0126] In the formula, M(Q,K,V) represents the fusion output of multiple heads, h i represents the output of the i-th head, W O is the weighted matrix, dimension is md s ×d, while FFN represents the feed-forward network, and X′ represents the sequence of image patches after the attention mapping, which represents the target probability at each mask position.
[0127] In the training step of this embodiment, when the initial detection network is trained using the infrared image set annotated in two stages, a two-stage training method is specifically adopted, and the infrared image set is randomly divided into a training set and a validation set in a ratio of 4:1. The image batch size of the model training is 8, and the total number of training rounds is 30 rounds;
[0128] In the two-stage training, the first stage training includes: training the initial detection network. During the training process, the parameters of the segmentation encoder are frozen, and the parameters of the multi-scale region candidate network are updated with the target box annotation results as supervision information; the first stage training is trained on the entire training set for 5 rounds; after the first stage training, the multi-scale region candidate network has a certain target box prediction ability;
[0129] The second stage of training includes: after the first stage of training, unlock the segmentation encoder, train the initial detection network, and use the target box annotation results and pixel annotation results as supervision information to update the parameters of the multi-scale region candidate network and the segmentation encoder; the learning rate hyperparameter used in the training process gradually decreases from 0.005 to 0.001 as the loss continues to decrease. The multi-scale RPN and image block segmentation encoder are trained together for 25 rounds until the losses of the multi-scale RPN and image block segmentation encoder all converge to within 0.5% of the maximum loss.
[0130] Since the segmentation result of the segmentation encoder depends on the prediction result of the multi-scale region candidate network for the target box, this embodiment is based on this two-stage training method. The parameters of the segmentation encoder are updated only when the multi-scale region candidate network has a certain prediction ability through the first stage training, thereby ensuring the effectiveness of the parameter update and improving the training efficiency.
[0131] In this embodiment, in the first stage of training, the training loss includes the target box prediction loss of the multi-scale region candidate network; in the second stage of training, the training loss includes the target box prediction loss of the multi-scale region candidate network and the segmentation loss of the segmentation encoder;
[0132] Among them, the target box prediction loss is used to measure the loss of the selected target box for the target box annotation result; the segmentation loss is used to measure the loss of the segmentation result relative to the pixel value annotation result; the expression of the target box prediction loss is:
[0133]
[0134] Among them, L RPN represents the target box prediction loss; M represents the total number of screened target boxes; represents the confidence of the target box; c represents the true value of the confidence. If the predicted target box is a marked target box containing a small infrared target, its true value of confidence is 1, otherwise it is 0; L CIoU Indicates the CIoU (Complete Intersection on Union) between the predicted target box and the annotated target box; because the size of the feature map is smaller than the original image, the coordinate information of each point needs to be mapped to the information of the original image in proportion. The downsampling level used by the multi-scale region candidate network is 16 times. Considering that the size of the target generally does not exceed 10 pixels, the size of the benchmark anchor box is set to 10 pixels in this embodiment. The CIoU calculation method of the coordinate box prediction value output by each anchor box is as follows:
[0135] L CIoU =1-IoU+R DIoU +αυ
[0136] In the formula, R DIoU represents DIoU loss, α represents the loss weight parameter, υ represents the similarity of the aspect ratio between the predicted target box and the labeled target box, and IoU represents the similarity between the predicted target box and the labeled target box.
[0137] In order to facilitate the calculation of the segmentation loss of the segmentation encoder, this embodiment connects a classification head after the segmentation encoder when training the model, and maps the image block predicted and output by the segmentation encoder into a vector, which is expressed as follows:
[0138]
[0139] Where N represents the total number of pixels in the image. Represents the probability prediction value of a single pixel belonging to a small infrared target; similarly, the segmentation annotation image in the two-stage annotation is also stretched into a corresponding vector to calculate the cross entropy classification loss as the segmentation loss; the expression of the segmentation loss is:
[0140]
[0141] Among them, L c represents the segmentation loss; N represents the total number of pixels; represents the probability prediction result that the i-th pixel belongs to a small infrared target; p i Indicates the annotated category true value. According to the annotation result of the pixel value, if the pixel value of the pixel is annotated as 255, it means that the pixel belongs to the small infrared target, and the corresponding category true value is 1. If the pixel value of the pixel is annotated as 0, it means that the pixel belongs to the background, and the corresponding category true value is 0.
[0142] Based on the calculated target box prediction loss and segmentation loss, in the second stage of training, the overall loss L all for:
[0143] L all =L c +L RPN
[0144] After the initial detection network has been trained in two stages, the classification head is removed and it can be used to detect small infrared targets. In general, this embodiment can effectively adapt to the variable infrared target sizes by designing a multi-scale and multi-level feature extraction network, which is suitable for small targets and very weak targets, and uses a multi-level attention structure to achieve feature enhancement of weak targets, thereby ensuring the stability of feature transfer of the detected target and achieving better detection and positioning effects; adopting two-stage supervision, basic position supervision of small infrared targets and pixel semantic supervision of the final segmentation of the target, can ensure the effectiveness of feature extraction within the network; using pixel-level semantic segmentation maps as infrared small target detection results instead of simple coordinate frames as output, the position of each pixel of the small infrared target can be accurately located, greatly improving the detection accuracy.
[0145] Embodiment 2:
[0146] An infrared small target detection method, such as Figure 1 As shown, including:
[0147] Input the infrared image to be detected into a pre-established infrared small target detection model;
[0148] Among them, the infrared small target detection model is established by the infrared small target detection model establishment method based on multi-scale attention feature superposition in the above-mentioned embodiment 1.
[0149] Based on the infrared small target detection model established in Example 1 of the present invention, after the infrared image to be detected is input into the model, two-stage reasoning will be performed. In the first stage, the multi-scale region candidate network will give a feature map with a size of 1 / 16 of the infrared image to be detected, which is expressed as:
[0150] F∈I C×H×W
[0151] In the formula, C represents the number of channels output by the RPN structure, and H and W represent the height and width of the output feature map respectively. The number of channels is set to 5, and each point represents the coordinates and confidence information of a target box:
[0152] Box=[x,y,w,h,conf]
[0153] Where x, y, w, h, and conf represent the center coordinates x and y of the target, the length and width of the target box, and the confidence of the target detection. Since it is a single-category target detection classification, the one-hot vector of the category division is not considered.
[0154] All target frames with a confidence value less than 0.5 are filtered out according to the confidence threshold of 0.5. At the same time, target frames with both length and width greater than 15 pixels and aspect ratio less than 0.5 or greater than 2 are removed to select reasonable target frames. When calculating the length and width of the target frame, the coordinate value is rounded according to the principle of +0.5.
[0155] According to the target box detection result, the ROI image block at the corresponding position in the semantic image is extracted, and an 8-bit single-channel mask image with the same size as the input image is generated. The image block position is filled with 255, and the rest of the area is filled with 0, which is extracted at the same time as the image block area for attention encoding.
[0156] After the mask image and ROI image block are extracted, they are sent to the second stage image segmentation encoder for probability prediction, which outputs the probability that each pixel position in the image block containing the target is a small infrared target. The probability value of the position is ANDed with the mask image to obtain the segmentation results of all small targets in the image.
[0157] The target prediction probability value is a floating point number with a value range of [-1,1]. The target detection result is mapped to an integer 8-bit single channel according to the threshold setting of 0.5. Specifically, if the prediction probability value is greater than or equal to 0.5, the pixel value is set to 255 to identify it as a pixel in the infrared small target; if the prediction probability value is less than 0.5, the pixel value is set to 0 to identify it as a pixel in the background. After the identification is completed, the segmentation result represented by the 8-channel image can be obtained.
[0158] Figure 4 The figure shows the detection results of small target detection on different infrared images using the infrared small target detection method provided by this embodiment. For easy viewing, the infrared small targets in the prediction results and the annotated true values are marked with dotted boxes. Figure 4 It can be seen from the results that the infrared small target detection method provided in this embodiment can detect small and weak targets in infrared images more accurately.
[0159] The following uses the existing detection methods as a comparison, and combines the detection results of different detection methods on public data sets to further analyze and verify the beneficial effects that can be achieved by the present invention. Specifically, four public infrared small target detection data sets, IDSADT, SIRST, NUDT-SIRST, and CGAN, are used. The four data sets all contain rich infrared scenes, such as cities, skies, and mountains. Each data set contains at least 300 infrared images, which all reflect the smallness of targets in infrared scenes, including low signal-to-noise ratio, low contrast, and very few target pixels. The target characteristics of each data set are shown in Table 1.
[0160] Table 1 Dataset target feature description table
[0161]
[0162] In Table 1, SNR represents signal-to-noise ratio, and Cr represents contrast.
[0163] The existing detection methods selected include LCM, MPCM, ALCNet, ACMNet, and IAANet.
[0164] IoU and nIoU (Normalized IoU) are used as the evaluation indicators of small target detection balance, which represent the intersection and union ratio of the detection results on a single image and the entire dataset, respectively. The calculation method is as follows:
[0165]
[0166] Where N represents the number of images in the test dataset, TP i represents the number of pixels in the i-th image where both the detected value and the true value are true, T i , P i They represent the number of true value pixels and the number of pixels of predicted positive examples respectively.
[0167] The IoU and nIoU of the detection results of different methods on each dataset are shown in Table 2.
[0168] Table 2 Detection indicators of different detection methods on each data set
[0169]
[0170] According to the data shown in Table 2, the infrared small target detection method provided in this embodiment is superior to other existing methods in terms of IoU and nIoU indicators on various data sets.
[0171] Embodiment 3:
[0172] A computer-readable storage medium includes a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the infrared small target detection model establishment method based on multi-scale attention feature superposition provided in the above-mentioned embodiment 1, and / or the infrared small target detection method provided in the above-mentioned embodiment 2.
[0173] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for establishing an infrared small target detection model based on multi-scale attention feature superposition, characterized in that: include: Obtain an infrared image set containing infrared small targets, mark the target frame where each small target is located for each infrared image, and mark the pixels belonging to the small target and the background respectively; Establishing an initial detection network for detecting infrared small targets in infrared images, and training the initial detection network using the labeled infrared image set, and obtaining an infrared small target detection model after the training; The initial detection network includes a multi-scale region candidate network, a semantic extractor and a segmentation encoder; The multi-scale region candidate network includes a multi-scale attention feature extraction network and a feature mapping convolution layer; the multi-scale attention feature extraction network is used to extract features of different scales of the input image, extract the spatial attention of the features of each scale, and fuse the features of different scales together based on the spatial attention to obtain a fused feature map; the feature mapping convolution layer is used to map the fused feature map into a five-channel feature map, and filter out a target frame containing a small infrared target; in the five-channel feature map, the information at each point includes the center coordinates, length, width and confidence of the corresponding target frame; The semantic extractor is used to extract the semantic features of the input image, and extract the semantic features belonging to the screened target frame therefrom to obtain the ROI image block; The segmentation encoder is used to encode the ROI image block to identify the probability that each pixel therein belongs to a small target, and obtain an infrared small target detection result.
2. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as claimed in claim 1, characterized in that: The multi-scale attention feature extraction network comprises: a plurality of enhanced attention extraction modules connected in sequence, each enhanced attention extraction module being further connected to a downsampling layer; The enhanced attention extraction module includes: a splitting layer, four branches, a connection layer and a residual structure; the splitting layer is used to split the feature map into four sub-feature maps with equal number of channels, which are input into four branches respectively; the four branches are used to extract features from the four sub-feature maps respectively; the connection layer is used to stack the features extracted by the four branches according to the channels to obtain multi-scale attention features; the residual structure is used to fuse the multi-scale attention features with the image to obtain a fused feature map; Among the four branches, the first branch includes: feature extraction unit C1, 1×1 convolution layer and addition unit A1 in sequence; the second branch includes: feature extraction unit C2, 3×3 convolution layer, multiplication unit M1, feature enhancement unit E1 and addition unit A2 in sequence; the third branch includes: feature extraction unit C3, 5×5 convolution layer, feature extraction unit C4, multiplication unit M3, feature enhancement unit E2 and addition unit A3 in sequence; the fourth branch includes: feature extraction unit C5, 7×7 convolution layer, feature extraction unit C6, feature extraction unit C7, multiplication unit M3, feature enhancement unit E3; the first branch and the second branch also include a spatial attention module SA1, the second branch and the third branch also include a spatial attention module SA2, and the third branch and the fourth branch also include a spatial attention module SA3; The 1×1 convolution layer takes the fusion result of the output features of feature extraction units C1 and C2 as input, and obtains feature F1 through convolution operation. The 3×3 convolution layer takes the fusion result of the output features of feature extraction units C2 and C3 as input, and obtains feature F2 through convolution operation. The 5×5 convolution layer takes the fusion result of the output features of feature extraction units C3 and C4 as input, and obtains feature F3 through convolution operation. The spatial attention module SA1 takes the output of feature F1 as input; the multiplication unit M1 takes the spatial attention map extracted by the spatial attention module SA1 and feature F2 as input, and obtains feature FA1 after multiplying the two; the feature enhancement unit E1 takes feature FA1 as input, and obtains feature FAE1 after enhancing it; the feature extraction unit C4 takes the result of fusion of features F2 and F3 as input, and obtains feature F after convolution operation. 23 ; The feature extraction unit C6 takes the result of fusion of feature F2 and feature F4 output by 7×7 convolution as input, and obtains feature F after convolution operation. 34 ; The addition unit A1 takes the features F1 and FAE1 as input, and adds them together to obtain the features extracted by the first branch; the spatial attention module SA2 takes the features FAE1 as input; the multiplication unit M2 takes the spatial attention map extracted by the spatial attention module SA2 and the feature F 23 The feature enhancement unit E2 takes the feature FA2 as input and obtains the feature FAE2 after convolution operation. The feature extraction unit C7 takes the feature F as input and obtains the feature FAE2 after convolution operation. 23 and F 34 The fused result is the input, and after the convolution operation, the feature F is obtained. 234 ; The addition unit A2 takes the features FAE1 and FAE2 as input, and adds them together to obtain the features extracted by the second branch; the spatial attention module SA3 takes the feature FAE2 as input; the multiplication unit M3 takes the spatial attention map extracted by the spatial attention module SA3 and the feature F 234 The feature enhancement unit E3 takes the feature FA3 as input, and enhances it to obtain the feature FAE3, which is also used as the feature extracted by the fourth branch. Addition unit A3 takes features FAE2 and FAE3 as input and adds them together to obtain the features extracted by the third branch.
3. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as described in claim 1 or 2, characterized in that: When the initial detection network is trained using the annotated infrared image set, a two-stage training is adopted; The first stage of training includes: training the initial detection network. During the training process, the parameters of the segmentation encoder are frozen, and the parameters of the multi-scale region candidate network are updated using the target box annotation results as supervision information; The second stage of training includes: after the first stage of training, unlock the segmentation encoder, train the initial detection network, and use the target box annotation results and pixel annotation results as supervision information to update the parameters of the multi-scale region candidate network and the segmentation encoder.
4. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as claimed in claim 3, characterized in that: In the first stage of training, the training loss includes the target box prediction loss of the multi-scale region proposal network; in the second stage of training, the training loss includes the target box prediction loss of the multi-scale region proposal network and the segmentation loss of the segmentation encoder; Among them, the target box prediction loss is used to measure the loss of the screened target box for the target box annotation result; the segmentation loss is used to measure the loss of the segmentation result relative to the pixel value annotation result.
5. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as claimed in claim 4, characterized in that: The expression of the target box prediction loss is: Among them, L RPN represents the target box prediction loss; M represents the total number of screened target boxes; represents the confidence of the target box; c represents the true value of the confidence. If the predicted target box is a marked target box containing a small infrared target, its true value of confidence is 1, otherwise it is 0; L CIoU Represents the CIoU between the predicted target box and the annotated target box.
6. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as claimed in claim 4, characterized in that: The expression of the segmentation loss is: Among them, L c represents the segmentation loss; N represents the total number of pixels; represents the probability prediction result that the i-th pixel belongs to a small infrared target, p i Represents the true value of the labeled category.
7. The method for establishing an infrared small target detection model based on multi-scale attention superposition as described in claim 1 or 2, characterized in that: The step of filtering out a target frame containing a small infrared target includes: Eliminate target boxes whose confidence is lower than the preset confidence threshold.
8. The method for establishing an infrared small target detection model based on multi-scale attention feature superposition as claimed in claim 7, characterized in that: The step of filtering out the target frame containing the small infrared target further includes at least one of the following operations: Eliminate target boxes whose area is larger than the preset size threshold; Eliminate target frames whose aspect ratios are not within the preset aspect ratio range.
9. A method for detecting small infrared targets, characterized in that: include: Input the infrared image to be detected into a pre-established infrared small target detection model; Among them, the infrared small target detection model is established by the infrared small target detection model establishment method based on multi-scale attention feature superposition as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: It includes a stored computer program; when the computer program is executed by a processor, it controls the device where the computer-readable storage medium is located to execute the infrared small target detection model establishment method based on multi-scale attention feature superposition as described in any one of claims 1 to 8, and / or the infrared small target detection method as described in claim 9.
Citation Information
Patent Citations
Infrared small target detection method based on multi-mechanism attention collaborative fusion comparison
CN115546610A
Multi-scale object instance segmentation model training method, segmentation method and device
CN115578616A
Infrared weak and small target detection method based on fused scene semantic information
CN118154950A
Method for dim and small object detection based on discriminant feature of video satellite data
US20220067335A1
Cited By
Target image segmentation method and system
CN119169298A
A target image segmentation method and system
CN119169298B
Zero sample infrared target identification method and system based on cosine similarity matching
CN119992566A
Distribution network line multi-scale target defect identification method, device, equipment and medium
CN120431086A
Distribution network line multi-scale target defect identification method, device, equipment and medium
CN120431086B
