Diffusion model-based remote sensing image ship target detection and identification method
By using the multi-scale feature fusion method of diffusion model and channel mixed feature pyramid network CF-FPN in ship target detection in remote sensing images, the problem of low efficiency in ship target detection in complex background environments is solved and the detection accuracy is significantly improved.
Patent Information
- Application Number
- CN202410765685.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing remote sensing image ship target detection technology has low detection efficiency in complex background environments, and it is difficult to quickly and accurately identify ship targets, especially in large-scale remote sensing images with a small proportion of ship targets, large background interference, and different target sizes. situation.
A remote sensing image ship target detection method based on the diffusion model is used, using the DiffusionDet network structure under the mmdetection framework, combined with the feature pyramid network CF-FPN with channel mixing for multi-scale feature fusion, and using the image encoder to generate feature maps and perform rectangular frame Adjust to improve detection accuracy.
The accuracy of ship target detection and recognition in remote sensing images is improved. The mean average accuracy (mAP0.5) is increased by 5.8 percentage points, and the maximum average accuracy (APMax) and minimum average accuracy (APMin) are increased by 4.4 and 8.8 percentage points respectively.
Smart Images

Figure CN118608967A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target detection and recognition based on deep learning, and specifically provides a method for detecting and recognizing ship targets in remote sensing images based on a diffusion model. Background Art
[0002] With the rapid development of remote sensing satellite technology, the detection and identification of ship targets in remote sensing images is a hot topic in the current remote sensing field, which is of great significance both in civil and military fields. In civil fields, it can effectively supervise the order of maritime navigation and warn of potential risks by real-time monitoring of the location and operation status of various ships, thereby preventing the occurrence of maritime traffic accidents and ensuring the safety of seafarers and cargo. It can also monitor the location and fishing conditions of fishing vessels, such as the catch and area, to understand the dynamic changes in fishing grounds, effectively supervise and guide the fishing behavior of fishing vessels, and achieve sustainable utilization and effective management of fishery resources. In military fields, it can improve the level of maritime vigilance and supervise the safety of the sea area by monitoring the movements of ships of the country and neighboring countries; use monitoring technology to warn of possible maritime invasions and safeguard the country's important maritime facilities and territorial sovereignty. It can also provide important intelligence support for military operations and play an important role in emergency work such as maritime search and rescue.
[0003] In recent years, deep learning has made breakthrough progress in areas such as image recognition and target detection. Introducing its technology into remote sensing monitoring data processing can improve existing problems in the following aspects: First, using a large amount of labeled data to train deep learning models can improve the recognition accuracy of small targets and specific targets, making up for the shortcomings of traditional remote sensing that are difficult to achieve high-definition monitoring due to resolution limitations. Secondly, the multi-source data fusion method based on deep learning can effectively reduce the impact of factors such as weather on image quality and improve the robustness of the monitoring system. The advantages of deep learning in big data processing are also expected to improve the real-time response capabilities of remote sensing monitoring systems. At the same time, optimizing the data processing process through deep learning can reduce monitoring costs to a certain extent.
[0004] At present, remote sensing image ship target detection technology is mainly divided into the following four categories:
[0005] 1. Template matching based method;
[0006] 2. Methods based on visual saliency;
[0007] 3. Methods based on traditional machine learning;
[0008] 4. Methods based on deep learning.
[0009] Based on the template matching method, the template matching method generally builds a ship prior template library based on the characteristic information such as the shape and contour of the ship target, and then uses strategies such as sliding windows to traverse the image for regional matching to locate the ship target area. Due to the use of prior templates, the image area search strategy also uses a less efficient traversal strategy, so there are problems such as low detection efficiency and inflexible detection of ship targets and backgrounds.
[0010] Based on the method of visual saliency, visual saliency mainly uses the differences in brightness, color, texture, etc. between the object of interest and the surrounding background to achieve the purpose of quickly screening suspected target areas. This step can filter out most of the sea surface area, quickly and roughly locate the ship target, and increase the efficiency of the detection model. The currently introduced visual saliency models are all designed based on natural images, with low resolution of saliency maps and blurred target edges. In addition, visual saliency can only screen out suspected target areas, and additional target identification processes need to be designed to further eliminate false alarms.
[0011] Based on the traditional machine learning method, the traditional machine learning ship target detection method draws on the general target detection idea, uses a sliding window to slide in the test image, and then extracts the manually designed features, which are input into the trained classifier to output whether the sliding window contains the target. Although the machine learning-based method is strong in distinguishing between targets and backgrounds, the exhaustive search based on sliding windows has several disadvantages. First, due to the uncertain size and aspect ratio of ship targets, multi-scale and multi-aspect ratio windows are needed to increase the detection accuracy, resulting in a large number of test windows and a relatively time-consuming model. Secondly, in large optical remote sensing images, ship targets account for a small proportion, and only a small number of windows contain real targets, resulting in low detection efficiency.
[0012] Compared with traditional ship detection and recognition methods, deep learning-based ship target detection is more suitable for target detection and recognition in complex scenarios. Deep learning models can be trained with a large amount of sample data, have better feature extraction capabilities and stronger generalization capabilities for targets, and the model is easy to maintain. When subsequent samples continue to accumulate, the detection and recognition efficiency can be improved by retraining the model without redesigning the model. However, deep learning methods require a large amount of training data and a complex training phase, and rely on graphics processing units (GPUs) and parallel operations.
[0013] The remote sensing ship images currently obtained have the following characteristics:
[0014] In large-scale remote sensing images, ship targets usually only account for a small part. Redundant and complex background environment interference poses a huge challenge to ship target detection. In addition, there is a large difference in scale between different types of ships, and there is a problem of dense arrangement of ships in nearshore waters.
[0015] Due to the characteristics of visible light remote sensing images such as wide coverage, complex background and vertical viewing angle, ship targets are faced with complex background environment interference and different target sizes. Under this condition, being able to quickly and accurately detect ship targets has become an urgent problem to be solved. Summary of the invention
[0016] In view of the deficiencies of the prior art, the present invention provides a method for detecting and identifying ship targets in remote sensing images based on a diffusion model, which solves the problems raised in the above-mentioned background technology.
[0017] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:
[0018] A method for detecting and identifying ship targets in remote sensing images based on a diffusion model comprises the following steps:
[0019] S1: operating environment platform and data set format; mmdetection framework based on Python version of DiffusionDet network structure, the data set format used is HRSC2016 in coco format;
[0020] S2: Take the original remote sensing image with the truth box as input, sample the noise from the standard Gaussian distribution, add it to the input image, and get a noise image that conforms to the Gaussian distribution;
[0021] S3: Input the original remote sensing image with the true value frame into the backbone network to extract features;
[0022] S4: Use the feature pyramid network CF-FPN with channel mixing to perform multi-scale feature fusion on the feature map;
[0023] S5: The detection decoder takes a set of proposal boxes and the ground-truth boxes with Gaussian noise as input and crops the region of interest from the feature map generated by the image encoder;
[0024] S6: Pass the uniform-sized rectangular box through the fully connected layer to obtain a fixed-size feature vector;
[0025] S7: using the cascade concept to adjust the size of the output rectangular frame to obtain the coordinates of the adjusted rectangular frame;
[0026] S8: Finally, two fully connected layers are used to predict the category and coordinates of the ship target to obtain the regression and classification results of the bounding box.
[0027] Furthermore, the specific process of the feature pyramid network CF-FPN with channel mixing in S4 for multi-scale feature fusion of feature maps is as follows: first, the feature maps of the {M2, M3, M4, M7} stages extracted by the backbone network are used as input, 1×1 convolution is performed on these feature maps, feature maps of different resolutions are upsampled and fused with the previous feature maps, and then 3×3 convolution is performed, and then the G module composed of global average pooling, 1×1 convolution, group normalization, ReLU activation function and 1×1 convolution is used to realize information interaction between different channels of the input feature map, and it is fused with the feature map after 3×3 convolution, and finally the feature maps of these four stages are fused from bottom to top to obtain feature map F5. The entire feature fusion part is put together to assemble into a module, and the entire network structure is assembled in units of modules.
[0028] Furthermore, the G module in S4 can fully improve the information interaction capability between different channels, and introduce a bottom-up structure into the network to fully integrate the target characteristics of ships of different scales.
[0029] Furthermore, the hardware platform in S1 is a computer with Ubuntu 20.04.3 system (GNU / Linux 5.13.0-44-generic x86_64) and NVIDIA GeForce RTX 3090 high-performance graphics card.
[0030] The present invention is designed on the basis of DiffusionDet. By improving its image encoder part, the feature pyramid network CF-FPN with channel mixing is introduced to perform multi-scale feature fusion on the feature map, so as to achieve structural improvement of the image encoder part, thereby effectively improving the detection and recognition accuracy of ship targets in remote sensing images, and can increase the mean average precision value (mAP0.5) by 5.8 percentage points and the maximum average precision (AP Max ) and minimum average precision (AP Min ) increased by 4.4 percentage points and 8.8 percentage points respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of the overall structure of the present invention;
[0032] Figure 2 It is a schematic diagram of the CF-FPN module of the present invention;
[0033] Figure 3 The original image of the remote sensing ship image of the present invention;
[0034] Figure 4 It is the detection and recognition result diagram of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Example
[0037] like Figure 1-4 As shown, one embodiment of the present invention proposes a remote sensing image ship target detection and recognition method based on a diffusion model, comprising the following steps:
[0038] S1: operating environment platform and data set format; mmdetection framework based on Python version of DiffusionDet network structure, the data set format used is HRSC2016 in coco format;
[0039] S2: Take the original remote sensing image with the truth box as input, sample the noise from the standard Gaussian distribution, add it to the input image, and get a noise image that conforms to the Gaussian distribution;
[0040] S3: Input the original remote sensing image with the true value frame into the backbone network to extract features;
[0041] S4: Use the feature pyramid network CF-FPN with channel mixing to perform multi-scale feature fusion on the feature map extracted by the backbone network to obtain a multi-scale feature map.
[0042] S5: The detection decoder takes a set of proposal boxes and the ground-truth boxes with Gaussian noise as input and crops the region of interest from the feature map generated by the image encoder;
[0043] S6: Pass the uniform-sized rectangular box through the fully connected layer to obtain a fixed-size feature vector;
[0044] S7: using the cascade concept to adjust the size of the output rectangular frame to obtain the coordinates of the adjusted rectangular frame;
[0045] S8: Finally, two fully connected layers are used to predict the category and coordinates of the ship target, and the regression and classification results of the bounding box are obtained, as shown in the attached manual. Figure 4 The detection and recognition results are shown in Figure 2.
[0046] like Figure 2As shown, in some embodiments, the specific process of the feature pyramid network CF-FPN with channel mixing in S4 for multi-scale feature fusion of feature maps is: first, the feature maps of the {M2, M3, M4, M7} stages extracted by the backbone network are used as input, 1×1 convolution is performed on these feature maps, feature maps of different resolutions are upsampled and fused with the previous feature maps, and then 3×3 convolution is performed, and then the input feature map is realized through the G module composed of global average pooling, 1×1 convolution, group normalization, ReLU activation function and 1×1 convolution to interact with different channels, and fused with the feature map after 3×3 convolution, and finally the feature maps of these four stages are fused from bottom to top to obtain feature map F5. The entire feature fusion part is put together to assemble into a module, and the entire network structure is assembled in units of modules.
[0047] like Figure 2 As shown, in some embodiments, the G module in S4 can fully improve the information interaction capability between different channels, and introduce a bottom-up structure into the network to fully integrate the target features of ships of different scales.
[0048] In some embodiments, the hardware platform in S1 is a computer with Ubuntu 20.04.3 system (GNU / Linux5.13.0-44-generic x86_64) and NVIDIA GeForce RTX 3090 high-performance graphics card.
[0049] The data set is input into the network of the present invention, and the remote sensing image ship target detection and recognition results are obtained by using the structure improvement method. Figure 4 As shown in the figure, under the same parameter configuration, integrating CF-FPN and LSFEM into the image encoder of DiffusionDet can improve the precision and accuracy of network detection and recognition to a certain extent.
[0050] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting and identifying ship targets in remote sensing images based on a diffusion model, characterized in that : Includes the following steps: S1: operating environment platform and data set format; mmdetection framework based on Python version of DiffusionDet network structure, the data set format used is HRSC2016 in coco format; S2: Take the original remote sensing image with the truth box as input, sample the noise from the standard Gaussian distribution, add it to the input image, and get a noise image that conforms to the Gaussian distribution; S3: Input the original remote sensing image with the true value frame into the backbone network to extract features; S4: Use the feature pyramid network CF-FPN with channel mixing to perform multi-scale feature fusion on the feature map; S5: The detection decoder takes a set of proposal boxes and the ground-truth boxes with Gaussian noise as input and crops the region of interest from the feature map generated by the image encoder; S6: Pass the uniform-sized rectangular box through the fully connected layer to obtain a fixed-size feature vector; S7: using the cascade concept to adjust the size of the output rectangular frame to obtain the coordinates of the adjusted rectangular frame; S8: Finally, two fully connected layers are used to predict the category and coordinates of the ship target to obtain the regression and classification results of the bounding box.
2. The method for detecting and identifying ship targets in remote sensing images based on a diffusion model according to claim 1 is characterized in that : The specific process of multi-scale feature fusion of feature maps by the feature pyramid network CF-FPN with channel mixing in S4 is as follows: first, the feature maps of the {M2, M3, M4, M7} stages extracted by the backbone network are used as input, 1×1 convolution is performed on these feature maps, feature maps of different resolutions are upsampled and fused with the previous feature maps, and then 3×3 convolution is performed, and then the information interaction between different channels of the input feature map is realized through the G module composed of global average pooling, 1×1 convolution, group normalization, ReLU activation function and 1×1 convolution, and the feature map is fused with the feature map after 3×3 convolution, and finally the feature maps of these four stages are fused from bottom to top to obtain the feature map F5; the entire feature fusion part is put together to assemble into a module, and the entire network structure is assembled in modules.
3. The method for detecting and identifying ship targets in remote sensing images based on a diffusion model according to claim 2 is characterized in that :The G module in S4 can fully improve the information interaction capability between different channels, introduce a bottom-up structure into the network, and fully integrate the characteristics of ship targets of different scales.
4. The method for detecting and identifying ship targets in remote sensing images based on a diffusion model according to claim 1, characterized in that :The hardware platform of S1 is a computer with Ubuntu 20.04.3 system and NVIDIA GeForce RTX 3090 high-performance graphics card.
Citation Information
Cited By
Remote sensing target detection method based on diffusion model
CN119152285A
A remote sensing target detection method based on diffusion model
CN119152285B
