B2RL: An open-source Dataset for Building Batch Reinforcement Learning

Hsin-Yu Liu, Xiaohan Fu, Bharathan Balaji, Rajesh Gupta, Dezhi Hong · DOI

Introduction

Heating, Ventilation, and Air Conditioning (HVAC) systems represent a significant portion of global energy consumption. While Reinforcement Learning (RL) has emerged as a powerful tool for optimizing building energy efficiency, its practical application has been hindered by the limitations of the "online" learning paradigm. Traditional RL requires an agent to learn through continuous trial-and-error interaction with its environment. In the context of smart buildings, this approach is often unfeasible: developing high-fidelity digital twins (simulators) for every unique structure is labor-intensive, and allowing an untrained agent to experiment with real-world HVAC systems poses significant risks to occupant comfort and equipment longevity.

To bridge this gap, the B2RL (Building Batch RL) framework provides the first open-source dataset specifically designed for Batch Reinforcement Learning (BRL)—also known as Offline RL—in the building sector. BRL allows agents to learn optimal control policies exclusively from static, historical datasets already captured by Building Management Systems (BMS), eliminating the need for risky real-time exploration.

The B2RL Framework

The B2RL framework treats building control as a Markov Decision Process (MDP), formalizing the interaction between the environment and the controller into tuples of State, Action, Reward, and Next State. By standardizing this data format, the authors enable machine learning researchers to apply state-of-the-art offline algorithms to building energy problems without requiring deep expertise in thermodynamics or complex simulation software like EnergyPlus.

Data Sources and Composition

B2RL comprises two distinct types of data buffers to provide a comprehensive benchmarking environment:

  1. Real-World Extraction: This dataset contains a full year of sensor logs (July 2017 – June 2018) from 15 rooms across three floors of a university building. It includes 170k to 260k datapoints covering temperature, airflow, and humidity. The reward function is designed as a multi-objective optimization, balancing energy consumption against thermal comfort using the Predicted Mean Vote (PMV) index.
  2. Simulation-Generated Buffers: To test algorithmic robustness, the researchers used Sinergym (an EnergyPlus wrapper) to generate synthetic data for a five-zone building model across three different weather profiles (cool, hot, and mixed). Crucially, these buffers were generated with varying levels of "expertise" to simulate different historical data qualities:
  3. Expert: Data generated by a fully trained RL agent.
  4. Medium: Data from a partially trained agent.
  5. Random: Data from an agent taking stochastic, unoptimized actions.

Benchmarking Offline RL Algorithms

A primary challenge in Batch RL is extrapolation error—the tendency for an agent to overstate the value of actions that are not well-represented in the training data. B2RL was used to benchmark several algorithms designed to mitigate this error, including Batch-Constrained deep Q-learning (BCQ), Bootstrapping Error Accumulation Reduction (BEAR), and Conservative Q-Learning (CQL).

Key Findings

  • The Superiority of CQL: In simulated environments, Conservative Q-Learning (CQL) emerged as the most robust performer, consistently achieving the highest cumulative rewards across various weather conditions and data qualities.
  • Policy Improvement from Mediocre Data: A significant result of the real-world experiments was that BRL agents (specifically BCQ, BEAR, and PQL) were able to derive policies that outperformed the average reward of the historical data they were trained on. This suggests that BRL can effectively "distill" better control strategies even from suboptimal legacy logs.
  • Robustness to Noise: The benchmarks demonstrated that certain BRL algorithms, such as BCQ, could find effective policies even when trained on "Random" or "Medium" quality buffers, highlighting the potential for BRL to utilize existing, unoptimized BMS data.

Conclusion and Future Directions

B2RL represents a landmark step toward making smart building technology more accessible and deployable. By providing a standardized, open-source benchmark, the authors have lowered the barrier to entry for applying advanced machine learning to climate-critical infrastructure.

Future iterations of the B2RL project aim to increase the diversity of the dataset by including more building types (such as residential and retail spaces) and more extreme weather scenarios. Additionally, the authors suggest that developing BRL architectures specifically tuned for the slow-response thermal dynamics of buildings will be a vital area for future research, eventually moving from single-room control to coordinated, whole-building optimization.

Summary updated

BibTeX
@inproceedings{liu2022b,
  author = {Hsin-Yu Liu and Xiaohan Fu and Bharathan Balaji and Rajesh Gupta and Dezhi Hong},
  title = {{B2RL: An open-source Dataset for Building Batch Reinforcement Learning}},
  booktitle = {BuildSys},
  year = {2022},
  doi = {10.1145/3563357.3566164},
}
Figure