IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i10p2482-d1653887.html
   My bibliography  Save this article

Faults Detection and Diagnosis of a Large-Scale PV System by Analyzing Power Losses and Electric Indicators Computed Using Random Forest and KNN-Based Prediction Models

Author

Listed:
  • Yasmine Gaaloul

    (LATIS Laboratory of Advanced Technology and Intelligent Systems, National Engineering School of Sousse, University of Sousse, Sousse 4023, Tunisia
    ESSTH Sousse, University of Sousse, Rue Abbassi Lamine, Hammam Sousse 4011, Tunisia)

  • Olfa Bel Hadj Brahim Kechiche

    (ESSTH Sousse, Laboratory of Energies and Materials (LR11ES34), University of Sousse, Rue Abbassi Lamine, Hammam Sousse 4011, Tunisia)

  • Houcine Oudira

    (Laboratory LGE, Department of Electronics, University Med Boudiaf M’Sila, M’Sila 28000, Algeria)

  • Aissa Chouder

    (Laboratory LGE, Department of Electronics, University Med Boudiaf M’Sila, M’Sila 28000, Algeria)

  • Mahmoud Hamouda

    (LATIS Laboratory of Advanced Technology and Intelligent Systems, National Engineering School of Sousse, University of Sousse, Sousse 4023, Tunisia)

  • Santiago Silvestre

    (Department of Electronic Engineering, Universitat Politècnica de Catalunya (UPC), Mòdul C5 Campus Nord UPC, Jordi Girona 1-3, 08034 Barcelona, Spain)

  • Sofiane Kichou

    (Czech Technical University in Prague, University Centre for Energy Efficient Buildings, 1024 Třinecká St., 27343 Buštěhrad, Czech Republic)

Abstract

Accurate and reliable fault detection in photovoltaic (PV) systems is essential for optimizing their performance and durability. This paper introduces a novel approach for fault detection and diagnosis in large-scale PV systems, utilizing power loss analysis and predictive models based on Random Forest (RF) and K-Nearest Neighbors (KNN) algorithms. The proposed methodology establishes a predictive baseline model of the system’s healthy behavior under normal operating conditions, enabling real-time detection of deviations between expected and actual performance. Faults such as string disconnections, module short-circuits, and shading effects have been identified using two key indicators: current error (Ec) and voltage error (Ev). By focusing on power losses as a fault indicator, this method provides high-accuracy fault detection without requiring extensive labeled data, a significant advantage for large-scale PV systems where data acquisition can be challenging. Additionally, a key contribution of this work is the identification and correction of faulty sensors, specifically pyranometer misalignment, which leads to inaccurate irradiation measurements and disrupts fault diagnosis. The approach ensures reliable input data for the predictive models, where RF achieved an R 2 of 0.99657 for current prediction and 0.99459 for power prediction, while KNN reached an R 2 of 0.99674 for voltage estimation, improving both the accuracy of fault detection and the system’s overall performance. The outlined approach was experimentally validated using real-world data from a 500 kWp grid-connected PV system in Ain El Melh, Algeria. The results demonstrate that this innovative method offers an efficient, scalable solution for real-time fault detection, enhancing the reliability of large PV systems while reducing maintenance costs.

