DiffusionQC: Artifact Detection in Histopathology via Diffusion Model
Zhenzhen Wang, Zhongliang Zhou, Zhuoyu Wen, Jeong Hwan Kook, John B Wojcik, John Kang
TL;DR
DiffusionQC addresses artifact detection in histopathology by learning the distribution of artifact-free images with a latent diffusion framework and flagging deviations as outliers. The method uses a VAE to map images to a latent space and a ViT based denoiser to predict noise in the forward and reverse diffusion steps; an optional contrastive adaptor is added to enlarge separation between clean and artifact images in latent space. It demonstrates competitive performance to supervised methods like GrandQC with far less annotated data, and enhanced learning improves discrimination; cross stain tests on IHC images indicate promising generalization to unseen artifact types. This annotation efficient, generalizable QC approach can be integrated into digital pathology pipelines to improve reliability with reduced labeling burden.
Abstract
Digital pathology plays a vital role across modern medicine, offering critical insights for disease diagnosis, prognosis, and treatment. However, histopathology images often contain artifacts introduced during slide preparation and digitization. Detecting and excluding them is essential to ensure reliable downstream analysis. Traditional supervised models typically require large annotated datasets, which is resource-intensive and not generalizable to novel artifact types. To address this, we propose DiffusionQC, which detects artifacts as outliers among clean images using a diffusion model. It requires only a set of clean images for training rather than pixel-level artifact annotations and predefined artifact types. Furthermore, we introduce a contrastive learning module to explicitly enlarge the distribution separation between artifact and clean images, yielding an enhanced version of our method. Empirical results demonstrate superior performance to state-of-the-art and offer cross-stain generalization capacity, with significantly less data and annotations.
