The UNICA Sleep HRV Analysis tool: an integrated open-source tool for heart rate variability analysis during sleep

Physiol Meas. 2025 Jan 15. doi: 10.1088/1361-6579/adaad5. Online ahead of print.

Abstract

Heart rate variability (HRV) analysis during sleep plays a key role for understanding autonomic nervous system function and assessing cardiovascular health. The UNICA Sleep HRV analysis (UNICA-HRV) tool is a novel, open-source MATLAB tool designed to fill the gap in current HRV analysis tools. In particular, the integration of ECG and HRV data with hypnogram information, which illustrates the progression through the different sleep stages, ease the computation of HRV metrics in polysomnographic recordings. This integration is crucial for accurate phase-specific analysis, as autonomic regulation changes markedly across different sleep stages. The tool supports single- and multiple-subject analyses and is tailored to enhance usability and accessibility for researchers and clinicians without requiring extensive technical expertise. It implements and support a variety of data inputs and configurations, allowing for flexible, detailed HRV analyses across sleep stages, employing classical and advanced metrics, such as time-domain, frequency-domain, non-linear, complexity, and Poincaré plots indexes. Validation of the tool against established tools like Kubios and PhysioZoo indicates its robustness and precision in generating reliable HRV metrics that are essential not only for sleep research, but also for clinical diagnostics. The introduction of UNICA-HRV represents a significant simplification for sleep studies, and its open-source nature (licensed under a Creative Commons Attribution 4.0 International License) allows to easily extend the functionality to other needs.

Keywords: Heart Rate Variability; Hypnogram; Polysomnography; Sleep Phases; Tool.