Semi-Supervised Histology Classification using Deep Multiple Instance Learning and Contrastive Predictive Coding

Ming Y. Lu, Richard J. Chen, Jingwen Wang, Debora Dillon, Faisal MahmoodarXiv 2019

Introduction

Digital pathology involves analyzing massive histology slides, often containing billions of pixels. Labeling these slides at a granular level (cell or patch) is prohibitively expensive and time-consuming for pathologists. This paper addresses the challenges of data scarcity, weak supervision signals, and GPU memory constraints in histology classification. The authors introduce a two-stage semi-supervised framework that leverages Contrastive Predictive Coding (CPC) for self-supervised feature extraction followed by Attention-based Multiple Instance Learning (MIL).

Methodology

The proposed pipeline operates in two distinct stages to maximize feature quality and computational efficiency, bypassing the need for massive labeled datasets.

Overview of the two-stage framework: Stage 1 (bottom) uses CPC for self-supervised feature extraction, while Stage 2 (top) applies Attention-based MIL for classification.

Stage 1: Self-Supervised Learning via CPC

Before utilizing any labels, a modified ResNet50 encoder is trained using Contrastive Predictive Coding. The model learns to predict the features of future patches within a spatial grid based on context from preceding patches. This process forces the network to capture high-level structural representations of tissue without human intervention, learning the "visual language" of histology.

Stage 2: Attention-based Multiple Instance Learning

The pre-trained encoder extracts features from patches, which are then processed by an attention mechanism. This mechanism assigns "importance weights" to individual patches, aggregating the most relevant features to make a final slide-level prediction. The authors implemented a Smooth SVM Loss and KL-Divergence Regularization to improve stability and prevent over-focusing on random patches in healthy slides.

Experimental Setup

The framework was evaluated on the ICIAR 2018 BACH dataset, comprising 400 H&E stained breast cancer images. The task was binary classification: Carcinoma vs. Non-carcinoma.

Patch extraction logic: Images are broken down into 256x256 patches with specific overlaps (e.g., 64 and 32 pixels) to facilitate the spatial prediction task in CPC.

Images were partitioned into 256 × 256 patches for processing. This patch-based approach allows the model to handle high-resolution regions of interest while maintaining a manageable computational footprint.

Results and Discussion

The CPC + MIL pipeline achieved a state-of-the-art accuracy of 95% and an AUC of 0.968, significantly outperforming standard MIL (62.6%) and ImageNet transfer learning (86.0%).

Key findings include:

  • Domain-Specific Pre-training: Features learned directly from histology images via CPC are far superior to general-purpose ImageNet features, proving that specialized medical pre-training is essential.
  • Memory Efficiency: The model maintains high performance (90.6% accuracy) even when the feature encoder is "frozen," drastically reducing GPU memory requirements and enabling the processing of larger slides.
  • Data Efficiency: The system is robust even with minimal supervision, achieving a mean AUC > 0.82 with only 16 labeled images per class.
  • Interpretability: Attention weights provide a natural heatmap, highlighting regions of high nuclei density or other indicators of malignancy for pathologists.

Conclusion and Future Work

While highly effective at identifying dense cancerous clusters, the model occasionally struggles with atypical regions like necrotic tissue. Future work will focus on scaling this "frozen encoder" approach to "Gigapixel" Whole Slide Images (WSI) and integrating it into clinical workflows to assist pathologists and reduce inter-observer variability.

Summary updated

BibTeX
@misc{lu2019semi,
  author = {Ming Y. Lu and Richard J. Chen and Jingwen Wang and Debora Dillon and Faisal Mahmood},
  title = {{Semi-Supervised Histology Classification using Deep Multiple Instance Learning and Contrastive Predictive Coding}},
  year = {2019},
  eprint = {1910.10825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.10825},
}
Figure