About
## The problem it solves
The Problem It Solves Power distribution utilities lose billions of rupees to non-technical electricity losses (theft/tampering, meter faults, and communication dropouts), while control room operators struggle to interpret raw smart meter telemetry and prove theft under legal regulations.
What GRIDGUARD does:
Interactive 3D Digital Twin: Visualizes the entire distribution network with real-time energy particle flows and glowing warning pillars. Dual-Stage ML Detection: Uses LightGBM and Isolation Forest to classify anomalies into Theft, Meter Fault, Comms Failure, or Normal, validated by transformer-level energy balance audits.
Gemini AI Plain-English Analysis: Translates complex electrical telemetry and evidence signals into simple, non-technical plain English (Executive Summary + Evidence Breakdown).
Closed-Loop Enforcement: Allows operators to immediately issue Section 135 warning notices, dispatch field vigilance squads with work order IDs, download court-admissible forensic PDF reports, and log feedback into an AI retraining store.
## Challenges we ran into
Challenges We Ran Into
Distinguishing Theft from Technical Glitches: A consumption drop can mean deliberate electricity theft, a broken meter sensor, or a dropped cellular signal. We solved this by pairing LightGBM multi-class classification with Isolation Forest shortfall scoring and transformer Kirchhoff loss balance to confirm physical energy diversion.
Grounding Gemini AI in Real Telemetry:
Generative AI can hallucinate or output generic text. We solved this by strictly anchoring prompts to deterministic evidence signals (baseline deviation %, peer median, transformer gap %, and meter hardware status) so Gemini produces factually grounded forensic breakdowns.
Smooth 3D Digital Twin Performance:
Rendering 48 building meters, transformers, and animated particle flows in Three.js caused potential WebGL stutter. We solved this by separating the fast simulation loop (sim.ts) from React component re-renders.
Offline Resilience Without an API Key:
If a user doesn't have a Gemini API key or works offline, the app could break. We engineered an adaptive local synthesis fallback that generates the exact same plain-English evidence analysis without crashing or failing.
Bridging AI Flags to Field Enforcement: Most AI systems stop at displaying an alert. We solved this by integrating actionable operational tools: auto-generating squad work orders, drafting regulatory notices, generating forensic PDF dossiers, and feeding field outcomes back into the AI retraining pipeline.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











