ICRIRET 2025 · 3rd International Conference on Recent and Innovative Results in Engineering and Technology · Konya

Nucleus Segmentation in Heterogeneous Microscopy Images on the Data Science Bowl 2018 Dataset

Sercan Külcü
Computer Engineering Department, Giresun University, Türkiye
ProblemRelated workDSB2018Two models EfficiencyConfusion matricesIoU labResultsDiscussion
Paper on ResearchGate · Use ← → or Space to navigate, F for full screen

Summary

At a Glance

A head-to-head comparison of two real-time instance segmentation models on cell nuclei. The newer, attention-based YOLOv12s-seg loses to the more mature YOLOv11s-seg on accuracy and on speed.

Mask mAP@0.5:0.950.528YOLOv12s-seg: 0.478
Mask recall0.784YOLOv12s-seg: 0.755
Inference latency6.3 msYOLOv12s-seg: 11.3 ms
Layers203YOLOv12s-seg: 294
Data

DSB2018: 670 images from bright-field and fluorescence microscopy, 10 to 300+ nuclei each.

Fair setup

Same small variants, 512×512 input, batch 16, 100 epochs, same augmentation and GPU.

Lesson

Architectural maturity and training stability can outweigh lightweight novelty.

I · Introduction

Why Segment Every Nucleus?

  • Nuclei are the basic unit of tissue analysis: counting them and measuring their shape supports cancer diagnosis and biomedical research.
  • Manual delineation is slow and varies between experts; automation reduces human error and speeds up diagnostic workflows.
  • Instance segmentation is needed, not only semantic: touching nuclei must be separated into individual masks.
  • Microscopy is heterogeneous: stains, modalities, magnification and cell types change from image to image.
Semantic segmentation

One mask: "nucleus" vs "background". Touching nuclei become one blob.

Instance segmentation

One mask per nucleus, so each can be counted and measured. This is what YOLO-seg models produce.

I · Related Work · Interactive

Related Work

Results as reported by each study, on different datasets and metrics, so they are not directly comparable. Click a column header to sort.

MethodFamilyKey ideaReported resultRef.
BAWGNetU-Netwavelet-guided attention, boundary-aware unitDice 90.82% (DSB-2018)5
ConDANetU-Netcontourlet-driven attention, wavelet poolingDice 88.9 / 81.71 / 75.12% (3 datasets)6
ASRDNetU-Netdilated separable residual blocks, channel attentionDice 0.9129 (DSB-2018)7
CBAM-Residual U-NetU-Netresidual convolutions with CBAM attentionabove SOTA on DSB-2018, GlaS, TNBC8
M-UNetU-Netparallel kernel heads, shearlet unsharp maskingIoU 0.8325, F1 0.90869
U-Net / W-U-NetU-Netresizing, normalization, augmentationDice 0.9916, IoU 0.967510
Swin + GCFMTransformer / graphgraph convolutional feature fusionabove SOTA on DSB-2018, LIVECell11
Multi-task networkTransformer / graphbottleneck transformer, distance maps, stain transferbetter on NuInsSeg, MoNuSeg, DSB-201812
DPGNetTransformer / graphedge difference attention, uncertainty mapsbest Boundary-IoU and HD95; 25.51M params13
ASF-YOLOOne-stagescale-sequence fusion, channel-position attentionmask mAP 0.887, 47.3 FPS (DSB-2018)14
YOLACTOne-stageprototype masks + coefficients, no repoolingmAP 29.8 at 33.5 FPS (COCO)15
Improved BlendMaskOne-stagedilated and context aggregation, ranking loss+3.6% AP (DSB-2018)16
U-Net++ + watershedClinical toolGUI with interactive refinement and reportsF1 0.917, IoU 0.846 (DSB-2018)17
GA-UNetClinical toolgenetic algorithm shrinks U-Net to < 1% of parametersaccuracy 95.96% (DSB-2018)18

Common limits: heavy computation, overfitting on small sets, sensitivity to stain normalization. Gap: no direct YOLOv11-seg vs YOLOv12-seg comparison on nuclei.

II.A · Dataset and Preprocessing

The Data Science Bowl 2018 Dataset

Bright-field microscopy image with stained nuclei
Fluorescence microscopy image with small nuclei
Fluorescence microscopy image with nuclei of varying density

Fig. 1: sample training images. Stains, modality and density change from image to image.

670 images

536 training and 134 validation (80/20, stratified by nuclei density).

Heterogeneous

Bright-field and fluorescence, various stains, magnifications and cell types.

Sizes and density

256×256 to 1080×1080 pixels; 10 to more than 300 nuclei per image.

Preprocessing

Resized to 512×512 with padding to keep the aspect ratio; one binary mask per nucleus.

II.B–C · Architectures

Mature vs. New: The Two Contenders

YOLOv11s-seg

  • CSPNet-based backbone
  • Path Aggregation Network (PAN) neck for multi-scale feature fusion
  • anchor-free detection head extended with a mask branch
  • started from the official COCO-pretrained checkpoint yolo11s-seg.pt

YOLOv12s-seg

  • lightweight, attention-centric backbone with FlashAttention
  • redesigned segmentation head for mask refinement
  • aims at better feature alignment and lower overhead
  • built from yolo12s-seg.yaml, i.e. from scratch with COCO initialization
Both are the small variants, trained under identical conditions with mosaic, HSV and flip augmentation. Any gap comes from the architecture and its starting point.

II.D · Table 1 · Interactive

Architectural and Computational Efficiency

YOLOv11s-segYOLOv12s-segbold = better

III.A · Experimental Setup · Table 2

Training Setup

ParameterValue
OptimizerAdamW (lr = 0.002)
Batch size16
Input resolution512×512
Epochs100, cosine learning-rate schedule
Augmentationmosaic, HSV, flip
Precisionautomatic mixed precision (AMP)
Hardware

Laptop: NVIDIA GeForce RTX 3050 (6 GB VRAM), Intel CPU with 8 cores / 12 threads, 16 GB RAM, CUDA 11.8, PyTorch.

Why it matters

A 6 GB consumer GPU is close to what a small lab or clinic would use; memory and latency differences are felt directly.

III.B · Fig. 2 · Interactive

Confusion Matrices

YOLOv11s-segYOLOv12s-seg

Counts aggregated over the 134 validation images; the background/background cell is not defined for instance matching. Metrics on this slide are computed from the counts.

III.C · Figs. 3–4 · Interactive

Training Dynamics over 100 Epochs

Training curves of YOLOv11s-seg over 100 epochs

Top row: boxes (B). Bottom row: masks (M).

  • Fast gains in the first 20 epochs: COCO pretraining transfers well.
  • Plateaus after epoch 60, no sign of overfitting.
  • Box curves are nearly identical; the models separate on mask recall and mask mAP@0.5:0.95.

III.D · Metrics · Interactive

IoU Lab: Why mAP@0.5:0.95 Is Strict

Offset
Mask size

A made-up round nucleus, not data from the paper. mAP@0.5:0.95 averages the AP at ten IoU thresholds from 0.50 to 0.95, so it rewards tight boundaries.

III.D–E · Tables 3–4 · Interactive

Validation Metrics

YOLOv11s-segYOLOv12s-segright: relative difference

III.E · Fig. 5 · Interactive

Segmentation Results on Validation Images

Original microscopy image
(a) original
YOLOv11s-seg prediction
(b) YOLOv11s-seg
YOLOv12s-seg prediction
(c) YOLOv12s-seg

Across the samples, YOLOv11s-seg keeps tight boundaries and separates instances; YOLOv12s-seg shows boundary artifacts, missed small nuclei and occasional merging of adjacent nuclei.

IV · Discussion

Why Does the Older Model Win?

Mature feature fusion

The PAN neck aligns multi-scale features well, which matters for nuclei that range from a few pixels to large blobs.

Stable transfer learning

A tuned, pretrained checkpoint against a YAML build with COCO initialization: YOLOv11s-seg converges earlier (epoch 88 vs 98).

Overhead of attention

FlashAttention and 91 more layers bring no gain here, yet cost memory (5.52 vs 4.62 GB) and latency (11.3 vs 6.3 ms).

Boundaries decide

The gap is small at IoU 0.5 and grows at strict thresholds: mask quality, not detection, separates the models.

Newer is not automatically better: when reliability and boundary precision come first, well-established design principles can outweigh lightweight innovations.

IV · Conclusion and Future Work

Conclusion

  • On heterogeneous DSB2018, YOLOv11s-seg beats YOLOv12s-seg: mask mAP@0.5:0.95 0.528 vs 0.478, mask recall 0.784 vs 0.755, latency 6.3 vs 11.3 ms.
  • It is the preferred model for real-time nucleus segmentation under diverse staining and imaging conditions.

Future work

Hybrid models

YOLOv11-seg combined with domain-specific attention mechanisms.

Generalization

Cross-dataset tests on multi-organ histopathology cohorts.

Pathologist in the loop

Interactive refinement interfaces for clinical adoption.

IV · Discussion

Check Questions

  1. Why is instance segmentation, not semantic segmentation, needed for nuclei?
  2. YOLOv12s-seg has fewer parameters and the same GFLOPs. Why is it still slower?
  3. From the confusion matrices, which model misses more nuclei, and which produces more false nuclei?
  4. Why do the models differ more on mAP@0.5:0.95 than on mAP@0.5?
  5. Name two reasons the paper gives for the advantage of YOLOv11s-seg.
Show answers
  1. Touching nuclei must become separate objects so that each can be counted and measured.
  2. It is deeper (294 vs 203 layers) and uses attention; latency depends on depth and memory traffic, not only on FLOPs.
  3. YOLOv12s-seg misses more (1042 vs 834 false negatives); YOLOv11s-seg produces more false nuclei (1009 vs 855).
  4. The strict metric also rewards boundary accuracy; small mask errors pass at IoU 0.5 but fail at higher thresholds.
  5. The mature PAN neck for multi-scale fusion, and stable transfer from a pretrained COCO checkpoint.

References

Selected References

  • Goodman, A. et al. (2018). 2018 Data Science Bowl. Kaggle.
  • Jocher, G., Qiu, J. (2024). Ultralytics YOLO11. github.com/ultralytics/ultralytics.
  • Tian, Y., Ye, Q., Doermann, D. (2025). YOLOv12: Attention-centric real-time object detectors. arXiv:2502.12524.
  • Kang, M. et al. (2024). ASF-YOLO: A novel YOLO model with attentional scale sequence fusion for cell instance segmentation. Image Vis. Comput., 147, 105057.
  • Imtiaz, T., Fattah, S. A., Kung, S.-Y. (2023). BAWGNet: Boundary aware wavelet guided network for the nuclei segmentation in histopathology images. Comput. Biol. Med., 165, 107378.
  • Bolya, D. et al. (2019). YOLACT: Real-time instance segmentation. ICCV, 9156–9165.

See the full paper for the complete reference list. Figures on these slides are from the paper.

Thank You

Nucleus Segmentation in Heterogeneous Microscopy Images on the Data Science Bowl 2018 Dataset
How to cite: Külcü, S. (2025). Nucleus Segmentation in Heterogeneous Microscopy Images on the Data Science Bowl 2018 Dataset. In Proceedings of the 3rd International Conference on Recent and Innovative Results in Engineering and Technology (ICRIRET 2025), pp. 105–114. All Sciences Academy.
sercan.kulcu@giresun.edu.tr · All publications
1 / 1