Scalable Physics-Informed Neural Differential Equations and Data-Driven Algorithms for HVAC Systems
Hanfeng Zhai, Hongtao Qiao, Hassan Mansour, Christopher Laughman · 2026
Read Scalable Physics-Informed Neural Differential Equations and Data-Driven Algorithms for HVAC Systems by Hanfeng Zhai, Hongtao Qiao, Hassan Mansour, Christopher Laughman (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-18438.txt.
Introduction
Zhai, Qiao, Mansour, and Laughman build a scalable system for large heating, venting, and cooling systems. Physics-guided neural differential models learn heat-swap action, tracking coolant mass and internal energy under mass and energy rules. Learned parts join algebraic solvers that enforce pressure and flow constraints, with Bayesian tuning and a lightweight fixer network trimming bias. Tests on two-compressor and scaled networks run several times faster than detailed runs with errors of only a few percent, scaling to 16 paired units.
Catalog record
| CREATOR | Hanfeng Zhai, Hongtao Qiao, Hassan Mansour, Christopher Laughman |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 105995 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.18438
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Scalable Physics-Informed Neural Differential Equations and Data-Driven Algorithms for HVAC Systems Hanfeng Zhai, Hongtao Qiao, Hassan Mansour, Christopher Laughman Abstract We present a scalable, data-driven simulation framework for large-scale heating, ventilation, and air conditioning (HVAC) systems that couples physics-informed neural ordinary differential equations (PINODEs) with differential-algebraic equation (DAE) solvers. At the component level, we learn heat-exchanger dynamics using an implicit PINODE formulation that predicts conserved quantities (refrigerant mass M r M_{r} and internal energy E hx E_{\text{hx}} ) as outputs, enabling physics-informed training via automatic differentiation of mass/energy balances. Stable long-horizon prediction is achieved through gradient-stabilized latent evolution with gated architectures and layer normalization. At the system level, we integrate learned components with DAE solvers (IDA and DASSL) that explicitly enforce junction constraints (pressure equilibrium and mass-flow consistency), and we use Bayesian optimization to tune solver parameters for accuracy–efficiency trade-offs. To reduce residual system-level bias, we introduce a lightweight corrector network trained on short trajectory segments. Across dual-compressor and scaled network studies, the proposed approach attains multi-fold speedups over high-fidelity simulation while keeping errors low (MAPE below a few percent) and scales to systems with up to 16 compressor–condenser pairs. Keywords: HVAC systems, Neural ODE, Gated recurrent unit, Vapor compression system, Differential algebraic equation Highlights • Implicit physics-informed neural ODE formulation that treats conserved quantities as outputs, enabling physics-informed training via automatic differentiation. • Gradient-stabilized latent evolution with gated architectures ensures stable training and long-horizon predictions for stiff thermo-fluid systems. • Lightweight corrector network compensates for system-level errors, improving mass and energy prediction accuracy. • DAE solvers (IDA and DASSL) with adaptive high-resolution stepping explicitly enforce algebraic constraints for pressure equilibrium and mass flow conservation. • Scalable to systems with 16 compressor–condenser pairs, representing one of the largest data-driven HVAC surrogates reported. • Achieves 4 – 9\times speedup with MAPE <2.5\% compared to high-fidelity simulators (best: 2.04% MAPE, 58.91 s). • Bayesian optimization automatically tunes solver parameters across multiple solver types for optimal accuracy–efficiency trade-offs. Nomenclature State Variables M_{r} Refrigerant mass within heat exchanger control volume (kg) E_{\text{hx}} Internal energy within heat exchanger (J) p Pressure (Pa) T Temperature (K) h Specific enthalpy (J/kg) \bm{y} System state vector \bm{y}_{d} Differential component of state vector \bm{y}_{a} Algebraic component of state vector \dot{\bm{y}} Time derivative of state vector Rate Variables \dot{M}_{r} Rate of change of refrigerant mass (kg/s) \dot{E}_{\text{hx}} Rate of change of internal energy (J/s) \dot{m} Mass flow rate (kg/s) \dot{m}_{r,\text{in}} Inlet refrigerant mass flow rate (kg/s) \dot{m}_{r,\text{out}} Outlet refrigerant mass flow rate (kg/s) \dot{Q}_{a} Heat transfer rate to air stream (W) DAE Solver Variables \mathbf{F} DAE residual function \mathbf{G} Nonlinear system function \mathbf{J} Jacobian matrix h_{n} Time step size at step n \Delta t Time step size h_{\text{max}} Maximum time step size h_{\text{min}} Minimum time step size \Delta t_{\text{out}}^{\text{IDA}} IDA solver output interval \Delta t_{\text{out,min}}^{\text{DASSL}} DASSL minimum output interval N_{\text{max}}^{\text{DASSL}} DASSL maximum number of internal steps \Delta t_{\text{target}} Target output interval for adaptive stepping t_{n} Time at step n k BDF order \alpha_{i,k} BDF coefficients (subscript i for coefficient index, subscript k for order) ATOL Absolute tolerance RTOL Relative tolerance \epsilon_{\Delta t} Time step tolerance \epsilon_{\text{soln}} Solution tolerance for root-finding \tau Control jump detection threshold n_{\text{pre}} Number of steps before control jump (high-res) n_{\text{post}} Number of steps after control jump (high-res) Neural Network Variables \mathbf{h}(t) Latent state vector in neural ODE \mathbf{h}_{0} Initial latent state \bm{X}_{\text{enc}} Encoder input sequence \mathbf{S}_{\text{enc}} Encoder state sequence \mathbf{S}_{\text{dec}} Decoder state sequence \bm{x}(t) Time-dependent feature vector \mathbf{s}(t) Time-dependent state vector \hat{\bm{y}} Predicted output vector \mathbf{W} Neural network weight matrices \bm{\theta} Neural network parameters d_{\text{latent}} Latent dimension d_{x} Feature dimension d_{s} State dimension T_{\text{enc}} Encoder sequence length T_{\text{dec}} Decoder sequence length \Phi_{\text{enc}} Encoder function (GRU) \psi Decoder function (GRU) \zeta Latent projection network f_{\theta} Neural ODE dynamics function \phi_{\text{corr}} Corrector network function \mathbf{z}_{\text{in}} Corrector network input vector \bm{\phi}_{\text{corr}} Corrector network output (correction term) \bm{\phi}_{\text{corr}}^{\text{raw}} Raw correction from network \bm{\phi}_{\text{corr}}^{\text{GP}} GP-smoothed correction \bm{\phi}_{\text{corr}}^{\text{smooth}} Final smoothed correction \hat{\mathbf{m}}_{\text{pred}} Normalized predicted mass/energy values \hat{\mathbf{m}}_{\text{bench}} Normalized benchmark mass/energy values \hat{\mathbf{m}}_{\text{corr}} Normalized corrected mass/energy values d_{\text{in}} Corrector network input dimension Loss Functions \mathcal{L}_{\text{total}} Total training loss \mathcal{L}_{\text{data}} Data fidelity loss \mathcal{L}_{\text{phys}} Physics-informed loss \mathcal{L}_{\text{cons}} Conservation loss \mathcal{L}_{\text{corr}} Corrector network loss \lambda_{\text{phys}} Physics loss weight \lambda_{\text{cons}} Conservation loss weight N Batch size System Parameters n_{c} Number of compressors (or compressor–condenser pairs) n_{v} Number of valves (or valve–evaporator pairs) n_{\text{cond}} Number of condensers n_{\text{evap}} Number of evaporators n_{p} Number of pressure variables (junction pressures) n Total system dimension N_{\text{steps}} Number of simulation time steps p_{\text{liq}} Liquid manifold pressure node p_{\text{suct}} Suction manifold pressure node \mathcal{G}(n_{c},n_{v}) System topology graph with n_{c} compressors and n_{v} evaporators Mathematical Symbols \sigma Sigmoid activation function \odot Element-wise multiplication \mathbb{R} Set of real numbers \|\cdot\| Euclidean norm \partial Partial derivative \nabla Gradient operator MSE Mean squared error MAPE Mean absolute percentage error \arg\min Argument of the minimum \mathcal{D} Dataset \mathcal{M} Model \mathcal{X} Parameter space Abbreviations PINODE Physics-Informed Neural ODE DAE Differential-Algebraic Equation ODE Ordinary Differential Equation DASSL Differential-Algebraic System Solver BDF Backward Differentiation Formula GRU Gated Recurrent Unit RK4 Fourth-order Runge-Kutta method HVAC Heating, Ventilation, and Air Conditioning GP Gaussian Process EI Expected Improvement 1 Introduction Heating, ventilation, and air conditioning (HVAC) systems account for a substantial portion of global energy consumption, with residential and commercial buildings responsible for approximately 40% of total energy usage [ 1 ] . As the demand for energy-efficient building operations grows, the need for accurate, real-time modeling and control of HVAC systems has become increasingly critical [ 2 ] . Large-scale HVAC networks, comprising multiple compressors, condensers, evaporators, and valves, exhibit complex thermo-fluid dynamics governed by nonlinear differential-algebraic equations (DAEs) that couple mass, energy, and momentum conservation laws [ 3 ] . Traditional approaches to HVAC modeling and simulation face a fundamental trade-off: high-fidelity physics-based models implemented in commercial software (e.g., Modelica [ 4 ] , EnergyPlus [ 5 ] ) achieve high accuracy but require computationally expensive numerical solvers that preclude real-time applications, while simplified reduced-order models sacrifice physical consistency for computational efficiency. Current physics-based simulators, despite their accuracy, suffer from significant computational bottlenecks that limit their practical deployment. High-fidelity simulations of large-scale HVAC systems are computationally intensive [ 6 ] , make it challenging for real-time control, optimization, or co-simulation with building energy management systems [ 7 ] . The computational burden stems from the need to solve stiff, nonlinear DAEs with adaptive time-stepping, handle complex thermodynamic property calculations, and resolve fast transients in multi-component networks [ 3 , 8 , 9 ] . This research gap between accuracy and computational efficiency has motivated the development of data-driven surrogates that can approximate the behavior of physics-based simulators at a fraction of the computational cost [ 10 , 11 , 12 , 13 , 14 ] . To bridge this gap, we propose a hybrid modeling framework that combines the expressiveness of neural networks with the physical consistency of conservation laws, enabling both accurate predictions and efficient computation. Our approach integrates physics-informed neural ordinary differential equations (PINODEs) [ 15 ] for component-level dynamics with specialized DAE solvers [ 16 , 17 ] for system-level constraint satisfaction. This dual-level strategy allows us to leverage the flexibility of machine learning for capturing complex, data-driven patterns while explicitly enforcing fundamental physical principles, such as mass