Comparative Evaluation of YOLO- and Transformer-Based Models for Photovoltaic Fault Detection Using Thermal Imagery
Abstract
1. Introduction
- A comprehensive benchmarking of state-of-the-art real-time object detection models is developed in this work. Architectures from both the YOLO and Transformer families are trained and evaluated on the PV defect dataset using a unified training protocol and ensuring consistency across experiments. Model performance is compared in terms of mAP@0.5, mAP@0.5:0.95, precision, recall, F1-score, and inference time.
- A per-class evaluation supported by mAP@0.5 heatmaps is conducted to identify the most and least detectable fault categories. The analysis of detection accuracy across object size groups (small, medium, and large) provides insights into the strengths and limitations of each model regarding defect scale. Evaluating the best model on unseen data from another PV plant helps verify its functionality and shows whether it can be used effectively in real-world applications.
2. Materials and Methods
2.1. YOLO
2.2. Transformer
3. Experiments and Results
3.1. Dataset
3.2. Experimental Results
4. Discussion
5. Conclusions and Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| PV | Photovoltaic |
| UAVs | Unmanned Aerial Vehicles |
| AI | Artificial Intelligence |
| CNNs | Convolutional Neural Networks |
| YOLO | You Only Look Once |
| DPiT | Detecting defects of Photovoltaic solar cells with Image Transformers |
| mAP | Mean Average Precision |
| EIOU | Efficient Intersection over Union |
| ViTs | Vision Transformers |
| IoU | Intersection over Union |
| DETR | Detection Transformer |
| SGD | Stochastic gradient descent |
| MBP | MultiByPassed |
| MD | MultiDiode |
| MHS | MultiHotSpot |
| SBP | SingleByPassed |
| SD | SingleDiode |
| SHS | SingleHotSpot |
| SOC | StringOpenCircuit |
| AUC | Area Under the Curve |
| AP | Average Precision |
| STD | Standard Deviation |
References
- Segovia Ramírez, I.; García Márquez, F.P.; Parra Chaparro, J. Convolutional neural networks and Internet of Things for fault detection by aerial monitoring of photovoltaic solar plants. Measurement 2024, 234, 114861. [Google Scholar] [CrossRef]
- Gangwar, P.; Tripathi, R.P.; Singh, A.K. Solar photovoltaic tree: A review of designs, performance, applications, and challenges. Energy Sources Part A Recovery Util. Environ. Eff. 2025, 47, 5910–5937. [Google Scholar] [CrossRef]
- Meribout, M.; Kumar Tiwari, V.; Pablo Peña Herrera, J.; Najeeb Mahfoudh Awadh Baobaid, A. Solar panel inspection techniques and prospects. Measurement 2023, 209, 112466. [Google Scholar] [CrossRef]
- Khan, M.J.; Kumar, D.; Narayan, Y.; Malik, H.; García Márquez, F.P.; Gómez Muñoz, C.Q. A Novel Artificial Intelligence Maximum Power Point Tracking Technique for Integrated PV-WT-FC Frameworks. Energies 2022, 15, 3352. [Google Scholar] [CrossRef]
- Waqar Akram, M.; Li, G.; Jin, Y.; Chen, X. Failures of Photovoltaic modules and their Detection: A Review. Appl. Energy 2022, 313, 118822. [Google Scholar] [CrossRef]
- Yang, B.; Zheng, R.; Han, Y.; Huang, J.; Li, M.; Shu, H.; Su, S.; Guo, Z. Recent Advances in Fault Diagnosis Techniques for Photovoltaic Systems: A Critical Review. Prot. Control Mod. Power Syst. 2024, 9, 36–59. [Google Scholar] [CrossRef]
- Mellit, A.; Tina, G.M.; Kalogirou, S.A. Fault detection and diagnosis methods for photovoltaic systems: A review. Renew. Sustain. Energy Rev. 2018, 91, 1–17. [Google Scholar] [CrossRef]
- Bodnár, I.; Matusz-Kalász, D.; Boros, R.R. Exploration of Solar Panel Damage and Service Life Reduction Using Condition Assessment, Dust Accumulation, and Material Testing. Sustainability 2023, 15, 9615. [Google Scholar] [CrossRef]
- Segovia Ramírez, I.; Das, B.; García Márquez, F.P. Fault detection and diagnosis in photovoltaic panels by radiometric sensors embedded in unmanned aerial vehicles. Prog. Photovolt. Res. Appl. 2022, 30, 240–256. [Google Scholar] [CrossRef]
- Triki-Lahiani, A.; Bennani-Ben Abdelghani, A.; Slama-Belkhodja, I. Fault detection and monitoring systems for photovoltaic installations: A review. Renew. Sustain. Energy Rev. 2018, 82, 2680–2692. [Google Scholar] [CrossRef]
- Alimi, O.A.; Meyer, E.L.; Olayiwola, O.I. Solar Photovoltaic Modules’ Performance Reliability and Degradation Analysis—A Review. Energies 2022, 15, 5964. [Google Scholar] [CrossRef]
- Yang, C.; Sun, F.; Zou, Y.; Lv, Z.; Xue, L.; Jiang, C.; Liu, S.; Zhao, B.; Cui, H. A Survey of Photovoltaic Panel Overlay and Fault Detection Methods. Energies 2024, 17, 837. [Google Scholar] [CrossRef]
- Gómez Muñoz, C.Q.; García Márquez, F.P. Future Maintenance Management in Renewable Energies. In Renewable Energies: Business Outlook 2050; García Márquez, F., Karyotakis, A., Papaelias, M., Eds.; Springer International Publishing: Cham, Switzerland, 2018; pp. 149–159. [Google Scholar] [CrossRef]
- Polymeropoulos, I.; Bezyrgiannidis, S.; Vrochidou, E.; Papakostas, G.A. Enhancing Solar Plant Efficiency: A Review of Vision-Based Monitoring and Fault Detection Techniques. Technologies 2024, 12, 175. [Google Scholar] [CrossRef]
- Xie, H.; Yuan, B.; Hu, C.; Gao, Y.; Wang, F.; Wang, C.; Wang, Y.; Chu, P. ST-YOLO: A defect detection method for photovoltaic modules based on infrared thermal imaging and machine vision technology. PLoS ONE 2024, 19, e0310742. [Google Scholar] [CrossRef]
- Ding, S.; Jing, W.; Chen, H.; Chen, C. Yolo Based Defects Detection Algorithm for EL in PV Modules with Focal and Efficient IoU Loss. Appl. Sci. 2024, 14, 7493. [Google Scholar] [CrossRef]
- Lei, Y.; Wang, X.; An, A.; Guan, H. Deeplab-YOLO: A method for detecting hot-spot defects in infrared image PV panels by combining segmentation and detection. J. Real-Time Image Process. 2024, 21, 52. [Google Scholar] [CrossRef]
- Cao, Y.; Pang, D.; Yan, Y.; Jiang, Y.; Tian, C. A photovoltaic surface defect detection method for building based on deep learning. J. Build. Eng. 2023, 70, 106375. [Google Scholar] [CrossRef]
- Ghahremani, A.; Adams, S.D.; Norton, M.; Khoo, S.Y.; Kouzani, A.Z. Detecting Defects in Solar Panels Using the YOLO v10 and v11 Algorithms. Electronics 2025, 14, 344. [Google Scholar] [CrossRef]
- Wang, J.; Du, H.; Zeng, Y. PDFormer: Efficient Vision Transformer for Photovoltaic Defect Detection. IEEE Trans. Consum. Electron. 2025, 71, 6602–6611. [Google Scholar] [CrossRef]
- Ramadan, E.A.; Moawad, N.M.; Abouzalm, B.A.; Sakr, A.A.; Abouzaid, W.F.; El-Banby, G.M. An innovative transformer neural network for fault detection and classification for photovoltaic modules. Energy Convers. Manag. 2024, 314, 118718. [Google Scholar] [CrossRef]
- Xie, X.; Liu, H.; Na, Z.; Luo, X.; Wang, D.; Leng, B. DPiT: Detecting Defects of Photovoltaic Solar Cells With Image Transformers. IEEE Access 2021, 9, 154292–154303. [Google Scholar] [CrossRef]
- Yang, Y.; Zhang, J.; Shu, X.; Pan, L.; Zhang, M. A Lightweight Transformer Model for Defect Detection in Electroluminescence Images of Photovoltaic Cells. IEEE Access 2024, 12, 194922–194931. [Google Scholar] [CrossRef]
- Haddad, H.; Jerbi, F.; Smaali, I. Defect Detection in PV Electroluminescence Images Using YOLOv9 to YOLOv12 Lightweights Variants. In Proceedings of the 2025 25th International Conference on Digital Signal Processing (DSP), Pylos, Greece, 25–27 June 2025; pp. 1–5. [Google Scholar] [CrossRef]
- Terven, J.; Córdova-Esparza, D.-M.; Romero-González, J.-A. A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS. Mach. Learn. Knowl. Extr. 2023, 5, 1680–1716. [Google Scholar] [CrossRef]
- Diwan, T.; Anirudh, G.; Tembhurne, J.V. Object detection using YOLO: Challenges, architectural successors, datasets and applications. Multimed. Tools Appl. 2023, 82, 9243–9275. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. CoRR. 2017. Available online: http://arxiv.org/abs/1706.03762 (accessed on 15 September 2025).
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. CoRR. 2020. Available online: https://arxiv.org/abs/2010.11929 (accessed on 10 September 2025).
- Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-End Object Detection with Transformers. 2020. Available online: https://arxiv.org/abs/2005.12872 (accessed on 10 September 2025).
- Darabi, P. ThermoSolar-PV: A Curated Thermal Imagery Dataset for Anomaly Detection in Photovoltaic Modules. June 2025. Available online: https://www.researchgate.net/publication/390740926_ThermoSolar-PV_A_Curated_Thermal_Imagery_Dataset_for_Anomaly_Detection_in_Photovoltaic_Modules?channel=doi&linkId=67fb7d12df0e3f544f41087a&showFulltext=true (accessed on 6 October 2025).
- Jocher, G. Ultralytics YOLOv5. 2020. Available online: https://zenodo.org/records/7347926 (accessed on 15 October 2025).
- Li, C.; Li, L.; Geng, Y.; Jiang, H.; Cheng, M.; Zhang, B.; Ke, Z.; Xu, X.; Chu, X. YOLOv6 v3.0: A Full-Scale Reloading. arXiv 2023, arXiv:2301.05586. [Google Scholar] [CrossRef]
- Wang, C.-Y.; Bochkovskiy, A.; Liao, H.-Y.M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. arXiv 2022, arXiv:2207.02696. [Google Scholar]
- Jocher, G.; Chaurasia, A.; Qiu, J. Ultralytics YOLOv8. 2023. Available online: https://github.com/ultralytics/ultralytics (accessed on 20 October 2025).
- Wang, C.-Y.; Liao, H.-Y.M. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. arXiv 2024, arXiv:2402.13616. [Google Scholar] [CrossRef]
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. arXiv 2024, arXiv:2405.14458. [Google Scholar]
- Jocher, G.; Qiu, J. Ultralytics YOLO11. 2024. Available online: https://github.com/ultralytics/ultralytics (accessed on 12 November 2025).
- Tian, Y.; Ye, Q.; Doermann, D. YOLO12: Attention-Centric Real-Time Object Detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024. [Google Scholar]
- Lv, W.; Zhao, Y.; Chang, Q.; Huang, K.; Wang, G.; Liu, Y. RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer. 2024. Available online: https://arxiv.org/abs/2407.17140 (accessed on 18 September 2025).
- Robinson, I.; Robicheaux, P.; Popov, M.; Ramanan, D.; Peri, N. RF-DETR: Neural Architecture Search for Real-Time Detection Transformers. 2025. Available online: https://arxiv.org/abs/2511.09554 (accessed on 20 September 2025).











