Manuscript Offprint

arXiv:2609.40083

Tissue Detection Determines False Positives in Diffusion-Based Histopathology Artifact Detection

Konstantinos Moutselos, Ilias Maglogiannis

Abstract

One-class artifact detectors for whole-slide images learn normal tissue from a clean training pool and flag departures from it. The pool is built by a preprocessing pipeline whose tissue-detection step is usually treated as neutral. We tested whether it is. On 16 annotated TCGA slides, we rebuilt the clean pool of a diffusion-based detector with different tissue detection methods and compared the resulting models in a four-fold cross-validation. Per-slide saturation–Otsu detection excluded normal tissue, chiefly tissue with large clear spaces such as adipose tissue and alveolar parenchyma, and on slides with thick marker ink kept the ink while excluding ordinary tissue. Replacing it with entropy-based detection reduced the false-positive fraction on held-out clean slides from 0.102 to 0.016, in every fold and with a second training seed, without loss of sensitivity; the gain came from the composition of the pool, not its size. Across three tissue detection methods, false positives followed the fraction of such clear-space tissue in the pool, a statistic that needs no labels or training (0.103, 0.016 and 0.009). The effect did not carry over at the same size to a nearest-neighbour detector on foundation-model features. On an external cohort, the curated pool lowered clean-control false positives by about 20%, far less than within TCGA, and the remaining cross-center loss was not explained by stain differences. For one-class quality control, tissue detection decides what the model learns as normal and should be chosen and reported accordingly.

Keywords: Digital pathology; Artifact detection; Anomaly detection; Diffusion models; Tissue detection

1. Introduction

Whole-slide images carry artifacts introduced during tissue processing and scanning: tissue folds, out-of-focus regions, air bubbles and marker ink, among others. Left undetected, they degrade downstream computational pathology models (Schömig-Markiefka et al., 2021; Wright et al., 2021), and automated quality control has become a routine preprocessing step (Janowczyk et al., 2019; Weng et al., 2024). Regions it flags are either discarded, at the risk of losing diagnostic tissue, or restored by generative models (Lee et al., 2026); either way, a false positive costs normal tissue. Supervised detectors require pixel-level annotations for every artifact class and generalize poorly to classes they were not trained on. One-class detectors avoid both limitations: they learn the distribution of normal tissue from a clean training pool and flag whatever departs from it. Reconstruction-based diffusion models are a recent instance of this approach in histopathology (Fuchs et al., 2024; Linmans et al., 2024; Wang et al., 2026).

For a one-class detector, the clean training pool is not an incidental input: it is the definition of normal. It is usually assembled by a preprocessing pipeline that tiles the slide, keeps the tiles judged to be tissue, and removes those overlapping annotated artifacts. The tissue-detection step in that pipeline is commonly treated as neutral, a matter of discarding glass. Its effect has been studied mainly in two ways. Tissue detection methods are compared by their overlap with reference tissue masks (Ceachi et al., 2025), and the few studies of downstream effects concern supervised models: in prostate cancer grading, replacing thresholding-based with deep-learning tissue detection did not significantly change overall Gleason grading performance, although it reduced complete detection failures (Boman et al., 2026). For a supervised model, tissue detection decides which regions are scored. For a one-class model, it also decides what is learned as normal: tissue excluded from the pool lies outside the support of the learned distribution and is flagged as anomalous when it appears at test time (Myles et al., 2026). How much of a one-class detector's false-positive burden originates in the tissue detection used to build its pool has, to our knowledge, not been measured.

We encountered the question in our own work on a diffusion-based artifact detector. After reproducing and extending a published detector (Moutselos and Maglogiannis, 2026a, 2026b), a decomposition of its benchmark performance (Moutselos and Maglogiannis, 2026c) showed that its false positives on clean tissue concentrate in normal tissue with large clear spaces, such as adipose tissue and alveolar parenchyma, which the saturation-based tissue detection used to build the training pool classifies as background. We call this clear-space tissue: normal tissue in which much of the area is lumen, alveolar space or fat vacuole, bounded by thin walls or septa. The present study tests that observation as a causal claim.

We rebuilt the clean pool with different tissue detection methods and compared the resulting detectors in a four-fold cross-validation over 16 annotated TCGA slides. We then asked whether the effect is graded, whether it depends on the detector, and whether it transfers to an external cohort. Our contributions are:

  1. We show that per-slide saturation–Otsu tissue detection systematically excludes normal clear-space tissue from the clean pool and, on slides with thick marker ink, keeps the ink while excluding ordinary tissue.

  2. We show that replacing it with entropy-based tissue detection removes most false positives on held-out clean slides (a more than sixfold reduction, reproduced with a second training seed and in every fold) without loss of sensitivity, and that the gain comes from the composition of the pool rather than its size.

  3. We show that the effect is graded: across three tissue detection methods, clean-slide false positives follow the fraction of clear-space tissue each method admits to the pool, a statistic that needs no labels and no training.

  4. We delimit the claim: the effect does not carry over at the same size to a nearest-neighbour detector on foundation-model features; on an external cohort it is in the expected direction but not confirmed, and the remaining cross-center loss is not explained by stain differences.

  5. We release the pools, fold definitions, code and evaluation outputs, and give practical recommendations for building clean pools for one-class quality control.

The remainder of the paper is organized as follows. Section 2 describes the data, detector, pools and evaluation design; Section 3 reports the results; Section 4 discusses their implications and limitations; Section 5 concludes.

References (28)