Unsupervised Anomaly Detection using Aggregated Normative Diffusion

Alexander Frötscher, Jaivardhan Kapoor, Thomas Wolfers, Christian F. BaumgartnerarXiv 2023 · DOI

Abstract

Detecting pathologies in brain MRI typically requires large, hand-labeled datasets, which is impractical for rare conditions. Unsupervised Anomaly Detection (UAD) addresses this by learning the distribution of healthy anatomy. We introduce Aggregated Normative Diffusion (ANDi), a novel UAD method that leverages Denoising Diffusion Probabilistic Models (DDPMs). ANDi introduces multi-resolution "pyramidal" noise during training and aggregates denoising errors using a geometric mean. Our results demonstrate that ANDi significantly outperforms existing baselines, particularly in detecting small Multiple Sclerosis (MS) lesions, achieving up to a 178% improvement in AUPRC on challenging datasets.

Introduction

Medical image analysis faces a significant bottleneck: the need for expert-labeled data. While supervised models excel at specific tasks, they fail to generalize to the vast spectrum of possible brain anomalies. UAD offers a paradigm shift by flagging any deviation from a learned "normative" distribution. However, current UAD approaches often suffer from scale sensitivity—missing small lesions while identifying large tumors—and frequently rely on "pseudo-unsupervised" evaluation where labeled data is used to tune thresholds. Furthermore, many diffusion-based methods are computationally expensive due to iterative inpainting processes.

Methodology

ANDi addresses these challenges through three primary innovations within the DDPM framework:

  1. Pyramidal Gaussian Noise: Unlike standard models that use uniform noise, ANDi employs "pyramidal" noise sampled at multiple resolutions. This forces the model to learn normative features across various spatial scales, bridging the gap between coarse-grained autoencoders and fine-grained diffusion models.
  2. Trajectory-Based Error Aggregation: Instead of slow iterative reconstruction (inpainting), ANDi analyzes the "denoising trajectory." It calculates the pixel-wise distance between the predicted denoising step and the ground truth backward transition.
  3. Geometric Mean Aggregation: Error maps from different timesteps are combined using a geometric mean. This approach is more robust to outliers than a standard arithmetic mean, resulting in cleaner anomaly maps.
Overview of the ANDi framework.

To ensure a truly unsupervised pipeline, ANDi utilizes Yen thresholding to binarize anomaly maps, removing the need for labeled validation data during inference.

Experimental Setup

The model was trained exclusively on healthy brain slices. Evaluation was conducted across three multi-modal MRI datasets (FLAIR, T1, T1ce, T2):

  • BraTS’21: Focused on brain tumor segmentation.
  • MSSEG & Ljubljana: Challenging Multiple Sclerosis (MS) lesion datasets.

Results

ANDi established a new state-of-the-art across all evaluated datasets. Notably, on the Ljubljana dataset, ANDi achieved an AUPRC of 0.422, representing a 178% improvement over previous diffusion-based UAD methods.

Qualitative comparison of ANDi against baseline methods.

The method is also computationally efficient, processing a full brain volume in approximately 34 seconds—twice as fast as competing diffusion-based reconstruction methods.

Discussion and Conclusion

The success of ANDi highlights that multi-scale noise is critical for robust anomaly detection. By treating the denoising step as a "normative vector" pointing toward healthy distribution, ANDi effectively identifies pathologies without explicit disease knowledge.

While ANDi represents a major advancement, limitations remain. The current 2D implementation misses 3D spatial context, and while faster than other diffusion models, it remains slower than simple autoencoders. Future work will focus on extending ANDi to native 3D diffusion and further optimizing inference speed for clinical integration.

Summary updated

BibTeX
@misc{frotscher2023unsupervised,
  author = {Alexander Frötscher and Jaivardhan Kapoor and Thomas Wolfers and Christian F. Baumgartner},
  title = {{Unsupervised Anomaly Detection using Aggregated Normative Diffusion}},
  year = {2023},
  eprint = {2312.01904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.01904},
}
Figure