Cloud detection method for remote sensing images based on cascaded color and texture feature attention

By constructing a remote sensing image cloud detection method with a cascaded color and texture feature attention module, the problem of low detection accuracy of thin clouds and cloud boundaries in the existing technology is solved, and higher detection accuracy and boundary clarity are achieved.

CN113887472BActive Publication Date: 2024-09-06XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111203102.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2024-09-06
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

Existing remote sensing image cloud detection technology is difficult to accurately detect thin clouds and cloud boundaries, resulting in low detection accuracy and blurred boundaries.

Method used

Construct a remote sensing image cloud detection method based on cascaded color and texture feature attention. By constructing a color feature extraction subnet and a texture feature extraction subnet respectively, design a color feature attention module and a texture feature attention module, and use dilated convolution layers. and pooling layers extract multi-scale features, and fuse color and texture features through a cascade structure to enhance boundary feature extraction capabilities.

Benefits of technology

It improves the detection accuracy of thin clouds and boundary areas, reduces the missed detection rate and false detection rate, and improves the overall accuracy of cloud detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113887472B
    Figure CN113887472B
Patent Text Reader

Abstract

The present invention proposes a remote sensing image cloud detection method based on cascaded color and texture feature attention. The implementation steps of the present invention are: generating a training set; constructing a remote sensing image cloud detection network; training the remote sensing image cloud detection network; detecting remote sensing images containing clouds. The present invention utilizes a color feature extraction subnet and a texture feature extraction subnet to overcome the problem that the shallow features extracted in the prior art lack the difference between clouds and ground objects, resulting in the difficulty in extracting thin cloud features, so that the present invention improves the detection accuracy of thin clouds at non-boundaries. The present invention utilizes a color feature attention module and a texture feature attention module to overcome the problem that there are large false detections and missed detections in the boundaries and thin cloud areas in the prior art, so that the present invention improves the detection accuracy of thin clouds, reduces the missed detection rate and false detection rate, and improves the overall accuracy of cloud detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and further relates to a remote sensing image cloud detection method based on cascaded color and texture feature attention in the field of image detection technology. The present invention can be used to segment and remove image parts containing clouds in remote sensing images. Background Art

[0002] Remote sensing images refer to films or photos that record the size of electromagnetic waves of various ground objects. Remote sensing images have been widely used in various fields such as environmental monitoring, weather forecasting, and urban planning. In remote sensing images, the problem of missing ground object information due to cloud cover is particularly prominent. According to the research of the International Satellite Cloud Climatology Project (ISCCP), more than half of the world's area is often covered by clouds. Therefore, in the remote sensing images obtained by satellites, due to the obstruction of clouds, most bands cannot penetrate the clouds and cannot obtain information about ground objects under the cloud cover. This affects the application of remote sensing images in agricultural hydrological detection, urban planning and many other aspects.

[0003] Harbin Institute of Technology proposed a remote sensing image cloud detection method based on a multi-scale fusion semantic segmentation network in its patent application "Remote sensing image cloud detection method based on multi-scale fusion semantic segmentation network" (application number: 201910436645.2, application publication number: CN 110119728 A, publication date: 2019.8.13). The main steps of the method are: (1) randomly selecting N images from a real full-color visible light remote sensing image dataset as original remote sensing images and performing preprocessing; (2) inputting the preprocessed images as training sets into the semantic segmentation network for training to obtain a trained semantic segmentation network; (3) preprocessing the remote sensing images to be detected to obtain the preprocessed images to be detected; (4) inputting the preprocessed images to be detected into the trained semantic segmentation network to obtain the cropped images output by the semantic segmentation network; (5) passing the cropped images through a softmax classifier to obtain a binary image of the same size as the cropped images. In the binary image, pixels with non-zero grayscale values ​​represent cloud areas, and pixels with zero grayscale values ​​represent non-cloud areas, thereby realizing cloud detection of the remote sensing images to be detected. However, this method still has some shortcomings: it can only detect thick clouds and thin clouds at the boundaries. Since the multi-scale fusion semantic segmentation network only uses convolution operations to extract features, it leads to the lack of prior information about clouds and ground objects. As a result, the shallow features extracted by the multi-scale fusion semantic segmentation network lack the difference characteristics between clouds and ground objects. The detection accuracy of thin clouds at non-boundaries is low, and there is a problem of blurred boundaries in the detection results.

