Search bioRxiv⌕ Search

Biology subjects

Sunil, G.

Publications and source records attributed to Sunil, G..

2 recordsLinked to original sources

Towards a Physiologically Rigorous Heartbeat Dynamics Foundation Model

Capturing long-range heartbeat dynamics accurately from wearable electrocardiogram (ECG) recordings is a key challenge in personalized healthcare and autonomic neuroscience. Although classical methods are physiologically grounded and statistically rigorous, they cannot learn across population data and therefore cannot scale. Time series foundation models, on the other hand, can scale, but fail to capture physiologically meaningful beat-to-beat dynamics. We present, to our knowledge, the first probabilistic foundation model of heartbeat dynamics: a density-based neural temporal point process (NTPP) pretrained on RR-interval sequences from 11,226 subjects across five public datasets spanning normal sinus rhythm, arrhythmia, atrial fibrillation, and ischemia. We establish a physiological scaling law in this domain, showing that held-out metrics improve predictably with cohort size. We additionally show that scaling behavior in stochastic output domains like physiology should be evaluated by distributional calibration metrics (KS distance, goodness-of-fit) rather than point-error (MAE, RMSE), because point errors approach their irreducible floor while distributional properties continue to improve. Our pretrained model transfers zero-shot to a held-out ambulatory dataset, reaching 94.7% goodness-of-fit with no subject-specific data. In 5-minute autoregressive simulation, the model remains calibrated (87-88% goodness-of-fit) and generates trajectories with real physiological variability. Finally, we show that the learned representations are physiologically interpretable. The recurrent history embeddings separate normal and arrhythmia windows in held-out test subjects with a balanced accuracy of 95.7%. The lognormal mixture distributions show that arrhythmia subjects differ mainly in predictive spread (3.5x larger standard deviation than normal cohort), with only a small shift toward shorter mean RR than the normal group (0.79 vs. 0.86s). These results establish population-scale pretraining as a foundation for physiologically grounded modeling and simulation of heartbeat dynamics.

bioengineering↗

Towards a Physiological Scaling Law: Model Quality vs. Cohort Size for Stochastic Sequence Data

Scaling laws help determine the optimal data size for training large models but are established in domains where the target is deterministic. Physiological signals are different: heartbeat sequences are stochastic, so part of the error is irreducible even with large amounts of data. Metrics such as MAE do not account for non-deterministic behavior, and therefore assessing scaling requires evaluating distributional calibration (measuring how well predicted probability densities capture true conditional characteristics). We formulate a scaling law metric(n) = E + A n- and evaluate it with five metrics: accuracy (MAE, RMSE), distributional calibration (KS distance, goodness-of-fit), and training objective (negative log loss) using a neural temporal point process trained on a cohort of four-ECG datasets. The law fits all five metrics. While point accuracy is near saturation at n = 183, KS distance and goodness-of-fit improve by 6% and 12% respectively when extrapolated to 10,000 subjects, showing that scaling decisions in stochastic domains must be guided by distributional calibration rather than point accuracy.

physiology↗