Cloud removal method for remote sensing optical images based on local and global fusion

By employing a local and global fusion approach and utilizing SAR and optical image feature extraction and fusion, the problem of remote sensing image reconstruction under cloudy conditions was solved, generating high-quality cloudless images and achieving efficient image restoration under cloudy conditions.

CN118505560BActive Publication Date: 2026-11-20CHANGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410259360.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2026-11-20
Estimated Expiration
2044-03-07

AI Technical Summary

Technical Problem

Existing methods for removing clouds from remote sensing optical images work well under thin clouds or a small amount of thick clouds, but the reconstruction quality is not ideal under continuous cloudy weather. Furthermore, the fusion method of SAR and optical images suffers from high computational costs and insufficient information utilization.

Method used

A method based on local and global fusion is adopted. By extracting and fusing features from SAR images and optical images, a nonlocal departmental attention module and dual-stream residual dense learning are used to establish long-range dependencies and compensate for spectral information. The generator is trained by combining adversarial loss and perceptual loss to generate high-quality cloudless images.

Benefits of technology

It improves the accuracy and consistency of image reconstruction within cloudy coverage areas, reduces the loss of ground truth information, and generates cloudless images with superior texture structure and color composition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505560B_ABST
    Figure CN118505560B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image processing, and especially relates to a remote sensing optical image cloud removing method based on local and global fusion, which comprises the following steps: acquiring remote sensing image data sets; extracting a cloud mask; extracting shallow feature maps of a SAR image and an optical multi-cloud image respectively through an SFE module, performing average pooling on the cloud mask, and obtaining a subsampling cloud mask; establishing a long-range dependency relationship of feature information between a multi-cloud area and a cloud-free area of the optical multi-cloud image by using an NL-GAB module; using a TFRDB module to compensate for the missing spectral information of the optical multi-cloud image and to perform multi-level fusion on the deep and shallow features of the optical multi-cloud image and the SAR image; obtaining a reconstructed cloud-free image with the same size as the optical multi-cloud image by using an image reconstruction module and a multi-feature aggregation operation; outputting a prediction value by using a discriminator; and inputting test data into a generator to obtain the reconstructed cloud-free image. The present application solves the problem that the existing method has an unsatisfactory cloud removing effect on remote sensing optical images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a method for removing clouds from remote sensing optical images based on local and global fusion. Background Technology

[0002] The purpose of declouding satellite images is to reconstruct missing data in the images; it is essentially an image restoration task that recovers a high-quality, clean image from a murky one.

[0003] Existing regional methods can be broadly categorized into two main types. The first type directly utilizes optical remote sensing data. For example, Heng Pan et al. proposed a spatially based method that uses local-to-global spatial attention to identify and focus on cloud regions, enhancing the ability to recover information from missing areas. Kenji Enomoto et al. used a multispectral method, adding near-infrared (NIR) images to a new channel as a fourth input channel, utilizing longer wavelength images to reduce the impact of clouds and provide more information about the ground scene beneath the clouds. Patrick Ebel et al. proposed a temporal-based method that combines uncertainty quantification with cloud and fog removal, improving image reconstruction performance. The basic principle of this type of method is to use cloudless images or effective bands of the reference phase to recover missing information about the target phase.

[0004] Another category is a new method based on SAR heterogeneous assisted data fusion. Utilizing the strong penetrating power of SAR, it can capture ground structures through clouds, which is crucial for reconstructing missing spectral information and can compensate for the shortcomings of the first type of method. For example, Claas Grohnfeldt et al. reconstructed cloud-contaminated areas by stitching together optical and SAR images, validating the effectiveness of the cloud removal fusion method for the first time. Andrea Meraner et al. used a deep residual branch to connect the input cloud map with the feature map, and proposed a new cloud adaptive loss function to maximize the preservation of original information and improve the robustness of the model framework. Fang Xu et al. added an STL layer to transfer the attention map of the SAR image to refine the attention map of the optical image, achieving global information interaction.

[0005] However, the existing technologies mentioned above still have the following problems:

[0006] 1. Spatial and spectral methods are only suitable for removing thin clouds or a small amount of thick clouds. Temporal methods cannot synthesize a realistic ground under continuous cloudy weather. When using only single-source optical remote sensing image data, the cloud removal effect is limited when the quality of the spatiotemporal information of the supplementary data is poor, and it is impossible to consistently obtain high-quality and timely results.

[0007] 2. The method based on SAR and optical image fusion has significant advantages, but simple stitching not only limits the auxiliary role of SAR data, but also has an adverse effect on the fusion process due to the difference in imaging mechanism;

