Skip to content
Open access

Automatic Sleep Stage Classification with Subject-Wise Validation: Comparison of Random Forest, XGBoost, and SVM on the Sleep-EDFx Dataset

Jul 2026 · RCMOS - Revista Científica Multidisciplinar O Saber · Vol 1 · 0 citations · 5 references

TL;DR

A reproducible pipeline for automatic classification of sleep stages using single-channel EEG (Fpz-Cz) from the public Sleep-EDFx dataset (PhysioNet), indicating that the performance ceiling is primarily determined by the feature set and the inherent physiological overlap between stages, rather than by the choice of classifier.

Abstract

This paper presents a reproducible pipeline for automatic classification of sleep stages (Wake W, N1, N2, N3, and REM) using single-channel EEG (Fpz-Cz) from the public Sleep-EDFx dataset (PhysioNet), comprising 100 subjects and 175 recordings from two distinct subsets: Sleep Cassette (SC, 78 healthy subjects, home recordings) and Sleep Telemetry (ST, 22 subjects with mild sleep onset difficulty, placebo nights only). A total of 17 features were extracted per 30-second epoch across two domains: time-domain statistics (mean, variance, standard deviation, skewness, kurtosis, and Hjorth parameters) and frequency-domain features via Welch spectral estimation (absolute and relative power in the Delta, Theta, Alpha, and Beta bands, plus the Delta/Alpha spectral ratio). Three classifiers of fundamentally different algorithmic natures were compared (Random Forest, XGBoost, and Support Vector Machine with RBF kernel) under Leave-One-Group-Out (LOGO) cross-validation, preventing any data leakage between individuals. Experiments were conducted in three scenarios: SC alone, ST alone, and the combined dataset. Random Forest achieved the best overall performance, with Cohen’s Kappa of 0.587 on SC and 0.583 on the combined dataset. The convergence of all three classifiers to a similar Kappa range (0.53 to 0.59) indicates that the performance ceiling is primarily determined by the feature set and the inherent physiological overlap between stages, rather than by the choice of classifier.  

Read PDF

Similar papers

Open access 2026

A Controlled Evaluation of Class Imbalance Handling Techniques in Automated EEG-Based Sleep Stage Classification

A controlled evaluation of four imbalance handling techniques against an imbalanced baseline provides evidence-supported, goal-specific recommendations for selecting imbalance handling strategies and reinforces the need for per-class evaluation in automated sleep staging.

Blessing C. Uzo, P. .. Bande, Micah Okpara et al. · 0 citations
Open access Aug 2026

Hierarchical Multimodal Sleep Staging with Optimized EEG, EOG, and PPG Features for Wearable Applications

A lightweight two-stage Deep Learning framework for five-class sleep staging based on optimized multimodal physiological features extracted from electroencephalogram (EEG), electrooculogram (EOG), and photoplethysmography (PPG) signals, suggesting its potential suitability for wearable and edge-based sleep-monitoring s...

R. de Fazio, Matteo Paiano, R. Velázquez et al. · 0 citations
Open access Sep 2026

Deep Learning-Based Sleep Stage Classification: An Eeg Signal Analysis Method

Sleep stage identification is an important task in clinical assessment and neuroscience research. Manual scoring of electroencephalogram (EEG) recordings is time-consuming, resource-intensive, and subject to inter-scorer variability. This study presents a deep learning-based framework for automated sleep stage classifi...

D. Merugu, K. Ashesh, Sowmya C. V. · 0 citations
Open access Sep 2026

Stage-specific EEG spectral signatures of primary insomnia: regional and sex-related differences across NREM and REM sleep.

Sleep architecture is characterized by dynamic transitions between non-rapid eye movement (NREM) and rapid eye movement (REM) stages, each defined by distinct oscillatory signatures. Although quantitative EEG has been widely used to study primary insomnia (PI), reported findings remain inconsistent, partly due to limit...

N. Premakumara, Chan-Yun Yang, B. Sudantha et al. · 0 citations
Open access Sep 2026

Multichannel Polysomnographic Sensor Fusion for Automatic Sleep Stage Classification

Automatic sleep stage classification can reduce the burden of manual polysomnographic scoring, but reliable models must account for heterogeneous physiological signals, temporal dependencies, and severe class imbalance. This study presents a dual-stream deep learning framework for five-class sleep staging from 30 s pol...

S. Mari, Lorenzo Di Vaira, G. Bucci et al. · 0 citations
Open access Sep 2026

Wearable Sleep-Stage Classification: A Systematic Analysis of Signal Modalities, Representations, and Multimodal Fusion

Accurate sleep staging is essential for characterizing sleep architecture, yet conventional polysomnography limits scalable and long-term sleep monitoring. Wearable sensors offer a practical alternative, but their performance depends on the physiological modalities used and how the signals are represented. This study i...

Unaza Tallal, Rupesh Agrawal, S. Kshirsagar · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.