Small target detection method and system

Through the dual-modal enhancement and progressive feature extraction and fusion method, the blur problem caused by changes in light value in image fusion is solved, the accuracy of small object detection and the perception ability of the model are improved, and high-quality image fusion and detection effects are achieved .

CN118968083APending Publication Date: 2024-11-15ARMY ENG UNIV OF PLA

Patent Information

Application Number
CN202411125923.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art lacks research on illumination values ​​during image fusion, resulting in weakening feature information loss and fusion effect, and high calculation cost, making it difficult to effectively detect small targets.

Method used

The dual-modal enhancement and gradual feature extraction fusion method is adopted, and the feature map is gradually integrated through contrast enhancement and fine particle size feature detection, combined with the backbone network and adaptive integration module, and the global and local features are extracted using the state space model and bottleneck module. And optimize the model through the Shape-IOU loss function.

Benefits of technology

It significantly improves the quality and clarity of the fusion image, reduces the loss and degradation of feature information, and improves the detection accuracy and perception ability of the model, especially in small object detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968083A_ABST
    Figure CN118968083A_ABST
Patent Text Reader

Abstract

The invention discloses a small target detection method and system. The method comprises the following steps: acquiring a visible light image and an infrared light image; inputting the visible light image and the infrared light image into a pre-trained small target detection model, and outputting a detection result of the images; the small target detection model is processed by the following steps of: sequentially performing contrast enhancement and preliminary fusion on the visible light image and the infrared light image to obtain an image after preliminary fusion; carrying out progressive feature extraction and fusion on the preliminarily fused image to obtain an input feature map; and obtaining a detection result of the input feature map by using a detection head. According to the method, bimodal enhancement and progressive feature extraction fusion are introduced, so that the problem of image blurring caused by illumination value change during image extraction and fusion in an existing method is effectively solved; the bimodal enhancement technology enhances the image features; the progressive feature extraction fusion technology significantly improves the quality and definition of the fused image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual image technology, and in particular to a small target detection method and system. Background Art

[0002] In existing imaging technologies, infrared images capture the thermal radiation of objects and are robust to lighting and all weather conditions. In infrared images, targets can usually be clearly distinguished from the background, which can be indicated by high grayscale values. However, due to the limitations of imaging sensors, infrared images usually have low resolution and poor texture; visible light images provide high resolution and rich texture details, making them suitable for human visual observation. But visible light images are highly sensitive to lighting conditions and harsh environments, which makes it difficult to observe targets in low light or rainy and foggy environments. Image fusion technology plays an important role in the real-time detection of weak targets. Image fusion is defined as integrating multiple images acquired from the same or different modalities into a single image. This image contains complementary information from all source images. By combining the advantages of each source image, the fusion operation using the self-enhanced image can highlight the target while retaining the most edge information, and can achieve a comprehensive and accurate description of the image scene. The fused image is more informative and accurate than any of the source images, which not only reduces the amount of data, but also facilitates subsequent tasks. At present, infrared and visible image fusion (IVIF) is widely used in civil and military fields.

[0003] Existing methods lack research on image illumination values ​​during image fusion, which makes the model affected by image blur when fusing images. On the one hand, for the feature fusion network, YOLOv5s uses the PANET fusion architecture. When performing feature fusion, high-level and low-level feature maps need to pass through multiple intermediate layers. This behavior will lead to the loss and degradation of feature information, weakening the fusion effect and model feature expression ability; on the other hand, for the feature extraction module, the PANet fusion structure uses the convolutional neural network module C3 for specific multi-scale feature fusion. This fusion module has a high computational cost and there is a problem of insufficient extraction for further extraction of fusion features. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a small target detection method and system, which can effectively solve the image blur problem caused by changes in illumination values ​​during image extraction and fusion in the existing methods by introducing dual-modal enhancement and progressive feature extraction fusion.

[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0006] In one aspect, the present invention provides a small target testing method, comprising:

[0007] Acquire visible light images and infrared light images;

[0008] Inputting the visible light image and the infrared light image into a pre-trained small target detection model, and outputting the detection results of the images;

[0009] The processing steps of the small target detection model include:

