DCNN-GAN: Reconstructing Realistic Image from fMRI

Yunfeng Lin, Jiangbei Li, Hanjing Wang

TL;DR

This paper introduces DCNN-GAN, a novel deep learning architecture that reconstructs realistic images from human fMRI data. By combining a feature extraction network with a Generative Adversarial Network (GAN), DCNN-GAN significantly improves the quality and realism of reconstructed images compared to previous methods, achieving near real-time performance.

What Problem Does This Paper Address?

The core challenge this paper tackles is reconstructing visually recognizable and realistic images from human functional Magnetic Resonance Imaging (fMRI) data. fMRI captures brain activity by measuring blood-oxygen-level-dependent (BOLD) signals, which are indirect indicators of neural activity. While fMRI data can be used to infer what a person is seeing or imagining, this process is fraught with difficulties:

  • High Dimensionality and Complexity: fMRI data is massive and has a complex, high-dimensional structure.
  • Limited Data: The number of available fMRI samples for a given individual is often small relative to the data's complexity.
  • Indirect Measurement: fMRI signals are noisy and don't directly map to visual features.
  • Previous Limitations: Earlier methods struggled to produce detailed and realistic images, often resulting in blurry or abstract representations that lacked fine textures and semantic accuracy. Some methods focused on specific image categories, limiting their generality.

Methods

The proposed DCNN-GAN model is a multi-stage approach:

  1. Hierarchical Feature Extraction (Encoder Network E): The authors leverage a pre-trained VGG-19 convolutional neural network (CNN) to extract hierarchical visual features from input images. This encoder maps an image x to a feature vector z and also captures categorical information c. To manage computational cost and improve decoding accuracy, they use the output of the first fully connected layer (fc-7), which has a dimension of 4096.
  2. fMRI Decoder (Df): This component learns the mapping from fMRI data X to the extracted visual features z. Crucially, they employ a Ridge regression model (linear regression with L2 regularization) for this mapping. This is an improvement over previous methods that used ordinary least squares, as Ridge regression offers better numerical stability, especially with limited fMRI samples.
  3. DCNN-GAN (Reconstruction Network R + GAN): This is the core of the image generation process.
  4. Reconstruction Network (R): A deconvolutional network takes the decoded feature vector z and generates a coarse, initial reconstruction of the image.
  5. Generative Adversarial Network (GAN): A conditional GAN (specifically, inspired by pix2pix) then takes this coarse image and the categorical information c to generate a more refined and realistic output image x'. The GAN's generator G aims to produce realistic images, while the discriminator D tries to distinguish between real and generated images.

The overall objective function combines losses from the reconstruction network (L2 loss), the conditional GAN (log-likelihood), and a traditional L1 loss to encourage pixel-wise similarity between the generated and target images.

Datasets

  • ILSVRC2012: Used for training the encoder network (VGG-19) and for training the DCNN-GAN. This dataset is a subset of ImageNet, containing 1.2 million training images across 1000 object categories.
  • fMRI on ImageNet: This dataset, originally used in prior work, contains fMRI data recorded while subjects viewed object images. The authors specifically used data from the visual cortex (VC) region during an image presentation experiment. The dataset consists of 2700 fMRI samples with 4466 voxels in the VC region.

Key Insights and Ideas

  • GANs for Realism: The paper highlights that while CNNs can extract semantic features from fMRI, generating truly realistic images requires incorporating image priors. GANs, by learning the distribution of natural images, are instrumental in adding fine details and textures that are otherwise lost in the decoding process.
  • Category-Specific Priors: Using categorical information c from the encoder as input to the GAN allows it to generate images that are not only visually plausible but also semantically consistent with the image's category. This is a significant step beyond reconstructing generic shapes.
  • Ridge Regression for Stability: The adoption of Ridge regression for the fMRI decoder is a practical improvement that addresses the numerical instability issues encountered with simpler linear models when dealing with high-dimensional fMRI data and limited samples.
  • Real-time Reconstruction: The DCNN-GAN architecture is designed to achieve near real-time reconstruction, making it more practical for applications compared to slower iterative methods.

Key Results

  • Improved Reconstruction Quality: Both quantitative metrics (R-squared, RMSE) and qualitative human assessments show that DCNN-GAN significantly outperforms previous models in reconstructing realistic images from fMRI.
  • Decoding Accuracy: The Ridge regression decoder achieved a higher R-squared value (0.3184 vs. -0.3093) and a lower RMSE (0.3614 vs. 0.4960) compared to a linear regression model, indicating more accurate fMRI decoding.
  • Human Perceptual Study: In a double-blind study, 55.7% of volunteers preferred images reconstructed by DCNN-GAN over previous methods, and 20.1% found the DCNN-GAN reconstructions satisfying, compared to 12.4% for the existing model.
  • Efficiency: The method achieves real-time reconstruction, a notable advantage.

Limitations and Future Work

  • Generalization to Unseen Categories: The authors acknowledge that while their method reconstructs various categories, it is trained on specific categories. A future direction is to reconstruct realistic images of categories that do not exist in the training set.
  • Holistic Evaluation: While a perceptual study was conducted, evaluating the quality of reconstructed images remains an open problem, as traditional metrics struggle with complex structural and textural information.

Summary updated

Abstract

Visualizing the perceptual content by analyzing human functional magnetic resonance imaging (fMRI) has been an active research area. However, due to its high dimensionality, complex dimensional structure, and small number of samples available, reconstructing realistic images from fMRI remains challenging. Recently with the development of convolutional neural network (CNN) and generative adversarial network (GAN), mapping multi-voxel fMRI data to complex, realistic images has been made possible. In this paper, we propose a model, DCNN-GAN, by combining a reconstruction network and GAN. We utilize the CNN for hierarchical feature extraction and the DCNN-GAN to reconstruct more realistic images. Extensive experiments have been conducted, showing that our method outperforms previous works, regarding reconstruction quality and computational cost.
BibTeX
@inproceedings{lin2019dcnn,
  author = {Yunfeng Lin and Jiangbei Li and Hanjing Wang},
  title = {{DCNN-GAN: Reconstructing Realistic Image from fMRI}},
  booktitle = {MVA},
  year = {2019},
  url = {https://openreview.net/forum?id=fswA0ZENsA},
}
Figure