Physics-Informed Neural ODEs with Scale-Aware Residuals for Learning Stiff Biophysical Dynamics
Kamalpreet Singh Kainth, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedat Panat
TL;DR
This work tackles learning stiff, oscillatory biophysical dynamics with neural differential equations by introducing PI-NODE-SR, which normalizes physics residuals across variables evolving on disparate timescales and trains an explicit, low-order solver within a physics-informed objective. The method stabilizes training and enables long-horizon extrapolation on Hodgkin–Huxley dynamics, recovering both oscillation frequency and near-accurate amplitudes, while also capturing fast morphological features in gating variables. Through extensive ablations, the study demonstrates that scale-aware residuals, appropriate adjoint choices, and controlled physics loss are essential to outperform vanilla Neural ODEs and PINNs, even under noisy observations. The approach suggests a principled path toward robust, data-efficient learning of stiff biological dynamics and motivates extensions to partial observability, uncertainty quantification, and network-level models with solver–adjoint innovations.
Abstract
Neural differential equations offer a powerful framework for modeling continuous-time dynamics, but forecasting stiff biophysical systems remains unreliable. Standard Neural ODEs and physics informed variants often require orders of magnitude more iterations, and even then may converge to suboptimal solutions that fail to preserve oscillatory frequency or amplitude. We introduce PhysicsInformed Neural ODEs with with Scale-Aware Residuals (PI-NODE-SR), a framework that combines a low-order explicit solver (Heun method) residual normalisation to balance contributions between state variables evolving on disparate timescales. This combination stabilises training under realistic iteration budgets and avoids reliance on computationally expensive implicit solvers. On the Hodgkin-Huxley equations, PI-NODE-SR learns from a single oscillation simulated with a stiff solver (Rodas5P) and extrapolates beyond 100 ms, capturing both oscillation frequency and near-correct amplitudes. Remarkably, end-to-end learning of the vector field enables PI-NODE-SR to recover morphological features such as sharp subthreshold curvature in gating variables that are typically reserved for higher-order solvers, suggesting that neural correction can offset numerical diffusion. While performance remains sensitive to initialisation, PI-NODE-SR consistently reduces long-horizon errors relative to baseline Neural-ODEs and PINNs, offering a principled route to stable and efficient learning of stiff biological dynamics.
