Preprint
Article

This version is not peer-reviewed.

BAND: A Unified Probabilistic Framework for Non-Stationary Heart Rate Variability Analysis

Submitted:

09 July 2026

Posted:

10 July 2026

You are already at the latest version

Abstract
Heart rate variability (HRV) forms the basis of non-invasive autonomic nervous system assessment. However, its analysis is constrained by the non-stationary nature of physiological signals. Standard analytical methods, which assume stationarity within fixed time windows, fail to capture dynamical effects of interest, such as the response to a physiological stressor. This limitation obstructs the development of mechanistic hypotheses about autonomic control. Here, we address this challenge by introducing a unified probabilistic framework for non-stationary HRV analysis. We propose a hypothesis-driven, generative model that transforms the physiological response into a continuous-time stochastic process controlled by a double-logistic function. This approach deconstructs the R-R interval (RRi) series into a set of interpretable parameters representing the latency, rate, and magnitude of distinct response and recovery phases. Through simulation, we establish the model’s ability to achieve high-fidelity parameter recovery and show its descriptive superiority over conventional fixed-time window methods. We then apply the framework to an empirical exercise-recovery recording, generating a precise, falsifiable hypothesis of “dissonant autonomic recovery”, where mean heart rate and its variability exhibit distinct recovery timescales. The Biphasic Autonomic Non-stationary Decomposition (BAND) framework provides a formal methodology for translating RRi time series into quantitative, testable estimates of their generative processes.
Keywords: 
;  ;  ;  ;  

1. Introduction

A major goal of contemporary biomedical science is to mechanistically connect the dynamic behavior of physiological systems to outcomes in human health and disease. The primary obstacle to this goal is the inferential gap between what can be measured with high-temporal resolution via wearable sensors and the underlying neurobiological processes that generate these measurements[1]. This inverse problem is particularly evident in the study of the autonomic nervous system (ANS), where heart rate variability (HRV) has become the dominant non-invasive marker[2,3,4]. The R-R interval (RRi) time-series is a highly informative signal, yet it presents a substantial analytical challenge, as it reflects the integrated and dynamic interplay of multiple regulatory systems[5]. Addressing this challenge requires formal methodologies capable of deconstructing the composite signal into quantitative, interpretable, and testable estimates of its underlying generative processes. The urgency of this task is highlighted by the central role of autonomic dysregulation in conditions ranging from cardiovascular diseases[6,7] to anxiety and post-traumatic stress[8,9,10], where precise characterization of system dynamics is essential for diagnosis and treatment.
The analytical tools most widely employed in this field remain poorly suited to the task, as the prevailing paradigm relies on calculating summary statistics within fixed temporal windows, thereby imposing a static and linear worldview on a system that is inherently dynamic and non-linear. These methods assume stationarity, an assumption routinely disrupted during physiological transitions of scientific or clinical interest[11,12]. As a result, they can produce misleading or uninterpretable outcomes. For example, by averaging across stress recovery, such methods conflate the initial sympathetic surge with the subsequent parasympathetic rebound, yielding a single opaque number that obscures the system’s adaptive capacity[11,12]. In this way, the unavoidable distortion of RRi signals under non-stationary conditions may mask critical differences between a resilient individual, characterized by rapid recovery, and a vulnerable one, marked by dampened recovery, thereby concealing an essential biomarker of pathology[13]. As a result, the “discretize-and-summarize” approach discards the temporal structure of the data and precludes direct estimation of core mechanistic properties such as response latencies, rates of change, and adaptive magnitudes, which represent the essential features that define the physiological process[14].
More sophisticated approaches have been proposed, but they too often fail to resolve the core inferential challenge, presenting instead a false dichotomy between phenomenological description and non-interpretable abstraction. On one hand, time–frequency decompositions such as the wavelet transform provide detailed visualizations of spectral dynamics, making them valuable for exploratory analysis[15]. Yet they remain fundamentally descriptive, unable to instantiate a generative model of the underlying biology. These methods can demonstrate that a change has occurred, yet they are unable to provide a parameterized and testable explanation of the underlying nature of that change[16]. On the other hand, modeling traditions like state-space models (SSMs) offer mathematical sophistication for tracking and forecasting system evolution[17,18]. While powerful, these models frequently sacrifice physiological fidelity for mathematical convenience, as their latent states are often defined by statistical rather than biological properties[18,19]. Even in tailored applications, SSMs excel at tracking continuous variation but are not explicitly structured to parameterize the discrete phases of physiological events, such as onset rate, recovery latency, or adaptive magnitude in response to stress[18,19]. The field thus remains methodologically constrained, caught between descriptive tools that cannot test mechanisms and abstract models whose parameters do not map onto physiological hypotheses.
Bridging this gap requires a conceptual shift from model-agnostic data description to the construction of hypothesis-driven frameworks grounded in generative modeling. Instead of simply characterizing what the data looks like, the focus should be on constructing explicit, testable, and quantitative models of the biological processes that generate the data. Here, we introduce and validate the Biphasic Autonomic Non-stationary Decomposition (BAND) framework, which reframes physiological analysis as a form of formal hypothesis testing. We hypothesize that autonomic responses to acute perturbations constitute structured, dynamic processes that can be effectively modeled as continuous-time stochastic process. Specifically, we employ a double-logistic function as a parsimonious hypothesis for biphasic dynamics, capturing the characteristic onset and recovery phases[20]. This representation translates raw signals into a small set of interpretable mechanistic parameters, including the latency, rate, and magnitude of each phase, thereby providing direct insight into autonomic reactivity and resilience.

2. Results

We propose a framework based on a generative Bayesian model that yields robust parameter estimates with full uncertainty quantification, supports hierarchical inference across individuals and groups, and enables formal model comparison. The model decomposes the RRi series into a time-varying mean, total variance, and a dynamically shifting oscillatory component controlled by a double-logistic latent dynamic. This formulation provides a more accurate and physiologically interpretable representation of autonomic dynamics than conventional fixed-window methods, offering quantitative indices of reactivity and recovery and a principled means to translate complex time series into mechanistic, falsifiable knowledge.
After its construction, we test the BAND model’s internal consistency by assessing its ability to recover its own parameters from simulated data. We then benchmark its descriptive fidelity against conventional methods to quantify its effectiveness in characterizing dynamic signals. Finally, we use the framework to generate a structured, phenomenological description of an empirical exercise-response signal, illustrating its potential for developing precise and data-driven hypotheses.
The core components of the model, related the underlying data generation process being modeled, are illustrated in Figure 1.

2.1. Model Validation and Parameter Recovery on Synthetic Data

To establish the model’s internal consistency and the identifiability of its parameters, we first assessed its ability to perform inference on synthetic data generated from its own structure. This in silico procedure serves as a necessary check of the model’s self-consistency and the estimation algorithm’s ability to navigate the complex posterior geometry. To test the model’s performance, three distinct scenarios were designed: (A) a canonical response with complete recovery; (B) an incomplete recovery with persistence in both time and frequency domains; and (C) a high-noise condition with a low structured variance fraction ( w = 0.6). The ground-truth dynamics are illustrated in Figure 2, with corresponding generative parameter values listed in Table 1. This procedure tests for inferential integrity under the assumption that the model is correctly specified; it does not test for robustness to model misspecification, a challenge inherent to all empirical data.
When fit to this synthetic data, the model demonstrated a high-fidelity reconstruction of the generative process across all three scenarios. Figure 3 presents a visual summary of these results, plotting the model’s posterior estimates against the known ground-truth trajectories. The posterior means for the baseline RRi, total SDNN, and the time-varying spectral proportions closely track the true underlying dynamics. The 95% credible intervals, which represent the range of plausible parameter values given the data, consistently envelop the ground-truth trajectories.
Beyond recovering the continuous dynamic trajectories, the model also recovered the discrete parameters that govern the shape and timing of these dynamics. Table 2 presents the posterior summaries for these key parameters, comparing the posterior median and 95% credible intervals against their true values. For all parameters across all scenarios, the 95% credible intervals successfully contained the ground-truth values. Successfully recovering all parameters confirms that they are practically identifiable from this type of data, at least when the data-generating process aligns with the model’s structural assumptions.

Benchmarking the Model’s Descriptive Fidelity

