Research Article

A convolutional transformer for EEG sleep stage classification

Zhuoran Li*
Beijing Language and Culture University

* Corresponding author: [email protected]

Abstract

Sleep is one of the most critical physiological processes in life, with profound implications for human health and functioning. Sleep stage classification is a fundamental task in sleep research, aiding in the understanding of the various stages of sleep and playing a crucial role in medical and health monitoring. Traditional Convolutional Neural Networks (CNNs) have limitations in handling long-range dependencies, focusing only on information within specific windows. For example, missing transitions between Rapid Eye Movement (REM) sleep stages and Non-Rapid Eye Movement (NREM) sleep stages. RNN may not effectively capture local features. For instance, RNNs might not effectively capture short awakenings or microarousals during sleep, which are crucial for accurate sleep stage classification. Subsequently, one limitation of transformers is their inefficiency in handling sequential data with long-range dependencies. To address these issues, we propose the Conformer model, which combines convolutional neural networks and transformers to efficiently capture both local and global dependencies in an electroencephalogram sequence. Conformer models employ various parameter reduction strategies, making the model more lightweight and suitable for embedded devices and low-resource environments. To validate our approach, we conducted comprehensive experiments using a widely collected single-channel EEG dataset and evaluated the model's performance. When compared to traditional methods and other deep learning approaches, our model demonstrates a significant advantage in capturing subtle features and patterns associated with different sleep stages.

Keywords: Sleep stage classification; Attention; Convolutional neural networks; Transformer
Published: July 11, 2024
DOI: 10.54254/2755-2721/74/20240451
Volume: ACE Vol.74
pp. 110-116
Download PDF

References

  1. Luyster, F.S., Strollo Jr, P.J., Zee, P.C. and Walsh, J.K., 2012. Sleep: a health imperative. Sleep, 35(6), pp.727-734.
  2. Yildirim, O., Baloglu, U.B. and Acharya, U.R., 2019. A deep learning model for automated sleep stages classification using PSG signals. International journal of environmental research and public health, 16(4), p.599.
  3. Cooper, R., Osselton, J.W. and Shaw, J.C., 2014. EEG technology. Butterworth-Heinemann.
  4. Wang, G., Teng, C., Li, K., Zhang, Z. and Yan, X., 2015. The removal of EOG artifacts from EEG signals using independent component analysis and multivariate empirical mode decomposition. IEEE journal of biomedical and health informatics, 20(5), pp.1301-1308.
  5. Tankisi, H., Burke, D., Cui, L., de Carvalho, M., Kuwabara, S., Nandedkar, S.D., Rutkove, S., Stålberg, E., van Putten, M.J. and Fuglsang-Frederiksen, A., 2020. Standards of instrumentation of EMG. Clinical neurophysiology, 131(1), pp.243-258.
  6. Gururaj, N., Vinod, V. and Vijayakumar, K., 2023. Deep grading of mangoes using convolutional neural network and computer vision. Multimedia Tools and Applications, 82(25), pp.39525-39550.
  7. Otter, D.W., Medina, J.R. and Kalita, J.K., 2020. A survey of the usages of deep learning for natural language processing. IEEE transactions on neural networks and learning systems, 32(2), pp.604-624.
  8. Gulati, A., Qin, J., Chiu, C.C., Parmar, N., Zhang, Y., Yu, J., Han, W., Wang, S., Zhang, Z., Wu, Y. and Pang, R., 2020. Conformer: Convolution-augmented transformer for speech recognition. arXiv preprint arXiv:2005.08100.
  9. Li, Z., Liu, F., Yang, W., Peng, S. and Zhou, J., 2021. A survey of convolutional neural networks: analysis, applications, and prospects. IEEE transactions on neural networks and learning systems.
  10. Lipton, Z.C., Berkowitz, J. and Elkan, C., 2015. A critical review of recurrent neural networks for sequence learning. arXiv preprint arXiv:1506.00019.
  11. Eldele, E., Chen, Z., Liu, C., Wu, M., Kwoh, C.K., Li, X. and Guan, C., 2021. An attention-based deep learning approach for sleep stage classification with single-channel EEG. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 29, pp.809-818.
  12. Eger, S., Youssef, P. and Gurevych, I., 2019. Is it time to swish? Comparing deep learning activation functions across NLP tasks. arXiv preprint arXiv:1901.02671.
  13. Koizumi, Y., Yatabe, K., Delcroix, M., Masuyama, Y. and Takeuchi, D., 2020, May. Speech enhancement using self-adaptation and multi-head self-attention. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) (pp. 181-185). IEEE.
  14. Qin, Z., Sun, W., Deng, H., Li, D., Wei, Y., Lv, B., Yan, J., Kong, L. and Zhong, Y., 2022. cosformer: Rethinking softmax in attention. arXiv preprint arXiv:2202.08791.
  15. Veness, J., Lattimore, T., Budden, D., Bhoopchand, A., Mattern, C., Grabska-Barwinska, A., Sezener, E., Wang, J., Toth, P., Schmitt, S. and Hutter, M., 2021, May. Gated linear networks. In Proceedings of the AAAI Conference on Artificial Intelligence (Vol. 35, No. 11, pp. 10015-10023).
  16. PhysioBank, P., 2000. Physionet: components of a new research resource for complex physiologic signals. Circulation, 101(23), pp.e215-e220.