A comparative study of CNN, BoVW and LBP for classification of histopathological images

Meghana Dinesh Kumar, Morteza Babaie, Shujin Zhu, Shivam Kalra, Hamid R. Tizhoosh

Introduction

Digital pathology has transformed the landscape of medical diagnostics, yet it places a significant cognitive burden on pathologists who must review hundreds of high-resolution slides daily. The interpretation of these whole-slide images (WSIs) is often subjective, leading to inter-observer variability. While Computer-Aided Diagnosis (CAD) systems have seen success in radiology, histopathology presents a unique set of challenges due to the complex, multi-colored textures and high resolution of tissue samples.

Deep learning, particularly Convolutional Neural Networks (CNNs), is the current "gold standard" in computer vision. However, these models typically require vast amounts of labeled data, which is often scarce in specialized medical domains. This study evaluates whether traditional texture descriptors like Local Binary Patterns (LBP) and "shallow" machine learning frameworks like Bag-of-Visual-Words (BoVW) can remain competitive with deep transfer learning on compact histopathology datasets.

The KIMIA Path960 Dataset

To facilitate this comparison, the authors introduced KIMIA Path960, a benchmark dataset specifically designed for histopathology image classification. The dataset comprises 960 patches extracted from 20 different tissue types, including muscle, epithelial, and connective tissues.

Representative image patches from the KIMIA Path960 dataset, illustrating high intra-class variability and inter-class similarity.

Each class contains 48 images, curated to exhibit high intra-class variability and significant inter-class similarity. This structure ensures that classification algorithms are tested on their ability to generalize across diverse visual patterns within the same tissue type while distinguishing between subtly different classes.

Methodology

The study benchmarks three distinct classification "philosophies":

  1. Local Binary Patterns (LBP): A computationally efficient, non-parametric texture descriptor. It characterizes local image patches by comparing each pixel to its neighbors, creating a binary code that represents local structure. It requires no training and is very low-dimensional.
  2. Deep Features (Transfer Learning): Instead of training a CNN from scratch, features were extracted from pre-trained AlexNet and VGG16 models (originally trained on ImageNet). These "off-the-shelf" features were then classified using similarity metrics like Euclidean ($L_2$) distance.
  3. Bag-of-Visual-Words (BoVW): This approach treats image features as "visual words." A dictionary (codebook) is constructed by clustering local features. Images are then represented as histograms of these words and classified using a Support Vector Machine (SVM).

Results and Discussion

The experimental results revealed a surprising trend: the "classic" BoVW approach outperformed deep transfer learning on this specific dataset.

Classification accuracy of the BoVW approach across different dictionary sizes and kernels, highlighting the effectiveness of the Intersection Kernel SVM (IKSVM).

As shown in the performance analysis, the BoVW method achieved its highest accuracy when paired with an Intersection Kernel SVM (IKSVM). While the table indicates accuracies up to 94.87% for specific configurations, the study's top-performing BoVW setup reached 96.50% accuracy at a $512 \times 512$ resolution with a 1200-word codebook.

In comparison, deep features from VGG16 achieved a maximum accuracy of 94.72%. The superiority of VGG16 over AlexNet suggests that deeper hierarchical features are better suited for capturing the nuances of biological textures. Meanwhile, LBP served as a robust baseline, achieving 90.62% accuracy. This is particularly impressive given that LBP requires no training and minimal computational resources.

Conclusion

The findings suggest that for relatively small, specialized datasets like KIMIA Path960, traditional "hand-crafted" features and dictionary-based methods like BoVW can generalize better than deep features extracted from models trained on non-medical data. While deep learning is likely to dominate as dataset sizes increase, methods like LBP and BoVW remain highly relevant for initial screenings and scenarios with limited labeled data. Future research may focus on fine-tuning CNNs specifically for histopathology to bridge the gap between general-purpose deep features and domain-specific textures.

Summary updated

BibTeX
@inproceedings{kumar2017comparative,
  author = {Meghana Dinesh Kumar and Morteza Babaie and Shujin Zhu and Shivam Kalra and Hamid R. Tizhoosh},
  title = {{A comparative study of CNN, BoVW and LBP for classification of histopathological images}},
  booktitle = {SSCI},
  year = {2017},
  doi = {10.1109/ssci.2017.8285162},
}
Figure