Having established the model’s internal consistency, we next benchmarked its descriptive performance against conventional, widely adopted analytical methods. The objective of this comparison was to quantify the core differences in how these analytical frameworks represent and summarize dynamic signals, and to highlight the specific conditions under which our proposed model offers a more advantageous description and performance. The same synthetic datasets from the previous section were analyzed using a 60-second sliding-window analysis for time-domain metrics (mean RRi and SDNN), and a Short-Time Fourier Transform (STFT) with a similar window length for characterizing spectral dynamics. The STFT, and similar Fourier methods, allows to decompose the signal into frequency bands that compose the complete signal, which helps in the identification of the relative contribution of major frequency bands (which BAND model mechanistically performs as part of its architecture).
The results of this comparative analysis highlight the descriptive distortions that are inherent to any method that relies on assumptions of local stationarity when applied to a continuously varying, non-stationary signal. Figure 4 illustrates the outputs from the windowed methods. Visually, these methods produced a delayed and morphologically blunted approximation of the underlying dynamics. The sharp, non-linear transitions that characterize the onset and recovery phases of the signal are smeared and flattened by the averaging process inherent in the windowed calculation. Consequently, the windowed approach failed to accurately capture both the shape and the precise timing of the recovery process. Instead of reflecting the smooth, logistic curve defined by the ground-truth process, the windowed analysis superimposed the square-wave artifacts of its own computational structure onto the data, a clear instance of the analytical method distorting the phenomenon it is intended to measure.
A formal quantitative analysis confirms the descriptive efficiency and accuracy of the generative approach for signals of this particular nature. Table 3 provides a summary of key performance metrics. Across all scenarios and all signal components, the generative model consistently provided a more accurate and parsimonious description of the data. It achieved substantially lower error (RMSE and Bias) and captured a significantly higher proportion of the signal’s variance, with R 2 values typically exceeding 0.90. It is important to interpret this result with caution. The model’s performance is, in one sense, expected, as the synthetic data were generated from its own structure. However, it illustrates a core theoretical argument of this work: for signals that are plausibly characterized by smooth, continuous transitions between distinct physiological states, a model whose parametric form explicitly encodes this structure will naturally provide a more efficient, less distorted, and more interpretable quantitative summary than a non-parametric, windowed approach that was designed for stationary or quasi-stationary signals.
Further model diagnostics testing the model’s overall stability and reliability on synthetic data for in silico validation can be found in the supplementary material. Prior predictive checks are shown in Figure S1, prior sensitivity analysis in Figure S2, full posterior distributions in Figure S3, and model fit to asymmetric recovery data from a different data generation process in Figure S4. Additionally, non-Gaussian distributions are presented in Figure S5.

2.2. A Phenomenological Description of an Empirical Exercise Response

To illustrate the framework’s intended application in a real-world context, we analyzed an RRi time series recorded from a single healthy subject undergoing a standardized two-minute submaximal step test. The express purpose of this N-of-1 analysis is to demonstrate how the model translates a complex, high-dimensional, and noisy time series into a concise, low-dimensional, and interpretable set of parameters that form the basis for generating new, quantitative, and ultimately falsifiable hypotheses.
Upon fitting the model to the empirical data, it yields a phenomenological decomposition of the entire exercise-recovery response, as depicted in Figure 5. The framework parses the signal into its constituent components, describing the physiological process as a rapid initial tachycardia (a decrease in the baseline RRi component, panel A and B in Figure 5) and a concurrent suppression of total heart rate variability (a decrease in the SDNN component, panel C in Figure 5). This initial response is followed by a slower, more gradual recovery phase after the cessation of the exercise stimulus. From a spectral perspective, the model attributes the signature of this response to a near-complete withdrawal of power in the high-frequency (HF) band, and a corresponding surge in the proportion of very-low-frequency (VLF) power (panel D in Figure 5). The model captures these dynamics as continuous, smooth trajectories, providing an integrated narrative of the entire physiological event.
The framework’s primary scientific utility, however, lies in generating quantitative, testable claims, which are encapsulated by the posterior distributions of its parameters. A key feature of the model is its separate parameterization of the recovery dynamics of the signal’s first moment (mean RRi, via the coefficient c r ) and its second moment (total variability, or SDNN, via the coefficient c s ). This explicit separation allows for a direct, quantitative description of their potential divergence. In this particular recording, the posterior distributions for these two recovery parameters were credibly distinct; the 95% credible interval for c r (median of the posterior distribution = 0.69, CI95%[0.66, 0.73]) was clearly separated from that for c s (median = 0.97, CI95%[0.91, 1.00]). This descriptive feature of the model’s output, which we term model-inferred dissonance, provides a data-driven and falsifiable hypothesis: that the recovery of mean heart rate and the recovery of its variability can follow distinct and dissociable time courses in response to an acute exercise stressor. This hypothesis is a quantitative statement, grounded in the posterior probability distributions of the model’s parameters.
Empirical and visual model diagnostics can be seen in the supplementary material. Complete traceplots, posterior distributions and MCMC diagnostics can be seen in Figure S6, S7 and Table S1, respectively. Posterior and distributional predictive checks can be seen in Figure S8 and S9.

3. Discussion

The quantitative analysis of HRV has long been a primary method for the non-invasive study of the autonomic nervous system[2,21]. A persistent challenge in this field is the inherent non-stationarity of physiological signals, which directly conflicts with the foundational assumptions of traditional analytical techniques[11,12,22], which were often adopted due to the computational constraints of their era. This discrepancy necessitates the use of methodological compromises, most notably time-windowing, which can introduce significant analytical artifacts and obscure the very dynamics they seek to quantify[13,23]. The present study was undertaken to develop and evaluate a generative probabilistic model for RRi time series, explicitly designed to represent and infer the parameters of transient physiological events. Our findings, based on a comprehensive suite of simulations and an empirical application, suggest that the BAND framework offers a more accurate and granular characterization of autonomic dynamics compared to what conventional windowed approaches can achieve. Our generative model provides a more detailed characterization of autonomic dynamics; however, its interpretation requires careful consideration of its underlying assumptions.
The primary contribution of this research is the synthesis and application of established Bayesian inference principles to construct a purpose-built, physiologically oriented measurement instrument[24]. The model formalizes a specific, falsifiable hypothesis about the data-generating process underlying dynamic RRi signals. We employ the term generative to signify this complete probabilistic specification, which enables a coherent inferential procedure regarding the model’s latent parameters. The internal validity and statistical integrity of this inferential process were examined through extensive simulation studies. In these controlled in silico experiments, where the ground truth was known, the model consistently recovered the generative parameters, and its posterior credible intervals were well-calibrated[25,26]. The model’s successful parameter recovery in these controlled simulations provides baseline confidence in its function as a reliable measurement device, but only under conditions where its numerous and restrictive structural assumptions are perfectly met. When benchmarked against conventional methods, its superior performance in tracking dynamic signals was observed. This outperformance is an expected consequence of its design, which replaces the crude filtering of windowing with a formal, continuous model of the underlying process. However, the apparent sophistication of this approach belies a series of deep-seated assumptions and conceptual challenges that demand scrupulous consideration.

3.1. Methodological Superiority and the Abandonment of Stationarity

A core assertion of this work is that the analytical shortcomings of traditional HRV analysis are conceptual, not merely technical. Windowed methods are, in essence, digital filters[27]. As such, they inevitably distort the signal they are intended to measure, introducing lag, attenuating amplitudes, and enforcing a false dichotomy between temporal and spectral resolution as dictated by the Heisenberg-Gabor uncertainty principle[28]. The inferential approach adopted here avoids these specific artifacts by modeling the entire time-course of an event holistically. Information from every data point is leveraged to inform the estimate at every other data point, conditioned on the assumed model structure[29].
However, this approach introduces its own set of abstractions. A potentially problematic assumption is the model’s imposition of orthogonality on a non-orthogonal system. The model specifies the observed RRi signal as a linear, additive combination of a baseline trend, several sinusoidal components, and a residual noise term. This mathematical decomposition is elegant and ensures parameter identifiability[30,31]; nonetheless, it is a convenient simplification of cardiovascular physiology.
Similarly, in physiology, the systems underlying these model components are deeply and non-linearly coupled. Baroreflex activity (a major contributor to the low-frequency component) and respiratory sinus arrhythmia (the high-frequency component) are not independent processes that sum together; they are neurologically intertwined within the brainstem and are engaged in a constant, dynamic feedback loop[32,33]. By construction, the model is designed to assign variance to its clean, orthogonal components in a way that may not map cleanly onto the underlying biology. The estimate for the amplitude of the high-frequency component, for instance, should be interpreted as the magnitude of the best-fitting sinusoidal component in that band, assuming it can be linearly and additively separated from all other ongoing dynamics, rather than a pure measure of respiratory sinus arrhythmia. The model’s simplifying assumption of linear, additive separation is an important caveat for physiological interpretation that requires careful consideration[34].

3.2. From Statistical Constructs to Biological Reality

