Skip to main content
bioRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search
New Results

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

View ORCID ProfileJackie L. Gottshall, Natasha Recoder, Nicholas D. Schiff
doi: https://doi.org/10.1101/2020.10.06.328856
Jackie L. Gottshall
1Feil Family Brain and Mind Research Institute, Weill Cornell Medicine, New York, NY, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Jackie L. Gottshall
  • For correspondence: jag2037@med.cornell.edu
Natasha Recoder
1Feil Family Brain and Mind Research Institute, Weill Cornell Medicine, New York, NY, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Nicholas D. Schiff
1Feil Family Brain and Mind Research Institute, Weill Cornell Medicine, New York, NY, USA
2Department of Neurology, Weill Cornell Medicine, New York, NY, USA
3The Rockefeller University, New York, NY, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

ABSTRACT

Background and Objective Heart 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.

Methods CardioPy was developed in python and optimized for short-term (5-minute) single-lead EKG recordings. CardioPy’s 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.

Results HRV 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, CardioPy’s 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.

Conclusions CardioPy 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.

Competing Interest Statement

The authors have declared no competing interest.

Footnotes

  • https://github.com/CardioPy/CardioPy

Copyright 
The copyright holder for this preprint is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license.
Back to top
PreviousNext
Posted October 08, 2020.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about bioRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
CardioPy: An open-source heart rate variability toolkit for single-lead EKG
(Your Name) has forwarded a page to you from bioRxiv
(Your Name) thought you would like to see this page from the bioRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
CardioPy: An open-source heart rate variability toolkit for single-lead EKG
Jackie L. Gottshall, Natasha Recoder, Nicholas D. Schiff
bioRxiv 2020.10.06.328856; doi: https://doi.org/10.1101/2020.10.06.328856
Reddit logo Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
CardioPy: An open-source heart rate variability toolkit for single-lead EKG
Jackie L. Gottshall, Natasha Recoder, Nicholas D. Schiff
bioRxiv 2020.10.06.328856; doi: https://doi.org/10.1101/2020.10.06.328856

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Physiology
Subject Areas
All Articles
  • Animal Behavior and Cognition (4838)
  • Biochemistry (10749)
  • Bioengineering (8020)
  • Bioinformatics (27205)
  • Biophysics (13945)
  • Cancer Biology (11088)
  • Cell Biology (16002)
  • Clinical Trials (138)
  • Developmental Biology (8760)
  • Ecology (13249)
  • Epidemiology (2067)
  • Evolutionary Biology (17324)
  • Genetics (11667)
  • Genomics (15888)
  • Immunology (10998)
  • Microbiology (26006)
  • Molecular Biology (10612)
  • Neuroscience (56376)
  • Paleontology (417)
  • Pathology (1729)
  • Pharmacology and Toxicology (2999)
  • Physiology (4530)
  • Plant Biology (9593)
  • Scientific Communication and Education (1610)
  • Synthetic Biology (2674)
  • Systems Biology (6961)
  • Zoology (1508)