[0008] 3. Global capture based on Transformer semantic information increases computational costs, ignores the impact of cloud information on reconstruction quality when establishing remote dependencies, lacks in-depth consideration of specific cloud removal tasks, and cannot effectively utilize the complementary information of both to assist in cloud removal, resulting in unsatisfactory cloud removal results. Summary of the Invention

[0009] To address the shortcomings of existing methods, this invention solves the problem of unsatisfactory cloud removal effects in existing methods for remote sensing optical images.

[0010] The technical solution adopted in this invention is: a cloud removal method for remote sensing optical images based on local and global fusion, comprising the following steps:

[0011] Step 1: Acquire and preprocess the remote sensing image dataset;

[0012] Each dataset contains SAR images, optically cloudy images, and optically cloudless images.

[0013] Step 2: Extract the cloud mask from the optically cloudy image;

[0014] In a preferred embodiment of the present invention, the cloud mask is obtained by using S2cloudless to detect clouds in a certain band of an optical cloudy image, setting a threshold, convolution size and dilation rate, and setting the cloudy area to 1 and the cloudless area to 0 according to the threshold to obtain a binary cloud mask.

[0015] Step 3: Input the SAR image, optical cloudy image and cloud mask into the generator, extract the shallow feature maps of the SAR image and optical cloudy image through the SFE module, and perform average pooling on the cloud mask to obtain the subsampled cloud mask.

[0016] The SFE module consists of a convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

[0017] Step 4: Use the NL-GAB module to establish the remote dependency relationship of feature information between cloudy and cloudless areas in the optical cloudy image; and use the TFRDB module to compensate for the missing spectral information in the optical cloudy image and perform multi-level fusion of the light and dark features of the optical cloudy image and the SAR image.

[0018] In a preferred embodiment of the present invention, a feature extraction and fusion network is constructed by cascading pairs of several NL-GAB modules and several TFRDB modules.

[0019] In a preferred embodiment of the present invention, the NL-GAB module will analyze the shallow features of the SAR image. The attention map is obtained through two 1x1 convolutions and matrix multiplication, and the subsampled cloud mask I is used. mask Attention map is processed via dot product and normalized using softmax; shallow features of optically cloudy images. The image is passed through a 1x1 convolutional layer and subjected to matrix operations with the normalized attention map; finally, it is connected to shallow features of the optically cloudy image via local residual connections. Summation yields the features after global remote information exchange.

[0020] In a preferred embodiment of the present invention, the TFRDB module includes:

[0021] It consists of two dense residual structure branches, with the main branch based on the characteristics after global remote information interaction. As input, the auxiliary branch uses shallow combination features. As input;

[0022] The auxiliary branch consists of five convolutional activation layers. Each subsequent layer takes all the features before it as input. The output of each layer in the auxiliary branch is connected to the corresponding feature layer in the main branch through cross-branch jump connections.

[0023] The main branch consists of five convolutional activation layers and a fusion layer. The next layer of the main branch takes all the features before this layer and the output features of the auxiliary branches as input.

[0024] The last layer of the main branch and auxiliary branches adds the input features to the output features through a residual connection with a residual scaling parameter to obtain the locally fused features.

[0025] As a preferred embodiment of the present invention, shallow combination features The calculation formula is:

[0026]

[0027] Where ⊙ represents the Hadamard product. For channel concatenation, ω() is the convolution operation, and I is the channel concatenation operation. mask For secondary sampling cloud mask, For shallow features of SAR images, These are shallow features of optically cloudy images.

[0028] In a preferred embodiment of the present invention, the convolutional activation layer includes a convolutional layer and a Leky ReLU activation layer.

[0029] In a preferred embodiment of the present invention, the fusion layer includes a convolutional layer, a spectral normalization layer, and a LekyReLU activation layer.

[0030] Step 5: Use the image reconstruction module and multiple feature aggregation operation to obtain a reconstructed cloudless image of the same size as the optical cloudy image;

[0031] In a preferred embodiment of the present invention, the image reconstruction module includes a transposed convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

[0032] In a preferred embodiment of the present invention, the multiple feature aggregation operation includes: an RDB module and two sets of convolution operations; the RDB module consists of five convolutional activation layers, each including a convolutional layer and a LekyReLU activation layer.

