This repository contains demo code for the paper:
Ken Shirakawa, Yoshihiro Nagano, Misato Tanaka, Shuntaro C. Aoki, Yusuke Muraki, Kei Majima, and Yukiyasu Kamitani, "Spurious reconstruction from brain activity" (arXiv).
To clone this repository on your local machine, use the following git clone
command with the project URL:
git clone https://github.com/KamitaniLab/spurious_reconstruction.git
The environment for this project was created using Rye. To set it up, follow the official instructions to install Rye. After installation, you can synchronize the environment for this repository using:
cd spurious_reconstruction
rye sync
We are currently preparing to share the preprocessed data and files. These files will be made available on Figshare at this URL.
Reproducing the full analysis requires a large amount of data (approximately 3TB) and some analyses take considerable time to complete (up to ~2 weeks). Therefore, we recommend downloading only the minimum necessary files to reproduce specific analysis, such as image reconstruction, UMAP results or simulation analysis.
For example, if you want to reproduce the UMAP results (related to Figure 4), you can download the required data by running the following command:
python ./download.py "UMAP visualization analysis"
Alternatively, you can directly download the results of UMAP analysis with:
python ./download.py "UMAP visualization results"
Note: At the moment, only the download of result data is supported. Please wait a little longer for the availability of analysis data.
Each analysis directory contains additional information on how to reproduce the corresponding results. Please check the README files within each directory for specific instructions.
We used publicly available datasets for this project. The key datasets are:
-
NSD (Natural Scenes Dataset)
- Raw fMRI data (including visual images and text annotations): Available upon request via Spurious Reconstruction@figshare.
-
Deep Image Reconstruction
- Raw fMRI data: Available from OpenNeuro.
- Preprocessed fMRI data, DNN features extracted from images, and decoded DNN features: Available via Deep Image Reconstruction@figshare.
- Visual images: Available upon request via this form.
- Text annotations: Available from GOD Stimuli Annotations.
If you want to fully reproduce the analysis, you can use these brain data, image stimuli and corresponding text annotations.