Deep Learning-Based All-Sky Cloud Image Recognition
Abstract
1. Introduction
2. Data and Methods
2.1. Equipment Overview
2.2. Data Preprocessing
2.3. Methods
2.3.1. Image Preprocessing
2.3.2. Cloud Classification
2.3.3. Cloud Cover Detection Method
2.3.4. Cloud Classification Evaluation Metrics
3. Results
3.1. Cloud Type Identification
- (1)
- Freezing the initial two convolutional layers during training to retain general image features, while fine-tuning subsequent convolutional layers to adapt to specific task requirements [30].
- (2)
- Replacing traditional fully connected layers with global average pooling (GAP) layers [31] to reduce the number of model parameters and mitigate overfitting risks.
- (3)
- The Adam optimizer is used during model training, and weight decay is introduced to further suppress overfitting [32].
- (4)
- To enhance the model’s generalization ability, data augmentation strategies are incorporated during training, including random horizontal flipping [33], Gaussian pyramid down-sampling [34], and CLAHE operations [35]. Based on the trained model, the results of four types of cloud recognition obtained by inputting test set samples are shown in Figure 6.
- (1)
- Morphological similarity: The blocky contours of cumulus clouds and the filamentous structures of cirrus clouds are easily confused in low-resolution images;
- (2)
- Lighting interference: Strong sunlight in the Hainan region enhances the reflection at the edges of cirrus clouds, creating local similarities with the fluffy features of cumulus clouds;
- (3)
- Data limitations: Under small-sample training, the model lacks sufficient learning of fine-grained features.
3.2. Total Cloud Cover Detection
4. Conclusions
- (1)
- In terms of cloud identification, the feature-optimized CNN architecture achieved an average classification accuracy of 95%, demonstrating the feasibility and potential of deep learning approaches for all-sky cloud classification. Nevertheless, relatively lower performance for cumulus and cirrus clouds highlights the persistent challenges posed by morphological similarity and illumination interference in fine-grained cloud recognition. After introducing the SEBlock channel attention mechanism, an improvement trend was observed for cumulus cloud classification, suggesting that enhanced channel-wise feature weighting may help emphasize aggregated texture characteristics. However, this improvement was accompanied by a decrease in clear-sky classification performance, indicating a potential trade-off introduced by the attention mechanism under small-sample conditions. Moreover, the difficulty in accurately identifying filamentous cirrus structures under strong illumination remains unresolved, underscoring the limitations of the current approach in modeling lighting invariance. These results should be interpreted with caution due to the limited dataset size.
- (2)
- In terms of cloud cover detection, visual consistency evaluation methods were employed to compare the performance of different segmentation algorithms. The results indicate that the cloud segmentation method based on the normalized red-blue ratio (NRBR) generally performs better than K-Means clustering and the built-in algorithm of the SONA 502U device. By constructing segmentation thresholds using spectral ratio features derived from the red and blue channels, the NRBR method effectively exploits reflectance differences between clouds and atmospheric backgrounds in the visible spectrum, leading to more consistent cloud–non-cloud separation. Overall, the NRBR-based segmentation shows advantages in terms of morphological coherence and quantitative agreement, although its performance may still be influenced by illumination conditions.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Voigt, A.; Albern, N.; Ceppi, P.; Grise, K.; Li, Y.; Medeiros, B. Clouds, radiation, and atmospheric circulation in the present-day climate and under climate change. WIREs Clim. Change 2021, 12, e694. [Google Scholar] [CrossRef]
- Carslaw, K.; Harrison, R.; Kirkby, J. Cosmic rays, clouds, and climate. Science 2002, 298, 1732–1737. [Google Scholar] [CrossRef] [PubMed]
- World Meteorological Organization. International Cloud Atlas Volume I: Manual on the Observation of Clouds and Other Meteors; World Meteorological Organization: Geneva, Switzerland, 1975. [Google Scholar]
- Yang, C.; Zhang, Y.; Xia, M.; Lin, H.; Liu, J.; Li, Y. Satellite Image for Cloud and Snow Recognition Based on Lightweight Feature Map Attention Network. ISPRS Int. J. Geo-Inf. 2022, 11, 390. [Google Scholar] [CrossRef]
- Zhang, Z.; Li, D.; Liu, S.; Xiao, B.; Cao, X. Multi-View Ground-Based Cloud Recognition by Transferring Deep Visual Information. Appl. Sci. 2018, 8, 748. [Google Scholar] [CrossRef]
- Hensel, S.; Marinov, M.B.; Koch, M.; Arnaudov, D. Evaluation of Deep Learning-Based Neural Network Methods for Cloud Detection and Segmentation. Energies 2021, 14, 6156. [Google Scholar] [CrossRef]
- Chow, C.W.; Urquhart, B.; Lave, M.; Dominguez, A.; Kleissl, J.; Shields, J.; Washom, B. Intra-hour forecasting with a total sky imager at the UC San Diego solar energy testbed. Sol. Energy 2011, 85, 2881–2893. [Google Scholar] [CrossRef]
- Wang, Z.; Zhao, J.; Zhang, R.; Li, Z.; Lin, Q.; Wang, X. UATNet: U-Shape Attention-Based Transformer Net for Meteorological Satellite Cloud Recognition. Remote Sens. 2022, 14, 104. [Google Scholar] [CrossRef]
- Irish, R.R.; Barker, J.L.; Goward, S.N.; Arvidson, T. Characterization of the Landsat-7 ETM Automated Cloud-Cover Assessment (ACCA) Algorithm. Photogramm. Eng. Remote. Sens. 2006, 72, 1179–1188. [Google Scholar] [CrossRef]
- Li, P.; Dong, L.; Xiao, H.; Xu, M. A cloud image detection method based on SVM vector machine. Neurocomputing 2015, 169, 34–42. [Google Scholar] [CrossRef]
- Liu, S.; Li, M.; Zhang, Z.; Xiao, B.; Durrani, T.S. Multi-Evidence and Multi-Modal Fusion Network for Ground-Based Cloud Recognition. Remote Sens. 2020, 12, 464. [Google Scholar] [CrossRef]
- Yu, A.; Tang, M.; Li, G.; Hou, B.; Xuan, Z.; Zhu, B.; Chen, T. A Novel Robust Classification Method for Ground-Based Clouds. Atmosphere 2021, 12, 999. [Google Scholar] [CrossRef]
- Ye, L.; Cao, Z.; Xiao, Y.; Li, W. Ground-based cloud image categorization using deep convolutional visual features. In Proceedings of the 2015 IEEE International Conference on Image Processing (ICIP); IEEE: New York, NY, USA, 2015; pp. 4808–4812. [Google Scholar]
- Ye, L.; Cao, Z.; Xiao, Y. DeepCloud: Ground-Based Cloud Image Categorization Using Deep Convolutional Features. IEEE Trans. Geosci. Remote Sens. 2017, 55, 5729–5740. [Google Scholar] [CrossRef]
- Aghdam, H.H.; Heravi, E.J. Guide to Convolutional Neural Networks; Springer: New York, NY, USA, 2017; pp. 85–130. [Google Scholar]
- Shi, C.; Wang, C.; Wang, Y.; Xiao, B. Deep Convolutional Activations-Based Features for Ground-Based Cloud Classification. IEEE Geosci. Remote Sens. Lett. 2017, 14, 816–820. [Google Scholar] [CrossRef]
- Liu, S.; Li, M. Deep multimodal fusion for ground-based cloud classification in weather station networks. EURASIP J. Wirel. Commun. Netw. 2018, 2018, 48. [Google Scholar] [CrossRef]
- Zhang, J.; Liu, P.; Zhang, F.; Song, Q. CloudNet: Ground-based cloud classification with deep convolutional neural network. Geophys. Res. Lett. 2018, 45, 8665–8672. [Google Scholar] [CrossRef]
- Liu, Z.; Zhou, S.; Wang, M.; Peng, S.; Shen, A. Ground-based Visible-light Cloud Image Classification based on a Convolutional Neural Network. In Proceedings of the 2019 4th International Conference on Information Systems and Computer Networks (ISCON); IEEE: New York, NY, USA, 2019; pp. 108–112. [Google Scholar]
- Ma, J.; Zhang, T.; Jing, G.; Yan, W.; Yang, B. Ground-Based Cloud Image Recognition System Based on Multi-CNN and Feature Screening and Fusion. IEEE Access 2020, 8, 173949–173960. [Google Scholar]
- Ge, W.; Yang, X.; Jiang, R.; Shao, W.; Zhang, L. CD-CTFM: A Lightweight CNN-Transformer Network for Remote Sensing Cloud Detection Fusing Multiscale Features. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 4538–4551. [Google Scholar] [CrossRef]
- Xiao, W.; Zhang, Y.; Zheng, H.; Wu, Z.; Xie, Y.; Huang, Y. Microphysical Characteristics of Precipitation for Four Types of Typical Weather Systems on Hainan Island. Remote Sens. 2024, 16, 4144. [Google Scholar] [CrossRef]
- Sieltec Canarias. SONA 502U All-Sky Imager—Technical Specifications. Available online: https://www.sieltec.com.es/sona/ (accessed on 15 January 2024).
- D’Haeyer, J.P.F. Gaussian filtering of images: A regularization approach. Signal Process. 1989, 18, 169–181. [Google Scholar] [CrossRef]
- Reza, A.M. Realization of the Contrast Limited Adaptive Histogram Equalization (CLAHE) for Real-Time Image Enhancement. J. VLSI Signal Process. Syst. Signal Image Video Technol. 2004, 38, 35–44. [Google Scholar] [CrossRef]
- Paris, S.; Hasinoff, S.W.; Kautz, J. Local Laplacian filters: Edge-aware image processing with a Laplacian pyramid. ACM Trans. Graph. (TOG) 2011, 30, 1–12. [Google Scholar] [CrossRef]
- Lecun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proc. IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef]
- Selim, S.Z.; Ismail, M.A. K-Means-Type Algorithms: A Generalized Convergence Theorem and Characterization of Local Optimality. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 6, 81–87. [Google Scholar] [CrossRef] [PubMed]
- Nie, Y.; Sun, Y.; Chen, Y.; Orsini, R.; Brandt, A.R. PV power output prediction from sky images using convolutional neural network: Comparison of sky-condition-specific sub-models and an end-to-end model. J. Renew. Sustain. Energy 2020, 12, 046101. [Google Scholar] [CrossRef]
- Yosinski, J.; Clune, J.; Bengio, Y.; Lipson, H. How transferable are features in deep neural networks? arXiv 2014, arXiv:1411.1792. [Google Scholar] [CrossRef]
- Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A.; Liu, W.; et al. Going deeper with convolutions. In Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2015; pp. 1–9. [Google Scholar]
- Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. In Proceedings of the 7th International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
- Shorten, C.; Khoshgoftaar, T.M. A survey on Image Data Augmentation for Deep Learning. J. Big Data 2019, 6, 60. [Google Scholar] [CrossRef]
- Hao, X.; Liu, L.; Yang, R.; Yin, L.; Zhang, L.; Li, X. A Review of Data Augmentation Methods of Remote Sensing Image Target Recognition. Remote Sens. 2023, 15, 827. [Google Scholar] [CrossRef]
- Halloum, K.; Ez-Zahraouy, H. Enhancing Medical Image Classification through Transfer Learning and CLAHE Optimization. Curr. Med. Imaging 2025, 21, e15734056342623. [Google Scholar] [CrossRef]
- Luo, J.; Pan, Y.; Su, D.; Zhong, J.; Wu, L.; Zhao, W.; Hu, X.; Qi, Z.; Lu, D.; Wang, Y. Innovative cloud quantification: Deep learning classification and finite-sector clustering for ground-based all-sky imaging. Atmos. Meas. Tech. 2024, 17, 3765–3781. [Google Scholar] [CrossRef]