[0010] performing contrast enhancement and preliminary fusion on the visible light image and the infrared light image in sequence to obtain a preliminary fused image;

[0011] Performing progressive feature extraction and fusion on the preliminarily fused images to obtain an input feature map;

[0012] A detection result of the input feature map is obtained using a detection head.

[0013] Optionally, the calculation formula for contrast enhancement of the visible light image and the infrared light image by the image self-enhancement module is:

[0014] ;

[0015] ;

[0016] ;

[0017] ;

[0018] In the formula, is the image after contrast enhancement, , is the infrared image after contrast enhancement. It is the visible light image after contrast enhancement; is the illumination value of the image after contrast enhancement; is the spectral value of the image after contrast enhancement; is the illumination value of the image; is the spectral value of the image; is the original image, is an infrared image; is a visible light image; is the incident light value of the image; is an exponential function; is a hyperparameter; For real images.

[0019] Optionally, the visible light image and the infrared light image are preliminarily fused through a preliminary fusion module, the preliminary fusion module includes a detail detection module and a convolution module, the convolution module includes an upper branch and a lower branch, specifically:

[0020] The visible light image after contrast enhancement is subjected to fine-grained feature detection by the detail detection module to obtain a visible light image after fine-grained feature detection; the visible light image after fine-grained feature detection is subjected to convolution processing by the upper branch to obtain a visible light image after convolution processing;

[0021] The infrared image after contrast enhancement is convolved through the lower branch to obtain an infrared image after convolution processing; the infrared image after convolution processing is subjected to fine-grained feature detection through the detail detection module to obtain an infrared image after fine-grained feature detection;

[0022] Performing feature interaction on the visible light image after the convolution processing and the infrared light image after the fine-grained feature detection;

[0023] Repeat until the feature interaction is completed and a preliminary fused image is obtained.

[0024] Optionally, performing fine-grained feature detection on the visible light image and the infrared light image by the detail detection module includes the following steps:

[0025] Calculate the difference between the visible light image and the infrared light image using the element-by-element subtraction method ;

[0026] Calculate the difference map using the receptive field Eigenvalues ​​in the region ;like , then the region is a significant feature region, otherwise, it is not; is a hyperparameter constant.

[0027] Optionally, a progressive feature extraction and fusion module is used to perform progressive feature extraction and fusion on the preliminarily fused image, wherein the progressive feature extraction and fusion module includes a backbone network, an adaptive integration module and a feature fusion module, specifically:

[0028] Extracting features of the preliminarily fused image through a backbone network to obtain a first feature map P2, a second feature map P3, and a third feature map P4 of three different scales;

[0029] Integrate the first feature map P2, the second feature map P3, and the third feature map P4 through an adaptive integration module to obtain an integrated first feature map A2, a second feature map A3, and a third feature map A4;

[0030] The integrated first feature map A2, the second feature map A3, and the third feature map A4 are fused through a feature fusion module to obtain an input feature map.

[0031] Optionally, in the first stage, after upsampling the second feature map P3 and aligning the scale with the first feature map P2, adaptive feature integration is performed with the first feature map P2 to obtain the first feature map S2 of the first stage; after downsampling the first feature map P2 and aligning the scale with the second feature map P3, adaptive feature integration is performed with the second feature map P3 to obtain the second feature map S3 of the first stage;

[0032] In the second stage, the third feature map P4 is input into the scale feature interaction module for feature integration to obtain the feature map S4 of the second stage; the second feature map S3 of the first stage and the feature map S4 of the second stage are upsampled and scale-aligned with the first feature map S2 of the first stage, and then adaptively integrated with the first feature map S2 of the first stage to obtain the integrated first feature map A2;

[0033] The first feature map S2 of the first stage is downsampled, the feature map S4 of the second stage is upsampled, and the scale is aligned with the second feature map S3 of the first stage, and then adaptively integrated with the second feature map S3 of the first stage to obtain the integrated second feature map A3;

[0034] The first feature map S2 of the first stage and the second feature map S3 of the first stage are respectively downsampled and scale-aligned with the feature map S4 of the second stage, and then adaptively integrated with the feature map S4 of the second stage to obtain an integrated third feature map A4.

