Patchnet: Interpretable Neural Networks for Image Classification

Adityanarayanan Radhakrishnan, Charles Durham, Ali Soylemezoglu, Caroline UhlerarXiv 2017

Abstract

Deep learning models are often criticized as "black boxes," particularly in high-stakes domains like medical imaging. We present PatchNet, a context-restricted architecture that enhances interpretability by classifying images based on the average of local patch decisions. Unlike traditional methods like Class Activation Mapping (CAM), PatchNet forces the discovery of all relevant features and produces high-resolution heatmaps without upscaling. Our results on skin lesion and texture datasets show that PatchNet achieves competitive accuracy while providing significantly more medically relevant visual explanations.

Introduction

The "black box" nature of Convolutional Neural Networks (CNNs) poses a significant barrier to their adoption in clinical settings. While CNNs excel at classification, their decision-making process is often opaque. Standard interpretability tools like CAM and Grad-CAM suffer from three major flaws: "shortcut" learning (e.g., identifying a surgical bandage instead of a lesion), visual blurring due to low-resolution filters, and a lack of spatial inconsistency. In medical diagnostics, a pathologist requires a comprehensive view of all clinical signs, not just a single highlighted region, to make an informed diagnosis.

Methods

PatchNet addresses these issues by restricting the model's global context. The architecture consists of two primary components:

  1. Local Subnet ($\mathcal{S}$): A small CNN, typically consisting of 7 layers without pooling, that processes overlapping image patches (e.g., 21x21 pixels) independently to decide if they contain features of a specific class.
  2. Global Component ($\mathcal{G}$): A final layer that averages the decisions from all local patches to produce a global classification.
The PatchNet architecture averages local subnet decisions over an image to ensure interpretability.

By using shared weights across patches and a simple averaging mechanism, the model is incentivized to identify distinguishing features wherever they appear. This prevents the network from relying on global geometry or non-essential background artifacts, forcing it to "show its work" across the entire image.

Results

PatchNet was evaluated on the ISBI-ISIC 2017 melanoma dataset, the Describable Textures Dataset (DTD), and various cell nuclei datasets. On the melanoma task, PatchNet-21 achieved a test accuracy of 75.3%, surpassing both CAM (60.4%) and VGG-11 (74.2%). On the DTD dataset, PatchNet-31 reached a validation accuracy of 90.0%, significantly beating CAM (78.8%).

Comparison of PatchNet-21 against CAM and Grad-CAM on skin lesion classification.

Quantitatively, PatchNet's heatmaps showed a much higher correlation with expert-provided "dermoscopic feature masks" compared to traditional saliency methods. While Grad-CAM often highlighted entire objects or irrelevant shortcuts like medical bandages, PatchNet focused precisely on the textures indicative of malignancy. Similarly, in cell nuclei experiments, PatchNet successfully localized DNA condensation regions that matched biological markers (CENP-A), whereas CAM and Grad-CAM often highlighted the entire nucleus or background.

Conclusion

PatchNet provides a robust framework for interpretable image classification by design rather than as a post-hoc addition. The trade-off between patch size and generalization remains a key consideration, as smaller patches offer higher granularity but less context. Future research will explore hybrid models that combine local feature precision with global context sensitivity to further bridge the gap between performance and transparency in medical AI.

Summary updated

BibTeX
@misc{radhakrishnan2017patchnet,
  author = {Adityanarayanan Radhakrishnan and Charles Durham and Ali Soylemezoglu and Caroline Uhler},
  title = {{Patchnet: Interpretable Neural Networks for Image Classification}},
  year = {2017},
  eprint = {1705.08078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.08078},
}
Figure