The intended value of this framework is its ability to distill a complex signal into a set of “interpretable” parameters. This claimed interpretability, however, occupies a position between useful abstraction and the risk of equating a parameter with a physical process[35,36]. The very act of assigning a label like “recovery rate” to a parameter ( ϕ ) cognitively biases the researcher to perceive it as a distinct, tangible biological process[37]. While the parameter perfectly describes a feature of the fitted mathematical curve, it is an unsubstantiated inferential leap to equate it with a singular neurophysiological mechanism[36,38]. The observed recovery trajectory is the net result of an immensely complex cascade of interacting neural, endocrine, and humoral processes[13,33,39]. The model’s parameterization of this trajectory is a descriptive summary, rather than an elucidation of its constituent parts.
Such interpretive discipline, separating a mathematical parameter from a singular biological process, must be applied to all model outputs. The concept of “dissonant autonomic recovery”, for example, is a statistically identifiable pattern where heart rate returns to baseline far more quickly than measures of heart rate variability[40]. Yet, its proposed link to “lingering sympathetic activation” remains a speculative hypothesis requiring external validation. Could this pattern alternatively reflect differential downregulation rates of adrenergic and cholinergic receptors, or a mismatch in the resetting of central autonomic command versus peripheral feedback? These are precisely the kinds of hypotheses the model allows one to formulate, but it possesses no inherent capacity to adjudicate between them. It provides the tool to quantify the phenomenon with precision, thereby allowing for the examination of such hypotheses[41], but it cannot, on its own, provide definitive causal evidence.
Nowhere is this interpretive caution more warranted than with the structured variance fraction, w . Its proposed role as an index of “autonomic coherence” is a compelling narrative, but one that rests on a fragile foundation. At its core, w is simply the proportion of signal variance captured by a fixed set of sinusoids. A reduction in w could plausibly reflect a pathological dysregulation of autonomic rhythms[42]. However, it could equally reflect a plethora of other confounders: an increase in movement artifact, the presence of uncorrected ectopic beats, a change in breathing frequency outside the canonical high-frequency band, or activation of other physiological processes that contribute to RRi variance but are not sinusoidal[12,13,14]. To label this and other model parameters with a term as specific is, at best, premature and risks imbuing it with a degree of physiological certainty that it does not currently warrant.

3.3. Limitations

The model’s architecture is built upon a series of rigid assumptions. The choice of a symmetric double-logistic function is primarily mathematical[20], not a physiological imperative. Many biological recovery processes exhibiting asymmetry, hysteresis, or multi-timescale recovery would be poorly approximated by this functional form. Moreover, the model is a specialist instrument designed for a single, isolated perturbation-recovery event[20]. This makes it highly effective for analyzing clean, stimulus-response experimental paradigms but makes it unsuited for the exploratory analysis of complex, naturalistic data containing multiple, overlapping events of unknown form[12,22]. It is a tool for confirmatory, not exploratory science.
Furthermore, we acknowledge that the empirical validation of this framework is presently confined to a single-subject case study. This was a deliberate choice reflecting the manuscript’s primary aim: to introduce and validate a new methodological framework, not to make a generalizable empirical claim. The N-of-1 analysis serves as a proof-of-concept, demonstrating the model’s ability to perform a deep phenotyping of an individual’s response and, most importantly, to generate precise, falsifiable hypotheses. We contend that establishing this hypothesis-generating capacity is a necessary prerequisite to the much larger, and computationally demanding, task of applying the model hierarchically to a full cohort. This foundational work is offered to empower the broader research community to test these newly generated hypotheses on larger, more diverse datasets.
The adoption of a Bayesian framework, while providing intuitive probabilistic outputs, comes with its own methodological assumptions. The posterior credible interval for a parameter is a statement of subjective belief about its value, conditional on the data, the chosen model structure, and the specified prior distributions[24]. It is not equivalent to a frequentist confidence interval and does not account for structural uncertainty, the possibility that the model itself is misspecified. This leads to what might be termed the “Rashomon effect” in modeling, where multiple, structurally different models can provide equally good fits to the data while telling different and contradictory stories about the underlying process[43]. Without a systematic exploration of this “model space”, the conclusions drawn from this single model must be regarded as highly provisional.
The model’s reliance on Hamiltonian Monte Carlo sampling makes it computationally expensive. The required runtime may not only be a practical barrier for large datasets but could also create an “analytical divide”, where such advanced methods are only accessible to research groups with substantial computational resources. This effectively sidelines the method from deployment in real-time or near-real-time clinical settings, such as intensive care monitoring, where rapid feedback is paramount. Furthermore, the model’s performance is closely tied to the fidelity of upstream data. Uncorrected premature ventricular contractions or excessive measurement noise, for instance, could drastically alter the local mean and variance of model parameters. While the model may be robust to small deviations, its behavior in the face of such gross, non-stationary artifacts is unknown and could lead to biased inference on the entire stress-recovery curve. Finally, the treatment of the residual term as unstructured “noise” is a convenient assumption. In biology, true randomness is rare; the residuals likely contain unmodeled, structured biological processes or deterministic chaos.

3.4. Future Directions

The limitations catalogued above define a necessary line for future research. This line of research should move beyond incremental model refinement and toward the systematic characterization of the model as a scientific instrument.
The most urgent task is to initiate the calibration process for this instrument. Just as a new telescope must have its optical aberrations mapped and its resolution quantified, this model requires a comprehensive characterization of its operational properties. An ideal future study would involve establishing a formal calibration protocol, creating a standardized open-source library of synthetic RRi signals with known complexities, asymmetric responses, overlapping events, various artifact types, and non-Gaussian noise, and then systematically testing the model against this library. The results, published as a detailed “specification sheet”, would delineate the model’s biases, sensitivities, and failure modes, defining its safe operating envelope for future users.
Furthermore, future work should focus on utilizing the model for quantitative hypothesis testing and falsification. The framework should be applied in experimental contexts where specific interventions are known to target certain physiological pathways. For instance, testing the effect of beta-blockade on the response amplitude and recovery rate parameters following a cold pressor or exercise-based test would provide crucial external validation, linking the model’s abstract parameters to tangible pharmacological effects. This shifts the focus from “fitting a model” to “using a model to test a theory”[41,43].
The generative framework presented here represents a conceptually powerful alternative to conventional methods for analyzing dynamic HRV. Ultimately, this model should be viewed as a specialized instrument, rather than as a perfect reflection of reality. Its value lies in its ability to translate a complex signal into a set of precise, falsifiable hypotheses. The difficult work of calibrating this instrument, understanding its distortions, and cautiously deploying it to test concrete physiological hypotheses will ultimately determine its lasting contribution to the science of autonomic control.
Methods

3.5. Model Formulation

This section details the formulation of the BAND model, a comprehensive generative framework for the RRi signal, observed at a discrete set of time points { t i } i = 1 N . The model’s architecture is designed to deconstruct the signal into its constituent physiological components, providing a mechanistic account of the processes that shape heart rate dynamics. This is achieved by conceptualizing the signal as a probabilistic process controlled by a time-varying mean, μ ( t i ) , and a partitioned, time-varying standard deviation. This approach moves beyond simple curve-fitting to formalize a theory of autonomic control and its temporal evolution within a fully Bayesian framework.
A central component of the model is the partitioning of the total signal variance into two distinct, time-dependent components: a structured variance, σ struct 2 ( t i ) , which captures the physiologically meaningful, oscillatory patterns of HRV, and a residual variance, σ resid 2 ( t i ) , which accounts for unstructured, moment-to-moment fluctuations or measurement noise. The complete observation model, which integrates these components, is defined by the Normal likelihood in Equation 1.
R R i ( t i ) N ( μ ( t i ) , σ resid 2 ( t i ) )
The core of the model lies in the construction of the mean and variance components from a shared set of underlying dynamic functions. The mean trajectory, μ ( t i ) , is a superposition of a smoothly varying baseline trend and the synthesized structured signal itself, as shown in Equation 2.
μ ( t i ) = R R b a s e ( t i ) Gross RRi   Trend + A ( t i ) j = 1 J p j ( t i ) S j ( t i ) Structured   Variability   Signal
Here, R R b a s e ( t i ) represents the gross, underlying heart period trajectory. The structured variability signal is synthesized from a set of dynamically evolving spectral oscillators, S j ( t i ) , which represent activity in different physiological frequency bands ( j = 1 , 2 , 3 for VLF, LF, and HF, respectively). These oscillators are weighted by time-varying proportions, p j ( t i ) , and their overall magnitude is controlled by a scaling amplitude, A ( t i ) . This amplitude is deterministically calculated to ensure the signal’s variance exactly matches the target structured variance, σ struct 2 ( t i ) .
We partition the total signal variability, S D N N ( t i ) 2 , into two components. This partition is governed by a single parameter, w [ 0 , 1 ] , which represents the fraction of total variance that is considered physiologically structured (i.e., oscillatory). The remaining fraction, ( 1 w ), is treated as unstructured residual noise. This relationship is formalized in in Equation 3.
σ struct 2 ( t i ) = w S D N N ( t i ) 2 σ resid 2 ( t i ) = ( 1 w ) S D N N ( t i ) 2
This formulation allows the model to simultaneously infer not only how the total amount of HRV changes over time (via S D N N ( t i ) ), but also how the nature of that variability evolves, that is the balance between predictable, oscillatory patterns and unpredictable noise (via w ). This unified analysis facilitates a deeper understanding of autonomic regulation by capturing phenomena across both time and frequency domains within a single, coherent inferential framework.