| Defect Types | Description | Subcategories |
|---|---|---|
| Structural defects | These defects are common and originate both during manufacturing and the subsequent operation of the solar panels. Causes include mechanical stress during assembly, transportation, and handling, as well as temperature changes and exposure to external agents. |
|
| Electrical defects | These faults affect the performance of the PV module and are detectable mainly by electroluminescence and thermal techniques. These faults are usually caused by the presence of stray currents in ungrounded PV systems, interconnection breakage at the string, and poor soldering and thermo-mechanical stress [5,6]. |
|
| Thermal defects | These defects generate temperature anomalies and are detected with thermographic cameras. Module shading, mismatched cells, diode failure, cell cracks, failed or resistive soldering connections, damaged packaging, etc., lead to the occurrence of hotspots [7]. |
|
| Overlying defects | These faults are usually caused by the shadow of clouds, solid things like tall buildings, trees, poles, sand, and dust storms. The overlayed PV cell heats up and leads to a hotspot [6,8]. Losses in energy production can reach 15–20% due to this type of defect [9]. |
|
| Degradation defects | These defects usually develop over time due to prolonged exposure to adverse environmental conditions such as humidity, UV radiation, and extreme temperature changes. Corrosion degradation affects the junctions between cells and structural components, which can result in electrical and mechanical failures [5,10,11]. |
|
| Model | MBP | MD | MHS | SBP | SD | SHS | SOC | SRP |
|---|---|---|---|---|---|---|---|---|
| rtdetr_r18vd | 0.899 | 0.467 | 0.767 | 0.916 | 0.768 | 0.815 | 0.776 | 0.538 |
| rtdetr_r34vd | 0.943 | 0.483 | 0.799 | 0.927 | 0.803 | 0.812 | 0.811 | 0.583 |
| rtdetr_r50vd | 0.929 | 0.475 | 0.783 | 0.930 | 0.796 | 0.801 | 0.816 | 0.586 |
| rtdetrv2_r18vd | 0.918 | 0.593 | 0.806 | 0.931 | 0.813 | 0.798 | 0.838 | 0.602 |
| rtdetrv2_r34vd | 0.889 | 0.552 | 0.823 | 0.927 | 0.818 | 0.814 | 0.787 | 0.588 |
| rtdetrv2_r50vd | 0.939 | 0.464 | 0.786 | 0.935 | 0.819 | 0.808 | 0.805 | 0.675 |
| RFDETR-Nano | 0.921 | 0.560 | 0.758 | 0.914 | 0.732 | 0.796 | 0.803 | 0.704 |
| RFDETR-Small | 0.897 | 0.586 | 0.778 | 0.915 | 0.768 | 0.791 | 0.824 | 0.756 |
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
Shamisavi, M.; Segovia Ramirez, I.; Gómez Muñoz, C.Q. Comparative Evaluation of YOLO- and Transformer-Based Models for Photovoltaic Fault Detection Using Thermal Imagery. Energies 2026, 19, 845. https://doi.org/10.3390/en19030845
Shamisavi M, Segovia Ramirez I, Gómez Muñoz CQ. Comparative Evaluation of YOLO- and Transformer-Based Models for Photovoltaic Fault Detection Using Thermal Imagery. Energies. 2026; 19(3):845. https://doi.org/10.3390/en19030845
Chicago/Turabian StyleShamisavi, Mahdi, Isaac Segovia Ramirez, and Carlos Quiterio Gómez Muñoz. 2026. "Comparative Evaluation of YOLO- and Transformer-Based Models for Photovoltaic Fault Detection Using Thermal Imagery" Energies 19, no. 3: 845. https://doi.org/10.3390/en19030845
APA StyleShamisavi, M., Segovia Ramirez, I., & Gómez Muñoz, C. Q. (2026). Comparative Evaluation of YOLO- and Transformer-Based Models for Photovoltaic Fault Detection Using Thermal Imagery. Energies, 19(3), 845. https://doi.org/10.3390/en19030845