[0004] Zhang Yonghong et al. proposed a remote sensing image cloud detection method based on an improved U-Net network in their paper "Cloud Detection in Remote Sensing Images Based on Improved U-Net Network" (Bulletin of Surveying and Mapping, 2020, 03:17-20, published on March 25, 2020). The steps of this method are: (1) collect remote sensing data from the FY-4A satellite to generate a training set; (2) perform geometric correction on the remote sensing image, assign a value of 1 to the pixels with cloud results and 0 to the remaining pixels by assigning pixel points, and generate binary cloud labels; (3) use the residual module and dense link module to construct an improved U-Net network, and input the training set into the improved U-Net network for training to obtain a trained improved U-Net cloud detection network; (4) input the image to be detected into the trained improved U-Net cloud detection network and output the cloud detection result. This method uses the residual module combined with the encoder to facilitate the propagation of information and improve the generalization performance of the model. The dense connection module cascades the upper-layer features with the deep-layer features to extract new features and improve the reuse rate of feature information. However, the method still has the following shortcomings: the method can only detect large areas of thick clouds. Since the transmission of weak features in the network is suppressed by the dense connection module, the feature transmission of thin clouds is weakened, resulting in the inability to extract the features of thin clouds. There will still be large false detections and missed detections for cloud boundaries and thin cloud areas. Summary of the invention

