Mask-RCNN and U-Net Ensembled for Nuclei Segmentation

Aarno Oskar Vuola, Saad Ullah Akram, Juho Kannala

Abstract

Accurate nuclei segmentation in microscopy images is a critical but challenging task in biomedical research. This paper compares two popular deep learning frameworks, U-Net and Mask R-CNN, revealing that they possess complementary strengths and weaknesses. By combining their predictions using a gradient boosting ensemble model, the authors achieve significantly better segmentation performance than either model alone, particularly in complex imaging modalities like histology.

Introduction

Automating nuclei instance segmentation in microscopy images saves researchers from the laborious task of manually labeling tens of thousands of cells. While Convolutional Neural Networks (CNNs) have become the go-to solution, choosing the right architecture is tricky. The paper tackles the challenge of selecting and tuning segmentation frameworks by analyzing where two leading models—U-Net (a semantic segmentation network) and Mask R-CNN (an instance segmentation network)—succeed and fail. Ultimately, it addresses how to optimally combine these fundamentally different approaches to handle highly variable microscopy data, including overlapping cells and different imaging modalities.

Methodology

The authors developed and compared three distinct setups:

  1. U-Net: This model was modified with a deep ResNet101 backbone pretrained on ImageNet. To address the common issue of touching nuclei, a specific output channel was added to predict borders between nearby nuclei. A watershed post-processing algorithm was then applied to separate instances based on these predicted borders.
  2. Mask R-CNN: This served as the baseline for instance segmentation. Unlike U-Net, it predicts bounding boxes first and then segments the pixels within those boxes, inherently handling object separation better.
  3. The Ensemble Model: A novel gradient boosting model was trained on the out-of-fold predictions. It uses structural properties of the predicted masks—such as eccentricity, perimeter, convex area, and solidity—as features to predict the Intersection over Union (IoU) with the ground truth. During inference, it evaluates masks from both U-Net and Mask R-CNN, applies non-maximum suppression, and selects the highest-quality masks (predicted IoU > 0.3) to form the final output.

Datasets and Experimental Setup

The study utilized a dataset of 800 images and corresponding ground truth masks, heavily inspired by the 2018 Kaggle Data Science Bowl. The data is highly diverse, featuring fluorescence, brightfield, and histology images.

The dataset includes challenging artifacts like out-of-focus regions, low signal-to-noise ratios, and complex background structures. Data augmentation techniques, including random flips, rotations, and image contrast transfer, were employed to improve model robustness.

Results and Discussion

The analysis revealed that the models have "complementary failures." U-Net excels at generating highly accurate segmentation masks (higher Dice score) but struggles to separate touching nuclei. Conversely, Mask R-CNN is superior at detecting individual instances and separating clusters but produces less precise mask boundaries.

Quantitative Performance

  • Overall mAP (IoU 0.5-0.95): The ensemble model achieved the highest overall mean Average Precision (0.523), outperforming Mask R-CNN (0.519) and U-Net (0.515).
  • Recall: The ensemble model significantly boosted recall (0.607) compared to U-Net (0.577) and Mask R-CNN (0.596).
  • Clumped Nuclei: Mask R-CNN had far fewer undersegmentation errors (164) compared to U-Net (383), confirming U-Net's tendency to merge touching cells.
  • Histology Performance: The ensemble model showed the most significant gains on difficult histology images, reaching an mAP of 0.316 compared to U-Net (0.298) and Mask R-CNN (0.300).

Conclusion

By training a gradient boosting model to "cherry-pick" the best individual cell masks based on geometric properties, the system yields a superior hybrid prediction. While the ensemble model suffers a slight drop in overall precision due to U-Net false positives, it successfully recovers true positives missed by individual models. Future work will investigate if this mask-property-based ensembling can be applied to other medical instance segmentation tasks.

Summary updated

BibTeX
@inproceedings{vuola2019mask,
  author = {Aarno Oskar Vuola and Saad Ullah Akram and Juho Kannala},
  title = {{Mask-RCNN and U-Net Ensembled for Nuclei Segmentation}},
  booktitle = {ISBI},
  year = {2019},
  doi = {10.1109/isbi.2019.8759574},
}
Figure