Related Experiment Video
Updated: May 23, 2026

Detection of Architectural Distortion in Prior Mammograms via Analysis of Oriented Patterns
Published on: August 30, 2013
RetCond: A Conditional Diffusion Model for Self-Explanatory Multi-Class Fundus Image Classification
Ahmad O Ahsan1, Christopher Nielsen2,3,4,5, Raissa Souza2,3,4,5
1Biomedical Engineering Graduate Program, University of Calgary, 2500 University Drive NW, Calgary, AB, T2N 1N4, Canada. ahmad.omarahsan@ucalgary.ca.
None:
Vision impairment remains a major global health challenge, and early diagnosis of retinal diseases is essential to prevent avoidable vision loss. Color fundus photography is widely used for retinal assessment, but manual interpretation is time-consuming and prone to inter-clinician variability. Although deep learning has improved automated retinal disease detection, most classification models lack transparency. We introduce RetCond, a self-explanatory generative classifier designed to provide both accurate predictions and counterfactual visual explanations. RetCond is a diffusion model repurposed as a classifier whose generative capabilities enable counterfactual synthesis for built-in explanations. These counterfactual images depict the retinal changes associated with alternative diagnoses, offering insight into the model's decisions. We curated a diverse dataset of 19,565 images containing five retinal disease conditions to train and evaluate the model. Performance is assessed using standard classification metrics and by qualitatively and quantitatively evaluating the self-explanatory component. Comparisons are made against strong discriminative baselines. RetCond achieves a classification accuracy of 96.98%, comparable to RETFound (96.99%). In contrast to standard models, RetCond produces counterfactual images that highlight condition-specific retinal features, confirming its learned concepts and demonstrating its self-explanatory properties. These results show that RetCond matches state-of-the-art discriminative performance while addressing limitations of post-hoc interpretability techniques in standard deep learning models. RetCond, therefore, constitutes a contribution toward more trustworthy AI solutions in ophthalmology.
Related Concept Videos
Assessment of Diffusion and Perfusion
The Role of Diffusion in Respiration
Diffusion is the process by which molecules move from an area of higher concentration to an area of lower concentration. In the respiratory system, this principle...
Classification of Systems-II
Classification of Signals
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
Classification of Systems-I
Homogeneity dictates that if an input x(t) is multiplied by a constant c, the output y(t) is multiplied by the same constant. Mathematically, this is expressed as: