[Paper Review] Patchnet: Interpretable Neural Networks for Image Classification
PatchNet is a context-restricted neural network architecture that improves interpretability in image classification by analyzing small image patches individually and averaging predictions to reduce reliance on global context. It achieves sharper, more localized feature heatmaps than CAM or Grad-CAM, especially on medical images, while maintaining high classification accuracy despite a trade-off between generalization error and feature granularity.
Understanding how a complex machine learning model makes a classification decision is essential for its acceptance in sensitive areas such as health care. Towards this end, we present PatchNet, a method that provides the features indicative of each class in an image using a tradeoff between restricting global image context and classification error. We mathematically analyze this tradeoff, demonstrate Patchnet's ability to construct sharp visual heatmap representations of the learned features, and quantitatively compare these features with features selected by domain experts by applying PatchNet to the classification of benign/malignant skin lesions from the ISBI-ISIC 2017 melanoma classification challenge.
Motivation & Objective
- To address the lack of interpretability in deep neural networks for sensitive domains like healthcare.
- To overcome limitations of CAM and Grad-CAM, such as blurring, loss of spatial context, and over-reliance on global image features.
- To develop a method that identifies as many class-discriminative features as possible by restricting context to small image patches.
- To provide mathematically grounded, localized visual explanations of classification decisions in binary image classification tasks.
- To demonstrate the method’s effectiveness on a real-world medical dataset—melanoma classification from ISBI-ISIC 2017.
Proposed method
- PatchNet divides each input image into overlapping patches of fixed size (e.g., 11×11, 17×17, 31×31 pixels), treating each patch as an independent input.
- A separate CNN subnet is trained on each patch size to predict the class label, estimating P(y=1|P) for each patch P.
- Global image classification is obtained by averaging the sigmoid outputs of all patch predictions across the image, avoiding multiplication used in mean-field approximations.
- The method ensures that all distinguishable features of each class are identified, not just the most salient one, by forcing the network to learn from limited context.
- Global and filter heatmaps are extracted to visualize which image regions and feature maps are most indicative of each class.
- The approach is inspired by variational inference and ensemble methods, balancing generalization error and feature granularity through patch size control.
Experimental results
Research questions
- RQ1Can a patch-based classification method improve the interpretability of deep neural networks in medical image analysis?
- RQ2How does restricting context to small image patches affect the localization and clarity of learned features compared to global-context methods like CAM and Grad-CAM?
- RQ3To what extent can PatchNet identify multiple, distinct features per class, rather than relying on a single dominant feature?
- RQ4What is the trade-off between generalization error and feature granularity in PatchNet, and how does it vary with patch size?
- RQ5How do PatchNet heatmaps compare to expert-annotated features in terms of relevance and localization for skin lesion classification?
Key findings
- PatchNet achieved higher localization accuracy than CAM and Grad-CAM, producing sharper and more focused heatmaps that correctly highlight edges and high-contrast regions of cell nuclei.
- For all patch sizes, PatchNet correctly identified high luminance contrast as a distinguishing feature of NIH/3T3 (mouse) cell nuclei, coloring the boundary with the background white.
- Validation loss for PatchNet decreased with larger patch sizes (e.g., 0.074 for 31×31 vs. 0.154 for 11×11), confirming the expected trade-off between generalization and context.
- Despite higher generalization error, PatchNet-11 achieved 98.2% validation accuracy, outperforming CAM (98.8% loss, but lower accuracy due to threshold fluctuations) and VGG-11 (overfitting with 97.0% accuracy).
- CAM achieved the lowest validation loss (0.027), but its visualizations incorrectly labeled most of the image as relevant for class 1, especially for small nuclei.
- Grad-CAM visualizations were ineffective, often highlighting the background as indicative of class 1, particularly for small mouse nuclei, due to reliance on global context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.