[0035] Optionally, the feature fusion module includes a state space model and a bottleneck module;

[0036] The integrated first feature map A2, the second feature map A3, and the third feature map A4 are divided into two feature maps according to the channel dimension;

[0037] The global features of the first part of the feature map are extracted through the state space model, and the local features of the second part of the feature map are extracted through the bottleneck module;

[0038] The features of the two extracted feature maps are concatenated and restored according to the channel dimension, and the global features and local features are fused to obtain the input feature map.

[0039] Optionally, the training of the small target detection model includes: optimizing parameters of the small target detection model using a Shape-IOU loss function and its IOU-Aware constraints.

[0040] Optionally, the calculation formula of the Shape-IOU loss function and its IOU-Aware constraint is:

[0041] ;

[0042] ;

[0043] ;

[0044] ;

[0045] In the formula, is the Shape-IOU loss function; is an exponential function; is the center point of the prediction box With GT frame center point Weighted distance; is the average size of the target; is the shape weight of the GT box in the vertical direction; is the horizontal coordinate of the center point of the prediction box; is the horizontal coordinate of the center point of the GT frame; is the shape weight of the GT box in the horizontal direction; is the ordinate of the center point of the prediction box; is the ordinate of the center point of the GT box; For images; is the total number of images; For the The annotated bounding boxes in the image; For the The number of annotated bounding boxes in an image; For the In the image The width of the bounding box; For the In the image The height of the bounding box; It is IOU-Aware constraint; is the bounding box constraint; is the category constraint; Detect the true value for the target; Predict values ​​for target detection; is the true bounding box; To predict the bounding box; It is the real category information; To predict category information.

[0046] On the other hand, the present invention also provides a small target detection system, comprising:

[0047] An image acquisition module, used for acquiring visible light images and infrared light images;

[0048] Image self-enhancement module, used to enhance the contrast of visible light images and infrared light images;

[0049] A preliminary fusion module, used for preliminary fusion of the visible light image and the infrared light image to obtain a preliminary fused image;

[0050] A progressive feature extraction and fusion module is used to extract and fuse the features of the initially fused image;

[0051] Small target detection model, used to obtain image detection results.

[0052] Beneficial Effects

[0053] Compared with the prior art, the present invention has the following beneficial effects:

[0054] (1) The present invention effectively solves the problem of image blurring caused by changes in illumination values ​​during image extraction and fusion in existing methods by introducing bimodal enhancement and progressive feature extraction and fusion. The bimodal enhancement technology preprocesses infrared images and visible light images, enhances image features, and lays a solid foundation for subsequent fusion. The progressive feature extraction and fusion technology reduces the semantic gap between non-adjacent layers by gradually adding high-level features, avoids the loss and degradation of feature information, and thus significantly improves the quality and clarity of the fused image.

[0055] (2) The present invention extracts global features through the state space model and local features through the bottleneck module of the convolutional layer. Finally, the global features and local features are aggregated and merged to achieve complementary extraction of global features and local features, forming a richer feature representation, so that the model has a faster convergence speed while maintaining high detection accuracy.

[0056] (3) By designing the Shape-IOU loss function and IOU-Aware constraints, the present invention makes the model more accurate in predicting small targets, effectively improving the detection accuracy and perception ability of small targets. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 FIG. 1 is a schematic diagram of a flow chart of a small target detection method in an embodiment of the present invention;

[0058] Figure 2 FIG. 1 is a schematic diagram of the structure of a small target detection system in one embodiment of the present invention;

[0059] Figure 3 FIG. 1 is a schematic diagram of the structure of an image preprocessing module in an embodiment of the present invention;

[0060] Figure 4 FIG. 1 is a schematic diagram of the structure of a progressive feature extraction and fusion module in an embodiment of the present invention;

[0061] Figure 5 FIG. 4 is a schematic diagram showing the structure of the adaptive integration module and the feature fusion module in an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.

[0063] The term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " generally indicates that the related objects are in an "or" relationship.

[0064] Example 1

[0065] like Figure 1 As shown, this embodiment introduces a small target detection method, including:

[0066] Acquire visible light images and infrared light images;

[0067] Inputting the visible light image and the infrared light image into a pre-trained small target detection model, and outputting the detection results of the images;

