Classification and Retrieval of Digital Pathology Scans: A New Dataset

Morteza Babaie, Shivam Kalra, Aditya Sriram, Christopher Mitcheltree, Shujin Zhu, Amin Khatami, Shahryar Rahnamayan, H. R. Tizhoosh

TL;DR

The authors introduce Kimia Path24, a new dataset specifically designed to benchmark image classification and retrieval in digital pathology. By focusing on textural diversity across 24 whole-slide scans and introducing a rigorous compound accuracy metric, they demonstrate that even modern CNNs struggle, achieving a top accuracy of only 41.80%.

What Problem Does This Paper Address?

Digital pathology, or Whole Slide Imaging (WSI), has revolutionized diagnostics by turning glass slides into gigapixel digital scans. However, the sheer size and complexity of these images create a "needle in a haystack" problem for clinicians looking to retrieve similar historical cases for comparison.

Existing computer-aided diagnosis (CADx) systems often struggle with the textural variability found within a single tissue sample. There is a lack of standardized, challenging datasets that allow researchers to compare different algorithms—ranging from classical texture descriptors to deep learning—on a level playing field. The authors aim to fill this gap by providing a dataset that prioritizes textural distinction over specific anatomical labels.

Methods

The researchers established a baseline for the Kimia Path24 dataset using three distinct computer vision approaches:

  1. Local Binary Patterns (LBP): A classical, computationally efficient texture descriptor. The authors tested various configurations (different radii and neighbor counts) and distance measures ($L_1, L_2, \chi^2$).
  2. Bag-of-Words (BoW): A dictionary-based approach where a "codebook" of visual features is learned from training patches. They tested this using both raw pixels and LBP features as the underlying descriptors, followed by an SVM classifier.
  3. Convolutional Neural Networks (CNNs): Two architectures inspired by AlexNet and VGG16. These were trained from scratch on patches extracted from the WSIs.

A key contribution is their compound accuracy measurement ($\eta_{total}$). Instead of just looking at whether a patch is correctly classified, this metric multiplies patch-to-scan accuracy ($\eta_p$) by whole-scan accuracy ($\eta_W$). This penalizes models that perform well on only a few easy scans while failing on others.

Datasets

The paper introduces the Kimia Path24 dataset:

  • Source: 24 high-resolution WSI scans selected from a pool of 350 for their distinct textural patterns.
  • Test Set: 1,325 manually selected patches ($1000 \times 1000$ pixels, or $0.5\text{mm} \times 0.5\text{mm}$) representing the dominant textures in each scan.
  • Training Set: Designers are encouraged to generate their own training data from the remaining parts of the 24 scans. Using the authors' preset parameters (e.g., 40% overlap, homogeneity thresholds), one can generate between 27,000 and 50,000 training patches.
Figure 1. The “Kimia Path24” Dataset: Thumbnails of six sample whole scan images. Aspect ratio has been neglected for better illustration.

Key Insights and Ideas

  • Texture is King: Unlike many pathology datasets that focus on specific diseases (like breast cancer or lymphoma), Kimia Path24 is a "computer vision" dataset. It challenges models to differentiate between textures that might look similar to the untrained eye but belong to different scans.
  • The "Easy" Task is Hard: One might assume matching a patch to its parent scan is simple. However, the results show it is surprisingly difficult because a single scan contains multiple, heterogeneous texture patterns.
  • LBP's Resilience: Despite the hype around deep learning, classical LBP features performed remarkably well, nearly matching the CNN's accuracy while being significantly faster and requiring no downsampling of the input images.
  • Metric Rigor: The compound accuracy metric ($\eta_{total}$) makes achieving high scores very difficult, providing a much more realistic benchmark for clinical retrieval tasks than standard accuracy.
Figure 2. All 24 scans used to generate the Kimia Path24 dataset. The images represent approximately 20x magnification of a portion of the whole scan images as depicted in Fig. 1.

Key Results

The benchmarking results highlight the difficulty of the new dataset:

Method $\eta_p$ (Patch) $\eta_W$ (Scan) $\eta_{total}$ (Total)
CNN (Best) 64.98% 64.75% 41.80%
LBP (Best) 66.11% 62.52% 41.33%
BoW (Best) 64.98% 61.02% 39.65%

The CNN achieved the highest total accuracy, but only by a slim margin over LBP. The low absolute numbers (all under 42%) suggest significant room for improvement in future research.

Figure 4. Sample for retrieval: a query patch (left image, framed) and its top three search results.

Limitations and Future Work

  • Downsampling: To make training feasible, CNNs were fed patches downsampled to $128 \times 128$. The authors suggest that CNN performance might improve if they could process the original $1000 \times 1000$ resolution, as LBP did.
  • Training Data: The authors believe that using a larger, more diverse training set (beyond the 40,513 patches used for the CNN) could boost performance.
  • Spatial Relations: The BoW approach neglected the geometric and spatial relationships between "visual words," which likely hindered its accuracy.
  • Clinical Context: While excellent for benchmarking vision algorithms, the dataset does not yet map these textures to specific clinical outcomes or anatomical structures.

The dataset and accuracy calculation code are available at http://kimia.uwaterloo.ca.

Summary updated

BibTeX
@inproceedings{babaie2017classification,
  author = {Morteza Babaie and Shivam Kalra and Aditya Sriram and Christopher Mitcheltree and Shujin Zhu and Amin Khatami and Shahryar Rahnamayan and H. R. Tizhoosh},
  title = {{Classification and Retrieval of Digital Pathology Scans: A New Dataset}},
  booktitle = {Workshops @ CVPR},
  year = {2017},
  doi = {10.1109/cvprw.2017.106},
}
Figure