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

**Authors:** Shufei Duan, Yuting Yan, Qianrong Guo, Fujiang Li, Huizhi Liang

PMC · DOI: 10.3390/brainsci16010011 · Brain Sciences · 2025-12-22

## TL;DR

This paper introduces a new model for predicting EEG phases in real-time to improve the timing of brain stimulation therapies.

## Contribution

A novel parallel DSC-Attention-GRU architecture is proposed to reduce phase prediction lag and improve accuracy for closed-loop TMS.

## Key findings

- DSC-Attention-GRU reduces extremum lag and improves phase prediction accuracy compared to AR/FFT and LSTM/GRU models.
- The lightweight variant of the model achieves stable performance with a 3.7% inference speedup.
- Optimizing extremum timing via MLT enhances phase consistency across stimulation intensities and frequency bands.

## Abstract

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.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12838940/full.md

## Figures

11 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12838940/full.md

## References

45 references — full list in the complete paper: https://tomesphere.com/paper/PMC12838940/full.md

---
Source: https://tomesphere.com/paper/PMC12838940