Interpretable Alzheimer's Disease Classification Via a Contrastive Diffusion Autoencoder

Ayodeji Ijishakin, Ahmed Abdulaal, Adamos Hadjivasiliou, Sophie Martin, James Cole

TL;DR

This paper introduces a self-explainable deep learning framework for Alzheimer's Disease classification by combining a diffusion autoencoder with contrastive learning. By classifying brain MRIs based on their latent similarity to real training examples (prototypes), the model achieves an 88% test accuracy—on par with black-box alternatives—while providing clinicians with intuitive, case-based visual explanations.

What Problem Does This Paper Address?

Deep learning models excel at medical image classification, but their "black-box" nature severely limits clinical adoption. If an AI flags a patient as having Alzheimer's Disease without a clear explanation, radiologists cannot safely trust or verify the prediction.

Existing Interpretable Machine Learning (IML) methods generally fall into two camps: post-hoc explanations (which try to explain a black-box model after it makes a decision) and Self-Explainable Models (SEMs), which are inherently transparent. Historically, SEMs have suffered from a steep accuracy-interpretability trade-off. The authors tackle this challenge by developing an SEM based on prototype learning—mimicking how human doctors reason by comparing a new patient's scan to familiar, prototypical cases from their past training.

Methods

The proposed architecture integrates Diffusion Autoencoders and Contrastive Learning to create a semantically meaningful latent space where proximity equals clinical similarity.

  1. Semantic Encoding: A semantic encoder maps an input 2D MRI slice ($x_0$) into a low-dimensional semantic latent subcode ($z_{sem}$).
  2. Prototype-Based Classification: Instead of using a standard black-box dense layer for classification, the model employs a $K$-Nearest Neighbors ($K$-NN) classifier directly within the latent space. The final prediction is determined by a majority vote of the $K$ most similar training images (prototypes) using cosine similarity.
  3. Class-Contrastive Loss: To ensure distinct separation between classes, the authors implement a modified contrastive loss function. This objective pulls images of the same class closer together in the embedding space while pushing differing classes apart.
  4. Diffusion Reconstruction: Simultaneously, a conditional Denoising Diffusion Implicit Model (DDIM) reconstructs the original image from $z_{sem}$ and a stochastic noise subcode ($x_T$). This ensures that $z_{sem}$ captures rich, high-fidelity anatomical features rather than just class labels.

The complete model pipeline and information flow are illustrated below:

Figure 1. Our model pipeline. The image, x0, is mapped through the semantic encoder to a latent, zsem (denoted as Z in the figure for brevity). The latent zsem has its similarity to all other latents measured, and the mode class of the K nearest neighbours is used to predict the class of x0. The noising process then maps x0, to its ’stochastic subcode’xT . This is then constructed back to x0, conditioned on zsem through the generative process.

Datasets

The authors curated a substantial dataset consisting of 6,137 3D structural T1-weighted MR images (1,105 Alzheimer's Disease [AD] cases and 5,032 Healthy Controls [HC]). The data was aggregated from 10 distinct publicly available repositories, including:

  • Alzheimer’s Disease Neuroimaging Initiative (ADNI)
  • Australian Imaging, Biomarker & Lifestyle Flagship Study of Ageing (AIBL)
  • CamCAN
  • Open Access Series of Imaging Studies-1 (OASIS-1)

For this preliminary study, the 3D volumes were skull-stripped, normalized, and processed to extract 2D medial axial slices resized to 64×64 resolution.

Key Insights and Ideas

  • Generative Models for Better Prototypes: Traditional prototype learning methods (like ProtoPNet) typically compare abstract, localized CNN feature patches. By leveraging a generative diffusion autoencoder backbone, this model forces the latent space to capture global, semantically rich factors across the entire image distribution.
  • Bypassing the "Blurry VAE" Problem: Previous generative prototype approaches (such as ProtoVAE) suffered from blurry reconstructions, which destroys fine anatomical details critical for medical diagnostics. The diffusion autoencoder maintains high-fidelity representations, and the authors cleverly use the actual high-resolution training images as visual explanations, bypassing decoding artifacts entirely.
  • The Aging-Dementia Entanglement: The latent space visualization reveals an intuitive biological reality: some older healthy individuals cluster closely to AD patients. This reflects the natural morphological changes of brain aging, which closely resemble neurodegeneration.

Key Results

  • Competitive Accuracy: The model achieved a training accuracy of 95% and a test accuracy of 88% on a held-out test set ($N=604$). This matches or exceeds several contemporary black-box architectures from the literature (which range from 0.81 to 0.97 on similar 2D tasks).
  • Intuitive Visual Explanations: For every test image, the model successfully outputs the top 3 most similar training prototypes alongside a pixel-level "difference map" highlighting structural variations.
Example model explanations showing the test image, the top three retrieved prototypes with their similarity scores, and a difference map.

A t-SNE visualization of the latent space confirms a clear, structured separation between the two classes:

t-SNE embedding of the latent space showing clear separation between Healthy Controls (red) and Alzheimer's Disease cases (blue).

Limitations and Future Work

  • 2D vs. 3D Volumetric Data: The current model only processes 2D axial slices, discarding valuable volumetric context across the rest of the 3D MRI scan. Black-box 3D models typically yield higher accuracy.
  • Global vs. Local Explanations: The prototypes provide global, whole-image similarity explanations, but they don't pinpoint exactly which sub-regions (e.g., hippocampal atrophy) drove the decision. The authors suggest integrating heatmaps onto the prototypes in future iterations.
  • Performance Ceiling: While competitive, the self-explainable model does not outperform the best black-box architectures, a persistent challenge in IML.

Summary updated

BibTeX
@misc{ijishakin2023interpretable,
  author = {Ayodeji Ijishakin and Ahmed Abdulaal and Adamos Hadjivasiliou and Sophie Martin and James Cole},
  title = {{Interpretable Alzheimer's Disease Classification Via a Contrastive Diffusion Autoencoder}},
  year = {2023},
  eprint = {2306.03022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.03022},
}
Figure