Skip to main content
QUICK REVIEW

[Paper Review] Physically Consistent Neural Networks for building thermal modeling: theory and analysis

Loris Di Natale, Bratislav Svetozarevic|arXiv (Cornell University)|Dec 6, 2021
Model Reduction and Neural NetworksPhysics and Astronomy8 citations
TL;DR

This paper proposes Physically Consistent Neural Networks (PCNNs), a novel neural network architecture that integrates prior physical knowledge into a linear module parallel to a deep neural network, ensuring thermodynamic consistency in building thermal predictions. PCNNs achieve 40% lower error than classical resistance-capacitance models over 3-day horizons while maintaining generalization robustness and outperforming standard LSTMs on validation data.

ABSTRACT

Due to their high energy intensity, buildings play a major role in the current worldwide energy transition. Building models are ubiquitous since they are needed at each stage of the life of buildings, i.e. for design, retrofitting, and control operations. Classical white-box models, based on physical equations, are bound to follow the laws of physics but the specific design of their underlying structure might hinder their expressiveness and hence their accuracy. On the other hand, black-box models are better suited to capture nonlinear building dynamics and thus can often achieve better accuracy, but they require a lot of data and might not follow the laws of physics, a problem that is particularly common for neural network (NN) models. To counter this known generalization issue, physics-informed NNs have recently been introduced, where researchers introduce prior knowledge in the structure of NNs to ground them in known underlying physical laws and avoid classical NN generalization issues. In this work, we present a novel physics-informed NN architecture, dubbed Physically Consistent NN (PCNN), which only requires past operational data and no engineering overhead, including prior knowledge in a linear module running in parallel to a classical NN. We formally prove that such networks are physically consistent - by design and even on unseen data - with respect to different control inputs and temperatures outside and in neighboring zones. We demonstrate their performance on a case study, where the PCNN attains an accuracy up to 40% better than a classical physics-based resistance-capacitance model on 3-day long prediction horizons. Furthermore, despite their constrained structure, PCNNs attain similar performance to classical NNs on the validation data, overfitting the training data less and retaining high expressiveness to tackle the generalization issue.

Motivation & Objective

  • Address the generalization failure of classical neural networks in building thermal modeling, where models may violate physical laws like thermodynamics.
  • Overcome the limitations of purely data-driven models by embedding physical constraints directly into the network architecture without engineering overhead.
  • Develop a model that maintains physical consistency across all control inputs and external temperatures, even during long-horizon predictions.
  • Improve prediction accuracy over classical physics-based models (e.g., RC models) while retaining the expressiveness of deep learning.
  • Enable reliable use of neural networks in control-oriented applications such as reinforcement learning, where physical plausibility is essential.

Proposed method

  • Design a hybrid architecture where a standard deep neural network processes general inputs, while a separate linear module encodes physical laws using known parameters (e.g., heat transfer coefficients).
  • Integrate physical constraints via a linear transformation of key inputs—such as outside temperature, neighboring zone temperature, solar gains, and control inputs—into the network’s output prediction.
  • Formally prove that the network’s output remains physically consistent for any combination of control inputs and exogenous temperatures, both during training and inference.
  • Use a residual connection between the black-box neural network and the physics-informed module to allow the network to learn deviations from ideal physical behavior while preserving consistency.
  • Train the model using only past operational data, without requiring engineering expertise or manual tuning of physical parameters.
  • Initialize the physics module with prior knowledge (e.g., scaling parameters a, b, c, d) and allow them to be fine-tuned during training while maintaining physical plausibility.

Experimental results

Research questions

  • RQ1Can a neural network architecture be designed to guarantee physical consistency in building thermal predictions without requiring engineering expertise?
  • RQ2Does embedding physical laws directly into the network structure improve generalization performance compared to standard neural networks?
  • RQ3To what extent can a data-driven model outperform classical physics-based RC models in long-horizon temperature prediction while remaining physically consistent?
  • RQ4How does the performance of the PCNN compare to standard deep learning models (e.g., LSTMs) in terms of training and validation error, especially under distribution shift?
  • RQ5Can the physics-informed module be effectively learned from data while preserving physical plausibility, even when initialized with non-ideal values?

Key findings

  • PCNNs achieve a 40% reduction in prediction error compared to a tuned classical resistance-capacitance (RC) model over a 3-day prediction horizon.
  • Despite their constrained structure, PCNNs match the performance of standard LSTMs on validation data while exhibiting less overfitting during training.
  • PCNNs generalize better than classical neural networks: they perform worse during training but significantly better on validation data, indicating reduced overfitting and improved robustness.
  • The model maintains physical consistency across all tested control inputs and external temperature conditions, both during training and inference, as formally proven.
  • The physics-informed module remains physically plausible throughout training, with parameters like a, b, c, d slowly adjusting around their initial values without violating physical constraints.
  • PCNNs require no engineering overhead or manual tuning of physical parameters, making them highly flexible and deployable in real-world building control applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.