Progressive Attention Guidance for Whole Slide Vulvovaginal Candidiasis Screening

Jiangdong Cai, Honglin Xiong, Maosong Cao, Luyan Liu, Lichi Zhang, Qian Wang

Abstract

Vulvovaginal candidiasis (VVC) is one of the most prevalent human fungal infections, affecting approximately 75% of women at least once in their lifetime. Despite its clinical significance, automated screening using Whole Slide Images (WSIs) remains challenging due to the sparse distribution of candida, their unique elongated morphology, and significant staining variations across laboratories. This paper introduces a progressive attention-guided framework designed to overcome these hurdles. By integrating detection-based pre-training, a novel Skip Self-Attention (SSA) module, and contrastive learning, the proposed method achieves state-of-the-art performance in VVC screening, providing a robust solution for large-scale clinical applications.

Introduction

In clinical practice, screening for VVC typically involves the manual examination of Thin-layer Cytology (TCT) slides under a microscope. This process is labor-intensive and prone to human error, creating a high demand for computer-aided diagnosis. However, applying deep learning to WSIs for VVC detection presents three primary challenges:

  1. The "Needle in a Haystack" Problem: Candida are extremely small and sparse relative to the gigapixel scale of a WSI. A single slide may contain only a few dozen relevant pixels among billions.
  2. Morphological Complexity: Candida appears in diverse forms, including spores and long, stripe-like hyphae, which often overlap with human epithelial cells.
  3. The Style Gap: Variations in staining techniques and equipment across different medical centers lead to inconsistent image appearances, often causing models to overfit to specific laboratory "styles" rather than biological features.

Methodology

To address these issues, we propose a hierarchical framework that progressively refines the model's focus on fungal features.

1. Detection-Based Pre-training

Standard classification models often fail to converge on such sparse targets. We utilize a pre-trained detection model (RetinaNet) as a prior. By training the model to first locate candida using bounding-box annotations, we initialize the classification encoder with a strong spatial understanding of the target's unique morphology.

2. Skip Self-Attention (SSA) Module

Traditional Vision Transformers (ViTs) can lose fine-grained textural details in deeper layers. Our SSA module addresses this by fusing low-level texture features (used as queries) with high-level semantic features (used as keys and values). This allows the network to simultaneously capture the minute texture of spores and the long-range structural patterns of hyphae.

3. Contrastive Learning and Attention Mining

To bridge the style gap and suppress false positives, we employ a triplet loss-based contrastive learning strategy. We generate "masked" versions of images by removing areas where the model’s attention is highest. The model is then trained to recognize that the original image and its augmented version are similar, while the masked image—which should no longer contain candida—is distinct. This forces the model to ignore background noise and staining artifacts.

4. WSI Aggregation

For full-slide diagnosis, the WSI is cropped into patches. The model identifies the top-k most suspicious patches, which are then processed by a Transformer-based aggregator to produce a final slide-level classification.

Experimental Results

The framework was evaluated on clinical samples collected in 2021, including a balanced "Dataset-Small" and a real-world, highly imbalanced "Dataset-Large" (7,654 slides with only 140 positives).

  • Image-Level Performance: The full framework achieved an AUC of 97.20, a significant improvement over the 85.71 baseline.
  • WSI-Level Performance: On the small dataset, the model reached an AUC of 95.78, outperforming the TransMIL architecture (93.85).
  • Robustness: On the large, imbalanced dataset, the model maintained an AUC of 84.18. While the class imbalance poses a significant challenge, our method significantly outperformed standard WSI classifiers that struggled to maintain precision in a real-world setting.

Conclusion

This research demonstrates that progressive attention guidance—moving from coarse detection to fine-grained texture analysis—is highly effective for VVC screening. By leveraging detection priors and contrastive learning, the model overcomes the inherent difficulties of sparse target identification and staining variability. Future work will focus on weakly supervised learning to utilize the vast amounts of unlabeled clinical data available, further improving the model's generalizability across diverse clinical environments.

Summary updated

BibTeX
@inproceedings{cai2023progressive,
  author = {Jiangdong Cai and Honglin Xiong and Maosong Cao and Luyan Liu and Lichi Zhang and Qian Wang},
  title = {{Progressive Attention Guidance for Whole Slide Vulvovaginal Candidiasis Screening}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  url = {https://openreview.net/forum?id=LGwAwZPuJE},
}
Figure