A small target detection method and system
By employing a dual-modal enhancement and progressive feature extraction fusion method, the image blurring problem caused by illumination changes was solved, achieving high-quality small target detection results and improving detection accuracy and speed.
Patent Information
- Application Number
- CN202411125923.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-08-16
AI Technical Summary
Existing image fusion methods suffer from image blurring when dealing with changes in illumination. Feature fusion networks and feature extraction modules also suffer from information loss and high computational costs, which affect the effectiveness of small target detection.
A dual-modal enhancement and progressive feature extraction fusion method is adopted. By enhancing the contrast and initially fusing visible light and infrared images, a progressive feature extraction module is used to gradually integrate high-level features. Global and local features are extracted by combining a state space model and a bottleneck module, and the model parameters are optimized using the Shape-IOU loss function.
It improves the quality and clarity of fused images, enhances the accuracy and speed of small target detection, and strengthens the model's detection capabilities.
Smart Images

Figure CN118968083B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual image technology, and in particular to a method and system for small target detection. Background Technology
[0002] In existing imaging technologies, infrared images capture the thermal radiation of objects and are robust to varying lighting conditions and all weather conditions. In infrared images, targets can usually be clearly distinguished from the background, indicated by high grayscale values. However, due to limitations of imaging sensors, infrared images typically have low resolution and poor texture. Visible light images, on the other hand, offer high resolution and rich texture details, making them suitable for human visual observation. However, visible light images are highly sensitive to lighting conditions and harsh environments, making target observation difficult in low-light or rainy / foggy conditions. Image fusion technology plays a crucial role in real-time detection of small 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 strengths of each source image and using the self-enhanced image for fusion, the target can be highlighted while retaining the most edge information, enabling a comprehensive and accurate description of the scene. The fused image is more informative and accurate than any single source image, reducing data volume and facilitating subsequent tasks. Currently, infrared and visible light image fusion (IVIF) is widely used in civilian and military fields.
[0003] Existing methods lack research on image illumination values during image fusion, making the model susceptible to image blurring during fusion. On one hand, for the feature fusion network, YOLOv5s uses the PANET fusion architecture. When fusing high-level and low-level feature maps, multiple intermediate layers are required, leading to feature information loss and degradation, thus weakening the fusion effect and the model's feature representation ability. On the other hand, for the feature extraction module, the PANet fusion structure uses the convolutional neural network module C3 for multi-scale feature fusion. This fusion module has high computational cost and suffers from insufficient extraction of further fused features. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a small target detection method and system that can effectively solve the image blurring problem caused by changes in illumination values during image extraction and fusion in existing methods by introducing dual-modal enhancement and progressive feature extraction fusion.
[0005] To achieve the above objectives, the present invention is implemented using the following technical solution:
[0006] On one hand, the present invention provides a small target testing method, comprising:
[0007] Acquire visible light and infrared light images;
[0008] The visible light image and infrared light image are input into a pre-trained small target detection model, and the detection results of the image are output.
[0009] The processing steps of the small target detection model include:
[0010] The visible light image and the infrared light image are sequentially subjected to contrast enhancement and preliminary fusion to obtain a preliminarily fused image;
[0011] The initially fused image is then progressively feature-extracted and fused to obtain an input feature map;
[0012] The detection results of the input feature map are obtained using the probe.
[0013] Optionally, the calculation formula for contrast enhancement of the visible light image and infrared light image by the image self-enhancement module is as follows:
[0014] ;
[0015] ;
[0016] ;
[0017] ;
[0018] In the formula, The image after contrast enhancement. , This is an infrared image with enhanced contrast. This is a visible light image with enhanced contrast. The illumination values for the image after contrast enhancement; These are the spectral values of the contrast-enhanced image; The illumination values for the image; These are the spectral values of the image; For the original image, Infrared light image; Visible light image; The incident light value of the image; It is an exponential function; For hyperparameters; This is a real image.
[0019] Optionally, a preliminary fusion module is used to perform preliminary fusion of the visible light image and the infrared light image. This 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 contrast-enhanced visible light image is passed through the detail detection module for fine-grained feature detection to obtain a visible light image with fine-grained feature detection; the visible light image with fine-grained feature detection is then convolved through the upper branch to obtain a convolved visible light image.
[0021] The contrast-enhanced infrared image is convolved through the lower branch to obtain the convolved infrared image; the convolved infrared image is then passed through the detail detection module for fine-grained feature detection to obtain the fine-grained feature-detected infrared image.
[0022] The convolutional visible light image and the infrared light image after fine-grained feature detection are subjected to feature interaction;
[0023] Repeat the process until feature interaction is complete, resulting in a preliminarily fused image.
[0024] Optionally, fine-grained feature detection of visible light and infrared light images via the detail detection module includes the following steps:
[0025] The difference between the visible light image and the infrared light image is calculated using the element-by-element subtraction method. ;
[0026] Calculating the difference map using the receptive field Feature values within the region ;like If the region is positive, then it is a salient region; otherwise, it is not. It is a hyperparameter constant.
[0027] Optionally, a progressive feature extraction and fusion module is used to progressively extract and fuse features from the initially fused image. This progressive feature extraction and fusion module includes a backbone network, an adaptive integration module, and a feature fusion module, specifically:
[0028] The features of the pre-fused image are extracted by the backbone network to obtain three different scales of first feature map P2, second feature map P3 and third feature map P4.
[0029] The first feature map P2, the second feature map P3, and the third feature map P4 are integrated through the adaptive integration module to obtain the integrated first feature map A2, the second feature map A3, and the third feature map A4.
[0030] The feature fusion module fuses the integrated first feature map A2, second feature map A3, and third feature map A4 to obtain the input feature map.
[0031] Optionally, in the first stage, after upsampling the second feature map P3 and aligning it with the scale of 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 it with the scale of 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] After downsampling the first feature map S2 of the first stage, upsampling the feature map S4 of the second stage, and aligning it with the scale of the second feature map S3 of the first stage, adaptive feature integration is performed with the second feature map S3 of the first stage to obtain the integrated second feature map A3.
[0034] After downsampling the first feature map S2 and the second feature map S3 of the first stage and aligning them with the scale of the feature map S4 of the second stage, adaptive feature integration is performed with the feature map S4 of the second stage to obtain the 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, second feature map A3, and third feature map A4 are divided into two parts of feature maps according to the channel dimension.
[0037] The global features of the first part of the feature map are extracted using a state-space model, and the local features of the second part of the feature map are extracted using a bottleneck module.
[0038] The features of the two extracted feature maps are concatenated and restored according to the channel dimension, and the global and local features are fused to obtain the input feature map.
[0039] Optionally, the training of the small object detection model includes optimizing the parameters of the small object detection model using the Shape-IOU loss function and its IOU-Aware constraints.
[0040] Optionally, the calculation formula for the Shape-IOU loss function and its IOU-Aware constraint is as follows:
[0041] ;
[0042] ;
[0043] ;
[0044] ;
[0045] In the formula, The Shape-IOU loss function; It is an exponential function; Center point of the prediction box Center point of GT box Weighted distance; The average size of the target; The shape weight of the GT box in the vertical direction; The x-coordinate of the center point of the prediction box; The x-coordinate of the center point of the GT box; The shape weight of the GT box in the horizontal direction; The ordinate of the center point of the prediction box; The ordinate of the center point of the ground truth bounding box; For image; The total number of images; For the first The bounding boxes marked in the image; For the first The number of bounding boxes labeled in the image; For the first The first image The width of each bounding box; For the first The first image The height of the bounding box; IOU-Aware constraint; For bounding box constraints; Category constraints; The target is the true value for detection; The predicted value for target detection; The true bounding box; To predict the bounding box; This is real category information; For predicting category information.
[0046] On the other hand, the present invention also provides a small target detection system, comprising:
[0047] The image acquisition module is used to acquire visible light images and infrared light images;
[0048] An image self-enhancement module is used to enhance the contrast of visible light and infrared light images;
[0049] The preliminary fusion module is used to initially fuse visible light images and infrared light images to obtain a preliminarily fused image.
[0050] The progressive feature extraction and fusion module is used to extract and fuse features from the initially fused image;
[0051] A small object detection model is used to obtain detection results for images.
[0052] Beneficial effects
[0053] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0054] (1) This invention effectively solves the problem of image blurring caused by changes in illumination value during image extraction and fusion in existing methods by introducing dual-modal enhancement and progressive feature extraction and fusion. The dual-modal enhancement technology preprocesses infrared 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 loss and degradation of feature information, and thus significantly improves the quality and clarity of the fused image.
[0055] (2) This invention extracts global features through a state space model and extracts local features through the bottleneck module of the convolutional layer. Finally, the global features and local features are summarized and merged, realizing the complementary extraction of global features and local features, forming a richer feature representation, so that the model can maintain high detection accuracy while also having a faster convergence speed.
[0056] (3) By designing the Shape-IOU loss function and IOU-Aware constraints, this invention makes the model more accurate in predicting small targets, effectively improving the detection accuracy and perception capability of small targets. Attached Figure Description
[0057] Figure 1 The diagram shown is a flowchart of one embodiment of the small target detection method of the present invention;
[0058] Figure 2 The diagram shown is a structural schematic of the small target detection system of the present invention in one embodiment;
[0059] Figure 3 The diagram shown is a structural schematic of the image preprocessing module of the present invention in one embodiment;
[0060] Figure 4 The diagram shown is a structural schematic of the progressive feature extraction and fusion module of the present invention in one embodiment;
[0061] Figure 5 The diagram shown is a structural schematic of the adaptive integration module and feature fusion module of the present invention in one embodiment. Detailed Implementation
[0062] The technical solution of the present invention will be described in detail below with reference to 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 thereof. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.
[0063] The term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0064] Example 1
[0065] like Figure 1 As shown in the figure, this embodiment introduces a small target detection method, including:
[0066] Acquire visible light and infrared light images;
[0067] The visible light image and infrared light image are input into a pre-trained small target detection model, and the detection results of the image are output.
[0068] The processing steps of the small target detection model include:
[0069] The visible light image and the infrared light image are sequentially subjected to contrast enhancement and preliminary fusion to obtain a preliminarily fused image. For example... Figure 3 The diagram shown illustrates the structure of the image preprocessing module. Specifically:
[0070] The visible light and infrared light images are contrast-enhanced using an image self-enhancement module. The original image... Input image self-enhancement module, where, Infrared image, This is a visible light image.
[0071] Given an input image Transform it into logarithmic space Use a Gaussian filter to calculate the illumination value of the image. , .in, This is a real image.
[0072] The incident light value of the image was then calculated. , .
[0073] Project the incident light value into the vector space. At this point, the refraction loss is ,in This is a hyperparameter. The final reflected illumination value is obtained. .
[0074] At this time, the spectral values of the image for:
[0075] .
[0076] The image output by the image self-enhancement module is ,in, The illumination value of the infrared or visible light image after contrast enhancement; The spectral values of the contrast-enhanced infrared or visible light image are used as input to the preliminary fusion module.
[0077] The visible light image and the infrared light image are initially fused using a preliminary fusion module. This preliminary fusion module includes a detail detection module and a convolution module, with the convolution module comprising an upper branch and a lower branch.
[0078] In this embodiment, the visible light image with enhanced contrast is... The fine-grained feature detection module is input to obtain a visible light image after fine-grained feature detection. This image is then input into the upper branch of the convolution module for convolution processing, resulting in a convolution-processed visible light image.
[0079] Infrared image with enhanced contrast After convolution processing in the lower branch of the input convolution module, a convolutional infrared image is obtained. This convolutional infrared image is then input into the detail detection module for fine-grained feature detection, resulting in a fine-grained infrared image.
[0080] Fine-grained feature detection for visible light and infrared images includes the following steps:
[0081] The image interpolation module uses an element-wise subtraction method to calculate the difference between a visible light image and an infrared image. .
[0082] The region feature detection module utilizes Calculation of the difference between the size of the receptive field Feature values within the region ;like If the region is positive, then it is a salient region; otherwise, it is not. It is a hyperparameter constant.
[0083] The visible light image after convolution processing and the infrared light image after fine-grained feature detection are subjected to feature interaction.
[0084] Repeat the above steps until feature interaction is complete, resulting in a preliminarily fused image.
[0085] The progressive feature extraction and fusion module performs progressive feature extraction and fusion on the initially fused image to obtain an input feature map. For example... Figure 4 The diagram shows the structure of the progressive feature extraction and fusion module.
[0086] The progressive feature extraction and fusion module includes a YOLOv5 backbone network, an adaptive spatial feature fusion (ASFF) module, and a feature fusion (RepNCSP) module. Figure 5 The diagram shows the structure of the adaptive integration module and the feature fusion module, and their interaction.
[0087] Features of the pre-fused image were extracted using the YOLOv5 backbone network to obtain three feature maps at different scales: a first feature map P2, a second feature map P3, and a third feature map P4.
[0088] The first feature map P2, the second feature map P3, and the third feature map P4 are integrated through the Adaptive Spatial Feature Fusion (ASFF) module to obtain the integrated first feature map A2, the second feature map A3, and the third feature map A4.
[0089] definition For from the first Position from layer l eigenvectors, , , Representing the positions of layer l respectively The spatial weights derived from these three levels of features are used to obtain the final feature vector, denoted as . ; Utilizing the principle of adaptive integration Integrate.
[0090] In the first stage, after upsampling the second feature map P3 and aligning it with the scale of 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 it with the scale of 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 Intra-scale Feature Interaction (AIFI) module of the single-layer neural network architecture Transformer to perform feature integration and obtain the feature map S4 of the second stage.
[0092] After upsampling the second feature map S3 and the feature map S4 of the first stage and aligning them with the scale of the first feature map S2 of the first stage, adaptive feature integration is performed with the first feature map S2 of the first stage to obtain the integrated first feature map A2. After downsampling the first feature map S2 of the first stage and upsampling the feature map S4 of the second stage and aligning them with the scale of the second feature map S3 of the first stage, adaptive feature integration is performed with the second feature map S3 of the first stage to obtain the integrated second feature map A3. After downsampling the first feature map S2 and the second feature map S3 of the first stage and aligning them with the scale of the second feature map S4 of the second stage, adaptive feature integration is performed with the second feature map S4 to obtain the integrated third feature map A4.
[0093] The two-stage integration design approach is a 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. The second stage then incorporates the third feature map P4 and the feature map resulting from the feature interaction between the first and second feature maps P2 and P3, performing feature integration. The advantage of the two-stage approach is that it enriches the feature representation and enhances the model's ability to perceive the target.
[0094] The feature fusion module (RepNCSP) fuses the integrated first feature map A2, second feature map A3, and third feature map A4 to obtain the input feature map. The feature fusion module (RepNCSP) includes a state space model (SSMBlock) and a bottleneck module.
[0095] The integrated first feature map A2, second feature map A3, and 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 using a State Space Model Block (SSMBlock), and the local features of the second part of the feature map are extracted using two 1×1 and 3×3 bottleneck modules.
[0097] The two parts are finally combined, and the features of the two extracted feature maps are concatenated and restored according to the channel dimension, fusing global and local features 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 probe is the detection result of the image.
[0099] The training of the small object detection model includes optimizing the parameters of the model using the Shape-IOU loss function and its IOU-Aware constraints. Specifically:
[0100] Calculate the center point of the prediction box Center point of GT box The Euclidean distance.
[0101] Calculate the shape weight of the ground truth bounding box in the horizontal direction based on its aspect ratio. Shape weights in the vertical direction .
[0102] Shape weight coefficient and Introduced into the calculation of the center point distance D, the weighted distance is obtained. For example, in 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] By simultaneously optimizing regression and classification losses using the Shape-IOU loss function, and incorporating the Shape-IOU loss into the classification loss, we obtain the IOU-Aware constraint, as shown in the formula:
[0108] ;
[0109] In the formula, It is an exponential function; The average size of the target; For image; The total number of images; For the first The bounding boxes marked in the image; For the first The number of bounding boxes labeled in the image; For the first The first image The width of each bounding box; For the first The first image The height of the bounding box; For bounding box constraints; Category constraints; The target is the true value for detection; The predicted value for target detection; The true bounding box; To predict the bounding box; This is real category information; For predicting category information.
[0110] Example 2
[0111] like Figure 2 As shown in the figure, 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] An image self-enhancement module is used to enhance the contrast of visible light and infrared images.
[0114] The preliminary fusion module is used to initially fuse visible light images and infrared light images to obtain a preliminarily fused image.
[0115] The preliminary fusion module includes a detail detection module and a convolution module. The convolution module includes an upper branch and a lower branch. The detail detection module is used to detect salient features in the visible light image and the infrared image. The convolution module is used to convolve the visible light image and the infrared image, where the upper branch is used to convolve the visible light image and the lower branch is used to convolve the infrared image. Figure 3 The diagram shown is a structural schematic of the image preprocessing module.
[0116] The progressive feature extraction and fusion module is used to extract and fuse features from the initially fused image. For example... Figure 4 The diagram shows the structure of the progressive feature extraction and fusion module.
[0117] The progressive feature extraction and fusion module includes a YOLOv5 backbone network, an adaptive spatial feature fusion module (ASFF), and a feature fusion module (RepNCSP).
[0118] The YOLOv5 backbone network is used to extract features from the preliminarily fused image to obtain three feature maps at different scales: a first feature map P2, a second feature map P3, and a third feature map P4.
[0119] The Adaptive Spatial Feature Fusion (ASFF) module 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, second feature map A3, and third feature map A4 to obtain the input feature map.
[0121] The feature fusion module (RepNCSP) includes a state space model (SSMBlock) and a bottleneck module. The state space model (SSMBlock) is used to extract global features from the first part of the feature map, and the bottleneck module is used to extract local features from the second part of the feature map.
[0122] A small object detection model is used to obtain detection results for images.
[0123] Example 3
[0124] This embodiment introduces a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the geolocation method for cross-view images described in Embodiment 1.
[0125] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0126] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0127] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0128] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0129] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for detecting small targets, characterized in that, include: Acquire visible light and infrared light images; The visible light image and infrared light image are input into a pre-trained small target detection model, and the detection results of the image are output. The processing steps of the small target detection model include: The visible light image and the infrared light image are sequentially subjected to contrast enhancement and preliminary fusion to obtain a pre-fused image; The initially fused image is then progressively feature-extracted and fused to obtain an input feature map; The detection result of the input feature map is obtained using the probe; A preliminary fusion module is used to fuse visible light and infrared light images. This preliminary fusion module includes a detail detection module and a convolution module. The convolution module includes an upper branch and a lower branch, specifically: The contrast-enhanced visible light image is passed through the detail detection module for fine-grained feature detection to obtain a visible light image with fine-grained feature detection; the visible light image with fine-grained feature detection is then convolved through the upper branch to obtain a convolved visible light image. The contrast-enhanced infrared image is convolved through the lower branch to obtain the convolved infrared image; the convolved infrared image is then passed through the detail detection module for fine-grained feature detection to obtain the fine-grained feature-detected infrared image. The convolutional visible light image and the infrared light image after fine-grained feature detection are subjected to feature interaction; Repeat the process until feature interaction is complete, resulting in a preliminarily fused image. The image after preliminary fusion is progressively fused using a progressive feature extraction and fusion module. This module includes a backbone network, an adaptive integration module, and a feature fusion module. Specifically: The features of the pre-fused image are extracted by the backbone network to obtain three different scales of first feature map P2, second feature map P3 and third feature map P4. The first feature map P2, the second feature map P3, and the third feature map P4 are integrated through the adaptive integration module to obtain the integrated first feature map A2, the second feature map A3, and the third feature map A4. The feature fusion module fuses the integrated first feature map A2, second feature map A3, and third feature map A4 to obtain the input feature map. The feature fusion module includes a state-space model and a bottleneck module; The integrated first feature map A2, second feature map A3, and third feature map A4 are divided into two parts of feature maps according to the channel dimension. The global features of the first part of the feature map are extracted using a state-space model, and the local features of the second part of the feature map are extracted using a bottleneck module. The features of the two extracted feature maps are concatenated and restored according to the channel dimension, and the global and local features are fused to obtain the input feature map.
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 infrared light image by the image self-enhancement module is as follows: ; ; ; ; In the formula, The image after contrast enhancement. , This is an infrared image with enhanced contrast. This is a visible light image with enhanced contrast. The illumination values for the image after contrast enhancement; These are the spectral values of the contrast-enhanced image; The illumination values for the image; These are the spectral values of the image; For the original image, Infrared light image; Visible light image; The incident light value of the image; It is an exponential function; For hyperparameters; This is a real image.
3. The small target detection method according to claim 1, characterized in that, The fine-grained detection of visible light and infrared images using the detail detection module includes the following steps: The difference between the visible light image and the infrared light image is calculated using the element-wise subtraction method. ; Calculating the difference map using the receptive field Feature values within the region ;like If the region is positive, then it is a salient region; otherwise, it is not. It is a hyperparameter constant.
4. The small target detection method according to claim 1, characterized in that, In the first stage, after upsampling the second feature map P3 and aligning it with the scale of 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 it with the scale of 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. After downsampling the first feature map S2 of the first stage, upsampling the feature map S4 of the second stage, and aligning it with the scale of the second feature map S3 of the first stage, adaptive feature integration is performed with the second feature map S3 of the first stage to obtain the integrated second feature map A3. After downsampling the first feature map S2 and the second feature map S3 of the first stage and aligning them with the scale of the feature map S4 of the second stage, adaptive feature integration is performed with the feature map S4 of the second stage to obtain the integrated third feature map A4.
5. The small target detection method according to claim 1, characterized in that, The training of the small object detection model includes optimizing the parameters of the small object detection model using the Shape-IOU loss function and its IOU-Aware constraints.
6. The small target detection method according to claim 5, characterized in that, The calculation formulas for the Shape-IOU loss function and its IOU-Aware constraints are as follows: ; ; ; ; In the formula, The Shape-IOU loss function; It is an exponential function; Center point of the prediction box Center point of GT box Weighted distance; The average size of the target; The shape weight of the GT box in the vertical direction; The x-coordinate of the center point of the prediction box; The x-coordinate of the center point of the GT box; The shape weight of the GT box in the horizontal direction; The ordinate of the center point of the prediction box; The ordinate of the center point of the ground truth bounding box; For image; The total number of images; For the first The bounding boxes marked in the image; For the first The number of bounding boxes labeled in the image; For the first The first image The width of each bounding box; For the first The first image The height of the bounding box; IOU-Aware constraint; For bounding box constraints; Category constraints; The target is the true value for detection; The predicted value for target detection; The true bounding box; To predict the bounding box; This is real category information; For predicting category information.
7. A small target detection system, characterized in that, include: The image acquisition module is used to acquire visible light images and infrared light images; An image self-enhancement module is used to enhance the contrast of visible light and infrared light images; The preliminary fusion module is used to initially fuse visible light images and infrared light images to obtain a preliminarily fused image. The progressive feature extraction and fusion module is used to extract and fuse features from the initially fused image; A small object detection model is used to obtain detection results for images; A preliminary fusion module is used to fuse visible light and infrared light images. This preliminary fusion module includes a detail detection module and a convolution module. The convolution module includes an upper branch and a lower branch, specifically: The contrast-enhanced visible light image is passed through the detail detection module for fine-grained feature detection to obtain a visible light image with fine-grained feature detection; the visible light image with fine-grained feature detection is then convolved through the upper branch to obtain a convolved visible light image. The contrast-enhanced infrared image is convolved through the lower branch to obtain the convolved infrared image; the convolved infrared image is then passed through the detail detection module for fine-grained feature detection to obtain the fine-grained feature-detected infrared image. The convolutional visible light image and the infrared light image after fine-grained feature detection are subjected to feature interaction; Repeat the process until feature interaction is complete, resulting in a preliminarily fused image. The image after preliminary fusion is progressively fused using a progressive feature extraction and fusion module. This module includes a backbone network, an adaptive integration module, and a feature fusion module. Specifically: The features of the pre-fused image are extracted by the backbone network to obtain three different scales of first feature map P2, second feature map P3 and third feature map P4. The first feature map P2, the second feature map P3, and the third feature map P4 are integrated through the adaptive integration module to obtain the integrated first feature map A2, the second feature map A3, and the third feature map A4. The feature fusion module fuses the integrated first feature map A2, second feature map A3, and third feature map A4 to obtain the input feature map. The feature fusion module includes a state-space model and a bottleneck module; The integrated first feature map A2, second feature map A3, and third feature map A4 are divided into two parts of feature maps according to the channel dimension. The global features of the first part of the feature map are extracted using a state-space model, and the local features of the second part of the feature map are extracted using a bottleneck module. The features of the two extracted feature maps are concatenated and restored according to the channel dimension, and the global and local features are fused to obtain the input feature map.
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
