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).4metadata:5 source: https://skillmd.com/skills/qhjqhj00/nuclei-seg-ocda-eval6 skill_kind: dataset_eval7 source_arxiv: 2401.094968 bibtex_key: fan2024learning9 confidence: high10---1112# nuclei-seg-ocda-eval1314> Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation — Fan et al. (2024) (arXiv:2401.09496, 2024)1516## What this evaluates1718Evaluates 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.1920## Datasets2122- **BBBC039** — total 150; splits: train (100), val (50)23- **Kumar** — total 30; splits: train (16), test (14)24- **CPM17** — total 64; splits: train (32), test (32)25- **DataSeg** — total 52; splits: train (52)2627## Metrics2829- `Panoptic Quality (PQ)` **(primary)** — range: [0, 1]30 - 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.31- `DICE` — range: [0, 1]32 - 2 * |A ∩ B| / (|A| + |B|), measuring pixel-wise overlap between predicted and ground truth masks at the semantic level.33- `AJI` — range: [0, 1]34 - 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.35- `DQ` — range: [0, 1]36 - Detection Quality, the ratio of correctly detected instances (IoU > 0.5) to the sum of true positives, false positives, and false negatives.37- `SQ` — range: [0, 1]38 - Segmentation Quality, the average IoU of matched predicted and ground truth instances.3940## Input / output format4142**Input**: 256×256 image patches extracted from source domain (fluorescence microscopy or IHC-stained) and target domain (H&E-stained histopathology).4344**Output**: Instance segmentation masks and bounding boxes for each detected nucleus, typically generated via a Mask R-CNN backbone.4546## Scoring recipe4748```python49def compute_pq(pred_masks, gt_masks, iou_thresh=0.5):50 tp, fp, fn = 0, 0, 051 sq_sum = 0.052 used_gt = set()53 for i, pred in enumerate(pred_masks):54 best_iou, best_idx = 0, -155 for j, gt in enumerate(gt_masks):56 if j not in used_gt:57 iou = intersection_over_union(pred, gt)58 if iou > best_iou:59 best_iou, best_idx = iou, j60 if best_iou >= iou_thresh:61 tp += 162 sq_sum += best_iou63 used_gt.add(best_idx)64 else:65 fp += 166 fn = len(gt_masks) - len(used_gt)67 dq = tp / (tp + 0.5 * fp + 0.5 * fn) if (tp + 0.5 * fp + 0.5 * fn) > 0 else 0.068 sq = sq_sum / tp if tp > 0 else 0.069 return dq * sq70```7172## Common pitfalls7374- Unseen cancer subdomains are strictly held out in the test set to evaluate open compound generalization, so standard cross-validation is inappropriate.75- 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.76- 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.7778## Evidence (verbatim from paper)7980> 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.8182## Citation8384```bibtex85@misc{fan2024learning,86 title={Learning to Generalize over Subpartitions for Heterogeneity-aware Domain Adaptive Nuclei Segmentation},87 author={Fan et al. (2024)},88 year={2024},89 note={arXiv:2401.09496}90}91```9293- arXiv: 2401.09496