Suggested Citation

  • Yasmine Gaaloul & Olfa Bel Hadj Brahim Kechiche & Houcine Oudira & Aissa Chouder & Mahmoud Hamouda & Santiago Silvestre & Sofiane Kichou, 2025. "Faults Detection and Diagnosis of a Large-Scale PV System by Analyzing Power Losses and Electric Indicators Computed Using Random Forest and KNN-Based Prediction Models," Energies, MDPI, vol. 18(10), pages 1-30, May.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:10:p:2482-:d:1653887
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/10/2482/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/10/2482/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Harrou, Fouzi & Sun, Ying & Taghezouit, Bilal & Saidi, Ahmed & Hamlati, Mohamed-Elkarim, 2018. "Reliable fault detection and diagnosis of photovoltaic systems based on statistical monitoring approaches," Renewable Energy, Elsevier, vol. 116(PA), pages 22-37.
    2. Joshuva Arockia Dhanraj & Ali Mostafaeipour & Karthikeyan Velmurugan & Kuaanan Techato & Prem Kumar Chaurasiya & Jenoris Muthiya Solomon & Anitha Gopalan & Khamphe Phoungthong, 2021. "An Effective Evaluation on Fault Detection in Solar Panels," Energies, MDPI, vol. 14(22), pages 1-14, November.
    3. Pannee Suanpang & Pitchaya Jamjuntr, 2024. "Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities," Sustainability, MDPI, vol. 16(14), pages 1-29, July.
    4. Ogliari, Emanuele & Dolara, Alberto & Manzolini, Giampaolo & Leva, Sonia, 2017. "Physical and hybrid methods comparison for the day ahead PV output power forecast," Renewable Energy, Elsevier, vol. 113(C), pages 11-21.
    5. Nasser Ahmad & Amith Khandakar & Amir El-Tayeb & Kamel Benhmed & Atif Iqbal & Farid Touati, 2018. "Novel Design for Thermal Management of PV Cells in Harsh Environmental Conditions," Energies, MDPI, vol. 11(11), pages 1-9, November.
    6. Yijing Wang & Rong Wang & Katsumasa Tanaka & Philippe Ciais & Josep Penuelas & Yves Balkanski & Jordi Sardans & Didier Hauglustaine & Wang Liu & Xiaofan Xing & Jiarong Li & Siqing Xu & Yuankang Xiong , 2023. "Accelerating the energy transition towards photovoltaic and wind in China," Nature, Nature, vol. 619(7971), pages 761-767, July.
    7. Alexandra Catalina Lazaroiu & Mohammed Gmal Osman & Cristian-Valentin Strejoiu & Gheorghe Lazaroiu, 2023. "A Comprehensive Overview of Photovoltaic Technologies and Their Efficiency for Climate Neutrality," Sustainability, MDPI, vol. 15(23), pages 1-24, November.
    8. Bilal Taghezouit & Fouzi Harrou & Cherif Larbes & Ying Sun & Smail Semaoui & Amar Hadj Arab & Salim Bouchakour, 2022. "Intelligent Monitoring of Photovoltaic Systems via Simplicial Empirical Models and Performance Loss Rate Evaluation under LabVIEW: A Case Study," Energies, MDPI, vol. 15(21), pages 1-30, October.
    9. Silvano Vergura, 2020. "Bollinger Bands Based on Exponential Moving Average for Statistical Monitoring of Multi-Array Photovoltaic Systems," Energies, MDPI, vol. 13(15), pages 1-14, August.
    10. Ahmed Faris Amiri & Aissa Chouder & Houcine Oudira & Santiago Silvestre & Sofiane Kichou, 2024. "Improving Photovoltaic Power Prediction: Insights through Computational Modeling and Feature Selection," Energies, MDPI, vol. 17(13), pages 1-23, June.
    11. Kelachukwu J. Iheanetu, 2022. "Solar Photovoltaic Power Forecasting: A Review," Sustainability, MDPI, vol. 14(24), pages 1-31, December.
    12. Pillai, Dhanup S. & Rajasekar, N., 2018. "A comprehensive review on protection challenges and fault diagnosis in PV systems," Renewable and Sustainable Energy Reviews, Elsevier, vol. 91(C), pages 18-40.
    13. Chine, W. & Mellit, A. & Lughi, V. & Malek, A. & Sulligoi, G. & Massi Pavan, A., 2016. "A novel fault diagnosis technique for photovoltaic systems based on artificial neural networks," Renewable Energy, Elsevier, vol. 90(C), pages 501-512.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Wang, Haizheng & Zhao, Jian & Sun, Qian & Zhu, Honglu, 2019. "Probability modeling for PV array output interval and its application in fault diagnosis," Energy, Elsevier, vol. 189(C).
    2. Rouani, Lahcene & Harkat, Mohamed Faouzi & Kouadri, Abdelmalek & Mekhilef, Saad, 2021. "Shading fault detection in a grid-connected PV system using vertices principal component analysis," Renewable Energy, Elsevier, vol. 164(C), pages 1527-1539.
    3. Blaifi, Sid-ali & Mellit, Adel & Taghezouit, Bilal & Moulahoum, Samir & Hafdaoui, Hichem, 2025. "A simple non-parametric model for photovoltaic output power prediction," Renewable Energy, Elsevier, vol. 240(C).
    4. Paolo Di Leo & Alessandro Ciocia & Gabriele Malgaroli & Filippo Spertino, 2025. "Advancements and Challenges in Photovoltaic Power Forecasting: A Comprehensive Review," Energies, MDPI, vol. 18(8), pages 1-28, April.
    5. Sairam, Seshapalli & Seshadhri, Subathra & Marafioti, Giancarlo & Srinivasan, Seshadhri & Mathisen, Geir & Bekiroglu, Korkut, 2022. "Edge-based Explainable Fault Detection Systems for photovoltaic panels on edge nodes," Renewable Energy, Elsevier, vol. 185(C), pages 1425-1440.
    6. Li, Yuanliang & Ding, Kun & Zhang, Jingwei & Chen, Fudong & Chen, Xiang & Wu, Jiabing, 2019. "A fault diagnosis method for photovoltaic arrays based on fault parameters identification," Renewable Energy, Elsevier, vol. 143(C), pages 52-63.
    7. Tingting Pei & Xiaohong Hao, 2019. "A Fault Detection Method for Photovoltaic Systems Based on Voltage and Current Observation and Evaluation," Energies, MDPI, vol. 12(9), pages 1-16, May.
    8. Nien-Che Yang & Harun Ismail, 2022. "Voting-Based Ensemble Learning Algorithm for Fault Detection in Photovoltaic Systems under Different Weather Conditions," Mathematics, MDPI, vol. 10(2), pages 1-18, January.
    9. Van Gompel, Jonas & Spina, Domenico & Develder, Chris, 2023. "Cost-effective fault diagnosis of nearby photovoltaic systems using graph neural networks," Energy, Elsevier, vol. 266(C).
    10. Pillai, Dhanup S. & Rajasekar, N., 2018. "A comprehensive review on protection challenges and fault diagnosis in PV systems," Renewable and Sustainable Energy Reviews, Elsevier, vol. 91(C), pages 18-40.
    11. Wiktor Olchowik & Marcin Bednarek & Tadeusz Dąbrowski & Adam Rosiński, 2023. "Application of the Energy Efficiency Mathematical Model to Diagnose Photovoltaic Micro-Systems," Energies, MDPI, vol. 16(18), pages 1-24, September.
    12. Livera, Andreas & Theristis, Marios & Makrides, George & Georghiou, George E., 2019. "Recent advances in failure diagnosis techniques based on performance data analysis for grid-connected photovoltaic systems," Renewable Energy, Elsevier, vol. 133(C), pages 126-143.
    13. Bilal Taghezouit & Fouzi Harrou & Cherif Larbes & Ying Sun & Smail Semaoui & Amar Hadj Arab & Salim Bouchakour, 2022. "Intelligent Monitoring of Photovoltaic Systems via Simplicial Empirical Models and Performance Loss Rate Evaluation under LabVIEW: A Case Study," Energies, MDPI, vol. 15(21), pages 1-30, October.
    14. Fouad Suliman & Fatih Anayi & Michael Packianather, 2024. "Electrical Faults Analysis and Detection in Photovoltaic Arrays Based on Machine Learning Classifiers," Sustainability, MDPI, vol. 16(3), pages 1-29, January.
    15. Li, Baojie & Chen, Xin & Jain, Anubhav, 2024. "Power modeling of degraded PV systems: Case studies using a dynamically updated physical model (PV-Pro)," Renewable Energy, Elsevier, vol. 236(C).
    16. Selma Tchoketch Kebir & Nawal Cheggaga & Adrian Ilinca & Sabri Boulouma, 2021. "An Efficient Neural Network-Based Method for Diagnosing Faults of PV Array," Sustainability, MDPI, vol. 13(11), pages 1-27, May.
    17. Van Gompel, Jonas & Spina, Domenico & Develder, Chris, 2022. "Satellite based fault diagnosis of photovoltaic systems using recurrent neural networks," Applied Energy, Elsevier, vol. 305(C).
    18. Michael W. Hopwood & Joshua S. Stein & Jennifer L. Braid & Hubert P. Seigneur, 2022. "Physics-Based Method for Generating Fully Synthetic IV Curve Training Datasets for Machine Learning Classification of PV Failures," Energies, MDPI, vol. 15(14), pages 1-16, July.
    19. Yu, Cao & Wang, Haizheng & Yao, Jianxi & Zhao, Jian & Sun, Qian & Zhu, Honglu, 2020. "A dynamic alarm threshold setting method for photovoltaic array and its application," Renewable Energy, Elsevier, vol. 158(C), pages 13-22.
    20. Li, B. & Delpha, C. & Diallo, D. & Migan-Dubois, A., 2021. "Application of Artificial Neural Networks to photovoltaic fault detection and diagnosis: A review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 138(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jeners:v:18:y:2025:i:10:p:2482-:d:1653887. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.