MAD-AD: Masked Diffusion for Unsupervised Brain Anomaly Detection

Farzad Beizaee, Gregory Lodygensky, Christian Desrosiers, Jose Dolz
2/24/2025
cs.CVeess.IV

Official code: farzad-bz/MAD-AD (17 stars, last commit 2025-08-26).

Abstract

Unsupervised anomaly detection in brain images is crucial for identifying injuries and pathologies without access to labels. However, the accurate localization of anomalies in medical images remains challenging due to the inherent complexity and variability of brain structures and the scarcity of annotated abnormal data. To address this challenge, we propose a novel approach that incorporates masking within diffusion models, leveraging their generative capabilities to learn robust representations of normal brain anatomy. During training, our model processes only normal brain MRI scans and performs a forward diffusion process in the latent space that adds noise to the features of randomly-selected patches. Following a dual objective, the model learns to identify which patches are noisy and recover their original features. This strategy ensures that the model captures intricate patterns of normal brain structures while isolating potential anomalies as noise in the latent space. At inference, the model identifies noisy patches corresponding to anomalies and generates a normal counterpart for these patches by applying a reverse diffusion process. Our method surpasses existing unsupervised anomaly detection techniques, demonstrating superior performance in generating accurate normal counterparts and localizing anomalies. The code is available at hhttps://github.com/farzad-bz/MAD-AD.

View on arXivView PDF

Code Implementations(1)

farzad-bz/MAD-ADOfficial100%

codes for paper accepted in IPMI2025 titled: ''MAD-AD: Masked Diffusion Autoencoder for Unsupervised Brain Anomaly Detection"

171Shell, PythonDec 17, 20241 years ago

Similar Papers

Cite this paper

@article{beizaee2025madad,
  title  = {MAD-AD: Masked Diffusion for Unsupervised Brain Anomaly Detection},
  author = {Farzad Beizaee and Gregory Lodygensky and Christian Desrosiers and Jose Dolz},
  year   = {2025},
  eprint = {2502.16943},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16943v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.16943.svg)](https://codeofpaper.com/paper/2502.16943)

Discussion