Attention-Based Temporal Resolution Enhancement for Microsleep Forecasting Across Multiple Horizons

Detecting microsleep events, that is, brief involuntary lapses in attention, is critical forsafety in tasks such as driving and industrial control. Current EEG-based methods achieve high accuracy (AUC–ROC ≈ 0.95) when detecting microsleep onset in real-time but show reduced predictive sensitivity (17–35% drop) when forecasting events 1–2 seconds ahead, primarily due to diminishedtemporal resolution of EEG signals. Prediction ahead of microsleep episodes is desirable for utility inoperator assessment scenarios.To address this challenge, we propose an attention-augmented temporal modeling approach that applies a causal multi-head self-attention mechanism before a Gated Recurrent Unit (GRU) network to preserve fine-grained temporal features. In addition, we incorporate a focal loss function to emphasize minorityclass microsleep events and mitigate class imbalance. Experiments on the multi-channel MWT dataset demonstrated consistent and statistically significantimprovements over both CSP+SBL and conventional GRU baselines, with sensitivity gains of up to 42 percentage points and AUC–ROC improvements of up to 22 points (Wilcoxon test, p = 0.0003). An ablation study confirmed that both focal loss and attention contribute complementary benefits, withtheir combination yielding the best overall results. To evaluate robustness, we further tested on the single-channel Sleepy Driver dataset, where the proposed model improved specificity and AUC metrics, though gains were more modest than in clinical multi-channel EEG.Overall, our findings demonstrate that integrating causal attention and focal loss sustains forecasting performance across horizons and datasets, offering a reliable and adaptive framework for real-time microsleep prediction in both clinical and consumer-grade settings.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-23
DOI
https://doi.org/10.5281/zenodo.19184602
Primary Topic
EEG and Brain-Computer Interfaces
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Attention-Based Temporal Resolution Enhancement for Microsleep Forecasting Across Multiple Horizons

Peter Redmond, Mayug Maniparambil, Maram A.Mohamed, Tomas Ward et al.
Zenodo (CERN European Organization for Nuclear Research)
EEG and Brain-Computer Interfaces
article

Attention-Based Temporal Resolution Enhancement for Microsleep Forecasting Across Multiple Horizons

Peter Redmond, Mayug Maniparambil, Maram A.Mohamed, Tomas Ward, Noel E. O'Connor
article en

Abstract

Detecting microsleep events, that is, brief involuntary lapses in attention, is critical forsafety in tasks such as driving and industrial control. Current EEG-based methods achieve high accuracy (AUC–ROC ≈ 0.95) when detecting microsleep onset in real-time but show reduced predictive sensitivity (17–35% drop) when forecasting events 1–2 seconds ahead, primarily due to diminishedtemporal resolution of EEG signals. Prediction ahead of microsleep episodes is desirable for utility inoperator assessment scenarios.To address this challenge, we propose an attention-augmented temporal modeling approach that applies a causal multi-head self-attention mechanism before a Gated Recurrent Unit (GRU) network to preserve fine-grained temporal features. In addition, we incorporate a focal loss function to emphasize minorityclass microsleep events and mitigate class imbalance. Experiments on the multi-channel MWT dataset demonstrated consistent and statistically significantimprovements over both CSP+SBL and conventional GRU baselines, with sensitivity gains of up to 42 percentage points and AUC–ROC improvements of up to 22 points (Wilcoxon test, p = 0.0003). An ablation study confirmed that both focal loss and attention contribute complementary benefits, withtheir combination yielding the best overall results. To evaluate robustness, we further tested on the single-channel Sleepy Driver dataset, where the proposed model improved specificity and AUC metrics, though gains were more modest than in clinical multi-channel EEG.Overall, our findings demonstrate that integrating causal attention and focal loss sustains forecasting performance across horizons and datasets, offering a reliable and adaptive framework for real-time microsleep prediction in both clinical and consumer-grade settings.

Zenodo (CERN European Organization for Nuclear Research)
Dublin City University (IE)
Industry, innovation and infrastructure
Openalex Percentile: Top 12%
EEG and Brain-Computer Interfaces
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.