[0068] The processing steps of the small target detection model include:

[0069] The visible light image and the infrared light image are contrast enhanced and preliminarily fused in sequence to obtain a preliminarily fused image. Figure 3 The figure shows the structure diagram of the image preprocessing module. Specifically:

[0070] The contrast of the visible light image and the infrared light image is enhanced by the image self-enhancement module. Input image self-enhancement module, where is an infrared image, It is a visible light image.

[0071] Given an input image , transform it into logarithmic space , use Gaussian filter to calculate the illumination value of the image , .in, For real images.

[0072] Then calculate the incident light value of the image , .

[0073] Project the incident light value into vector space , then the refraction loss is ,in is a hyperparameter. The final reflected light value is .

[0074] At this time, the spectral value of the image for:

[0075] .

[0076] The image output by the image self-enhancement module is ,in, is the illumination value of the infrared light image or visible light image after contrast enhancement; is the spectral value of the contrast-enhanced infrared image or visible light image; it is used as the input of the preliminary fusion module.

[0077] The visible light image and the infrared light image are preliminarily fused through a preliminary fusion module, wherein the preliminary fusion module comprises a detail detection module and a convolution module, and the convolution module comprises an upper branch and a lower branch.

[0078] In this embodiment, the contrast-enhanced visible light image The detail detection module is input to perform fine-grained feature detection to obtain a visible light image after fine-grained feature detection. The visible light image after fine-grained feature detection is input to the upper branch of the convolution module for convolution processing to obtain a visible light image after convolution processing.

[0079] The contrast-enhanced infrared image After the convolution processing is performed on the lower branch of the convolution module, an infrared image after the convolution processing is obtained. The infrared image after the convolution processing is input into the detail detection module for fine-grained feature detection to obtain an infrared image after fine-grained feature detection.

[0080] Fine-grained feature detection for visible light images and infrared images includes the following steps:

[0081] The image interpolation calculation module uses the element-by-element subtraction method to calculate the difference between the visible light image and the infrared light image. .

[0082] Regional feature detection module uses Difference map of receptive field calculation of size Eigenvalues ​​in the region ;like , then the region is a significant feature region, otherwise, it is not; is a hyperparameter constant.

[0083] The visible light image after the convolution processing and the infrared light image after the fine-grained feature detection are subjected to feature interaction.

[0084] Repeat the above steps until the feature interaction is completed and a preliminary fused image is obtained.

[0085] The progressive feature extraction and fusion module performs progressive feature extraction and fusion on the preliminarily fused image to obtain an input feature map. Figure 4 Shown is a structural diagram of the progressive feature extraction and fusion module.

[0086] The progressive feature extraction and fusion module includes a YOLOv5 backbone network, an adaptive integration module (ASFF, Adaptive Spatial Feature Fusion) and a feature fusion module (RepNCSP). Figure 5 Shown is a schematic diagram of the structure of the adaptive integration module and the feature fusion module and their mutual coordination.

[0087] The features of the preliminarily fused image are extracted through the YOLOv5 backbone network to obtain a first feature map P2, a second feature map P3, and a third feature map P4 of three different scales.

[0088] The first feature map P2, the second feature map P3, and the third feature map P4 are integrated through an adaptive integration module (ASFF) to obtain an integrated first feature map A2, a second feature map A3, and a third feature map A4.

[0089] definition For Layer to the lth layer position The characteristic vector of , , Represents the position of layer l respectively The spatial weights of the features from these three levels are finally obtained as the feature vector, denoted as ; Using the principle of adaptive integration to integrate.

[0090] In the first stage, after the second feature map P3 is upsampled and scale-aligned with the first feature map P2, adaptive feature integration is performed with the first feature map P2 to obtain the first feature map S2 of the first stage; after the first feature map P2 is downsampled and scale-aligned with the second feature map P3, adaptive feature integration is performed with the second feature map P3 to obtain the second feature map S3 of the first stage.

[0091] In the second stage, the third feature map P4 is input into the internal scale feature interaction module (AIFI, Attention-based Intra-scale Feature Interaction) of the single-layer neural network architecture Transformer for feature integration to obtain the feature map S4 of the second stage.

