In my previous post I described conformal prediction for regression: instead of a single number, such as a brain age of 68 years, the model returns an interval with a guaranteed coverage level. Many clinical questions, however, are not about numbers. They are about categories. Is this patient cognitively normal, does she have mild cognitive impairment, or dementia?
For classification, conformal prediction does something that looks surprising at first. It does not always return one diagnosis. It returns a set of diagnoses.
From one label to a set of labels
A standard classifier assigns each patient to the class with the highest predicted probability. If the model says 0.38 for “normal”, 0.35 for “MCI” and 0.27 for “dementia”, the output is simply “normal”. The fact that the model was almost equally uncertain between two very different answers disappears from the result.
Conformal prediction keeps that information. The recipe is the same as for regression:
- Train any classifier as usual.
- Calibrate on patients the model has never seen. For each of them, look at the probability the model gave to the correct diagnosis, and find a threshold that the correct class exceeds in, say, 90% of cases.
- Predict for a new patient by including in the set every class whose probability is above that threshold.
The guarantee is the same as before. If new patients come from the same population as the calibration patients, the set contains the true diagnosis for at least 90% of them, whatever the classifier.

Reading a prediction set
The size of the set is where the clinical value lies:
- One class: the model is confident enough to commit to a single answer, at the chosen coverage level.
- Two or more classes: the model cannot separate those options for this patient. For example, MCI or dementia. This is not a failure. It is an honest statement of ambiguity, and often exactly the case where a clinician should look more carefully, or where more information is needed.
- No class: with some methods the set can be empty. This usually means the patient looks unlike anything the model was calibrated on, which is itself a warning sign.
Looking at how set sizes are distributed across a cohort is also informative. A model that returns two or three classes for most patients is technically valid, but not very useful. Good models produce small sets for most patients and larger sets only where the problem is genuinely hard.
What to watch out for
The limits are the same as in regression, with a few additions:
- Coverage is on average. Overall coverage of 90% can hide lower coverage for a rarer or harder class. Class-conditional variants calibrate each diagnosis separately, and are usually the right choice when classes are imbalanced, as they often are in clinical cohorts.
- The score matters. The simplest method uses the probability of the true class directly. Other methods, such as adaptive prediction sets, build sets that adapt better to difficult cases. The choice affects how informative the sets are, not the coverage guarantee.
- Calibration data must match practice. A model calibrated on one cohort and used in a different clinic, with different scanners or a different case mix, needs to be recalibrated.
Why it matters for interpretability
Prediction sets combine naturally with explanations. When the set contains a single class, an explanation tells the clinician why the model chose it. When the set contains two classes, an explanation can show which features push toward each option, and this is often where the most interesting clinical reasoning happens. Together, explanations and prediction sets turn a classifier from a machine that gives verdicts into a tool that shows what it knows and what it does not.
That is the kind of transparency the AI Act asks of clinical AI, as I discussed in my post on the AI Act, and, more importantly, the kind clinicians need to trust a model enough to use it.
For readers who want to go further, the combination of explainable AI and conformal prediction in neurodegenerative disease assessment is the subject of my chapter with Vera Gramigna in the book Behavioral Biometrics and Artificial Intelligence for Neurodegenerative Diseases Assessment.



Leave a Reply