PUMA Melanoma Nuclei (H&E)
Segments individual nuclei in human primary and metastatic melanoma hematoxylin-and-eosin (H&E) images and assigns one of ten released classes to each nucleus. Returns nucleus objects, per-class counts and a total classified-nucleus count.
Research use only; not for clinical diagnosis.
Using the module
Open Modules in HistoForge, choose Install module,
and enter histoforge/puma-melanoma-nuclei. Select the installed module for
your analysis regions.
Use brightfield RGB melanoma images with calibrated pixel size. The working resolution is 0.23 micrometres per pixel. Review contours and class assignments before interpreting counts, particularly for rare classes and densely packed nuclei.
| Output class | What it marks |
|---|---|
| Stroma | A nucleus assigned the release's stromal class. |
| Tumor | A nucleus classified as melanoma tumor. |
| Plasma cell | A nucleus classified as plasma cell. |
| Histiocyte | A nucleus classified as histiocyte. |
| Lymphocyte | A nucleus classified as lymphocyte. |
| Melanophage | A nucleus classified as melanophage. |
| Neutrophil | A nucleus classified as neutrophil. |
| Endothelium | A nucleus assigned the release's endothelial class. |
| Epithelium | A nucleus assigned the release's epithelial class. |
| Apoptosis | An object assigned the release's apoptotic-nucleus class. |
Background is not returned as an object. These are model assignments using the dataset's categories, not independently adjudicated cell identities. The module does not segment tissue compartments or distinguish finer immune subtypes.
Measurements
Counts use the current classified objects supplied for each analysis region, including manual additions, deletions and class corrections.
| Measurement | Meaning | Unit |
|---|---|---|
| Stroma Nuclei | Number of Stroma objects. | nuclei |
| Tumor Nuclei | Number of Tumor objects. | nuclei |
| Plasma Cell Nuclei | Number of Plasma cell objects. | nuclei |
| Histiocyte Nuclei | Number of Histiocyte objects. | nuclei |
| Lymphocyte Nuclei | Number of Lymphocyte objects. | nuclei |
| Melanophage Nuclei | Number of Melanophage objects. | nuclei |
| Neutrophil Nuclei | Number of Neutrophil objects. | nuclei |
| Endothelium Nuclei | Number of Endothelium objects. | nuclei |
| Epithelium Nuclei | Number of Epithelium objects. | nuclei |
| Apoptosis Nuclei | Number of Apoptosis objects. | nuclei |
| Total Classified Nuclei | Sum of the ten counts above. | nuclei |
An empty valid region returns zero. Failed regions are not zero-count observations. Counts sum across regions; use non-overlapping regions to avoid double counting. Other classes and unclassified objects are excluded. See Measurement definitions for exact class matching.
Examples
Three validation fields were selected by deterministic pseudorandom sampling before inspecting images or scores. They were not used to fit weights, but their validation scores helped select the checkpoint. They are not independent test examples. Each figure shows original | released annotation | prediction over identical pixels. See Example credits.



