Sparse Activations for Interpretable Disease Grading

Kerol R. Djoumessi Donteu, Indu Ilanchezian, Laura Kühlewein, Hanna Faber, Christian F. Baumgartner, Bubacarr Bah, Philipp Berens, Lisa M. KochMIDL 2023

Abstract: Interpreting deep learning models typically relies on post-hoc saliency map techniques. However, these techniques often fail to serve as actionable feedback to clinicians, and they do not directly explain the decision mechanism. Here, we propose an inherently interpretable model that combines the feature extraction capabilities of deep neural networks with advantages of sparse linear models in interpretability. Our approach relies on straightforward but effective changes to a deep bag-of-local-features model (BagNet). These modifications lead to fine-grained and sparse class evidence maps which, by design, correctly reflect the model's decision mechanism. Our model is particularly suited for tasks which rely on characterising regions of interests that are very small and distributed over the image. In this paper, we focus on the detection of Diabetic Retinopathy, which is characterised by the progressive presence of small retinal lesions on fundus images. We observed good classification accuracy despite our added sparseness constraint. In addition, our model precisely highlighted retinal lesions relevant for the disease grading task and excluded irrelevant regions from the decision mechanism. The results suggest our sparse BagNet model can be a useful tool for clinicians as it allows efficient inspection of the model predictions and facilitates clinicians' and patients' trust.

Introduction

Deep learning has reached expert-level performance in medical imaging, yet it remains a "black box" to many practitioners. To explain these models, researchers often rely on post-hoc saliency maps (e.g., Grad-CAM) to highlight important image regions. However, in clinical settings, these maps are frequently too blurry or inconsistent to provide actionable feedback. They show where a model "looked" but do not explain the underlying decision mechanism.

This is particularly problematic for diseases like Diabetic Retinopathy (DR), where diagnosis depends on identifying microscopic lesions—such as microaneurysms or hemorrhages—scattered across a high-resolution retinal scan. Clinicians require precise pointers rather than vague glows. This paper introduces an "interpretable-by-design" model that enforces sparse activations to produce high-resolution evidence maps, pinpointing the exact pathology driving a diagnosis.

Methodology

The proposed model builds upon the BagNet architecture, a variant of ResNet-50 that limits the network's receptive field. Unlike standard ResNets that process the entire image globally, BagNet analyzes small, local patches (e.g., $33 \times 33$ pixels) and treats the image as a "bag of features."

The Sparse BagNet architecture. The model processes local patches to generate a Class Evidence Map (d). By swapping the order of spatial average pooling (SAP) and the final linear layer, the model produces a map where each pixel represents a direct numerical contribution to the final score.

Two key modifications were introduced to enhance interpretability:

  1. Architectural Reorganization: The researchers mathematically swapped the order of the spatial average pooling and the final linear layer. This allows the model to generate a Class Evidence Map in a single forward pass. Each pixel in this map represents the direct numerical contribution of a specific local patch to the final classification score.
  2. Sparse Regularization ($\ell_1$ penalty): A constraint was added to the loss function to penalize the model for having too many active regions in its evidence map. This forces the network to ignore healthy background tissue and focus exclusively on the most informative pathological patches.

Because the final prediction is simply the average of this map, the model is inherently interpretable; there is no hidden logic between the heatmap and the final grade.

Experimental Setup

The model was trained and evaluated using the Kaggle Diabetic Retinopathy Challenge dataset. After preprocessing with an ensemble of EfficientNet models to filter out poor-quality images, the final dataset comprised 45,923 fundus images. To evaluate localization performance, an experienced ophthalmologist provided manual lesion annotations for a subset of 15 test images, serving as the ground truth for precision metrics.

Results and Discussion

The Sparse BagNet achieved high classification performance while significantly improving localization precision. For binary detection (referable vs. non-referable DR), the model reached an AUC of 0.937 and an accuracy of 0.928, performing comparably to a standard black-box ResNet-50 (AUC 0.960).

Qualitative comparison of evidence maps. While standard ResNet and dense BagNet produce cluttered or blurry heatmaps, the Sparse BagNet (right) acts as a precision tool, highlighting only the relevant lesions and excluding healthy tissue.

Sparsity as a Precision Tool

The most significant finding is that enforcing sparsity dramatically increases localization precision. The sparse model was nearly 4x more precise (0.791 vs. 0.219) at localizing lesions than the dense baseline. In several instances, the model flagged suspicious patches that the clinician had initially missed; upon review, these were confirmed as real lesions.

The Interpretability Trade-off

While there is a slight "accuracy tax" for interpretability—the sparse model was marginally less accurate than the ResNet-50 baseline—the authors argue this is a necessary trade-off. A model that provides verifiable evidence is more likely to gain the trust of clinicians and patients than a slightly more accurate black box.

Limitations and Conclusion

A primary limitation of the current BagNet approach is its fixed receptive field. Because it relies on small patches, the model can struggle with very large lesions, occasionally misgrading "Severe DR" as "Moderate DR." Additionally, the sparsity coefficient ($\lambda$) requires careful tuning to balance sensitivity and clarity.

Future work will explore human-in-the-loop applications, allowing clinicians to interact directly with flagged patches. The researchers also intend to apply this sparse-activation framework to other domains where small anomalies are critical, such as breast or lung cancer screening.

Summary updated

BibTeX
@inproceedings{donteu2023sparse,
  author = {Kerol R. Djoumessi Donteu and Indu Ilanchezian and Laura Kühlewein and Hanna Faber and Christian F. Baumgartner and Bubacarr Bah and Philipp Berens and Lisa M. Koch},
  title = {{Sparse Activations for Interpretable Disease Grading}},
  booktitle = {MIDL},
  year = {2023},
  url = {https://openreview.net/forum?id=us8BFTsWOq},
}
Figure