Semantic Alignment of EEG and Text: A Contrastive Learning Framework for Decoding Imagined Speech
Shahryar G. Namdari, Francesco Iacomi, Riccardo Barbieri, Luca Mainardi
Key points
From the paper's conclusion- We adapt a multimodal contrastive learning framework to imagined speech, aligning EEG trials with language representations in the embedding space of a frozen pretrained text encoder.
Abstract
Imagined speech decoding from EEG offers a promising route toward naturalistic brain-computer interfaces. Traditional closed-set classifiers treat semantic categories as independent labels and do not explicitly exploit relationships among linguistic intents, limiting output flexibility. We adapt a multimodal contrastive learning framework to imagined speech, aligning EEG trials with language representations in the embedding space of a frozen pretrained text encoder. An EEG encoder is trained with a composite objective combining semantically reweighted EEG-sentence alignment and text-prototype-based class discrimination, encouraging semantic structure while preserving separability among 39 intent categories. We evaluate the approach on the Chisco imagined speech dataset across five subjects, reporting Top-k accuracy, macro-F1, and balanced pairwise matching accuracy (2v2). We also investigate maximum EEG-text cosine similarity (MaxCosine) as an intrinsic indicator of decoding reliability and probe semantic structure beyond category labels using five evaluation-time semantic axes and a qualitative Semantic Gallery Probe (SGP) with previously unseen candidate sentences. The contrastive framework achieved decoding performance comparable to a task-optimized closed-set classifier while mapping EEG into a frozen language embedding space. MaxCosine identified subsets of held-out trials with higher Top-1 and Top-5 accuracy across subjects. Evaluation-time semantic axes showed mean agreement above the 50% chance reference across all five dimensions, and the SGP qualitatively illustrated direct comparison with unseen candidate sentences. Together, these findings suggest that EEG-language alignment can retain comparable fixed-intent decoding while supporting similarity-based retrieval, intrinsic reliability ranking, and evaluation of broader semantic structure.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Contrastive Decoupling and Enhancement of Multi-view EEG Features for Imagined Speech Decoding.IEEE transactions on bio-medical engineering · 2026
- Brain-CLIPLM: semantic compression for EEG-to-text decoding.Frontiers in neuroscience · 2026
- Cross-subject decoding of imagined speech from scalp EEG: a leakage-controlled evaluation on three public corporaarXiv · 2026
- Thought-deciphering via hierarchical EEG-to-text alignmentarXiv · 2026
- EEGFaceSem: An EEG Benchmark with Paired Generative Latents for Semantic Visual ModelingarXiv · 2026
- Multimodal LLMs Can Learn to Read Brain Signals: A Vision--Language Model for Unified Multi-Task EEG DecodingarXiv · 2026