Electrical Grid Monitoring

Our team simulated electrical grid monitoring with various predictive maintenance models (Log Regression, Random Forest, XGBoost combined with validation from Groq), enabling the utility to anticipate grid failures proactively.

Data Preparation/Analysis Steps (GitHub Link‍)

  1. A Python script generates a 36-month synthetic dataset modeling regional electrical load, weather anomalies, and power grid failure rates across 100 ZIP codes, saving it to a Databricks Delta table.

  2. The transformation module standardizes dates, builds 1-month historical lag features, and divides records into chronological training, testing, and future forecasting splits to evaluate failure rate predictions over time.

  3. To eliminate catastrophic False Negatives (unpredicted outages), three classification models—Logistic Regression, Random Forest, and XGBoost—are trained with 5x–10x class-imbalance weights to maximize failure detection sensitivity.

  4. To refine precision and minimize False Positives (costly false alarms), records where the models disagree on grid failure risk are routed to Groq's Llama 3.3 70B model to act as an expert domain arbiter.

  5. A LangGraph workflow automates this multi-stage ML-LLM auditing process across test and forecast periods, writing the finalized grid failure rate predictions back to Unity Catalog for dashboard visualization.

Watch the grid before it fails

One dashboard tracks grid failures by zip code, shows what drives them, and forecasts where they likely next. Also includes the ability to pick different forecast models (Log Regression, Random Forest, XGBoost, Groq)

Executive summary

Year-over-year and month-over-month totals for zip codes, accounts and energy use, with the share of failures beside each. Filter by date range or zip code.

Grid analysis

Compares grids that failed with grids that didn’t then ranks each zip code by how far its metric sits from the non-failed average.