RINGS Prostate Gland and Tumor Regions (H&E)
Segments glandular tissue and tumour regions in H&E-stained human prostate images. The module produces two region maps and measures their areas, overlap, and proportions within each selected region.
Using the module
Add histoforge/rings-prostate-gland-and-tumor to HistoForge and run it on
selected regions in QuPath. Images need pixel calibration; the models analyse
them at 0.934 µm/px.
| Output class | What it marks |
|---|---|
| Gland Region | Glandular regions, including glands within tumour areas. |
| Tumour Region | Tumour regions, predicted independently of the gland model. |
The two outputs may overlap. They describe tissue regions; they do not separate individual glands, identify tumour cells, or assign Gleason grades.
Measurements
Measurements are calculated within each selected region of interest (ROI).
| Measurement | Meaning | Unit |
|---|---|---|
| Analysed ROI Area | Area of the selected region. | mm² |
| Gland Region Area | Area marked as gland. | mm² |
| Tumour Region Area | Area marked as tumour. | mm² |
| Gland in Tumour Area | Area marked as both gland and tumour. | mm² |
| Gland Region in ROI | Gland area divided by ROI area, × 100. | % |
| Tumour Region in ROI | Tumour area divided by ROI area, × 100. | % |
| Gland in Tumour Region | Gland–tumour overlap divided by tumour area, × 100. | % |
Overlapping predictions of the same class are counted once within an ROI. Across ROIs, areas are summed and defined percentages are averaged with equal weight per ROI. Overlapping ROI selections can count the same tissue twice.
When no tumour is predicted, Gland in Tumour Region is left blank. Other predicted areas and ROI percentages are zero when their corresponding regions are absent.
Examples
Three randomly selected validation fields, shown as original image | annotation overlay | model prediction. Blue marks gland, purple marks tumour, and orange marks their overlap. Each field is 1.401 × 1.401 mm.



Performance
The packaged models were evaluated on the official RINGS test set: 500 images from 50 patients. Dice and IoU measure agreement with the released masks; higher values indicate closer agreement.
HistoForge evaluation convention
| Model | Dice, pooled pixels | IoU, pooled pixels |
|---|---|---|
| Gland | 0.9541 | 0.9123 |
| Tumour | 0.9367 | 0.8810 |
Counts are pooled across all images, scoring foreground against the released binary masks. No in-image pixels are ignored.
Paper comparison
| Model / evidence | Dice per image, mean ± SD |
|---|---|
| This module's gland model | 0.9276 ± 0.1524 |
| Original RINGS gland method, paper-reported | 0.9016 ± 0.1087 |
| This module's tumour model | 0.9360 ± 0.1563 |
Our per-image results use the same predictions as the pooled metrics, with each image weighted equally. Among the 238 images with annotated tumour, mean tumour Dice was 0.9035 ± 0.1130. The other 262 images have empty tumour masks. An empty annotation and empty prediction score Dice 1; an empty annotation with a nonempty prediction scores 0. SD is the population standard deviation across images.
The original-method result is quoted from Salvi et al. (2021), not an author-model rerun. It uses the same test set, but the paper's empty-mask handling is unspecified, so exact protocol parity is not established.
Gland agreement inside and outside annotated tumour
The paper also reports gland Dice separately for non-tumour and tumour tissue (its Table 3). Here each image is divided by its released tumour mask, and gland pixels are scored only within each part.
| Part of image | Images | Dice, pooled pixels | Dice per image, mean ± SD | Original RINGS method, paper-reported |
|---|---|---|---|---|
| Outside annotated tumour | 496 | 0.9473 | 0.7521 ± 0.3563 | 0.9103 |
| Inside annotated tumour | 238 | 0.9620 | 0.9396 ± 0.0902 | 0.8987 |
Four images are entirely tumour and 262 contain none, so the image counts differ. Outside tumour, 94 images have no annotated gland; 67 of them contain some predicted gland and score Dice 0, which lowers the per-image mean. Across the 402 images with annotated gland outside tumour, the per-image mean is 0.8608 ± 0.2155. The paper does not state whether its values are per-image means or pooled, or how it scores a part without annotated gland, so neither of our columns is an exact match.
Tumour detection reference
The paper reports no tumour-segmentation benchmark. Its tumour result (Table 4) comes from a separate cancer-detection classifier that labels 500 × 500-pixel image patches selected by the gland segmentation. This module labels individual pixels instead. The rows below are therefore different tasks and units, not a ranking.
| Evidence | Scored unit | Precision | Recall |
|---|---|---|---|
| RINGS gland selection + patch classifier, paper-reported | gland-selected image patches | 0.9124 | 0.9723 |
| This module's tumour model | pixels, pooled across 500 images | 0.9336 | 0.9399 |
Pixel precision is the share of predicted tumour pixels inside the released tumour mask. Pixel recall is the share of tumour-mask pixels that were predicted.
All tables in this section describe the research evaluator, not measured HistoForge-runtime performance. HistoForge uses different tiling and blending; these scores have not been reproduced across the full test set in HistoForge.
Limitations
- Small glands and focal tumour regions can be missed. Ducts, vessel-like structures, and image borders can produce false-positive regions.
- Touching glands may form one region. The outputs do not support individual-gland counts, diameters, or shape measurements.
- Performance on other centres, scanners, stains, or tissue preparations has not been independently established.
Models and training
Each model uses DINOv3 ViT-L/16 with a multiscale feature adapter and a two-class semantic head. Both start from H&E-12 nucleus pretraining and are fine-tuned independently on RINGS.
Training used 850 images, with 150 images reserved for checkpoint selection. This development split is by image; patient separation within it is not established. The official train/test cohorts are separate patients, as reported by the dataset authors.
The recipe uses 1024-pixel crops at 0.934 µm/px, rotations and flips, H&E appearance augmentation, weighted cross-entropy plus Tversky loss, AdamW, batch size 4, and seed 42. Training ran for 5,000 optimizer steps, with validation every 100 steps. The gland and tumour checkpoints were selected at steps 4,100 and 4,300 by validation Dice.
- Data preparation and reproduction guide
- Training scripts
- Evaluation scripts
- Training datasets and licences
Licences and citations
Training data notice: these weights start from a pretrained model whose training data includes CC BY-NC-SA 4.0 datasets and datasets with no stated licence, listed in TRAINING-SOURCES.md. They are released for non-commercial research. This release grants no rights in that data. Commercial users should make their own assessment or obtain permission from the dataset authors.
- Weights: DINOv3 License.
- Measurement script and configuration: Apache-2.0.
- Example images and annotations: CC BY 4.0; see image credits.
Dataset: RINGS, Mendeley Data, version 1.
Salvi et al. (2021). A hybrid deep learning approach for gland segmentation in prostate histopathological images. Artificial Intelligence in Medicine 115, 102076. doi:10.1016/j.artmed.2021.102076.
Foundation model: DINOv3 (2025).