arXiv:2611.04524cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04524

E2I-Flow: EEG-to-Image Reconstruction via Wavelet-Temporal Cross-Attention and Conditional Flow Matching

Haowei Pan, Hwa Hui Tew, Junn Yong Loo, Fuad Noman, Hernando Ombao, Chee-Ming Ting

ABSTRACT

Electroencephalography (EEG)-based visual decoding and reconstruction aims to recover visual information from non-invasive brain signals. But there are challenges due to the complex temporal-frequency characteristics of EEG signals and the difficulty of discrete denoising framework in mapping neural activity to meaningful visual representations. Here, we propose E2I-Flow, an EEG-to-image decoding and reconstruction framework that combines a novel EEG encoder for time-frequency representation learning from EEG features, and conditional flow matching for visual decoding. A stationary-wavelet frequency branch and a temporal-mixing branch are integrated through bidirectional cross-attention and adaptive fusion, with the resulting EEG representations aligned to ground-truth image embeddings using contrastive and mean-squared-error loss supervisions. The aligned EEG representation is then used as a condition for a Transformer-based flow-matching model to predict the corresponding visual embedding for image synthesis. Experimental results show strong zero-shot EEG-to-image retrieval and improved visual reconstruction performance, outperforming several state-of-the-art baselines.

Index Terms— EEG, visual decoding, image reconstruction, time-frequency representation, flow matching

1. INTRODUCTION

Decoding visual information from human brain activity enables us to investigate how visual perception is represented in the brain and has important potential for non-invasive brain-computer interfaces (BCIs) [1, 2]. Among the commonly used neural recording modalities, EEG is particularly attractive due to its non-invasive acquisition, high temporal resolution, relatively low cost, and portability [3]. Recent studies have advanced from visual object recognition to zero-shot recognition and image retrieval settings [4, 3]. And a more challenging objective is to reconstruct the visual content itself from EEG signals, which recently has become a promising direction in EEG-based visual decoding [5, 6].

Compared with recognition and retrieval, EEG-to-image reconstruction requires decoded neural information to visually meaningful content. Early studies explored GAN-based frameworks for synthesizing images from EEG signals [5]. The emergence of diffusion models provide new solutions to this task. For instance, DM-RE2I incorporated EEG-derived semantic information into a denoising diffusion process [7], whereas DreamDiffusion, BrainVis, and ATM explored alternative ways of conditioning diffusion models to reconstruct images from learned EEG representations [8, 9, 3]. In addition to diffusion models, AVDE introduced an autoregressive next-scale prediction approach for EEG-based visual reconstruction [6]. Nonetheless, a flow-based generative framework remains largely unexplored for EEG-to-image reconstruction.

EEG visual decoding depends strongly on how well the encoder captures temporal-frequency characteristics. Existing EEG encoders relied commonly on convolutional or Transformer-based architectures [10, 11], whereas more recent studies incorporated frequency-domain information to complement temporal EEG representations [12, 13, 9]. Recent studies have also explored multi-scale wavelet modeling and flow-based generation [14]. However, jointly modeling these representations within a unified EEG encoder remains limited, particularly for preserving multi-scale information while capturing temporal dynamics.

To address these limitations, we propose E2I-Flow, an EEG-based visual decoding and reconstruction framework that combines a unified time-frequency EEG representation with conditional flow matching (CFM). The framework first captures temporal and spectral EEG features and guide the flow matching process in the visual embedding space for image reconstruction. Our contributions are threefold: (1) a novel time-frequency EEG encoder that integrates stationary wavelet transform for multi-scale spectral modeling; (2) a bidirectional cross-attention and adaptive fusion mechanism that jointly captures spectral and temporal representations; and (3) a conditional flow matching framework that formulates EEG-to-image reconstruction as a continuous-time latent dynamical process, providing an alternative to diffusion

*Corresponding author: Chee-Ming Ting, Ting.CheeMing@monash.edu

Figure

Fig. 1: Overview of E2I-Flow. (a) EEG-image representation alignment using the time-frequency EEG encoder and a pretrained image encoder. (b) Conditional flow matching training, where the aligned EEG representation conditions the Transformer velocity model. (c) Inference through guided flow sampling followed by IP-Adapter and SDXL-Turbo for image synthesis.

and autoregressive approaches.

References (25)