W-Net: A Two-Stage Convolutional Network for Nucleus Detection in Histopathology Image

Anyu Mao, Jialun Wu, Xinrui Bao, Zeyu Gao, Tieliang Gong, Chen Li

Abstract

Automated nucleus detection in histopathology images is a critical yet challenging task due to nuclear clumping and complex tissue backgrounds. This paper introduces W-Net, a two-stage convolutional neural network that decomposes the detection process into two distinct sub-tasks: segmentation and localization. By utilizing EfficientNet backbones in a sequential "divide and conquer" architecture, W-Net achieves a superior F1 score of 0.85 on renal cell carcinoma datasets, significantly improving the detection of overlapping and low-contrast nuclei.

Introduction

Pathological diagnosis is the "gold standard" for cancer detection, but manual analysis is incredibly labor-intensive. Pathologists must count and classify thousands of nuclei across massive digital slides. Automating this process is difficult because nuclei often clump or overlap, and can easily blend into the surrounding stroma (background fusion). Standard single-stage models like U-Net often struggle to map complex raw images directly to precise center-point predictions in one pass.

Methodology

The core innovation of this work is the W-Net architecture, which consists of two U-Net-like structures connected in series to simplify the learning objective.

The Two-Stage Process

  1. Stage 1 (Image to Binary Mask): This stage focuses on segmentation. It maps the original Hematoxylin-Eosin (H&E) stained image to a binary mask that distinguishes foreground (nuclei) from background. This step removes background noise and simplifies the input for the next stage.
  2. Stage 2 (Binary Mask to Density Mask): This stage focuses on localization. It takes the clean binary mask and maps it to a density mask where the highest values represent the exact centers of the nuclei.
The W-Net architecture connects two stages in series, using EfficientNet backbones for feature extraction and skip connections for detail preservation.

EfficientNet Backbones and Loss Functions

The authors replaced standard U-Net encoders with pre-trained EfficientNet models. They found that using a heavy-duty EfficientNet-B7 for the first stage (where feature extraction is most difficult) and a lighter EfficientNet-B0 for the second stage provided the best balance of accuracy and efficiency. The model is trained using a hybrid loss function: Binary Cross-Entropy (BCE) for the first stage and L1 Loss for the density regression in the second stage.

Results and Discussion

The model was evaluated on the ccRCC (Renal Clear Cell Carcinoma) Nuclei Grading Dataset, consisting of 1,000 H&E stained tiles.

Quantitative Performance

W-Net outperformed all baseline models, with the most significant gains observed in Recall. This indicates that the two-stage approach is particularly effective at finding nuclei that other models miss due to overlapping or poor contrast.

Method Precision (P) Recall (R) F1 Score
Standard U-Net 0.78 0.80 0.78
U-Net + ResNet-50 0.81 0.84 0.82
U-Net + EfficientNet-B7 0.82 0.87 0.84
Proposed W-Net 0.83 0.88 0.85

Visualizing the Pipeline

By isolating the nuclei in the first stage, the second stage is no longer confused by background textures that resemble nuclei. This specifically helps in identifying "fused" or "stacked" nuclei that appear as a single mass in raw imagery.

Visualization of the W-Net output: (a) raw H&E image, (b) intermediate binary mask from Stage 1, and (c) final density mask from Stage 2.

Conclusion

W-Net demonstrates that splitting a complex detection task into two "low-jump" tasks—segmentation followed by localization—leads to more robust performance in histopathology. While the architecture is currently integrated into the Pathology Information Management & Integration Platform (PIMIP), future work will focus on model pruning to reduce computational overhead and testing on a wider variety of tissue types to ensure universal applicability.

Summary updated

BibTeX
@inproceedings{mao2021w,
  author = {Anyu Mao and Jialun Wu and Xinrui Bao and Zeyu Gao and Tieliang Gong and Chen Li},
  title = {{W-Net: A Two-Stage Convolutional Network for Nucleus Detection in Histopathology Image}},
  booktitle = {BIBM},
  year = {2021},
  url = {https://openreview.net/forum?id=bF0pM03tMN},
}
Figure