Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 251000072-771.doi: 10.11896/jsjkx.251000072

• Big Data & Data Science • Previous Articles     Next Articles

Single-channel Sleep Staging via Multi-scale Spatio-Temporal Modeling Within Dynamic Weight Transformer Architecture

WANG Chanfei, KONG Huiyuan, DI Degang, XU Yamei   

  1. Country College of Computer and Communication,Lanzhou University of Technology,Lanzhou 730050,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:WANG Chanfei,born in 1983,Ph.D,associate professor,master’s supervisor.Her main research interests include the efficient signal detection mechanism in communication systems and sleep stage classification.
    KONG Huiyuan,born in 2001,postgra-duate.Her main research interests include artificial intelligence and sleep staging.
  • Supported by:
    This work was supported by the National Natural Science Foundation of China(62061024).

Abstract: Sleep staging is an important basis for evaluating sleep quality and diagnosing sleep disorders.Although analysis methods based on multi-channel electroencephalogram(EEG) signals are accurate,their complex acquisition process limits clinical application.Therefore,this paper proposes a single-channel EEG sleep staging model based on the Transformer architecture.The core innovation lies in two aspects.Firstly,a multi-scale spatiotemporal feature extraction module is designed,which effectively captures the waveform features of EEG signals through the attention mechanism and position encoding.Secondly,a learnable dynamic weight attention mechanism is introduced in the Transformer encoder,achieving adaptive information extraction in different feature spaces through parameterized attention weight allocation.The proposed spatiotemporal dependency modeling module effectively captures the cross-time-scale long-range dependencies in sleep EEG signals,achieving precise representation of the dynamic changes in sleep cycles.To verify the effectiveness of the proposed algorithm,experiments are conducted on three public datasets:Sleep-EDF20,Sleep-EDF78,and SHHS.Experimental results show that the accuracy of the algorithm on these three datasets reaches 84.5%,80.8%,and 83.6% respectively.Ablation studies further confirm that the proposed module has more advantages than traditional convolutional neural networks,with an increase of 0.55% in the recognition rate of the N1 stage.This research not only provides a new idea for single-channel EEG analysis,but also makes the design more conducive to the deployment and application of mobile health devices.

Key words: Transformer, Single-channel EEG, Sleep staging, Weight attention

CLC Number: 

  • TP18
