Feature Estimation of Global Language Processing in EEG Using Attention Maps

Dai Shimizu, Ko Watanabe, Andreas Dengel

Abstract

This research explores the application of deep learning architectures, specifically Vision Transformers (ViTs) and EEGNet, to decode neural signatures of language processing from electroencephalography (EEG) data. By transforming EEG signals into 2D Mel-spectrograms, the study classifies brain activity during perception (listening) and production (speaking) tasks. Utilizing interpretability tools like attention maps and Grad-CAM, the researchers identify specific frequency-time features that drive model decisions, aligning AI-driven insights with established neuroscientific principles.

Introduction

Electroencephalography (EEG) provides high temporal resolution for monitoring brain activity but faces challenges due to spatial noise and inter-subject variability. Traditional analysis relies on manual feature engineering of specific frequency bands. This study proposes an automated approach using deep learning to identify discriminative features in EEG data during language tasks, aiming to bridge the gap between high-accuracy "black-box" models and interpretable neuroscience.

Methodology

The study evaluates three primary classification approaches:

  1. Vision Transformers (ViT): EEG signals were converted into 2D Mel-spectrograms. Both a custom-designed ViT and a pre-trained ViT (originally trained on natural images) were tested.
  2. EEGNet: A specialized Convolutional Neural Network (CNN) optimized for EEG signals served as a performance baseline.
  3. Interpretability Framework: Attention maps (for ViTs) and Grad-CAM (for EEGNet) were employed to visualize the specific frequencies and time windows prioritized by the models.

Experimental Setup

The researchers utilized a public dataset from OpenNEURO involving 56 healthy Spanish speakers. Participants performed 60 sessions of listening to and repeating 30 random sentences. Data was recorded using a 64-channel EEG at 1000 Hz, subsequently band-pass filtered (1–40 Hz).

EEG electrode configuration highlighting the 15 channels in the left hemisphere (frontal and temporal lobes) selected for language processing analysis.

The analysis focused on 15 channels in the left hemisphere, encompassing Broca’s and Wernicke’s areas, to isolate language-specific neural activity.

Results and Interpretability

EEGNet achieved the highest classification accuracy, with a mean of 72.48% across all subjects and peaking at 84.33% for the most consistent participants. While the Custom ViT showed lower overall accuracy (61.53%), it provided superior frequency-domain resolution.

Normalized attention maps for Perception and Production tasks, illustrating the model's focus on specific frequency bands (Hz) over time (seconds).

Interpretability analysis revealed distinct "personalities" in model focus:

  • Custom ViT: Prioritized low-frequency delta and theta waves at task onset.
  • Pre-trained ViT: Focused on high-beta frequencies toward the end of the task.
  • Temporal Shifts: Grad-CAM identified a significant shift in neural attention between 2.5 and 3.0 seconds, likely corresponding to cognitive transitions between task phases.

Discussion and Conclusion

The alignment of attention maps with known Event-Related Potentials (ERPs) validates that the models are learning biologically relevant signals. Future work will aim to increase spatial granularity through channel-by-channel analysis and leverage larger datasets to improve Transformer performance. These techniques hold potential for identifying clinical biomarkers in neurological conditions by detecting abnormal neural attention patterns.

Summary updated

BibTeX
@inproceedings{shimizu2024feature,
  author = {Dai Shimizu and Ko Watanabe and Andreas Dengel},
  title = {{Feature Estimation of Global Language Processing in EEG Using Attention Maps}},
  booktitle = {ACCV},
  year = {2024},
  doi = {10.1007/978-981-96-0901-7\_6},
}
Figure