Paperdoi:10.1093/sleep/zsae199

Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach

Venue listed2024Added Nov 9, 2026

  • TX
  • NM

Authors: Tian Xie, Ning Ma

Sleep 2025;48(2):zsae199 (online 2024-08-26)

TL;DR

44 healthy adults, PVT rested and sleep-deprived with ECG. 30-s windows (10-s step) of HRV aligned with PVT behaviour; vigilance classes from each person's own performance range. Lower HR and higher time-domain HRV accompanied temporary decrements.

  • Form factor: chest/torso ECG

Abstract

Study Objectives

Heart rate variability (HRV)-based machine learning models hold promise for real-world vigilance evaluation, yet their real-time applicability is limited by lengthy feature extraction times and reliance on subjective benchmarks. This study aimed to improve the objectivity and efficiency of HRV-based vigilance evaluation by associating HRV and behavior metrics through a sliding window approach.

Methods

Forty-four healthy adults underwent psychomotor vigilance tasks under both well-rested and sleep-deprived conditions, with simultaneous electrocardiogram recording. A sliding-window approach (30 seconds length, 10 seconds step) was used for HRV feature extraction and behavior assessment. Repeated-measures ANOVA was used to examine how HRV related to objective vigilance levels. Stability selection technique was applied for feature selection, and the vigilance ground truth—high (fastest 40%), intermediate (middle 20%), and low (slowest 40%)—was determined based on each participant’s range of performance. Four machine-learning classifiers—k-nearest neighbors, support vector machine (SVM), AdaBoost, and random forest—were trained and tested using cross-validation.

Results

Fluctuated vigilance performance indicated pronounced state instability, particularly after sleep deprivation. Temporary decrements in performance were associated with a decrease in heart rate and an increase in time-domain heart rate variability. SVM achieved the best performance, with a cross-validated accuracy of 89% for binary classification of high versus low vigilance epochs. Overall accuracy dropped to 72% for three-class classification in leave-one-participant-out cross-validation, but SVM maintained a precision of 84% in identifying low-vigilance epochs.

Conclusions

Sliding-window-based HRV metrics would effectively capture the fluctuations in vigilance during task execution, enabling more timely and accurate detection of performance decrement.

Verbatim from the publisher's DOI record (opens in a new tab) · Publisher licence: https://academic.oup.com/pages/standard-publication-reuse-rights

Results on ChatPPG leaderboards

All leaderboards

No results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.

Tasks & signals

Tasks

StressSleep staging

Signals

Keywords

FatigueVigilanceHRVPVTSleep Deprivation

How it works

How Method works: Setup → Method → TargetSetup: Signals (ECG); Form factor (chest/torso ECG). Method: Method. Target: Stress; Sleep staging.SetupSignals: ECGSignalsECGForm factor: chest/torso ECGForm factorchest/torso ECGMethodMethodTargetStressStressSleep stagingSleep staging

Cite this paper

Cite this paper with the fields recorded here. Check it against the publisher before submitting.

Xie, T., & Ma, N. (2024). Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach. Sleep 2025. https://doi.org/10.1093/sleep/zsae199
Xie, Tian and Ning Ma. 2024. "Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach." Sleep 2025. https://doi.org/10.1093/sleep/zsae199.
Xie, T. and Ma, N. (2024) 'Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach', Sleep 2025. doi: 10.1093/sleep/zsae199.
Xie, Tian, and Ning Ma "Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach." Sleep 2025, 2024. https://doi.org/10.1093/sleep/zsae199.
T. Xie and N. Ma, "Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach," Sleep 2025, 2024, doi: 10.1093/sleep/zsae199.
@article{xie2024tracking,
  title         = {{Tracking vigilance fluctuations in real-time: a sliding-window heart rate variability-based machine-learning approach}},
  author        = {Xie, Tian and Ma, Ning},
  year          = {2024},
  journal       = {Sleep 2025},
  doi           = {10.1093/sleep/zsae199}
}

Added to the ChatPPG research hub