On the Pitfalls of Using the Residual Error as Anomaly Score
Not on the map. Why?
Abstract (arXiv)
Many current state-of-the-art methods for anomaly localization in medical images rely on calculating a residual image between a potentially anomalous input image and its "healthy" reconstruction. As the reconstruction of the unseen anomalous region should be erroneous, this yields large residuals as a score to detect anomalies in medical images. However, this assumption does not take into account residuals resulting from imperfect reconstructions of the machine learning models used. Such errors can easily overshadow residuals of interest and therefore strongly question the use of residual images as scoring function. Our work explores this fundamental problem of residual images in detail. We theoretically define the problem and thoroughly evaluate the influence of intensity and texture of anomalies against the effect of imperfect reconstructions in a series of experiments. Code and experiments are available under https://github.com/FeliMe/residual-score-pitfalls
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 18 of its 29 references that are in the map. First posted on arXiv 8 Feb 2022.
Builds on
18 of 29 references.
References · 18
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,387
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2020Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Studycited by 147
- 2018Deep Autoencoding Models for Unsupervised Anomaly Segmentation in Brain MR Imagescited by 146
- 2019Standardized Assessment of Automatic Segmentation of White Matter Hyperintensities and Results of the WMH Segmentation Challengecited by 115
- 2018Unsupervised Detection of Lesions in Brain MRI using constrained adversarial auto-encoderscited by 83
- 2019Unsupervised Anomaly Localization using Variational Auto-Encoderscited by 73
- 2020Unsupervised Lesion Detection via Image Restoration with a Normative Priorcited by 65
- 2021Constrained Contrastive Distribution Learning for Unsupervised Anomaly Detection and Localisation in Medical Imagescited by 45
- 2020Detecting Outliers with Foreign Patch Interpolationcited by 44
6 more
- 2021Detecting Outliers with Poisson Image Interpolationcited by 44
- 2021Unsupervised Brain Anomaly Detection and Segmentation with Transformerscited by 34
- 2021Challenging Current Semi-Supervised Anomaly Segmentation Methods for Brain MRIcited by 23
- 2020Scale-Space Autoencoders for Unsupervised Anomaly Segmentation in Brain MRIcited by 22
- 2018Unsupervised brain lesion segmentation from MRI using a convolutional autoencodercited by 17
- 2021Patch vs. Global Image-Based Unsupervised Anomaly Detection in MR Brain Scans of Early Parkinsonian Patientscited by 5
Built on by
Citing papers per year: 2022: 2; 2023: 2; 2024: 4; 2025: 2; 2026: 1.
11 papers.
- 2024MedIAnomaly: A comparative study of anomaly detection in medical imagescited by 26
- 2022Constrained unsupervised anomaly segmentationcited by 19
- 2023Reversing the Abnormal: Pseudo-Healthy Generative Networks for Anomaly Detectioncited by 18
- 2023Many tasks make light work: Learning to localise medical anomalies from multiple synthetic taskscited by 12
- 2024Leveraging the Mahalanobis Distance to enhance Unsupervised Brain MRI Anomaly Detectioncited by 10
- 2024Diffusion Models with Ensembled Structure-Based Anomaly Scoring for Unsupervised Anomaly Detectioncited by 5
- 2024Enhancing Reconstruction-Based Out-of-Distribution Detection in Brain MRI with Model and Metric Ensemblescited by 4
- 2025Q-Former Autoencoder: A Modern Framework for Medical Anomaly Detectioncited by 2
- 2025Unsupervised Deep Generative Models for Anomaly Detection in Neuroimaging: A Systematic Scoping Reviewcited by 1
- 2022Solving Sample-Level Out-of-Distribution Detection on 3D Medical Imagescited by 0
- 2026Towards Modality-Agnostic Medical Image Anomaly Detection: A Training-Free Manifold Refinement Approachcited by 0
- 2026Towards Modality-Agnostic Medical Image Anomaly Detection: A Training-Free Manifold Refinement Approach21 Apr 2026
- 2025Unsupervised Deep Generative Models for Anomaly Detection in Neuroimaging: A Systematic Scoping Review16 Oct 2025
- 2025Q-Former Autoencoder: A Modern Framework for Medical Anomaly Detection24 Jul 2025
- 2024Enhancing Reconstruction-Based Out-of-Distribution Detection in Brain MRI with Model and Metric Ensembles23 Dec 2024
- 2024Leveraging the Mahalanobis Distance to enhance Unsupervised Brain MRI Anomaly Detection17 Jul 2024
- 2024MedIAnomaly: A comparative study of anomaly detection in medical images6 Apr 2024
- 2024Diffusion Models with Ensembled Structure-Based Anomaly Scoring for Unsupervised Anomaly Detection21 Mar 2024
- 2023Many tasks make light work: Learning to localise medical anomalies from multiple synthetic tasks3 Jul 2023
- 2023Reversing the Abnormal: Pseudo-Healthy Generative Networks for Anomaly Detection15 Mar 2023
- 2022Solving Sample-Level Out-of-Distribution Detection on 3D Medical Images13 Dec 2022
- 2022Constrained unsupervised anomaly segmentation3 Mar 2022