Transferring Models Trained on Natural Images to 3D MRI via Position Encoded Slice Models

Umang Gupta, Tamoghna Chattopadhyay, Nikhil J. Dhinagar, Paul M. Thompson, Greg Ver Steeg

Introduction

Deep learning has revolutionized computer vision, largely driven by the availability of massive datasets like ImageNet. However, in neuroimaging, the scarcity of large-scale labeled datasets remains a significant bottleneck. Researchers often face a dilemma: use 2D models pretrained on natural images (which lack 3D context) or train 3D models from scratch (which are prone to overfitting and computationally expensive). This paper investigates a hybrid approach: the 2D-Slice-CNN, which leverages the feature-extraction power of 2D models pretrained on natural images while maintaining the spatial integrity of 3D MRI scans through positional encodings.

Methodology

The proposed architecture treats a 3D MRI volume as a sequence of 2D slices. The pipeline consists of four primary stages:

  1. Slice Encoding: The 3D volume is decomposed into individual 2D slices. Each slice is processed by a 2D encoder—specifically ResNet-18 or ResNet-50 architectures.
  2. Transfer Learning: To overcome the data scarcity in medical imaging, the 2D encoders are initialized with weights pretrained on the ImageNet-1K dataset. This allows the model to utilize low-level features (edges, textures) learned from millions of natural images.
  3. Positional Encoding: Standard slice aggregation methods are often permutation-invariant, meaning they ignore the spatial order of the slices. To preserve the 3D structure, the authors introduce trainable positional encoding vectors. These vectors are added to the slice embeddings, providing the model with the necessary context regarding the anatomical location of each slice.
  4. Aggregation and Prediction: The encoded slice representations are aggregated (using mean pooling or self-attention) into a global feature vector, which is then used for downstream tasks such as regression (brain age) or classification (Alzheimer’s disease).

Experimental Evaluation

The researchers evaluated the 2D-Slice-CNN on two benchmark neuroimaging tasks:

  • Brain Age Prediction: Using the UK Biobank dataset (~10,446 healthy scans), the model was tasked with predicting chronological age based on structural MRI.
  • Alzheimer’s Disease (AD) Detection: Using the ADNI dataset (4,561 scans), the model classified scans as either Alzheimer’s Disease or healthy controls.

Results and Discussion

The experiments yielded several key insights into the efficacy of transfer learning for 3D medical data:

2D Pretraining vs. 3D Scratch Training

The results demonstrated that 2D models pretrained on natural images can outperform 3D models trained from scratch. In the brain age prediction task, the pretrained 2D-ResNet-18 achieved a Mean Absolute Error (MAE) of 2.715 years, surpassing the 3D-CNN baseline of 2.792 years. Similarly, for AD detection, the 2D-ResNet-18 reached a balanced accuracy of 88.60%, compared to 88.40% for the 3D-CNN.

The Universality of Natural Image Features

A surprising finding was the "universality" of features learned from ImageNet. Despite the vast domain gap between everyday objects and brain anatomy, the filters learned on natural images provided a superior starting point compared to random initialization. This suggests that the inductive bias provided by large-scale 2D pretraining is more beneficial than the native 3D architecture when training data is limited.

The Role of Spatial Context

The inclusion of positional encodings proved vital for tasks where localized pathology is significant. For AD detection, adding positional encodings to a non-pretrained ResNet-18 improved accuracy from 84.61% to 86.55%. This confirms that restoring the spatial relationships between slices allows the model to better identify regional brain changes associated with disease.

Conclusion

This study demonstrates that 2D-Slice-CNNs with positional encodings offer a powerful and efficient alternative to 3D-CNNs for neuroimaging. By successfully transferring knowledge from natural images to the medical domain, the researchers have provided a framework for high-performance modeling on relatively small 3D datasets. Future work will explore the potential of self-supervised pretraining on large-scale medical 2D datasets to further bridge the domain gap and refine the placement of positional encodings within the network architecture.

Summary updated

BibTeX
@inproceedings{gupta2023transferring,
  author = {Umang Gupta and Tamoghna Chattopadhyay and Nikhil J. Dhinagar and Paul M. Thompson and Greg Ver Steeg},
  title = {{Transferring Models Trained on Natural Images to 3D MRI via Position Encoded Slice Models}},
  booktitle = {ISBI},
  year = {2023},
  doi = {10.1109/isbi53787.2023.10230660},
}
Figure