[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and provide a remote sensing image cloud detection method based on cascaded color and texture feature attention, so as to solve the problems of poor detection effect of existing cloud detection technology, low detection accuracy of cloud boundaries and thin cloud areas in the detection results, and blurred boundaries.

[0006] The idea of ​​achieving the purpose of the present invention is as follows: the present invention constructs a color feature extraction subnet and a texture feature extraction subnet respectively. Since the dark channel prior features of clouds are significantly different from those of ground objects, a dark channel prior layer is designed in the color feature extraction subnet to extract the color features of clouds. Since the texture difference between clouds and ground objects can well distinguish the boundaries of clouds, the texture features of clouds are extracted in the texture feature extraction subnet, thereby improving the ability to extract boundary features. The present invention constructs a color feature attention module and a texture feature attention module respectively. In the color feature attention module and the texture feature attention module, an expanded convolution layer is designed to extract multi-scale features. Pooling layers and convolution layers are used to extract attention, thereby enhancing color and texture features. The color feature attention module and the texture feature attention module are cascaded to construct a cascaded color and texture feature attention module. The cascaded structure is used to achieve the fusion of color and texture features, thereby enabling remote sensing image cloud detection to focus on thin clouds and boundary features, thereby improving the detection accuracy of thin clouds and boundary areas, and improving the problem of blurred boundaries in cloud detection results.

[0007] To achieve the above object, the technical solution of the present invention includes the following:

[0008] (1) Generate training set:

[0009] (1a) Select at least 50+ remote sensing images containing clouds, where the size of each remote sensing image is 512×512, and each remote sensing image contains at least one cloud area;

[0010] (1b) Annotate the cloud area in each remote sensing image and generate a label file corresponding to each remote sensing image after annotation;

[0011] (1c) All remote sensing images and their corresponding label files form a training set;

[0012] (2) Constructing a remote sensing image cloud detection network based on cascaded color and texture feature attention:

[0013] (2a) Constructing the color feature attention module:

[0014] Construct a color feature attention module for enhancing color features, whose structure is: the first input layer, pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the addition layer, the third convolution layer and the output layer;

[0015] Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer connected in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer, and the third dilated convolution layer connected in parallel. In addition, the multiplication layer is also connected to the second input layer, and the addition layer is also connected to the second input layer.

[0016] The parameters of each layer of the color feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the three dilated convolutions and the 1st to 3rd convolutional layers are all set to 3×3, and the activation layer uses the Sigmoid function;

[0017] (2b) Constructing texture feature attention module:

[0018] Construct a texture feature attention module for enhancing detail texture features, whose structure is: the first input layer, pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the subtraction layer, the third convolution layer and the output layer;

[0019] Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer connected in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer, and the third dilated convolution layer connected in parallel. In addition, the multiplication layer is also connected to the second input layer, and the subtraction layer is also connected to the second input layer.

[0020] The parameters of each layer of the texture feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the 1st to 3rd dilated convolutional layers and the 1st to 3rd convolutional layers are both set to 3×3, and the activation layer uses the Sigmoid function;

[0021] (2c) Construct color feature extraction subnet:

[0022] Construct a color feature extraction subnet for extracting color features, whose structure is: dark channel prior layer, first convolution layer, first downsampling layer, second convolution layer, second downsampling layer, third convolution layer, third downsampling layer;

[0023] The parameters of each layer of the color feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolution layers is set to 3×3, the number of channels is set to 2, 4, and 8 respectively, and the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2;

[0024] (2d) Construct texture feature extraction subnet:

[0025] Construct a texture feature extraction subnet for extracting texture features, whose structure is: NSCT layer, the first convolution layer, the first downsampling layer, the second convolution layer, the second downsampling layer, the third convolution layer, and the third downsampling layer;

[0026] The parameters of each layer of the texture feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolution layers is set to 3×3, and the number of channels is set to 2, 4, and 8 respectively; the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2;

[0027] (2e) Construct the encoding and decoding subnet:

[0028] Construct a codec subnet, whose structure is as follows: input layer, first scale transformation layer, second scale transformation layer, third scale transformation layer, fourth scale transformation layer, first convolution layer, first scale restoration layer, second scale restoration layer, third scale restoration layer, fourth scale restoration layer, second convolution layer, output layer; wherein, the structures of the first to fourth scale transformation layers are composed of the first convolution layer, channel splicing layer, second convolution layer and downsampling layer connected in series, and the structures of the first to fourth scale restoration layers are composed of the upsampling layer, channel splicing layer and convolution layer connected in series; the second convolution layer in the first scale transformation layer is connected to the channel splicing layer in the fourth scale restoration layer, the second convolution layer in the second scale transformation layer is connected to the channel splicing layer in the third scale restoration layer, the second convolution layer in the third scale transformation layer is connected to the channel splicing layer in the second scale restoration layer, and the second convolution layer in the fourth scale transformation layer is connected to the channel splicing layer in the first scale restoration layer;

[0029] Set the parameters of each layer of the codec subnet as follows: set the convolution kernel size of the 1st to 2nd convolution layer, the 1st to 2nd convolution layer in the 1st to 4th scale transformation layer, and the convolution kernel size of the 1st to 4th scale restoration layer to 3×3, set the downsampling kernel size of the downsampling layer in the 1st to 4th scale transformation layer to 2×2, and set the upsampling kernel size of the upsampling layer in the 1st to 4th scale restoration layer to 2×2;

[0030] (2f) Four color feature attention modules with the same structure, four texture feature attention modules with the same structure, a color feature extraction subnet, a texture feature extraction subnet and an encoding and decoding subnet are connected in a module embedding manner to form a cloud detection network based on cascaded color and texture feature attention;

[0031] (3) Training remote sensing image cloud detection network:

[0032] The training set is input into the remote sensing image cloud detection network, and the parameters of the network are iteratively updated using the gradient descent method until the value of the network's loss function converges, thereby obtaining a trained remote sensing image cloud detection network;

[0033] (4) Detecting remote sensing images containing clouds:

[0034] The remote sensing image containing clouds to be detected is input into the trained remote sensing image cloud detection network, and the cloud detection result is output.

[0035] Compared with the prior art, the present invention has the following advantages:

[0036] First, since the present invention simultaneously constructs a color feature extraction subnet for extracting color features and a texture feature extraction subnet for extracting texture features, the two can be used to extract prior information of clouds and land objects in remote sensing images, overcoming the problem that the shallow features extracted in the prior art lack the difference characteristics between clouds and land objects, making it difficult to extract thin cloud features. This enables the present invention to improve the detection accuracy of thin clouds at non-boundaries.

[0037] Second, since the present invention simultaneously constructs a color feature attention module for enhancing color features and a texture feature attention module for enhancing detail texture features, it focuses on the features of thin clouds and enhances the extraction of weak features. It overcomes the problem in the prior art that thin cloud features are suppressed and there are still large false detections and missed detections for cloud boundaries and thin cloud areas. As a result, the present invention improves the detection accuracy of thin clouds, reduces the missed detection rate and false detection rate, and improves the overall accuracy of cloud detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a flow chart of the present invention;

[0039] Figure 2 Schematic diagram of the color feature attention module structure of the present invention;

[0040] Figure 3 Schematic diagram of the structure of the texture feature attention module of the present invention;

[0041] Figure 4 It is a schematic diagram of the color feature extraction subnet structure of the present invention;

[0042] Figure 5 It is a schematic diagram of the texture feature extraction subnet structure of the present invention. DETAILED DESCRIPTION

[0043] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] Reference Figure 1 The specific implementation steps of the present invention are further described.

