Back

CardioPy: An open-source heart rate variabilitytoolkit for single-lead EKG

Gottshall, J. L.; Recoder, N.; Schiff, N. D.

2020-10-08 physiology
10.1101/2020.10.06.328856 bioRxiv
Show abstract

Background and ObjectiveHeart rate variability (HRV) is a promising clinical marker of health and disease. Although HRV methodology is relatively straightforward, accurate detection of R-peaks remains a significant methodological challenge; this is especially true for single-lead EKG signals, which are routinely collected alongside EEG monitoring and for which few software options exist. Most developed algorithms with favorable R-peak detection profiles require significant mathematical and computational proficiency for implementation, providing a significant barrier for clinical research. Our objective was to address these challenges by developing a simple, free, and open-source software package for HRV analysis of single-lead EKG signals. MethodsCardioPy was developed in python and optimized for short-term (5-minute) single-lead EKG recordings. CardioPys R-peak detection trades full automation and algorithmic complexity for an adaptive thresholding mechanism, manual artifact removal and parameter adjustment. Standard time and frequency domain analyses are included, such that CardioPy may be used as a stand-alone HRV analysis package. An example use-case of HRV across wakefulness and sleep is presented and results validated against the widely used Kubios HRV software. ResultsHRV analyses were conducted in 66 EKG segments collected from five healthy individuals. Parameter optimization was conducted or each segment, requiring ~1-3 minutes of manual inspection time. With optimization, CardioPys R-peak detection algorithm achieved a mean sensitivity of 100.0% (SD 0.05%) and positive predictive value of 99.8% (SD 0.20%). HRV results closely matched those produced by Kubios HRV, both by eye and by quantitative comparison; CardioPy power spectra explained an average of 99.7% (SD 0.50%) of the variance present in Kubios spectra. HRV analyses showed significant group differences between brain states; SDNN, low frequency power, and low frequency-to-high frequency ratio were reduced in slow wave sleep compared to wakefulness. ConclusionsCardioPy provides an accessible and transparent tool for HRV analyses. Manual parameter optimization and artifact removal allow granular control over data quality and a highly reproducible analytic pipeline, despite additional time requirements. Future versions are slated to include automatic parameter optimization and a graphical user interface, further reducing analysis time and improving accessibility.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

1
PLOS ONE
5266 papers in training set
Top 7%
22.3%
2
Physiological Measurement
14 papers in training set
Top 0.1%
18.8%
3
Frontiers in Physiology
106 papers in training set
Top 0.1%
6.8%
4
Biomedical Signal Processing and Control
22 papers in training set
Top 0.1%
4.9%
50% of probability mass above
5
Scientific Reports
3612 papers in training set
Top 22%
4.5%
6
Physiological Reports
40 papers in training set
Top 0.3%
3.3%
7
Journal of Sleep Research
36 papers in training set
Top 0.3%
2.8%
8
IEEE Transactions on Biomedical Engineering
40 papers in training set
Top 0.3%
2.8%
9
Journal of Neuroscience Methods
122 papers in training set
Top 0.7%
2.5%
10
Psychophysiology
77 papers in training set
Top 0.5%
2.5%
11
PLOS Computational Biology
1863 papers in training set
Top 12%
2.2%
12
Computer Methods and Programs in Biomedicine
28 papers in training set
Top 0.5%
1.7%
13
Bioinformatics
1204 papers in training set
Top 7%
1.5%
14
IEEE Access
35 papers in training set
Top 0.9%
1.1%
15
American Journal of Physiology-Heart and Circulatory Physiology
36 papers in training set
Top 0.9%
1.1%
16
Frontiers in Neurology
102 papers in training set
Top 2%
1.1%
17
Sensors
43 papers in training set
Top 1%
1.1%
18
PLOS Digital Health
106 papers in training set
Top 4%
1.0%
19
Sleep
58 papers in training set
Top 0.7%
0.9%
20
The Journal of Physiology
150 papers in training set
Top 3%
0.6%
21
eLife
5828 papers in training set
Top 68%
0.6%