THINGSvision: a Python toolbox for streamlining the extraction of activations from deep neural networks
Abstract
Over the past decade, deep neural network (DNN) models have received a lot of attention due to their near-human object classification performance and their excellent prediction of signals recorded from biological visual systems. To better understand the function of these networks and relate them to hypotheses about brain activity and behavior, researchers need to extract the activations to images across different DNN layers. The abundance of different DNN variants, however, can often be unwieldy, and the task of extracting DNN activations from different layers may be non-trivial and error-prone for someone without a strong computational background. Thus, researchers in the fields of cognitive science and computational neuroscience would benefit from a library or package that supports a user in the extraction task. THINGSvision is a new Python module that aims at closing this gap by providing a simple and unified tool for extracting layer activations for a wide range of pretrained and randomly-initialized neural network architectures, even for users with little to no programming experience. We demonstrate the general utility of THINGsvision by relating extracted DNN activations to a number of functional MRI and behavioral datasets using representational similarity analysis, which can be performed as an integral part of the toolbox. Together, THINGSvision enables researchers across diverse fields to extract features in a streamlined manner for their custom image dataset, thereby improving the ease of relating DNNs, brain activity, and behavior, and improving the reproducibility of findings in these research fields.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 45
- FWCI
- 2.34
- Field percentile
- top 11%
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- DNNBrain: a unifying toolbox for mapping deep neural networks and brains
Xiayu S. Chen, Ming Quan Zhou, … Jia Liu B·Frontiers in Computational NeurosciencePeer-reviewed·Nov 30, 2020
- TorchLens: A Python package for extracting and visualizing hidden activations of PyTorch models
JohnMark Taylor, Nikolaus Kriegeskorte·bioRxiv·Mar 16, 2023
- Deep Neural Networks In Computational Neuroscience
Tim Christian Kietzmann, Patrick McClure, Nikolaus Kriegeskorte·Oxford Research Encyclopedia of NeurosciencePeer-reviewed·Jan 25, 2019
- Task-specific vision models explain task-specific areas ofvisual cortex
Kshitij Dwivedi, Gemma Roig·bioRxiv·Aug 28, 2018
- Human visual cortex and deep convolutional neural network care deeply about object background
Jessica Loke, Noor Seijdel, … H. Steven Scholte·Journal of Cognitive NeurosciencePeer-reviewed·Jan 1, 2024
- Neural dynamics of real-world object vision that guide behaviour
Radoslaw Martin Cichy, Nikolaus Kriegeskorte, … Ian Charest·bioRxiv·Jun 8, 2017