[0045] Step 1: Generate a training set.

[0046] At least 50 remote sensing images containing clouds are selected, where the size of each remote sensing image is 512×512, and each remote sensing image contains at least one cloud area.

[0047] Annotate the cloud area in each remote sensing image and generate a label file corresponding to each annotated remote sensing image.

[0048] All remote sensing images and their corresponding label files form a training set.

[0049] Step 2: Build a remote sensing image cloud detection network based on cascaded color and texture feature attention.

[0050] The first step is to build a color feature attention module for enhancing color features.

[0051] Reference Figure 2 , the color feature attention module constructed by the present invention is further described.

[0052] The structure of the color feature attention module is as follows: the first input layer, the pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the addition layer, the third convolution layer and the output layer.

[0053] Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer and the third dilated convolution layer in parallel. In addition, the multiplication layer is also connected to the second input layer, and the addition layer is also connected to the second input layer.

[0054] The parameters of each layer of the color feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the three dilated convolutions and the 1st to 3rd convolutional layers are all set to 3×3, and the Sigmoid function is used in the activation layer.

[0055] In the second step, a texture feature attention module is constructed to enhance the detailed texture features.

[0056] Reference Figure 3 , the texture feature attention module of the present invention is further described.

[0057] The structure of the texture feature attention module is as follows: the first input layer, the pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the subtraction layer, the third convolution layer and the output layer.

[0058] Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer and the third dilated convolution layer in parallel. In addition, the multiplication layer is also connected to the second input layer, and the subtraction layer is also connected to the second input layer.

[0059] The parameters of each layer of the texture feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the 1st to 3rd dilated convolutional layers and the 1st to 3rd convolutional layers are both set to 3×3, and the Sigmoid function is used in the activation layer.

[0060] The third step is to build a color feature extraction subnetwork for extracting color features.

[0061] Reference Figure 4 , the color feature extraction subnet of the present invention is further described.

[0062] The structure of the color feature extraction subnet is: dark channel prior layer, the first convolutional layer, the first downsampling layer, the second convolutional layer, the second downsampling layer, the third convolutional layer, and the third downsampling layer.

[0063] The parameters of each layer of the color feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolutional layers is set to 3×3, the number of channels is set to 2, 4, and 8 respectively, and the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2.

[0064] The dark channel prior layer constructed in the embodiment of the present invention includes the following operations:

[0065] First, extract the three visible spectrum bands of R, G and B in the remote sensing image to form an image F containing three channels of RGB. R-G-B .

[0066] Then, the dark channel prior is extracted according to the following formula:

[0067]

[0068] Among them, F dark represents the extracted dark channel prior, min represents the minimum operation, and c∈[R,G,B] represents the image F extracted in the first step. R-G-B The three channels of R, G and B.

[0069] The fourth step is to build a texture feature extraction subnet for extracting texture features.

[0070] Reference Figure 5 , the texture feature extraction subnet of the present invention is further described.

[0071] The structure of the texture feature extraction subnet is: NSCT layer, the first convolution layer, the first downsampling layer, the second convolution layer, the second downsampling layer, the third convolution layer, and the third downsampling layer.

[0072] The parameters of each layer of the texture feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolutional layers is set to 3×3, and the number of channels is set to 2, 4, and 8 respectively; the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2.

[0073] Step 5: Build the codec subnet:

[0074] A codec subnetwork is constructed, and its structure is as follows: input layer, first scale transformation layer, second scale transformation layer, third scale transformation layer, fourth scale transformation layer, first convolution layer, first scale restoration layer, second scale restoration layer, third scale restoration layer, fourth scale restoration layer, second convolution layer, output layer; wherein, the structures of the first to fourth scale transformation layers are composed of the first convolution layer, channel splicing layer, second convolution layer and downsampling layer connected in series, and the structures of the first to fourth scale restoration layers are composed of the upsampling layer, channel splicing layer and convolution layer connected in series; the second convolution layer in the first scale transformation layer is connected to the channel splicing layer in the fourth scale restoration layer, the second convolution layer in the second scale transformation layer is connected to the channel splicing layer in the third scale restoration layer, the second convolution layer in the third scale transformation layer is connected to the channel splicing layer in the second scale restoration layer, and the second convolution layer in the fourth scale transformation layer is connected to the channel splicing layer in the first scale restoration layer.

[0075] The parameters of each layer of the codec subnet are set as follows: the convolution kernel sizes of the 1st to 2nd convolution layers, the 1st to 2nd convolution layers in the 1st to 4th scale transformation layers, and the convolution kernel sizes of the 1st to 4th scale restoration layers are all set to 3×3, the downsampling kernel sizes of the downsampling layers in the 1st to 4th scale transformation layers are all set to 2×2, and the upsampling kernel sizes of the upsampling layers in the 1st to 4th scale restoration layers are all set to 2×2.

[0076] In the sixth step, four color feature attention modules with the same structure, four texture feature attention modules with the same structure, a color feature extraction subnet, a texture feature extraction subnet and an encoding and decoding subnet are connected in a module embedding manner to form a cloud detection network based on cascaded color and texture feature attention.

[0077] In the embodiment of the present invention, the module embedding connection method is as follows:

[0078] The input layer of the encoder-decoder subnetwork is connected to the dark channel prior layer of the color feature extraction subnetwork, and the dark channel prior layer of the color feature extraction subnetwork is connected to the NSCT layer.

[0079] The output layer of one color feature attention module is connected to the second input layer of one texture feature attention module to form a cascaded color and texture feature attention module. Four color feature attention modules and four texture feature attention modules are connected in the above manner to form four cascaded color and texture feature attention modules.

[0080] The dark channel prior layer and NSCT layer of the feature extraction subnet are connected to the first cascaded color and texture feature attention module, and the output layer of the first cascaded color and texture feature attention module is connected to the first channel concatenation layer of the encoder-decoder subnet.

[0081] The first downsampling layer of the color feature extraction subnet and the first downsampling layer of the texture feature extraction subnet are connected to the second cascade color and texture feature attention module respectively, and the output layer of the second cascade color and texture feature attention module is connected to the second channel splicing layer of the encoder-decoder subnet.

