Case study / 2025

Downed power-line classification

A Streamlit prototype that separates normal electrical readings, load changes and downed-conductor examples with a shallow decision tree.

My contribution
I packaged the decision tree and built a Streamlit demo that accepts manual readings or reads a record from Firebase.
Verification
On 12,000 labeled examples, the published report shows 32 missed downed-conductor examples and 23 false alerts on load changes.
Ink illustration of utility poles on amber paper above a red signal trace.
Editorial illustration of a power line and an abstract signal trace.

Separate a fault from an ordinary load change

For the Smart India Hackathon prototype, my work focused on the model and the demo that made its predictions inspectable. I packaged a decision tree with a maximum depth of four and built a Streamlit interface around it. The model returns scores for three classes. A reader can see when a reading resembles a routine load change as well as when the model flags it as a downed conductor.

Give the model two ways to receive a reading

The demo accepts manually entered values or reads a record from Firebase. Both paths form the same ordered feature row before calling the model. Manual entry lets a reviewer work through a case without connecting hardware. The interface shows the input values alongside the model’s class scores so someone can see what the model was given.

Read the errors in both directions

The published evaluation covers 12,000 labeled examples, with 4,000 per class and about 96.5% accuracy overall. The model identified 3,968 of the 4,000 downed-conductor examples. It treated 32 as load changes and flagged 23 load changes as downed conductors. Those two counts matter for different reasons. One misses an event and the other creates a false alert. The confusion matrix makes both visible.

Confusion matrix for 12,000 examples. The model classified 3,968 downed-conductor, 3,790 load-change and 3,820 normal examples correctly.
The published confusion matrix. The model missed 32 of 4,000 downed-conductor examples and flagged 23 load changes as downed conductors. View the original confusion matrix

Make the report inspectable

I published per-class precision and recall, the confusion matrix, and a permutation-importance report with the Space. The app also has a small synthetic fallback for its metrics panel when the saved reports are missing. The numbers above come from the published report. Field performance on an operating grid remains unverified.

Related workRetailOps BI