# Benchmarking Classical Machine Learning Models for Shading-Fault Detection in Rooftop Photovoltaic Systems Using Real Sensor Data

DevFeed: [Benchmarking Classical Machine Learning Models for Shading-Fault Detection in Rooftop Photovoltaic Systems Using Real Sensor Data](<https://devfeed.tech/articles/benchmarking-classical-machine-learning-models-for-shading-fault-detection-in-rooftop-photovoltaic-systems-using-real-sensor-data-114462.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00917>)

Author: Zablon Ombiro, Bernard Shibwabo

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Model Development](<https://devfeed.tech/topics/model-development.md>), [Predictive AI](<https://devfeed.tech/topics/predictive-ai.md>)

Tags: [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [classifiers](<https://devfeed.tech/tags/classifiers.md>), [cross-validation](<https://devfeed.tech/tags/cross-validation.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-sy](<https://devfeed.tech/tags/cs-sy.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [eess-sy](<https://devfeed.tech/tags/eess-sy.md>), [errors](<https://devfeed.tech/tags/errors.md>), [fault-detection](<https://devfeed.tech/tags/fault-detection.md>), [logistic-regression](<https://devfeed.tech/tags/logistic-regression.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [pv](<https://devfeed.tech/tags/pv.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [sensor](<https://devfeed.tech/tags/sensor.md>), [split](<https://devfeed.tech/tags/split.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

On a real 4 kW rooftop PV system with physically staged shading faults, Random Forest and XGBoost achieved the highest mean accuracy (0.838 and 0.831) and MCC (0.526 and 0.522) in episode-grouped nested cross-validation. After correcting pairwise tests, only Random Forest's accuracy advantage over k-nearest neighbours and the multi-layer perceptron was significant; SMOTE reduced binary MCC for six of seven classifiers. Scores have a major limitation: models often missed entire fault episodes, while no-fault readings covered broader operating conditions. Clock time alone reached MCC 0.44 and PV-side voltage 0.72, suggesting reported performance also reflects sampling differences. The authors identify matched no-fault sampling as necessary before generalizing the model ranking.

## Source excerpt

arXiv:2611.00917v1 Announce Type: new Abstract: Most published comparisons of machine-learning classifiers for photovoltaic (PV) fault detection are validated on simulated faults. We compare seven classical and ensemble-tree classifiers on the R\'eunion dataset, a 4 kW domestic rooftop plant on which shading faults were physically staged and logged. Readings within a staged episode are near-duplicates, so every train/test split is grouped by episode. A 20,800-row subsample that retains all 17 fault episodes was evaluated with three repeats of five-fold group-aware nested cross-validation, with synthetic minority oversampling (SMOTE) applied inside the training folds. Random Forest and XGBoost gave the highest mean accuracy (0.838 and 0.831) and Matthews correlation coefficient (MCC; 0.526 and 0.522). After Holm correction across the 21 pairwise Wilcoxon tests, only Random Forest's accuracy advantage over k-nearest neighbours and the multi-layer perceptron remained significant. Logistic Regression and the Decision Tree (accuracy 0.820) could be separated neither from the ensembles nor from the weakest models. SMOTE lowered binary MCC for six of the seven classifiers. Errors were concentrated in whole episodes: the Random Forest almost entirely missed four of the 17 fault episodes, including one of two uniform-shading and two of five intermittent-shading episodes. A post-hoc diagnostic shows that the no-fault rows were sampled over a wider range of times of day and output levels than the fault rows. Clock time alone reaches an MCC of 0.44, and PV-side voltage alone 0.72. The reported scores therefore reflect operating-condition differences as well as shading signatures. We release the pipeline and the diagnostics, and identify matched no-fault sampling as the step needed before the classifier ranking can be generalised.