Skip to content
GridNest

GridNest

Detection before it becomes historical

Created on 4th October 2026

•

GridNest

GridNest

Detection before it becomes historical

The problem GridNest solves

Electricity utilities lose over 96 billion dollars every year to electricity theft and meter tampering, while traditional field inspection squads waste over 80% of their time on blind, random audits that yield a meager 14% success rate. At the same time, naive machine learning models trigger high false alarm rates that harass innocent paying customers, and delayed billing audits only notice theft months after the power has already been stolen. GridNest solves this by creating a real-time cyber-physical digital twin that combines live IoT smart meter telemetry, AC electrical network physics, and a hybrid AI ensemble to catch power theft as it happens. By cross-checking behavioral consumption drops against physical transformer energy conservation laws, the system eliminates false alarms from innocent rooftop solar or family vacations, boosts field inspection raid accuracy from 14% to 73.4% (a 5.2x efficiency lift), and generates legally defensible TreeSHAP forensic receipts that prove exactly how much energy was stolen, instantly dispatching actionable alerts to utility teams on Telegram the second a meter bypass occurs.

Challenges we ran into

Building this cyber-physical system revealed that real distribution grids behave very differently from clean machine learning datasets, forcing us to solve several critical bottlenecks across the stack. At the machine learning layer, we were hit by severe real-world class imbalance, with only about 8.5% positive theft cases against over 91% honest consumers, which initially caused standard models to predict everyone as honest to hit false 91% accuracy scores. Synthetic oversampling broke realistic time-series rhythms, so we resolved this by implementing cost-sensitive gradient boosting with scale-position weighting alongside an ensemble blending XGBoost, LightGBM, and an Isolation Forest. We then hit the cold-start problem, where new consumers stealing from day one fooled historical models because there was no prior baseline to drop from, which we solved by creating peer clustering to benchmark new consumers against identical sanctioned-load households under the same transformer. On the hardware front, reading analog signals from the SCT-013 current clamp through the ESP32’s non-linear ADC introduced severe voltage distortion and high-frequency noise from onboard Wi-Fi bursts; we tackled this by building an active DC bias offset circuit with precision resistors and dedicating a FreeRTOS core to sample full 50 Hz sine waveforms for True RMS calculation. Furthermore, seasonal weather changes initially flooded our dashboard with false alarms as entire neighborhoods turned off air conditioners and caused steep consumption drops, prompting us to integrate ambient temperature telemetry with transformer mass-balance physics so uniform feeder-wide drops without unaccounted losses were correctly classified as legitimate seasonal shifts. Finally, high-frequency telemetry streaming occasionally produced out-of-order packets and dropped connections that mimicked meter shutdowns, which we untangled by decoupling device heartbeat pings and signal strength from raw telemetry packets and leveraging time-series database buffering to seamlessly reconcile delayed grid data.

Discussion

Builders also viewed

See more projects on Devfolio