A context-aware temporal modeling through unified multi-scale temporal encoding and hierarchical sequence learning for single-channel EEG sleep staging.
Overview
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
- physionet.org/
content/ , at PhysioNet; found in “Data Availability”sleep-edfx
Data Availability
The data underlying this study are publicly available from PhysioNet as part of the Sleep-EDF dataset at https://
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://
BibTeX
@article{vakili2026conte
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/
url = {https://
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/
VL - 21
IS - 9
SP - e0358241
SN - 1932-6203
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"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":
"volume": "21",
"issue": "9",
"page": "e0358241",
"DOI": "10.1371/
"PMID": "42814731",
"PMCID": "PMC13626375",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://
"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 reportsIn 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 scienceIn 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 physiologyIn 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 neuroscienceIn 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 makingIn 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 sciencesIn 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 neuroinformaticsIn 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 neuroinformaticsIn 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 healthIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
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.
