PixelCAM: Pixel Class Activation Mapping for Histology Image Classification and ROI Localization

Alexis Guichemerre, Soufiane Belharbi, Mohammadhadi Shateri, Luke McCaffrey, Eric Granger
3/31/2025
cs.CV

No official code found. Best implementation: AlexisGuichemerreCode/PixelCAM (6 stars, GPL-3.0, last commit 2025-04-03).

Abstract

Weakly supervised object localization (WSOL) methods allow training models to classify images and localize ROIs. WSOL only requires low-cost image-class annotations yet provides a visually interpretable classifier. Standard WSOL methods rely on class activation mapping (CAM) methods to produce spatial localization maps according to a single- or two-step strategy. While both strategies have made significant progress, they still face several limitations with histology images. Single-step methods can easily result in under- or over-activation due to the limited visual ROI saliency in histology images and scarce localization cues. They also face the well-known issue of asynchronous convergence between classification and localization tasks. The two-step approach is sub-optimal because it is constrained to a frozen classifier, limiting the capacity for localization. Moreover, these methods also struggle when applied to out-of-distribution (OOD) datasets. In this paper, a multi-task approach for WSOL is introduced for simultaneous training of both tasks to address the asynchronous convergence problem. In particular, localization is performed in the pixel-feature space of an image encoder that is shared with classification. This allows learning discriminant features and accurate delineation of foreground/background regions to support ROI localization and image classification. We propose PixelCAM, a cost-effective foreground/background pixel-wise classifier in the pixel-feature space that allows for spatial object localization. Using partial-cross entropy, PixelCAM is trained using pixel pseudo-labels collected from a pretrained WSOL model. Both image and pixel-wise classifiers are trained simultaneously using standard gradient descent. In addition, our pixel classifier can easily be integrated into CNN- and transformer-based architectures without any modifications.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

This code refers to a Paper accepted at MIDL 2025 'PixelCAM: Pixel Class Activation Mapping for Histology Image Classification and ROI Localization'

60C++, CudaJan 20, 20251 years agoGPL-3.0

Similar Papers

Cite this paper

@article{guichemerre2025pixelcam,
  title  = {PixelCAM: Pixel Class Activation Mapping for Histology Image Classification and ROI Localization},
  author = {Alexis Guichemerre and Soufiane Belharbi and Mohammadhadi Shateri and Luke McCaffrey and Eric Granger},
  year   = {2025},
  eprint = {2503.24135},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.24135v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.24135.svg)](https://codeofpaper.com/paper/2503.24135)

Discussion