Upload a plain-text file with one RR interval per line (seconds 0.1–3.0, or milliseconds), or explore the model with a built-in simulated recording: a 5-2-5 exercise test, or two stressors in one recording. Rest, stressor and recovery phases are detected automatically.
Key Estimates
Full Parameter Report — SDE-IPFM Phase-Domain Model (M3)
Parameter
Group
Estimate
SE
95% CI
Interpretation
Status
Drag the bar under a chart to resize it, use the arrows icon to switch width, and the eye icon to hide it (restore in Settings → Charts).
Not connectedConnect a Polar H10 to receive RR intervals and reconstruct the autonomic drives as they arrive.
RR intervalReceived beats, the series the model uses, and its filtered estimate with the 95% band
Latent autonomic drivesVagal-like (x_p) and sympathetic-like (x_s) drive, updated at every beat, with 95% bands
SPARK
Welcome
Reconstruct the vagal-like and sympathetic-like drives of the heart from RR intervals alone. Everything runs in your browser: your data are never uploaded.
Analyse a recording
Drop a .txt or .csv of RR intervals (ms, s or min, auto-detected) or load an example. Optionally clean artifacts first with the running-median / MAD gate used in the data preparation of the R pipeline. Get ν₀, the two time constants, the noise, standard errors and 95% bands.
See the drives
Vagal-like (x_p) and sympathetic-like (x_s) trajectories, the phase map and the state-space landscape. Rest, stress and recovery are detected from heart rate, or you draw them.
Go live with a Polar H10
Switch to Live, connect the strap over Bluetooth (Chrome or Edge) and watch the drives update at every beat. Send the session to the analysis when you finish.
Check, export, reproduce
Diagnostics and HRV statistics (observed vs filtered), a parameter playground, PNG, CSV, JSON and HTML exports, and an R script that reproduces the fit.
Shortcuts: R run · S settings · E export · T theme · ? this message
For the curious: the model and the engine
The model (M3). Two latent Ornstein–Uhlenbeck drives, x_p (fast, a time constant of seconds, vagal-like) and x_s (slow, minutes, sympathetic-like), set the instantaneous rate ν(t) = ν₀ − x_p + x_s of an integrate-and-fire pacemaker: a beat occurs when the integrated phase reaches 1 and the phase then resets. Noise at the threshold gives the RR jitter.
Estimation. An exact Kalman filter on the phase-domain model, with ν₀ and the global scale profiled out (concentrated GLS likelihood). Three parameters (κ_S, κ_P, Λ_R) are fitted by maximum a posteriori, with informative log-normal priors on τ_P, τ_S and the jitter and a prior on the separation of the two time scales. Standard errors come from the numerical Hessian (delta method).
The spectral anchor. The vagal-to-sympathetic variance ratio V_P/V_S cannot be identified from RR alone. It is fixed from a Morlet wavelet spectrum of heart rate, split logistically at 0.1 Hz with a vagal floor (default 0.25). It decides how a sustained change is shared between the two drives, so read that split as conditional on the anchor.
The engine. A JavaScript port of the R engine (model_engine.R): the filter agrees with it to about 1e-9 in states and likelihood, and the wavelet-based spectral anchor to about 1e-9. The fit is run from three starting points (the default, a noise-free and a noisy one) and the lowest objective is kept, as in the R engine; the Live view uses the default start only. Heavy work runs in a Web Worker, and ectopic or noisy beats are down-weighted by an artifact multiplier. The states are model-based latent drives, not recordings of nerve activity; in Live they are causal filtered estimates, so they lag sudden changes.