Back to Search Start Over

RapidHRV: an open-source toolbox for extracting heart rate and heart rate variability.

Authors :
Kirk PA
Davidson Bryan A
Garfinkel SN
Robinson OJ
Source :
PeerJ [PeerJ] 2022 Mar 23; Vol. 10, pp. e13147. Date of Electronic Publication: 2022 Mar 23 (Print Publication: 2022).
Publication Year :
2022

Abstract

Heart rate and heart rate variability have enabled insight into a myriad of psychophysiological phenomena. There is now an influx of research attempting using these metrics within both laboratory settings (typically derived through electrocardiography or pulse oximetry) and ecologically-rich contexts ( via wearable photoplethysmography, i.e. , smartwatches). However, these signals can be prone to artifacts and a low signal to noise ratio, which traditionally are detected and removed through visual inspection. Here, we developed an open-source Python package, RapidHRV, dedicated to the preprocessing, analysis, and visualization of heart rate and heart rate variability. Each of these modules can be executed with one line of code and includes automated cleaning. In simulated data, RapidHRV demonstrated excellent recovery of heart rate across most levels of noise (>=10 dB) and moderate-to-excellent recovery of heart rate variability even at relatively low signal to noise ratios (>=20 dB) and sampling rates (>=20 Hz). Validation in real datasets shows good-to-excellent recovery of heart rate and heart rate variability in electrocardiography and finger photoplethysmography recordings. Validation in wrist photoplethysmography demonstrated RapidHRV estimations were sensitive to heart rate and its variability under low motion conditions, but estimates were less stable under higher movement settings.<br />Competing Interests: Oliver J. Robinson’s MRC senior fellowship is partially in collaboration with Cambridge Cognition (who plan to provide in-kind contribution) and he is running an investigator-initiated trial with medication donated by Lundbeck (escitalopram and placebo, no financial contribution). He also holds an MRC-Proximity to discovery award with Roche (who provide in-kind contributions and have sponsored travel for ACP) regarding work on heart rate variability and anxiety. He has also completed consultancy work on affective bias modification for Peak and online CBT for IESO digital health. Oliver J. Robinson sits on the committee of the British Association of Psychopharmacology.<br /> (© 2022 Kirk et al.)

Details

Language :
English
ISSN :
2167-8359
Volume :
10
Database :
MEDLINE
Journal :
PeerJ
Publication Type :
Academic Journal
Accession number :
35345583
Full Text :
https://doi.org/10.7717/peerj.13147