arXiv:2611.08311cs.CLNov 2026

Manuscript Offprint

arXiv:2611.08311

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

Elmira Salari, Shruti Kshirsagar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Elmira Salari, Shruti Kshirsagar

School of Computing Wichita State University Wichita, Kansas, USA exsalari1@shockers.wichita.edu

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.

Index Terms—Sleep stage classification, EEG, Label noise, Large Language Models, TinySleepNet

I. INTRODUCTION

Sleep staging is a fundamental component of sleep analysis, enabling the diagnosis of sleep disorders and assessment of sleep quality [1], [2]. Traditionally, clinical experts perform sleep staging using polysomnography (PSG), including the electroencephalogram (EEG) and other physiological signals, along with sleep staging rules. Depending on which sleep-staging standard is used, the number of stages may vary. The American Academy of Sleep Medicine (AASM) sleep staging standard divides each 30-second sleep

epoch into 5 stages: W, N1, N2, N3, and REM [3]. However, manual sleep staging is a time-consuming, labor-intensive task and is subject to significant inter-rater variability, especially for transitional stages such as N1 and the boundary between N2 and N3 [4]. This variability introduces label noise into training datasets. According to [5], inter-rater agreement for sleep staging can be as low as 72-82% even among experienced clinicians.

Although Machine Learning (ML) and Deep Learning (DL) approaches have made significant progress in automated sleep staging [6]–[9], these models are all trained on potentially noisy human-annotated labels, and the impact of label noise on their performance has received limited attention.

The advent of Large Language Models (LLMs) has enabled the incorporation of clinical domain knowledge into data processing pipelines [10] because these models are trained on large-scale medical corpora. Recent studies further explore their integration with physiological data, including EEG, for applications such as sleep stage analysis and classification [11]. This suggests these models could serve as complementary tools for assessing the consistency between EEG-derived features and human-assigned sleep stage labels.

In this work, we propose a novel approach that uses an LLM as a training-time label noise filter. Our key insight is to use the LLM only during the data-cleaning phase, rather than replacing the lightweight sleep-staging classifier with a heavy LLM, thereby preserving inference-time computational efficiency.

Our main contributions are as follows:

  • We propose the first LLM-based training-time label-noise filter for EEG sleep staging, which operates without modifying the inference pipeline.
  • The LLM produces human-readable reasoning for each filtering decision, making the data cleaning process interpretable and clinically auditable.

References (24)