cs.LGAug 21, 2025

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

Authors: Benjamin Wei Hao Chin, Yuin Torng Yew, Jia Hong Puah, Haocheng Wu, Lanxin Liang, Chow Khuen Chan, Norita Mohd Zain, Siti Balqis Samdin, 

Organizations: School of Artificial Intelligence and Robotics, Xiamen University Malaysia. · Department of Biomedical Engineering, Universiti Malaya. · Department of Biomedical Engineering and Health Sciences, Universiti Teknologi Malaysia.

Abstract

Classification of sleep stages is essential for assessing sleep quality and diagnosing sleep disorders. However, manual inspection of EEG characteristics for each stage is time-consuming and prone to human error. Although machine learning and deep learning methods have been actively developed, they continue to face challenges arising from the non-stationarity and variability of electroencephalography (EEG) and electrooculography (EOG) signals across diverse clinical configurations, often resulting in poor generalization. In this work, we propose SleepDIFFormer, a multi-channel differential transformer framework for heterogeneous EEG-EOG representation learning. SleepDIFFormer is trained across multiple sleep staging datasets, each treated as a source domain, with the goal of generalizing to unseen target domains. Specifically, it employs a Multi-channel Differential Transformer Architecture (MDTA) designed to process raw EEG and EOG signals while incorporating cross-domain alignment. Our approach mitigates spatial and temporal attention noise and learns a domain-invariant EEG-EOG representation through feature distribution alignment across datasets, thereby enhancing generalization to new domains. Empirically, we evaluated SleepDIFFormer on five diverse sleep staging datasets under domain generalization settings and benchmarked it against existing approaches, achieving superior performance. Furthermore, comprehensive ablation analyses and interpretation of the differential attention weights demonstrated their relevance to learning discriminative sleep EEG representations. These findings support the development of more generalizable approaches to automated sleep-stage classification. Our source code and checkpoint are made publicly available at https://github.com/Ben1001409/SleepDIFFormer

Figures & tables

Explore similar work

CardsList
  1. STDA-Net: Spectrogram-Based Domain Adaptation for cross-dataset Sleep Stage Classification

    May 7, 2026Unaza Tallal, Shruti Kshirsagar, Ankita ShuklaElectroencephalographySleep Stage Classification

  2. SWINSleepNet: A Hierarchical Context-Aware Framework for Sleep Staging (v2)

    Aug 3, 2026Chongjian Wang, Junjie GaoSleep Stage ClassificationHybrid CNN-Transformer Architectures

  3. DualStabSleepNet: A Dual-Domain Diffusion Stabilization Network for Robust Sleep Staging

    Aug 17, 2026Chongjian Wang, Chen Liu, Junjie Gao +3Diffusion-Based DenoisingSleep Stage Classification