Toggle Main Menu Toggle Search

Open Access padlockePrints

Lightweight EEG Phase Prediction Based on Channel Attention and Spatio-Temporal Parallel Processing

Lookup NU author(s): Dr Huizhi LiangORCiD

Downloads


Licence

This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0).


Abstract

© 2025 by the authors.Background/Objectives: Closed-loop phase-locked TMS aims to deliver stimulation at targeted EEG phases, but real-time phase prediction remains a practical bottleneck. Timing errors are especially harmful near peaks and troughs, where small offsets can substantially degrade phase targeting. We benchmark representative predictors and develop models that improve phase consistency while reducing peak/trough lag. Methods: Using the publicly available Monash University TEPs–MEPs dataset, we benchmark classical predictors (AR- and FFT-based) and recurrent baselines (LSTM, GRU). To quantify extremum-specific behavior critical for closed-loop triggering, we propose Mean Lag Time (MLT), defined as the average temporal offset between predicted and ground-truth extrema, alongside PLV, APE, MAE, and RMSE. We further propose a parallel DSC-Attention-GRU architecture combining depthwise separable convolutions for efficient multi-channel spatio-temporal feature extraction with self-attention for spatial reweighting and dependency modeling, followed by a GRU phase predictor. A lightweight SqueezeNet-Attention-GRU variant is also designed for real-time constraints. Results: LSTM/GRU outperform AR/FFT in capturing temporal dynamics but retain residual peak/trough lag. Across stimulation intensities and frequency bands, DSC-Attention-GRU consistently improves phase consistency and prediction accuracy and reduces extremum lag, lowering MLT from ~7.77–7.79 ms to ~7.50–7.56 ms. The lightweight variant maintains stable performance with an average 3.7% inference speedup. Conclusions: Explicitly optimizing extremum timing via MLT and enhancing multi-channel modeling with DSC and attention reduces peak/trough lag and improves phase-consistent prediction, supporting low-latency closed-loop phase-locked TMS.


Publication metadata

Author(s): Duan S, Yan Y, Guo Q, Li F, Liang H

Publication type: Article

Publication status: Published

Journal: Brain Sciences

Year: 2026

Volume: 16

Issue: 1

Print publication date: 01/01/2026

Online publication date: 22/12/2025

Acceptance date: 19/12/2025

Date deposited: 09/02/2026

ISSN (electronic): 2076-3425

Publisher: MDPI

URL: https://doi.org/10.3390/brainsci16010011

DOI: 10.3390/brainsci16010011

Data Access Statement: The data from the present experiment are publicly available at the Git Hub website: https://github.com/BMHLab/TEPs-MEPs (accessed on 18 October 2023)


Altmetrics

Altmetrics provided by Altmetric


Funding

Funder referenceFunder name
Shanxi Scholarship Council of China (No. 2024-060)
Youth Fund of the National Natural Science Foundation of China (No. 12004275)

Share