Remote sensing target detection method based on background separation and small target reuse strategy
By embedding a localization attention module and a small target reuse strategy into the YOLOX network, combined with background separation technology, the problem of low target detection accuracy in remote sensing images is solved, and more efficient remote sensing target detection is achieved.
Patent Information
- Application Number
- CN202311829396.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Existing technologies for target detection in remote sensing images suffer from low accuracy, high computational cost, and failure to effectively separate targets from the background, especially for small targets.
Using the YOLOX object detection network as the baseline model, we embed a localization attention module and a small object reuse strategy, and combine it with a background separation strategy. Through feature map compensation fusion and background noise suppression, we enhance the feature representation capability.
It improves the accuracy and speed of remote sensing target detection, enables better detection of small targets, reduces background noise interference, and enhances detection performance.
Smart Images

Figure CN117789031B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of target detection technology, and more specifically, relates to a remote sensing target detection method based on background separation and small target reuse strategy. Background Technology
[0002] With the rapid development of aerospace technology and deep learning, acquiring high-resolution, large-scale remote sensing image data has become much easier. Remote sensing target detection aims to determine the location and category of targets in images, and it has significant implications and wide applications in military, maritime, and agricultural fields. However, achieving higher detection accuracy while maintaining faster detection speeds remains a pressing issue that needs to be addressed.
[0003] Currently, widely used object detection methods are mainly divided into two categories: one-stage and two-stage. Two-stage methods are region-based algorithms that divide object detection into two stages: detection and recognition. First, an algorithm or network searches for regions of interest in the image, and then identifies the objects within those regions. Examples include R-CNN, Fast-RCNN, and Faster-RCNN. One-stage methods, on the other hand, are end-to-end algorithms that use regression to directly generate the object's class probability and location coordinates, achieving both detection and recognition. Examples include YOLO and SSD. One-stage methods are significantly faster than two-stage methods, but their accuracy is relatively lower.
[0004] Unlike natural scene images, remote sensing images typically suffer from large scale variations, complex backgrounds, and weak target information. Directly applying natural scene target detection methods to remote sensing image target detection tasks does not yield satisfactory results. Furthermore, the high resolution and large image size increase the computational cost of the algorithm. In recent years, many researchers have focused on generating high-quality features by constructing and aggregating multi-scale features. CHEN et al. used a weighted fusion method to fuse different feature layers in an improved feature fusion network, achieving higher accuracy; however, this introduced a large number of parameters, resulting in poor real-time performance. DONG et al. integrated local and global contextual information into a feature pyramid to address the problem of complex backgrounds in remote sensing images, but they did not consider the correlation between feature maps. CHENG et al. proposed a multi-scale feature aggregation module, which achieves information fusion and interaction by aggregating feature maps of different scales, but also introduces a significant amount of noise.
[0005] In summary, existing technologies, when addressing the issues of low detection accuracy for remote sensing targets in complex backgrounds and for small targets, do not consider the correlation between different feature layers, the computational cost of the model, or the separation of the target from the background.
[0006] Currently, one-stage algorithms have achieved comparable accuracy to two-stage algorithms. The YOLO algorithm series is a representative one-stage algorithm, while the YOLOX algorithm is a target detection network that balances speed and accuracy. However, compared to the R-CNN series of target detection methods, it has lower accuracy in identifying object locations and lower recall. Therefore, designing an algorithm suitable for target detection in remote sensing images that maintains both high accuracy and speed remains a challenge. Summary of the Invention
[0007] The purpose of this invention is to overcome the shortcomings of the prior art and provide a remote sensing target detection method based on background separation and small target reuse strategy, which enhances the feature representation ability of the target detection network and effectively improves the accuracy of remote sensing target detection.
[0008] To achieve the above-mentioned objectives, the present invention provides a remote sensing target detection method based on background separation and small target reuse strategies, characterized by comprising the following steps:
[0009] (1) Construct a remote sensing image dataset;
[0010] Download multiple remote sensing images, crop each image to a uniform size, and then perform data augmentation processing on each cropped image, specifically including random scaling, random cropping, and random arrangement to stitch them together, thereby obtaining a remote sensing image dataset.
[0011] (2) Construct a target detection network;
[0012] The YOLOX object detection network was used as the baseline model. A localization attention module was then embedded into the last two layers of the baseline model's backbone network to obtain an improved backbone network. After the remote sensing image was input into the backbone network, four feature maps were output, denoted as...
[0013] Next, the output of the backbone network The input is fed into the enhanced feature extraction module, where feature enhancement is performed first to obtain feature maps F1, F2, F3, and F4. Then, target enhancement processing is performed through small target reuse and background separation strategies. Finally, the enhanced target map is sent to the detection head to obtain the detection result.
[0014] The localization attention module is divided into horizontal and vertical branches. The vertical branch adjusts the number of channels through a 1*1 convolution to obtain the vertical output. The horizontal branch first performs a 1*1 convolution to obtain the horizontal input, and then performs a 3*3 convolution before and after the channel attention module to obtain a new attention feature map. Then, it is element-wise added to the horizontal input to obtain the horizontal output. After obtaining the horizontal and vertical outputs, the outputs in the two directions are multiplied by a matrix, and then dimensionality is reduced using a 1*1 convolution to obtain the final output of the localization attention module.
[0015] In the enhanced feature extraction module, the small target reuse strategy is first invoked to combine feature maps F1, F2, F3, and F4 with... The three feature maps are combined into three groups, and the specific combination method is as follows: ( F1,F2), ( F2, F3), ( F3, F4);
[0016] by( Taking F1 and F2 as examples, the small target reuse strategy first adjusts the number of channels of F2 through a 3*3 convolution, and then activates it through the Sigmoid activation function to obtain the feature map. Will First, perform matrix multiplication with F1, then combine the result with... A matrix concatenation operation is performed to obtain a composite semantic feature map; finally, the composite semantic feature map is subjected to channel shuffling and 1×1 convolution operation to obtain the compensated and fused output feature map F.
[0017] Similarly, the other two groups ( F2, F3), ( F3 and F4) are processed in the same way to finally obtain three compensated and fused output feature maps;
[0018] The background separation strategy is called to separate the background of the three compensated and fused output feature maps respectively: the edge pixels in the output feature map F are regarded as the background, the pixel value of the background part is set to 1, and the pixel value of other regions is set to 0 to obtain the edge map; the edge map and the output feature map F are first multiplied by matrix, and then global average pooling is performed to obtain the background map Bs;
[0019] Subtracting the background image Bs from the output feature image F yields the initial target image. After the initial target map is passed through the confidence function f, the target map at the given confidence level is obtained. Target image After performing matrix multiplication with the output feature map F, summation is performed again with the output feature map F to obtain the final output target map Ff;
[0020] Similarly, the other two compensated and fused output feature maps are processed in the same way to finally obtain three target maps;
[0021] Finally, the three target images are input into the detection head to detect the final target;
[0022] (3) Training the target detection network;
[0023] The entire training process is divided into two parts. The first part uses frozen training, which means that the backbone network is not trained first, but other parts of the object detection network are trained to achieve a fine-tuning of the object detection network. The second part uses unfrozen training, which means that the backbone network is unfrozen and then the entire object detection network is trained. Finally, the object detection network is trained using a remote sensing image dataset until convergence, resulting in the trained object detection network.
[0024] (4) Remote sensing target detection;
[0025] The remote sensing image to be detected is input into the trained target detection network, which then directly outputs the detected target.
[0026] The objective of this invention is achieved as follows:
[0027] This invention presents a remote sensing target detection method based on background separation and small target reuse strategies. Using the YOLOX target detection network as a baseline model, a localization attention module is embedded in the last two layers of the baseline model's backbone network. This embeds effective localization attention into a depth feature map with more channels, and uses one-dimensional convolution operations to locate channels effective for the detection task. Furthermore, a small target reuse strategy compensates for the fusion operation, achieving the reuse and compensation of weak target information. Simultaneously, a background separation strategy separates the foreground and background, highlighting features of interest and suppressing background noise. Finally, the final result is predicted using three-scale detection heads. This not only enhances the feature representation capability of the target detection network but also effectively improves the accuracy of remote sensing target detection. Attached Figure Description
[0028] Figure 1 This is a flowchart of the remote sensing target detection process based on the background separation and small target reuse strategy of this invention;
[0029] Figure 2 This is a diagram of the object detection network structure;
[0030] Figure 3 This is a diagram of the positioning and attention module structure;
[0031] Figure 4 This is a flowchart of the small goal reuse strategy;
[0032] Figure 5 This is a flowchart of the background separation strategy;
[0033] Figure 6 This is a map showing the results of remote sensing target detection. Detailed Implementation
[0034] The specific embodiments of the present invention will now be described with reference to the accompanying drawings to enable those skilled in the art to better understand the invention. It should be particularly noted that in the following description, detailed descriptions of known functions and designs that might obscure the main content of the invention will be omitted here.
[0035] Example
[0036] Figure 1 This is a flowchart of the remote sensing target detection process based on the background separation and small target reuse strategy of this invention.
[0037] In this embodiment, as Figure 1 As shown, the present invention provides a remote sensing target detection method based on background separation and small target reuse strategy, comprising the following steps:
[0038] S1. Construct a remote sensing image dataset;
[0039] Download multiple remote sensing images, crop each image to 640*640 pixels; then perform data augmentation on each cropped remote sensing image to obtain a remote sensing image dataset.
[0040] In this embodiment, the data augmentation employs the mosaic data augmentation method, specifically including:
[0041] (1) Select four more images randomly, and randomly select the coordinates of the image stitching reference point;
[0042] (2) Based on the reference point, the four images are adjusted in size and scaled proportionally, and then placed in the upper left, upper right, lower left, and lower right positions of the large image of the specified size.
[0043] (3) Map the relationships to the image tags according to the size transformation method of each image;
[0044] (4) Based on the specified horizontal and vertical coordinates, stitch the large image together and process the coordinates of the detection boxes that exceed the boundaries;
[0045] S2. Construct a target detection network;
[0046] like Figure 2 As shown, the YOLOX object detection network is used as the baseline model. Then, a localization attention module is embedded into the last two layers of the baseline model's backbone network to obtain the improved backbone network. After the remote sensing image is input into the backbone network, four feature maps are output, denoted as... The resolutions are 20*20*1024, 40*40*512, 80*80*256, and 160*160*128.
[0047] Next, the output of the backbone network The input is fed into the enhanced feature extraction module, where it is first enhanced using a feature pyramid to obtain the feature map F1∈R. 160×160×128 F2∈R 80×80×256 F3∈R 40×40×512 ,
[0048] F4∈R 20×20×1024 Then, target enhancement processing is performed through small target reuse and background separation strategies. Finally, the enhanced target image is sent to the detection head to obtain the detection result.
[0049] Among them, such as Figure 3 As shown, the localization attention module is divided into horizontal and vertical branches. The vertical branch adjusts the number of channels through a 1*1 convolution to obtain the vertical output. The horizontal branch first performs a 1*1 convolution to obtain the horizontal input, and then performs a 3*3 convolution before and after the channel attention module to obtain a new attention feature map. Then, it is element-wise added to the horizontal input to obtain the horizontal output. After obtaining the horizontal and vertical outputs, the outputs in the two directions are multiplied by a matrix, and then dimensionality is reduced using a 1*1 convolution to obtain the final output of the localization attention module.
[0050] In the enhanced feature extraction module, the small target reuse strategy is first invoked to combine feature maps F1, F2, F3, and F4 with... The three feature maps are combined into three groups, and the specific combination method is as follows: ( F1,F2), ( F2, F3), ( F3, F4);
[0051] by( For example, F1, F2) Figure 4 As shown, the small target reuse strategy first adjusts the number of channels of F2 through a 3*3 convolution, and then activates it through the Sigmoid activation function to obtain the feature map. Will First, perform matrix multiplication with F1, then combine the result with... A matrix concatenation operation is performed to obtain a composite semantic feature map; finally, the composite semantic feature map is subjected to channel shuffling and 1×1 convolution operation to obtain the compensated and fused output feature map F.
[0052] Similarly, the other two groups ( F2, F3), ( F3 and F4) are processed in the same way, and finally three compensated and fused output feature maps are obtained, with resolutions of 80*80*256, 40*40*51 and 20*20*1024 respectively.
[0053] The background separation strategy is called to perform background separation on the three compensated and fused output feature maps respectively: such as Figure 5 As shown, edge pixels in the output feature map F are considered as background, with pixel values in the background area set to 1 and pixel values in other areas set to 0, resulting in an edge map. The edge map is then multiplied by the output feature map F, followed by global average pooling, to obtain the background map B. s ;
[0054] Background image B s Subtracting the output feature map F from the initial target map yields the initial target map. After the initial target map is passed through the confidence function f, the target map at the given confidence level is obtained. Target image After performing matrix multiplication with the output feature map F, summing it again with the output feature map F yields the final output target map F. f ;
[0055] Similarly, the other two compensated and fused output feature maps are processed in the same way to finally obtain three target maps;
[0056] The three target images are input into the detection head to detect the final target;
[0057] S3, Training the target detection network;
[0058] The entire training process is divided into two parts. The first part uses frozen training, which means that the backbone network is not trained first, but other parts of the object detection network are trained to achieve a fine-tuning of the object detection network. The second part uses unfrozen training, which means that the backbone network is unfrozen and then the entire object detection network is trained.
[0059] In this embodiment, during the frozen training phase, the batch size is set to 16, the learning rate is 0.001, and the stochastic gradient descent algorithm is used to optimize the model. The latter part uses unfrozen training, which involves unfreezing the backbone network and training the entire YOLOX network model. All parameters in the network will change. During the unfrozen training phase, the batch size is set to 8, the learning rate is 0.0001, and the stochastic gradient descent algorithm is still used to optimize the model.
[0060] Before formal training begins, to expedite the training process, the backbone network can be trained on the general object detection dataset VOC2007. This allows the model to converge faster and yields better training results. Throughout the training process, a weight file is saved after each epoch. The relevant experimental parameters are shown in Table 1 below.
[0061] Table 1. Relevant experimental parameters;
[0062]
[0063]
[0064] Finally, the target detection network is trained using the remote sensing image dataset until it converges, resulting in the trained target detection network.
[0065] S4. Remote sensing target detection;
[0066] The remote sensing image to be detected is input into the trained target detection network, which then directly outputs the detected target.
[0067] Simulation verification
[0068] To verify the effectiveness of each improvement strategy, ablation experiments were further conducted, as shown in Table 2. The baseline model was set as YOLOX, and we validated each proposed module based on this. The evaluation metric for comparison was mAP (mean accuracy). We observed that each module improved its mAP compared to the baseline model.
[0069] Table 2 Ablation experiments;
[0070] Group benchmark Effective positioning of attention Small goal reuse strategy Background separation strategy mAP Group 1 √ 92.3 Group 2 √ √ 93.4 Group 3 √ √ 93.5 Group 4 √ √ 93.3 Group 5 √ √ √ 93.6 Group 6 √ √ √ 93.7 Group 7 √ √ √ 93.9 Group 8 √ √ √ √ 94.2
[0071] To compare the performance of our proposed model, we also conducted comparative experiments with other models, using training time, FPS (frames per second), and mAP as evaluation metrics. The experimental results demonstrate the effectiveness of our method.
[0072] Table 3 Comparative Experiments
[0073] Serial Number Network Model Training time FPS mAP 1 Ours 1.1 hours 13.0 94.2 2 Faster-RCNN 4.9 hours 5.6 76.4 3 Mask-RCNN 5.0 hours 5.1 83.9
[0074] In addition, we also conducted a visualization experiment of the test results, the visualization results of which are as follows: Figure 6 As shown, the detection results demonstrate that our method is effective for small targets. More importantly, our model can detect objects that other detection methods cannot. It can be seen that our method can successfully detect targets similar to the background, such as bridges, vehicles, and baseball fields, as well as small targets like basketball courts and vehicles.
[0075] Although the illustrative specific embodiments of the present invention have been described above to enable those skilled in the art to understand the invention, it should be understood that the invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions utilizing the concept of the present invention are protected.
Claims
1. A remote sensing target detection method based on background separation and small target reuse strategy, characterized in that, Includes the following steps: (1) Construct a remote sensing image dataset; Download multiple remote sensing images, crop each image to a uniform size, and then perform data augmentation processing on each cropped image, specifically including random scaling, random cropping, and random arrangement to stitch them together, thereby obtaining a remote sensing image dataset. (2) Constructing an object detection network; The YOLOX object detection network was used as the baseline model. A localization attention module was then embedded into the last two layers of the baseline model's backbone network to obtain an improved backbone network. After the remote sensing image was input into the backbone network, four feature maps were output, denoted as... The resolutions are 20*20*1024, 40*40*512, 80*80*256, and 160*160*128, respectively. Next, the output of the backbone network The input is fed into the enhanced feature extraction module, where feature enhancement is performed first to obtain the feature map. ,in, , , , Then, target enhancement processing is performed through small target reuse and background separation strategies. Finally, the enhanced target image is sent to the detection head to obtain the detection result. The localization attention module includes horizontal and vertical branches. The vertical branch adjusts the number of channels through a 1x1 convolution to obtain the vertical output. The horizontal branch first performs a 1x1 convolution to obtain the horizontal input, then performs a 3x3 convolution before and after the channel attention module to obtain a new attention feature map. This new feature map is then element-wise added to the horizontal input to obtain the horizontal output. After obtaining the horizontal and vertical outputs, the two outputs are multiplied by a matrix, and then dimensionality is reduced using a 1x1 convolution to obtain the final output of the localization attention module. In the enhanced feature extraction module, the small target reuse strategy is first invoked to reuse the feature map. and The three feature maps are combined into three groups, and the specific combination method is as follows: , , ; by For example, the small goal reuse strategy first... The number of channels is adjusted by using a 3x3 convolution, and then activated by the Sigmoid activation function to obtain the feature map. ;Will and First perform matrix multiplication, then combine the result with... A matrix concatenation operation is performed to obtain a composite semantic feature map; finally, the composite semantic feature map is subjected to channel shuffling and a 1×1 convolution operation to obtain the compensated and fused output feature map. ; Similarly, the other two groups , The same process is performed to obtain three compensated and fused output feature maps. The background separation strategy is applied to separate the background from the three compensated and fused output feature maps: the output feature maps are then separated. Edge pixels in the image are considered as background. Background pixels are set to 1, while pixels in other areas are set to 0, resulting in an edge map. The edge map is then compared with the output feature map. First, perform matrix multiplication, then perform global average pooling to obtain the background image. ; Background image With output feature map By subtracting the matrices, we obtain the initial target map. The initial target map is obtained through a confidence function. Then, the target map under the confidence level is obtained. Target image With output feature map After performing matrix multiplication, it is then compared with the output feature map. Summing yields the final output target graph. ; Similarly, the other two compensated and fused output feature maps are processed in the same way to finally obtain three target maps; The three target images are input into the detection head to detect the final target; (3) Training the target detection network; The entire training process is divided into two parts. The first part uses frozen training, which means that the backbone network is not trained first, but other parts of the object detection network are trained to achieve a fine-tuning of the object detection network. The second part uses unfrozen training, which means that the backbone network is unfrozen and then the entire object detection network is trained. Finally, the object detection network is trained using a remote sensing image dataset until convergence, resulting in the trained object detection network. (4) Remote sensing target detection; The remote sensing image to be detected is input into the trained target detection network, which then directly outputs the detected target.
