Neurovascular Codes: A New Paradigm for Generating fMRI from EEG

Proposes neurovascular codes to generate fMRI from EEG and improve cross-modal reconstruction and individual recognition performance.
This paper proposes the concept of "neurovascular codes," aiming to establish a shared representation between EEG and fMRI. Methodologically, it adopts a "separate first, fuse later" strategy: independently training EEG encoders for each fMRI target, freezing them and projecting into a shared space, then conditioning on this code to generate fMRI signals from Gaussian noise via stochastic interpolation, supporting multiple response samples from the same EEG window. Evaluated on eight public synchronized EEG-fMRI datasets with 61,646 volume-level pairs, Pearson correlation improved by 19.1% and 19.8% under within-subject and held-out-subject settings respectively, and achieved the highest average accuracy in subject identity recognition validation. The study demonstrates the potential of cross-modal generative modeling, but relies on synchronously acquired data, and cross-dataset generalization and temporal precision still need validation.
Brain imaging technology has long faced a dilemma: fMRI can provide high-spatial-resolution images of brain activity, but the equipment is expensive and temporal resolution is low; EEG is portable and has high temporal resolution, yet it struggles to precisely localize deep brain sources. If fMRI could be synthesized directly from inexpensive EEG signals, it would open up entirely new possibilities for brain science research. A recent paper titled 《Learning Neurovascular Codes for EEG-to-fMRI Synthesis》 proposes the concept of "Neurovascular Codes," attempting to build a bridge of shared representation between the two modalities.

Core Idea: From Independent Encoding to Shared Representation
The key design of this work lies in "separate first, fuse later." The researchers first train an EEG encoder individually for each fMRI signal, allowing each encoder to learn the temporal and spectral features needed to predict a specific fMRI target from the same EEG window. After training, these encoders are frozen, and their concatenated hidden features are projected into a shared "neurovascular code" space.
The ingenuity of this design is that different fMRI signals correspond to different neurovascular coupling patterns; independent encoders force the model to capture these differences, while the shared encoding space preserves common information across targets. Compared to directly training an end-to-end EEG-to-fMRI model, this staged strategy reduces learning difficulty and makes the representation more interpretable.
Neurovascular coupling is the core physiological foundation of the method in this paper. It refers to the phenomenon where neuronal activity causes changes in local blood flow, blood volume, and blood oxygen levels. The BOLD signal measured by fMRI essentially reflects indirect changes in hemodynamics, while EEG directly records neural electrical activity. There is a hemodynamic delay of several seconds between the two, and the coupling strength varies across brain regions and individuals. For this reason, inferring fMRI from EEG is not a simple linear mapping but requires learning a many-to-many, delay-bearing nonlinear relationship. The independent encoder design in this paper is precisely intended to allow each encoder to adapt to the coupling pattern of a specific fMRI target, thereby capturing this heterogeneity.
Temporal and spectral features: EEG signals are typically segmented in the time domain using sliding windows, while band power (such as delta, theta, alpha, beta, gamma) is extracted via short-time Fourier transform or wavelet transform. The encoder needs to utilize both waveform timing and frequency-domain energy to predict fMRI responses. This hybrid feature input is a common practice in cross-modal mapping, because time-domain signals alone are difficult to directly correspond to low-frequency BOLD fluctuations.
Generation Mechanism: Stochastic Interpolation Brings Diversity
After obtaining the neurovascular code, the model conditions on this code and uses a stochastic interpolant to gradually transform Gaussian noise into an fMRI signal vector. This means that for the same EEG window, the model can sample different fMRI responses rather than outputting a deterministic "average answer."
This randomness aligns with physiological reality—brain responses to the same stimulus inherently fluctuate. Traditional regression-based methods often only provide conditional means, whereas generative modeling can characterize the distribution of responses, which is more valuable for downstream analyses (such as individual difference studies and brain state decoding).
Stochastic interpolant is a class of generative modeling frameworks. Its core idea is to construct a continuous probability path from a simple prior distribution (such as Gaussian noise) to the data distribution, and to achieve sampling by learning the velocity field or score function along the path. Unlike diffusion models that construct paths through discrete noising steps, stochastic interpolation allows flexible path design in continuous time, and the training objective is typically to minimize the difference between the predicted velocity field and the true path velocity. At inference, starting from Gaussian noise, samples can be generated by progressively integrating along the learned path. Due to the randomness of the path (such as random sampling of interpolation coefficients), the same conditional input can produce different generation results. This paper conditions the framework on neurovascular codes, so that the generation process maintains diversity while being constrained by EEG information.
Experimental Scale and Performance Gains
The researchers evaluated on eight public synchronized EEG-fMRI datasets, four resting-state and four task-state, totaling 61,646 volume-level paired samples. This data scale is considerable in cross-modal brain imaging research.
Under both within-subject and held-out-subject evaluation settings, the model's average Pearson correlation coefficient improved by 19.1% and 19.8% respectively compared to the strongest encoder baseline, and by 18.8% and 47.9% respectively compared to the strongest generator baseline. The improvement under the held-out-subject setting is particularly significant, indicating that the model possesses some cross-individual generalization ability rather than merely memorizing patterns from training subjects.
Pearson correlation coefficient is used here to measure the degree of linear correlation between generated fMRI signals and real fMRI signals in voxel time series, and is one of the most commonly used metrics in reconstruction tasks. However, it should be noted that Pearson correlation is insensitive to signal amplitude and can easily be dominated by low-frequency global trends—if the generated signal merely roughly fits global mean fluctuations, it may also obtain a high correlation coefficient. Therefore, this paper further introduces identity recognition evaluation precisely to compensate for the shortcomings of a single correlation coefficient metric.
Volume is the basic acquisition unit of fMRI data. One volume corresponds to one whole-brain 3D scan, typically containing dozens of slices, with temporal resolution on the order of 0.5-2 seconds. 61,646 volume-level paired samples mean that the model learned the correspondence between EEG windows and fMRI volumes at a large number of time points, and this scale represents a relatively large dataset in synchronized EEG-fMRI research.
Held-out-subject setting requires the model to be evaluated on unseen individuals, which is stricter than the within-subject setting and directly tests cross-individual generalization ability. Because different individuals differ significantly in skull thickness, brain anatomy, and neurovascular coupling parameters, cross-subject generalization has always been a difficulty in cross-modal modeling of brain imaging.
Beyond Reconstruction Accuracy: Identity Recognition Validation
Interestingly, the authors did not stop at reconstruction metrics such as correlation coefficients. They additionally used a subject identity classifier trained on real fMRI to evaluate the generated signals—if the generated fMRI retains sufficient individual specificity, the classifier should be able to identify the corresponding subject accordingly. Among all evaluated generators, this method achieved the highest average accuracy.
This evaluation perspective is quite convincing: a high correlation coefficient may come from fitting low-frequency trends, whereas identity recognition requires the generated signal to retain individual-level functional connectivity features, making it a stricter test of generation quality.
Significance and Limitations
From a methodological perspective, neurovascular codes provide a general approach to cross-modal representation learning—not pursuing a single end-to-end mapping, but allowing shared representations to emerge naturally through multi-target independent encoding followed by fusion. The authors hope this work can open new opportunities for cross-modal brain modeling.
However, the current results are still based on synchronously acquired EEG-fMRI data, and the model learns correspondences within the same time window. In real application scenarios, often only EEG is available without synchronized fMRI, so generalization ability across datasets and devices still needs further validation. In addition, neurovascular coupling itself is affected by factors such as hemodynamic delay, and the reliability of generated signals in terms of temporal precision also awaits more detailed analysis.
One-line Summary
Proposes neurovascular codes to generate fMRI from EEG and improve cross-modal reconstruction and individual recognition performance.
Paragraph Summary
This paper proposes the concept of "neurovascular codes," aiming to establish a shared representation between EEG and fMRI. Methodologically, it adopts a "separate first, fuse later" strategy: independently training EEG encoders for each fMRI target, freezing them and projecting into a shared space, then conditioning on this code to generate fMRI signals from Gaussian noise via stochastic interpolation, supporting multiple response samples from the same EEG window. Evaluated on eight public synchronized EEG-fMRI datasets with 61,646 volume-level pairs, Pearson correlation improved by 19.1% and 19.8% under within-subject and held-out-subject settings respectively, and achieved the highest average accuracy in subject identity recognition validation. The study demonstrates the potential of cross-modal generative modeling, but relies on synchronously acquired data, and cross-dataset generalization and temporal precision still need validation.
Related articles

From 0 to 1: Vibe Coding an AI Knowledge Base — A Practical Retrospective and Tech Stack Breakdown
A retrospective on building the AI knowledge base OilBook from scratch with Vibe Coding: Next.js+Neon stack, Oil Dev Skill workflow, Stripe paywall security, interview-style writing, AI-flavor control, and Vercel deployment.

GLM-5.4 Hands-On: Native Vision Meets a New Vibe Coding Workflow
Hands-on with Zhipu GLM-5.4: native vision tested across a 3D product demo, pure-code video generation, and remote-control Vibe Coding, compared with GPT-6.2 and Gemini Neon.

AI and Humans Claim to Prove the Riemann Hypothesis: Machine-Verified, Yet Nobody Can Understand It
Anthropic mathematician and AI Claude claim to prove the Riemann Hypothesis with 17 million lines of Lean code, machine-verified but unreadable by humans. This article analyzes the event, the zero proportion record from 41.6% to 67.2%, and the gap between machine verification and human understanding.