HRnV-Calc: A Software for Heart Rate n-Variability and Heart Rate Variability Analysis

Chengyu Liu, Chenglin Niu, Dagang Guo, Marcus Eng Hock Ong, Zhixiong Koh, Guerry Alexiane Laure Marie-Alix, Andrew Fu Wah Ho, Zhiping Lin, Chengyu Liu 0001, Gari D. Clifford, Nan LiuJ. Open Source Softw 2023 · DOI · DBLP

Abstract

Heart Rate Variability (HRV) is a critical non-invasive indicator of autonomic nervous system health, yet traditional metrics often fail to capture complex heart rate dynamics. Heart Rate n-Variability (HRnV) has emerged as a superior predictive framework for clinical triage, but its adoption is hindered by a lack of standardized software. We present HRnV-Calc, an open-source software package that provides a user-friendly graphical interface for both traditional HRV and advanced HRnV analysis. Built upon the validated PhysioNet Cardiovascular Signal Toolbox (PCST), HRnV-Calc enables researchers and clinicians to process ECG and RRI data, tune complex parameters, and export results for clinical review without requiring extensive programming knowledge.

Introduction

Heart Rate Variability (HRV)—the variation in time intervals between consecutive heartbeats—is widely used to assess the autonomic nervous system in conditions such as diabetes, sepsis, and sleep apnea. Despite its utility, traditional HRV metrics often struggle with long-term dependencies and non-linear dynamics. To address these limitations, Heart Rate n-Variability (HRnV) was proposed, utilizing "summation windows" to analyze patterns across multiple beats. While HRnV has shown improved accuracy in predicting mortality and triaging emergency patients, its implementation has been restricted by the absence of standardized, accessible tools. HRnV-Calc addresses this gap by providing a streamlined, GUI-based platform for HRnV and HRV analysis.

Methods

HRnV-Calc is developed on top of the PhysioNet Cardiovascular Signal Toolbox (PCST), transitioning its command-line functionality into a Graphical User Interface (GUI) while integrating the HRnV mathematical framework.

HRnV Framework

The core of the software is the implementation of the HRnV method, which involves:

  1. Interval Transformation: Original R-to-R intervals (RRI) are transformed using sliding and stridden summation windows to create new sequences ($RR_nI$ and $RR_{n,m}I$).
  2. Parameter Tuning: Users can define $n$ and $m$ parameters to dictate the scale of heart rate complexity.
  3. Metric Calculation: These sequences are processed through standard linear and non-linear HRV algorithms, such as Sample Entropy and Power Spectral Analysis.

Software Workflow

The software follows a structured four-step workflow to ensure data quality and ease of use:

Workflow of the HRnV-Calc software.
  • Data Loader: Supports ECG and RRI inputs in common formats like CSV or text.
  • QDE Viewer: Provides an interactive interface for QRS detection and manual editing, essential for handling noisy clinical data.
  • Settings Viewer: Allows for the configuration of specific HRnV and HRV parameters.
  • Results Display: Automatically exports the final analysis to Excel for clinical review and statistical processing.

Results and Features

The primary contribution of this work is the release of the HRnV-Calc software, which offers several key features for clinical research:

  • Interactive QRS Editing: Enables manual correction of heartbeat detection, ensuring high-quality data input.
  • Batch Processing: Facilitates the simultaneous analysis of multiple patient files, supporting large-scale clinical trials.
  • Automated Reporting: Streamlines the transition from raw data to clinical insights by saving results directly to standardized formats.

Previous applications of the HRnV method, now automated by this tool, have demonstrated significant improvements in patient triage accuracy in emergency settings compared to traditional vital signs.

Discussion and Conclusion

HRnV-Calc addresses the critical need for standardization in HRV research. By basing the software on the PCST, the authors ensure that underlying calculations are reproducible and consistent across different studies. Furthermore, the transition to a GUI lowers the barrier to entry for clinicians and medical researchers who may lack programming expertise.

While HRnV-Calc simplifies the calculation of these metrics, the physiological interpretation of specific $n$ and $m$ parameters remains an active area of research. Future work will focus on broader clinical collaborations to map these parameters to biological health states and potentially integrating real-time data streaming from wearable sensors. In conclusion, HRnV-Calc provides a robust, accessible platform for advancing the clinical utility of complex cardiac signal analysis.

Summary updated

BibTeX
@article{liu2023hrnv,
  author = {Chengyu Liu and Chenglin Niu and Dagang Guo and Marcus Eng Hock Ong and Zhixiong Koh and Guerry Alexiane Laure Marie-Alix and Andrew Fu Wah Ho and Zhiping Lin and Chengyu Liu and Gari D. Clifford and Nan Liu and Zhi Xiong Koh},
  title = {{HRnV-Calc: A Software for Heart Rate n-Variability and Heart Rate Variability Analysis}},
  journal = {J. Open Source Softw},
  year = {2023},
  doi = {10.21105/joss.05391},
}

Loading related content...

Figure