MADGAN: unsupervised Medical Anomaly Detection GAN using multiple adjacent brain MRI slice reconstruction

Changhee Han, Leonardo Rundo, Kohei Murao, Tomoyuki Noguchi, Yuki Shimahara, Zoltán Ádám Milacski, Saori Koshino, Evis Sala, Hideki Nakayama, Shin'ichi Satoh

Introduction

Deep learning in medical imaging typically relies on supervised methods, which require extensive, expertly annotated datasets. However, obtaining such labels for rare pathologies or subtle disease progressions is often impractical. Unsupervised Anomaly Detection (UAD) offers a compelling alternative by training models exclusively on "healthy" data. These models learn the normative distribution of anatomy, allowing them to flag any deviation—such as a tumor or tissue atrophy—as an anomaly.

Traditional UAD methods often process 2D or 3D images in isolation, neglecting the inherent anatomical continuity of medical volumes. In MRI, structures evolve predictably across adjacent slices. The Medical Anomaly Detection GAN (MADGAN) addresses this by treating MRI volumes as sequences, learning to reconstruct "future" slices based on preceding ones.

Methodology

MADGAN utilizes a Generative Adversarial Network (GAN) framework to model the anatomical flow of healthy brain MRI scans. The process is divided into two phases: training (reconstruction) and inference (diagnosis).

Reconstruction Phase

The generator, featuring a U-Net-like architecture, is trained to take three consecutive healthy MRI slices as input and predict the subsequent three slices. To ensure high-fidelity reconstructions, the model employs a dual loss strategy:

  • Wasserstein Loss with Gradient Penalty (WGAN-GP): This captures the underlying structural distribution and improves training stability.
  • $\ell_1$ Loss: This ensures pixel-level accuracy between the predicted and ground-truth slices.

An enhanced version, SA-MADGAN, incorporates Self-Attention (SA) modules. These modules allow the network to model long-range dependencies, helping it focus on salient anatomical features while ignoring non-informative noise.

Diagnosis Phase

During inference, the model attempts to reconstruct slices from unseen scans. If the input sequence is healthy, the reconstruction error is expected to be low. Conversely, if the sequence contains pathological features (e.g., metastases or atrophy) that the model never encountered during training, the reconstruction will fail. The average $\ell_2$ loss (Mean Squared Error) between the ground truth and the reconstructed slices serves as the anomaly score.

Experimental Evaluation

The framework was evaluated on two distinct clinical challenges:

  1. Alzheimer’s Disease (AD): Using the OASIS-3 dataset (T1-weighted scans), the model was trained on 1,133 healthy scans. Testing included various stages of dementia categorized by the Clinical Dementia Rating (CDR), ranging from healthy (CDR 0) to moderate AD (CDR 2).
  2. Brain Metastases: Using contrast-enhanced T1 (T1c) scans, the model was trained on 135 healthy scans and tested against patients with metastases and other neurological conditions.

Results

MADGAN demonstrated strong performance across different diagnostic tasks, measured by the Area Under the Curve (AUC):

  • Alzheimer’s Detection: The model achieved an AUC of 0.894 for late-stage AD (CDR 2). Notably, it reached an AUC of 0.727 for Mild Cognitive Impairment (MCI, CDR 0.5), a stage often difficult to distinguish even for supervised systems.
  • Brain Metastases: The model achieved a high AUC of 0.921. The "hyper-intense" nature of lesions in T1c scans made them particularly distinguishable through reconstruction failure.
  • General Disease Detection: For a heterogeneous mix of brain diseases, the model achieved an AUC of 0.633.

Discussion and Conclusion

The success of MADGAN highlights the value of leveraging anatomical continuity in unsupervised learning. By predicting the "next" slice, the model mimics the sequential analysis performed by radiologists. The inclusion of Self-Attention further refined performance on complex anomalies like metastases.

Despite these results, challenges remain. The model occasionally flags unusual but healthy anatomical variations as anomalies, leading to false positives. Additionally, performance on T1c scans was limited by smaller training sets. Future work will investigate Dual Attention Networks to capture spatial and channel-wise dependencies, alongside more sophisticated loss functions like Structural Similarity (SSIM) to further improve reconstruction quality.

Summary updated

BibTeX
@article{han2021madgan,
  author = {Changhee Han and Leonardo Rundo and Kohei Murao and Tomoyuki Noguchi and Yuki Shimahara and Zoltán Ádám Milacski and Saori Koshino and Evis Sala and Hideki Nakayama and Shin'ichi Satoh},
  title = {{MADGAN: unsupervised Medical Anomaly Detection GAN using multiple adjacent brain MRI slice reconstruction}},
  journal = {BMC Bioinformatics},
  year = {2021},
  url = {https://openreview.net/forum?id=KjcmLuKxEJ2},
}
Figure