Published November 8, 2025 | Version 1.0.0
Software Open

A Hybrid Two-Stage Ensemble Framework for Detecting and Quantifying Energy Flexibility in Buildings: A Solution to the FlexTrack Challenge

Authors/Creators

  • 1. Independent Researcher

Description

Abstract: Accurate Measurement and Verification (M&V) of demand response (DR) is essential for integrating flexible building loads into the power grid. Addressing the FlexTrack 2025 Challenge, this paper details a hybrid two-stage ensemble framework to classify DR events and quantify their energy impact. The first stage uses a gradient boosting ensemble to predict the Demand Response Flag, identifying the building’s operational state. This classification is then fed as a key feature into a second-stage regression ensemble that estimates the Demand Response Capacity. The solution’s novelty lies in its hierarchical structure, which combines a general-purpose global model with specialized models trained on data-driven site archetypes for robust generalization. This methodology is underpinned by extensive feature engineering to capture complex temporal and weather-related dynamics. On the private test set, the solution achieved a Geometric-Mean Score of 0.618 for classification and a normalized Mean Absolute Error (nMAE) of 0.991 and normalized Root Mean Square Error (nRMSE) of 1.223 for regression. These results demonstrate the effectiveness of a decoupled, multi-model approach in tackling the complex challenge of DR baselining and provide a scalable framework for automated M&V systems.

---

About this Record: This Zenodo record provides a permanent, citable archive of the work described in the abstract. It contains:

  • The full academic paper (Paper.pdf).
  • The reproducible Python source code (flextrack_pipeline.py) and Jupyter Notebook.
  • The code is also available on GitHub: DanGlChris - FlexTrack
  • A Kaggle Notebook implementation is available here: FlexTrack 2025 Hybrid Ensemble Solution
  • Data Access: The required data files are not included in this archive but can be downloaded directly from the FlexTrack Challenge on the AICrowd platform.

Files

Paper.pdf

Files (1.3 MB)

Name Size Download all
md5:8198e8ac637ffb0ed2f7c6e194658847
45.2 kB Preview Download
md5:92198e8ffe2ab7c82fd9d4d07aacb9b9
32.0 kB Download
md5:1ebbd3e34237af26da5dc08a4e440464
35.1 kB Preview Download
md5:f2724524d6955149ab48d14a0bedfd6b
406.7 kB Preview Download
md5:176cf67f2972fbad4cac7bd3d50899f7
780.6 kB Preview Download
md5:d9d98d830f6cbde581e535c38da53e3c
6.1 kB Preview Download

Additional details

Funding

Government of New South Wales
Commonwealth Scientific and Industrial Research Organisation
University of Wollongong
UNSW Sydney

Dates

Created
2025-11-02
Initial project version committed to GitHub.
Submitted
2025-11-08
Submitted to Zenodo for formal archiving and DOI minting.

Software

Repository URL
https://github.com/DanGlChris/FlexTrack
Programming language
Python , Jupyter Notebook
Development Status
Inactive