cs.CLNov 5, 2026

LLM-Assisted Label Noise Correction for EEG-Based Sleep Stage Classification

Authors: Elmira Salari, Shruti Kshirsagar

Organizations: School of Computing, Wichita State University, Wichita, Kansas, USA

Abstract

Automatic sleep stage classification from electroencephalography (EEG) signals is a critical task in clinical sleep medicine. While deep learning models have shown promising results in this domain, their performance is fundamentally constrained by the quality of training labels, which human experts manually annotate and that are subject to inter-rater disagreement and systematic labeling errors. In this paper, we propose a novel LLM-assisted label-noise filtering pipeline that operates exclusively during training to identify and remove unreliable sleep-stage annotations before retraining the classifier. Specifically, TinySleepNet is first trained on the original dataset to extract per-epoch SoftMax confidence scores, then low-confidence epochs are submitted to LLaMA 3.1 along with their EEG spectral features and surrounding sequence context. The LLM evaluates each epoch against AASM sleep-scoring guidelines and assigns a verdict of RELIABLE or SUSPICIOUS. Suspicious epochs are removed from the training set, and TinySleepNet is retrained on the cleaned data. Evaluated on the Sleep-EDF Expanded dataset using 20-fold cross-validation, our method improves overall accuracy from 81.8% to 84.6% and Macro F1-score from 75.6% to 77.4%, with particularly notable gains in REM detection. Crucially, because the LLM operates only during training, the lightweight TinySleepNet architecture (1.3M parameters) is preserved at inference, making the proposed pipeline suitable for real-time, wearable sleep monitoring applications.

Figures & tables

Explore similar work

CardsList
  1. NanoSleep: A Parameter-Efficient Hybrid Temporal Convolutional Network for Single-Channel Sleep Stage Classification

    Aug 19, 2026S M Asif Hossain, Shruti KshirsagarSleep Stage ClassificationLightweight CNNs

  2. Lightweight ML-Based Automatic Sleep Staging Framework with Constrained CNN and Mamba for Small-Sample EEG Datasets

    Jul 6, 2026Zihao Wei, Yulin Gong, Yudan LvEfficient Neural Network InferenceElectroencephalography

  3. Sleep Stage Classification across Heterogeneous EEG/EOG Channels with Multi-Channel Differential Transformer

    Aug 21, 2025Benjamin Wei Hao Chin, Yuin Torng Yew, Jia Hong Puah +6Sleep Stage ClassificationTransformer