[Paper Review] Unsupervised Anomaly Detection for X-Ray Images
This paper proposes an unsupervised anomaly detection framework for X-ray images using autoencoders (AE) and GAN-based models, enhanced by a multi-stage preprocessing pipeline to reduce noise and improve detection. It achieves a 60.7% ROC-AUC with α-GAN and 57% with CAE, with pixel-level anomaly heatmaps offering high interpretability for clinical use.
Obtaining labels for medical (image) data requires scarce and expensive experts. Moreover, due to ambiguous symptoms, single images rarely suffice to correctly diagnose a medical condition. Instead, it often requires to take additional background information such as the patient's medical history or test results into account. Hence, instead of focusing on uninterpretable black-box systems delivering an uncertain final diagnosis in an end-to-end-fashion, we investigate how unsupervised methods trained on images without anomalies can be used to assist doctors in evaluating X-ray images of hands. Our method increases the efficiency of making a diagnosis and reduces the risk of missing important regions. Therefore, we adopt state-of-the-art approaches for unsupervised learning to detect anomalies and show how the outputs of these methods can be explained. To reduce the effect of noise, which often can be mistaken for an anomaly, we introduce a powerful preprocessing pipeline. We provide an extensive evaluation of different approaches and demonstrate empirically that even without labels it is possible to achieve satisfying results on a real-world dataset of X-ray images of hands. We also evaluate the importance of preprocessing and one of our main findings is that without it, most of our approaches perform not better than random. To foster reproducibility and accelerate research we make our code publicly available at https://github.com/Valentyn1997/xray
Motivation & Objective
- To develop an unsupervised anomaly detection system for X-ray images that supports radiologists without relying on expensive expert-labeled data.
- To address the challenge of noisy real-world medical images by introducing a robust, multi-stage preprocessing pipeline.
- To evaluate and compare state-of-the-art unsupervised deep learning models—autoencoders and GANs—for detecting anomalies in hand X-rays.
- To provide interpretable anomaly localization via pixel-wise heatmaps, especially for autoencoder-based models.
- To demonstrate that proper preprocessing is essential for achieving reliable performance, even with unsupervised learning.
Proposed method
- Proposes a two-stage preprocessing pipeline: offline steps (hand center localization, segmentation, augmentation) and online steps (padding, centering, min-max normalization).
- Applies histogram equalization to enhance contrast, particularly beneficial for AE-based models.
- Trains autoencoders (CAE) and GAN-based models (α-GAN, BiGAN) on preprocessed X-ray images without anomaly labels.
- Uses reconstruction error as a pixel-wise anomaly score in autoencoders, enabling visualized heatmaps of anomalous regions.
- For GANs, uses the discriminator’s probability as an image-level anomaly score, lacking native pixel-level output.
- Employs top-k reconstruction loss aggregation across pixels to improve anomaly detection, though results were not significantly improved with k=200.
Experimental results
Research questions
- RQ1How effective are unsupervised deep learning models (AEs and GANs) for anomaly detection in real-world, noisy X-ray images of hands?
- RQ2To what extent does a comprehensive preprocessing pipeline improve the performance of unsupervised anomaly detection models on medical imaging data?
- RQ3Can autoencoder-based models provide meaningful pixel-level anomaly heatmaps that align with clinically relevant abnormalities?
- RQ4How do GAN-based models compare to autoencoders in terms of anomaly detection performance and interpretability?
- RQ5Is it possible to achieve reliable anomaly detection without any labeled data, and how does preprocessing influence this?
Key findings
- The preprocessing pipeline is critical: without it, most models perform no better than random, with ROC-AUC scores below 45% on raw or cropped data.
- The α-GAN model achieves the highest ROC-AUC of 60.7% using the discriminator’s probability as the anomaly score.
- CAE achieves 57% ROC-AUC and naturally provides pixel-level anomaly heatmaps, enabling interpretable localization of suspicious regions.
- Pixel-wise reconstruction error heatmaps from CAE clearly highlight anomalies such as metal implants, even detectable by non-experts.
- Histogram equalization consistently improves performance for AE-based models, suggesting its value in contrast enhancement for low-contrast X-rays.
- Aggregating top-k reconstruction losses did not improve results, possibly due to suboptimal k selection or model sensitivity to noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.