3.5.1. Baseline Heart Period and Total Variability Trajectories

The model posits that the primary trends in both the mean heart period and its total variability are driven by a common underlying physiological response to a stimulus. To capture this, both the R R b a s e ( t i ) and S D N N ( t i ) trajectories are parameterized using the same flexible double-logistic functional form.
The baseline heart period, R R b a s e ( t i ) , which quantifies the gross, underlying variations in the mean RRi, is defined in Equation 4.
R R b a s e ( t i ) = α r Resting   RRi + β r D 1 ( t i ) Perturbation - induced RRi   Drop c r β r D 2 ( t i ) Post - perturbation RRi   Recovery
In this formulation, α r represents the initial, stable heart period. The parameter β r signifies the magnitude of the decline or increase in RRi induced by the perturbation. The fractional recovery amplitude is denoted by c r , where c r > 1 indicates an overshoot.
Concurrently, the total instantaneous variability, S D N N ( t i ) , follows a parallel dynamic trajectory, as defined in Equation 5.
S D N N ( t i ) = α s Resting   SDNN + β s D 1 ( t i ) Perturbation - induced SDNN   Drop c s β s D 2 ( t i ) Post - perturbation SDNN   Recovery
Here, α s , β s , and c s are analogous to their counterparts in the baseline model, representing the resting total SDNN, the magnitude of its suppression or increase, and its fractional recovery, respectively. The S D N N ( t i ) trajectory thus serves as a master controller for the total instantaneous variability in the signal. This total variance is then partitioned into a structured, oscillatory component and an unstructured, residual noise component, as defined in Equation 3.
The dynamics for both trajectories (i.e., R R b a s e and S D N N ), are driven by a shared pair of logistic transition functions, D 1 ( t i ) and D 2 ( t i ) , defined in Equation 6.
D 1 ( t i ) = ( 1 + e λ ( t i τ ) ) 1 D 2 ( t i ) = ( 1 + e ϕ ( t i τ δ ) ) 1
The shared timing parameters enforce physiological coupling: τ is the inflection point of the initial response, with rate λ . The second transition, representing recovery, is offset by a delay δ and proceeds at a rate ϕ . This shared structure ensures that all dynamic components of the model are driven by a single, unified underlying process.

3.5.2. Generative Model for the Structured Signal

