RAICL: Retrieval-Augmented In-Context Learning for Vision-Language-Model Based EEG Seizure Detection
Siyang Li, Zhuoya Wang, Xiyan Gui, Xiaoqing Chen, Ziwei Wang, Yaozhi Wen, Dongrui Wu
TL;DR
This work addresses the data scarcity and generalization challenges in EEG seizure detection by reframing EEG decoding as a multimodal problem that leverages vision-language models. It introduces RAICL, which retrieves representative resting-state anchors and similar task exemplars from auxiliary subjects and uses chain-of-thought prompts to inject domain expertise, all without retraining the VLMs. Across CHSZ and NICU seizure datasets, the approach with off-the-shelf VLMs achieves competitive or superior performance compared to traditional signal-based methods and image-based baselines, with notable gains from principled exemplar retrieval and CoT prompting. The findings suggest a practical, deployable direction for physiological signal analysis that bridges vision, language, and neural activity, highlighting the primacy of the visual encoder and the potential for extending to multi-class tasks.
Abstract
Electroencephalogram (EEG) decoding is a critical component of medical diagnostics, rehabilitation engineering, and brain-computer interfaces. However, contemporary decoding methodologies remain heavily dependent on task-specific datasets to train specialized neural network architectures. Consequently, limited data availability impedes the development of generalizable large brain decoding models. In this work, we propose a paradigm shift from conventional signal-based decoding by leveraging large-scale vision-language models (VLMs) to analyze EEG waveform plots. By converting multivariate EEG signals into stacked waveform images and integrating neuroscience domain expertise into textual prompts, we demonstrate that foundational VLMs can effectively differentiate between different patterns in the human brain. To address the inherent non-stationarity of EEG signals, we introduce a Retrieval-Augmented In-Context Learning (RAICL) approach, which dynamically selects the most representative and relevant few-shot examples to condition the autoregressive outputs of the VLM. Experiments on EEG-based seizure detection indicate that state-of-the-art VLMs under RAICL achieved better or comparable performance with traditional time series based approaches. These findings suggest a new direction in physiological signal processing that effectively bridges the modalities of vision, language, and neural activities. Furthermore, the utilization of off-the-shelf VLMs, without the need for retraining or downstream architecture construction, offers a readily deployable solution for clinical applications.
