nuclei-seg-ocda-eval
Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation — Fan et al. (2024) (arXiv:2401.09496, 2024)
What this evaluates
Evaluates domain adaptive nuclei instance segmentation under cross-modality and cross-stain settings. It probes the model's ability to generalize to unseen cancer subdomains and different imaging modalities without target annotations.
Datasets
- BBBC039 — total 150; splits: train (100), val (50)
- Kumar — total 30; splits: train (16), test (14)
- CPM17 — total 64; splits: train (32), test (32)
- DataSeg — total 52; splits: train (52)
Metrics
Panoptic Quality (PQ) (primary) — range: [0, 1]
- PQ = DQ × SQ, where DQ measures detection accuracy (TP / (TP + 0.5FP + 0.5FN)) and SQ measures segmentation accuracy (average IoU of matched instances). It unifies instance detection and pixel-level segmentation into a single score.
DICE — range: [0, 1]
- 2 * |A ∩ B| / (|A| + |B|), measuring pixel-wise overlap between predicted and ground truth masks at the semantic level.
AJI — range: [0, 1]
- Adjusted Jaccard Index, an instance-level metric that computes the union of intersections over the union of ground truth masks, penalizing over-segmentation and fragmentation.
DQ — range: [0, 1]
- Detection Quality, the ratio of correctly detected instances (IoU > 0.5) to the sum of true positives, false positives, and false negatives.
SQ — range: [0, 1]
- Segmentation Quality, the average IoU of matched predicted and ground truth instances.
Input / output format
Input: 256×256 image patches extracted from source domain (fluorescence microscopy or IHC-stained) and target domain (H&E-stained histopathology).
Output: Instance segmentation masks and bounding boxes for each detected nucleus, typically generated via a Mask R-CNN backbone.
Scoring recipe
def compute_pq(pred_masks, gt_masks, iou_thresh=0.5):
tp, fp, fn = 0, 0, 0
sq_sum = 0.0
used_gt = set()
for i, pred in enumerate(pred_masks):
best_iou, best_idx = 0, -1
for j, gt in enumerate(gt_masks):
if j not in used_gt:
iou = intersection_over_union(pred, gt)
if iou > best_iou:
best_iou, best_idx = iou, j
if best_iou >= iou_thresh:
tp += 1
sq_sum += best_iou
used_gt.add(best_idx)
else:
fp += 1
fn = len(gt_masks) - len(used_gt)
dq = tp / (tp + 0.5 * fp + 0.5 * fn) if (tp + 0.5 * fp + 0.5 * fn) > 0 else 0.0
sq = sq_sum / tp if tp > 0 else 0.0
return dq * sq
Common pitfalls
- Unseen cancer subdomains are strictly held out in the test set to evaluate open compound generalization, so standard cross-validation is inappropriate.
- Cross-stain adaptation uses IHC-stained images as source and H&E as target, which differs from the cross-modality fluorescence-to-H&E setup.
- Metrics are reported with standard deviations, implying multiple random seeds or data splits were used, but the exact number of runs is not specified in the text.
Evidence (verbatim from paper)
For the purpose of fair comparison, we adopt three metrics to evaluate the performance of nuclei instance segmentation which are broadly used in previous works. Panoptic quality (PQ) is a unified score which integrates detection quality (DQ) and segmentation (SQ) [70]. The consolidated metric inherits capability to simultaneously measure the accuracy with respect to both detection and segmentation tasks. It is considered as a robust quantification for comprehensive evaluation of instance segmentation result. Additionally, we adopt DICE and AJI [18] to perform supplemental evaluation at semantic and instance level respectively.
Citation
@misc{fan2024learning,
title={Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation},
author={Fan et al. (2024)},
year={2024},
note={arXiv:2401.09496}
}
1---2name: nuclei-seg-ocda-eval3description: Evaluates domain adaptive nuclei instance segmentation under cross-modality and cross-stain settings. It probes the model's ability to generalize to unseen cancer subdomains and different imaging modalities without target annotations. Use when the user wants to benchmark on BBBC039, Kumar, CPM17, DataSeg, or asks about evaluating this task. Reports Panoptic Quality (PQ).4---56# nuclei-seg-ocda-eval78> Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation — Fan et al. (2024) (arXiv:2401.09496, 2024)910## What this evaluates1112Evaluates domain adaptive nuclei instance segmentation under cross-modality and cross-stain settings. It probes the model's ability to generalize to unseen cancer subdomains and different imaging modalities without target annotations.1314## Datasets1516- **BBBC039** — total 150; splits: train (100), val (50)17- **Kumar** — total 30; splits: train (16), test (14)18- **CPM17** — total 64; splits: train (32), test (32)19- **DataSeg** — total 52; splits: train (52)2021## Metrics2223- `Panoptic Quality (PQ)` **(primary)** — range: [0, 1]24 - PQ = DQ × SQ, where DQ measures detection accuracy (TP / (TP + 0.5*FP + 0.5*FN)) and SQ measures segmentation accuracy (average IoU of matched instances). It unifies instance detection and pixel-level segmentation into a single score.25- `DICE` — range: [0, 1]26 - 2 * |A ∩ B| / (|A| + |B|), measuring pixel-wise overlap between predicted and ground truth masks at the semantic level.27- `AJI` — range: [0, 1]28 - Adjusted Jaccard Index, an instance-level metric that computes the union of intersections over the union of ground truth masks, penalizing over-segmentation and fragmentation.29- `DQ` — range: [0, 1]30 - Detection Quality, the ratio of correctly detected instances (IoU > 0.5) to the sum of true positives, false positives, and false negatives.31- `SQ` — range: [0, 1]32 - Segmentation Quality, the average IoU of matched predicted and ground truth instances.3334## Input / output format3536**Input**: 256×256 image patches extracted from source domain (fluorescence microscopy or IHC-stained) and target domain (H&E-stained histopathology).3738**Output**: Instance segmentation masks and bounding boxes for each detected nucleus, typically generated via a Mask R-CNN backbone.3940## Scoring recipe4142```python43def compute_pq(pred_masks, gt_masks, iou_thresh=0.5):44 tp, fp, fn = 0, 0, 045 sq_sum = 0.046 used_gt = set()47 for i, pred in enumerate(pred_masks):48 best_iou, best_idx = 0, -149 for j, gt in enumerate(gt_masks):50 if j not in used_gt:51 iou = intersection_over_union(pred, gt)52 if iou > best_iou:53 best_iou, best_idx = iou, j54 if best_iou >= iou_thresh:55 tp += 156 sq_sum += best_iou57 used_gt.add(best_idx)58 else:59 fp += 160 fn = len(gt_masks) - len(used_gt)61 dq = tp / (tp + 0.5 * fp + 0.5 * fn) if (tp + 0.5 * fp + 0.5 * fn) > 0 else 0.062 sq = sq_sum / tp if tp > 0 else 0.063 return dq * sq64```6566## Common pitfalls6768- Unseen cancer subdomains are strictly held out in the test set to evaluate open compound generalization, so standard cross-validation is inappropriate.69- Cross-stain adaptation uses IHC-stained images as source and H&E as target, which differs from the cross-modality fluorescence-to-H&E setup.70- Metrics are reported with standard deviations, implying multiple random seeds or data splits were used, but the exact number of runs is not specified in the text.7172## Evidence (verbatim from paper)7374> For the purpose of fair comparison, we adopt three metrics to evaluate the performance of nuclei instance segmentation which are broadly used in previous works. Panoptic quality (PQ) is a unified score which integrates detection quality (DQ) and segmentation (SQ) [70]. The consolidated metric inherits capability to simultaneously measure the accuracy with respect to both detection and segmentation tasks. It is considered as a robust quantification for comprehensive evaluation of instance segmentation result. Additionally, we adopt DICE and AJI [18] to perform supplemental evaluation at semantic and instance level respectively.7576## Citation7778```bibtex79@misc{fan2024learning,80 title={Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation},81 author={Fan et al. (2024)},82 year={2024},83 note={arXiv:2401.09496}84}85```8687- arXiv: 2401.09496