2021/05/31 by Huy Phan, Kaare Mikkelsen, Kaare B. Mikkelsen +5 · 314 citations
Computer Science · Engineering · Neuroscience · Psychology · #Artificial intelligence #Computer science #EEG and Brain-Computer Interfaces #Interpretability #Machine learning #Sleep (system call) #Sleep and Wakefulness Research #Sleep and related disorders #cs.LG #eess.SP
paper · pdf · open access · doi:10.1109/tbme.2022.3147187
published in IEEE Transactions on Biomedical Engineering 69(8), 2456-2467 (Institute of Electrical and Electronics Engineers) · This article has been published in IEEE Transactions on Biomedical Engineering
arxiv created 2022/01/26 · arxiv updated 2022/01/27 · openalex publication_date 2022/01/31 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/05
Background: Black-box skepticism is one of the main hindrances impeding deep-learning-based automatic sleep scoring from being used in clinical environments. Methods: Towards interpretability, this work proposes a sequence-to-sequence sleep-staging model, namely SleepTransformer. It is based on the transformer backbone and offers interpretability of the model's decisions at both the epoch and sequence level. We further propose a simple yet efficient method to quantify uncertainty in the model's decisions. The method, which is based on entropy, can serve as a metric for deferring low-confidence epochs to a human expert for further inspection. Results: Making sense of the transformer's self-attention scores for interpretability, at the epoch level, the attention scores are encoded as a heat map to highlight sleep-relevant features captured from the input EEG signal. At the sequence level, the attention scores are visualized as the influence of different neighboring epochs in an input sequence (i.e. the context) to recognition of a target epoch, mimicking the way manual scoring is done by human experts. Conclusion: Additionally, we demonstrate that SleepTransformer performs on par with existing methods on two databases of different sizes. Significance: Equipped with interpretability and the ability of uncertainty quantification, SleepTransformer holds promise for being integrated into clinical settings.