Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2019 Mar;27(3):400-410.
doi: 10.1109/TNSRE.2019.2896659. Epub 2019 Jan 31.

SeqSleepNet: End-to-End Hierarchical Recurrent Neural Network for Sequence-to-Sequence Automatic Sleep Staging

SeqSleepNet: End-to-End Hierarchical Recurrent Neural Network for Sequence-to-Sequence Automatic Sleep Staging

Huy Phan et al. IEEE Trans Neural Syst Rehabil Eng. 2019 Mar.

Abstract

Automatic sleep staging has been often treated as a simple classification problem that aims at determining the label of individual target polysomnography epochs one at a time. In this paper, we tackle the task as a sequence-to-sequence classification problem that receives a sequence of multiple epochs as input and classifies all of their labels at once. For this purpose, we propose a hierarchical recurrent neural network named SeqSleepNet (source code is available at http://github.com/pquochuy/SeqSleepNet). At the epoch processing level, the network consists of a filterbank layer tailored to learn frequency-domain filters for preprocessing and an attention-based recurrent layer designed for short-term sequential modeling. At the sequence processing level, a recurrent layer placed on top of the learned epoch-wise features for long-term modeling of sequential epochs. The classification is then carried out on the output vectors at every time step of the top recurrent layer to produce the sequence of output labels. Despite being hierarchical, we present a strategy to train the network in an end-to-end fashion. We show that the proposed network outperforms the state-of-the-art approaches, achieving an overall accuracy, macro F1-score, and Cohen's kappa of 87.1%, 83.3%, and 0.815 on a publicly available dataset with 200 subjects.

PubMed Disclaimer

Figures

Fig. 1
Fig. 1
Illustration of the classification schemes used for automatic sleep staging. (a) one-to-one, (b) many-to-one, (c) one-to-many, and (d) the proposed many-to-many.
Fig. 2
Fig. 2
Illustration of SeqSleepNet, the proposed end-to-end hierarchical RNN for sequence-to-sequence sleep staging.
Fig. 3
Fig. 3
Illustration of the developed baselines. In (b), conv. (n,w,s) denotes a convolutional layer with n 1-D filters of size w and stride s. max pool. (w,s) denotes a 1-D max pooling layer with kernel size w and stride s. fc (n) represents a fully connected layer with n hidden units. Finally, bi-LSTM (n,m) represents a bidirectional LSTM cell with size of its forward and backward hidden state vectors of n and m, respectively. Further details of these parameters can be found in [9].
Fig. 4
Fig. 4
(a) The confusion matrix of SeqSleepNet-20 (C1), (b) the confusion matrix of the E2E-ARNN baseline (C2), and (c) the difference of two confusion matrices C1C2.
Fig. 5
Fig. 5
Output hypnogram (a) produced by the proposed SeqSleepNet (L = 20) for subject 22 of the MASS dataset compared to the ground-truth (b). The errors are marked by the × symbol. The posterior probability distribution over different sleep stages is shown in (c).
Fig. 6
Fig. 6
Attention weight learned by SeqSleepNet (L = 20) for specific epochs of different sleep stages. Note that we generated the spectrograms with finer temporal resolution (2-second window with 90% overlap) for visualization purpose.

References

    1. Siegel JM. Clues to the functions of mammalian sleep. Nature. 2005;437(27):1264–1271. - PMC - PubMed
    1. Institute of Medicine. Sleep Disorders and Sleep Deprivation: An Unmet Public Health Problem. Washington DC: The National Academies Press; 2006. - PubMed
    1. Krieger AC, editor. Social and Economic Dimensions of Sleep Disorders, An Issue of Sleep Medicine Clinics. Elsevier; 2017.
    1. Iber C, et al. The AASM manual for the scoring of sleep and associated events: Rules, terminology and technical specifications. American Academy of Sleep Medicine. 2007
    1. Hobson JA. A manual of standardized terminology, techniques and scoring system for sleep stages of human subjects. Electroencephalography and Clinical Neurophysiology. 1969;26(6):644.

Publication types