Efficient Time-Series Heart Rate Variability Metrics in C++

Time-Series Heart Rate Variability is an essential set of metrics in modern medicine and cardiology. Algorithms for HRV calculations exhibit quadratic time complexity in the worst cases, as metrics are calculated at many pre-defined time intervals with different widths and offsets, especially for patients with potentially week-long recordings. In this paper, we aim to develop an efficient software solution for electrocardiograms from wearable sensors, which requires careful preprocessing and filtering steps to eliminate noise and erroneous values, detect heartbeats, and classify arrhythmia. This paper describes the utilized method and presents an efficient C++ implementation. We evaluate efficiency by comparing the new solution with the existing Python implementation and conclude that the new implementation performs exceptionally better, with a median speedup of 81.4 for single-day patient recordings and an average speedup of 11.9 for multi-day patient recordings. The results are presented for an extensive set of preprocessed patient databases, discussing the benefits and drawbacks.

Authors

Institutions

Publication Details

Published
2025-06-02
DOI
https://doi.org/10.1109/mipro65660.2025.11132034
Primary Topic
Heart Rate Variability and Autonomic Control
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient Time-Series Heart Rate Variability Metrics in C++

М. С. Гусев, A. Shekerov, A. Angjelevska
Heart Rate Variability and Autonomic Control
article

Efficient Time-Series Heart Rate Variability Metrics in C++

М. С. Гусев, A. Shekerov, A. Angjelevska
article en

Abstract

Time-Series Heart Rate Variability is an essential set of metrics in modern medicine and cardiology. Algorithms for HRV calculations exhibit quadratic time complexity in the worst cases, as metrics are calculated at many pre-defined time intervals with different widths and offsets, especially for patients with potentially week-long recordings. In this paper, we aim to develop an efficient software solution for electrocardiograms from wearable sensors, which requires careful preprocessing and filtering steps to eliminate noise and erroneous values, detect heartbeats, and classify arrhythmia. This paper describes the utilized method and presents an efficient C++ implementation. We evaluate efficiency by comparing the new solution with the existing Python implementation and conclude that the new implementation performs exceptionally better, with a median speedup of 81.4 for single-day patient recordings and an average speedup of 11.9 for multi-day patient recordings. The results are presented for an extensive set of preprocessed patient databases, discussing the benefits and drawbacks.

Ss. Cyril and Methodius University in Skopje (MK)
Openalex Percentile: Top 64%
Heart Rate Variability and Autonomic Control
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.