Performance
Measured on all 26 validation fields, equally divided between primary and metastatic melanoma. They contain 12,843 native annotated objects and 12,842 objects in the exclusive instance raster. This population selected the checkpoint, so these are development results, not independent accuracy. No test-set result is claimed.
The tables measure the packaged step-2,600 weights using the finite-image HistoForge backend on GH200, with BF16 inference and emitted classed polygons.
| Metric | Value |
|---|---|
| End-to-end object macro-F1 | 0.319 |
| End-to-end object micro-F1 | 0.727 |
| Ten-class pooled panoptic quality | 0.255 |
| Segmentation score at IoU 0.50 (AP50) | 0.874 |
| Mean segmentation accuracy (mSA) | 0.555 |
| Native-center macro-F1, pooled counts | 0.332 |
| Native-center micro-F1, pooled counts | 0.740 |
| Native-center F1, mean over images and classes | 0.223 |
Object F1 counts missed, extra and incorrectly classified nuclei. A correct object requires mask intersection-over-union (IoU) above 0.5 and the correct class; this is not classification accuracy restricted to matched nuclei. F1 and panoptic quality pool counts before averaging ten classes. AP50 is TP/(TP+FP+FN) at IoU 0.50, not a confidence-ranked curve area; mSA averages that score over thresholds 0.50 to 0.95. AP50 and mSA are class-agnostic field means, so they do not measure cell-type recognition.
The secondary native-center score includes every source object and matches same-class centers at distance below 15 pixels. Source vertices and predicted mask centers use different constructions, with a documented multipart-polygon adaptation. Per-image averaging assigns zero to absent classes. These scores are not exact paper-protocol reproductions.
| Output class | Annotated raster nuclei | Predicted nuclei | Object F1 | Class PQ |
|---|---|---|---|---|
| Stroma | 314 | 800 | 0.321 | 0.258 |
| Tumor | 7,507 | 7,364 | 0.819 | 0.673 |
| Plasma cell | 19 | 0 | 0.000 | 0.000 |
| Histiocyte | 1,029 | 1,013 | 0.422 | 0.353 |
| Lymphocyte | 3,170 | 3,199 | 0.790 | 0.646 |
| Melanophage | 43 | 87 | 0.369 | 0.279 |
| Neutrophil | 12 | 18 | 0.267 | 0.195 |
| Endothelium | 272 | 20 | 0.027 | 0.020 |
| Epithelium | 397 | 19 | 0.029 | 0.025 |
| Apoptosis | 79 | 140 | 0.146 | 0.104 |
Cell-type recognition is uneven. No objects were classified as Plasma cell. Endothelium and epithelium recall were only 1.5% each. Tumor and lymphocyte results do not justify trusting these weaker categories. Only one training seed was run; confidence intervals and independent validation are unavailable.
For context, the PUMA authors reported the following in Table 3 on a different hidden 94-field challenge population, after five-fold public-data training. Their population, center construction and aggregation differ. These quoted results are not an author-model rerun or a same-set ranking.
| Paper model | Paper micro-F1 | Paper Average F1 |
|---|---|---|
| HoVer-Net | 0.61 | 0.27 |
| HoVer-NeXt | 0.61 | 0.27 |
See the paper for its protocol and tissue-based postprocessing comparisons, which this module does not use.
Limitations
- The image-level split does not establish patient independence. Performance across institutions, scanners and staining protocols is not established.
- No objects were classified as Plasma cell, and endothelial/epithelial recall was very low on validation. Do not treat their reported counts as reliable estimates.
- Validation has only 12 annotated neutrophils, 19 plasma cells and 43 melanophages. Rare-class measurements require particular caution.
- Source-order rasterization gives overlapping pixels to later annotations. One validation nucleus is completely overwritten; native-object scoring retains it separately. The contours are released labels, not biological certainty.
- Missed, extra, merged, split or misclassified nuclei can bias every count. The model provides no calibrated confidence or abstention score.
- Finite-field evaluation does not establish whole-slide stitching, live L40S behavior or end-to-end QuPath persistence and export.
- The module does not measure density, tissue area, prognosis, treatment response or a clinical score.
- The original nucleus-pretraining manifest is unavailable. Current corpus filenames exclude PUMA, but complete historical per-file lineage has not been established.
Model and training
One network predicts Cellpose flows, foreground probability and eleven class logits: background plus the ten reported categories. It uses DINOv3 ViT-L/16 with a multiscale spatial adapter and native-resolution readout. The backbone, adapter and flow head start from H&E-12 nucleus pretraining; the classification head starts fresh. The backbone stays frozen while 8,264,772 adapter and head parameters are trained, out of 311,377,478 total parameters.
The fixed development recipe uses 138 training fields, 256-pixel affine crops, batch four and seed 42. Training completed 3,000 optimizer steps and 12,000 sampled crop exposures. The packaged checkpoint is step 2,600, after 10,400 sampled crop exposures. All 26 validation fields are evaluated every 100 steps. Selection maximizes ten-class end-to-end object macro-F1 at mask IoU above 0.5, with earliest-step ties. There is no full-data refit or test-set result.
| Component | Purpose | Artifact |
|---|---|---|
| Nucleus model | RGB image to classed nucleus instances | Weights |
| Module recipe | Image scale, tiling and output classes | recipe.json |
| Measurement script | Classified nuclei to eleven counts | metrics.groovy |
See the reproduction guide for exact source revisions, data conversion, training, selection, inference and example sampling. Exact retraining requires access to the cited source repositories and original initializer, which is not bundled. Public clean-room retraining is not yet available.
Licences and citations
- DINOv3-derived weights: DINOv3 License. This model uses DINOv3. The pretraining sources include noncommercial and unspecified dataset terms; unrestricted derived-weight rights are not established.
- Measurement script and configuration: Apache-2.0; Cellpose components retain their BSD-3-Clause notice. See Scripts and code licences.
- Example images and released annotations: PUMA v5 declares CC0. See Example credits.
- Training data: Training datasets and licences. Training datasets are not included in the module.
Dataset: Schuiveling et al. (2025), A novel dataset for nuclei and tissue segmentation in melanoma with baseline nuclei segmentation and tissue segmentation benchmarks. GigaScience.
Foundation model: Siméoni et al. (2025), DINOv3. arXiv:2508.10104.
Instance decoding: Stringer et al. (2021), Cellpose: a generalist algorithm for cellular segmentation. Nature Methods.