A Robust Mean Teacher Framework for Semi-Supervised Cell Detection in Histopathology Images

Ziqi Wen, Chuyang YeMIDL 2023

Abstract

Cell detection in histopathology images facilitates clinical diagnosis, and deep learning methods have been applied to the detection problem with substantially improved performance. However, cell detection methods based on deep learning usually require a large number of annotated training samples, which are costly and time-consuming to obtain. Since unlabeled data is much less expensive to obtain, it is possible to address this problem with semi-supervised learning (SSL). In this work, we propose a semi-supervised object detection method for cell detection in histopathology images, which is based on and improves the mean teacher framework. We propose to suppress the noise in the detection results of the teacher model by mixing unlabeled training images with labeled training images. In addition, we propose to further incorporate a loss term that is robust to noise when the student model learns from the teacher model. Experimental results on a publicly available dataset for multi-class cell detection show that our method improves the performance of cell detection in histopathology images in the semi-supervised setting.

Introduction

In digital pathology, identifying individual cells—such as tumor cells, lymphocytes, and stromal cells—is a foundational step for diagnosis and grading. While deep learning has revolutionized this task, it requires massive annotated datasets. In histopathology, "labeled data" involves highly trained pathologists spending hours drawing boxes around thousands of microscopic cells, creating a significant annotation bottleneck. Semi-supervised learning (SSL) aims to solve this by using a small amount of labeled data alongside a large pool of unlabeled data.

Methodology

The proposed framework is built upon a Faster R-CNN detector with a ResNet-50 backbone, utilizing the Mean Teacher paradigm. In this setup, a "student" model learns from a "teacher" model’s predictions on unlabeled data. To address the inherent noise in teacher predictions during early training stages, the authors introduced two novel components:

  1. Confidence-Weighted Patch Mixing: Instead of the student learning directly from potentially erroneous pseudo-labels, the system "cleans" the signal. Detected regions from unlabeled images are mixed with randomly selected labeled patches of the same cell type. The mixing ratio is determined by the teacher’s confidence ($p^u_t$); if the teacher is uncertain, the ground-truth labeled patch dominates the mix.
  2. Robust Sparse Regularization ($L_{reg}$): To counter remaining label noise, a loss term based on the $\ell_p$-norm ($0 < p \leq 1$) is added. This encourages the network's output to be "sparse" or decisive, forcing the student model to ignore the ambiguity associated with noisy teacher labels.
The proposed robust Mean Teacher framework architecture featuring confidence-weighted patch mixing and sparse regularization.

The teacher model is updated via an Exponential Moving Average (EMA) of the student’s weights, ensuring it remains a stable, slightly more accurate version of the student throughout the training process.

Experimental Results

The method was evaluated on the NuCLS dataset, a benchmark for cell nucleus classification and detection in breast cancer histopathology. The study focused on the three most abundant types: Tumor, Stromal, and Lymphocyte cells. Data scarcity was simulated by creating subsets where only 2%, 5%, 10%, or 20% of the training data was labeled.

The proposed method consistently outperformed the supervised baseline and state-of-the-art SSL methods like STAC and Unbiased Teacher (UBT).

mAP performance comparison across different labeled data percentages (2%, 5%, 10%, 20%).

In the most challenging 2% label regime, the proposed method achieved a mean Average Precision (mAP) of 38.7%, compared to 34.2% for the supervised baseline and 37.9% for UBT. Notably, the F1-score for Stromal cells—which are often difficult to detect due to their elongated shapes—improved from 27.9% in the baseline to 31.0%.

Discussion and Conclusion

The success of this framework stems from its ability to treat noise as a distribution problem. By using labeled data as a "template" to fix unlabeled patches and employing sparsity as a defense against high-entropy (uncertain) predictions, the model effectively filters out the influence of noisy pseudo-labels.

While highly effective, future work could explore the framework's sensitivity to hyperparameters (like the weight of the sparse regularization) and its performance on more imbalanced "long-tail" cell distributions. Overall, this robust Mean Teacher approach provides a significant step toward practical, low-annotation cell detection in clinical settings.

Reference: Wen, Z., & Ye, C. (2023). A Robust Mean Teacher Framework for Semi-Supervised Cell Detection in Histopathology Images. Proceedings of Machine Learning Research (MIDL 2023), 227:643–652.

Summary updated

BibTeX
@inproceedings{wen2023robust,
  author = {Ziqi Wen and Chuyang Ye},
  title = {{A Robust Mean Teacher Framework for Semi-Supervised Cell Detection in Histopathology Images}},
  booktitle = {MIDL},
  year = {2023},
  url = {https://openreview.net/forum?id=PEWigppmw3b},
}
Figure