Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Physiol.

Sec. Computational Physiology and Medicine

Volume 16 - 2025 | doi: 10.3389/fphys.2025.1668129

An EEG-based Machine Learning framework for diagnosing Acute Sleep Deprivation

Provisionally accepted
  • 1The University of Western Ontario, Ontario, Canada
  • 2International Center for Applied Systems Science for Sustainable Development (ICASSSD), Cambridge, Canada
  • 3London Health Sciences Centre Children's Hospital Pediatric Critical Care Unit, London, Canada
  • 4Western University, Western Institute for Neurosciences, London, Canada
  • 5Children's Health Research Institute, London, Canada
  • 6Western University Schulich School of Medicine & Dentistry, London, Canada

The final, formatted version of the article will be published soon.

Study Objective: Acute sleep deprivation significantly impacts cognitive function, contributes to accidents, and increases the risk of chronic illnesses, underscoring the need for reliable and objective diagnosis. Our work aims to develop a machine learning-based approach to discriminate between EEG recordings from acutely sleep-deprived individuals and those that are well-rested, facilitating the objective detection of acute sleep deprivation and enabling timely intervention to mitigate its adverse effects. Methods: Sixty-one-channel eyes-open resting-state electroencephalography (EEG) data from a publicly available dataset of 71 participants were analyzed. Following preprocessing, EEG recordings were segmented into contiguous, non-overlapping 20-second epochs. For each epoch, a comprehensive set of features was extracted, including statistical descriptors, spectral measures, functional connectivity indices, and graph-theoretic metrics. Four machine learning classifiers—Light Gradient Boosting Machine (LightGBM), eXtreme Gradient Boosting (XGBoost), Random Forest (RF), and Support Vector Classifier (SVC)—were trained on these features using nested stratified cross-validation to ensure unbiased performance evaluation. In parallel, three deep learning models—a Convolutional Neural Network (CNN), Long Short-Term Memory network (LSTM), and Transformer—were trained directly on the raw multi-channel EEG time-series data. All models were evaluated under two conditions: (i) without subject-level separation, allowing the same participant to contribute to both training and test sets, and (ii) with subject-level separation, where models were tested exclusively on entirely unseen participants. Model performance was assessed using accuracy, F1-score, and area under the receiver operating characteristic curve (AUC). Results: Without subject-level separation, CNN achieved the highest accuracy (95.72%), followed closely by XGBoost (95.42%), LightGBM (94.83%), and RF (94.53%), with SVC at 85.25%. LSTM (66.75%) and Transformer (77.39%) performed substantially lower. Under subject-level separation, RF achieved the highest accuracy (68.23%), followed by XGBoost (66.36%), LightGBM (66.21%), CNN (65.35%), and SVC (65.08%), with LSTM (61.70%) and Transformer (63.35%) lowest. Conclusions: This study demonstrates the strong potential of EEG-based machine learning for acute sleep deprivation detection, while also underscoring the challenges of achieving robust subject-level generalization. Despite reduced accuracy under cross-subject evaluation, the findings support the feasibility of developing scalable, non-invasive tools for sleep deprivation detection using EEG and advanced ML techniques.

Keywords: Acute sleep deprivation, electroencephalogram (EEG), Ensemble models, Feature importance, machine learning

Received: 17 Jul 2025; Accepted: 10 Oct 2025.

Copyright: © 2025 Kumar, Narayan and Lalgudi Ganesan. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Daya Kumar, dkumar55@uwo.ca

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.