Abstract
Accurate cloud segmentation in ground-based images is essential for meteorological forecasting and solar energy management. However, varying lighting conditions and the non-rigid nature of clouds present significant challenges for traditional and deep learning methods alike. This paper presents ACLNet, a lightweight architecture that integrates an EfficientNet-B0 backbone with a Global Attention Module (GAM) and $k$-means clustering. By combining deep semantic features with traditional clustering-based boundary detection, ACLNet achieves state-of-the-art performance across daytime and nighttime datasets while maintaining a small computational footprint suitable for real-time deployment.
Introduction
Cloud segmentation serves as a foundational task for weather forecasting, climate hazard prediction, and the optimization of solar power plants. While satellite imagery provides a global perspective, ground-based "sky cameras" offer high-resolution local data necessary for precise regional monitoring. Despite the availability of this data, segmenting sky images remains a difficult computer vision problem.
Clouds lack rigid structures and exhibit extreme variability in shape, density, and opacity. Furthermore, lighting conditions fluctuate drastically over a 24-hour cycle. Traditional thresholding methods often fail during transition periods like dawn or dusk, or in low-contrast nighttime scenarios where the sky and clouds appear nearly identical in color. While deep learning models have improved segmentation accuracy, many existing architectures produce "blurry" boundaries or require excessive computational resources that hinder practical deployment. ACLNet addresses these issues by fusing deep learning with traditional clustering to sharpen boundaries and improve robustness across all lighting conditions.
Methodology
ACLNet (Attention and Clustering-based Cloud Segmentation Network) is built upon three primary architectural pillars designed to balance efficiency with high-resolution precision.
1. Efficient Backbone and Multi-Scale Feature Extraction
The model utilizes EfficientNet-B0 as its primary feature extractor. This backbone was selected for its high regularization and efficiency, which helps prevent overfitting on smaller meteorological datasets. To account for clouds of varying sizes and altitudes, the network employs Atrous Spatial Pyramid Pooling (ASPP). ASPP uses parallel dilated convolutions with different sampling rates, allowing the model to capture multi-scale context without increasing the parameter count significantly.
2. Global Attention Module (GAM)
A common issue in deep segmentation networks is the "semantic gap," where high-level features lose fine-grained spatial details during downsampling. The Global Attention Module (GAM) bridges this gap by using the original input image to guide the feature maps. By applying both pixel-wise and channel-level attention, the GAM weights the deep features based on the raw input, helping the model focus on specific regions of interest and recover lost spatial information.
3. $k$-means Clustering Integration
In a unique hybrid approach, ACLNet integrates traditional machine learning with deep neural networks. The authors apply $k$-means clustering ($k=2$) to the raw RGB pixels to identify initial boundaries between cloud and sky regions. This clustering output is fused with the deep learning feature maps. This integration allows the model to "snap" its predictions to the actual edges of the clouds, leveraging the raw data-driven boundaries that $k$-means provides to complement the abstract semantic understanding of the CNN.
Training Objective
The model is optimized using a hybrid BCE-DICE loss function. This combination balances Binary Cross Entropy (pixel-level accuracy) with the Dice coefficient (region-level overlap), ensuring the model is sensitive to both individual pixel classification and the overall shape of the cloud formations.
Experimental Setup and Datasets
The researchers evaluated ACLNet on three distinct benchmarks to test its versatility:
- SWIMSEG: A standard dataset focused on daytime cloud imagery.
- SWINSEG: A specialized dataset for nighttime cloud segmentation.
- SWINySEG: A comprehensive dataset combining both day and night images to evaluate performance over a full 24-hour (nychthemeron) cycle.
Results and Discussion
ACLNet demonstrated superior performance compared to established models such as U-Net, DeepLabv3+, and CloudSegNet across several key metrics.
Quantitative Performance
On the combined SWINySEG dataset, ACLNet achieved an F1-score of 0.968 and a remarkably low error rate of 0.024. Notably, the model maintained high robustness at night, achieving a 0.947 F1-score—a scenario where many traditional models fail due to low contrast.
Efficiency and Speed
One of the primary advantages of ACLNet is its efficiency. By utilizing the EfficientNet-B0 backbone, the model size is approximately 31MB, which is significantly smaller than competitors like CloudU-Net (138MB). Despite its small size, it achieves a throughput of 13.1 FPS on a P100 GPU, making it viable for real-time monitoring applications.
Qualitative Precision
Visual analysis indicates that ACLNet is particularly effective at capturing the "wispy" edges of thin cirrus clouds. While standard CNNs often produce blocky or overly smoothed outputs, the integration of the GAM and $k$-means clustering allows ACLNet to maintain high boundary precision, even in challenging low-light conditions.
Conclusion
ACLNet represents a significant step forward in ground-based cloud segmentation by proving that "old-school" machine learning techniques like $k$-means clustering still offer value when integrated into modern deep learning frameworks. The model's ability to maintain high accuracy across both day and night while remaining lightweight makes it a practical tool for real-world meteorological applications.
Future work will focus on expanding the model's capabilities to distinguish clouds from other objects (such as buildings or aircraft) and exploring unsupervised learning techniques to reduce the need for manual pixel-level annotations. Additionally, the authors plan to investigate how Vision Transformer (ViT) architectures might further enhance the model's ability to capture long-range dependencies in sky imagery.
Summary updated