[0033] Step 6: The discriminator determines whether the reconstructed cloudless image is a real or fake image based on the paired optical cloudless images. The adversarial loss is obtained using the predicted value output by the discriminator. The model is trained until convergence by combining the cloud adaptive regularization loss, perceptual loss, and structural similarity loss as the total loss training objective.

[0034] Step 7: Input the test data in batches into the trained generator to generate reconstructed cloudless images and complete the cloud removal task.

[0035] The beneficial effects of this invention are:

[0036] 1. This method employs dual-stream residual dense learning and non-localized departmental attention to enhance the fusion of complementary information from SAR and optical data. It can adaptively acquire complementary information from optical and SAR images for data fusion, restoring cloud areas while reducing the loss of ground truth information. It is applicable to all cloud coverage areas and scene characteristics.

[0037] 1. In the process of global learning in non-local control, the advantage of SAR having global semantic information is used to establish long-range dependencies. Invalid long-range dependencies are suppressed by cloud masking. This avoids the introduction of turbid information that affects the reconstruction of the image after the long-range dependencies obtained from SAR are transferred to the cloudy image. It is beneficial for the cloudy area to learn the color composition and texture details of the cloudless area, so that the reconstructed cloudless image has global consistency.

[0038] 2. In the process of dense learning of dual-stream residuals, by establishing auxiliary branches, missing spectral information and true ground information of cloudless areas can be provided in real time during the local information fusion process, which can improve the accuracy of reconstructing missing areas of cloudy optical images. Attached Figure Description

[0039] Figure 1This is a logic block diagram of the remote sensing optical image cloud removal method based on local and global fusion of the present invention;

[0040] Figure 2 This is a structural diagram of the Non-Local Gated Attention Block (NL-GAB).

[0041] Figure 3 This is a structural diagram of a Two-Flow Residual Dense Block (TFRDB);

[0042] Figure 4 This is a structural diagram of the existing residual-dense module;

[0043] Figure 5 This is a comparison of the cloud removal effects of the method of this invention and existing methods. Detailed Implementation

[0044] The present invention will be further described below with reference to the accompanying drawings and embodiments. The drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0045] like Figure 1 As shown, the cloud removal method for remote sensing optical images based on local and global fusion includes the following steps:

[0046] Step 1: Obtain and preprocess the remote sensing image dataset, dividing it into training, validation, and test sets. Each dataset includes SAR images (I...). sar Optical cloud image I cloud Optical cloudless image I gt ;

[0047] The dataset is SEN12MS-CR. Image data preprocessing includes using the two polarization channels VV and VH of the SAR image, cropping them to [-25, 0] and [-32.5, 0] respectively, scaling them to the range [0, 255], and taking the average of VV and VH as the third channel; the optical cloudy image I... cloud and optical cloudless image I gt Cropped to [0, 10, 000] and scaled to the range [0, 255]; for the generator input, only the RGB three bands of the optical image are used; 149 ROIs out of 169 ROIs in the dataset are used for training, 10 ROIs for validation, and 10 ROIs for testing.

[0048] Step 2: Extract all optically cloudy images I cloud The cloud mask M;

[0049] Cloud mask M utilizes the online cloud detection algorithm S2cloudless and optical multi-cloud images I cloud Cloud detection was performed on 13 bands with a threshold of 0.4, a convolution size of 4, and an inflation rate of 2. Based on the threshold, cloudy areas were set to 1 and cloudless areas were set to 0 to obtain a binary cloud mask M.

[0050] Step 3: Transfer SAR image I sar Optical cloud image I cloud The cloud mask input generator extracts shallow feature maps from SAR images through the shallow feature extraction module (SFE). Shallow feature maps of optically cloudy images AvgPoling is applied to the cloud mask M to obtain the subsampled cloud mask I. mask ;

[0051] The SFE module consists of a convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

[0052] like Figure 1 It consists of five NL-GAB modules (abbreviated as NL modules, NL1 to NL5) and five TFRDB modules (TFRDB1 to TFRDB5) cascaded together. TFRDB modules and NL-GAB modules must be used in pairs, that is, one NL-GAB module and one TFRDB module form a module set, and the order must be NL-GAB module first and then TFRDB module. The number of module sets can be customized. In this embodiment, the number of module sets is set to 5.

[0053] Step 4: Use the NL-GAB module to establish the remote dependency relationship of feature information between cloudy and cloudless areas in the optical cloudy image;

