cs.LGOct 24, 2026

EEGBiFormer: Real-Time EEG Attention Classification via Hybrid CNN-Transformer with EEG-Informed Auditory Protocol Validation

Authors: Isabella Guan

Organizations: Lake Washington High School, Kirkland, WA, USA

Abstract

Sustained attention is critical for academic performance, yet existing auditory support tools are static and not grounded in real-time neural evidence. This paper presents EEGBiFormer, a hybrid CNN-Transformer model for realtime binary classification of attention states, focus versus nonfocus, from 16-channel EEG signals. A custom analog front-end acquisition board was designed and built to collect a task-based EEG dataset. Before model training, spectral and connectivity analysis, using Power Spectral Density and Phase Locking Value, confirmed distinct neural signatures between attention states, providing physiological grounding for the classification approach. EEGBiFormer achieved 91.3 percent window-level validation accuracy with an F1 score of 94.5 percent, and 88.2 percent recording-level accuracy across 17 independent sessions. End-to-end system latency was measured below 100 ms, supporting real-time responsiveness. The trained model was further used to objectively rank auditory stimuli by focus-state confidence, yielding EEG-informed audio protocols. In a paired within-subject behavioral study with 37 participants, these protocols produced a statistically significant 20 percent improvement in composite attention scores over silent controls, with a medium-to-large effect size. This work demonstrates a complete pipeline from custom EEG hardware through neural signal analysis, deep learning classification, and evidence-based auditory protocol design.

Figures & tables

Explore similar work

CardsList
  1. AFA-Net: A Differential Attention Approach for Auditory Attention Detection

    Sep 25, 2026Philip H. Lee, Shreeram Suresh Chandra, Karan Thakkar +1Differential AttentionEEG Decoding

  2. FAConformer: Frequency-Aware Convolutional Transformer for Auditory Attention Decoding

    Jun 12, 2026Ziwei Wang, Xingyi He, Tianwang Jia +2Hybrid CNN-Transformer ArchitecturesNeural Decoding

  3. CaMBRAIN: Real-time, Continuous EEG Inference with Causal State Space Models

    May 27, 2026Abhilash Durgam, Nyle Siddiqui, Jeffrey A. Chan-Santiago +3Efficient Neural Network InferenceElectroencephalography