NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SRPN: similarity-based region proposal networks for nuclei and cells detection in histology images

Yibao Sun, Xingru Huang, Huiyu Zhou, Qianni Zhang

Abstract

Accurate detection and classification of nuclei and cells in histology images are fundamental to computational pathology, particularly for cancer diagnosis and grading. However, these tasks are complicated by high morphological variation, dense cell packing, and significant class imbalance. This paper introduces the Similarity-based Region Proposal Network (SRPN), a novel architecture that integrates an embedding layer and similarity learning into standard object detection frameworks. By leveraging contrastive and triplet losses, SRPN learns highly discriminative features that distinguish nuclei from complex backgrounds. Experimental results on the MoNuSeg and Signet Ring Cell datasets demonstrate that SRPN achieves state-of-the-art performance, significantly outperforming baseline models across various backbones.

Introduction

In digital pathology, the automated analysis of whole-slide images (WSIs) relies heavily on the precise localization of nuclei. For instance, the Nottingham grading system for breast cancer requires accurate nuclear counting and morphological assessment. Despite the success of general-purpose object detectors like Faster R-CNN, histology images present unique challenges:

  1. Morphological Variation: Nuclei exhibit diverse shapes, sizes, and staining intensities.
  2. High Density: Cells are often clustered or overlapping, complicating individual localization.
  3. Class Imbalance: Foreground pixels (nuclei) are vastly outnumbered by background tissue.

The authors argue that the primary bottleneck in these environments is classification rather than localization. Standard detectors often struggle to differentiate between a nucleus and a complex background artifact. SRPN addresses this by forcing the network to learn a more robust, discriminative feature representation.

Methods

The SRPN Architecture

The core innovation of SRPN is the introduction of an embedding layer—a $1 \times 1$ convolutional layer—inserted before the classification head of a Region Proposal Network (RPN). This layer maps high-dimensional features into a lower-dimensional embedding space (typically 20 dimensions).

The SRPN architecture, highlighting the integration of the embedding layer and similarity-based loss functions ($L_{embed}$) alongside standard detection losses ($L_{loc}$, $L_{cls}$).

Similarity Learning

To train this embedding space, the network utilizes similarity-based loss functions in addition to standard cross-entropy and localization losses:

  • Pair Loss (Contrastive): This loss minimizes the distance between embeddings of the same class (e.g., two nuclei) while maximizing the distance between different classes (e.g., a nucleus and background).
  • Triplet Loss: This loss involves an anchor, a positive sample, and a negative sample. It ensures that the anchor is closer to the positive sample than to the negative sample by a predefined margin. This provides a more nuanced gradient for learning relative feature distances.

By optimizing these losses, the network learns to cluster "nucleus-like" features together, making the final classification step significantly more reliable.

Experimental Results

Datasets

The model was evaluated on two benchmarks:

  1. MoNuSeg (Multi-Organ Nuclei Segmentation): Contains ~21,000 nuclear annotations. The test set includes "unseen" organs to evaluate the model's generalization capabilities.
  2. Signet Ring Cell Dataset: Contains ~9,700 annotations of signet ring cells, which are particularly difficult to detect due to their unique, crescent-like morphology.

Performance Analysis

SRPN achieved state-of-the-art results on the MoNuSeg benchmark, with an F1-score of 0.8579 on seen organs and 0.8427 on unseen organs. This demonstrates that the similarity learning approach captures universal characteristics of nuclei that transcend specific tissue types.

Performance comparison (F1-score) of the baseline model versus SRPN with pair and triplet losses across ResNet-50, ResNet-101, and ResNeXt-101 backbones over training iterations.

As shown in the performance curves, the Triplet Loss consistently provides the highest performance boost across all tested backbones. For a ResNet-50 baseline, adding the similarity-based embedding improved the F1-score from 0.7618 to 0.8435. Furthermore, in the signet ring cell task, the model significantly reduced false positives in normal tissue, a critical factor for clinical utility.

Conclusion

The SRPN framework offers a powerful, drop-in enhancement for existing object detection architectures in medical imaging. By prioritizing discriminative feature learning through similarity losses, it effectively overcomes the classification challenges inherent in dense histology slides. While the model shows a slight trade-off in recall in some configurations, its superior precision and generalization to unseen organs make it a robust tool for automated pathology. Future work will focus on optimizing triplet sampling and exploring applications in other 3D medical imaging modalities.

Summary updated

BibTeX
@article{sun2021srpn,
  author = {Yibao Sun and Xingru Huang and Huiyu Zhou and Qianni Zhang},
  title = {{SRPN: similarity-based region proposal networks for nuclei and cells detection in histology images}},
  journal = {Medical Image Analysis},
  year = {2021},
  doi = {10.1016/j.media.2021.102142},
}
Figure