A generative framework for unified representations bridging electrophysiological and haemodynamic brain activity
Authors: Weiheng Yao, Changhong Jing, Xuhang Chen, Chi-Man Pun, Michael Kwok-Po Ng, Shuqiang Wang
Organizations: Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen, 518055, Guangdong, China. · Department of Computer and Information Science, University of Macau, Macau, 999078, China. · Department of Mathematics, Hong Kong Baptist University, Hong Kong, 999077, China.
Electrophysiological and haemodynamic recordings resolve brain activity at complementary temporal and spatial scales, yet paired acquisition remains difficult to scale. We propose a generative framework that aligns paired multimodal recordings in a unified representation space and generates modality-specific haemodynamic responses from EEG. In paired cohorts, the framework generated fMRI BOLD and fNIRS haemoglobin responses that reproduced regional dynamics, cortical maps, functional connectivity and task structure. Generated BOLD followed Real BOLD time courses and cortical patterns, while Generated haemoglobin responses tracked task-evoked HbO and HbR dynamics. The framework enabled decoding across visual, motor-imagery and mental-arithmetic tasks, independent-record decoding, external BOLD localization and low-sample augmentation. Paired feature-space calibration supported bidirectional retrieval. The proposed framework extends cortical analysis and brain decoding to EEG recordings when Real haemodynamic data are sparse.
Figures & tables
Figure 1: Generative framework for unified representations bridging electrophysiological and haemodynamic brain activity. a, EEG records scalp electrical potentials, fMRI detects BOLD contrast through magnetic resonance, and fNIRS estimates HbO and HbR responses through optical absorption. The anatomical surface of the head was adapted from Servier Medical Art by Servier under the Creative Commons Attribution 3.0 Unported licence. b, Pre-trained feature extraction models and modal patch embedders project electrophysiological and haemodynamic inputs into heterogeneous spaces. Hyperdimensional integration aligns these spaces in a conjugate representation. A generative model within the unified representation module produces target-domain codes, and modal unpatchers project the codes back to fMRI BOLD and fNIRS haemoglobin outputs. c, Generated BOLD reproduces spatiotemporal cortical activity patterns and follows Real BOLD time courses more closely than noise controls. Spatial Pearson r and the structural similarity index measure cortical-map correspondence. d, Downstream applications include brain decoding, data-imbalance mitigation and missing-modality completion.
Figure 2: BOLD generation captures response dynamics and task structure. a, Generated BOLD maps at 6 and 10 s are displayed alongside Real fNIRS haemoglobin response fields averaged over 5 to 7 and 9 to 11 s, respectively. b, Real BOLD and Generated BOLD time courses are shown in occipital and precuneus regions from three participants. c, Temporal Pearson r compares Generated BOLD with shifted-input, phase-randomized and shuffled-pair controls. d, Generated minus control differences quantify gains attributable to the calibrated source-target pairing. e, Regional-relative r evaluates structure beyond a shared global component. f, Whole-signal temporal standard deviation compares Real BOLD and Generated BOLD. g, ROI-level temporal standard deviation compares Real BOLD and Generated BOLD in two representative regions. h, Balanced accuracy compares Real BOLD features, Generated BOLD features and shuffled BOLD features in the same decoding analysis. Panels c to f and h summarize 21 participants, and panel g summarizes 141 recordings. Boxes show median, interquartile range and 1.5-IQR whiskers. Two-sided participant-level sign-flip tests with Holm correction were used for paired contrasts. Stars denote corrected significance levels with ∗P<0.05 , ∗∗P<0.01 , ∗∗∗P<0.001 and ∗∗∗∗P<0.0001 .
Figure 3: Generated BOLD supports cortical mapping and connectome analysis. a, Key regions from Real BOLD maps, Generated BOLD maps and their shared overlap are shown for four tasks. b, Cortical functional-connectivity profiles compare Real-Generated correspondence with the Real-noise reference. c, Real BOLD cortical activity maps and Generated BOLD cortical activity maps are displayed in lateral and medial views for three participants. d, Real BOLD functional-connectivity matrices and Generated BOLD functional-connectivity matrices are shown for the same participants. e, SHAP values summarize frequency-band contributions to visual-task decoding from band-conditioned Generated BOLD. Boxes show median, interquartile range and 1.5-IQR whiskers.
Figure 4: Haemoglobin generation supports task-evoked fNIRS analysis and paired target-domain use. a, Real fNIRS haemoglobin waveforms and Generated fNIRS haemoglobin waveforms show response correspondence for left motor imagery and right motor imagery in HbO and HbR. Correlations between Real fNIRS and noise provide the reference control. b, Generated fNIRS haemoglobin response fields align with Real BOLD activation patterns across Tasks 5 to 8. c, Balanced accuracy compares Real, cross-shuffle, within-shuffle, EEG template and Generated conditions for motor imagery and mental arithmetic. d, Spatial Pearson r quantifies motor-imagery and mental-arithmetic response-map correspondence. e, Recall at rank 1 evaluates paired retrieval between EEG features and the BOLD response space or the haemoglobin response space. f, Empirical coverage evaluates calibrated prediction intervals in the BOLD and haemoglobin response spaces. g, Balanced accuracy evaluates cross-domain decoding across the same feature and response spaces. E, B and N denote EEG, BOLD and fNIRS haemoglobin spaces. Boxes show median, interquartile range and 1.5-IQR whiskers. Paired response contrasts used two-sided participant-level sign-flip tests. Retrieval and directional decoding used one-sided condition-matched null tests. Holm correction was applied within each analysis family. Stars denote corrected significance levels with ∗P<0.05 , ∗∗P<0.01 , ∗∗∗P<0.001 and ∗∗∗∗P<0.0001 .
Figure 5: Generated target-domain features support calibrated decoding and localization. a, Four-condition visual-task accuracy compares EEG features, Generated BOLD features, EEG features combined with Generated BOLD features and Real BOLD features under correct and permuted labels in 19 participants. The dotted line denotes 25% chance. b, Three-condition independent-record accuracy compares the same feature sets under correct and permuted labels in 20 participants. The dotted line denotes 33.3% chance. c, An external localization application displays representative BOLD response regions obtained by applying a NODDI-trained EEG-fMRI interface to Parkinson EEG inputs. Boxes show median, interquartile range and 1.5-IQR whiskers. Violins show participant distributions, with internal lines marking the median and quartiles. Correct-label and permuted-label contrasts used two-sided participant-level sign-flip tests with Holm correction. Stars denote corrected significance levels with ∗P<0.05 , ∗∗P<0.01 , ∗∗∗P<0.001 and ∗∗∗∗P<0.0001 .
Figure 6: Generated target-domain augmentation improves low-sample brain decoding. a to d, Target-class F1 is shown for Task 5, Task 6, Task 7 and Task 8, respectively, under imbalanced training, Generated augmentation, class weighting, jittering and class template augmentation. Each scenario starts from a low-sample target task and matched higher-sample non-target tasks. e, Generated minus imbalanced differences summarize target-class F1 gains in percentage points for Task 5 to Task 8 in the same order. f, Precision compares imbalanced and Generated training for each task. Violins show participant distributions, with dashed lines marking the median and quartiles. Boxes show median, interquartile range and 1.5-IQR whiskers. Generated and imbalanced conditions were compared with two-sided participant-level sign-flip tests and Holm correction. Stars denote corrected significance levels with ∗P<0.05 , ∗∗P<0.01 , ∗∗∗P<0.001 and ∗∗∗∗P<0.0001 .
In this paper, we introduce Neurovascular Codes as shared EEG representations for fMRI generation. We first train a separate EEG encoder to predict each fMRI signal, learning target-specific temporal and spectral features from the same EEG window. After training, we freeze the encoders and project their concatenated hidden features into a shared neurovascular code. Conditioned on this code, stochastic interpolant transforms Gaussian noise into a vector of fMRI signals, allowing different responses to be sampled for the same EEG window. We evaluate our approach on eight public simultaneous EEG-fMRI datasets, including four resting-state and four task-based datasets with 61,646 volume-level pairs. Under within-subject and held-out-subject evaluation, our model improves average Pearson correlation over the strongest encoder baselines by 19.1% and 19.8%, respectively. The corresponding improvements over the strongest generator baselines are 18.8% and 47.9%. Beyond reconstruction accuracy, we also evaluate the generated signals using subject-identification classifiers trained on real fMRI. Our method achieves the highest mean accuracy among the evaluated generators. We hope that our work opens up new opportunities for cross-modal brain modeling.
Yiming Sun, Yifan Wang, Aosong Feng +11
Stony Brook University · University of Toronto · Yale University +3
Real-world vision is dynamic and scene-rich, while EEG and fMRI resolve it at complementary temporal and spatial scales. Most neural decoding systems, however, align one modality in isolation and mostly against static images or short clips. We study the synchronized case: EEG and fMRI are recorded during the same long-form naturalistic viewing, giving a shared stimulus but also recurring narrative context and many semantically similar candidates. We present BrainBind, a framework that maps synchronized EEG and fMRI into frozen long-form video embedding spaces and treats those spaces as common visual-semantic references, not literal neural codes. On CineBrain, a five-seed Recall@K 2 x 4 matrix across two video anchors and four system configurations shows distinct retrieval profiles. With Omni, fMRI organizes the full candidate list most strongly (MRR = 23.82, nDCG@10 = 25.31), while Joint-Dual gives the highest mean label-aware R@1 (13.52%) with a distinct rank-wide profile. The complementary episode-disjoint evaluation quantifies the contribution of repeated stimulus identity and narrative context to the random split. Across these experiments, proxy choice and system configuration produce distinct top-rank and rank-wide retrieval profiles within the present synchronized dataset. The code is available at https://github.com/Forainest789/Brainbind.
Shixiao Wang, Rining Wu, Jian K. Liu
School of Computer Science, Center for Human Brain Health, University of Birmingham, UK · School of Computer Science, University of Leeds, UK
Capturing dynamic spatiotemporal neural activity is essential for understanding large-scale brain mechanisms. Functional magnetic resonance imaging (fMRI) provides high-resolution cortical representations that form a strong basis for characterizing fine-grained brain activity patterns. The high acquisition cost of fMRI limits large-scale applications, therefore making high-quality fMRI reconstruction a crucial task. Electroencephalography (EEG) offers millisecond-level temporal cues that complement fMRI. Leveraging this complementarity, we present an EEG-conditioned framework for reconstructing dynamic fMRI as continuous neural sequences with high spatial fidelity and strong temporal coherence at the cortical-vertex level. To address sampling irregularities common in real fMRI acquisitions, we incorporate a null-space intermediate-frame reconstruction, enabling measurement-consistent completion of arbitrary intermediate frames and improving sequence continuity and practical applicability. Experiments on the CineBrain dataset demonstrate superior voxel-wise reconstruction quality and robust temporal consistency across whole-brain and functionally specific regions. The reconstructed fMRI also preserves essential functional information, supporting downstream visual decoding tasks. This work provides a new pathway for estimating high-resolution fMRI dynamics from EEG and advances multimodal neuroimaging toward more dynamic brain activity modeling.
Wanying Qu, Jianxiong Gao, Wei Wang +1
Fudan University · Southern University of Science and Technology · Shanghai Innovation Institute