Feature based Sequential Classifier with Attention Mechanism

Sudhir Sornapudi, R. Joe Stanley, William V. Stoecker, Rodney Long, Zhiyun Xue, Rosemary Zuna, Shelliane R. Frazier, Sameer AntaniarXiv 2020

TL;DR

DeepCIN is a hierarchical deep learning pipeline designed to automate the grading of cervical intraepithelial neoplasia (CIN) by mimicking the spatial analysis techniques used by pathologists. By decomposing epithelium images into vertical segments and processing them through a combination of CNNs, bidirectional LSTMs, and attention-based GRUs, the model achieves expert-level classification accuracy while providing interpretable insights into which tissue regions drive the diagnosis.

What Problem Does This Paper Address?

Cervical intraepithelial neoplasia (CIN) is a precancerous condition where abnormal cells grow in the lining of the cervix. Grading these abnormalities (from Normal to CIN1, CIN2, and CIN3) is critical for determining treatment, yet manual histopathological examination is notoriously subjective. Inter-observer variability is high; community pathologists often agree with expert panels only 38% to 68% of the time.

Biologically, CIN progresses vertically: atypical cells begin at the basement membrane (bottom) and grow toward the surface (top) of the epithelium. Existing automated methods often fail to capture this specific spatial relationship or struggle with the irregular, high-resolution nature of whole-slide images (WSIs). The authors aim to bridge this gap with a "pathologist-inspired" architecture that respects the vertical maturation patterns of cervical tissue.

Methods

The DeepCIN pipeline operates in three main stages:

  1. Localization and Segmentation: The system identifies the medial axis of the epithelium and reorients the tissue to a horizontal baseline. It then splits the epithelium into standard-width vertical segments (64 pixels wide). This ensures that the model analyzes the tissue "bottom-to-top," mirroring how a pathologist scans a slide under a microscope.
Fig. 3. Localized vertical segment generation from an epithelial image.
  1. Segment-level Sequence Generator: Each vertical segment is fed into a two-stage encoder.
  2. Stage I (CNN): Uses the initial layers of a pre-trained DenseNet-121 to extract low-level spatial features.
  3. Stage II (RNN): A Bidirectional Long Short-Term Memory (BLSTM) network processes these features to capture the vertical dependencies of cell maturation. This stage produces a "logit vector"—a condensed representation of the segment's CIN characteristics.
Fig. 4. Segment-level sequence generator network with two-stage encoder structures.
  1. Attention-based Fusion: The sequence of logit vectors from all segments in an image is fed into a Gated Recurrent Unit (GRU). An attention mechanism then assigns weights to each segment, determining its relative importance to the final diagnosis. This allows the model to focus on the most "suspicious" regions of the tissue while ignoring healthy or noisy areas.
Fig. 2. Overview of DeepCIN model.

Datasets

The study utilized a dataset of 453 high-resolution epithelial images manually extracted from 146 hematoxylin and eosin (H&E) stained cervical histology WSIs.

  • Total Segments: 11,854 vertical segments.
  • Class Distribution: Normal (53.8%), CIN1 (12.6%), CIN2 (17.5%), and CIN3 (16.1%).
  • Ground Truth: Annotations were provided by an expert pathologist.

Key Insights and Ideas

  • Mimicking Human Expertise: The core innovation isn't just the use of deep learning, but the structuring of the network to follow biological priors (vertical maturation) and clinical workflows (local-to-global analysis).
  • Weak Supervision Success: The segment-level encoder was trained using image-level labels. Even though not every segment in a CIN3 image is necessarily diseased, the model successfully learned to identify diagnostic features through this weakly supervised approach.
  • Interpretability via Attention: By visualizing the attention weights, the model can highlight specific segments that contributed most to a CIN3 diagnosis. This transforms the "black box" into a tool that can guide a pathologist's attention to high-risk areas.
  • Sequential Context: The use of RNNs (LSTMs and GRUs) allows the model to understand that the order and neighborhood of cells matter, both vertically within a slice and horizontally across the tissue.

Key Results

DeepCIN significantly outperformed previous state-of-the-art (SOTA) methods:

  • Exact Class Accuracy: Achieved 88.5%, compared to 73.4% (Guo et al.) and 75.5% (AlMubarak et al.).
  • Cohen’s Kappa (κ): Reached 0.815, which is within the range of agreement between expert pathologists (0.799–0.887) and far exceeds typical community pathologist agreement (0.46).
  • Clinical Grouping: For the critical "CIN vs. Normal" binary classification, the model achieved 94.1% accuracy.
  • Off-by-one Accuracy: The model was within one grade of the expert ground truth 98.9% of the time.

Limitations and Future Work

  • Dataset Size: While high-quality, the dataset of 453 images is relatively small for deep learning. Validation on larger, multi-institutional datasets is needed.
  • Manual Pre-processing: The current pipeline requires manual extraction of the epithelium from the WSI. The authors note that future work will focus on end-to-end automation, integrating automated epithelium segmentation and nuclei detection.
  • Single Expert Bias: The ground truth relies primarily on one expert. Incorporating a consensus from a panel of experts could further refine the model's robustness.

Summary updated

BibTeX
@misc{sornapudi2020feature,
  author = {Sudhir Sornapudi and R. Joe Stanley and William V. Stoecker and Rodney Long and Zhiyun Xue and Rosemary Zuna and Shelliane R. Frazier and Sameer Antani},
  title = {{Feature based Sequential Classifier with Attention Mechanism}},
  year = {2020},
  eprint = {2007.11392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.11392},
}
Figure