Measuring performance
Vendors and studies describe AI with numbers: sensitivity, specificity, AUC, accuracy. These numbers are useful only if you know what each one measures and, above all, how much they change with the population where the tool is used.
- Sensitivity and specificity travel with the tool; PPV and NPV do not.
- PPV depends on prevalence: recompute it for your own population before deciding.
- AUC summarises ranking, but says nothing about the threshold, calibration or alerts per true case.
- Headline accuracy misleads when the disease is rare; for LLMs, ask for the rate of harmful errors.
Got these four points? You have the essentials. Read on for the explanations, examples and traps.
The confusion matrix
For a tool that says “yes” or “no” (fracture / no fracture, sepsis alert / no alert), every case falls into one of four boxes:
The five numbers that matter
| Metric | Question it answers | Formula |
|---|---|---|
| Sensitivity (recall) | Of the patients who have the disease, what share does the AI catch? | TP / (TP + FN) |
| Specificity | Of the patients without the disease, what share does the AI correctly leave alone? | TN / (TN + FP) |
| Positive predictive value (PPV, precision) | When the AI raises an alarm, how often is it right? | TP / (TP + FP) |
| Negative predictive value (NPV) | When the AI says “no”, how often is it right? | TN / (TN + FN) |
| AUC (area under the ROC curve) | Overall, how well does the score rank sick patients above healthy ones, across all thresholds? | 0.5 = coin toss; 1.0 = perfect |
Sensitivity and specificity describe the tool. PPV and NPV describe what the user experiences, and they depend strongly on how common the disease is in the population: the prevalence.
Worked example: the same tool in two settings
An AI detects a condition with 90% sensitivity and 90% specificity. Let us apply it to 1,000 patients in two settings.
300 patients with the condition → 270 true positives, 70 false positives (10% of 700).
10 patients with the condition → 9 true positives, 99 false positives (10% of 990).
In screening, more than nine alarms out of ten are false, with exactly the same tool. Every false alarm means extra tests, anxiety and workload. This is why a tool validated in a hospital population cannot simply be used for screening, and why you should always ask: what was the prevalence in the study, and what is it in our patients?
Sensitivity and specificity travel with the tool; PPV and NPV do not. Recompute them for your own population before deciding.
AUC and the ROC curve
Many AI tools produce a score rather than yes/no. Moving the threshold trades sensitivity against specificity. The ROC curve plots this trade-off for every possible threshold, and the AUC summarises it in one number.
Rough conventions.
- AUC says nothing about which threshold the product actually uses, nor about calibration, nor about alerts per true case.
- A high AUC in a large population can hide poor performance in an important subgroup.
Accuracy: the misleading favourite
Accuracy is the share of all cases classified correctly. It misleads when the disease is rare. If 2% of patients have a condition, a tool that always answers “no” has 98% accuracy and catches nobody. Treat a headline accuracy figure as a prompt to ask for sensitivity, specificity and prevalence.
Other measures you will meet
| Measure | Where you meet it |
|---|---|
| F1 score | Combines precision and recall; common in technical papers, less useful for clinical decisions. |
| Dice / IoU | Overlap between an AI outline and an expert outline in segmentation (1.0 = perfect overlap). |
| Calibration (plot, slope) | Whether predicted risks match observed rates (Chapter 4). |
| Time to diagnosis or treatment | Triage tools: the benefit is speed, measured in minutes. |
| Reader study results | Performance of clinicians with versus without AI; closer to real value than the AI alone. |
Measuring language models
Text output has no single right answer, so LLM tools are evaluated differently:
- Error rates on real tasks: share of summaries containing a hallucination, an omission or a clinically significant error, rated by clinicians.
- Edit burden: how much clinicians change a draft before signing it.
- Time: documentation time, time after hours, time per consultation.
- User experience: burnout and satisfaction surveys, adoption over time.
- Benchmarks: exam-style question sets are a weak proxy (Chapter 5).
“Clinicians rated 90% of summaries as good” can hide rare but serious errors. For safety, the right question is not the average quality but the rate and type of harmful errors, and how they are caught.
A sepsis alert has a PPV of 10%. What does that mean for the nurse who receives ten alerts in a shift? And why might the same model have a higher PPV in an intensive care unit?
Show the answer
Only about one alert in ten corresponds to real sepsis: the nurse will check about nine false alarms to find one true case. In intensive care, sepsis is more common (higher prevalence), so the same model yields a higher PPV.
If you can answer out loud in a minute, you have understood the chapter.
Adapted from AI Basics for Hospital Professionals, edition 1, November 2026. Educational content only: not legal, regulatory or clinical advice, and no product recommendation. Facts and dates checked as of November 2026; verify regulatory dates at the official sources.
