Does Medical Imaging learn different Convolution Filters?

Paul Gavrikov, Janis Keuper · DOI

Abstract

This study investigates whether convolutional neural networks (CNNs) trained on medical imaging data learn domain-specific feature extractors. By analyzing $3 \times 3$ filter distributions across various architectures and datasets, we find that previously observed "spikey" distributions are primarily artifacts of specific architectural choices and over-parameterization rather than inherent properties of medical data. Our results demonstrate that standardized architectures learn filters remarkably similar to those trained on natural images, validating the use of general-purpose pre-training for clinical applications.

Introduction

In deep learning, a recurring question is whether models trained on specialized domains, such as medical imaging, develop unique feature extractors compared to those trained on natural images (e.g., ImageNet). Previous research utilizing the CNN Filter DB suggested that medical models were outliers, exhibiting "spikey" filter distributions where weights cluster around specific values. This raised concerns that standard pre-training might be suboptimal for clinical tasks. This paper re-examines these claims to determine if these differences stem from the data domain or architectural configurations.

Methods

The authors analyzed $3 \times 3$ convolution filters from a diverse set of pre-trained medical and non-medical models. The analytical framework included:

  • SVD-Decomposition: Projecting high-dimensional filter weights into a common basis for direct comparison.
  • Kernel Density Estimation (KDE): Visualizing the "shape" of filter coefficient distributions to identify "spikiness."
  • Kullback-Leibler (KL) Divergence: Quantifying the statistical distance between filter distributions across different models.
  • Pairwise Heatmaps: Comparing architectures (UNet, DenseNet) across datasets (medical, natural, seismic) to isolate the drivers of distribution shifts.

Datasets

The study leveraged models from the CNN Filter DB, including:

  • Medical Imaging: OASIS (MRI), LTRC & Proprietary CT (LungMask UNet), and TorchXRayVision (DenseNet-121 on MIMIC-CXR, NIH, CheXpert, RSNA).
  • Baselines: Models trained on ImageNet (natural images), Kaggle Carvana (car segmentation), and seismic data (Dutch F3).

Results and Insights

Architecture vs. Domain

The investigation revealed that "spikey" distributions are largely a byproduct of specific architectures rather than medical data itself. For instance, the CompNet architecture, which includes an auto-encoder branch, learns "binary-like" filters (weights near 0 or 1), creating prominent spikes in KDE plots.

KDE plots of filter coefficients showing distribution shapes across different models and architectures.

The Impact of Over-parameterization

Analysis of a ResNet50 model trained on high-resolution ($512 \times 512$) medical images showed extreme sparsity, with nearly 99% of its filters effectively zero. This suggests that the perceived uniqueness of some medical filters may simply be a result of models being vastly over-parameterized for their specific tasks, rather than learning specialized medical features.

Cross-Domain Similarity

When using standardized architectures like UNet or DenseNet-121, the filters learned on medical data were found to be remarkably similar to those learned on natural images. As shown in the KL divergence heatmaps, the shifts between medical and natural domains are minimal compared to other domains.

KL Divergence heatmaps for UNet and DenseNet121 architectures, illustrating the similarity between medical and natural image filters compared to seismic data.

Interestingly, the most significant outlier was seismic data, which produced representations distinct from both natural and medical domains, suggesting that seismic imaging requires more specialized feature extraction than medical imaging.

Discussion and Conclusion

The findings strongly support the "pre-train anywhere" hypothesis for medical AI. Since low-level features like edges and textures are consistent across medical and natural domains in standard architectures, ImageNet pre-training remains a robust strategy.

However, the study is limited by the current availability of pre-trained medical models. Future research could investigate discrete or binary search spaces, potentially leveraging the "binary-like" filter tendencies observed in some models to create more efficient, data-frugal clinical tools.

Summary updated

BibTeX
@misc{gavrikov2022does,
  author = {Paul Gavrikov and Janis Keuper},
  title = {{Does Medical Imaging learn different Convolution Filters?}},
  year = {2022},
  eprint = {2210.13799},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.13799},
}
Figure