Skip to content
/ RNC Public

Algorithms to investigate (through neural control) the representational relationships between univariate or multivariate in silico fMRI responses of multiple visual areas of the brain.

License

Notifications You must be signed in to change notification settings

gifale95/RNC

Repository files navigation

In silico discovery of representational relationships across visual cortex

Here we provide the code to reproduce all results from the paper:
"In silico discovery of representational relationships across visual cortex".
Alessandro T. Gifford, Maya A. Jastrzębowska, Johannes J.D. Singer, Radoslaw M. Cichy

📄 Paper abstract

Human vision is mediated by a complex interconnected network of cortical brain areas that jointly represent visual information. While these areas are increasingly understood in isolation, their representational relationships remain elusive. Here we developed relational neural control (RNC), and used it to investigate the representational relationships for univariate and multivariate fMRI responses of areas across visual cortex. Through RNC we generated and explored in silico fMRI responses for large amounts of images, discovering controlling images that align or disentangle responses across areas, thus indicating their shared or unique representational content. This revealed a typical network-level configuration of representational relationships in which shared or unique representational content varied based on cortical distance, categorical selectivity, and position within the visual hierarchy. Closing the empirical cycle, we validated the in silico discoveries on in vivo fMRI responses from independent subjects. Together, this reveals how visual areas jointly represent the world as an interconnected network.

🌓 RNC variants

We developed two RNC variants:

  • Univariate RNC controls univariate fMRI responses (i.e., responses averaged over all voxels within an ROI), thus exploring representational relationships for visual information encoded in the strongest activation trends common across all ROI voxels.

  • Multivariate RNC controls multivariate fMRI responses (i.e., population response of all voxels within a ROI), thus exploring representational relationships for visual information encoded in the multi-voxel response patterns.

🚀 RNC tutorials

We created interactive tutorials where you can implement univariate and multivariate RNC on in silico fMRI responses of 23 areas spanning the entire visual cortex for ~150,000 naturalistic images: 73,000 images from the Natural Scenes Dataset (Allen et al., 2022); 50,000 images from the ImageNet 2012 Challenge (Russakovsky et al., 2015); 26,107 images from the THINGS Database (Hebart et al., 2019).

These tutorials are available on either Google Colab (univariate RNC, multivariate RNC) or Jupyter Notebook (univariate RNC, multivariate RNC).

♻️ Reproducibility

⚙️ Installation

This repository contains code to reproduce all paper's results.

To run the code, you first need to install the libraries in the requirements.txt file within an Anaconda environment. Here, we guide you through the installation steps.

First, create an Anaconda environment with the correct Python version:

conda create -n rnc_env python=3.9

Next, download the requirements.txt file, navigate with your terminal to the download directory, and activate the Anaconda environment previously created with:

source activate rnc_env

Now you can install the libraries with:

pip install -r requirements.txt

Finally, you also need to install the NEST Python package (version 0.3.7) with:

pip install -U git+https://github.com/gifale95/NEST.git@0.3.7

🧰 Data

To run the code you will need to download the following:

📦 Code description

❗ Issues

If you experience problems with the code, please get in touch with Ale (alessandro.gifford@gmail.com), or submit an issue.

📜 Citation

If you use any of our data or code, please cite:

About

Algorithms to investigate (through neural control) the representational relationships between univariate or multivariate in silico fMRI responses of multiple visual areas of the brain.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published