Leveraging Uncertainty for Deep Interpretable Classification and Weakly-Supervised Segmentation of Histology Images

Soufiane Belharbi, Jérôme Rony, Jose Dolz, Ismail Ben Ayed, Luke McCaffrey, Eric Granger

TL;DR

Weakly-supervised segmentation models often fail on histology images because healthy and cancerous tissues look remarkably similar, leading to rampant false-positive predictions. This paper addresses over-segmentation by training a dual-network pipeline (localizer + classifier) that forces foreground regions to be class-certain while explicitly regularizing background regions to be maximally uncertain. This simple uncertainty and size-regularized objective dramatically slashes pixel-wise false positives on colon and breast cancer benchmarks using only image-level labels.

What Problem Does This Paper Address?

In computational pathology, annotating pixel-level boundaries for tumors or glands requires laborious expert effort. Weakly-supervised learning (WSL) promises to bypass this bottleneck by learning to localize regions of interest (ROIs) using only cheap, image-level diagnostic labels.

However, existing WSL methods—largely inherited from natural image benchmarks—struggle in histology:

  1. Low visual contrast: Diseased and normal tissues share cellular structures, textures, and color distributions.
  2. Unconstrained localization: Standard WSL models maximize classification confidence with no penalty on how much of the image is marked as foreground.

Consequently, models default to aggressive over-segmentation: they flag large swaths of benign background as part of the lesion, leading to high pixel-level false-positive rates.

Methods

The authors structure their system into two sequentially connected modules trained end-to-end:

  • A Localizer ($\mathcal{M}$): Splits an input image into complementary soft masks for foreground ($M^+$) and background ($M^-$).
  • A Classifier ($\mathcal{C}$): A shared backbone (e.g., ResNet-18) that independently predicts class probabilities for the masked foreground ($\hat{p}^+$) and background ($\hat{p}^-$).
Input Image ──> Localizer (M) ─┬─> M+ (Foreground) ──> Classifier ──> min Cross-Entropy (High Certainty)
                               └─> M- (Background) ──> Classifier ──> max Uncertainty (Entropy / Uniform)
                                                └───> Log-Barrier Size Regularizer

To guide the masks, the authors introduce a regularized loss function: $$\min_{\theta_C} H(p, \hat{p}^+) + \lambda R(\hat{p}^-) - \frac{1}{t}\left[\log s^+ + \log s^-\right]$$

  1. Foreground Certainty: The cross-entropy term $H(p, \hat{p}^+)$ forces the foreground patch to confidently match the true image label $p$.
  2. Background Uncertainty ($R(\hat{p}^-)$): Because true background should contain no discriminative signals, the classifier is forced into maximum uncertainty over $M^-$. The authors test two strategies:
  3. Explicit Entropy Maximization (EEM): Directly maximizing background prediction entropy via $-H(\hat{p}^-)$.
  4. Surrogate Entropy Matching (SEM): Minimizing the cross-entropy $H(q, \hat{p}^-)$ against a uniform distribution $q$.
  5. Log-Barrier Size Constraints: Minimizing uncertainty on background and maximizing certainty on foreground can cause trivial degeneracies (e.g., one mask shrinking to zero pixels). The $-\frac{1}{t}[\log s^+ + \log s^-]$ term acts as a barrier function penalizing overly small foreground ($s^+$) or background ($s^-$) surface areas.

Datasets

The authors evaluated their framework on two public histopathology benchmarks:

  • GlaS (Gland Segmentation Challenge): Colon histology images evaluated for gland classification and pixel-level segmentation.
  • Camelyon16-P512: $512 \times 512$ patch extractions from whole-slide breast cancer lymph node biopsies, containing metastatic and normal tissue.

No new datasets were introduced.

Key Insights and Ideas

  • Background modeling matters as much as foreground discovery: Most WSL methods treat background as whatever is left over after finding class-discriminative peaks (like CAM or attention maps). Explicitly treating background as an active entity that must confuse the classifier prevents benign tissue from being co-opted into the foreground mask.
  • Size regularization prevents trivial short-cuts: Without geometric or spatial size penalties, adversarial foreground/background decoupling can collapse to empty masks. A simple log-barrier penalty provides balanced partitioning without needing precise pixel counts beforehand.

Key Results

The proposed approach consistently outperformed conventional WSL baselines (including Grad-CAM, CAM-LSE, WILDCAT, and Deep MIL) in spatial segmentation metrics:

  • Colon Gland Segmentation (GlaS):
  • Foreground Dice ($F1^+$): Rose to 72.11% (EEM) / 71.94% (SEM), outperforming Deep MIL (68.52%) and Grad-CAM (66.30%).
  • Background Dice ($F1^-$): Reached 69.07%–69.23%, whereas previous weakly-supervised methods hovered between 17.88% and 41.34%. This massive jump directly demonstrates the elimination of widespread false positives.
  • Image Classification Error: Maintained 0.00%.
  • Breast Cancer Metastasis (Camelyon16-P512):
  • Foreground Dice ($F1^+$): Achieved 67.98%–68.26% (vs. CAM-LSE at 64.31% and Grad-CAM at 62.78%).
  • Background Dice ($F1^-$): Reached 88.80%, approaching fully supervised U-Net performance (89.68%).

Qualitative visual comparisons show much cleaner, tighter masks that avoid bleeding into surrounding stroma or healthy cellular architecture.

Limitations and Future Work

  • Classification vs. Localization Trade-off: On Camelyon16, image-level classification error slightly increased (6.26%–6.95% vs. ~1.5%–2.4% for Grad-CAM and WILDCAT), indicating that strongly regularizing masks may mildly degrade pure image-level classification accuracy.
  • Evaluation Scope: The study focuses on binary classification/segmentation within fixed-size crops and patches; extension to full whole-slide gigapixel images (WSIs) or multi-class tissue structures remains to be explored.

Summary updated

BibTeX
@inproceedings{belharbi2022leveraging,
  author = {Soufiane Belharbi and Jérôme Rony and Jose Dolz and Ismail Ben Ayed and Luke McCaffrey and Eric Granger},
  title = {{Leveraging Uncertainty for Deep Interpretable Classification and Weakly-Supervised Segmentation of Histology Images}},
  booktitle = {MIDL Short Papers},
  year = {2022},
  url = {https://openreview.net/forum?id=wrz7c--ACPC},
}
Figure