Artificial intelligence/Kenya
Nairobi Researchers Caught Their Own Model Telling The Time
A shading-fault detector scored 83.8 percent on real staged faults. Then the authors found the clock alone scored 0.44 and the voltage alone 0.72, and published it.
Seven classifiers were compared on physically staged shading faults from a 4 kW rooftop plant. Random Forest led with 83.8% accuracy and MCC 0.526, but after correction only its advantage over the two weakest methods held, and plain logistic regression reached 82.0%. A post-hoc diagnostic showed clock time alone scored MCC 0.44 and PV-side voltage alone 0.72, so the scores reflect operating-condition differences as well as shading.
What happened
A rooftop solar panel in shade makes less power. Shade from a new tree, a water tank or a neighbour’s extension can quietly cost a household a lot over a year, and nobody notices because the panel still works.
So people train software to spot it from the sensor readings. There are many published comparisons of which method is best.
The Strathmore team point out a problem with nearly all of them: the faults are simulated. Somebody writes code that mimics what shading would look like, and the detector learns to spot the imitation. Whether it spots real shade is a separate question nobody answered.
This study used a dataset where the shading was physically staged on an actual 4 kilowatt domestic rooftop plant in Réunion, and logged as it happened. Real panels, real shade, written down.
The test
They compared seven classical and ensemble-tree methods.
Two choices in their setup deserve attention, because they are where most studies of this kind go wrong.
First, readings taken seconds apart during the same staged shading event are nearly identical. If some of those land in your training set and some in your test set, the model has effectively seen the answer. So they grouped every split by episode — all readings from one event stay together on one side.
Second, they used three repeats of five-fold group-aware nested cross-validation, keeping the 17 fault episodes intact in a 20,800-row sample.
The result
Random Forest came top with 83.8 percent accuracy. XGBoost was next at 83.1 percent.
Then they tested whether the ranking survives statistics. Across 21 pairwise comparisons with a correction for multiple testing, only one difference held up: Random Forest beating the two weakest methods. Plain logistic regression and a single decision tree both reached 82.0 percent and could not be separated from the ensembles or from the worst performers.
In other words the leaderboard is mostly noise. A simple method you could explain to a technician scored within two points of the sophisticated one.
Two more findings are more useful than the scores.
SMOTE, the standard trick for balancing uneven data, made things worse. It lowered the headline quality measure for six of the seven methods.
And the failures were not spread evenly. Random Forest almost entirely missed 4 of the 17 fault episodes — including one of the two uniform-shading events and two of the five intermittent-shading ones. So the 83.8 percent is not “wrong one time in six”. It is “nearly perfect on most episodes and nearly blind on four”.
Now the part that makes this paper worth your time. They ran a check on their own data afterwards and found that the no-fault readings had been sampled across a wider spread of times of day and output levels than the fault readings. The two classes differed in when they were recorded, not only in whether shade was present.
So they tested what you could achieve with almost nothing. Clock time alone reached 0.44 on their quality measure. The panel-side voltage alone reached 0.72. For comparison, the full Random Forest scored 0.526 on that measure in the main benchmark — though these come from a follow-up check rather than the same run, so read them as an alarm rather than a league table.
Why does that matter so much? This is because the detector was partly learning the schedule of the experiment rather than the signature of shade. A MODEL THAT KNOWS WHAT TIME IT IS CAN FAKE KNOWING WHAT IS WRONG.
They say so themselves, release the pipeline and the diagnostics, and name the fix: sample the no-fault readings to match the fault ones before anybody trusts the ranking.
What it means
Most papers that find this out do not publish it. The honest move here was to report a result that undermines their own headline number, which is why this one is worth more than a cleaner-looking study.
For anyone building fault detection on real hardware, the lesson is concrete. Before you believe your detector, train it on one single obvious feature — the time, the voltage, the temperature. If that nearly matches your full model, your full model is not doing what you think.
For East African installers specifically, there is an opportunity here too. Simple methods scored within two points of complex ones, and voltage alone carried most of the signal. Therefore useful shading detection may not need a data centre. It may need one sensor read properly.
Business ideas from this paper
1. Shading audits for rooftop solar owners. Households do not know they are losing output. The paper suggests voltage patterns carry most of the signal, so the test is cheap. Sell the audit and the tree-trimming recommendation. Buyer: rooftop solar owners and the installers who maintain them. First test: audit ten roofs in one neighbourhood and report how many have unnoticed shading.
2. Honest-baseline testing for AI vendors. The single most valuable thing in this paper is the check that one obvious feature nearly matches the model. Offer that as a service for any company selling a predictive product. Buyer: anyone buying or building a detection model. First test: run the single-feature baseline against one vendor’s product and see whether the gap justifies the price.
3. Real staged-fault datasets for African conditions. This dataset came from Réunion. Dust, harmattan haze and the specific shading patterns of East African rooftops are not in it. Stage faults properly on local roofs and license the data. Buyer: research groups and solar analytics firms. First test: stage twenty logged episodes on five roofs and offer the set to three labs.
How sure can you be?
Be more confident in this paper’s honesty than in its headline figure, which is exactly how the authors frame it.
The strengths: the faults were physically staged rather than simulated, the splits were grouped by episode so the model could not peek, the statistics were corrected for multiple comparisons, the per-episode failures were reported instead of hidden inside an average, the pipeline and diagnostics are released, and the self-audit that weakened their own result was published.
The limits: it is a preprint with no peer review. It is one 4 kilowatt rooftop in one location with 17 fault episodes, so the numbers describe that installation. The authors state outright that their scores reflect operating-condition differences as well as shading signatures, and that the classifier ranking cannot be generalised until the sampling is fixed. Note also the geography: the researchers are in Nairobi, the roof is in Réunion.
Do this today
Look at your own electricity or solar readings for one day. Note the time of each dip. If the dips happen at the same clock time every day, you are looking at the sun’s position. If one happens at an odd hour, something is in the way.
Source: Benchmarking Classical Machine Learning Models for Shading-Fault Detection in Rooftop Photovoltaic Systems Using Real Sensor Data, October 2026. arXiv:2611.00917 · arxiv.org (preprint · not yet peer reviewed).
Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.
- Most published comparisons of PV fault-detection classifiers are validated on simulated faults; this study used physically staged and logged faults on a 4 kW domestic rooftop plant (arXiv:2611.00917, Strathmore University, Nairobi).
- Random Forest and XGBoost gave the highest accuracy, 0.838 and 0.831, with MCC 0.526 and 0.522, but after Holm correction across 21 pairwise tests only Random Forest's advantage over k-nearest neighbours and the multi-layer perceptron remained significant.
- SMOTE, the standard class-balancing step, lowered binary MCC for six of the seven classifiers.
- Errors concentrated in whole episodes: Random Forest almost entirely missed 4 of the 17 fault episodes, including one of two uniform-shading and two of five intermittent-shading episodes.
- A post-hoc diagnostic found clock time alone reached MCC 0.44 and PV-side voltage alone 0.72, and the authors state their scores therefore reflect operating-condition differences as well as shading signatures.
One 4 kW rooftop installation with 17 staged fault episodes. The authors state the classifier ranking cannot be generalised until the sampling is matched.
- Who is building on it
- The researchers are based at Strathmore University in Nairobi, Kenya; the rooftop plant that produced the data is in Reunion. The pipeline and diagnostics are released.
Questions people ask
Why does it matter that the faults were real rather than simulated?
Because a detector trained on an imitation of shading learns to spot the imitation. Whether it spots real shade is a separate question.
What does the time-of-day finding mean?
The no-fault readings were sampled across a wider range of times and output levels than the fault readings, so the model could partly identify faults by when they were recorded.
Is the leaderboard useful?
Barely. Plain logistic regression reached 82.0% and could not be separated statistically from the ensemble methods.