TL;DR
Predicting how millions of homes heat up and cool down usually forces a choice between slow, painstakingly calibrated physics engines and fast neural networks that violate basic thermodynamics. NeuralBES bridges this divide by using a neural encoder to translate simple tax-assessor metadata into a classic thermal circuit, solving a year’s worth of building physics in parallel on a GPU. The result is a fast, differentiable simulator that respects physical laws and realistically captures when HVAC systems actually turn on and off.
What Problem Does This Paper Address?
Buildings account for roughly 40% of global energy consumption. As electric vehicles, heat pumps, and AI data centers strain power grids, utility planners need to know how to shift residential heating and cooling loads without freezing or roasting occupants. Doing this at scale requires simulating thousands of diverse homes under changing weather and electricity tariffs.
Existing tools present a frustrating bottleneck:
- Classical physics simulators (like EnergyPlus) are the gold standard for accuracy, but they run sequentially step-by-step and require calibrating dozens of obscure parameters (wall layers, infiltration rates) for every single building.
- Grey-box circuit models simplify the physics, but still require per-building fitting from historical sensor data.
- Black-box sequence models (LSTMs, Transformers) scale effortlessly across populations, but abandon conservation laws—often predicting physically nonsensical behaviors like running the heater and air conditioner simultaneously.
NeuralBES targets the sweet spot: zero-shot, physically valid simulation for unseen buildings using only basic utility-roll metadata (like floor area, vintage, and ZIP code).
Methods
At its heart, NeuralBES embeds a classic two-node Resistance-Capacitance (3R2C) thermal network inside a modern deep learning pipeline. Just like an electrical circuit where capacitors store charge and resistors impede current, thermal capacitances ($C$) store heat in the indoor air and building mass (walls/furniture), while thermal conductances ($UA$) govern how fast heat leaks outside.
The forward pass combines three distinct ideas:
- Shared Metadata Encoder: Instead of fitting parameters one building at a time, a single neural network reads static building features and outputs physically bounded capacitances, conductances, and HVAC capacities for any home.
- Parallel Log-Space Scan: Over a 15-minute timestep, the heat balance equation has an exact closed-form linear update. Rather than unrolling a full year (35,040 steps) sequentially, NeuralBES borrows the associative parallel scan machinery popularized by modern state-space models (like Mamba), computing long trajectories in $O(\log T)$ depth using log-space arithmetic to prevent numerical underflow.
- Predictor–Corrector Thermostat Loop: A linear scan alone cannot handle a thermostat, which creates a sharp nonlinearity when equipment switches on/off or hits maximum capacity. NeuralBES wraps the parallel scan in a 3-iteration fixed-point loop: it predicts the heat needed to hit the thermostat setpoint, clips that demand to the equipment's physical limits, and corrects (re-integrates) the indoor temperature trajectory.
Datasets
The authors train and evaluate on ResStock, a synthetic stock-level U.S. housing dataset generated via EnergyPlus. They distill stratified subsets of 2,856 dwellings per state across three distinct climate zones: California (CA), Texas (TX), and New York (NY), using 15-minute intervals over a full calendar year (35,040 steps). Models are trained on 1-week (672-step) windows and evaluated zero-shot on held-out buildings over both 1-week and 52$\times$ longer full-year rollouts.
Key Insights and Ideas
- Lower pointwise error doesn't mean a better simulator: An unconstrained LSTM beats NeuralBES on average pointwise error, yet fails as a physical model. Black-box baselines frequently predict tiny, continuous "phantom" loads during off-seasons or run heating and cooling simultaneously. For a utility planner estimating peak grid demand or equipment duty cycles, getting idle periods right matters just as much as average accuracy.
- Post-processing can't fix broken dynamics: Clipping an LSTM's outputs after the fact enforces valid bounds, but turns noisy jitter into strictly positive energy leaks that accumulate over a year—and leaves predicted loads disconnected from predicted indoor temperatures.
- Soft physics penalties fall short on switching: Adding a physics-informed loss to a Transformer (PI-Roformer) slightly helps long-term energy balance, but fails to capture sharp thermostat switching. Explicitly solving the ODE inside a closed control loop is what enforces physical reality.
- Actionable counterfactuals: Because $C$ and $UA$ are explicitly exposed in the architecture, policy analysts can directly test retrofit scenarios—like halving a home's envelope conductance to simulate better insulation—and trust the monotone physical response.
Key Results
Annual full-year rollout comparison across black-box, hybrid, grey-box, and NeuralBES models.
On the demanding 35,040-step annual rollout across multi-region held-out buildings:
- Physics Validity: NeuralBES achieves 100.0% mode exclusivity (never heating and cooling simultaneously) and 99.7% temperature bounds adherence. Data-driven baselines (DLinear, LSTM, PatchTST, Roformer) score only 24.4%–45.5% on mode exclusivity.
- Outperforming Grey-Box Parity: Compared to an equally sized (~1M parameter) population-level RC Grey-Box baseline sharing the exact same metadata encoder, NeuralBES cuts heating/cooling MAPE by more than half (41.5% / 41.3% vs. 86.5% / 92.5%) and lowers indoor temperature RMSE by 1.26°C (2.79°C vs. 4.05°C).
- Pointwise Tradeoff & Sparsity: The unconstrained LSTM achieves the lowest raw pointwise error (32.6% / 30.9% MAPE; 1.30°C RMSE). However, when true heating is off, NeuralBES predicts exact zero heating 94.8% of the time, closely matching the true annual HVAC off-time (76.0% vs. 75.1% ground truth).
- Physical Sensitivity: When outdoor temperatures are artificially perturbed by $\pm 5^\circ\text{C}$, NeuralBES and RC respond with realistic, monotone indoor shifts, whereas Roformer over-reacts like an implausibly leaky tent and PatchTST remains completely flat (formally ignoring outdoor temperature).
Limitations and Future Work
- Surrogate Boundaries: NeuralBES is trained on EnergyPlus simulations rather than real smart-meter data, and assumes weather, occupancy, and setpoint schedules are known in advance.
- Simplified Physics: The 3R2C model assumes a single-zone home with single-stage HVAC equipment and only models sensible heat—omitting humidity (latent loads) and domestic hot-water systems.
- Extending the Physics: Currently, modeling new physical phenomena (like multi-zone airflow or refrigerant cycles) requires manually rewriting the governing ODEs. A key future direction is designing hybrid residual components that can absorb unmodeled physics (like hot water) without sacrificing the interpretability and stability of the analytical core.
Summary updated