[0082] The 2nd downsampling layer of the color feature extraction subnet and the 2nd downsampling layer of the texture feature extraction subnet are connected to the 3rd cascade color and texture feature attention module respectively, and the output layer of the 3rd cascade color and texture feature attention module is connected to the 3rd channel splicing layer of the encoder-decoder subnet.

[0083] The 3rd downsampling layer of the color feature extraction subnet and the 3rd downsampling layer of the texture feature extraction subnet are respectively connected to the 4th cascade color and texture feature attention module, and the output layer of the 4th cascade color and texture feature attention module is connected to the 4th channel splicing layer of the encoder-decoder subnet to form a remote sensing image cloud detection network.

[0084] Step 3: Train the remote sensing image cloud detection network.

[0085] The training set is input into the remote sensing image cloud detection network, and the parameters of the network are iteratively updated using the gradient descent method until the value of the network's loss function converges, thereby obtaining a trained remote sensing image cloud detection network.

[0086] The calculation formula of the loss function described in the embodiment of the present invention is:

[0087]

[0088] Among them, L represents the loss function, ∑ represents the summation operation, i represents the sequence number of the remote sensing image in the training set, and y i represents the label file corresponding to the i-th remote sensing image input into the remote sensing image cloud detection network, log(·) represents the logarithmic operation with base 2, It represents the detection result output by the network after the i-th remote sensing image is detected using the remote sensing image cloud detection network.

[0089] Step 4: Detect remote sensing images containing clouds.

[0090] The remote sensing image containing clouds to be detected is input into the trained remote sensing image cloud detection network, and the cloud detection result is output.

[0091] The effect of the present invention is further described below in conjunction with simulation experiments:

[0092] 1. Simulation conditions:

[0093] The hardware platform of the simulation experiment of the present invention includes: the processor is Intel(R) Xeon(R) Silver 4110 CPU@2.10, the memory is 64GB, and the graphics card is NVIDIA RTX2080Ti.

[0094] The software platform of the simulation experiment of the present invention: a code running environment including TensorFlow 1.12.0 and Keras2.2.4 deep learning frameworks is built in the Python 3.6.12 virtual environment of Anaconda.

[0095] The remote sensing image data used in the simulation experiment of the present invention is the GF1_WHU data set created by the Earth Science Perception Data Quality Improvement and Fusion Application Research Laboratory of Wuhan University. The data set contains 108 images of the high-resolution wide-field camera with imaging time between May 2013 and August 2016. The present invention randomly selects 86 images to form a training set, and the remaining 22 images are used as a test set. Each image in the training set and the test set is cropped to obtain a remote sensing image of size 512×512×4, and the image format is tiff.

[0096] 2. Simulation content and result analysis:

[0097] The simulation experiment of the present invention uses the training set of the present invention to train the present invention and two existing technologies (DeepLabv3+, RS-Net) respectively to obtain three trained networks, and then inputs 22 remote sensing images in the test set into each trained network for cloud detection to obtain the results of cloud detection of the remote sensing images by each network.

[0098] The prior art method DeepLabv3+ refers to: an image segmentation method based on a convolutional neural network with dilated convolution proposed by LC Chen et al. in their paper “Encoder-Decoder with atrous separable convolution for semantic image segmentation” (Proc. Eur. Conf. Comput. Vis. (ECCV), 2018, pp. 801-818), referred to as DeepLabv3+.

[0099] The prior art method RS-Net refers to: the deep learning cloud detection method based on the codec structure proposed by JH Jeppesen et al. in their published paper “A cloud detection algorithm for satellite imagery based on deep learning” (RemoteSens. Environ, 2019, pp. 247-259), referred to as RS-Net.

[0100] The detection results of the three methods are evaluated using two evaluation indicators (precision and recall). The following formula is used to calculate the precision and recall.

[0101]

[0102]

[0103] All calculation results are plotted in Table 1, where Ours in Table 1 represents the simulation experiment results of the present invention.

[0104] Table 1 Comparison of objective indicators of the present invention with other existing algorithms

