[Paper Review] CRADL: Contrastive Representations for Unsupervised Anomaly Detection and Localization
CRADL proposes a contrastive representation-based framework for unsupervised anomaly detection and localization in medical imaging, leveraging self-supervised contrastive learning to extract semantic-rich features from a neural encoder. By modeling normal data distributions in this representation space using simple generative models, CRADL achieves state-of-the-art performance, particularly in detecting fine semantic deviations, outperforming image-space generative models and prior representation-based methods.
Unsupervised anomaly detection in medical imaging aims to detect and localize arbitrary anomalies without requiring annotated anomalous data during training. Often, this is achieved by learning a data distribution of normal samples and detecting anomalies as regions in the image which deviate from this distribution. Most current state-of-the-art methods use latent variable generative models operating directly on the images. However, generative models have been shown to mostly capture low-level features, s.a. pixel-intensities, instead of rich semantic features, which also applies to their representations. We circumvent this problem by proposing CRADL whose core idea is to model the distribution of normal samples directly in the low-dimensional representation space of an encoder trained with a contrastive pretext-task. By utilizing the representations of contrastive learning, we aim to fix the over-fixation on low-level features and learn more semantic-rich representations. Our experiments on anomaly detection and localization tasks using three distinct evaluation datasets show that 1) contrastive representations are superior to representations of generative latent variable models and 2) the CRADL framework shows competitive or superior performance to state-of-the-art.
Motivation & Objective
- To address the limitation of generative models in capturing semantic features, which often overfit to low-level image statistics like pixel intensities.
- To investigate whether self-supervised contrastive representations can improve unsupervised anomaly detection and localization in medical imaging.
- To develop a simple, effective framework that decouples representation learning from distribution modeling for better generalization and scalability.
- To demonstrate that contrastive representations enable more reliable detection of subtle, diverse anomalies compared to image-space generative models.
Proposed method
- A contrastive self-supervised pretext task (inspired by SimCLR) is used to train a neural encoder to learn semantically meaningful representations from normal medical images.
- The learned representations are then used as input to a simple generative model (e.g., GMM or VAE) to model the distribution of normal samples in the latent space.
- Anomaly detection is performed by computing reconstruction error or likelihood scores in the representation space, with higher scores indicating anomalies.
- For localization, anomaly maps are generated by computing per-patch or per-voxel reconstruction errors, enabling pixel-level anomaly localization.
- The framework is trained exclusively on normal data, making it fully unsupervised and suitable for real-world clinical deployment.
- The method is evaluated on three distinct datasets: BraTS, ISLES, and HCP Synth, covering diverse pathologies and imaging modalities.
Experimental results
Research questions
- RQ1Can contrastive representations learned via self-supervised pretraining improve unsupervised anomaly detection and localization compared to image-space generative models?
- RQ2Does representation-based anomaly detection outperform generative modeling directly on image space in detecting subtle, semantic-level deviations from normality?
- RQ3How does the choice of generative model in the representation space (e.g., GMM vs. VAE) affect detection and localization performance?
- RQ4To what extent do contrastive representations reduce over-reliance on low-level features such as background intensity or scan artifacts?
- RQ5Can CRADL generalize across different imaging modalities and pathologies without requiring annotated anomalies?
Key findings
- Contrastive representations learned via SimCLR-style contrastive pretraining significantly outperform those from variational autoencoders in detecting anomalies, especially fine semantic deviations.
- CRADL achieves competitive or superior performance compared to state-of-the-art unsupervised anomaly detection methods on BraTS and ISLES datasets.
- For anomaly localization, a Gaussian Mixture Model (GMM) applied to contrastive representations outperforms more complex models like VAEs, indicating that simplicity is effective in the representation space.
- The method shows robustness to distribution shifts and performs best on the HCP Synth dataset, which simulates subtle, age-related or unannotated anomalies.
- The ceVAE, which uses a self-supervised pretext task, outperforms the standard VAE, further validating the benefit of self-supervised representation learning.
- The framework is particularly effective in scenarios with limited normal data, due to the low-dimensional, semantic-rich representation space reducing data requirements for distribution fitting.
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.