[1] BOOSTANI R,KARIMZADEH F,NAMI M.A comparative re-view on sleep stage classification methods in patients and healthyindividuals[J].Computer Methods and Programs in Biomedicine,2017,140:77-91.
[2] LUYSTER F,STROLLO J R,ZEE P,et al.Sleep:a health im-perative[J].Sleep,2012,35(6):727-734.
[3] JIN Z,JIA K B.Review of Automatic Sleep Staging AlgorithmsBased on Physiological Electrical Signals [J].Journal of Beijing University of Technology,2025,51(4):435-451.
[4] KUO C E,LIANG S F.Automatic stage scoring of single-channel sleep EEG based on multiscale permutation entropy[C]//2011 IEEE Biomedical Circuits and Systems Conference(BioCAS).IEEE,2011:448-451.
[5] WILLEMEN T,VAN DEUN D,VERHAERT V,et al.Anevaluation of cardiorespiratory and movement features with respect to sleep-stage classification[J].IEEE Journal of Biome-dical and Health Informatics,2013,18(2):661-669.
[6] ANDERER P,ROSS M,CERNY A,et al.Automated scoring of sleep and associated events[M]//Advances in the Diagnosis and Treatment of Sleep Apnea:Filling the Gap Between Physicians and Engineers.Cham:Springer International Publishing,2022:107-130.
[7] LU H T,LUO M K.Based on the deep study of computer vision research progress [J].Journal of Data Acquisition & Processing,2022(2):037.
[8] GU J,WANG Z,KUEN J,et al.Recent advances in convolutionalneural networks[J].Pattern Recognition,2018,77:354-377.
[9] COMPUTATION N.Long short-term memory[J].NeuralComput,2016,9:1735-1780.
[10] HASSAN A R,BHUIYAN M I H.Computer-aided sleep staging using complete ensemble empirical mode decomposition with adaptive noise and bootstrap aggregating[J].Biomedical Signal Processing and Control,2016,24:1-10.
[11] PHAN H,CHÉN O Y,TRAN M C,et al.XSleepNet:Multi-view sequential model for automatic sleep staging[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2021,44(9):5903-5915.
[12] SUNDAR G N,NARMADHA D,JONE A A A,et al.Automated sleep stage classification insleep apnoea using convolutional neural networks[J].Informatics in Medicine Unlocked,2021,26:100724.
[13] BISHOP C M,BISHOP H.Deep learning:Foundations and concepts[M].Springer Nature,2023.
[14] SUPRATAK A,DONG H,WU C,et al.DeepSleepNet:A model for automatic sleep stage scoring based on raw single-channel EEG[J].IEEE Transactions on Neural Systems and Rehabilitation Engineering,2017,25(11):1998-2008.
[15] SUPRATAK A,GUO Y.TinySleepNet:An efficient deep learning model for sleep stage scoring based on raw single-channel EEG[C]//2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society(EMBC).IEEE,2020:641-644.
[16] SAJAD M,FATEMEH A,RAJENDRA U A.SleepEEGNet:Automated sleep stage scoring with sequence to sequence deep learning approach [J].PloS One,2019,14(5):e0216456.
[17] LIU Z,QIN M,LU Y,et al.DenSleepNet:DenseNet based mo-del for sleep staging with two-frequency feature fusion and coordinate attention[J].Biomedical Engineering Letters,2023,13(4):751-761.
[18] GUILLOT A,THOREY V.RobustSleepNet:Transfer learning for automated sleep staging at scale[J].IEEE Transactions on Neural Systems and Rehabilitation Engineering,2021,29:1441-1451.
[19] PERSLEV M,DARKNER S,KEMPFNER L,et al.U-Sleep:resilient high-frequency sleep staging[J].NPJ Digital Medicine,2021,4(1):72.
[20] ZHAO C,LI J,GUO Y.SleepContextNet:A temporal context network for automatic sleep staging based single-channel EEG[J].Computer Methods and Programs in Biomedicine,2022,220:106806.
[21] RU Y,AN G,WEI Z,et al.Epilepsy detection based on multi-head self-attention mechanism[J].PloSOne,2024,19(6):e0305166.
[22] ELDELE E,CHEN Z,LIU C,et al.An attention-baseLu H,Luo M.Survey onnew progresses of deep learning based computer vision[J].Journal of Data Acquisition and Processing,2022,37(2):247-78.
[23] LIU J W,SONG Z Y.Overview of recurrent neural networks[J].Control and Decision,2022,37(11):2753-2768.
[24] CHEN J J,LIU B,LIN W W,et al.Survey of transformer-based ttime series forecasting methods[J].Computer Science,2025,52(6):96-10.
[25] SONG S,LAM J C K,HAN Y,et al.ResNet-LSTM for real-time pm 2.5 and pm estimation using sequential smartphone images [J].IEEE Access,2020,8:220069-220082.
[26] PHAN H,ANDREOTTI F,COORAY N,et al.Joint classificationand prediction CNN framework for automatic sleep stage classification[J].IEEE Transactions on Biomedical Engineering,2018,66(5):1285-1296.
[27] EMADELDEEN E,ZHENGHUA C,CHENGYU L,et al.Anattention-based deep learning approach for sleep stage classification with single-channel EEG [J].IEEE Transactions on Neural Systems and Rehabilitation Engineering:A Publication of the IEEE Engineering in Medicine and Biology Society,2021,29:809-818.
[1] XU Jianjun, BI Ying, CHEN Mingming, LIANG Jing. Survey of Molecular Pre-training Models and Their Applications in Drug Discovery [J]. Computer Science, 2026, 53(9): 110-123.
[2] CAI Yi, WANG Xiaobin, CHEN Ruili, XU Jinfeng. Handwriting Gender Recognition Method Based on Multi-scale Directional Attention Transformer [J]. Computer Science, 2026, 53(8): 156-164.
[3] REN Yanzhang, GAO Tai, LI Ying, WANG Bin. Gated Bidirectional Mamba Multimodal Feature Fusion Framework for Drug-Target InteractionPrediction [J]. Computer Science, 2026, 53(8): 326-335.
[4] JI Wendi, WANG Yongquan. Autoregressive Sequence Reconstruction for Unsupervised Anomaly Detection in Medical Insurance [J]. Computer Science, 2026, 53(7): 298-307.
[5] XIAO Yanxue, DENG Li, REN Zhengwei, WU Mengxin. iDSRformer:Node Load Prediction Model for High-performance Computing Cluster [J]. Computer Science, 2026, 53(7): 251-261.
[6] YANG Geer, WANG Xin, SUN Wei, WANG Xinge, HU Zhongrui, MENG Wenjun, ZHANG Junqiang, WU Xinghui, LIU Jinshan, YAN Yuming. Survey on Positional Encoding Algorithms in Deep Learning [J]. Computer Science, 2026, 53(6A): 250300107-16.
[7] LIU Jikang, HUANG Lei, ZHANG Ke, NIE Jie, WEI Zhiqiang. Object Detection Method Based on Dynamic Feature Fusion [J]. Computer Science, 2026, 53(6): 263-269.
[8] LI Tengjia, MA Chun’ai. Multi-scale Transformer Oil Price Prediction Framework with AEMD and Trend Cross-attention [J]. Computer Science, 2026, 53(5): 157-163.
[9] YANG Hongju, ZHANG Ziyang, LI Yao. Frequency Driven Multi-scale Image Super-resolution Method [J]. Computer Science, 2026, 53(5): 218-227.
[10] GUO Jingchen, YANG Kuiwu, DING Mengdi, WEI Jianghong. Survey of Adversarial Sample Attacks for Vision Transformer [J]. Computer Science, 2026, 53(5): 404-418.
[11] XIN Yichen, LI Shichong, CHEN Bin, CHENG Zhangtao, LI Ye, ZHOU Fan. Enhancing Temporal Knowledge Graph Reasoning Method with Graph Information Bottleneck and Transformer [J]. Computer Science, 2026, 53(4): 393-405.
[12] CHEN Han, XU Zefeng, JIANG Jiu, FAN Fan, ZHANG Junjian, HE Chu, WANG Wenwei. Large Language Model and Deep Network Based Cognitive Assessment Automatic Diagnosis [J]. Computer Science, 2026, 53(3): 41-51.
[13] LI Zequn, DING Fei. Fatigue Driving Detection Based on Dual-branch Fusion and Segmented Domain AdaptationTransfer Learning [J]. Computer Science, 2026, 53(3): 78-87.
[14] YU Ding, LI Zhangwei. Prediction Method of RNA Secondary Structure Based on Transformer Architecture [J]. Computer Science, 2026, 53(3): 375-382.
[15] LIU Chenhong, LI Fenglian, YANG Jia, WANG Suzhe, CHEN Guijun. Boundary-focused Multi-scale Feature Fusion Network for Stroke Lesion Segmentation [J]. Computer Science, 2026, 53(2): 264-272.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!