SleepVLM: A Rule-Grounded Vision-Language Model for Auditable Sleep Staging
Abstract
SleepVLM is a vision-language model for sleep staging from polysomnography images that achieves expert-level accuracy while providing interpretable, rule-based explanations aligned with AASM criteria.
Sleep staging is essential for sleep assessment and disorder diagnosis. In recent years, automatic sleep staging systems have achieved accuracy approaching that of human experts, but the black-box nature of their predictions hinders clinical trust and adoption. Existing interpretability methods offer partial insight into model behavior, but their outputs still require expert reinterpretation and do not provide a direct basis for auditing individual predictions. We present SleepVLM, a vision-language model that casts sleep staging as visual reasoning over rendered polysomnography waveform images. For each epoch, SleepVLM outputs a stage together with the applicable American Academy of Sleep Medicine rules and an auditable rationale. The model is trained using a two-stage framework: waveform-perceptual pre-training followed by rule-grounded supervised fine-tuning over a mixture of fine-grained and coarse annotations. Experiments on four test sets show that SleepVLM achieves classification performance comparable to state-of-the-art methods. An automated rule audit shows that the rationales affirm the stage-defining criteria, and two trained sleep technologists gave them mostly good or excellent ratings. Attention and occlusion analyses show that the model relies mainly on the channels and epochs that the rules indicate. By coupling comparable performance with transparent, rule-grounded rationales, SleepVLM may improve the auditability of automated sleep staging in clinical workflows. To facilitate further research, we construct and release MASS-EX, an expert-annotated dataset for rule-grounded sleep staging with rule annotations and, for a subset of epochs, rationales. The code, model weights, and dataset are publicly available at https://github.com/Deng-GuiFeng/SleepVLM.
Community
Hi everyone! Sharing SleepVLM, our work on rule-grounded vision-language modeling for auditable sleep staging from polysomnography (PSG) waveforms.
Automatic sleep staging models now approach human-expert accuracy, but black-box predictions and post-hoc heatmaps still require technologists to reinterpret raw traces without knowing which clinical scoring criteria were applied. Mirroring how sleep technologists score PSG traces on screen, SleepVLM reads three consecutive 30-s rendered six-channel epoch images (N−1, N, N+1) and outputs the sleep stage together with the applicable AASM Version 3 rule identifiers and a channel-level waveform rationale, so each prediction can be audited directly against the scoring manual and the recording.
Key highlights:
- Two-stage training: Annotation-free waveform-perceptual pre-training (WPT) trains the model to read per-second spectral band powers and signal amplitudes directly from rendered traces, followed by rule-grounded supervised fine-tuning (SFT) on a mixture of fine-grained rationales and coarse rule annotations.
- Staging performance & single-GPU deployment: Evaluated across four test sets (540 recordings) against 15 signal- and image-based baselines, SleepVLM achieves classification performance comparable to state-of-the-art methods (mean Acc
0.794, macro-F10.750, Cohen's κ0.717) while citing the scoring rules behind each stage. Post-trainingW4A16quantization and a smaller0.8Bbackbone (1.2–3.2 GB) largely preserve this performance on a single consumer-grade GPU. - Independent verification of rationale fidelity: Beyond staging accuracy, rationales are verified separately through an automated rule audit across all four test sets, blinded evaluations by two trained sleep technologists (72.4%–75.8% rated good or excellent across three evaluation dimensions), and attention and occlusion analyses over 578,678 test epochs.
- Open resources: We release the training and evaluation code, the
2×2model family (3B/0.8B×BF16/W4A16), and MASS-EX, an expert-annotated dataset of 62 subjects (59,193 epochs with AASM rule identifiers, including 5,006 epochs with waveform rationales).
Links:
- Code & Supplementary Material: https://github.com/Deng-GuiFeng/SleepVLM
- Models & Dataset Collection: https://huggingface.co/collections/Feng613/sleepvlm
- MASS-EX Dataset: https://huggingface.co/datasets/Feng613/MASS-EX
- Interactive ZeroGPU Demo: https://huggingface.co/spaces/hugging-apps/sleepvlm
Happy to answer any questions or hear your feedback!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- LLM-Assisted Label Noise Correction for EEG-Based Sleep Stage Classification (2026)
- MM-Net: A Multimodal Multi-Task Network for Sleep Staging and Sleep Apnea Assessment After Ischemic Stroke (2026)
- Towards Explainable Sleep Stage Classification using Single-Channel Electroencephalogram (2026)
- On Sleep-Wake Disorder Identification from Polysomnographic Representations (2026)
- Towards wearable-scale, transition-aware sleep staging for clinical populations (2026)
- SleepXA: Composing Pretrained Neural and Cardiac Foundation Models for Sleep Representation Learning (2026)
- SleepPairNet: Learning Multimodal Pediatric Sleep Representations with Random-Pair Cross-Attention (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend