Segregation and Context Aggregation Network for Real-time Cloud Segmentation

Yijie Li, Hewei Wang, Jiayi Zhang, Jinjiang You, Jinfeng Xu, Puzhen Wu, Yunzhong Xiao, Soumyabrata DevarXiv 2025 · OpenReview

Abstract

Cloud segmentation from intensity images is a pivotal task in atmospheric science and computer vision, aiding weather forecasting and climate analysis. Ground-based sky/cloud segmentation extracts clouds from images for further feature analysis. Existing methods struggle to balance segmentation accuracy and computational efficiency, limiting real-world deployment on edge devices, so we introduce SCANet, a novel lightweight cloud segmentation model featuring Segregation and Context Aggregation Module (SCAM), which refines rough segmentation maps into weighted sky and cloud features processed separately. SCANet achieves state-of-the-art performance while drastically reducing computational complexity. SCANet-large (4.29M) achieves comparable accuracy to state-of-the-art methods with 70.9% fewer parameters. Meanwhile, SCANet-lite (90K) delivers 1390 fps in FP16, surpassing real-time standards. Additionally, we propose an efficient pre-training strategy that enhances performance even without ImageNet pre-training.

Introduction

Accurate cloud segmentation—distinguishing cloud from clear sky in images taken from the ground—is a cornerstone of modern atmospheric science. It is essential for solar energy forecasting, climate modeling, and predicting extreme weather. While satellite data is available, ground-based "whole-sky imagers" provide much higher resolution at a lower cost. However, the computer vision models required to process these images face a classic "Goldilocks" problem: heavy models (like standard U-Nets) are accurate but too computationally expensive for edge devices, while lightweight models often sacrifice accuracy at tricky boundaries or in low-contrast nighttime conditions. SCANet was developed to bridge this gap, creating a model that is both "edge-ready" and highly precise.

Methodology

SCANet is built on a U-Net-style encoder-decoder architecture but introduces several key optimizations for efficiency. Instead of heavy feature extractors, the model uses lightweight backbones like MobileNetV2 or EfficientNet-B0.

The SCANet architecture featuring the Segregation and Context Aggregation Module (SCAM).

The core innovation is the Segregation and Context Aggregation Module (SCAM). Because sky/cloud segmentation is a binary task, SCAM explicitly separates the processing of "sky" features and "cloud" features into two branches. It refines rough initial maps into weighted features, processes them separately to sharpen boundaries, and then aggregates them back together. Additionally, the model employs Deep Supervision at the last three stages of the decoder to ensure intermediate features are meaningful. For scenarios where standard ImageNet pre-training isn't ideal, the authors propose SWINySEG-based Pre-training (SWPT), a proxy task where the model learns to classify small image patches as "cloud" or "sky" before tackling the full segmentation task.

Experimental Setup

The primary benchmark used is the Singapore Whole Sky Nychthemeron Image SEGmentation Database (SWINySEG). This dataset contains 6,078 daytime and 690 nighttime images, providing a robust test for varying light conditions. Evaluation was performed on daytime-only, nighttime-only, and combined sets to ensure the model's versatility across different diurnal cycles.

Results and Discussion

The researchers benchmarked three versions of the model: SCANet-lite, SCANet, and SCANet-large.

Accuracy vs. Number of Parameters for various cloud segmentation models.

SCANet-large (4.29M parameters) achieved 97.0% accuracy on the SWINySEG dataset, matching or beating the previous state-of-the-art (MA-SegCloud) while using over 70% fewer parameters. SCANet-lite (only 90K parameters) maintains a respectable 94.4% accuracy while hitting a staggering 1390 FPS in FP16 precision, making it viable for resource-constrained IoT devices. Visual results show that SCANet is significantly better at capturing small, wispy cloud patches and maintaining accuracy during difficult nighttime transitions.

A key insight is that for binary segmentation, treating the foreground and background as distinct entities to be refined separately (the "Segregation" in SCAM) leads to much cleaner boundaries than typical monolithic decoders. Furthermore, the success of the SWPT strategy suggests that for specialized tasks like meteorology, pre-training on a simplified version of the target dataset can be more effective than pre-training on generic objects like cats and cars.

Conclusion

SCANet demonstrates that high-fidelity cloud masks can be achieved without tens of millions of parameters. By focusing on how features are segregated and aggregated, the model achieves state-of-the-art results with a fraction of the computational cost. Future work will aim to expand the model to multi-class segmentation for different cloud types and integrate it into broader systems for solar irradiance prediction and cloud depth estimation.

Summary updated

BibTeX
@misc{li2025segregation,
  author = {Yijie Li and Hewei Wang and Jiayi Zhang and Jinjiang You and Jinfeng Xu and Puzhen Wu and Yunzhong Xiao and Soumyabrata Dev},
  title = {{Segregation and Context Aggregation Network for Real-time Cloud Segmentation}},
  year = {2025},
  eprint = {2504.14178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.14178},
}
Figure