Abstract
This research introduces a novel artificial intelligence (AI) framework for fault detection and diagnosis (FDD) in photovoltaic (PV) systems that combines Convolutional Neural Networks (CNNs) with time–frequency analysis via the Wigner–Ville Distribution (WVD). The proposed method transforms raw numerical measurements—including solar irradiance, temperature, voltage, current, and power—into compact 6 × 12 time–frequency image representations, enabling effective spatial feature extraction by CNNs that are well suited to image-like data. The framework is benchmarked under both noiseless and noisy conditions on a comprehensive 17‑class dataset comprising one healthy condition (C0) and sixteen fault types (F1–F16), including progressive short‑circuit faults within a single string, pure partial‑shading faults, and combined inter‑string short‑circuit and asymmetric partial‑shading patterns along PV strings. To contextualize performance, the CNN–WVD model is compared not only with classical Artificial Neural Networks (ANNs) and Deep Neural Networks (DNNs) but also with Gradient Boosting Machines (GBM), Random Forests (RF), Support Vector Machines (SVM), and k‑Nearest Neighbors (kNN), all trained on the same WVD‑transformed data. In noiseless conditions, ANN and DNN achieve 99.51% and 99.49% accuracy, respectively, while the CNN attains 97.09%; RF, SVM, GBM, and kNN reach 93.47%, 88.62%, 84.01%, and 75.69% accuracy. Under noisy conditions that emulate real PV environments, the CNN is the most robust model with 90.27% accuracy, outperforming ANN (82.20%), RF (82.80%), SVM (83.85%), GBM (73.85%), DNN (76.27%), and kNN (72.80%). Key contributions include: (i) the use of WVD to obtain highly informative time–frequency representations of PV electrical signals, (ii) a structured data‑organization strategy that maps multivariate PV measurements into fixed‑size WVD images, and (iii) a CNN architecture that preserves high discrimination capability across closely related fault severities and locations, even in the presence of noise achieving 90.8% accuracy under realistic sensor noise (\(1 \times\) baseline uncertainty: \(\pm 10{W \mathord{\left/ {\vphantom {W {m^{2} }}} \right. \kern-0pt} {m^{2} }}\) irradiance, \(\pm 2 \, C\) temperature, \(\pm 5 \, V\) voltage, \(\pm 1 \, A\) current, \(\pm 25 \, W\) power) and maintaining 71.5% accuracy at \(3 \times\) noise, representing extreme aging sensor conditions. With a competitive degradation of only 8.91 percentage points—lower than the neural-network baselines (ANN: 16.27%, DNN: 15.00%) and the tree ensemble RF (11.34%)—the CNN + WVD framework demonstrates superior noise robustness for long-term deployment in real-world PV installations. By bridging advanced time–frequency analysis with deep learning and systematically comparing against a broad set of machine‑learning baselines, the proposed framework enables fully automated, fine‑grained PV fault classification without manual feature engineering, thereby enhancing monitoring reliability, reducing downtime, and supporting predictive maintenance in large‑scale PV deployments.
Data availability
The datasets used and/or analyzed during the current study are available from the corresponding author upon reasonable request.
References
Sizkouhi, A. M., Aghaei, M. & Esmailifar, S. M. A deep convolutional encoder-decoder architecture for autonomous fault detection of PV plants using multi-copters. Sol. Energy 223, 217–228 (2021).
Lu, X. et al. Efficient fault diagnosis approach for solar photovoltaic array using a convolutional neural network in combination of generative adversarial network under small dataset. Sol. Energy 253, 360–374 (2023).
Latoui, A. & Daachi, M. E. H. Real-time monitoring of partial shading in large PV plants using Convolutional Neural Network. Sol. Energy 253, 428–438 (2023).
Yousif, H. & Al-Milaji, Z. Fault detection from PV images using hybrid deep learning model. Sol. Energy 267, 112207 (2024).
Chen, X., Gao, W., Hong, C. & Tu, Y. A novel series arc fault detection method for photovoltaic system based on multi-input neural network. Int. J. Electr. Power Energy Syst. 140, 108018 (2022).
Lu, X. et al. Fault diagnosis model for photovoltaic array using a dual-channels convolutional neural network with a feature selection structure. Energy Convers. Manag. 248, 114777 (2021).
Ramírez, I. S., Márquez, F. P. G. & Chaparro, J. P. Convolutional neural networks and Internet of Things for fault detection by aerial monitoring of photovoltaic solar plants. Measurement https://doi.org/10.1016/J.MEASUREMENT.2024.114861 (2024).
Qu, J., Sun, Q., Qian, Z., Wei, L. & Zareipour, H. Fault diagnosis for PV arrays considering dust impact based on transformed graphical features of characteristic curves and convolutional neural network with CBAM modules. Appl. Energy 355, 122252 (2024).
Hong, Y. Y. & Pula, R. A. Detection and classification of faults in photovoltaic arrays using a 3D convolutional neural network. Energy 246, 123391 (2022).
Kellil, N., Aissat, A. & Mellit, A. Fault diagnosis of photovoltaic modules using deep neural networks and infrared images under Algerian climatic conditions. Energy 263, 125902 (2023).
Hou, Z., Liu, J., Shao, Z., Ma, Q. & Liu, W. Machine learning innovations in renewable energy systems with integrated NRBO-TXAD for enhanced wind speed forecasting accuracy. Electronics 14, 2329 (2025).
Hu, Q., Fan, C. & Guo, D. Forecasting future power via machine learning models for predicting energy consumption. Sādhanā 50(3), 225 (2025).
Liu, J., Hou, Z. & Yin, T. Short-term power load forecast using OOA optimized bidirectional long short-term memory network with spectral attention for the frequency domain. Energy Rep. 12, 4891–4908 (2024).
Hou, Z., Wang, B., Liu, J., He, Y. & Yao, Y. Physics-inspired time-frequency feature extraction and lightweight neural network for power quality disturbance classification. Front. Phys. 13, 1616367 (2025).
Hou, Z., Liu, J. & Yu, S. Enhanced analog circuit fault diagnosis via continuous wavelet transform and dual-stream convolutional fusion. Sci. Rep. 15(1), 19828 (2025).
Seghiour, A., Abbas, H. A., Chouder, A. & Rabhi, A. Deep learning method based on autoencoder neural network applied to faults detection and diagnosis of photovoltaic system. Simul. Model Pract. Theory 123, 102704 (2023).
Garoudja, E., Chouder, A., Kara, K. & Silvestre, S. An enhanced machine learning based approach for failures detection and diagnosis of PV systems. Energy Convers. Manag. 151, 496–513 (2017).
Chouder, A., Silvestre, S., Taghezouit, B. & Karatepe, E. Monitoring, modelling and simulation of PV systems using LabVIEW. Sol. Energy https://doi.org/10.1016/j.solener.2012.09.016 (2013).
Elmamoune, H., Abdellatif, S., Lakhdar, M., Aissa, C. & Said, B. An Improved Grey Wolf Optimizer for Parameter Extraction of Photovoltaic Cells. https://www.icaens.com/.
Malik, A., Haque, A., Kurukuru, V. S. B., Khan, M. A. & Blaabjerg, F. Overview of fault detection approaches for grid connected photovoltaic inverters. e-Prime – Adv. Electr. Eng., Electron. Energy 2, 100035 (2022).
Saifi, I. A., Amir, M., Haque, A. & Iqbal, A. Investigation of condition monitoring system for grid connected photovoltaic (GCPV) system with power electronics converters using machine learning techniques. e-Prime – Adv. Electr. Eng., Electron. Energy 9, 100722 (2024).
Seghiour, A., Seghier, T., Zegnini, B. & Georgoulas, G. Multi-Class Classification Approach for the Diagnosis of Broken Rotor Bars Based on Air-Gap Magnetic Flux Density Spectrum. Electrotehnica, Electronica. Automatica (EEA) 65, 31–39 (2017).
El Fadili, Y. & Boumhidi, I. New design of an intelligent electromagnetic torque controller based on neural network and fractional calculus: Variable-speed wind energy systems application. e-Prime – Adv. Electr. Eng., Electron. Energy 10, 100829 (2024).
Venkatesh, S. N., Sugumaran, V., Subramanian, B., Josephin, J. S. F. & Varuvel, E. G. A comparative study on bayes classifier for detecting photovoltaic module visual faults using deep learning features. Sustain. Energy Technol. Assess. 64, 103713 (2024).
Hong, Y. Y. & Pula, R. A. Diagnosis of photovoltaic faults using digital twin and PSO-optimized shifted window transformer. Appl. Soft Comput. 150, 111092 (2024).
Amiri, A. F., Kichou, S., Oudira, H., Chouder, A. & Silvestre, S. Fault Detection and Diagnosis of a Photovoltaic System Based on Deep Learning Using the Combination of a Convolutional Neural Network (CNN) and Bidirectional Gated Recurrent Unit (Bi-GRU). Sustain. (Switzerland) 16, 1012 (2024).
Lu, S. D., Wu, C. C. & Sian, H. W. A novel fault diagnosis method for PV arrays using convolutional extension neural network with symmetrized dot pattern analysis. IET Sci., Meas. Technol. 18, 49–64 (2024).
Wang, M. H., Hung, C. C., Lu, S. D., Lin, Z. H. & Kuo, C. C. Fault Diagnosis for PV Modules Based on AlexNet and Symmetrized Dot Pattern. Energies (Basel) 16, 7563 (2023).
Chouder, A. & Silvestre, S. Automatic supervision and fault detection of PV systems based on power losses analysis. Energy Convers. Manag. 51, 1929–1937 (2010).
Acknowledgements
The authors would like to acknowledge the Deanship of Graduate Studies and Scientific Research, Taif University for funding this work.
Funding
This work is funded and supported by the Deanship of Graduate Studies and Scientific Research, Taif University.
Author information
Authors and Affiliations
Contributions
Abdellatif Seghiour, Yacine Bendjeddou, Imene Meriem Mostefaoui, Aissa Chouder: Conceptualization, Methodology, Software, Visualization, Investigation, Writing- Original draft preparation. Hisham Alharbi, Abdullah S. Bin Humayd, Abebe Wondiferaw Wondimeneh, Abdulrahman Babqi: Data curation, Validation, Supervision, Resources, Writing—Review & Editing, Project administration, Funding Acquisition.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Seghiour, A., Bendjeddou, Y., Mostefaoui, I.M. et al. Fault detection and diagnosis in photovoltaic systems using artificial intelligence and time–frequency analysis. Sci Rep (2026). https://doi.org/10.1038/s41598-026-39386-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-39386-7