TL;DR
This paper introduces a novel two-stage deep learning architecture for accurately detecting clouds in high-resolution remote sensing images. By combining a coarse-grained analysis of undersampled images with a fine-grained pixel-level segmentation of ambiguous regions, the method achieves a significant improvement in cloud detection accuracy and recall, outperforming existing methods.
What Problem Does This Paper Address?
Remote sensing images are crucial for various applications like land use classification, but atmospheric clouds and haze often obscure the ground, leading to misinterpretations. Automatically generating accurate cloud masks is essential for these applications. However, processing very large, high-resolution satellite images (like Sentinel-2, with resolutions up to 10m) presents a significant computational challenge due to GPU memory limitations. Traditional methods like patching (analyzing small image tiles) lose global context, while undersampling loses local detail. This paper addresses the need for a method that can effectively handle large images, retain both global and local spatial information, and accurately detect clouds, especially at their boundaries, while also accommodating the specific characteristics of manually annotated cloud masks (which often prioritize contiguity and high recall over perfect precision).
Methods
The core of the proposed solution is a dual convolutional neural network (CNN) architecture.
- Coarse Model: This component takes an undersampled version of the entire image and classifies it into a grid of patches. Each patch is assigned one of four classes: "Overcast," "Cloudless," "Partly Cloudy," or "No Data." This coarse classification helps identify regions that require more detailed analysis. The architecture is a truncated CNN encoder (e.g., ResNet-50) without a decoder, designed to capture large spatial extents.
- Fine-grained Model: This component is activated only for patches classified as "Partly Cloudy" by the coarse model. It performs pixel-level segmentation on these specific patches at the original, full resolution. This is a conventional encoder-decoder CNN (e.g., FPN with SEResNeXt-50 backbone).
- Loss Function: A custom loss function is proposed for the coarse model to address the imbalanced nature of cloud masks (border regions are often smaller than clear or cloudy regions). It combines a weighted cross-entropy term with an adjacency loss term. The adjacency loss specifically penalizes differences in the count of adjacencies between predicted and ground truth class borders, encouraging more accurate and contiguous cloud boundaries.
- Data Pipeline: A detailed pipeline is described for preparing the data, including downsampling for the coarse model and creating overlapping patches for the fine-grained model.
Datasets
The authors used a dataset of 478 Sentinel-2 (S2) MSI L1C images from 2016-2017. These images were manually annotated for cloud masks, with specific guidelines to ensure high recall and contiguous cloud regions, even if it meant including some non-cloud pixels (e.g., snow) or discarding small cloud-free areas. This dataset is described as being derived from masks originally used for the EU Corine land cover mapping.
Key Insights and Ideas
- The power of two-stage processing: Combining a coarse, global analysis with a targeted, fine-grained analysis is highly effective for large-scale remote sensing imagery, balancing computational feasibility with accuracy.
- Adjacency loss for boundary refinement: Explicitly penalizing incorrect class adjacencies in the loss function significantly improves the modeling of cloud boundaries, which is crucial for applications requiring contiguous masks.
- Handling imbalanced data with custom loss: The "Partly Cloudy" class, representing cloud edges, is often underrepresented. The proposed weighted cross-entropy and adjacency loss effectively addresses this imbalance.
- Coarse model alone is surprisingly effective: Even without the fine-grained component, the coarse model (when configured to classify "Partly Cloudy" patches as "Cloud") achieves a respectable 80% accuracy, highlighting the importance of modeling global spatial features.
Key Results
- The proposed dual-network architecture achieved a 16% relative improvement in pixel accuracy compared to a baseline CNN that only used patching.
- It outperformed existing state-of-the-art cloud detection models (FMask, Sen2Cor, Idepix) by a wide margin.
- The method achieved high recall, matching a key motivation of the work.
- The dual-network architecture ran 4.1 times faster than a comparable single-stage baseline (FPN/SEResNeXt), taking approximately 9 seconds per image compared to 37 seconds.
Limitations and Future Work
- Annotation variability: The authors acknowledge that the annotation process, while aiming for consistency, introduced some variability due to the manual nature and evolving team.
- Snow and ice treatment: Snow and ice were treated as "Cloud" in the annotations due to their similar appearance and impact on land use applications. Future work could involve explicitly distinguishing these classes.
- Hyperparameter optimization: The authors suggest that further improvement could be achieved by more systematically optimizing hyperparameters (α, β, γ) and exploring different fine-grained architectures.
- Generalizability: While the framework is presented for cloud detection, the authors believe it is readily applicable to semantic segmentation of other multispectral datasets (e.g., Landsat, MODIS) and features with ambiguous boundaries.
Summary updated