Vision Transformer-Based Deep Learning for Histologic Classification of Endometrial Cancer

Manu Goyal, Laura J. Tafe, James X. Feng, Kristen E. Muller, Liesbeth Hondelink, Jessica L. Bentz, Saeed HassanpourarXiv 2023 · OpenReview

Abstract

Endometrial cancer is the fourth most common cancer among females in the United States, with a lifetime risk of approximately 2.8%. Precise histologic evaluation and molecular classification are critical for effective patient management and determining optimal treatment modalities. This study introduces EndoNet, a hybrid deep learning framework that utilizes convolutional neural networks (CNNs) for local feature extraction and a vision transformer (ViT) for global feature aggregation. The model classifies whole-slide images (WSIs) into low-grade (Endometrioid Grades 1 and 2) and high-grade (Grade 3, uterine serous carcinoma, and carcinosarcoma) categories. Trained on 929 digitized hematoxylin and eosin-stained slides from Dartmouth-Health, EndoNet achieved a weighted average F1-score of 0.91 and an AUC of 0.95 on an internal test set. On an external TCGA dataset, it maintained an F1-score of 0.86 and an AUC of 0.86. These results suggest that EndoNet can support pathologists in tumor grading without requiring exhaustive manual annotations.

Introduction

Endometrial cancer remains a significant health burden, and its histologic grade is a primary driver of clinical decision-making. However, the current gold standard—manual microscopic evaluation—is subject to substantial inter-observer variability. Pathologists may disagree on grading in up to 37% of high-grade cases due to overlapping histologic features and the complexity of interpreting massive Whole Slide Images (WSIs). While previous computational approaches have attempted to automate this process, many rely on pixel-level manual annotations, creating a significant data bottleneck. EndoNet addresses these challenges by leveraging a transformer-based architecture that learns from global tissue patterns with minimal manual supervision.

Methodology

EndoNet employs a two-stage hybrid architecture designed to capture both micro-level cellular details and macro-level tissue architecture.

1. Feature Extraction (Local)

A ResNet-18 CNN serves as the initial feature extractor, scanning small patches of tissue to identify low-level histologic characteristics. A key finding of this study was that domain-specific pre-training—training the CNN on endometrial tissue patches rather than generic datasets like ImageNet—significantly improved the model's ability to discern relevant pathological features.

2. Aggregation and Classification (Global)

The extracted features are processed by a Vision Transformer (ViT). Unlike standard CNNs, which can struggle with long-range spatial relationships, the ViT uses an attention mechanism to understand how disparate patches relate to one another across the entire slide. This allows the model to interpret the "big picture" of the tissue structure. Additionally, the model utilizes masked pre-training, enabling it to learn the underlying patterns of pathology slides by predicting missing segments of an image, which reduces the reliance on large, manually labeled datasets.

Experimental Results

The model was rigorously evaluated using both internal and external datasets:

  • Internal Dataset: Comprising 1,143 WSIs from 549 patients at Dartmouth-Health, used for training and internal validation.
  • External Dataset (TCGA): 100 WSIs from The Cancer Genome Atlas were used to evaluate the model's generalizability across different institutional staining protocols.

Performance Metrics

EndoNet demonstrated high diagnostic accuracy:

  • Internal Test Set: Weighted average F1-score of 0.91 (95% CI: 0.86-0.95) and an AUC of 0.95 (95% CI: 0.89-0.99).
  • External Test Set: F1-score of 0.86 (95% CI: 0.80-0.94) and an AUC of 0.86 (95% CI: 0.75-0.93).

Subtype analysis revealed that the model was particularly effective at identifying Grade 1 (94% accuracy) and Grade 3 (91% accuracy) cases. Consistent with human diagnostic trends, the model found Grade 2 cases—the intermediate category—more challenging, achieving 81% accuracy internally and 68% externally.

Discussion and Explainability

A critical component of EndoNet is its interpretability. By visualizing the Transformer’s attention maps, researchers confirmed that the model focuses on the same tumoral regions highlighted by expert pathologists. This alignment between AI focus and human expertise increases the clinical trustworthiness of the system.

Furthermore, the study highlighted that spatial context is vital; the transition from a standard CNN (AUC 0.82) to the hybrid EndoNet (AUC 0.95) underscores that the arrangement of cells is as diagnostic as the appearance of the cells themselves.

Limitations and Future Directions

While EndoNet shows great promise, it currently focuses on morphology. Future iterations aim to incorporate molecular data (e.g., POLE mutations and p53 status) to align with evolving FIGO guidelines. Additionally, the researchers plan to expand the model to include rare subtypes like Clear Cell Carcinoma and address the "batch effects" caused by staining variability across different institutions. Ultimately, EndoNet is envisioned as a real-time decision support tool to provide pathologists with a reliable "second opinion" in clinical workflows.

Summary updated

BibTeX
@misc{goyal2023vision,
  author = {Manu Goyal and Laura J. Tafe and James X. Feng and Kristen E. Muller and Liesbeth Hondelink and Jessica L. Bentz and Saeed Hassanpour},
  title = {{Vision Transformer-Based Deep Learning for Histologic Classification of Endometrial Cancer}},
  year = {2023},
  eprint = {2312.08479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.08479},
}
Figure