07

Learning/AI Basics/Chapter 7

Chapter 7 · Judging AI

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.

⏱ 4 min read⚡ Takeaways: 30 s❓ Self-check includedinShare on LinkedIn
In a hurry? The takeaways30-second read
  1. Sensitivity and specificity travel with the tool; PPV and NPV do not.
  2. PPV depends on prevalence: recompute it for your own population before deciding.
  3. AUC summarises ranking, but says nothing about the threshold, calibration or alerts per true case.
  4. 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:

Disease present
Disease absent
AI positive
True positivecorrect alarm
False positivefalse alarm
AI negative
False negativemissed case
True negativecorrectly reassured
The four possible outcomes of a yes/no test. All common metrics are ratios of these four boxes.

The five numbers that matter

MetricQuestion it answersFormula
Sensitivity (recall)Of the patients who have the disease, what share does the AI catch?TP / (TP + FN)
SpecificityOf 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.

Specialist clinic · prevalence 30%
PPV 79%

300 patients with the condition → 270 true positives, 70 false positives (10% of 700).

Population screening · prevalence 1%
PPV 8%

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?

✓Key point

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.

0.5chance
0.7–0.8acceptable
0.8–0.9good
> 0.9excellent

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

MeasureWhere you meet it
F1 scoreCombines precision and recall; common in technical papers, less useful for clinical decisions.
Dice / IoUOverlap 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 treatmentTriage tools: the benefit is speed, measured in minutes.
Reader study resultsPerformance 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).
⚠Watch out

“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.

Self-check 7

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.

Found this useful?Share it with your team or your network.
inShare on LinkedIn

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.