[Paper Review] Fast Unsupervised Brain Anomaly Detection and Segmentation with Diffusion Models
This paper proposes a fast, unsupervised brain anomaly detection and segmentation method using denoising diffusion probabilistic models (DDPMs) applied to latent representations of healthy brain MRI and CT scans. By leveraging the reverse denoising process of DDPMs to identify deviations in the latent space, the method achieves competitive performance with state-of-the-art autoregressive transformers while reducing inference time from over an hour to under 10 minutes, enabling clinical viability for real-time applications.
Deep generative models have emerged as promising tools for detecting arbitrary anomalies in data, dispensing with the necessity for manual labelling. Recently, autoregressive transformers have achieved state-of-the-art performance for anomaly detection in medical imaging. Nonetheless, these models still have some intrinsic weaknesses, such as requiring images to be modelled as 1D sequences, the accumulation of errors during the sampling process, and the significant inference times associated with transformers. Denoising diffusion probabilistic models are a class of non-autoregressive generative models recently shown to produce excellent samples in computer vision (surpassing Generative Adversarial Networks), and to achieve log-likelihoods that are competitive with transformers while having fast inference times. Diffusion models can be applied to the latent representations learnt by autoencoders, making them easily scalable and great candidates for application to high dimensional data, such as medical images. Here, we propose a method based on diffusion models to detect and segment anomalies in brain imaging. By training the models on healthy data and then exploring its diffusion and reverse steps across its Markov chain, we can identify anomalous areas in the latent space and hence identify anomalies in the pixel space. Our diffusion models achieve competitive performance compared with autoregressive approaches across a series of experiments with 2D CT and MRI data involving synthetic and real pathological lesions with much reduced inference times, making their usage clinically viable.
Motivation & Objective
- To address the clinical need for fast, accurate, and unsupervised detection of brain lesions without requiring annotated anomaly data.
- To overcome the limitations of autoregressive transformers, including high inference time, error accumulation, and unidirectional sequence bias in medical image analysis.
- To enable real-time anomaly detection and segmentation in neuroimaging by leveraging the speed and stability of diffusion models in the latent space.
- To demonstrate that diffusion models can match or exceed transformer-based methods in anomaly detection performance while being significantly faster.
Proposed method
- The method employs a variational autoencoder (VAE) to compress 2D MRI and CT images into a lower-dimensional latent space, preserving structural information.
- A denoising diffusion probabilistic model (DDPM) is trained exclusively on healthy latent representations to learn the distribution of normal brain anatomy.
- Anomalies are detected by measuring the reconstruction error during the reverse denoising process: higher error indicates deviation from normality.
- The reverse process is accelerated using DDIM (Denoising Diffusion Implicit Models), reducing sampling steps from 500 to 50 while preserving image quality and performance.
- Anomaly segmentation is performed by computing per-pixel reconstruction errors in the latent space and projecting them back to pixel space for localization.
- The method uses a fixed downsampling factor (f=4 or f=8) to control resolution and inference speed, with performance evaluated across multiple datasets.
Experimental results
Research questions
- RQ1Can diffusion models in the latent space achieve competitive anomaly detection performance compared to state-of-the-art autoregressive transformers in brain imaging?
- RQ2Does the use of DDIM sampling significantly reduce inference time without degrading detection accuracy?
- RQ3Can the method detect and segment both synthetic and real pathological lesions in 2D CT and MRI scans without any anomaly annotations?
- RQ4How does the method scale with increasing image resolution, and does it avoid the error accumulation issues common in autoregressive models?
- RQ5Is the method fast enough for real-time clinical deployment, particularly in time-sensitive scenarios like intracerebral hemorrhage detection?
Key findings
- The proposed DDPM-based method achieved a DICE score of 0.471 on the KCH dataset, outperforming the best-performing transformer ensemble (0.435) and significantly reducing inference time.
- Using DDIM sampling with 50 steps (f=4) reduced inference time to 324 seconds for 100 slices—under 6 minutes—compared to 4,907 seconds (over 80 hours) for the transformer ensemble.
- On the CROMIS dataset, the method achieved a DICE score of 0.286 with inference time of 12 seconds using DDIM (f=8), outperforming the transformer baseline (0.205) and f-AnoGAN (0.146).
- The method demonstrated robustness across diverse data: it achieved the highest DICE score (0.471) on KCH and 0.298 on WMH, outperforming all baselines on real lesion segmentation.
- The use of DDIM enabled a 10x speedup over standard DDPM while maintaining comparable performance, proving critical for clinical deployment.
- The method showed consistent superiority over autoregressive models in both performance and inference speed, particularly in high-resolution settings where transformers suffer from increased computational cost.
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.