Towards Machine Learning-based Model Predictive Control for HVAC Control in Multi-Context Buildings at Scale via Ensemble Learning

Yang Deng, Yaohui Liu, Rui Liang, Donghua Xie, Dafang Zhao, Ittetsu Taniguchi, Samson Tai, Dan Wang

TL;DR

This paper tackles the challenge of accurately predicting indoor temperatures for HVAC control by proposing a novel Hierarchical Reinforcement Learning (HRL) approach called ReeM. ReeM efficiently builds a building thermodynamics model by dynamically selecting and weighting existing pre-trained models, significantly reducing the need for extensive new data collection and expert knowledge.

What Problem Does This Paper Address?

Optimizing HVAC systems in buildings is crucial for energy efficiency and occupant comfort. Model Predictive Control (MPC) is a leading strategy for this, but it heavily relies on accurate thermodynamic models that predict indoor temperature. Developing these models is typically a laborious process, requiring significant expert input and extensive data collection from the target building. Furthermore, existing models often struggle to adapt to changing building environments or when new models become available. This paper addresses the inefficiency and lack of reusability in current building thermodynamic modeling by proposing a method that leverages an ensemble of pre-existing models.

Methods

The core of this paper is the ReeM framework, which frames the building thermodynamic model ensemble task as a Hierarchical Reinforcement Learning (HRL) problem. This HRL approach consists of two agents:

  • High-level agent: This agent decides which of the available pre-trained "base" models should be included in the ensemble for a specific building. It uses a binary selection mechanism.
  • Low-level agent: Once models are selected, this agent determines the optimal weights to assign to each selected base model to create the final ensemble model.

The state representation for these agents is enriched using Temporal Convolutional Networks (TCNs) for temporal data and a cross-attention module for feature fusion, capturing complex relationships in the building data. The reward functions are carefully designed to encourage both accurate prediction and efficient model selection, penalizing overly complex ensembles. The training process involves a two-stage approach: pre-training the low-level agent and then jointly training both agents.

Datasets

The study utilizes data collected from 65 rooms in a research building at Osaka University, Japan. This data includes indoor temperature (x), instantaneous HVAC power (u), and outdoor temperature (d), sampled at 15-minute intervals. For training and evaluation, the data was used at both 15-minute and 1-hour frequencies. The 65 rooms were split into two subsets: 80% (52 rooms) for base model construction and RL training, and 20% (13 rooms) for evaluation.

Key Insights and Ideas

  • Ensemble learning for building models is feasible and beneficial: The paper demonstrates that leveraging existing models through an ensemble approach can significantly improve prediction accuracy and reduce development effort.
  • Hierarchical RL is well-suited for model selection and weighting: The two-tiered HRL structure effectively separates the complex tasks of choosing which models to use and how to combine them.
  • Reward shaping is critical: The paper highlights the importance of designing specific rewards for both the high-level (model selection) and low-level (weighting) agents to guide them towards optimal solutions.
  • Data representation matters: The use of TCNs and attention mechanisms for state representation is crucial for capturing the temporal dynamics and interrelationships within building data.
  • Model diversity is key, but not at the expense of simplicity: While a larger pool of base models can be beneficial, the framework's ability to select a parsimonious subset is important for performance and efficiency.

Key Results

  • Significant accuracy improvement: ReeM achieved an accuracy improvement of 44.54% over a customized model and 51.65% over ensemble baselines in offline experiments.
  • Reduced energy consumption: An on-site case study demonstrated that ReeM achieved a reduction in energy consumption compared to a baseline SR-based MPC.
  • Effective model selection: Ablation studies confirmed the necessity of the hierarchical RL structure and the specific reward designs for achieving optimal performance.
  • Robustness to base model type: The performance of ReeM was found to be minimally impacted by the specific modeling methodology used for the base models (e.g., Symbolic Regression vs. Multiple Linear Regression).

Limitations and Future Work

The authors acknowledge two primary limitations:

  • Feature alignment: ReeM's ensemble approach currently relies on unified features across base models. This limits its ability to integrate models with diverse structures or sensor sets, which is common in crowdsourced model libraries.
  • Physical inconsistencies: The current focus on prediction accuracy might lead to ensembles that combine models with conflicting physical principles (e.g., cooling and heating modes simultaneously), without explicitly considering the underlying physics.

Future work should focus on developing methods to automatically explore the internal logic and mechanisms of base models to create more reliable and generalizable ensembles. Additionally, addressing feature misalignment in heterogeneous model libraries is a key area for future research.

Summary updated

BibTeX
@inproceedings{deng2024towards,
  author = {Yang Deng and Yaohui Liu and Rui Liang and Donghua Xie and Dafang Zhao and Ittetsu Taniguchi and Samson Tai and Dan Wang},
  title = {{Towards Machine Learning-based Model Predictive Control for HVAC Control in Multi-Context Buildings at Scale via Ensemble Learning}},
  booktitle = {BuildSys},
  year = {2024},
  doi = {10.1145/3671127.3698705},
}
Figure