Quality-Aware Augmentation for Computational Pathology: Synthesizing Realistic Histological Artifacts with Diffusion and Physics-Based Models
Deep learning models in pathology are vulnerable to real-world artifacts: pathologists base their assessment on adequate tissue and disregard folds, stain precipitates, or blurred fields, whereas an algorithm analyzes the entire slide. Models are routinely trained to tolerate staining and scanning differences, but quality-related artifacts are largely absent from their training data, and quality control detects them imperfectly and may discard informative tissue. We therefore propose quality-aware augmentation, which exposes models to realistic synthetic artifacts during training. Our framework, Destroy Me, combines fine-tuned Stable Diffusion, which blends artifacts with the tissue, with physics-based procedural modeling to synthesize six artifact types: tissue folds, precipitates, blur, stitching errors, dust, and pen marks. Artifact fidelity was assessed with distributional, semantic, color, and structural metrics and in a reader study with six physicians, including three pathologists. In lung adenocarcinoma growth-pattern classification with nnU-Net, artifact augmentation improved results on an independent, high-quality external cohort, increasing macro-F1 from 0.38 to 0.42 and Cohen’s κ from 0.40 to 0.46 (0.42 with generic augmentation at the same ratio and training-set size), close to the agreement between pathologists on the same cohort (κ = 0.485). Quality-aware augmentation thus improves generalization without compromising performance on high-quality slides and offers a scalable complement to quality control.
Authors
- Gabriela Kaczmarek (ORCID: https://orcid.org/0009-0004-3650-1875)
- Adam Krawczyk (ORCID: https://orcid.org/0009-0002-4851-6789)
- Sławomir Pakuło (ORCID: https://orcid.org/0000-0001-6160-9651)
- Żaneta Świderska-Chadaj (ORCID: https://orcid.org/0000-0003-2115-9822)
- Zuzanna Krawczyk (ORCID: https://orcid.org/0000-0002-3897-1078)
- Mateusz Miller (ORCID: https://orcid.org/0009-0001-4362-7271)
- Małgorzata Sokół (ORCID: https://orcid.org/0009-0008-1483-4379)
Publication Details
- Journal
- Preprints.org
- Published
- 2026-12-03
- DOI
- https://doi.org/10.20944/preprints202612.0326.v1
- Primary Topic
- AI in cancer detection
- Type
- preprint