Towards Scalable Physically Consistent Neural Networks: an Application to Data-driven Multi-zone Thermal Building Models

Loris Di Natale, Bratislav Svetozarevic, Philipp Heer, Colin Neil JonesApplied Energy 2022

The Challenge of Building Thermal Modeling

Buildings are responsible for a significant portion of global energy consumption and CO2 emissions. To optimize their efficiency, advanced control strategies like Model Predictive Control (MPC) require accurate thermal models. However, engineers currently face a trade-off between two suboptimal approaches:

  1. Gray-box models: Based on simplified physics (e.g., RC circuits), these are safe and interpretable but struggle with complex nonlinearities and are difficult to calibrate for large-scale structures.
  2. Black-box models (Neural Networks): While highly accurate and scalable, these models are physics-agnostic. They can learn non-physical "shortcuts"—such as predicting that a heater cools a room—making them unreliable for critical infrastructure.

Physically Consistent Neural Networks (PCNNs)

To bridge this gap, researchers have developed Physically Consistent Neural Networks (PCNNs). Unlike standard Physics-Informed Neural Networks (PINNs) that use loss functions to "encourage" physical behavior, PCNNs hard-code thermodynamic laws directly into the network architecture.

Overview of the PCNN training and modeling pipeline.

The architecture employs a parallel structure where the final output is the sum of two branches:

  • Black-box module: A standard Long Short-Term Memory (LSTM) network captures complex, unmodeled dynamics.
  • Physics-inspired module: A constrained "energy accumulator" that strictly follows the laws of thermodynamics.

This design ensures that the model remains expressive while formally guaranteeing that it will never predict physically impossible behavior, regardless of the neural network's internal state.

Scaling to Multi-zone Environments

A key contribution of this work is the scaling of PCNNs from single rooms to complex, multi-zone buildings. The authors propose three distinct architectures to handle inter-zone dependencies:

  • X-PCNN (Extended): Trains a separate PCNN for every zone. It is highly flexible but requires post-hoc corrections to ensure heat flow consistency between adjacent rooms.
  • M-PCNN (Multi-zone): Uses a single, shared physics module for the entire building while maintaining separate black-box modules for each zone to capture local nuances.
  • S-PCNN (Shared): The most compressed version, where both the physics and neural network modules are shared across all zones.
The M-PCNN architecture for multi-zone thermal modeling.

Performance and Validation

The models were validated using three years of real-world data (2019–2022) from the NEST building's UMAR unit in Switzerland. The dataset included 15-minute interval readings of temperature, HVAC power, weather, and solar irradiation.

Key Results:

  • Superior Accuracy: The X-PCNN achieved a Mean Absolute Error (MAE) of 1.17°C, outperforming the best non-physical model (LSTM at 1.27°C).
  • Significant Gains over Physics-only Models: PCNNs showed a 17–35% improvement in accuracy compared to traditional linear gray-box models.
  • Robustness: Grounding the model in physics acted as a powerful regularizer, making the network more stable across different training runs and preventing the "shortcut learning" trap where models misinterpret the impact of HVAC systems.

Conclusion and Future Work

While PCNNs require knowledge of a building's topology and are more computationally intensive to train (roughly 3-4x slower than standard LSTMs), they offer a reliable path toward safe, data-driven building management. Future research will focus on optimizing training efficiency and scaling these models to large commercial skyscrapers with hundreds of interconnected zones.

Summary updated

BibTeX
@misc{natale2022towards,
  author = {Loris Di Natale and Bratislav Svetozarevic and Philipp Heer and Colin Neil Jones},
  title = {{Towards Scalable Physically Consistent Neural Networks: an Application to Data-driven Multi-zone Thermal Building Models}},
  year = {2022},
  eprint = {2212.12380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.12380},
}
Figure