Skip to content

sunshineHDU/EEG_Region

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EEG-Driven Natural Image Reconstruction with Semantic Region Awareness

Abstract

Recent breakthroughs in AI-generated content (AIGC) technologies have made it possible to decode and reconstruct visual stimuli from electroencephalography (EEG) signals. Most existing methods extract global semantic information from EEG signals as the condition embedding to control a generative AI model, enabling it to generate candidate images that maintain global semantic consistency with those observed by subjects. However, relying solely on a global conditional control for image generation makes it difficult to recover the local spatial locations of objects and the spatial relationships among objects, which results in substantial discrepancies between the reconstructed images and the corresponding perceived ones. To address this issue, this paper proposes an EEG-driven natural image reconstruction with regional semantic awareness, termed ``EEG-RegionalDiff''. Specifically, it first extracts semantic- and location-aware latent EEG codes from EEG signals through the joint learning of masked EEG signal recovery and EEG-based visual classification. These latent EEG codes are then embedded into the latent diffusion model (LDM) as conditions to drive the reconstruction of the visual stimuli with regional semantic awareness. To enhance local control capabilities over the semantic regions, the LDM is fine-tuned by introducing regional semantic maps as conditional constraints. Quantitative and qualitative comparison experiments demonstrate the superiority of the proposed EEG-RegionalDiff method, not only in achieving region-level semantic alignment but also in maintaining semantic dependencies among different object regions.

Overview

pipeline

visualization_results in EEG-ImageNet dataset

results

visualization_results in Thing-EEG2 dataset

results

Acknowledgement

This code is built upon the publicly available code Mind-vis, StableDiffusion, DreamDiffusion and Segment-Anything. Thanks these authors for making their excellent work and codes publicly available.

About

[PR 25] EEG-Driven Natural Image Reconstruction with Regional Semantic Awareness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.9%
  • Jupyter Notebook 0.1%