The model partitions the signal into structured components, composed of three standard physiological frequency bands: very-low-frequency (VLF) from 0.003 to 0.04 Hz, low-frequency (LF) from 0.04 to 0.15 Hz, and high-frequency (HF) from 0.15 to 0.4 Hz.
The structured component of the signal is where the model’s spectral properties are defined. Its construction involves three key elements; the dynamic spectral proportions, the latent spectral oscillators (whose amplitudes are governed by a Gaussian Process), and a deterministic amplitude inversion that ties them to the target variance.
Dynamic Frequency Band Proportions
The proportions p j ( t i ) dictate how the total structured variance, σ struct 2 ( t i ) , is allocated across the different frequency bands at each moment. The model captures the evolution of these proportions as a smooth transition between two distinct spectral states: a baseline state ( π base ) and a perturbed state ( π pert ). The transition is determined by a single master controller function, C ( t i ) , as shown in Equation 7. Here, p ( t i ) is the 3x1 vector of proportions at time t i , whose j-th element is p j ( t i )
p ( t i ) = ( 1 C ( t i ) ) π base + C ( t i ) π pert
Here, π base and π pert are simplex vectors representing the characteristic spectral distributions at rest and during peak perturbation. The master controller, C ( t i ) , is itself built from the same logistic building blocks, ensuring the spectral transition is synchronized with the primary physiological response, as defined in Equation 8.
C ( t i ) = D 1 ( t i ) ( 1 c c D 2 ( t i ) )
This function naturally transitions from 0 towards 1, with the parameter c c [ 0 , 1 ] allowing for an incomplete spectral recovery.
Latent Spectral Oscillators via a Gaussian Process Prior
A central task of the model is to infer the power of oscillations across a range of frequencies from the observed data. A simple approach might impose a rigid mathematical structure on the spectrum (e.g., a 1 / f b power law) or treat the power at each frequency as independent. However, physiological spectra are rarely so simple; they typically exhibit smooth, continuous shapes with broad peaks.
To capture this realistic structure, we employ a flexible, non-parametric Gaussian Process (GP) prior. A GP is a statistical tool that allows us to place a prior on an unknown function, enforcing the assumption that it is smooth[44]. In this context, it formalizes the intuition that the amplitudes of nearby frequencies should be similar, allowing the model to infer the characteristic shape of the spectrum within each band directly from the data.
Each underlying oscillator, S j ( t i ) , which contributes to the structured variability, is modeled as a sum of simple sine and cosine waves with pre-specified frequencies ( f j , k ) but unknown amplitudes ( u j , k ), as shown in Equation 9.
S j ( t i ) = k = 1 K j [ u j , k ( s i n ) s i n ( 2 π f j , k t i ) + u j , k ( c o s ) c o s ( 2 π f j , k t i ) ]
The key innovation is the GP prior placed on the log-amplitude envelope, a vector denoted v j . To make the prior on the GP’s smoothness parameter stable and interpretable, the GP is defined over a log-frequency axis that has been scaled to the unit interval for each band. Let this scaled log-frequency be denoted f ~ j , k . The log-amplitude envelope is modeled as a single draw from a GP with a zero-mean function and a squared exponential covariance kernel ( K j ), also known as a radial basis function (RBF) kernel, defined in Equation 10. The term in the numerator represents the squared Euclidean distance between two points on the scaled log-frequency axis. This kernel is chosen because it formalizes the assumption that the spectral envelope is a smooth, continuous function, which is a strong but reasonable prior for physiological spectra.
v j G P ( 0 , K j ) , where   K j = e x p ( ( f ~ j f ~ j ' ) 2 2 ρ g p , j 2 )
The covariance matrix K j is controlled by a single hyperparameter, the length-scale ρ g p , j (a parameter controlling smoothness, not to be confused with a correlation coefficient), which determines the smoothness of the spectral envelope. The marginal standard deviation of the GP is fixed to 1. This is because the GP’s role is strictly to define the shape of the spectrum, not its absolute magnitude; the magnitude is handled by downstream normalization and scaling. The length-scale ρ g p , j is constrained to the [0,1] interval and controls the smoothness of the function on the unit-scaled input axis. A value near 1 enforces a very smooth, slowly changing shape, while a value near 0 allows for more rapid variations and narrower spectral peaks.
To ensure this model can be estimated efficiently, we use a non-centered parameterization. This is a computational technique that improves the performance of the sampler by reducing correlations between parameters[45]. Instead of estimating the highly correlated vector v j directly, the model estimates a vector of independent standard normal deviates, z g p , j . The target log-amplitude envelope is then deterministically constructed via the transformation v j = L j z g p , j , where L j is the Cholesky factor of the covariance matrix ( K j = L j L j ). This approach makes the estimation problem much simpler for the algorithm, leading to more robust and reliable inference.
Normalization for Identifiability
A critical step in the model’s construction is to ensure that its parameters are identifiable, meaning there is a unique set of parameters that explains the data. A potential ambiguity arises because two components of the model control amplitude: the GP’s marginal standard deviation ( α g p , j ) and the overall signal amplitude, A ( t i ) . Without a constraint, the model could achieve the same result by increasing the GP’s amplitude while decreasing A ( t i ) , making it difficult to interpret either parameter.
This normalization procedure is a critical step to ensure that the model’s parameters are identifiable. Its purpose is to assign a clear division of labor. The Gaussian Process exclusively determines the relative shape of the spectrum, while the time-varying amplitude A ( t i ) exclusively determines its absolute magnitude.
This is achieved by normalizing the amplitude envelope derived from the GP. First, let a j = e x p ( v j ) be the vector of positive amplitudes determined by the GP. We then create a normalized scaling vector, s j , such that the expected variance of the synthesized oscillator S j ( t i ) is precisely 1.
Because the final coefficients u j , k are generated by scaling standard normal deviates ( z j , k N ( 0 , 1 ) ), the appropriate normalization must be based on the expected variance of this random process. A key property of this process is that the expected value of cross-products between independent random coefficients is zero. Consequently, the total expected variance simplifies to a sum that depends only on the diagonal elements of the pre-computed Gram matrices ( G s i n , j and G c o s , j ). This procedure is formalized in Equation 11.
s j = a j k = 1 K j a j , k 2 ( ( G s i n , j ) k k + ( G c o s , j ) k k )
The final oscillator coefficients are then constructed as u j , k ( s i n ) = z j , k ( s i n ) s j , k and u j , k ( c o s ) = z j , k ( c o s ) s j , k . This procedure ensures that the GP component only informs the spectral shape, normalized to have a unit expected variance, thereby removing the ambiguity and making the model’s parameters clearly interpretable.
Deterministic Amplitude Inversion
The final step is to ensure that the synthesized structured signal, X ( t i ) = A ( t i ) j = 1 J p j ( t i ) S j ( t i ) , has a variance equal to the target structured variance, σ struct 2 ( t i ) , at every time point. A key feature of this model is that it does not assume the sinusoids form an orthogonal basis over the discrete, finite time domain. Instead, it computes the exact sample variance for each synthesized oscillator, V a r [ S j ( t i ) ] , given the current values of its coefficients. This exact calculation is critical to prevent the misestimation of spectral power that arises from the non-orthogonality of sinusoidal basis functions over finite, discretely sampled time intervals.
Let Σ S be the diagonal 3 × 3 matrix whose entries are these computed variances, Σ S [ j , j ] = V a r [ S j ( t i ) ] . Assuming independence between the bands, the variance of the weighted sum is given by the quadratic form in Equation 12.
V a r [ j = 1 J p j ( t i ) S j ( t i ) ] = p ( t i ) Σ S p ( t i )
The variance of the complete structured signal is V a r [ X ( t i ) ] = A ( t i ) 2 ( p ( t i ) Σ S p ( t i ) ) . To match our target, we set this equal to σ struct 2 ( t i ) = w S D N N ( t i ) 2 . Solving for A ( t i ) yields the inversion formula in Equation 13.
A ( t i ) = w S D N N ( t i ) p ( t i ) Σ S p ( t i )
This inversion is essential. It dynamically adjusts the amplitude of the synthesized spectral signal to ensure its contribution to the total variance is exactly as prescribed by the model’s high-level parameters ( S D N N ( t i ) and w ), thereby connecting the time-domain and frequency-domain components of the model.

3.5.3. Model Parameterization and Priors

To ensure numerical stability and efficient sampling, all model parameters are estimated on an unconstrained real-valued scale ( R ). Priors are placed on these unconstrained parameters, which are then transformed back to their constrained, physically meaningful scales within the model.
Timing, Rate, and Magnitude Parameters
Parameters constrained to a specific interval are parameterized on the logit scale, while positive parameters are on the log scale. For instance, the timing parameters τ and δ are mapped to the observed time interval ( t range ) and the remaining time, respectively, using the inverse logit transformation, such that τ = logit 1 ( τ logit ) t range + t min and δ = logit 1 ( δ logit ) ( t range τ ) .
The positive rate parameters λ and ϕ are simply log-transformed, i.e., λ = e x p ( λ log ) . The recovery coefficients for the time-domain components ( c r , c s ) are mapped to the interval [ 0 , 2 ] , while the recovery parameter for spectral components ( c c ) is mapped to the [ 0 , 1 ] interval, using a scaled logit function. Similarly, the fraction of structured variance, w , is constrained between 0 and 1 via w = logit 1 ( w logit ) .
The magnitude parameters ( α r , β r , α s , β s ) are scaled relative to data-derived quantities to create dimensionless parameters whose priors are easier to specify. These transformations ensure the sampler explores a valid and well-behaved parameter space.
Spectral and Oscillator Parameters
The spectral proportions, π base and π pert , are mapped from the 3-dimensional simplex to 2-dimensional real vectors using the additive log-ratio (ALR) transformation. The model estimates the unconstrained vectors, which are mapped back to the simplex via the softmax function.
The GP length-scale, ρ g p , j , is constrained to the [0,1] interval to correspond with the scaled log-frequency input. This is achieved by parameterizing it on the unconstrained logit scale in the sampler. Concretely, we sample ρ g p , j ( logit ) N ( 0 , 1 ) , and then deterministically transform it via the inverse logit function, ρ g p , j = logit 1 ( ρ g p , j ( logit ) ) . This prior is weakly informative, allowing the data to determine the appropriate level of smoothness for the spectral envelope in each band.
Finally, the non-centered parameterization is completed by placing standard Normal priors on all latent “z” variables: the GP deviates ( z g p ), the sine coefficients ( z s i n ), and the cosine coefficients ( z c o s ). This technique is critical for efficient sampling, as it decouples the hierarchical dependencies and removes pathological posterior geometries.

3.6. Simulation Studies

To evaluate the model’s performance, we conducted a series of simulation studies. The objectives were to assess the model’s ability to recover known ground-truth parameters from synthetic data and to quantitatively benchmark its reconstruction of key HRV dynamics against conventional, windowed analysis techniques. Synthetic RRi time series were generated using the model’s own generative structure with pre-specified parameter values. This process provided datasets with perfectly known underlying dynamics for R R ( t i ) , S D N N ( t i ) , and p j ( t i ) , serving as an objective gold standard for evaluation.
We designed three distinct scenarios to probe the model’s capabilities under diverse and challenging conditions. These scenarios: (A) a classic sympatho-vagal response, (B) an incomplete recovery with time-domain and spectral persistence, and (C) an incomplete spectral but complete time-domain recovery with high noise, were chosen specifically to test the limitations inherent in standard analysis methods. Each simulated dataset was analyzed with our complete Bayesian model and, for comparison, with conventional techniques: 1) a sliding-window analysis for time-domain metrics and 2) a Short-Time Fourier Transform (STFT) for spectral dynamics.

3.6.1. Time-Domain Trajectory Reconstruction

The capacity to accurately capture time-domain dynamics was evaluated by comparing the model’s continuous estimates of R R ( t i ) and S D N N ( t i ) against the stepwise approximations derived from a standard sliding-window mean and standard deviation. To provide a comprehensive evaluation of reconstruction fidelity, model performance was quantified against the ground-truth trajectories using a suite of complementary metrics. The root mean squared error (RMSE) and mean absolute error (MAE) were used to measure the average magnitude of the estimation error, with MAE offering a more robust assessment against sporadic outliers. The model’s bias (mean error) was calculated to identify any systematic tendency for over- or underestimation. Finally, the coefficient of determination ( R 2 ) was used to assess the proportion of variance in the true signal captured by the estimate.

3.6.2. Spectral Dynamics Reconstruction

To evaluate the reconstruction of spectral dynamics, our model’s continuous estimates of the spectral proportions, p j ( t i ) , were compared against those derived from an STFT. For a direct comparison, the spectrogram generated by the STFT was normalized at each time step to yield proportional power within the VLF, LF, and HF bands. The performance of both methods was then assessed by comparing their estimated trajectories to the known ground-truth proportions using the same comprehensive suite of metrics (RMSE, MAE, Bias, and R 2 ). This comparative framework was designed to objectively quantify the trade-offs in temporal and frequency resolution inherent to windowed methods versus the continuous estimation provided by our model, especially in the presence of rapid transitions or low signal-to-noise ratios. As part of the model’s internal validation, we also confirmed that the 95% posterior credible intervals for all generative parameters consistently contained the known ground-truth values, ensuring both inferential accuracy and appropriate uncertainty quantification.

3.7. Proof of Concept

For a practical demonstration of the framework, we analyzed heart rate variability data (RRi time series) collected from one healthy individual completing a two-minute submaximal step test. This individual-level (N-of-1) analysis was designed explicitly to show how the model simplifies a complex, information-rich, and noisy time series into a few interpretable, low-dimensional parameters. Ethical approval regarding experimental protocols were obtained from the Scientific Ethics Committee of the University of Magallanes, CEC-UMAG (Nº053/SH/2023) and all methods were carried out in accordance with relevant guidelines and regulations. The subject received detailed information regarding the study objectives, procedures, and potential implications. Informed consent was obtained to ensure ethical compliance and participant autonomy.

Supplementary Materials

The following supporting information can be downloaded at the website of this paper posted on Preprints.org.

Author Contributions