[0054] like Figure 2 As shown, the NL-GAB module extracts shallow features from SAR images. Shallow features of optically cloudy images and subsampled cloud mask I mask As input, Attention map is obtained through two 1x1 convolutions and matrix multiplication, cloud mask I. mask The attention map is further optimized using dot product operations and then normalized using softmax. The algorithm passes through a 1x1 convolutional layer and performs matrix operations with the normalized attention map. Finally, it connects to shallow features of the optically cloudy image via local residual connections. Summation yields the features after global remote information exchange.

[0055] The TFRDB module is used to compensate for the missing spectral information in optical cloudy images and to perform multi-level fusion of the depth features of optical cloudy images and SAR images.

[0056] like Figure 3 As shown, the TFRDB module consists of two dense residual structure branches, with the main branch... As input, the auxiliary branch will take the SAR image I sar And optical cloud image I cloud Shallow combination features As input, shallow combined features The calculation formula is: Where ⊙ represents the Hadamard product. ω() is the channel concatenation operation, and ω() is the convolution operation.

[0057] like Figure 4 The auxiliary branch consists of five convolutional activation layers, each including a convolutional layer and a Leky ReLU activation layer. The next layer takes all the features before it as input, and the output of each layer in the auxiliary branch is connected to the corresponding feature layer in the main branch through cross-branch jump connections.

[0058] like Figure 3 The main branch consists of five convolutional activation layers and a fusion layer. The convolutional activation layers include one convolutional layer and one Leky ReLU activation layer; the fusion layer includes one convolutional layer, one spectral normalization layer, and one Leky ReLU activation layer. The next layer of the main branch takes all the features before this layer and the output features of the auxiliary branch as input. The last layer of the main branch and the auxiliary branch adds the input features to the output features through a residual concatenation with a residual scaling parameter β to obtain the locally fused features. In this embodiment, β = 0.2.

[0059] Step 5: Using the image reconstruction module (IR) and multiple feature aggregation operations, obtain a reconstructed cloudless image I of the same size as the optical cloudy image. pred ;

[0060] The feature map fused by the NL-GAB and TFRDB modules is summed with the shallow feature map of the optical cloudy image; it is then upgraded to the original input image size through the IR module, which includes a transposed convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

[0061] The RDB is used to process the feature map after IR. The multiple feature aggregation operation includes an RDB module and two sets of convolution operations. The RDB module consists of five convolutional activation layers. Each convolutional activation layer includes a convolutional layer and a Leky ReLU activation layer. Each layer of the RDB module takes all the features before it as input. Each set of convolution operations consists of a convolutional layer and a Leky ReLU activation layer. Finally, the Tanh activation function is used to restrict the output to [0, 1] to generate the final fused feature map.

[0062] Step Six: The discriminator uses the paired, cloudless optical image I gt Determine the reconstructed cloudless image I pred To determine whether an image is real or fake, the discriminator outputs a prediction value to obtain an adversarial loss. This adversarial loss is then combined with cloud adaptive regularization loss, perceptual loss, and structural similarity loss as the total loss training objective to train the model until convergence.

[0063] The total loss function is defined as:

[0064]

[0065] Where, λ adv , λ per , λ ssim and λ carl λ is the weighting parameter; in this embodiment, λ adv =λ per =0.1, λ ssim =λ carl =10.

[0066] The formula for adversarial loss is:

[0067]

[0068] in, The training process represents an adversarial process. The generator G aims to generate a clear reconstructed cloudless image in an attempt to fool the discriminator D, whose goal is to determine whether the image is a fake cloudless image or a real cloudless image.

[0069] The cloud adaptive regularization loss extracts cloud regions and non-cloud regions as local regions, preserving the original information of the non-cloud regions to the greatest extent. The formula is as follows:

[0070]

[0071] Where N is the total number of pixels, and λ is set to 1.

[0072] Perceptual loss is used to improve the perceptual quality of the restored image, and the consistency between the ground truth convolution output and the restored image is evaluated.

[0073]

[0074] in, This is the output of the i-th layer of the VGG model.

[0075] The Structural Similarity Index (SSIM) measures the similarity between two images and assesses quality based on the degradation of structural information.

[0076]

[0077]

[0078] Where, μ x and μ y σ is the average value. x and σ y Let σ be the variance. xy Let N be the covariance, C1 and C2 be the variables used to stabilize weak denominator division, p be the center pixel of the image patch, and the size of the patch and the Gaussian filter be 11×11.

[0079] Step 7: Input the test data in batches into the trained generator to generate reconstructed cloudless images and complete the cloud removal task.

[0080] The following are the specific experimental evaluation results:

[0081] The dataset used in the experiment is SEN12MS-CR, a large dataset commonly used in the field of cloud removal from remote sensing images. The evaluation metrics selected are PSNR, SSIM, SAM, and MAE. Among them, the higher the values ​​of PSNR and SSIM, the better the image quality, and the lower the values ​​of SAM and MAE, the better the image quality. The table below shows a quantitative comparison between the present invention and existing algorithms.

[0082] Table 1 Comparison between the present invention and existing methods

[0083]

[0084] like Figure 5 The cloud removal results of the remote sensing optical image decloud removal method network based on local and global fusion according to the present invention are qualitatively compared with the cloud removal results of existing algorithms on the SEN12MS-CR dataset: (a) cloud image, (b) SAR image, (c) SpAGAN, (d) SAR2OPT, (e) SAR-Opt-cGAN, (f) DSen2-CR, (g) GLF-CR, (h) Ours, and (i) ground truth.

[0085] The quantitative and qualitative comparison results show that the method proposed in this embodiment has achieved optimal performance in all indicators. The image generated by this model not only has superior texture structure and color composition, but also retains more complete geotextile information.

[0086] Based on the above-described preferred embodiments of the present invention, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.

Claims

1. A cloud removal method for remote sensing optical images based on local and global fusion, characterized in that, Includes the following steps: Step 1: Acquire and preprocess the remote sensing image dataset; Step 2: Extract the cloud mask from the optically cloudy image; Step 3: Input the SAR image, optical cloudy image and cloud mask into the generator, extract the shallow feature maps of the SAR image and optical cloudy image through the SFE module, and perform average pooling on the cloud mask to obtain the subsampled cloud mask. Step 4: Use the NL-GAB module to establish the remote dependency relationship of feature information between cloudy and cloudless areas in the optical cloudy image; use the TFRDB module to compensate for the missing spectral information in the optical cloudy image, and perform multi-level fusion of the depth features of the optical cloudy image and the SAR image. In step four, several NL-GAB modules and several TFRDB modules are used to construct a cascaded and paired feature extraction and fusion network; The NL-GAB module extracts shallow features from SAR images. Attention map is obtained through two 1x1 convolutions and matrix multiplication; subsampled cloud mask. Attention map is processed via dot product and normalized using softmax; shallow features of optically cloudy images. The process involves a 1x1 convolutional layer and matrix operations with the normalized attention map; finally, it connects to shallow features via local residual connections. Summation yields the features after global remote information exchange. ; The TFRDB module includes: It consists of two dense residual structure branches, with the main branch based on the characteristics after global remote information interaction. As input, the auxiliary branch uses shallow combination features. As input; The auxiliary branch consists of five convolutional activation layers. Each subsequent layer takes all the features before it as input. The output of each layer in the auxiliary branch is connected to the corresponding feature layer in the main branch through cross-branch jump connections. The main branch consists of five convolutional activation layers and a fusion layer. The next layer of the main branch takes all the features before this layer and the output features of the auxiliary branches as input. The last layer of the main branch and the auxiliary branch adds the input features to the output features through a residual connection with a residual scaling parameter to obtain the locally fused features; Step 5: Use the image reconstruction module and multiple feature aggregation operation to obtain a reconstructed cloudless image of the same size as the optical cloudy image; Step 6: Use the discriminator to output the predicted value to obtain the adversarial loss; and combine it with cloud adaptive regularization loss, perceptual loss, and structural similarity loss as the total loss for training. Step 7: Input the test data into the generator to obtain the reconstructed cloudless image.

2. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, Shallow combination features The calculation formula is: ; in, For Hadamard products, () indicates a channel splicing operation. () represents the convolution operation. For secondary sampling cloud mask, For shallow features of SAR images, These are shallow features of optically cloudy images.

3. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, The convolutional activation layer consists of a convolutional layer and a Leky ReLU activation layer.

4. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, The fusion layer consists of a convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

5. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, The image reconstruction module includes a transposed convolutional layer, a spectral normalization layer, and a Leky ReLU activation layer.

6. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, The multi-feature aggregation operation includes: an RDB module and two sets of convolution operations; the RDB module consists of five convolutional activation layers, each including a convolutional layer and a LekyReLU activation layer.

7. The cloud removal method for remote sensing optical images based on local and global fusion according to claim 1, characterized in that, Cloud masking utilizes S2cloudless to detect clouds in a specific band of an optically cloudy image. It sets a threshold, convolution size, and dilation rate, and then sets cloudy areas to 1 and cloudless areas to 0 based on the threshold to obtain a binary cloud mask.