[0092] The second feature map S3 of the first stage and the feature map S4 of the second stage are upsampled and scale-aligned with the first feature map S2 of the first stage, and then adaptively integrated with the first feature map S2 of the first stage to obtain the integrated first feature map A2. The first feature map S2 of the first stage is downsampled, the feature map S4 of the second stage is upsampled and scale-aligned with the second feature map S3 of the first stage, and then adaptively integrated with the second feature map S3 of the first stage to obtain the integrated second feature map A3. The first feature map S2 of the first stage and the second feature map S3 of the first stage are downsampled and scale-aligned with the feature map S4 of the second stage, and then adaptively integrated with the feature map S4 of the second stage to obtain the integrated third feature map A4.

[0093] The design idea of ​​integrating in two stages is gradual or step-by-step integration. The first stage does not involve the third feature map P4, but only the feature interaction between the first feature map P2 and the second feature map P3. In the second stage, the third feature map P4 and the feature map completed by the feature interaction between the first feature map P2 and the second feature map P3 are added to perform feature integration. The advantage of two stages is that it can enrich the feature representation and enhance the model's perception of the target.

[0094] The first feature map A2, the second feature map A3, and the third feature map A4 after integration are fused through a feature fusion module (RepNCSP) to obtain an input feature map. The feature fusion module (RepNCSP) includes a state space model (SSMBlock, State Space Model Block) and a bottleneck module.

[0095] The integrated first feature map A2, the second feature map A3, and the third feature map A4 are divided into two feature maps according to the channel dimension.

[0096] The global features of the first part of the feature map are extracted through the state space model (SSMBlock, State Space Model Block), and the local features of the second part of the feature map are extracted through two 1×1 and 3×3 bottleneck modules.

[0097] The two parts are finally summarized, and the features of the two extracted feature maps are spliced ​​and restored according to the channel dimension, and the global features and local features are fused to obtain the input feature map. The input feature map contains semantic information and spatial detail information.

[0098] The detection result of the input feature map obtained by using the detection head is the detection result of the image.

[0099] The training of the small target detection model includes: optimizing the parameters of the small target detection model using the Shape-IOU loss function and its IOU-Aware constraint. Specifically:

[0100] Calculate the center point of the prediction box With GT frame center point The Euclidean distance of .

[0101] According to the aspect ratio of the GT box, calculate the shape weight of the GT box in the horizontal direction and the shape weight in the vertical direction .

[0102] The shape weight factor and Introduce it into the calculation of the center point distance D to obtain the weighted distance , such as the formula:

[0103] ;

[0104] Finally, substitute the weighted distance D into the Dot Distance formula to calculate the final Shape-IOU loss function, as shown in the formula:

[0105] ;

[0106] in, ;

[0107] Use the Shape-IOU loss function to optimize the regression loss and classification loss at the same time, add the Shape_IOU loss to the classification loss, and get the IOU-Aware constraint, as shown in the formula:

[0108] ;

[0109] In the formula, is an exponential function; is the average size of the target; For images; is the total number of images; For the The annotated bounding boxes in the image; For the The number of annotated bounding boxes in an image; For the In the image The width of the bounding box; For the In the image The height of the bounding box; is the bounding box constraint; is the category constraint; Detect the true value for the target; Predict values ​​for target detection; is the true bounding box; To predict the bounding box; It is the real category information; To predict category information.

[0110] Example 2

[0111] like Figure 2 As shown, this embodiment introduces a small target detection system, which specifically includes:

[0112] The image acquisition module is used to acquire visible light images and infrared light images.

[0113] Image self-enhancement module is used to enhance the contrast of visible light images and infrared light images.

[0114] The preliminary fusion module is used to preliminarily fuse the visible light image and the infrared light image to obtain a preliminary fused image.

[0115] The preliminary fusion module includes a detail detection module and a convolution module, and the convolution module includes an upper branch and a lower branch. The detail detection module is used to detect the significant features of the visible light image and the infrared light image. The convolution module is used to convolve the visible light image and the infrared light image, wherein the upper branch is used to convolve the visible light image, and the lower branch is used to convolve the infrared light image. Figure 3 Shown is a structural schematic diagram of the image preprocessing module.