Conceptualization, MC-A, CN-E; Data curation, MC-A, NB; Investigation, MC-A, DM-C; Methodology, MC-A, DM-O; Supervision, DM-O, CN-E; Formal analysis, MC-A; Visualization, MC-A; Writing–original draft, MC-A, RM, CN-E; Writing–review & editing, MC-A, RMM, DM-C, AU-O, MN, CN-E. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by ANID Proyecto Fondecyt Regular Nº1250474 and by the Innovation Fund for Competitiveness of the Regional Government of Magallanes and Chilean Antarctica (BIP Code 40042452-0).

Institutional Review Board Statement

Ethical approval was obtained from the Scientific Ethics Committee of the University of Magallanes, CEC-UMAG (Nº053/SH/2023).

Data Availability Statement

The Stan code implementing the complete generative model is available as a supplementary material. The raw data supporting the conclusions of this article will be made available by the authors without undue reservation.

Conflicts of Interest

The authors declare that the research was conducted without any commercial or financial relationships construed as as a potential conflict of interest.

References

  1. Huber, A.; et al. Brain activation and heart rate variability as markers of autonomic function under stress. Sci. Rep. 2025, 15, 28114. [Google Scholar] [CrossRef] [PubMed]
  2. Shaffer, F.; Ginsberg, J. P. An overview of heart rate variability metrics and norms. Front. Public Health 2017, 5, 258. [Google Scholar] [CrossRef] [PubMed]
  3. Castillo-Aguilar, M.; et al. Cardiac autonomic regulation in response to functional power threshold testing in elite cyclists. Rev. Andal. De Med. Del Deporte 2023, 16. [Google Scholar] [CrossRef]
  4. Castillo-Aguilar, M.; et al. Validity and reliability of short-term heart rate variability parameters in older people in response to physical exercise. Int. J. Environ. Res. Public Health 2023, 20, 4456. [Google Scholar] [CrossRef] [PubMed]
  5. Arakaki, X.; et al. The connection between heart rate variability (HRV), neurological health, and cognition: A literature review. Front. Neurosci. 2023, 17, 1055445. [Google Scholar] [CrossRef] [PubMed]
  6. Orini, M.; et al. Long-term association of ultra-short heart rate variability with cardiovascular events. Sci. Rep. 2023, 13, 18966. [Google Scholar] [CrossRef] [PubMed]
  7. Serhiyenko, A.; et al. Post-traumatic stress disorder, insomnia, heart rate variability and metabolic syndrome (narrative review). Proceeding Shevchenko Sci. Soc. Med. Sci. 2024, 73. [Google Scholar] [CrossRef]
  8. Schneider, M.; Schwerdtfeger, A. Autonomic dysfunction in posttraumatic stress disorder indexed by heart rate variability: A meta-analysis. Psychol. Med. 2020, 50, 1937–1948. [Google Scholar] [CrossRef] [PubMed]
  9. Cheng, Y.-C.; Su, M.-I.; Liu, C.-W.; Huang, Y.-C.; Huang, W.-L. Heart rate variability in patients with anxiety disorders: A systematic review and meta-analysis. Psychiatry Clin. Neurosci. 2022, 76, 292–302. [Google Scholar] [CrossRef] [PubMed]
  10. Tomasi, J.; Zai, C. C.; Pouget, J. G.; Tiwari, A. K.; Kennedy, J. L. Heart rate variability: Evaluating a potential biomarker of anxiety disorders. Psychophysiology 2024, 61, e14481. [Google Scholar] [PubMed]
  11. Shaffer, F.; Meehan, Z. M.; Zerr, C. L. A critical review of ultra-short-term heart rate variability norms research. Front. Neurosci. 2020, 14, 594880. [Google Scholar] [CrossRef] [PubMed]
  12. Kim, J. W.; Seok, H. S.; Shin, H. Is ultra-short-term heart rate variability valid in non-static conditions? Front. Physiol. 2021, 12, 596060. [Google Scholar] [CrossRef] [PubMed]
  13. Lu, L.; et al. Uncertainties in the analysis of heart rate variability: A systematic review. IEEE Rev. Biomed. Eng. 2023, 17, 180–196. [Google Scholar] [CrossRef]
  14. Tiwari, R.; Kumar, R.; Malik, S.; Raj, T.; Kumar, P. Analysis of heart rate variability and implication of different factors on heart rate variability. Curr. Cardiol. Rev. 2021, 17, 74–83. [Google Scholar] [CrossRef]
  15. German-Sallo, Z. Wavelet transform based HRV analysis. Procedia Technol. 2014, 12, 105–111. [Google Scholar] [CrossRef]
  16. Guo, T.; et al. A review of wavelet analysis and its applications: Challenges and opportunities. IEEe Access 2022, 10, 58869–58903. [Google Scholar] [CrossRef]
  17. Martı́n-González, S.; Navarro-Mesa, J. L.; Juliá-Serdá, G.; Ramı́rez-Ávila, G. M.; Ravelo-Garcı́a, A. G. Improving the understanding of sleep apnea characterization using recurrence quantification analysis by defining overall acceptable values for the dimensionality of the system, the delay, and the distance threshold. PLoS ONE 2018, 13, e0194462. [Google Scholar] [CrossRef] [PubMed]
  18. Rosas, F. E.; Candia-Rivera, D.; Luppi, A. I.; Guo, Y.; Mediano, P. A. Bayesian at heart: Towards autonomic outflow estimation via generative state-space modelling of heart rate dynamics. Comput. Biol. Med. 2024, 170, 107857. [Google Scholar] [CrossRef] [PubMed]
  19. Liu, S.; Perley, A. S.; Coleman, T. P. An efficient framework for solving a convex, state-space heartbeat dynamics model. in 2024 46th annual international conference of the IEEE engineering in medicine and biology society (EMBC) 1–4 (IEEE, 2024).
  20. Castillo-Aguilar, M.; Mabe-Castro, D.; Medina, D.; Núñez-Espinosa, C. Enhancing cardiovascular monitoring: A non-linear model for characterizing RR interval fluctuations in exercise and recovery. Sci. Rep. 2025, 15, 8628. [Google Scholar] [CrossRef] [PubMed]
  21. Malik, M.; Camm, A. J. Heart rate variability. Clin. Cardiol. 1990, 13, 570–576. [Google Scholar] [CrossRef] [PubMed]
  22. Voss, A.; Schulz, S.; Schroeder, R.; Baumert, M.; Caminal, P. Methods derived from nonlinear dynamics for analysing heart rate variability. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2009, 367, 277–296. [Google Scholar]
  23. Rajendra Acharya, U.; Paul Joseph, K.; Kannathal, N.; Lim, C. M.; Suri, J. S. Heart rate variability: A review. Med. Biol. Eng. Comput. 2006, 44, 1031–1051. [Google Scholar] [CrossRef] [PubMed]
  24. Ghahramani, Z. Bayesian non-parametrics and the probabilistic approach to modelling. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2013, 371, 20110553. [Google Scholar] [CrossRef]
  25. Cook, S. R.; Gelman, A.; Rubin, D. B. Validation of software for bayesian models using posterior quantiles. J. Comput. Graph. Stat. 2006, 15, 675–692. [Google Scholar] [CrossRef]
  26. Talts, S.; Betancourt, M.; Simpson, D.; Vehtari, A.; Gelman, A. Validating bayesian inference algorithms with simulation-based calibration. arXiv 2018, arXiv:1804.06788. [Google Scholar]
  27. Sassi, R.; et al. Advances in heart rate variability signal analysis: Joint position statement by the e-cardiology ESC working group and the european heart rhythm association co-endorsed by the asia pacific heart rhythm society. Ep. Eur. 2015, 17, 1341–1353. [Google Scholar] [CrossRef]
  28. Deka, D.; Deka, B. Detection of meditation-induced HRV dynamics using averaging technique-based oversampled feature set and machine learning classifiers. IEEE Access 2023, 11, 29576–29590. [Google Scholar] [CrossRef]
  29. Shashikant, R.; Chaskar, U.; Phadke, L.; Patil, C. Gaussian process-based kernel as a diagnostic model for prediction of type 2 diabetes mellitus risk using non-linear heart rate variability features. Biomed. Eng. Lett. 2021, 11, 273–286. [Google Scholar] [CrossRef] [PubMed]
  30. Hines, K. E.; Middendorf, T. R.; Aldrich, R. W. Determination of parameter identifiability in nonlinear biophysical models: A bayesian approach. J. General. Physiol. 2014, 143, 401–416. [Google Scholar] [CrossRef]
  31. Hyvärinen, A.; Khemakhem, I.; Monti, R. Identifiability of latent-variable and structural-equation models: From linear to nonlinear. Ann. Inst. Stat. Math. 2024, 76, 1–33. [Google Scholar]
  32. Polanczyk, C. A.; et al. Sympathetic nervous system representation in time and frequency domain indices of heart rate variability. Eur. J. Appl. Physiol. Occup. Physiol. 1998, 79, 69–73. [Google Scholar] [CrossRef] [PubMed]
  33. Grégoire, J.-M.; Gilon, C.; Carlier, S.; Bersini, H. Autonomic nervous system assessment using heart rate variability. Acta Cardiol. 2023, 78, 648–662. [Google Scholar] [CrossRef] [PubMed]
  34. Lundberg, S. M.; Lee, S.-I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
  35. Ramstead, M. J.; et al. From generative models to generative passages: A computational approach to (neuro) phenomenology. Rev. Philos. Psychol. 2022, 13, 829–857. [Google Scholar] [CrossRef] [PubMed]
  36. Thiele, J. A.; Faskowitz, J.; Sporns, O.; Hilger, K. Choosing explanation over performance: Insights from machine learning-based prediction of human intelligence from brain connectivity. PNAS Nexus 2024, 3, pgae519. [Google Scholar] [CrossRef] [PubMed]
  37. Navarro, C. L. A.; et al. Risk of bias in studies on prediction models developed using supervised machine learning techniques: Systematic review. BMJ 2021, 375. [Google Scholar]
  38. Rosenberg, M. D.; Casey, B.; Holmes, A. J. Prediction complements explanation in understanding the developing brain. Nat. Commun. 2018, 9, 589. [Google Scholar] [CrossRef] [PubMed]
  39. Colebank, M. J.; et al. Guidelines for mechanistic modeling and analysis in cardiovascular research. Am. J. Physiol.-Heart Circ. Physiol. 2024, 327, H473–H503. [Google Scholar] [CrossRef] [PubMed]
  40. Lee, C. M.; Mendoza, A. Dissociation of heart rate variability and heart rate recovery in well-trained athletes. Eur. J. Appl. Physiol. 2012, 112, 2757–2766. [Google Scholar] [PubMed]
  41. Sankaran, K.; Holmes, S. P. Generative models: An interdisciplinary perspective. Annu. Rev. Stat. Its Appl. 2023, 10, 325–352. [Google Scholar] [CrossRef]
  42. Solı́s-Montufar, E. E.; Gálvez-Coyt, G.; Muñoz-Diosdado, A. Entropy analysis of RR-time series from stress tests. Front. Physiol. 2020, 11, 981. [Google Scholar] [CrossRef] [PubMed]
  43. Kalinin, S. V.; Ghosh, A.; Vasudevan, R.; Ziatdinov, M. From atomically resolved imaging to generative and causal models. Nat. Phys. 2022, 18, 1152–1160. [Google Scholar] [CrossRef]
  44. Binois, M.; Wycoff, N. A survey on high-dimensional gaussian process modeling with application to bayesian optimization. ACM Trans. Evol. Learn. Optim. 2022, 2, 1–26. [Google Scholar] [CrossRef]
  45. Betancourt, M.; Girolami, M. Hamiltonian monte carlo for hierarchical models. Curr. Trends Bayesian Methodol. With Appl. 2015, 79, 2–4. [Google Scholar]
