Overcoming Variable Illumination in Photovoltaic Snow Monitoring: A Real-Time Robust Drone-Based Deep Learning Approach
Abstract
1. Introduction
2. Materials and Methods
2.1. Dataset Augmentation
2.2. Solar Panel Detection Models
2.2.1. Model Selection
- YOLOv11 Models: We evaluated YOLOv11n-seg (nano), YOLOv11m-seg (medium), and YOLOv11x-seg (extra large) [17,18]. These models were chosen to represent a spectrum of architectural complexity, enabling assessment across lightweight to high-capacity segmentation networks. Each model was initialized with COCO-pretrained weights.
2.2.2. Training Process
- YOLOv11 models (n, m, x) were trained for 100 epochs with input size and a batch size of 8, optimized using Ultralytics default settings (SGD with momentum = 0.937 and weight decay = ).
- Mask R-CNN models (ResNet-50-FPN and ResNet-101-FPN) were trained using Detectron2 with the standard 3× schedule (3000 iterations, base learning rate = 0.00025, momentum = 0.9).
2.2.3. Hyperparameter Settings
2.3. Snow Coverage Percentage (SCP) Estimation
2.3.1. Motivation and Challenges
2.3.2. Two-Stage Estimation Approach
2.3.3. Snow Coverage Percentage Calculation
2.4. Dynamic Thresholding for Generating Binary Masks
- Otsu’s Method: Otsu’s method is a global thresholding technique that automatically determines the optimal value to separate pixels into two classes (in our work, white and black pixels) by analyzing the image’s histogram. The core principle of the method is to find the threshold that minimizes the weighted intra-class variance, which is equivalent to maximizing the inter-class variance [24].
- Adaptive Thresholding [25]: Unlike Otsu’s method, which computes a single global threshold for the entire image, Adaptive Thresholding calculates a unique threshold for smaller regions of the image. This makes it particularly well suited for images with non-uniform illumination, where a single threshold would fail to capture the variations in brightness across the scene.
- HSV-based Thresholding [26]: In the HSV colorspace, each pixel is described by three intuitive attributes: hue, saturation, and value. The hue specifies the main wavelength of the color as an angle of 0° to 360°. The saturation indicates how pure or vivid that color appears on a 0–1 scale. The value measures brightness, also ranging from 0 (black) to 1 (full brightness). Unlike RGB, where red, green, and blue channels each mix both color and intensity, HSV cleanly isolates chromatic information (hue and saturation) from luminance (value). Because hue and saturation are largely invariant to lighting intensity, HSV thresholding often yields more robust, color-specific segmentation than simple grayscale or RGB thresholding, especially under variable illumination.
2.5. SAM2-Based Segmentation
3. Results
3.1. Performance of Solar Panel Detection Models
- Precision: This measures the accuracy of the positive predictions, indicating the proportion of correctly identified solar panels out of all detections made by the model. It is calculated as follows:
- Recall: This measures the model’s ability to identify all actual solar panels, representing the proportion of ground truth panels that were correctly detected. It is defined as follows:
- Mean Average Precision (mAP): This is a widely used evaluation metric in object detection that measures how well a model identifies and localizes objects. It is computed by averaging the Average Precision (AP) scores across all object classes. The mAP represents the area under the precision–recall curve, as illustrated in the following equations.
3.2. Accuracy of SCP Estimation
- For each image i containing panels, the Snow Coverage Percentage () was calculated for each individual panel j using Equation (1).
- The SCP values for all panels in image i were averaged to produce a single mean SCP for that image (), as shown in Equation (6).
- Finally, the mean SCP values from all M images in the test set were averaged to compute the overall estimated SCP ( for the given method, as described in Equation (7)).
3.3. Real-Time Performance and Field Validation
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Mohammadi, E.; Moschopoulos, G.; Chen, A. Boosting Solar Sustainability: Performance Assessment of Roof-Mounted PV Arrays Under Snow Considering Various Module Interconnection Schemes. Sustainability 2025, 17, 329. [Google Scholar] [CrossRef]
- International Renewable Energy Agency (IRENA). Global Energy Transformation: A Roadmap to 2050; IRENA: Abu Dhabi, United Arab Emirates, 2018. [Google Scholar]
- Pawluk, R.E.; Chen, Y.; She, Y. Photovoltaic electricity generation loss due to snow—A literature review on influence factors, estimation, and mitigation. Renew. Sustain. Energy Rev. 2019, 107, 171–182. [Google Scholar] [CrossRef]
- Abou Yassine, A.H.; Khoshbakhtnejad, E.; Sojoudi, H. Economics of snow accumulation on photovoltaic modules. Energies 2024, 17, 2962. [Google Scholar] [CrossRef]
- Zhang, X.; Araji, M.T. Snow loss modeling for solar modules using image processing and deep learning. Sustain. Energy Grids Netw. 2023, 34, 101036. [Google Scholar] [CrossRef]
- Braid, J.L.; Riley, D.; Pearce, J.M.; Burnham, L. Image analysis method for quantifying snow losses on PV systems. In Proceedings of the 2020 47th IEEE Photovoltaic Specialists Conference (PVSC), Virtual, 15 June–21 August 2020; pp. 1510–1516. [Google Scholar]
- Ozturk, O.; Hangun, B.; Eyecioglu, O. Detecting snow layer on solar panels using deep learning. In Proceedings of the 2021 10th International Conference on Renewable Energy Research and Application (ICRERA), Istanbul, Turkey, 26–29 September 2021; pp. 434–438. [Google Scholar]
- Sohani, A.; Sayyaadi, H.; Cornaro, C.; Shahverdian, M.H.; Pierro, M.; Moser, D.; Karimi, N.; Doranehgard, M.H.; Li, L.K.B. Using machine learning in photovoltaics to create smarter and cleaner energy generation systems: A comprehensive review. J. Clean. Prod. 2022, 364, 132701. [Google Scholar] [CrossRef]
- Araji, M.T.; Waqas, A.; Ali, R. Utilizing deep learning towards real-time snow cover detection and energy loss estimation for solar modules. Appl. Energy 2024, 375, 124201. [Google Scholar] [CrossRef]
- Al-Dulaimi, A.A.; Guneser, M.T.; Hameed, A.A.; Márquez, F.P.G.; Fitriyani, N.L.; Syafrudin, M. Performance analysis of classification and detection for PV panel motion blur images based on deblurring and deep learning techniques. Sustainability 2023, 15, 1150. [Google Scholar] [CrossRef]
- Parsaeifar, R.; Valinejadshoubi, M.; Le Guen, A.; Valdivieso, F. AI-Based Solar Panel Detection and Monitoring Using High-Resolution Drone Imagery. J. Soft Comput. Civ. Eng. 2025, 9, 41–59. [Google Scholar]
- Ataei, S.; Adibnazari, S.; Ataei, S.T. Data-driven detection and evaluation of damages in concrete structures: Using deep learning and computer vision. arXiv 2025, arXiv:2501.11836. [Google Scholar]
- Kim, B.; Cho, S. Automated multiple concrete damage detection using instance segmentation deep learning model. Appl. Sci. 2020, 10, 8008. [Google Scholar] [CrossRef]
- Saleem, A.; Awad, A.; Mazen, A.; Mazurkiewicz, Z.; Dyreson, A. Estimating Snow Coverage Percentage on Solar Panels Using Drone Imagery and Machine Learning for Enhanced Energy Efficiency. Energies 2025, 18, 1729. [Google Scholar] [CrossRef]
- Mazen, A.; Saleem, A.; Yazdipaz, K.; Dyreson, A. Real-Time Drone-Based Snow Detection for PV Systems Using Robust Lightweight Deep Learning Models. In Proceedings of the 2025 IEEE 53rd Photovoltaic Specialists Conference (PVSC), Montreal, QC, Canada, 8–13 June 2025; pp. 1636–1638. [Google Scholar]
- Florida Drone Supply. Parrot Anafi USA Gov Edition; Florida Drone Supply: Fort Myers, FL, USA, 2025. [Google Scholar]
- Khanam, R.; Hussain, M. YOLOv11: An Overview of the Key Architectural Enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar] [CrossRef]
- Ultralytics. Available online: https://github.com/ultralytics/ultralytics (accessed on 10 July 2025).
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
- Wu, Y.; Kirillov, A.; Massa, F.; Lo, W.Y.; Girshick, R. Detectron2. Available online: https://github.com/facebookresearch/detectron2 (accessed on 10 July 2025).
- Hu, P.; Han, Y.; Zhang, Z.; Chu, S.-C.; Pan, J.-S. A Multi-Level Thresholding Image Segmentation Algorithm Based on Equilibrium Optimizer. Sci. Rep. 2024, 14, 29728. [Google Scholar] [CrossRef] [PubMed]
- Al-Amri, S.S.; Kalyankar, N.V.; Khamitkar, S.D. Image Segmentation by Using Threshold Techniques. J. Comput. 2010, 2, 83–86. [Google Scholar]
- Ariyanfar, A.; Klein, K.; von Rechenberg, B.; Darwiche, S.; Dailey, H.L. Adaptive Image Segmentation Reveals Substantial Cortical Bone Remodelling During Early Fracture Repair. Comput. Methods Biomech. Biomed. Eng. Imaging Vis. 2024, 12, 2345165. [Google Scholar] [CrossRef] [PubMed]
- Otsu, N. A Threshold Selection Method from Gray-Level Histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef]
- Bradley, D.; Roth, G. Adaptive Thresholding Using the Integral Image. J. Graph. Tools 2007, 12, 13–21. [Google Scholar] [CrossRef]
- Hema, D.; Kannan, D.S. Interactive Color Image Segmentation Using HSV Color Space. Sci. Technol. J. 2019, 7, 37–41. [Google Scholar] [CrossRef]
- Ravi, N.; Gabeur, V.; Hu, Y.T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; Rädle, R.; Rolland, C.; Gustafson, L.; et al. SAM 2: Segment Anything in Images and Videos. arXiv 2024, arXiv:2408.00714. [Google Scholar]
- Sokolova, M.; Lapalme, G. A Systematic Analysis of Performance Measures for Classification Tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef]
- RSSL-MTU. RSSL-MTU-Solar-Panel-Snow-Coverage. GitHub Repository 2023. Available online: https://github.com/RSSL-MTU/RSSL-MTU-Solar-Panel-Snow-Coverage (accessed on 18 July 2025).
Hyperparameter | YOLOv11-Seg (n, m, x) | Mask R-CNN (R-50/R-101) |
---|---|---|
Framework | Ultralytics YOLO | Detectron2 |
Backbone | CSPDarknet | ResNet-50-FPN/ResNet-101-FPN |
Pre-trained Weights | yolov11-seg.pt | COCO pre-trained |
Training Duration | (107, 177, 99) Epochs | 3000 Iterations |
Initial Learning Rate | 0.01 | 0.00025 |
Optimizer | Auto (SGD + momentum) | SGD with Momentum |
Number of Classes | 1 (Solar Panel) | 1 (Solar Panel) |
Parameter | Value |
---|---|
points_per_side | 48 |
points_per_batch | 64 |
pred_iou_thresh | 0.7 |
stability_score_thresh | 0.92 |
stability_score_offset | 0.7 |
crop_n_layers | 1 |
box_nms_thresh | 0.7 |
crop_n_points_downscale_factor | 2 |
min_mask_region_area | 25.0 |
use_m2m | True |
Model | Precision | Recall | mAP50 | Inference Time (ms) |
---|---|---|---|---|
YOLO-v11-n-OBB [14] | 0.93 | 0.75 | 0.85 | 6.21 |
YOLO-v11-n-seg | 0.99 | 0.80 | 0.86 | 6.04 |
YOLO-v11-m-seg | 0.91 | 0.78 | 0.84 | 14.05 |
YOLO-v11-X-seg | 0.96 | 0.70 | 0.83 | 36.25 |
Mask R-CNN R-50 | - | 0.58 | 0.65 | 85.30 |
Mask R-CNN R-101 | - | 0.38 | 0.41 | 94.14 |
Metrics | GT | Fixed Thresholding [14] | Adaptive Thresholding | HSV | Otsu | SAM2 |
---|---|---|---|---|---|---|
(%) | 61.70% | 47.92% | 73.92% | 19.25% | 62.80% | 64.38% |
AEM (%) | – | 13.78% | 12.22% | 42.45% | 1.1% | 2.68% |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mazen, A.; Saleem, A.; Yazdipaz, K.; Dyreson, A. Overcoming Variable Illumination in Photovoltaic Snow Monitoring: A Real-Time Robust Drone-Based Deep Learning Approach. Energies 2025, 18, 5092. https://doi.org/10.3390/en18195092
Mazen A, Saleem A, Yazdipaz K, Dyreson A. Overcoming Variable Illumination in Photovoltaic Snow Monitoring: A Real-Time Robust Drone-Based Deep Learning Approach. Energies. 2025; 18(19):5092. https://doi.org/10.3390/en18195092
Chicago/Turabian StyleMazen, Amna, Ashraf Saleem, Kamyab Yazdipaz, and Ana Dyreson. 2025. "Overcoming Variable Illumination in Photovoltaic Snow Monitoring: A Real-Time Robust Drone-Based Deep Learning Approach" Energies 18, no. 19: 5092. https://doi.org/10.3390/en18195092
APA StyleMazen, A., Saleem, A., Yazdipaz, K., & Dyreson, A. (2025). Overcoming Variable Illumination in Photovoltaic Snow Monitoring: A Real-Time Robust Drone-Based Deep Learning Approach. Energies, 18(19), 5092. https://doi.org/10.3390/en18195092