[0105] Evaluation Metrics Deeplabv3+ RS-Net Ours Accuracy 96.18% 96.71% 97.35% Recall 85.99% 87.92% 90.10%

[0106] It can be seen from Table 1 that the accuracy of the present invention is 97.35% and the recall rate is 90.10%. Both indicators are higher than those of the two prior art methods, which proves that the present invention can achieve higher remote sensing image cloud detection accuracy.

Claims

1. A remote sensing image cloud detection method based on cascaded color and texture feature attention, characterized in that: Construct and train a remote sensing image cloud detection network based on cascaded color and texture feature attention; the steps of the detection method include the following: Step 1: Generate training set: (1a) Select at least 50 remote sensing images containing clouds, where the size of each remote sensing image is 512×512, and each remote sensing image contains at least one cloud area; (1b) Annotate the cloud area in each remote sensing image and generate a label file corresponding to each remote sensing image after annotation; (1c) All remote sensing images and their corresponding label files form a training set; Step 2: Build a remote sensing image cloud detection network based on cascaded color and texture feature attention: (2a) Constructing the color feature attention module: Construct a color feature attention module for enhancing color features, whose structure is: the first input layer, pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the addition layer, the third convolution layer and the output layer; Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer connected in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer, and the third dilated convolution layer connected in parallel. In addition, the multiplication layer is also connected to the second input layer, and the addition layer is also connected to the second input layer. The parameters of each layer of the color feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the three dilated convolutions and the 1st to 3rd convolutional layers are all set to 3×3, and the activation layer uses the Sigmoid function; (2b) Build separately: Construct a texture feature attention module for enhancing detail texture features, whose structure is: the first input layer, pooling layer group, the first channel splicing layer, the dilated convolution layer group, the second channel splicing layer, the first convolution layer, the activation layer, the multiplication layer, the second convolution layer, the subtraction layer, the third convolution layer and the output layer; Among them, the pooling layer group consists of a global maximum pooling layer and a global average pooling layer connected in parallel, and the dilated convolution layer group consists of the first dilated convolution layer, the second dilated convolution layer, and the third dilated convolution layer connected in parallel. In addition, the multiplication layer is also connected to the second input layer, and the subtraction layer is also connected to the second input layer. The parameters of each layer of the texture feature attention module are set as follows: the expansion rates of the 1st to 3rd dilated convolutional layers are set to 1, 3, and 5 respectively, the convolution kernel sizes of the 1st to 3rd dilated convolutional layers and the 1st to 3rd convolutional layers are both set to 3×3, and the activation layer uses the Sigmoid function; (2c) Construct color feature extraction subnet: Construct a color feature extraction subnet for extracting color features, whose structure is: dark channel prior layer, first convolution layer, first downsampling layer, second convolution layer, second downsampling layer, third convolution layer, third downsampling layer; The parameters of each layer of the color feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolution layers is set to 3×3, the number of channels is set to 2, 4, and 8 respectively, and the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2; (2d) Construct texture feature extraction subnet: Construct a texture feature extraction subnet for extracting texture features, whose structure is: NSCT layer, the first convolution layer, the first downsampling layer, the second convolution layer, the second downsampling layer, the third convolution layer, and the third downsampling layer; The parameters of each layer of the texture feature extraction subnet are set as follows: the convolution kernel size of the 1st to 3rd convolution layers is set to 3×3, and the number of channels is set to 2, 4, and 8 respectively; the downsampling kernel size of the 1st to 3rd downsampling layers is set to 2×2; (2e) Construct the encoding and decoding subnet: Construct a codec subnet, whose structure is as follows: input layer, first scale transformation layer, second scale transformation layer, third scale transformation layer, fourth scale transformation layer, first convolution layer, first scale restoration layer, second scale restoration layer, third scale restoration layer, fourth scale restoration layer, second convolution layer, output layer; wherein, the structures of the first to fourth scale transformation layers are composed of the first convolution layer, channel splicing layer, second convolution layer and downsampling layer connected in series, and the structures of the first to fourth scale restoration layers are composed of the upsampling layer, channel splicing layer and convolution layer connected in series; the second convolution layer in the first scale transformation layer is connected to the channel splicing layer in the fourth scale restoration layer, the second convolution layer in the second scale transformation layer is connected to the channel splicing layer in the third scale restoration layer, the second convolution layer in the third scale transformation layer is connected to the channel splicing layer in the second scale restoration layer, and the second convolution layer in the fourth scale transformation layer is connected to the channel splicing layer in the first scale restoration layer; Set the parameters of each layer of the codec subnet as follows: set the convolution kernel size of the 1st to 2nd convolution layer, the 1st to 2nd convolution layer in the 1st to 4th scale transformation layer, and the convolution kernel size of the 1st to 4th scale restoration layer to 3×3, set the downsampling kernel size of the downsampling layer in the 1st to 4th scale transformation layer to 2×2, and set the upsampling kernel size of the upsampling layer in the 1st to 4th scale restoration layer to 2×2; (2f) Four color feature attention modules with the same structure, four texture feature attention modules with the same structure, a color feature extraction subnet, a texture feature extraction subnet and an encoding and decoding subnet are connected in a module embedding manner to form a cloud detection network based on cascaded color and texture feature attention; Step 3: Train the remote sensing image cloud detection network: The training set is input into the remote sensing image cloud detection network, and the parameters of the network are iteratively updated using the gradient descent method until the value of the network's loss function converges, thereby obtaining a trained remote sensing image cloud detection network; Step 4: Detect remote sensing images containing clouds: The remote sensing image containing clouds to be detected is input into the trained remote sensing image cloud detection network, and the cloud detection result is output.

2. The remote sensing image cloud detection method based on cascaded color and texture feature attention according to claim 1, characterized in that: The module embedding connection method described in step (2f) refers to: Connect the input layer of the codec subnet to the dark channel prior layer of the color feature extraction subnet, and connect the dark channel prior layer of the color feature extraction subnet to the NSCT layer; Connect the output layer of one color feature attention module to the second input layer of one texture feature attention module to form one cascade color and texture feature attention module, and connect four color feature attention modules and four texture feature attention modules in the above manner to form four cascade color and texture feature attention modules; Connect the dark channel prior layer and NSCT layer of the feature extraction subnet to the first cascaded color and texture feature attention module, and connect the output layer of the first cascaded color and texture feature attention module to the first channel concatenation layer of the encoder-decoder subnet; Connect the first downsampling layer of the color feature extraction subnet and the first downsampling layer of the texture feature extraction subnet to the second cascade color and texture feature attention module respectively, and connect the output layer of the second cascade color and texture feature attention module to the second channel concatenation layer of the encoder-decoder subnet; Connect the second downsampling layer of the color feature extraction subnet and the second downsampling layer of the texture feature extraction subnet to the third cascade color and texture feature attention module respectively, and connect the output layer of the third cascade color and texture feature attention module to the third channel concatenation layer of the encoder-decoder subnet; The 3rd downsampling layer of the color feature extraction subnet and the 3rd downsampling layer of the texture feature extraction subnet are respectively connected to the 4th cascade color and texture feature attention module, and the output layer of the 4th cascade color and texture feature attention module is connected to the 4th channel splicing layer of the encoder-decoder subnet to form a remote sensing image cloud detection network.

3. The remote sensing image cloud detection method based on cascaded color and texture feature attention according to claim 1, characterized in that: The loss function described in step 3 is as follows: Among them, L represents the loss function, ∑ represents the summation operation, i represents the sequence number of the remote sensing image in the training set, and y i represents the label file corresponding to the i-th remote sensing image input into the remote sensing image cloud detection network, log(·) represents the logarithmic operation with base 2, It represents the detection result output by the network after the i-th remote sensing image is detected using the remote sensing image cloud detection network.