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
    ---><---

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.