A post-training quantization framework for EEG-based sleep stage classification
Objective. Sleep classification models play a crucial role in assessing sleep quality. Although the classification performance of these models has continuously improved in recent years, significant accuracy degradation is commonly observed when quantizing and deploying them on edge devices with limited memory and computational resources. Approach. To address this challenge, we propose a posttraining quantization framework for EEG-based sleep stage classification. Specifically, we first identify convolutional and linear layers within the model, then compute layerwise sensitivities based on each layer’s input. We dynamically adjust the threshold for each layer based on its sensitivity, using this threshold to detect abnormal weights causing excessive quantization error in that layer. To ensure quantization accuracy, we preserve these abnormal weights at their original precision while compressing the remaining weights to 4 bits. After quantizing each layer, we employ dynamic low-rank compensation to correct quantization errors and further enhance accuracy, addressing information loss during quantization. Main results. Experiments on the Sleep-EDF-20, Sleep-EDF-78 and SHHS datasets demonstrate that our method achieves near-lossless compression: the accuracy of the vast majority of sleep classification models drops by less than 1%, while reducing model size by nearly 8 times. Significance. This work provides the first general framework for post-training quantization of sleep classification models, offering a new approach for the practical deployment of these models on edge devices.
Authors
- Feng Wan (ORCID: https://orcid.org/0000-0002-9359-0737)
- Yuanguo Wang (ORCID: https://orcid.org/0000-0002-7196-8903)
- Rencheng Song (ORCID: https://orcid.org/0000-0001-7760-7562)
- Chang Li (ORCID: https://orcid.org/0000-0003-0195-1003)
- Xun Chen (ORCID: https://orcid.org/0000-0002-4922-8116)
- Yu Wang
Institutions
- University of Science and Technology of China (CN)
- Hefei University of Technology (CN)
- University of Macau (MO)
Publication Details
- Journal
- Journal of Neural Engineering
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1088/1741-2552/aec592
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00