1. Analytical object and scope of use
1.1 From beat times to an interpretable series
HRV analysis algorithms belong to WSIC 4.4.1, sleep signal processing algorithms. Their essential input is the sequence of intervals between individual cardiac beats, not merely an average heart rate in beats per minute. ECG R peaks yield RR intervals. After excluding ectopic beats, missed and extra detections, and other beats outside the specified analysis definition, intervals between normal sinus beats form the NN series. A PPG peak or foot yields a pulse interval; variation in this interval should be identified as pulse rate variability (PRV). Pulse transit time and peripheral perfusion mean that PRV and ECG-derived HRV are not necessarily interchangeable.[1][2][4]
The algorithm must declare its purpose first: describing beat interval fluctuations in usable nocturnal segments, following a person's longitudinal trend, supplying features for sleep research, or predicting a clinical outcome. Time-domain, frequency-domain, and nonlinear outputs depend on different acquisition, epoch, and preprocessing choices. Their numbers alone do not diagnose autonomic disease or a sleep disorder, nor does a high or low HRV value directly establish an individual's health status.[1][2][6]
1.2 Boundaries with adjacent entries
| Entry or intended use | What this guide addresses | What requires separate evidence |
|---|---|---|
| HRV monitoring device | Auditable analysis of raw ECG, PPG, or beat-time output from the device | Wear conditions, sensor accuracy, and firmware measurement performance |
| Sleep staging algorithm | Defined HRV features supplied to a model with documented quality and timing | Epoch-by-epoch performance against PSG, including less prevalent stages |
| Arrhythmia or sleep apnea detection | Identification of segments that may invalidate routine HRV interpretation | Sensitivity, specificity, and clinical validity of disease detection |
| Recovery or stress score | Descriptive features and changes obtained with one stable pipeline | Score thresholds, intervention advice, and cross-device comparability |
Sleep stage, respiration, arousal, posture, and circadian time can all change cardiac regulation within one night. Studies show stage- and phase-dependent HRV, but association with a stage does not mean that a particular HRV value identifies a definite PSG stage. If HRV is used for staging, that is a separately trained and evaluated prediction model, not a default output of the analysis itself.[5][7][8]
2. Inputs, time axis, and quality control
2.1 Retain the source and raw evidence
The minimum input record should identify signal type, sample rate, device and firmware, ECG lead or PPG site, clock and time zone, raw waveform or auditable beat times, definition of the sleep interval, and movement, poor contact, and missing-data flags. Specify the detector and parameters separately for ECG R peaks and PPG pulse fiducials. Preserve beat timestamps and beat-level confidence. Five-minute average heart rate values alone cannot reconstruct beat-to-beat HRV.[1][2][4]
PPG may perform better during still, recumbent sleep, but agreement in average heart rate does not establish the accuracy of RMSSD or SDNN. A free-living study of 25 healthy volunteers over about ten days found PPG-to-ECG absolute HRV errors of roughly 6–15 ms; results also depended on usable coverage, posture, and epoch length. These findings apply to the devices and sample studied and do not guarantee the error of every wrist device.[4]
2.2 Separate error detection from repair
| Quality-control step | Evidence to retain | Action when inadequate |
|---|---|---|
| Beat detection | Raw waveform, timestamps, candidate beats, and confidence | Review missed, duplicate, or displaced fiducials; do not substitute a smoothed curve for the waveform |
| Beat classification | Normal, ectopic, possible arrhythmia, and unreadable labels | Do not interpolate abnormal rhythm into an invented sinus rhythm |
| Correction and exclusion | Original and edited intervals, locations, method, and count of edits | Mark long gaps or heavily corrupted segments unavailable |
| Coverage | Usable minutes, usable-beat fraction, and longest continuous gap | Display the denominator and missingness, not just one nightly mean |
| Time alignment | Time zone, clock drift, synchronization, and sleep event times | Suspend cross-signal analysis or staging features if alignment fails |
Ectopy and missed or misplaced detections can materially alter HRV indices. An automatic threshold and beat-classification method was evaluated with simulated errors and real ectopy; it shows both the potential for correction and dependence on error type. Preserve indices before and after correction, perform a sensitivity analysis when many beats are edited, and never interpolate a long gap into apparently measurable variability. A 2024 methodology guideline calls for disclosure of editing steps, deleted or replaced beats, and long gaps, and recommends review of suspicious segments after automated detection.[2][3]
3. Metrics and parameter records
3.1 Time, frequency, and nonlinear measures
| Metric family | Typical output and computation | Conditions that must accompany interpretation |
|---|---|---|
| Time domain | Mean NN, SDNN, and RMSSD calculated from the defined NN segment | Units, epoch, usable beats, edit fraction, and nocturnal segment selection |
| Frequency domain | HF and LF power under a prespecified spectral method | Bands, resampling, detrending, window function, stationarity, and respiration |
| Nonlinear | Prespecified features such as Poincare SD1/SD2 and entropy | Series length, embedding parameters, and sensitivity to gaps and artefacts |
| Across nights | Median and distribution of usable segments and within-person change | Coverage per night, stage mix, and device and version consistency |
RMSSD is the root mean square of successive NN differences; SDNN is the standard deviation of the selected NN series. They describe different aspects of the data and cannot be interpreted without the epoch definition. Spectral work must state how an irregularly timed beat series was transformed for analysis. One spectrum from a markedly nonstationary whole night with large gaps cannot be treated as a stable physiological state. The 1996 Task Force distinguished short recordings of about five minutes from 24-hour recordings. Identically named short-epoch, whole-night, and full-day statistics are not automatically comparable.[1][2]
3.2 Avoid excessive physiological claims
HF power is affected by respiratory rate and depth. LF is not a simple direct measure of sympathetic activity, and LF/HF is not an accurate scale of sympathetic-to-parasympathetic balance. Even RMSSD needs context such as mean heart rate, age, posture, medication, sleep stage, and disease. If respiration is not recorded, state that it was not controlled. If a model converts indices into a stress or recovery label, validate that label against its claimed outcome separately; a numerical mapping is not a physiological law.[2][5][6]
| Decision | Reproducible record | Misreading prevented |
|---|---|---|
| Epoch | Start, end, duration, overlap, and whole-night or stage-based selection | Treating SDNN from unlike durations as the same quantity |
| Spectrum | Estimator, resampling rate, bands, detrending, and gap handling | Reading LF/HF as a direct ratio of neural activity |
| Trend | Baseline nights, valid nights, device, and algorithm version | Treating a one-night change as a lasting health change |
| Abnormality | Rules for arrhythmia, motion artefact, and low coverage | Mistaking an editing effect for an improvement |
4. Segment choice and models during sleep
4.1 Explain how the nightly value was selected
Sleep is not one uniform experimental condition. Controlled recordings found HRV differences with both sleep stage and circadian phase. A separate three-night study of 15 healthy young men found better repeatability of HF power in slow-wave sleep, whereas LF and LF/HF had poor repeatability across stages. That small sample cannot establish one best measurement stage for everyone; it does show why a product must disclose whether it uses the whole night, a stable stage, or a fixed-duration segment.[5][8]
Selecting a presumed deep-sleep segment using HRV and then reporting deep-sleep HRV from that same segment risks circular selection. For evaluation of staging or stage-specific measures, use independent PSG labels to select or assess segments when possible. Record label rules, neighboring arousals, and respiratory events. A whole-night trend can still be useful, but should display usable time and the distribution of selected segments each night. A changed nightly average may mainly reflect a different sampled portion of sleep.[7][8]
4.2 Evaluate HRV-driven sleep prediction independently
Heart-rate-related features have been used to predict sleep stages. One algorithm was evaluated against PSG in two datasets: 994 participants with 994 recordings and 52 participants with 112 recordings. Its pipeline also included heart rate, estimated respiration, and position information, so the result cannot be attributed to HRV alone. Report binary and four-class performance separately and provide class-specific results; overall accuracy can hide errors in deep or REM sleep.[7]
| Evaluation question | Minimum deliverable | Decision rule |
|---|---|---|
| Data split | Group by participant; add tests across device, site, or period | Adjacent nights from one person are not independent training and test subjects |
| Reference labels | PSG scoring version, 30-second epochs, and handling of disputed labels | Do not use a model-generated stage as ground truth |
| Per-class performance | Confusion matrix, sensitivity and precision per stage, and uncertainty | Overall accuracy alone is insufficient for minority classes |
| Input contribution | Ablation comparing HRV alone with added respiration or movement | Multimodal results do not establish HRV-only performance |
| Unreadable data | Original and excluded nights and low-coverage fraction | Do not report only the easy-to-measure nights |
TRIPOD+AI provides useful transparent reporting items for prediction models, including data sources, missingness, model details, evaluation sets, and subgroup findings. Its checklist is a reporting framework, not a certification of any HRV product.[9]
5. Acceptance, deployment, and review
5.1 Evaluate the whole pipeline in layers
At the beat level, compare with reviewed ECG and report missed or extra R peaks or pulse fiducials and timing error. At the cleaning level, report detection of abnormal beats and sensitivity of the final metrics to repair choices. At the metric level, compare aligned valid epochs with reference ECG using bias, absolute error, 95% limits of agreement, and an unavailable-data rate. A PPG implementation must also report PRV-to-ECG-HRV differences. At the night level, stratify by posture, sleep stage, motion, age, rhythm, and device or firmware. Claims covering sleep-disordered or clinical populations require appropriate additional samples.[2][3][4]
Prespecify the main metric, target population, usable-coverage threshold, and acceptable error. Do not repeatedly tune a threshold on the final test set. A claim about disease risk, sleep staging, or intervention effects needs a matching endpoint and independent evaluation; correlation or an attractive trend plot is insufficient for individual decisions. Where normal sinus beats cannot be identified, stop routine HRV interpretation for that segment, show why, and preserve the underlying record for appropriate review.[1][2][9]
5.2 Preserve traceability after release
Each output should trace back to signal source, time window, usable-beat count, deletion and correction fractions, algorithm and firmware versions, metric formula, and threshold version. After a device replacement or changes to peak detection or artefact rules, run the old and new methods on the same raw samples and flag potential method-related breaks in historical trends. A clear insufficient-data or unreliable-measurement state is more faithful than an unexplained precise score.[2][4]
Beat-time and sleep timelines are sensitive personal data. Collection, retention, access, and sharing should match the declared purpose. Public output should include metric definitions, usable coverage, and known limits. New health, disease, or treatment claims require review of the matching evidence. This guide supports algorithm and evidence review and gives no individual diagnosis or treatment advice.[2][9]
6. Sources and limits
6.1 Core sources
[1] ESC/NASPE Task Force, Heart rate variability: standards of measurement, physiological interpretation and clinical use, 1996: Definitions of RR/NN and time and frequency measures; historical standards do not replace validation of modern wearables.
[2] Quigley et al., Publication guidelines for human heart rate and heart rate variability studies in psychophysiology—Part 1, 2024: Acquisition, editing, reporting, and interpretation; a research reporting guideline is not product certification.
[3] Lipponen and Tarvainen, A robust algorithm for heart rate variability time series artefact correction, 2019: Missed and extra beats, ectopy, and correction sensitivity; the particular method's performance does not transfer to other software.
[4] Assessment of Physiological Signals from Photoplethysmography Sensors Compared to an Electrocardiogram Sensor, 2024: Free-living PPG versus ECG and coverage effects; extrapolation is limited by 25 healthy volunteers and the devices studied.
[5] Boudreau et al., Circadian Variation of Heart Rate Variability Across Sleep Stages, 2013: HRV varies with both sleep stage and circadian phase; no individual staging threshold is supplied.
[6] Billman, The LF/HF ratio does not accurately measure cardiac sympatho-vagal balance, 2013: Limit on interpretation of LF/HF; this does not rule out every use of spectral measures in research.
[7] Pini et al., An automated heart rate-based algorithm for sleep stage classification, 2022: PSG-based evaluation and multi-class reporting; its multisignal pipeline does not establish HRV-only diagnosis.
[8] Herzig et al., Reproducibility of Heart Rate Variability Is Parameter and Sleep Stage Dependent, 2018: Repeatability varies across metrics and stages; the sample was 15 healthy young men.
[9] Collins et al., TRIPOD+AI statement, 2024: Transparency for prediction-model reporting; it does not certify performance or clinical suitability.