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

A dual-path instance segmentation network based on nuclei contour in histology image

Jiangqi Li, Xiang Li, Minglei Li, Pengfei YanDiscover 2023

Abstract

Accurate segmentation of nuclei in histology images is a cornerstone of digital pathology. However, existing models often struggle with overlapping nuclei and inaccurate boundary localization. This paper introduces a contour-based dual-path instance segmentation network designed to address these challenges. By reconstructing nuclei contours and processing them through a dedicated feature path, the network learns to better distinguish individual cell boundaries. Combined with an attention-guided fusion mechanism and watershed post-processing, the proposed method achieves superior performance across multiple public datasets, including Kumar, CPM-15, CPM-17, and TNBC.

Introduction

In digital pathology, the microscopic analysis of tissue slides is the gold standard for cancer diagnosis. Biomarkers such as nuclear size, shape, and distribution are critical for grading cancer and predicting patient outcomes. Automating the segmentation of thousands of nuclei per image is difficult due to three primary factors:

  1. Inaccurate Localization: Models often lack a strong sense of boundaries, leading to spatial errors.
  2. The "Clumping" Problem: In dense tissue regions, nuclei frequently touch or overlap, causing models to merge multiple cells into a single instance.
  3. Semantic Mismatch: Standard architectures often prioritize global semantic information over the fine-grained edge details necessary for separating adjacent cells.

Methodology

The proposed architecture utilizes a dual-path approach to integrate contour information directly into the learning process.

Overview of the contour-based dual-path instance segmentation pipeline, showing the transition from raw image to final watershed-segmented instances.

Dual-Path Encoding and Fusion

The network is built upon a U-Net foundation but incorporates several key innovations:

  • Dual-Path Encoding: The system employs two parallel paths. One extracts general semantic features, while the other focuses on reconstructed contour information generated via Canny edge detection and morphological expansion.
  • Attention-Guided Skip Connections: Attention modules are placed between the encoder and decoder to help the network focus on nuclei (foreground) while suppressing background noise.
  • Novel Fusion Module: During decoding, the network combines semantic masks, edge features, and attention weights using a weighted sum mechanism. This ensures that final predictions are constrained by sharp, well-defined boundaries.
The detailed network architecture highlighting the Encoder, the independent Contour Path, and the Dual-path Fusion Decoder with Attention (ATT) and Fusion Units (FU).

Post-processing

The final output of the network is processed using a watershed algorithm. This step uses the predicted boundaries to segment the image into distinct, color-coded cell instances, effectively resolving overlaps.

Datasets and Evaluation

The model was validated on four diverse datasets:

  • Kumar: 21,000 nuclei from seven different organs.
  • CPM-15 & CPM-17: TCGA datasets featuring brain and lung cancers.
  • TNBC: Triple Negative Breast Cancer tissue, known for its heterogeneous structures.

Performance was measured using the Aggregated Jaccard Index (AJI), which rigorously penalizes both over-segmentation and under-segmentation.

Results and Discussion

The dual-path model achieved state-of-the-art AJI scores: 0.656 for Kumar, 0.717 for CPM-17, and 0.602 for TNBC. These results outperform mainstream models like Mask R-CNN and standard U-Net.

Key Insights

  • Contours as Constraints: Treating the contour as a primary feature path creates a "spatial cage" that prevents semantic masks from bleeding into neighboring cells.
  • Weighted Stability: Research indicated that a fusion weight ($\alpha$) of 0.7 for the contour path in deep decoding stages provided the optimal balance between cell identification and boundary definition.
  • Generalization: The model maintained high accuracy even on organs not seen during training, demonstrating robust clinical utility.

Conclusion

The integration of independent contour learning significantly enhances nuclei instance segmentation. While the model occasionally produces internal voids in very large nuclei due to the heavy contour emphasis, it excels at splitting dense clusters of irregular nuclei. Future work will focus on refining the attention mechanism to better handle extremely spindle-shaped or irregular cell morphologies.

Summary updated

BibTeX
@inproceedings{li2023dual,
  author = {Jiangqi Li and Xiang Li and Minglei Li and Pengfei Yan},
  title = {{A dual-path instance segmentation network based on nuclei contour in histology image}},
  booktitle = {Discover},
  year = {2023},
  doi = {10.1007/s44163-023-00083-3},
}
Figure