StableSleep: Source-Free Test-Time Adaptation for Sleep Staging with Lightweight Safety Rails

Hritik Arasu, Faisal R Jahangiri
9/3/2025
cs.LGcs.AIcs.NE

No confident code implementation found for this paper.

Abstract

Sleep staging models often degrade when deployed on patients with unseen physiology or recording conditions. We propose a streaming, source-free test-time adaptation (TTA) recipe that combines entropy minimization (Tent) with Batch-Norm statistic refresh and two safety rails: an entropy gate to pause adaptation on uncertain windows and an EMA-based reset to reel back drift. On Sleep-EDF Expanded, using single-lead EEG (Fpz-Cz, 100 Hz, 30s epochs; R&K to AASM mapping), we show consistent gains over a frozen baseline at seconds-level latency and minimal memory, reporting per-stage metrics and Cohen's k. The method is model-agnostic, requires no source data or patient calibration, and is practical for on-device or bedside use.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{arasu2025stablesleep,
  title  = {StableSleep: Source-Free Test-Time Adaptation for Sleep Staging with Lightweight Safety Rails},
  author = {Hritik Arasu and Faisal R Jahangiri},
  year   = {2025},
  eprint = {2509.02982},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.02982v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.02982.svg)](https://codeofpaper.com/paper/2509.02982)

Discussion