OSCR

A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging.

Overview

Authors: Amir Ali Vakili1, Salar Jahanshiri1, Armin Salimi-Badr1
  1. Faculty of Computer Science and Engineering, Shahid Beheshti University, Tehran, Iran
Institutions: Shahid Beheshti University (Iran)
Journal: PloS one, volume 21, issue 9, article e0358241
Dates: received 7 January 2026; accepted 28 August 2026; published online 30 September 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pone.0358241 · PMID 42814731 · PMCID PMC13626375 · OpenAlex W7117773445
Open access: gold, a free copy (OpenAlex)
Categories: EEG (modality), human (organism)
Methods: Connectivity, Preprocessing, Statistics, Machine learning, Physiology & signal measures
MeSH: Electroencephalography*, Sleep Stages*, Algorithms, Humans, Signal Processing, Computer-Assisted (* major topic)
Journal subjects: Biology and Life Sciences, Physiology, Physiological Processes, Sleep, Research and Analysis Methods, Bioassays and Physiological Analysis, Electrophysiological Techniques, Brain Electrophysiology, Electroencephalography, Electrophysiology, Neurophysiology, Neuroscience, Brain Mapping, Medicine and Health Sciences, Clinical Medicine, Clinical Neurophysiology, Imaging Techniques, Neuroimaging, Mathematical and Statistical Techniques, Mathematical Functions, Convolution, Computer and Information Sciences, Software Engineering, Preprocessing, Engineering and Technology, Artificial Intelligence, Machine Learning, Deep Learning, Data Management, Data Compression, Neural Networks, Recurrent Neural Networks
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 51 references in the paper

Abstract

Automatic sleep staging is a critical task in healthcare due to the global prevalence of sleep disorders. This study focuses on single-channel electroencephalography (EEG), a practical and widely available signal for automatic sleep staging. Existing approaches face challenges such as class imbalance, limited receptive-field modeling, and insufficient interpretability. This work proposes TempoSleep, a context-aware framework for single-channel EEG sleep staging, with particular emphasis on improving detection of the N1 stage. Many prior models operate as black boxes with stacked layers, lacking clearly defined and interpretable feature extraction roles. TempoSleep combines compact multi-scale feature extraction with temporal modeling to capture both local and long-range dependencies. To address data imbalance, especially in the N1 stage, class-weighted loss functions and data augmentation are applied. EEG signals are segmented into sub-epoch chunks, and final predictions are obtained by averaging softmax probabilities across chunks, enhancing contextual representation and robustness. The proposed framework achieves an overall accuracy of 89.72% and a macro-average F1-score of 85.46%. Notably, it attains an F1-score of 61.7% for the challenging N1 stage, demonstrating a substantial improvement over previous methods on the SleepEDF datasets.These results indicate that the proposed approach effectively improves sleep staging performance while providing insights into its prediction behavior and supporting its potential application in automatic sleep staging.

Reproduced under the paper's license (CC BY), from the paper cited above.

Code

The paper links to its data and to no code of its authors: see the Data section.

Tracing map

A tracing map links a paper to the code its authors published: this paper has none, so it has no map.

Data

Datasets cited

Data Availability

The data underlying this study are publicly available from PhysioNet as part of the Sleep-EDF dataset at https://www.physionet.org/content/sleep-edfx/1.0.0/. The dataset can be accessed by researchers in accordance with the access and data-use requirements specified by PhysioNet. The authors did not have any special or privileged access to the data.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 3 October 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 5 MeSH terms, 39 references.

Cite

This paper

Vakili, A. A., Jahanshiri, S., & Salimi-Badr, A. (2026). A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging. PloS one, 21(9), e0358241. https://doi.org/10.1371/journal.pone.0358241

BibTeX

@article{vakili2026context,
author = {Vakili, Amir Ali and Jahanshiri, Salar and Salimi-Badr, Armin},
title = {{A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging}},
journal = {PloS one},
year = {2026},
month = sep,
volume = {21},
number = {9},
pages = {e0358241},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/journal.pone.0358241},
url = {https://doi.org/10.1371/journal.pone.0358241},
pmid = {42814731},
pmcid = {PMC13626375}
}

RIS

TY - JOUR
AU - Vakili, Amir Ali
AU - Jahanshiri, Salar
AU - Salimi-Badr, Armin
TI - A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/09/30
VL - 21
IS - 9
SP - e0358241
SN - 1932-6203
PB - PLOS
DO - 10.1371/journal.pone.0358241
UR - https://doi.org/10.1371/journal.pone.0358241
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pone.0358241",
"type": "article-journal",
"title": "A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging",
"container-title": "PloS one",
"author": [
{
"family": "Vakili",
"given": "Amir Ali"
},
{
"family": "Jahanshiri",
"given": "Salar"
},
{
"family": "Salimi-Badr",
"given": "Armin"
}
],
"container-title-short": "PLoS One",
"volume": "21",
"issue": "9",
"page": "e0358241",
"DOI": "10.1371/journal.pone.0358241",
"PMID": "42814731",
"PMCID": "PMC13626375",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pone.0358241",
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
30
]
]
}
}

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s41598-024-60796-y
ZleepAnlystNet: a novel deep learning model for automatic sleep stage scoring based on single-channel raw EEG data using separating training.
Journal: Scientific reports
In common: physionet.org/content/sleep-edfx, EEG, 9 references
[2] doi:10.7717/peerj-cs.1561 [code]
Automatic sleep staging by a hybrid model based on deep 1D-ResNet-SE and LSTM with single-channel raw EEG signals.
Journal: PeerJ. Computer science
In common: physionet.org/content/sleep-edfx, EEG, 8 references
[3] doi:10.3389/fphys.2023.1171467
DynamicSleepNet: a multi-exit neural network with adaptive inference time for sleep stage classification.
Journal: Frontiers in physiology
In common: physionet.org/content/sleep-edfx, 8 references
[4] doi:10.3389/fnins.2023.1218072
Micro SleepNet: efficient deep learning model for mobile terminal real-time sleep staging.
Journal: Frontiers in neuroscience
In common: physionet.org/content/sleep-edfx, EEG, 8 references
[5] doi:10.1186/s12911-024-02522-2
Machine learning-empowered sleep staging classification using multi-modality signals.
Journal: BMC medical informatics and decision making
In common: physionet.org/content/sleep-edfx, EEG, 7 references
[6] doi:10.3390/brainsci16010095
SleepMFormer: An Efficient Attention Framework with Contrastive Learning for Single-Channel EEG Sleep Staging.
Journal: Brain sciences
In common: physionet.org/content/sleep-edfx, EEG, 7 references
[7] doi:10.3390/s23073446
Sleep Stage Classification in Children Using Self-Attention and Gaussian Noise Data Augmentation.
Journal: Sensors (Basel, Switzerland)
In common: physionet.org/content/sleep-edfx, EEG, 6 references
[8] doi:10.3389/fninf.2023.1123376
Novel methods for elucidating modality importance in multimodal electrophysiology classifiers.
Journal: Frontiers in neuroinformatics
In common: physionet.org/content/sleep-edfx, EEG, 6 references
[9] doi:10.3389/fninf.2023.1297874
Few-shot EEG sleep staging based on transductive prototype optimization network.
Journal: Frontiers in neuroinformatics
In common: physionet.org/content/sleep-edfx, EEG, 6 references
[10] doi:10.1177/20552076251398440 [code]
KAN-SleepNet: A deep learning model combining Kolmogorov-Arnold Networks and bidirectional LSTM for automated sleep staging using EEG signals.
Journal: Digital health
In common: physionet.org/content/sleep-edfx, EEG, 6 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.