[0116] The progressive feature extraction and fusion module is used to extract and fuse the features of the initially fused image. Figure 4 Shown is a structural diagram of the progressive feature extraction and fusion module.

[0117] The progressive feature extraction and fusion module includes a YOLOv5 backbone network, an adaptive integration module (ASFF, Adaptive Spatial Feature Fusion) and a feature fusion module (RepNCSP).

[0118] The YOLOv5 backbone network is used to extract the features of the preliminarily fused image to obtain a first feature map P2, a second feature map P3, and a third feature map P4 of three different scales.

[0119] The adaptive integration module (ASFF, Adaptive Spatial Feature Fusion) is used to integrate the first feature map P2, the second feature map P3, and the third feature map P4 to obtain the integrated first feature map A2, the second feature map A3, and the third feature map A4.

[0120] The feature fusion module (RepNCSP) is used to fuse the integrated first feature map A2, the second feature map A3, and the third feature map A4 to obtain an input feature map.

[0121] The feature fusion module (RepNCSP) includes a state space model (SSMBlock, State Space Model Block) and a bottleneck module. The state space model (SSMBlock, State Space Model Block) is used to extract global features of the first part of the feature map, and the bottleneck module is used to extract local features of the second part of the feature map.

[0122] Small target detection model, used to obtain image detection results.

[0123] Example 3

[0124] This embodiment introduces a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the steps of the cross-view image geolocation method described in Embodiment 1 are implemented.

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

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

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

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

[0129] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A small target detection method, characterized in that: include: Acquire visible light images and infrared light images; Input the visible light image and the infrared light image into a pre-trained small target detection model, and output the detection results of the images; The processing steps of the small target detection model include: performing contrast enhancement and preliminary fusion on the visible light image and the infrared light image in sequence to obtain a preliminary fused image; Performing progressive feature extraction and fusion on the preliminarily fused images to obtain an input feature map; A detection result of the input feature map is obtained using a detection head.

2. The small target detection method according to claim 1, characterized in that: The calculation formula for contrast enhancement of the visible light image and the infrared light image by the image self-enhancement module is: ; ; ; ; In the formula, is the image after contrast enhancement, , is the infrared image after contrast enhancement. It is the visible light image after contrast enhancement; is the illumination value of the image after contrast enhancement; is the spectral value of the image after contrast enhancement; is the illumination value of the image; is the spectral value of the image; is the original image, is an infrared image; is a visible light image; is the incident light value of the image; is an exponential function; is a hyperparameter; For real images.

3. The small target detection method according to claim 1, characterized in that: The visible light image and the infrared light image are preliminarily fused through a preliminary fusion module, wherein the preliminary fusion module includes a detail detection module and a convolution module, wherein the convolution module includes an upper branch and a lower branch, specifically: The visible light image after contrast enhancement is subjected to fine-grained feature detection by the detail detection module to obtain a visible light image after fine-grained feature detection; the visible light image after fine-grained feature detection is subjected to convolution processing by the upper branch to obtain a visible light image after convolution processing; The infrared image after contrast enhancement is convolved through the lower branch to obtain an infrared image after convolution processing; the infrared image after convolution processing is subjected to fine-grained feature detection through the detail detection module to obtain an infrared image after fine-grained feature detection; Performing feature interaction on the visible light image after the convolution processing and the infrared light image after the fine-grained feature detection; Repeat until the feature interaction is completed and a preliminary fused image is obtained.

4. The small target detection method according to claim 3, characterized in that: The fine-grained detection of visible light images and infrared light images by the detail detection module includes the following steps: Calculate the difference between the visible light image and the infrared light image using the element-by-element subtraction method ; Calculate the difference map using the receptive field Eigenvalues ​​in the region ;like , then the region is a significant feature region, otherwise, it is not; is a hyperparameter constant.

