Visual Decoding and Reconstruction via EEG Embeddings with Guided Diffusion

Dongyang Li, Chen Wei, Shiying Li, Jiachen Zou, Quanying Liu

Introduction

Decoding human visual perception from brain activity has long been a central goal of computational neuroscience. While functional Magnetic Resonance Imaging (fMRI) has demonstrated impressive capabilities in reconstructing images from brain signals, its practical utility is limited by high costs, lack of portability, and poor temporal resolution. In contrast, Electroencephalography (EEG) offers a portable and cost-effective alternative with millisecond-level temporal precision. However, the low spatial resolution and high signal-to-noise ratio of EEG have historically made high-fidelity image reconstruction nearly impossible.

This paper introduces a novel framework designed to overcome these hurdles, combining a specialized brain encoder with a multi-stage diffusion process to transform noisy EEG signals into semantically accurate, high-resolution images.

Methodology

The researchers propose a two-part architecture that addresses the inherent limitations of EEG data: the Adaptive Thinking Mapper (ATM) and a Two-Stage Multi-Pipe Generation pipeline.

1. The Adaptive Thinking Mapper (ATM)

The ATM serves as a specialized encoder that projects raw EEG signals into a latent space aligned with CLIP (Contrastive Language-Image Pre-training). To handle the complexity of brainwaves, the ATM employs two distinct mechanisms:

  • Channel-wise Transformers: These identify correlations between different electrode locations on the scalp.
  • Temporal-Spatial Convolutions: These capture how visual processing evolves over time and across different brain regions.

By aligning EEG embeddings with CLIP’s image-text latent space, the model provides a semantically rich foundation for the subsequent generation process.

2. Two-Stage Multi-Pipe Generation

Directly generating images from noisy EEG embeddings often results in visual artifacts. To mitigate this, the framework utilizes a two-stage approach:

  • Stage I (The Prior): A prior diffusion model refines the initial EEG embedding into a cleaner "image prior." Simultaneously, the system decodes a low-level "blurry image" from the EEG to preserve basic layout and color information.
  • Stage II (The Refiner): The refined high-level embedding, the low-level blurry image, and a generated text caption are fed into a pre-trained Stable Diffusion XL (SDXL) model. This "multi-pipe" strategy allows the model to synthesize high-resolution images that respect both the semantic category and the structural composition of the original stimulus.

Experimental Results

The framework was primarily evaluated using the THINGS-EEG dataset, which contains brain responses from subjects viewing thousands of natural images. The system achieved state-of-the-art (SOTA) results across three primary tasks: image classification, image retrieval, and image generation.

  • Retrieval Accuracy: In zero-shot retrieval tasks—identifying the correct image from a pool of 200 candidates—the model achieved a Top-1 accuracy of approximately 28.6% in subject-dependent tests, marking a significant improvement over previous EEG-based methods.
  • Qualitative Fidelity: Reconstructions demonstrated a remarkable ability to capture not just the category of an object (e.g., a bird), but also specific poses, color palettes, and spatial compositions.

Neuroscientific Insights

Beyond engineering achievements, the study provides valuable insights into the nature of visual processing:

  • Temporal Dynamics: The researchers found that the most critical visual information is concentrated in the 200–400ms window following stimulus presentation. The system can produce reliable reconstructions using less than 500ms of data.
  • Spatial Importance: Spatial ablation studies confirmed that electrodes over the occipital and parietal regions—the areas of the brain responsible for visual processing—contribute the most significant data for reconstruction.
  • EEG vs. MEG: Interestingly, the study found that EEG outperformed Magnetoencephalography (MEG) in these tasks, suggesting that EEG’s portability does not necessarily compromise its decoding potential when paired with the right architecture.

Limitations and Future Directions

A primary challenge remains the "subject gap." The model currently performs best when trained and tested on the same individual. Cross-subject decoding—where a model trained on one person is used on another—remains difficult because individual brain patterns vary significantly.

Future research will focus on transfer learning and EEG source localization to map scalp signals back to specific 3D brain structures. These advancements aim to create a more universal brain-to-image translator that can function across different individuals and electrode configurations.

Summary updated

BibTeX
@inproceedings{li2024visual,
  author = {Dongyang Li and Chen Wei and Shiying Li and Jiachen Zou and Quanying Liu},
  title = {{Visual Decoding and Reconstruction via EEG Embeddings with Guided Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=RxkcroC8qP},
}
Figure