| Cloud Type | Precision | Recall | Score |
|---|---|---|---|
| Sunny | 1.00 | 1.00 | 1.00 |
| Stratus | 1.00 | 1.00 | 1.00 |
| Cumulus | 0.91 | 0.91 | 0.91 |
| Cirrus | 0.91 | 0.91 | 0.91 |
| Average | 0.95 | 0.95 | 0.95 |
| Cloud Type | Precision | Recall | Score |
|---|---|---|---|
| Sunny | 0.91 | 0.91 | 0.91 |
| Stratus | 1.00 | 1.00 | 1.00 |
| Cumulus | 1.00 | 1.00 | 1.00 |
| Cirrus | 0.91 | 0.91 | 0.91 |
| Average | 0.95 | 0.95 | 0.95 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Jiang, Y.; Su, D.; Huang, Y.; Yang, N.; Ao, J. Deep Learning-Based All-Sky Cloud Image Recognition. Atmosphere 2026, 17, 142. https://doi.org/10.3390/atmos17020142
Jiang Y, Su D, Huang Y, Yang N, Ao J. Deep Learning-Based All-Sky Cloud Image Recognition. Atmosphere. 2026; 17(2):142. https://doi.org/10.3390/atmos17020142
Chicago/Turabian StyleJiang, Ying, Debin Su, Yanbin Huang, Ning Yang, and Jie Ao. 2026. "Deep Learning-Based All-Sky Cloud Image Recognition" Atmosphere 17, no. 2: 142. https://doi.org/10.3390/atmos17020142
APA StyleJiang, Y., Su, D., Huang, Y., Yang, N., & Ao, J. (2026). Deep Learning-Based All-Sky Cloud Image Recognition. Atmosphere, 17(2), 142. https://doi.org/10.3390/atmos17020142

