arXiv:2611.08838cs.CVNov 2026

Manuscript Offprint

arXiv:2611.08838

The APL Doesn't Fall Far From The Tree: Unsupervised Artefact Prototype Learning in Histopathology

Emilia Agasi, Charlie Gourley, C. Simon Herrington, Robert L. Hollis, T. Ian Simpson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Histopathology foundation models provide rich representations of tissue morphology, but technical artefacts in whole slide images introduce noise that may impact diagnostic accuracy. We introduce Artefact Prototype Learning (APL), a novel approach to detecting these artefacts that exploits the geometry of pre-trained embedding spaces without manual labels or fine-tuning. Rather than treating artefacts as isolated outliers, APL computes prototypes of out-of-distribution patches and uses them to distinguish artefact-associated patterns from tissue. Evaluation on a single-centre dataset shows that APL outperforms prior methods GrandQC and HistoART in detecting artefacts such as blur, dark spots, slide edges and pen marks, but struggles with tissue folds and blood. These results show that frozen pre-trained embeddings already carry information that allows artefact detection without expensive labels or vast computational resources.

Index Terms— Histopathology, Artefact Removal, Prototype Learning, Representation Learning

1. INTRODUCTION

Digitised whole slide images (WSIs) capture the morphology and spatial architecture of many cancers, providing key diagnostic information. Foundation models (FMs) extract transferable representations from these gigapixel images by self-supervised learning (SSL) on large corpora of WSIs [1, 2, 3]. These models have proven useful in many downstream tasks such as ovarian cancer subtyping [4]. An often neglected issue, however, are technical artefacts present in WSIs such as pen marks, dust particles and tissue folds. When included during feature extraction, these regions are encoded alongside valid tissue and may reduce diagnostic accuracy [5, 6].

Existing quality control (QC) approaches typically operate on the raw gigapixel image. Traditional methods based on intensity thresholds, edge detection, colour profiles or textures can be sensitive to variations in tissue appearance and scanning protocols, and struggle to generalise across different artefact types. Supervised deep learning approaches address some of these limitations: GrandQC [5], for example, uses a pixel-wise multi-class classifier that has been incorporated

Figure

Fig. 1. Intuition behind Artefact Prototype Learning: Artefacts naturally cluster in embedding space.

into existing pipelines [7]. By contrast, HistoART [6] performs artefact detection directly at patch level by fine-tuning the UNI model [2], reaching high accuracy across scanners and tissue types. These approaches however, rely on labelled data. More recently, DiffusionQC [8] framed artefact detection as an outlier detection problem by learning the distribution of artefact-free images without pixel-level annotations. While this reduces the burden of per-pixel labelling, what constitutes an “outlier” may differ per cohort due to differences in acquisition protocols.

Pre-trained histopathology encoders offer an opportunity to exploit this variability by mapping image patches onto a high-dimensional latent space, where similarities between embeddings reflect similarities in visual features. We ask whether these representations encode features that distinguish artefacts from tissue within a cohort, despite not being explicitly trained for artefact detection (Figure 1). Building on this idea, we introduce Artefact Prototype Learning (APL), an unsupervised approach that leverages embedding space topology to identify artefacts in WSIs. We use unsupervised clustering of embeddings to identify visually related groups of patches and define a prototype as a representative embedding of each cluster, which we then use to characterise similar patches. We make the following contributions:

  1. APL, an unsupervised Artefact Prototype Learning method for WSI QC. Code is available at https://zenodo.org/records/23889154 [9].
  2. We demonstrate that geometric properties of patches can be exploited to identify artefacts in embedding space.
  3. We evaluate APL on two ovarian cancer cohorts.

Figure

Fig. 2. Artefact prototype learning. Overview of the APL method.