CoolFace
Apppublic

SaharJV/Building-Energy-DSS

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

EcoPeak-Montreal

๐Ÿ™๏ธ Decarbonizing the Grid, One Building at a Time

The Problem: The "Peak Demand" Challenge

In Montreal, large buildings face a hidden challenge: Peak Demand Penalties. Even if a building is efficient most of the time, a single 15-minute spike in power like turning on all HVAC units at once on a cold January morning can lead to thousands of dollars in "Demand Charges" and put immense stress on the Hydro-Quรฉbec grid.

Research goal: Can we use Machine Learning to give building managers "eyes" into the future, detecting these peaks before they happen, and diagnosing why they occur?


๐Ÿง  The Solution: An AI-Driven Decision Support System

This application is a Decision Support System (DSS) designed to bridge the gap between complex raw energy data and actionable management decisions. It is organized around four analytical layers:

1. Behavioral Signatures (The Past)

Before looking forward, we must look back. The system analyzes historical "Energy Signatures," comparing how a building behaves during workdays vs weekends, revealing occupancy patterns, HVAC cycles, and baseline inefficiencies invisible in raw data.

2. Financial Audit (The Impact)

The system calculates exactly how much money is lost to peak penalties each month using a configurable contract threshold, adjustable per building contract and reduction targets. This turns abstract "kW" numbers into "Dollars," making the case for energy efficiency tangible to non-technical stakeholders.

3. XGBoost Forecasting (The Future)

The forecasting core uses an XGBoost Regressor trained on historical load and temperature data to predict the next 7 days of consumption.

Originally built on LSTM for my 2019 M.Sc. thesis, rebuilt in 2026 with XGBoost for faster inference, easier deployment, and better performance on tabular time-series data

If the model predicts a spike above the contract threshold next Tuesday, the manager can proactively shift load or schedule temporary reductions before the penalty window hits.

4. Anomaly Diagnosis (The "Why")

Most anomaly detectors stop at what this system attempts to answer why. Using Isolation Forest (Unsupervised Learning), the app automatically flags unusual energy behavior and runs it through a diagnostic engine that distinguishes between:

  • โ€”Thermal Response โ€” weather-driven HVAC stress (e.g., extreme cold snaps)
  • โ€”Occupancy Startup Pulse โ€” demand spikes from synchronized building startup
  • โ€”Off-Hours Low Load โ€” statistically unusual but operationally

โš ๏ธ Demo Note

This prototype runs on synthetically generated data designed to simulate Montreal commercial building load profiles. In a production deployment, the system would connect directly to real Hydro-Quรฉbec interval meter data. The architecture and methodology are the contribution โ€” the synthetic dataset allows clean demonstration without data privacy constraints.


๐Ÿ› ๏ธ Technical Stack

LayerTechnology
Web InterfaceStreamlit
ForecastingXGBoost Regressor
Anomaly DetectionScikit-Learn (Isolation Forest)
Data PipelinePandas & NumPy on 1-hour interval meter data
VisualizationMatplotlib

๐Ÿš€ Run Locally

bash
git clone https://github.com/SaharJavadianG/EcoPeak-Montreal
cd ecopeak-montreal
pip install -r requirements.txt
streamlit run app.py

๐ŸŽ“ Academic Context

Developed as a 2026 update to my M.Sc. research on ML-driven demand response in commercial buildings, originally prototyped with LSTM in 2019, now rebuilt for real-world deployment readiness.

๐Ÿ“– Read the Full Thesis PDF: Click here to view the research