Computational pathology · Open source

SCOUT: Risk-Guided Foundation-Model Escalation for Robust Tissue Detection in Whole-Slide Images

Cristian Tommasino  ·  Antonio M. Rinaldi

Department of Electrical Engineering and Information Technology (DIETI), University of Naples Federico II

arXiv:2611.24366 · under review

$ pip install scout-tissue
SCOUT pipeline: an initial thumbnail mask, an audit head that predicts its errors, the highest-risk half of the candidate windows sent to a frozen foundation model, and consensus fusion into the final tissue mask with a review flag
SCOUT on an immunohistochemistry (Ki67) slide. An optical-density threshold misses the pale tissue; the audit head ranks the windows by the risk of an error, the highest-risk half is re-read at 2 µm/px by a frozen foundation model, and consensus fusion writes the decision back into the mask.

Why tissue detection is not solved

Tissue detection is the first step of almost every whole-slide image pipeline, and it is usually treated as solved: released detectors reach a high mean overlap with manual masks. But a high mean Dice can coexist with a missed needle-biopsy fragment or a whole pale immunohistochemistry section left out, and those errors pass silently into every downstream model.

We measure detectors by how often a mask is wrong enough to need correction, on a public benchmark with manual masks from many sources and stains. Five released detectors fail on 29–95 % of the test case groups even after their threshold and post-processing are re-tuned on the benchmark, mostly by missing pale and immunohistochemistry tissue. SCOUT corrects these errors by running a pathology foundation model only where a cheap detector is likely to be wrong.

18.6%
test case groups needing correction, against 29.2 % for the best re-tuned released detector
22.0%
on immunohistochemistry, where re-tuned released detectors fail on 28–100 %
28.0%
on sources held out of training, against 38.3 % for a U-Net trained on the same masks and 29.9 % for the best re-tuned released detector
½
of the candidate windows reach the foundation model, with no loss against sending all of them

How it works

Initial tier

An optical-density threshold with morphology gives a mask of the whole slide at 8 µm/px in seconds.

Audit

A 1.4 M-parameter U-Net predicts, pixel by pixel, where that mask misses tissue or includes background.

Foundation model

The highest-risk half of the 448 µm windows near tissue is re-read at 2 µm/px and segmented by a frozen foundation model with a light decoder.

Consensus and review

New tissue is added only where the foundation model is confident, so glass and debris stay out. A calibrated score flags slides for review.

The review flag is calibrated with Learn-then-Test to bound the rate of unflagged failures; it is calibrated for the Virchow2 variant of the paper and is not part of the released package.

Results

Tissues with Issues test set: 113 case groups, 153 slides. A case group fails when the mask of one of its slides would need manual correction (more than 2 % of the tissue missed, a fragment of at least 0.1 mm² less than half detected, false tissue above 10 % of the tissue area, or precision below 0.9). Released detectors are evaluated after their probability threshold and post-processing are re-tuned on the development set. A U-Net trained on the same masks fails on 19.5 %.

MethodCase groups failedIHC case groups failed
SCOUT (Virchow2, paper)18.6 %22.0 %
SCOUT-open (H-optimus-0, released)19.5 %–
HEST29.2 %28.0 %
AtlasPatch37.2 %62.0 %
nnU-Net (Helgesen et al.)46.9 %72.0 %
GrandQC52.2 %100.0 %
Left: failure rate against the share of candidate windows sent to the foundation model, for the audit-risk, boundary and random gates; SCOUT reaches 18.6 percent at half the windows. Right: failure rates with each source seen in training and held out; SCOUT rises from about 19 to 28 percent, the U-Net and the cascade without the foundation model to 38 percent, re-tuned HEST from 29 to 30 percent.
(a) Where the foundation model is spent matters more than how much: windows chosen by the audit risk cut failures far more than random ones, and sending every window brings no further gain. (b) With each source held out of training, SCOUT degrades much less than a U-Net trained on the same masks or the same cascade without the foundation model; HEST with a re-tuned threshold fails about as often as SCOUT, but on different sources, and fails on 9 of 10 external slides.
Masks of SCOUT and the released detectors on H&E, immunohistochemistry and special-stain test slides; hatching marks missed and false tissue
Test slides chosen by a prespecified rule for each stain family: the slide at the median SCOUT Dice and the slide with the largest gain over the best comparator. Hatching marks missed (/) and false (\) tissue.

Use it

The scout-tissue package runs SCOUT-open, built on the Apache-licensed H-optimus-0 (accept its terms on Hugging Face first). The weights download automatically. Masks come out on the slide's level-0 frame as NumPy, PNG or GeoJSON that QuPath imports directly.

Command line

# one or many slides; models load once
pip install scout-tissue
scout-tissue predict slide.svs --out masks/ \
    --format npz,png,geojson

# browser demo
pip install "scout-tissue[demo]"
scout-tissue demo --port 7860

Python

from scout_tissue import Scout

scout = Scout.from_pretrained(device="cuda")
res = scout.predict("slide.svs")

res.mask             # bool [H, W] at 8 µm/px
res.tissue_area_mm2
res.to_geojson()     # level-0 polygons
res.save("masks/", ("npz", "geojson"))

About 6–89 s per slide on an NVIDIA RTX 5000 Ada (median ~41 s), with ~6 GB of GPU memory. Code Apache-2.0; SCOUT weights CC BY-NC 4.0; research use only.

Citation

@misc{tommasino2026scout,
  title  = {{SCOUT}: Risk-Guided Foundation-Model Escalation for Robust
            Tissue Detection in Whole-Slide Images},
  author = {Tommasino, Cristian and Rinaldi, Antonio M.},
  year   = {2026},
  eprint = {2611.24366},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV}
}