Abstract
Manual annotation of Whole Slide Images (WSIs) in digital pathology is a significant bottleneck due to the sheer volume of data. This paper presents a novel training pipeline that leverages partial annotations through "live sampling" and dynamic class balancing. By integrating with the EXACT annotation platform, the proposed method achieves a mean Average Precision (mAP) of 0.87, significantly outperforming traditional sub-image training methods and matching the performance of expert pathologists.
Introduction
In digital pathology, a single Whole Slide Image (WSI) can contain hundreds of thousands of cells. For conditions like asthma, diagnosis depends on the relative proportions of specific cell types, such as eosinophils, mast cells, and neutrophils, in lung fluid. However, fully annotating these slides is practically impossible for pathologists. Traditional machine learning workflows rely on fully annotated sub-images, which often lack the diversity of the entire slide and fail to represent rare cell types effectively. This research addresses the challenge of training robust object detection models on incomplete medical data.
Methods
The authors propose a shift from static, pre-extracted patches to a live sampling pipeline integrated with the EXACT (Extensible Annotation Tool) platform.
The pipeline utilizes the EXACT API to track screened areas, ensuring the model distinguishes between reliably labeled regions and unknown ones. During training, patches are sampled "on the fly" using annotated cells as seeds. To combat class imbalance—where rare cells may constitute less than 1% of the data—a dynamic class-balancing strategy was implemented. The probability of sampling a specific cell type is inversely proportional to its frequency ($1 - p_k$), ensuring rare classes like eosinophils are seen as frequently as common lymphocytes. The architecture employs RetinaNet with various ResNet backbones (18, 34, and 50).
Experimental Setup
The study utilized six equine Bronchoalveolar Lavage Fluid (BALF) slides. Four slides were used for training with partial annotations (covering 1% to 43% of the total area). Two slides were 100% annotated to serve as a rigorous ground truth for evaluation. In total, approximately 87,000 cells were manually labeled across five categories: eosinophils, mast cells, neutrophils, macrophages, and lymphocytes.
Results and Discussion
The proposed WSI-based live sampling approach significantly outperformed the traditional sub-image approach. As shown in the results table, the live sampling method achieved a mean Average Precision (mAP) of 0.87, compared to 0.72 for the sub-image baseline.
Key insights from the results include:
- Partial Data Efficacy: Training on diverse, partially labeled areas is superior to training on a narrow set of fully labeled patches. Live sampling acts as a form of data augmentation, preventing the model from memorizing specific contexts.
- Rare Class Performance: The most significant gains were observed in rare classes (eosinophils and mast cells), which are typically prone to overfitting in traditional setups.
- Human-Level Performance: The model's mAP of 0.76 on the test set surpassed the average human concordance score of 0.73 among ten trained pathologists.
- Backbone Scalability: Interestingly, increasing the depth of the ResNet backbone from 18 to 50 layers did not significantly impact accuracy, suggesting that the sampling strategy, rather than model complexity, is the primary performance driver.
Conclusion
This work demonstrates that "live sampling" from partially annotated WSIs is a highly effective strategy for training cell detection models in digital pathology. While the study is limited by a small number of slides and potential single-expert bias, it paves the way for more efficient dataset creation through human-AI collaboration. Future research will focus on scaling the pipeline to larger human datasets and optimizing post-processing algorithms for high-density cell environments.
Summary updated