Evaluating deep transfer learning for whole-brain cognitive decoding

Armin W. Thomas, Ulman Lindenberger, Wojciech Samek, Klaus-Robert Müller

Introduction

Cognitive decoding—the ability to predict mental states from functional MRI (fMRI) data—is a cornerstone of modern neuroimaging. While deep learning (DL) models are theoretically well-suited to capture the complex, non-linear patterns of brain activity, they are often hampered by the "curse of dimensionality." fMRI datasets typically feature hundreds of thousands of voxels but only a limited number of subjects, leading to significant overfitting when training complex models from scratch.

This research evaluates the efficacy of transfer learning to overcome these data limitations. By pre-training models on large-scale, general fMRI datasets and fine-tuning them on smaller, task-specific ones, researchers can significantly enhance the performance and efficiency of whole-brain decoding.

The DeepLight Framework

The authors introduce DeepLight, a framework designed to decode cognitive states from single fMRI volumes. The study compares two primary architectures to determine the most effective way to process volumetric brain data:

  1. 2D-DeepLight: This model treats the 3D brain volume as a sequence of 2D axial slices, utilizing 2D Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) units to integrate spatial information.
  2. 3D-DeepLight: This architecture processes the volumetric data directly using 3D-CNNs, preserving the inherent spatial structure of the brain.
Comparison of 2D and 3D DeepLight architectures for processing whole-brain fMRI volumes.

Transfer Learning and Interpretability

The core of the methodology involves a two-stage pipeline. First, models are pre-trained on the Human Connectome Project (HCP) dataset, which includes 450 subjects performing various cognitive tasks. Second, these models are fine-tuned on smaller, independent datasets, such as a Working Memory task (HCP-WM) and a naturalistic Multi-task dataset.

Crucially, the framework incorporates Explainable AI (XAI) through Layer-wise Relevance Propagation (LRP). This allows researchers to "interpret" the model by mapping its decisions back to specific brain voxels, creating a feedback loop between decoding and neuroscientific understanding.

The DeepLight framework: decoding cognitive states from brain activity and interpreting model decisions using Explainable AI.

Key Findings

Performance and Data Efficiency

Pre-trained models consistently outperformed those trained from scratch. For instance, on the HCP-WM task, the pre-trained 3D-DeepLight model achieved an accuracy of 83.45%. Perhaps most impressively, the pre-trained model maintained high performance (~73% accuracy) even when trained on only 1% of the available data (roughly 4 subjects), whereas models trained from scratch failed to generalize under such constraints. The authors also found that "unfreezing" weights during fine-tuning is critical, as it allows the model to adapt its pre-trained features to the nuances of the new task.

The "Clever Hans" Effect in Brain Mapping

The use of XAI revealed a fascinating phenomenon: the models often identified cognitive states using counterintuitive signals. While traditional statistical methods (like the General Linear Model) focus on regions that "light up" or increase in activity, DL models learned to utilize regions that were consistently less active during a specific task compared to others. For example, the model might use the relative inactivity of the prefrontal cortex to help identify a motor task—a biologically valid signal that looks contradictory to standard fMRI maps at first glance.

Conclusion

Deep transfer learning represents a significant leap forward for fMRI research, offering a path to high-performance decoding even with small sample sizes. However, the study also serves as a cautionary tale regarding interpretability. Because DL models can find multiple valid mathematical solutions to the same decoding problem, their learned brain maps should be viewed as one possible representation rather than an absolute biological truth. Future work integrating temporal dynamics through recurrent layers may further refine these models.

Summary updated

BibTeX
@article{thomas2021evaluating,
  author = {Armin W. Thomas and Ulman Lindenberger and Wojciech Samek and Klaus-Robert Müller},
  title = {{Evaluating deep transfer learning for whole-brain cognitive decoding}},
  journal = {J. Frankl. Inst.},
  year = {2021},
  doi = {10.1016/j.jfranklin.2023.07.015},
}
Figure