Lightweight ML-Based Automatic Sleep Staging Framework with Constrained CNN and Mamba for Small-Sample EEG Datasets
2026-07-06 • Machine Learning
Machine Learning
AI summaryⓘ
The authors developed GamSleepNet, a lightweight system that can automatically identify sleep stages using data from just one EEG channel. They designed new tools to better extract and classify brain signals, especially improving detection of tricky sleep stages like N1 and REM. Their method uses fewer parameters to avoid overfitting and performs well even with limited training data. Tests showed their model is accurate and efficient compared to previous approaches.
sleep stagingEEGGabor kernelscontrastive losstemporal classificationoverfittingSleepEDF datasetsingle-channel EEG
Authors
Zihao Wei, Yulin Gong, Yudan Lv
Abstract
Automatic sleep staging is a key technology for precise diagnosis and treatment of sleep disorders as well as long-term home sleep monitoring. Portable electroencephalogram (EEG) devices have become the focus of research due to their convenience in data collection. However, current methods still face three major challenges: large parameter sizes that easily lead to overfitting on small datasets, low accuracy in classifying difficult stages such as N1 and REM, unclear optimal training dataset size, and difficulty in deployment. This paper proposes GamSleepNet, a lightweight and low-latency automatic sleep staging framework for single-channel EEG. The framework features the FEB module, which combines improved Gabor kernels with learnable filters for feature extraction, uses the Mamba architecture to build a temporal classification network, introduces a novel contrastive loss and a two-stage training strategy, and experimentally validates the optimal dataset size for single-channel EEG sleep staging models. On the Sleepedf dataset, this model achieves an overall accuracy of 87.86 percent with only 30.86 thousand parameters, with all metrics reaching SOTA levels and significantly improving the identification accuracy of challenging sleep stages.