Figure 1. Core inferential procedure being captured by the model. The data generation process being modeled is a transient stressor or perturbation from a baseline to a recovered state (1). This stimulus is being applied while the R-R intervals (RRi) is being recorded simultaneously (2). Then, the Biphasic Autonomic Non-stationary Decomposition (BAND) model takes the RRi data and decompose the data generation process as a linear combination of time and frequency components that build the underlying observed RRi signal as a dynamical and continuous process (3).
Figure 1. Core inferential procedure being captured by the model. The data generation process being modeled is a transient stressor or perturbation from a baseline to a recovered state (1). This stimulus is being applied while the R-R intervals (RRi) is being recorded simultaneously (2). Then, the Biphasic Autonomic Non-stationary Decomposition (BAND) model takes the RRi data and decompose the data generation process as a linear combination of time and frequency components that build the underlying observed RRi signal as a dynamical and continuous process (3).
Preprints 222410 g001
Figure 2. Ground-truth dynamics of three synthetic scenarios. The scenarios were designed to test model performance under diverse conditions: (A) a classic sympatho-vagal response, (B) an incomplete recovery with persistence in both time and frequency domains, and (C) a high-noise condition with dissonant (complete time-domain, incomplete spectral) recovery. Panels show the generated RRi data with the true mean signal, the underlying time-domain trajectories for baseline RRi and total SDNN, and the time-varying spectral proportions.
Figure 2. Ground-truth dynamics of three synthetic scenarios. The scenarios were designed to test model performance under diverse conditions: (A) a classic sympatho-vagal response, (B) an incomplete recovery with persistence in both time and frequency domains, and (C) a high-noise condition with dissonant (complete time-domain, incomplete spectral) recovery. Panels show the generated RRi data with the true mean signal, the underlying time-domain trajectories for baseline RRi and total SDNN, and the time-varying spectral proportions.
Preprints 222410 g002
Figure 3. High-fidelity reconstruction of synthetic data by the generative model. The model’s posterior mean estimates (solid lines) and 95% credible intervals (shaded ribbons) are overlaid on the known ground-truth dynamics (dashed lines) for all three scenarios (A, B, C). The model accurately recovers the continuous trajectories for baseline RRi, total SDNN, and spectral proportions across all conditions.
Figure 3. High-fidelity reconstruction of synthetic data by the generative model. The model’s posterior mean estimates (solid lines) and 95% credible intervals (shaded ribbons) are overlaid on the known ground-truth dynamics (dashed lines) for all three scenarios (A, B, C). The model accurately recovers the continuous trajectories for baseline RRi, total SDNN, and spectral proportions across all conditions.
Preprints 222410 g003
Figure 4. Distorted reconstruction of synthetic data by conventional windowed Methods. The estimates from a 60-second sliding window (for RRi and SDNN) and an STFT (for spectral proportions) are shown as solid lines overlaid on the ground-truth dynamics (dashed lines). The methods introduce significant lag, blunting, and temporal smearing, failing to capture the true non-linear dynamics.
Figure 4. Distorted reconstruction of synthetic data by conventional windowed Methods. The estimates from a 60-second sliding window (for RRi and SDNN) and an STFT (for spectral proportions) are shown as solid lines overlaid on the ground-truth dynamics (dashed lines). The methods introduce significant lag, blunting, and temporal smearing, failing to capture the true non-linear dynamics.
Preprints 222410 g004
Figure 5. Phenomenological decomposition of an empirical exercise-recovery response. The figure illustrates the reconstructed RRi signal (red line in panel A) overlaid on top of the observed RRi signal (gray). In the bottom panel, the Biphasic Autonomic Non-stationary Decomposition (BAND) model components appear. First, the time-domain components: the baseline RRi trend ( R R b a s e , blue line, panel B) and the total instantaneous variability ( S D N N , orange, panel C). Additionally, the inferred dynamics of the spectral proportions is also present, describing the evolution of frequency band relative participation across the transient stimulus (panel D). The shaded regions represent the 95% highest density intervals.
Figure 5. Phenomenological decomposition of an empirical exercise-recovery response. The figure illustrates the reconstructed RRi signal (red line in panel A) overlaid on top of the observed RRi signal (gray). In the bottom panel, the Biphasic Autonomic Non-stationary Decomposition (BAND) model components appear. First, the time-domain components: the baseline RRi trend ( R R b a s e , blue line, panel B) and the total instantaneous variability ( S D N N , orange, panel C). Additionally, the inferred dynamics of the spectral proportions is also present, describing the evolution of frequency band relative participation across the transient stimulus (panel D). The shaded regions represent the 95% highest density intervals.
Preprints 222410 g005
Table 1. Ground-truth parameter values for simulation scenarios. Ground-truth parameter values used in the generation of three simulation scenarios. The scenarios correspond to (A) a classic sympatho-vagal response, (B) an incomplete recovery with time-domain and spectral persistence, and (C) an incomplete spectral but complete time-domain recovery with high noise.
Table 1. Ground-truth parameter values for simulation scenarios. Ground-truth parameter values used in the generation of three simulation scenarios. The scenarios correspond to (A) a classic sympatho-vagal response, (B) an incomplete recovery with time-domain and spectral persistence, and (C) an incomplete spectral but complete time-domain recovery with high noise.
Parameter Interpretation Scenario A Scenario B Scenario C
λ Rate of dynamics onset 2.00 2.00 2.00
ϕ Rate of recovery 3.00 3.00 3.00
τ Time onset 6.00 6.00 6.00
δ Stimulus durantion 3.00 3.00 3.00
αr Resting RRi 800.00 700.00 800.00
βr Magnitude of RRi change -400.00 -350.00 -400.00
cr RRi recovery proportion 1.00 0.60 1.00
αs Resting SDNN 50.00 40.00 50.00
βs Magnitude of SDNN change -40.00 -20.00 -25.00
cs SDNN recovery proportion 1.00 0.60 1.00
cc Spectral recovery proportion 0.80 0.40 0.40
w Proportion of structured variance 0.90 0.90 0.60
πbase Base-state [VLF, LF, HF] proportion [0.2, 0.2, 0.6] [0.2, 0.2, 0.6] [0.2, 0.2, 0.6]
πpert Perturbed-state [VLF, LF, HF] proportion [0.4, 0.4, 0.2] [0.4, 0.4, 0.2] [0.4, 0.4, 0.2]
Table 2. Posterior recovery of ground-truth parameters. This table compares the known ground-truth parameter values to the model’s posterior estimates (median and 95% credible interval). The model successfully recovers all parameters, with the true values consistently falling within the credible intervals.
Table 2. Posterior recovery of ground-truth parameters. This table compares the known ground-truth parameter values to the model’s posterior estimates (median and 95% credible interval). The model successfully recovers all parameters, with the true values consistently falling within the credible intervals.
Parameter Scenario A Scenario B Scenario C
Truth Estimate 95% HDI Truth Estimate 95% HDI Truth Estimate 95% HDI
λ 2 1.99 [1.9, 2.08] 2 1.98 [1.89, 2.06] 2 1.97 [1.82, 2.13]
ϕ 3 2.95 [2.8, 3.11] 3 2.92 [2.66, 3.2] 3 2.90 [2.61, 3.24]
τ 6 6.01 [5.99, 6.04] 6 6.02 [5.99, 6.05] 6 6.03 [5.98, 6.09]
δ 3 2.98 [2.94, 3.02] 3 2.97 [2.9, 3.03] 3 2.96 [2.87, 3.04]
αr 800 800.09 [798.64, 801.65] 700 700.09 [698.92, 701.31] 800 800.20 [797.37, 803.11]
βr -400 -402.08 [-408.23, -396.3] -350 -353.12 [-359.57, -347.23] -400 -405.27 [-419.41, -392.36]
cr 1 1.00 [1, 1.01] 0.6 0.60 [0.6, 0.61] 1 1.00 [0.99, 1.01]
αs 50 49.39 [48.31, 50.55] 40 39.56 [38.69, 40.5] 50 49.12 [47.1, 51.18]
βs -40 -39.63 [-41.53, -37.81] -20 -20.15 [-21.87, -18.41] -25 -24.93 [-28.22, -21.44]
cs 1 1.02 [0.99, 1.07] 0.6 0.63 [0.58, 0.69] 1 1.06 [0.94, 1.19]
cc 0.8 0.79 [0.75, 0.84] 0.4 0.41 [0.36, 0.46] 0.4 0.44 [0.33, 0.55]
w 0.9 0.90 [0.89, 0.9] 0.9 0.90 [0.89, 0.9] 0.6 0.59 [0.56, 0.61]
πbase [VLF] 0.2 0.21 [0.16, 0.27] 0.2 0.21 [0.16, 0.27] 0.2 0.19 [0.13, 0.26]
πbase [LF] 0.2 0.20 [0.15, 0.25] 0.2 0.20 [0.15, 0.26] 0.2 0.20 [0.14, 0.26]
πbase [HF] 0.6 0.59 [0.52, 0.66] 0.6 0.58 [0.51, 0.65] 0.6 0.61 [0.52, 0.69]
πpert [VLF] 0.4 0.44 [0.36, 0.53] 0.4 0.44 [0.36, 0.52] 0.4 0.46 [0.37, 0.56]
πpert [LF] 0.4 0.38 [0.31, 0.47] 0.4 0.39 [0.32, 0.47] 0.4 0.40 [0.31, 0.49]
πpert [HF] 0.2 0.17 [0.12, 0.22] 0.2 0.16 [0.12, 0.22] 0.2 0.14 [0.07, 0.22]
Table 3. Quantitative Performance Metrics for the Generative Model versus Windowed Methods. This table presents the root mean squared error (RMSE) and mean absolute error (MAE) as measures of the average magnitude of the estimation error; Bias (mean error) identify any systematic tendency for over- or underestimation; and the coefficient of determination ( R 2 ) to assess the proportion of variance in the true signal captured by the estimate.
Table 3. Quantitative Performance Metrics for the Generative Model versus Windowed Methods. This table presents the root mean squared error (RMSE) and mean absolute error (MAE) as measures of the average magnitude of the estimation error; Bias (mean error) identify any systematic tendency for over- or underestimation; and the coefficient of determination ( R 2 ) to assess the proportion of variance in the true signal captured by the estimate.
Metric Windowed Methods Generative Model
(A) (B) (C) (A) (B) (C)
RR(ti) Bias 0.5 0.41 0.99 0.45 [-0.26, 1.08] 0.33 [-0.16, 0.83] 0.92 [-0.46, 2.26]
MAE 5.15 3.91 5.36 1.00 [0.46, 1.62] 0.86 [0.42, 1.37] 2.02 [0.93, 3.22]
MAPE 0.78 0.74 0.81 0.15 [0.07, 0.24] 0.17 [0.08, 0.27] 0.31 [0.14, 0.49]
R2 1 1 1 1.00 [1.00, 1.00] 1.00 [1.00, 1.00] 1.00 [1.00, 1.00]
RMSE 6.28 4.7 6.64 1.27 [0.57, 2.01] 1.15 [0.55, 1.89] 2.59 [1.20, 4.08]
SDNN(ti) Bias 7.81 4.28 6.54 -0.10 [-0.74, 0.56] -0.16 [-0.65, 0.32] -0.19 [-1.41, 0.99]
MAE 9.31 6.13 8.43 0.53 [0.13, 0.99] 0.42 [0.11, 0.78] 0.93 [0.23, 1.78]
MAPE 34.78 20.99 22.03 1.41 [0.42, 2.59] 1.34 [0.37, 2.46] 2.15 [0.58, 4.03]
R2 -0.6 -1.49 -2.19 1.00 [0.99, 1.00] 0.99 [0.98, 1.00] 0.98 [0.94, 1.00]
RMSE 16.4 9.64 14.46 0.61 [0.15, 1.12] 0.50 [0.15, 0.90] 1.08 [0.28, 2.01]
HF(ti) Bias -0.31 -0.24 -0.14 -0.02 [-0.08, 0.05] -0.02 [-0.08, 0.04] -0.01 [-0.08, 0.06]
MAE 0.32 0.26 0.17 0.03 [0.00, 0.07] 0.03 [0.00, 0.07] 0.03 [0.01, 0.07]
MAPE 63.76 58.39 36.52 6.01 [ 0.58, 16.45] 7.42 [ 0.68, 19.12] 8.91 [ 1.61, 19.76]
R2 -7.24 -3.88 -1.42 0.95 [0.62, 1.00] 0.95 [0.70, 1.00] 0.92 [0.68, 1.00]
RMSE 0.35 0.3 0.21 0.03 [0.00, 0.07] 0.03 [0.00, 0.07] 0.04 [0.01, 0.08]
LF(ti) Bias 0.32 0.23 0.18 0.00 [-0.06, 0.06] 0.00 [-0.06, 0.06] 0.00 [-0.07, 0.06]
MAE 0.34 0.27 0.21 0.02 [0.00, 0.06] 0.02 [0.00, 0.06] 0.02 [0.00, 0.06]
MAPE 148.65 113.32 90.41 7.75 [ 0.52, 22.65] 7.47 [ 0.58, 21.60] 8.75 [ 0.99, 23.15]
R2 -39.07 -23.05 -14.81 0.87 [0.09, 1.00] 0.89 [0.16, 1.00] 0.84 [0.05, 1.00]
RMSE 0.38 0.33 0.27 0.02 [0.00, 0.06] 0.02 [0.00, 0.06] 0.03 [0.00, 0.07]
VLF(ti) Bias -0.01 0.01 -0.04 0.02 [-0.04, 0.08] 0.02 [-0.04, 0.09] 0.01 [-0.05, 0.08]
MAE 0.13 0.16 0.13 0.02 [0.00, 0.07] 0.03 [0.00, 0.08] 0.03 [0.00, 0.08]
MAPE 52.83 55.59 46.27 9.14 [ 0.56, 28.39] 9.27 [ 0.56, 28.22] 10.87 [ 1.20, 25.57]
R2 -5.46 -7.2 -4.24 0.80 [-0.55, 1.00] 0.82 [-0.45, 1.00] 0.72 [-0.43, 1.00]
RMSE 0.15 0.19 0.15 0.03 [0.00, 0.08] 0.03 [0.00, 0.08] 0.04 [0.00, 0.08]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings