Instance segmentation finds every distinct object of a class in an image and draws a separate mask for each one, so two touching nuclei or two adjacent lesions come out as two labelled objects, not one blob of “lesion” pixels. That per-object output carries several separate claims: how many instances were missed or falsely called, whether neighbours were fused or fragmented, and how accurate each boundary is. A single pooled Dice or mAP figure blends these together, and a site reviewer cannot pull them apart again. This page explains how instance segmentation models produce that output, and which parts of it need their own evidence in a clinical imaging validation pack.
Instance Segmentation vs Semantic Segmentation: One Label per Pixel or One Identity per Object
Semantic segmentation labels every pixel with a class, so all pixels of the same category get the same label, whether they belong to one structure or ten. Instance segmentation also separates objects within a class: each object is told apart from the others even when they share a category, and it usually gets a unique ID. In multiple sclerosis (MS) imaging, for example, a semantic mask marks voxels as lesion or non-lesion, while an instance mask also attaches a lesion identifier to every lesion voxel.
Metrics Reloaded (Maier-Hein et al.) describes instance segmentation as doing object detection and semantic segmentation at once. Unlike detection, it marks the exact structure boundary. Unlike semantic segmentation, it tells apart different structures of the same class. The same framework recommends phrasing a problem as instance segmentation when structures can overlap or touch.
The difference matters for scoring as well as modelling. When overlapping predictions are scored as a semantic problem they merge into one object and can still get a perfect score. Scoring the same output as instances shows that one of the instances was barely captured.
Where Panoptic Segmentation Differs from Instance Segmentation
Panoptic segmentation, as Kirillov and colleagues defined it in 2018, combines semantic segmentation (a class label for every pixel) with instance segmentation (detect and segment each object). The distinction it relies on is between “things”, countable objects, and “stuff”, uncountable regions such as sky or pavement. Instance segmentation covers only the things and ignores the background. Panoptic segmentation labels both, and it does not allow the overlapping objects that instance and semantic outputs can contain.
For clinical validation the practical point is narrower. Panoptic Quality (PQ) was defined for panoptic segmentation, and HoVer-Net proposed it for scoring nuclear instance segmentation. The architectures and use cases of panoptic models are covered in more depth in our explainer on panoptic segmentation and how it differs from instance and semantic segmentation.
How Instance Segmentation Models Go from Detection to Per-Object Masks
Instance segmentation models fall roughly into two families, top-down and bottom-up.
Top-Down: Detect First, Then Mask Each Detection
Mask R-CNN is a top-down design. It extends the Faster R-CNN detector with a branch that predicts an object mask alongside the existing branch that predicts the bounding box. A region proposal network (RPN) forms the first stage. For each region the second stage predicts a class, a box refinement and a binary mask. The mask is kept separate from the class decision: the network predicts one mask per class, and the classification branch chooses which one to keep. The paper also replaced RoIPool with RoIAlign, because the coordinate rounding in RoIPool misaligned features enough to damage pixel-accurate masks.
Because region-proposal methods such as Mask R-CNN segment each object on their own, they have no step that separates instances, which helps with overlapping objects. The weak point is the axis-aligned box. In the StarDist experiments, Mask R-CNN did clearly worse on slanted, touching pairs of cells whose bounding boxes were almost identical, because one of each pair was suppressed. A missed instance can therefore come from the detector and not from the mask. In HoVer-Net’s comparison, Mask R-CNN was also weaker than competing methods at separating nuclear pixels from background. There is an operational catch as well: on whole-slide images processed in tiles, a nucleus cut by a tile edge has to keep one label across both tiles, and region-proposal methods find this hard.
Bottom-up: Classify Pixels, Then Group Them
The common bottom-up route first classifies every pixel (cell or background, lesion or not) and then groups pixels into instances. In radiology the grouping step is often just connected-component (CC) analysis on a semantic mask. A few misclassified pixels between crowded nuclei can fuse distinct cells into one, and CC treats confluent MS lesions as a single instance because they are spatially connected.
HoVer-Net predicts the horizontal and vertical distance from each nuclear pixel to its centre of mass and uses those maps to split clustered nuclei. One branch separates nuclei from background and another separates touching nuclei. StarDist describes each nucleus as a star-convex polygon. When it makes a mistake, it either leaves a cell out or predicts a plausible cell shape.
The broader range of image segmentation methods is covered elsewhere. The validation lesson is that in the StarDist experiments the proposal-based model dropped touching cells, while the pixel-grouping U-Net baselines merged them. That is a reason to count each error type on its own.
Why a Single Dice or mAP Score Hides What a Clinical Reviewer Needs
Here is how each common metric hides something.
Dice is biased towards large structures. Overlap metrics are biased towards large objects and cannot tell instances apart. On the AutoPET dataset, nnU-Net scored a standard Dice of 67.5 but a per-component CC-Dice of 47.4, which shows the model struggling with smaller metastases. The same study found that leaving out the ten smallest metastases barely moved the standard metrics. It also describes high-Dice models that miss new small lesions, an error that can change a treatment plan.
Dice can rise while instance separation fails. In the HoVer-Net comparison, FCN8 and SegNet, which do semantic segmentation only, beat CellProfiler and QuPath on Dice but scored low on PQ, because they could not separate clustered nuclei.
mAP reliably responds only to larger IoU changes. The SortedAP authors show that mAP, averaged over IoU thresholds from 0.5 to 0.95, is only definitely sensitive to IoU changes larger than the threshold step. Smaller boundary changes may not move the score at all. Match-based metrics also jump at the threshold. In their example, raising one prediction’s IoU from 0.49 to 0.51 changed PQ by 17.64%.
PQ combines detection and segmentation in one score. PQ splits into detection quality (DQ), the F1 score used for instance detection, and segmentation quality (SQ), how close each correctly detected instance is to its match. Metrics Reloaded gives a pair of predictions with the same PQ: one segments well but has many false positives, the other has no false positives but poor masks. SQ is only computed over true positives, so it should be read together with DQ. After a component drops below the match threshold, PQ stops reflecting how well it is segmented.
AJI and ensemble Dice give one overall score. The HoVer-Net authors note that these two nuclear segmentation metrics give only a single score and say nothing about the sub-tasks: separating nuclei from background, detecting each instance, and segmenting each detection. They also over-penalise overlapping regions, so a prediction that differs by a few pixels can score noticeably lower.
A headline PQ or Dice should sit next to the parts it is made of. One metric family cannot cover a biomedical problem, and Metrics Reloaded recommends complementary metrics from different families.
How False Merges, False Splits and Missed Instances Show up in Clinical Images
Three instance-level errors are worth separating:
- False merge: one predicted instance covers two or more reference instances, so the count drops.
- False split: one reference instance is split by two separate predictions.
- Missed instance: a reference object has no matched prediction, which is a false negative.
The FISBe benchmark counts false splits and false merges separately, and its baselines show why. PatchPerPix scored best on every metric except false merges and falsely merged many touching neurons. Duan et al. had the most false splits and the fewest false merges.
The ConfLUNet authors (2025) found that connected components consistently undercount confluent lesion units, while automated confluent lesion splitting (ACLS) tends to oversplit, which inflates counts and lowers precision. The two methods fail in opposite directions, merging versus oversplitting. On a held-out test set of 13 patients, ConfLUNet reached a PQ of 42.0% against 37.5% for CC and 36.8% for ACLS, with lesion-detection F1 of 67.3% against 61.6% and 59.9%. When CLU detection was computed across all lesions in the test set, not averaged per patient, CC’s recall dropped to 41.5%. The authors stress that the lesion-wise view gives more weight to patients with many confluent lesions, typically those with longer disease duration and/or more aggressive progression. Their literature review found that nearly all MS studies reporting detection metrics derived both predicted and reference instances with CC, so they implicitly ignored confluent lesion units.
In histology the same pattern shows up as clustered nuclei. Performance varied most between methods on the Kumar and CoNSeP datasets, which contain many overlapping nuclei.
Benchmarks that define instances by spatial contiguity can be unreliable, because touching lesions may be separate metastases. Who annotated the reference masks, and under what instructions, belongs in the ground-truth adjudication evidence.
Report False Negative Rate and False Discovery Rate Separately
Missing a lesion and over-calling one are different errors, and clinical requirements may favour avoiding one over the other. Metrics Reloaded points to the F-beta score where FP and FN should be weighted differently.
The BraTS lesion-wise Dice and HD95 penalise both error types, then average the per-lesion scores for each case. A completely missed lesion and a false positive lesion each score zero, because a missed lesion can be clinically crucial and legacy Dice does not penalise false positives properly.
Lesion-Wise Evaluation: Matching Rules, Size Thresholds and Aggregation
Per-instance evaluation depends on matching, threshold and aggregation choices. Our view is that these choices belong in the validation file next to the scores.
- Matching rule. Decide how a prediction pairs with a reference object. ConfLUNet keeps only mutually consistent best-overlap matches above an IoU threshold. Panoptica, an open-source Python package, computes instance-wise metrics for 2D and 3D maps through a three-step process and adds distance metrics such as average symmetric surface distance on top of PQ. Lesion Dice, by contrast, lets one prediction match two lesions, and that double assignment distorts split and merge behaviour.
- Localisation threshold. Metrics Reloaded suggests that lower thresholds suit small structures, 3D volumes and uncertain references. Higher ones suit tasks that need precise localisation or have densely packed structures.
- Component handling and size floor. BraTS 2023 runs connected-component analysis on the prediction and compares it, component by component, with a ground truth whose lesions have been combined by dilation. Lesion-level schemes like this need domain-specific hyperparameters, such as dilation steps and minimum component volumes, which experts often have to choose.
- Aggregation level. Compute per image (or per patient) before averaging across the dataset, because pixels and objects within one image are correlated. Default global calculations, such as the TorchMetrics Dice computed over all pixels, can hide errors on small structures.
- Size stratification. Validate separately by size range when object size varies a lot.
On reporting conventions, Metrics Reloaded notes that average precision is the computer-vision standard for instance segmentation, while FROC is often preferred clinically because it is easier to interpret, even though it lacks standardisation.
What Instance Segmentation Output Needs Separate Evidence for Clinical Validation?
A clinical validation file for an instance segmentation model should evidence each part of the output on its own, because each part can fail on its own. The checklist below is the part of the pack that is specific to segmentation.
| Evidence item | What it shows | What a pooled score hides without it |
|---|---|---|
| Instance detection: lesion-wise TP, FP, FN, sensitivity, precision, F1 | Whether every object was found and nothing extra was called | Small missed lesions under a high Dice |
| FNR and FDR reported separately | Which way the model errs, set against the clinical priority | Opposite precision and recall trade-offs between methods |
| False merge and false split counts | Whether touching or confluent instances were fused or fragmented | Methods with equal aggregates and opposite failure modes |
| Per-instance overlap on matched objects (DQ alongside SQ) | Mask quality for objects that were found | PQ ties between detection-strong and mask-strong models |
| Boundary metric (NSD, Boundary IoU, HD95), per instance | Contour accuracy, which overlap metrics ignore | Different boundaries with identical Dice |
| Size-stratified results | Performance on small structures | Large-object dominance in overlap metrics |
| Subgroup results by patient characteristics, site and equipment | Whether performance holds across the intended population | Weak subgroups masked by a good total |
| Confidence intervals on every estimate | Whether a reported difference is real | Rankings that fall within the noise |
| Reference standard and matching protocol | What “truth” and “match” meant | Contiguity assumptions and annotator choices |
The subgroup row deserves particular weight. The FDA’s January 2025 draft guidance on AI-enabled device software functions says acceptable performance in some subgroups may mask lower performance in others when only the total population is evaluated. It asks for subgroup analysis by patient characteristics such as sex, age, race, ethnicity and disease severity, and also by site and data collection equipment. For instance segmentation, we judge that this masking stacks on top of metric pooling. A model that drops small lesions on one scanner shows neither problem unless both the metric and the population are broken down. That is our judgement of how the two effects combine.
Published practice falls short on confidence intervals. The same draft guidance says all performance estimates should come with confidence intervals. A review of medical image analysis papers found that 54.8% reported no variability at all and only one paper (0.5%) reported confidence intervals. In 64.9% of papers, the second-ranked method’s mean fell within the first-ranked method’s confidence interval. The guidance also says the reference standard should reflect the clinical task, giving segmentation of contours on medical images as an example. In other words, the reference masks being scored against are part of the evidence too.
Where Segmentation Evidence Sits in the Wider Pack
The items above are the segmentation-specific rows of a larger file. The clinical imaging validation pack also covers calibration, drift monitoring and the validation-set construction protocol. TechnoLynx’s computer vision R&D team builds this kind of evidence as an engineering output in its own right, so that a reviewer who is not an engineer can read it and sign against it. For a segmentation model, we would expect a site reviewer to find per-instance detection rate, boundary error distribution and false-merge and false-split counts in separate rows. A single pooled Dice figure does not let that reviewer adjudicate the model on their own terms.