City Research Online

Image-Conditioned Diffusion Models for Medical Anomaly Detection

Baugh, M. ORCID: 0000-0001-6252-7658, Reynaud, H. ORCID: 0000-0003-0261-2660, Marimont, S. N. ORCID: 0000-0002-7075-5586 , Cechnicka, S., Müller, J. P. ORCID: 0000-0001-8636-7986, Tarroni, G. ORCID: 0000-0002-0341-6138 & Kainz, B. ORCID: 0000-0002-7813-5023 (2025). Image-Conditioned Diffusion Models for Medical Anomaly Detection. In: Uncertainty for Safe Utilization of Machine Learning in Medical Imaging. UNSURE 2024, 10 Oct 2024, Marrakesh, Morocco. doi: 10.1007/978-3-031-73158-7_11

Abstract

Generating pseudo-healthy reconstructions of images is an effective way to detect anomalies, as identifying the differences between the reconstruction and the original can localise arbitrary anomalies whilst also providing interpretability for an observer by displaying what the image ‘should’ look like. All existing reconstruction-based methods have a common shortcoming; they assume that models trained on purely normal data are incapable of reproducing pathologies yet also able to fully maintain healthy tissue. These implicit assumptions often fail, with models either not recovering normal regions or reproducing both the normal and abnormal features. We rectify this issue using image-conditioned diffusion models. Our model takes the input image as conditioning and is explicitly trained to correct synthetic anomalies introduced into healthy images, ensuring that it removes anomalies at test time. This conditioning allows the model to attend to the entire image without any loss of information, enabling it to replicate healthy regions with high fidelity. We evaluate our method across four datasets and define a new state-of-theart performance for residual-based anomaly detection. Code is available at https://github.com/matt-baugh/img-cond-diffusion-model-ad .

Publication Type: Conference or Workshop Item (Paper)
Additional Information: This version of the contribution has been accepted for publication, after peer review but is not the Version of Record and does not reflect post-acceptance improvements, or any corrections. The Version of Record is available online at: http://dx.doi.org/10.1007/978-3-031-73158-7_11. Use of this Accepted Version is subject to the publisher’s Accepted Manuscript terms of use https://www.springernature.com/gp/open-research/policies/accepted-manuscript-terms
Publisher Keywords: Anomaly detection, Diffusion model, Self-supervised, Artificial Intelligence & Image Processing, 46 Information and computing sciences
Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
R Medicine > RC Internal medicine
Departments: School of Science & Technology
School of Science & Technology > Computer Science
SWORD Depositor:
[thumbnail of 11_Image_conditioned_Diffusion.pdf] Text - Accepted Version
This document is not freely accessible until 3 October 2025 due to copyright restrictions.

To request a copy, please use the button below.

Request a copy

Export

Add to AnyAdd to TwitterAdd to FacebookAdd to LinkedinAdd to PinterestAdd to Email

Downloads

Downloads per month over past year

View more statistics

Actions (login required)

Admin Login Admin Login