Heart rate variability (HRV), the variation of the period between consecutive heartbeats, is an established tool for assessing physiological indicators such as stress and fatigue. In non-clinical settings, HRV is often computed from signals acquired using wearable devices that are susceptible to strong artifacts. In EEG (electroencephalography) experiments, these devices must be synchronized with the EEG and typically provide intermittent interbeat interval information based on proprietary artifact-removal algorithms. This paper describes an automated algorithm that uses the output of an EEG sensor mounted on a subject’s chest to accurately detect interbeat intervals and to calculate time-varying metrics. The algorithm is designed for raw signals and is robust to artifacts, resulting in fine-grained capture of HRV that is synchronized with the EEG. An open-source MATLAB toolbox (EEG-Beats) is available to calculate interbeat intervals and many standard HRV time and frequency indicators. EEG-Beats is designed to run in a completely automated fashion on an entire study without manual intervention. The paper applies EEG-Beats to EKG signals measured with an EEG sensor in a large longitudinal study (17 subjects, 6 tasks, 854 datasets). The toolbox is available at https://github.com/VisLab/EEG-Beats.
bioRxiv Subject Collection: Neuroscience