Understanding anatomy classification through attentive response maps

Devinder Kumar, Vlado Menkovski, Graham W. Taylor, Alexander Wong

TL;DR

This paper introduces "attentive response maps" to peek inside the black box of convolutional neural networks (CNNs) trained on medical X-rays. By leveraging fractionally strided convolutions, the authors visualize exactly which anatomical structures drive the network's decisions. Their findings reveal that high test accuracy can be deceptive: only sufficiently deep networks trained with robust data augmentation actually learn to rely on the same clinical landmarks that human radiologists use.

What Problem Does This Paper Address?

Deep learning models excel at medical image classification, but their "black-box" nature remains a major barrier to clinical adoption. In healthcare, a high-performing model that arrives at a correct diagnosis for the wrong reasons is dangerous. Clinicians need to understand the model's reasoning to trust its decisions and identify underlying biases (such as a model classifying an image based on a hospital-specific scanner artifact rather than actual pathology).

While several visualization techniques exist to map model sensitivity, many fail to provide clear, localized representations when dealing with a large number of distinct classes. This paper addresses the challenge of generating human-interpretable visual explanations specifically for complex anatomy classification tasks.

Methods

The authors propose a framework to generate Attentive Response Maps by projecting internal network activations back into the original image space.

Overview of the proposed visualization framework

The process works as follows:

  1. Forward Pass: An X-ray image is fed through a trained CNN to generate a classification prediction.
  2. Backward Projection: The top-$n$ ($n=25$) most highly activated units from the last convolutional layer are selected. Using a fractionally strided convolution technique (often referred to as transposed convolution or deconvolution), these feature maps are projected back to the input image dimensions.
  3. Dominant Map Computation: Instead of simply averaging the maps, the authors compute a dominant attentive response map by taking the maximum activation value across all $n$ individual maps for each pixel: $$\hat{D}(x) = \arg\max_{f} R(x|f)$$
  4. Overlay: This final map is overlaid onto the original X-ray, highlighting the exact boundaries and regions that dominated the network's decision-making process.

To evaluate how network design impacts this reasoning, the authors compared three distinct architectures: a Shallow CNN, a Deeper CNN without data augmentation, and a Deeper CNN with data augmentation.

Datasets

The models were trained and evaluated using radiographs from the ImageClef 2009 - Medical Image Annotation task.

  • Preprocessing: The authors removed the dataset's hierarchical class structure and excluded classes with fewer than 50 examples to ensure uniform training.
  • Final Dataset: This left 24 unique anatomical classes (e.g., foot, knee, hand, cranium, thoracic spine) spanning 14,676 X-ray images. The data was split into 90% for training and 10% for testing.

Key Insights and Ideas

  • High Accuracy $\neq$ Correct Reasoning: A model can achieve high test accuracy while looking at completely irrelevant parts of an image. Saliency maps are crucial for verifying why a model succeeds.
  • Capacity Dictates Focus: Shallow networks lack the capacity to learn specific anatomical landmarks. Their attentive maps show broad, unspecific blurs rather than distinct structural outlines.
  • Data Augmentation Drives Expert Alignment: The most striking insight is that data augmentation (rotation, shearing, translation, etc.) does more than just prevent overfitting—it fundamentally alters what the network learns. It forces the deep network to abandon shortcut background features and focus tightly on bone outlines and joint spaces, mimicking human expert behavior.
  • Debugging Model Bias: The framework successfully exposes failure modes. When a model misclassifies an image, the attentive response maps reveal if it was tripped up by an artifact or an anomalous signal outside the true region of interest.

Key Results

The authors provided both quantitative performance metrics and qualitative visual validations:

Quantitative Performance

As shown in the paper's evaluation, adding depth and data augmentation drastically improves classification accuracy:

  • Shallow Net: 71.1% accuracy
  • Deeper Net (No Augmentation): 90.36% accuracy
  • Deeper Net + Data Augmentation: 95.62% accuracy

Qualitative Alignment

  • Deeper Net + Data Augmentation: The attentive response maps closely matched established medical radiology literature. For instance, when identifying a foot, the network precisely traced the edges of the metatarsals' shafts, the distal phalanges, and the tibia/fibula.
  • Shallow & Unaugmented Nets: As visualized in the paper's supplementary figures, the shallow network failed to isolate any recognizable anatomical landmarks, while the unaugmented deep network focused on overly broad, unspecific regions.

Limitations and Future Work

While the paper demonstrates excellent qualitative alignment with medical landmarks, it relies on an empirical selection for the number of top activation units ($n=25$). The authors do not provide an automated or algorithmic way to determine the optimal $n$ for different architectures or modalities.

Additionally, the paper focuses purely on anatomy classification (identifying the body part). A natural and necessary next step for future work would be extending this framework to pathology detection (identifying diseases or fractures), where the visual anomalies are often much subtler than entire bone structures.

Summary updated

BibTeX
@inproceedings{kumar2018understanding,
  author = {Devinder Kumar and Vlado Menkovski and Graham W. Taylor and Alexander Wong},
  title = {{Understanding anatomy classification through attentive response maps}},
  booktitle = {ISBI},
  year = {2018},
  url = {https://openreview.net/forum?id=_49M67R8oNx},
}
Figure