Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mitosis Algorithm: VM-UNet & Stain Augmentation

Updated 11 July 2026
  • Mitosis Algorithm is a computational pathology approach that reframes mitosis detection as segmentation, addressing challenges such as intra-class variability and domain shift.
  • It employs a VM-UNet architecture with Vision Mamba blocks and integrates stain-style augmentation to enhance robustness across diverse scanners, laboratories, and tissue-processing conditions.
  • Evaluated under a leave-one-domain-out protocol on MIDOG++, the method achieved a promising F1-score of 0.754, indicating significant improvements over traditional U-Net baselines.

Searching arXiv for the cited paper and closely related mitosis-detection work to ground the article. The Mitosis Algorithm, in the sense developed in "Mitosis detection in domain shift scenarios: a Mamba-based approach," is a computational pathology pipeline for mitosis detection in histopathology images under domain shift. It reframes mitosis detection as segmentation, uses a VM-UNet architecture with Vision Mamba blocks, and augments training with stain style perturbations to improve robustness across scanners, laboratories, tissue-processing conditions, and related acquisition domains. The method was developed on MIDOG++ under a leave-one-domain-out protocol and, on the preliminary test set for MIDOG 2025 track 1, reached an F1-score of 0.754 (Percannella et al., 28 Aug 2025).

1. Problem definition and domain-generalization setting

Mitosis detection identifies nuclei undergoing cell division in histopathology images, a task that is critical for tumor grading. A mitotic count is typically reported per area, for example 2 mm². The detection problem is difficult because mitotic figures exhibit substantial intra-class variability across prophase, metaphase, anaphase, and telophase, and because several confounders, including hyperchromatic non-mitotic nuclei, can resemble true mitoses (Percannella et al., 28 Aug 2025).

Within digital pathology, the central difficulty addressed by the algorithm is domain shift. In the reported formulation, domain shift arises from differences in staining protocols, reagents, tissue processing, scanner vendors and optics, image compression, tumor morphologies, and species. The MIDOG track 1 task is explicitly scanner- and site-agnostic and evaluates performance on unseen domains without training on the target domain. This is therefore a domain generalization setting rather than a domain adaptation setting (Percannella et al., 28 Aug 2025).

A recurrent misconception in this literature is that mitosis detection must be posed as direct object detection. The Mamba-based method instead treats the task as segmentation followed by conversion of pixel-wise predictions into point detections. This design choice places it in the same broader family as other segmentation-driven mitosis pipelines, while differing from anchor-based detectors such as RetinaNet or Cascade R-CNN and from proposal-classification cascades (Percannella et al., 28 Aug 2025).

2. Data, annotations, and evaluation protocol

The reported system was developed and evaluated on MIDOG++, which aggregates annotations for 11,937 mitoses over 503 tumor cases spanning 7 domains. Each domain differs by tumor type, acquisition scanner, laboratory protocol, and often species, making the dataset a broad test bed for domain shift. Training and validation follow a leave-one-domain-out protocol: in each run, 6 domains serve for training, and the held-out domain serves strictly for validation, with model selection performed by validation loss (Percannella et al., 28 Aug 2025).

MIDOG++ provides point annotations corresponding to mitosis centers. For this algorithm, those point annotations are converted into segmentation masks with NuClick, an interactive nuclei segmentation method driven by point clicks. This conversion is fundamental because the method optimizes a supervised segmentation objective rather than a direct detection objective (Percannella et al., 28 Aug 2025).

The challenge itself evaluates detection rather than segmentation. Predictions are matched to ground-truth mitosis centers using a distance-tolerance rule based on nearest-neighbor matching within a fixed radius around the annotated center. Precision, recall, and F1-score are then computed, with F1-score serving as the primary metric in the reported experiments. When segmentation quality is considered, Intersection over Union can also be reported. The standard definitions are

Prec=TPTP+FP,Rec=TPTP+FN,\mathrm{Prec} = \frac{TP}{TP + FP}, \qquad \mathrm{Rec} = \frac{TP}{TP + FN},

F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},

where PP is the predicted mask and GG is the ground-truth mask (Percannella et al., 28 Aug 2025).

3. VM-UNet and Vision Mamba formulation

The architectural core is VM-UNet, a Vision Mamba U-Net pretrained on ImageNet. It is a U-shaped encoder-decoder with skip connections, in which the principal feature extractors are Mamba-based Visual State Space blocks. The algorithm decomposes the input image into non-overlapping 4×44 \times 4 patches, projects each patch to a 96-D feature vector, and forms an embedded tensor of shape H4×W4×96\frac{H}{4} \times \frac{W}{4} \times 96 (Percannella et al., 28 Aug 2025).

The encoder contains four stages with VSS blocks for feature extraction. After the first three stages, patch merging reduces spatial resolution by a factor of 4 and doubles the channel dimension, thereby increasing the receptive field while compressing spatial detail. The decoder mirrors the encoder with four stages; patch expanding increases spatial resolution by a factor of 4 at the start of the first three stages, and VSS blocks reduce channels accordingly. Skip connections bridge encoder and decoder stages and preserve fine-grained spatial information, which is especially important for small-object segmentation such as mitoses. A projection layer restores decoder feature maps to input resolution and produces the final segmentation mask (Percannella et al., 28 Aug 2025).

At the sequence-modeling level, Mamba replaces self-attention with a selective state space model. The reported conceptual form is

xt+1=Axt+But,yt=Cxt+Dut,x_{t+1} = A x_t + B u_t, \qquad y_t = C x_t + D u_t,

where utu_t is the input at step tt, xtx_t is the latent state, and F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},0 is the output. The selective mechanism dynamically modulates the state-space parameters conditioned on the input, enabling content-dependent long-range modeling with linear complexity. Vision Mamba adapts this scheme to images by scanning features as sequences, which provides large receptive fields and context aggregation while remaining more memory/computation-efficient than transformer-based U-Nets for high-resolution pathology tiles. This suggests an efficiency–context trade-off that is particularly relevant for whole-slide pathology processing (Percannella et al., 28 Aug 2025).

4. Training objective, stain-style augmentation, and detection pipeline

Training uses F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},1 pixel tiles with 80% overlap during both training and inference. Because mitoses are rare, each batch is balanced to contain equal numbers of positive tiles, defined as tiles containing at least one mitosis, and negative tiles. Optimization uses AdamW with learning rate F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},2, 100 training epochs, and batch size 24 (Percannella et al., 28 Aug 2025).

The segmentation objective combines Dice loss and Focal loss. The Dice loss is

F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},3

where F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},4 is the predicted probability, F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},5 is the ground truth at pixel F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},6, and F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},7 stabilizes the ratio. The Focal loss is

F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},8

where F1=2PrecRecPrec+Rec,IoU=PGPG,\mathrm{F1} = \frac{2\,\mathrm{Prec}\,\mathrm{Rec}}{\mathrm{Prec} + \mathrm{Rec}}, \qquad \mathrm{IoU} = \frac{|P \cap G|}{|P \cup G|},9 balances classes and PP0 focuses the loss on hard examples. The paper references Focal loss but does not specify the PP1 and PP2 values (Percannella et al., 28 Aug 2025).

To improve domain generalization, the method applies stain style augmentation using Vahadane’s structure-preserving stain separation. An image PP3 is decomposed into stain basis PP4 and concentration matrix PP5, and random scaling and shifting are then used to mimic stain intensity and concentration variation:

PP6

where PP7 and PP8 are random coefficients. The intended effect is invariance to color and stain shifts while preserving tissue structure (Percannella et al., 28 Aug 2025).

Inference converts segmentation into detections through a fixed postprocessing chain. Overlapping tile predictions are aggregated into a full-slide mask. Morphological dilation is then applied to merge closely spaced daughter nuclei in late mitosis stages into a single connected component. Connected components are extracted, and for each component the center of the minimum-area bounding box is computed and reported as the final mitosis detection. The paper also states that predictions from top cross-validation models are combined through model ensembling. Several implementation details remain unspecified, including the exact tile-aggregation rule, dilation kernel, and thresholding (Percannella et al., 28 Aug 2025).

5. Empirical performance and relation to adjacent mitosis-detection paradigms

Under leave-one-domain-out validation on MIDOG++, the reported ablation shows a progression from a standard U-Net baseline to the Mamba-based variant and then to the full model with stain augmentation. The corresponding F1 values are summarized below (Percannella et al., 28 Aug 2025).

Method Validation setting Reported F1
U-Net MIDOG++ LODO PP9
VM-UNet MIDOG++ LODO GG0
VM-UNet + Stain Aug MIDOG++ LODO GG1
Proposed approach MIDOG 2025 track 1 preliminary test GG2

The reported improvement from U-Net to VM-UNet indicates better performance under domain shift, and the additional improvement from stain augmentation indicates that stain variability remains a dominant source of failure (Percannella et al., 28 Aug 2025).

The broader literature contains several distinct mitosis-detection paradigms. "Mitosis Detection for Breast Cancer Pathology Images Using UV-Net" formulates the task as Gaussian heatmap regression on GG3 patches and reports an F1 score of 0.6721 on MIDOG 2021 test patches (Mirjahanmardi et al., 2021). "Domain Adversarial RetinaNet as a Reference Algorithm for the MItosis DOmain Generalization Challenge" uses RetinaNet with gradient reversal and a multi-class scanner discriminator and reports F1 = 0.7183 on the final MIDOG test set (Wilm et al., 2021). "Mitosis Detection, Fast and Slow" uses a two-stage EUNet-plus-EfficientNet-B7 pipeline with stain normalization and HED augmentation, reporting F1 = 0.747 on the external MIDOG21 test and F1 = 0.764 on MIDOG22 (Jahanifar et al., 2022). "A Two-Stage Strategy for Mitosis Detection Using Improved YOLO11x Proposals and ConvNeXt Classification" reports F1 = 0.882 on a fused dataset comprising MIDOG++, MITOS_WSI_CCMCT, and MITOS_WSI_CMC (Xiao et al., 1 Sep 2025).

These reports span different datasets and protocols, including MIDOG++, MIDOG21, MIDOG22, TUPAC16, ICPR 2012, and fused multi-dataset settings. This suggests that direct ranking across papers should be interpreted cautiously. What is consistent across them is the recurrence of three design pressures: small-object sensitivity, hard-negative suppression, and robustness to domain shift.

6. Limitations, reproducibility, and deployment considerations

The paper explicitly states that the preliminary experiments show “large room for improvement.” The listed future directions include multi-scale context, improved stain normalization or learned stain-invariant features, semi-/self-training on unlabeled target domains, domain-adversarial training, style transfer or synthetic data, more refined postprocessing such as watershed or non-maximum suppression, uncertainty estimation, and better calibration and thresholding per domain and per scanner (Percannella et al., 28 Aug 2025).

Reproducibility is partially specified and partially open. Reported implementation details include MIDOG++ data statistics, ImageNet pretraining, NuClick-derived ground-truth masks, GG4 tiles with 80% overlap, balanced batches, AdamW with learning rate GG5, 100 epochs, batch size 24, Dice plus Focal losses, Vahadane-based stain separation, leave-one-domain-out validation, and inference with dilation, connected components, bounding-box centers, and ensembling across best cross-validation models. However, seeds, exact augmentation parameter ranges, dilation kernel size, aggregation rule, and thresholding are not specified (Percannella et al., 28 Aug 2025).

For deployment across laboratories and scanners, the paper recommends reserving a small validation set per site or scanner for tuning postprocessing and checking performance drift, periodically tracking precision and recall on quality-control sets, standardizing slide preparation and scanning settings, adjusting probability thresholds and morphological parameters to clinical priorities, and reviewing detections around tissue folds, pen marks, necrotic areas, and out-of-focus regions (Percannella et al., 28 Aug 2025).

A further point of clarification is terminological. The phrase “Mitosis Algorithm” is not a unique identifier for a single method across arXiv. In computational pathology it can denote segmentation-based, detector-based, weakly supervised, teacher-student, or two-stage proposal-classification pipelines (Percannella et al., 28 Aug 2025, Jahanifar et al., 2022, Fernandez-Martín et al., 2022, Choe et al., 3 Sep 2025). In the present usage, it most precisely denotes the VM-UNet-plus-stain-augmentation method for mitosis detection under domain shift introduced in 2025 (Percannella et al., 28 Aug 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Mitosis Algorithm.