5. The small target detection method according to claim 1, characterized in that: The progressive feature extraction and fusion module is used to progressively extract and fuse the preliminarily fused image. The progressive feature extraction and fusion module includes a backbone network, an adaptive integration module and a feature fusion module, specifically: Extracting features of the preliminarily fused image through a backbone network to obtain a first feature map P2, a second feature map P3, and a third feature map P4 of three different scales; Integrate the first feature map P2, the second feature map P3, and the third feature map P4 through an adaptive integration module to obtain an integrated first feature map A2, a second feature map A3, and a third feature map A4; The integrated first feature map A2, the second feature map A3, and the third feature map A4 are fused through a feature fusion module to obtain an input feature map.

6. The small target detection method according to claim 5, characterized in that: In the first stage, after upsampling the second feature map P3 and aligning the scale with the first feature map P2, adaptive feature integration is performed with the first feature map P2 to obtain the first feature map S2 of the first stage; after downsampling the first feature map P2 and aligning the scale with the second feature map P3, adaptive feature integration is performed with the second feature map P3 to obtain the second feature map S3 of the first stage; In the second stage, the third feature map P4 is input into the scale feature interaction module for feature integration to obtain the feature map S4 of the second stage; the second feature map S3 of the first stage and the feature map S4 of the second stage are upsampled and scale-aligned with the first feature map S2 of the first stage, and then adaptively integrated with the first feature map S2 of the first stage to obtain the integrated first feature map A2; The first feature map S2 of the first stage is downsampled, the feature map S4 of the second stage is upsampled, and the scale is aligned with the second feature map S3 of the first stage, and then adaptively integrated with the second feature map S3 of the first stage to obtain the integrated second feature map A3; The first feature map S2 of the first stage and the second feature map S3 of the first stage are respectively downsampled and scale-aligned with the feature map S4 of the second stage, and then adaptively integrated with the feature map S4 of the second stage to obtain an integrated third feature map A4.

7. The small target detection method according to claim 5, characterized in that: The feature fusion module includes a state space model and a bottleneck module; The integrated first feature map A2, the second feature map A3, and the third feature map A4 are divided into two feature maps according to the channel dimension; The global features of the first part of the feature map are extracted through the state space model, and the local features of the second part of the feature map are extracted through the bottleneck module; The features of the two extracted feature maps are concatenated and restored according to the channel dimension, and the global features and local features are fused to obtain the input feature map.

8. The small target detection method according to claim 1, characterized in that: The training of the small target detection model includes: optimizing the parameters of the small target detection model using the Shape-IOU loss function and its IOU-Aware constraint.

9. The small target detection method according to claim 8, characterized in that: The calculation formula of the Shape-IOU loss function and its IOU-Aware constraint is: ; ; ; ; In the formula, is the Shape-IOU loss function; is an exponential function; is the center point of the prediction box With GT frame center point Weighted distance; is the average size of the target; is the shape weight of the GT box in the vertical direction; is the horizontal coordinate of the center point of the prediction box; is the horizontal coordinate of the center point of the GT box; is the shape weight of the GT box in the horizontal direction; is the ordinate of the center point of the prediction box; is the ordinate of the center point of the GT box; For images; is the total number of images; For the The annotated bounding boxes in the image; For the The number of annotated bounding boxes in an image; For the In the image The width of the bounding box; For the In the image The height of the bounding box; It is IOU-Aware constraint; is the bounding box constraint; is the category constraint; Detect the true value for the target; Predict values ​​for target detection; is the true bounding box; To predict the bounding box; It is the real category information; To predict category information.

10. A small target detection system, characterized in that: include: An image acquisition module, used for acquiring visible light images and infrared light images; Image self-enhancement module, used to enhance the contrast of visible light images and infrared light images; A preliminary fusion module, used for preliminary fusion of the visible light image and the infrared light image to obtain a preliminary fused image; A progressive feature extraction and fusion module is used to extract and fuse the features of the initially fused image; Small target detection model, used to obtain image detection results.

Citation Information

Patent Citations

  • Infrared and visible light image fusion method based on double generative adversarial networks

    CN116309230A

  • GIS infrared image recognition system and method based on improved YOLOv5

    CN117975040A

Cited By

  • Self-adaptive scene perception small target detection system, method and equipment

    CN120526107A

  • An adaptive scene-aware small target detection system, method and device

    CN120526107B

  • Method and device for detecting power transmission line fault through line fault detection model

    CN120876400A