Abstract
Deep learning models in medical imaging often suffer from "shortcut learning," where predictions rely on clinically irrelevant artifacts rather than pathological features. This paper presents PIP-Net (Patch-based Intuitive Prototypes), an intrinsically interpretable architecture designed to provide transparent reasoning for medical image classification. By learning semantically meaningful prototypical parts, PIP-Net allows clinicians to verify model logic and manually "debug" classifiers by disabling shortcut prototypes without the need for retraining. Our evaluation across four diverse datasets demonstrates that PIP-Net achieves performance comparable to black-box models while offering superior interpretability and a mechanism for human-in-the-loop correction.
Introduction
While deep learning models frequently achieve superhuman accuracy in medical diagnostic tasks, their adoption in clinical settings is hindered by their "black box" nature. A significant concern is the "Clever Hans" effect, or shortcut learning, where a model identifies correlations in training data that do not generalize to clinical reality—such as identifying a fracture based on the presence of an emergency room marker rather than the bone's condition.
Standard post-hoc explanation methods, such as saliency maps or heatmaps, often fail to faithfully represent a model's internal decision logic. To address this, we propose the use of PIP-Net, an "explainable-by-design" framework. PIP-Net moves beyond post-hoc interpretation by making the decision-making process transparent from the outset, allowing for the identification and correction of reliance on non-clinical artifacts.
Methodology
PIP-Net utilizes a patch-based approach to identify prototypical features within an image. The architecture consists of three primary components:
- Prototypical Parts: During a self-supervised pre-training phase, the model learns to identify small, semantically meaningful image patches (prototypes) that represent specific visual concepts.
- Sparse Linear Layer: These prototypes are connected to specific classes (e.g., "Fracture" vs. "No Fracture") through a sparse linear layer. This ensures that only a small number of relevant prototypes contribute to any single classification.
- Global Interpretability: The final classification is a weighted sum of the detected prototypes. This transparency allows the model to "abstain" from a decision if no relevant prototypes are identified, rather than providing an ungrounded guess.
A unique feature of this approach is manual model debugging. If a prototype is found to represent a shortcut (e.g., surgical hardware or text), a human expert can manually set the weight of that prototype to zero, effectively "teaching" the model to ignore that feature without requiring a full retraining cycle.
Experimental Evaluation
We evaluated PIP-Net across four distinct datasets to test its robustness and interpretability:
- ISIC: A skin cancer dataset containing known confounding artifacts like colored patches.
- MURA: A large public dataset of musculoskeletal radiographs.
- HIP & ANKLE: Real-world datasets from the ZGT hospital in the Netherlands focusing on pelvic and ankle fractures.
Results and Discussion
Performance and Sparsity
PIP-Net achieved high accuracy across all tasks, reaching 94.1% on ISIC and 94.0% on HIP, matching the performance of standard black-box CNNs. Notably, the model maintained high interpretability through sparsity; for instance, the ANKLE dataset model used an average of only 2.5 prototypes per image to reach a decision.
Clinical Alignment and Data Quality
The model successfully learned "pure" concepts that align with medical standards. In the ANKLE dataset, prototypes naturally gravitated toward the Weber classification standard, focusing on anatomical regions like the distal end of the medial malleolus. Furthermore, PIP-Net acted as a "smoke detector" for data quality, identifying prototypes that triggered on rotated text or orthopedic casts, highlighting systematic biases in the training data.
Human-in-the-Loop Correction
The most significant finding involved the correction of shortcut learning. In the ISIC dataset, the presence of artificial shortcut patches caused the original model's accuracy to drop to 9.1%. By manually identifying and disabling the prototypes associated with these shortcuts, accuracy on the same corrupted images improved to 65.7% without any further training. This demonstrates a viable path for clinicians to interactively refine AI tools.
Conclusion
PIP-Net demonstrates that high-performance medical image classification does not require sacrificing transparency. By providing a mechanism for both understanding and correcting model behavior, PIP-Net addresses the trust gap in clinical AI. Future work will focus on multi-instance learning to handle multiple views of a single patient study and developing interactive training loops where experts can suggest prototypes based on established medical guidelines.
Summary updated