A method for day and night cloud detection in remote sensing images based on multi-scale feature fusion
Through the multi-scale feature fusion method of deep convolutional network, the problem of misjudgment of cloud detection and cloud boundary identification in night-light remote sensing images in remote sensing images is solved, and the cloud detection accuracy and boundary segmentation effect are improved, especially under light interference conditions.
Patent Information
- Application Number
- CN202410985451.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Existing remote sensing image cloud detection methods have problems with misjudgment and unclear cloud boundary identification in night-light remote sensing images. Especially under light interference conditions, it is difficult to effectively detect clouds.
A multi-scale feature fusion method based on deep convolutional networks is used to construct a cloud detection network model through the residual coding module, large-scale light filtering module, multi-scale cloud texture adaptive decoding module and boundary information recovery fusion module to extract multi-scale features and optimize parameters to improve cloud detection accuracy.
It has significantly improved the cloud detection performance of remote sensing images in complex environments, especially under conditions of day and night changes and light interference, providing more accurate cloud detection results and effectively distinguishing clouds from artificial light sources.
Smart Images

Figure CN118521918B
Abstract
Description
Technical Field
[0001] The invention relates to the field of remote sensing image cloud detection, and is a remote sensing image day and night cloud detection method based on multi-scale feature fusion. Background Art
[0002] Since the launch of the first remote sensing satellite, remote sensing satellites have been mainly used for earth observation during the day, and daytime remote sensing images have long played an important role in the national economy and people's livelihood. In recent years, with the development of satellite sensor technology, remote sensing satellites equipped with high-sensitivity imaging sensors can observe the earth at night and obtain night-light remote sensing images, which can supplement daytime remote sensing images and achieve "all-day" earth observation. Night-light remote sensing images are widely used in many aspects such as urban monitoring, carbon emission assessment and post-disaster assessment, and they play a pivotal role and provide an important source of data for our lives. However, since night-light remote sensing satellites are equipped with optical sensors, they cannot pass through clouds to obtain ground information like radar sensors, so night-light remote sensing images, like daytime remote sensing images, are affected by clouds.
[0003] Therefore, cloud detection is a key step in remote sensing image data preprocessing, and cloud detection accuracy plays a very important role in the application of night-light remote sensing images. Although the detection accuracy of deep learning methods is much higher than that of traditional algorithms, there is little exploration of night-light cloud detection in existing methods, and there are also problems such as misjudgment of lights and unclear recognition of cloud boundaries. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a remote sensing image day and night cloud detection method based on multi-scale feature fusion.
[0005] In order to achieve the purpose of the present invention, we will adopt the following technical solutions to implement:
[0006] A remote sensing image day and night cloud detection method based on multi-scale feature fusion, comprising the following steps:
[0007] S1. Obtain cloud-containing remote sensing images, construct a cloud mask dataset by manual annotation, and divide the cloud mask dataset into a training set and a test set;
[0008] S2. Use a deep convolutional network to construct a cloud detection network model for day and night remote sensing images. The cloud detection network model is composed of a residual coding module, a large-scale light filtering module, a multi-scale cloud texture adaptive decoding module, and a boundary information recovery and fusion module, wherein:
[0009] The residual coding module is constructed by the deep residual network ResNet-50, which is used to encode and downsample the input cloud-containing remote sensing image and extract multi-scale features to obtain a multi-scale feature map;
[0010] The large-scale light filtering module is composed of a multi-scale spatial pyramid and a light feature distinguishing module, wherein the multi-scale spatial pyramid extracts multi-level features from the multi-scale feature map input from the residual coding module through a dilated convolution layer with different expansion rates and a global pooling operation to obtain a multi-level feature map; the light feature distinguishing module is used to filter the multi-level feature map input from the multi-scale spatial pyramid to distinguish the regular texture of the artificial light source and the random texture of the cloud to obtain a light filtering feature map;
[0011] A multi-scale cloud texture adaptive decoding module recognizes and reconstructs the light filtering feature map input from the large-scale light filtering module through a dilated convolution layer and upsampling to restore the size and cloud texture of the remote sensing image;
[0012] The boundary information recovery and fusion module, through a dynamic weight adjustment mechanism, fuses the multi-scale features extracted by the residual coding module with the size and cloud texture of the remote sensing image restored by the multi-scale cloud texture adaptive decoding module;
[0013] S3, optimizing the parameters of the cloud detection network through the cross entropy loss function, and training the cloud detection network model using the training set in step S1 to obtain a trained cloud detection network model;
[0014] S4, using the test set in step S1 to test the cloud detection network model trained in step S3 to test the detection accuracy of the trained cloud detection network model;
[0015] S5. Collect day and night remote sensing images, input them into the cloud detection network model trained in step S4, and obtain cloud detection results.
[0016] As a preferred solution of the present invention, the cloud mask data set is augmented by random rotation.
[0017] As a preferred solution of the present invention, the residual coding module can also identify complex cloud scenes.
[0018] As a preferred solution of the present invention, the large-scale light filtering module can also capture the characteristics of clouds of different scales.
[0019] As a preferred solution of the present invention, the upsampling adopts a bidirectional upsampling method to decode the encoded remote sensing image.
[0020] As a preferred solution of the present invention, the dynamic weight adjustment mechanism can select and fuse edge information of clouds of different scales to optimize the segmentation accuracy of cloud boundaries.
[0021] As a preferred solution of the present invention, the training in step S3 is performed using an Adam optimizer, the maximum learning rate of the Adam optimizer is set to 0.0001, the minimum learning rate is set to 0.000001, the batch_size is set to 4, and the epoch is set to 100.
[0022] As a preferred solution of the present invention, the cloud mask data set is divided into a training set and a test set in a ratio of 8:2.
[0023] As a preferred solution of the present invention, the residual coding module is an encoder of the cloud detection network model.
[0024] The advantages of the present invention over the prior art are as follows: the present invention uses the deep residual network ResNet-50 to construct a residual coding module as a network model encoder to encode the input image and extract features of different scales at the same time;
[0025] The present invention utilizes the multi-scale spatial pyramid in the large-scale light filtering module to extract multi-level information, so that the network can capture both urban lights and rural lights; and the light feature differentiation module identifies the regular texture of urban lights and the random texture of clouds, so as to differentiate between lights and clouds;
[0026] The present invention utilizes a multi-scale cloud texture adaptive decoding module to improve the model receptive field, and simultaneously decodes the coded features and restores the image size, enabling the network to capture cloud features of different scales;
[0027] The present invention utilizes the boundary information recovery fusion module to select and fuse the features of the encoding and decoding stages to improve the cloud boundary segmentation effect;
[0028] Through modular design and multi-scale feature fusion strategy, the present invention significantly improves the cloud detection performance of remote sensing images in complex environments, especially the application effect under conditions of day-night changes and light interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a structural schematic diagram of the cloud detection network model described in the present invention;
[0030] Figure 2 This is a schematic diagram of the structure of the large-scale light filtering module of the present invention;
[0031] Figure 3 This is a schematic diagram of the structure of the multi-scale cloud texture adaptive decoding module of the present invention;
[0032] Figure 4 It is a structural schematic diagram of the boundary information recovery and fusion module described in the present invention. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with specific embodiments and drawings.
[0034] As an embodiment of the present invention, Figures 1 to 4 As shown, the computer configuration is: Intel Core i5-12400F core processor, NVIDIA GeForce RTX 3060Ti graphics processor, main frequency 2.50 GHz, 32GB of memory, and operating system is Windows 10.
[0035] The multi-scale feature fusion remote sensing image day and night cloud detection method described in the present invention is implemented based on the Pytorch1.7.1 deep learning framework toolkit.
[0036] A remote sensing image day and night cloud detection method based on multi-scale feature fusion specifically includes the following steps:
[0037] Step 1: Establish a cloud detection model training data set. The specific steps are as follows:
[0038] 21 day and night remote sensing images taken by the DNB band of the VIIRS sensor of the NPP satellite were obtained, including 11 during the day and 10 at night. Through manual annotation, the cloud areas in the images were marked as white and the cloudless areas were marked as black. Through the python script, the entire 4064 pixel × 3072 pixel remote sensing image was segmented into small blocks of 256 pixels × 256 pixels. When the entire image was not enough for segmentation, it was discarded. A total of 3780 256 × 256 cloud mask images were obtained, of which 80% were used as training sets to train the model and 20% were used as test sets to test the accuracy of the network model. In order to expand the training samples, the obtained data set was randomly rotated, and 12240 images were obtained for training.
[0039] Step 2: Construct the residual coding module. The specific steps are as follows:
[0040] The residual coding module is constructed through the deep residual network ResNet-50. As the core encoder of the network model, this module encodes the input cloud remote sensing image and extracts features of different scales from low to high to obtain multi-scale feature maps in order to capture the details and texture information of the cloud and provide the necessary feature basis for subsequent processing.
[0041] Step 3: Build a large-scale light filtering module. The specific steps are as follows:
[0042] like Figure 2As shown, the present invention designs a large-scale light filtering module structure, which includes a multi-scale spatial pyramid and a light feature differentiation module. The multi-scale spatial pyramid extracts multi-level information from the multi-scale feature map through a hole convolution layer with different expansion rates, effectively capturing artificial light sources of different scales from cities to villages; the light feature differentiation module further processes the multi-scale feature map, effectively distinguishing the regular texture of urban lights and the random texture of clouds, thereby accurately distinguishing between lights and clouds;
[0043] Step 3: Construct a multi-scale cloud texture adaptive decoding module. The specific steps are as follows:
[0044] like Figure 3 As shown in the figure, the multi-scale cloud texture adaptive decoding module is responsible for processing the remote sensing image after the large-scale light filtering module. The module combines three dilated convolution layers with different dilation rates and an upsampling layer. The dilation rates of the dilated convolution layers are set to [1, 2, 5] in sequence. This design not only increases the receptive field of the model, enabling it to capture cloud features of different scales, but also effectively restores the image size and cloud texture details through the upsampling layer, thereby improving the expression ability and recognition accuracy of cloud features at multiple scales.
[0045] Step 5: Construct the boundary information recovery and fusion module. The specific steps are as follows:
[0046] like Figure 4 As shown in the figure, the boundary information recovery and fusion module is improved on the basis of the traditional skip connection structure, realizing the efficient fusion of the detail information in the encoding stage and the feature map processed by the multi-scale cloud texture adaptive decoding module. Through the dynamic weight adjustment mechanism, the module accurately selects and fuses the edge detail information of different scales and optimizes the segmentation accuracy of cloud boundaries. This fusion strategy not only effectively filters out the interference of lights, but also significantly improves the overall performance of cloud detection, especially in applications under complex lighting and meteorological conditions;
[0047] Step 6: Use the training set in step 1 to train the cloud detection network model. The cloud detection network model is trained using the Adam optimizer, with the maximum learning rate set to 0.0001. When training reaches convergence, the learning rate is reduced for training, with the minimum learning rate being 0.000001, batch_size being set to 4, and epoch being set to 100.
[0048] Step 7: Day and night remote sensing image cloud detection, the specific steps are as follows:
[0049] The cloud detection network model trained in step 6 is used to perform cloud detection on remote sensing images of the DNB band of the NPP satellite VIIRS sensor.
[0050] According to the above detailed introduction, the present invention provides a remote sensing image day and night cloud detection method based on multi-scale feature fusion. This method takes the deep convolutional network as the core, significantly expands the network's receptive field through the designed module, and significantly improves the cloud detection network model's ability to detect clouds at different scales; by integrating a large-scale light filtering module, the present invention effectively distinguishes between lights and clouds, and uses the boundary information recovery fusion module to optimize the fusion of global and local features in the encoding and decoding process, significantly improving the accuracy of cloud detection. The present invention can not only provide more accurate cloud detection results, but also effectively distinguish between clouds and artificial light sources, especially under complex day and night change conditions.
[0051] The above-mentioned invention can also be extended to other similar remote sensing image cloud detection tasks. It only needs to set appropriate parameters, establish a cloud mask dataset according to step 1, and retrain the model to obtain a cloud detection network model for remote sensing images.
[0052] The technical solution of the present invention is described in detail above in conjunction with the embodiments / drawings, but the present invention is not limited to the above technical solution. For ordinary technicians in this technical field, after knowing the contents recorded in the present invention, they can make several equivalent changes and substitutions without departing from the principle of the present invention. These equivalent changes and substitutions should also be regarded as belonging to the protection scope of the present invention.
Claims
1. A remote sensing image day and night cloud detection method based on multi-scale feature fusion, characterized in that: The following steps are involved: S1. Obtain cloud-containing remote sensing images, construct a cloud mask dataset by manual annotation, and divide the cloud mask dataset into a training set and a test set; S2. Use a deep convolutional network to construct a cloud detection network model for day and night remote sensing images. The cloud detection network model is composed of a residual coding module, a large-scale light filtering module, a multi-scale cloud texture adaptive decoding module, and a boundary information recovery and fusion module, wherein: The residual coding module is constructed by the deep residual network ResNet-50, which is used to encode and downsample the input cloud-containing remote sensing image and extract multi-scale features to obtain a multi-scale feature map; The large-scale light filtering module is composed of a multi-scale spatial pyramid and a light feature distinguishing module, wherein the multi-scale spatial pyramid extracts multi-level features from the multi-scale feature map input from the residual coding module through a dilated convolution layer with different expansion rates and a global pooling operation to obtain a multi-level feature map; the light feature distinguishing module is used to filter the multi-level feature map input from the multi-scale spatial pyramid to distinguish the regular texture of the artificial light source and the random texture of the cloud to obtain a light filtering feature map; A multi-scale cloud texture adaptive decoding module recognizes and reconstructs the light filtering feature map input from the large-scale light filtering module through a dilated convolution layer and upsampling to restore the size and cloud texture of the remote sensing image; The boundary information recovery and fusion module, through a dynamic weight adjustment mechanism, fuses the multi-scale features extracted by the residual coding module with the size and cloud texture of the remote sensing image restored by the multi-scale cloud texture adaptive decoding module; S3, optimizing the parameters of the cloud detection network through the cross entropy loss function, and training the cloud detection network model using the training set in step S1 to obtain a trained cloud detection network model; S4, using the test set in step S1 to test the trained cloud detection network model to test the detection accuracy of the trained cloud detection network model; S5. Collect day and night remote sensing images, input them into the cloud detection network model trained in step S4, and obtain cloud detection results.
2. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The cloud mask dataset is augmented by random rotation.
3. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The residual coding module can also identify complex cloud scenes.
4. A remote sensing image day and night cloud detection method based on multi-scale feature fusion according to claim 1 or 3, characterized in that: The residual coding module is an encoder of the cloud detection network model.
5. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The large-scale light filtering module can also capture the characteristics of clouds of different scales.
6. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The upsampling adopts a bidirectional upsampling method to decode the encoded remote sensing image.
7. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The dynamic weight adjustment mechanism can select and fuse edge information of clouds of different scales to optimize the segmentation accuracy of cloud boundaries.
8. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The training in step S3 is performed using the Adam optimizer, where the maximum learning rate of the Adam optimizer is set to 0.0001, the minimum learning rate is set to 0.000001, the batch_size is set to 4, and the epoch is set to 100.
9. The method for detecting day and night clouds from remote sensing images based on multi-scale feature fusion according to claim 1, characterized in that: The cloud mask dataset is divided into a training set and a test set in a ratio of 8:2.
Citation Information
Patent Citations
Remote sensing image thin cloud removal method based on multi-scale collaborative learning convolutional neural network
CN108921799A
Remote sensing image segmentation method and system based on multi-scale feature fusion
CN112801109A
Medicine box detection method based on three-dimensional point cloud and image data fusion and detection system thereof
CN113052835A
Crop space-time generalization classification method and system based on deep learning
CN113469122A
