Sensitivity, specificity and predictive value for medical AI, explained
AI diagnostic tools and wearables report their accuracy as sensitivity, specificity and predictive value. Here is what each number measures, why the same tool can look sharp in one setting and noisy in another, and what to look for in a study or FDA summary.
Docket, covering health regulation and AI in care
, 4 min read
8.3%Share of alerts that are real: 90/90 test, 1% prevalence
What to know
- Sensitivity is the share of people with a condition that a test catches; specificity is the share without it that the test correctly clears.
- Positive predictive value, the share of positive results that are correct, depends heavily on how common the condition is in the group tested.
- A test with 90% sensitivity and 90% specificity is right about fewer than one in ten of its alerts when only 1% of the people tested have the condition.
A company says its software "detects" a condition with 90% sensitivity and 90% specificity. That sounds like a tool that is right nine times in ten. Whether it is depends on a number the headline usually leaves out: how many of the people being tested actually have the condition.
The four boxes
Every accuracy figure comes from the same grid. Run a test on a group of people whose true status is known, and each result lands in one of four boxes:
- True positive: has the condition, test flags it.
- False negative: has the condition, test misses it.
- False positive: does not have it, test flags it anyway.
- True negative: does not have it, test clears them.
The named metrics are ratios built from those boxes. Read them as answers to different questions.
Sensitivity asks: of the people who have the condition, what share did the test catch? It is true positives divided by everyone who is truly positive. A missed stroke or a missed cancer is a sensitivity problem.
Specificity asks: of the people who do not have the condition, what share did the test correctly clear? It is true negatives divided by everyone who is truly negative. Every unnecessary follow-up scan starts as a specificity problem.
Positive predictive value (PPV) asks the question a patient or clinician holding a result actually cares about: given that the test flagged someone, how likely is it they have the condition? Negative predictive value (NPV) asks the mirror question for a clear result.
The base-rate trap
Sensitivity and specificity describe the test. PPV and NPV describe the test in a particular population, and they move with prevalence, the share of that population who have the condition.
Take a tool with 90% sensitivity and 90% specificity and run it on 10,000 people in which 1% have the condition. Of the 100 who have it, the tool catches 90. Of the 9,900 who do not, it wrongly flags 10%, or 990. That is 1,080 alerts, of which 90 are real: a PPV of 90 ÷ 1,080, or 8.3%. More than nine in ten alerts are false alarms, from a tool that is "90% accurate" by both headline measures.
The clear results look excellent in the same scenario. The tool clears 8,910 people correctly and misses 10, so the NPV is 8,910 ÷ 8,920, about 99.9%.
Change only the population and the picture changes:
| Share of people with the condition | PPV of a 90%/90% test |
|---|---|
| 0.1% | 0.9% |
| 1% | 8.3% |
| 10% | 50% |
| 30% | 79% |
This is why the same algorithm can do well in a hospital study, where many patients are already suspected of the condition, and generate a flood of alerts when it moves to broad screening. It is also why a study's PPV only transfers to settings with a similar mix of patients. When we covered Google's smartwatch hypertension study, the watch's 80.6% PPV came from a study group in which hypertension was common (working back from the reported sensitivity, specificity and PPV, about two in five participants had it); the same sensitivity and specificity would give a much lower PPV in a group where it was rare.
The threshold behind the numbers
Most AI models do not output yes or no. They output a score, and someone picks a cutoff above which the tool flags a case. Lower the cutoff and sensitivity rises while specificity falls; raise it and the reverse happens. Sensitivity and specificity are always a pair chosen together, so a company quoting one without the other is telling half the story.
The area under the ROC curve (AUC), a common figure in papers, summarizes performance across every possible cutoff. It runs from 0.5, no better than a coin, to 1.0. It is useful for comparing models, but no one deploys a curve: a hospital runs one cutoff, and the sensitivity and specificity at that cutoff are what its clinicians live with.
What to look for in a study or 510(k) summary
- Both numbers, at the cutoff the product actually uses. Plus how many positive and negative cases were tested; a sensitivity measured on 40 positive cases has a wide margin of error, which good summaries report as a confidence interval.
- What counted as the truth. Accuracy is measured against a reference standard, such as a panel of radiologists, a biopsy or a cuff reading. A weak reference standard flatters or punishes the tool in ways the headline does not show.
- Where the test cases came from. Data from sites, scanners or patients the model was trained on tends to overstate performance. Our guide to reading a 510(k) summary covers where FDA records describe the test set.
- Who the tool is for. Triage software such as a2z's Omni-Triage for abdominal CT is cleared to reorder a radiologist's worklist, not to diagnose, so its false positives cost reading time rather than a patient's peace of mind. The same sensitivity means something different for a tool that talks to patients directly.
Accuracy numbers also say nothing about whether patients end up better off. That takes a different kind of study, which our explainer on randomized controlled trials covers. A tool can be accurate and still change nothing, or add work, once it is inside a real clinic.
This article is general information about how technology works. It is not medical advice. Talk to a clinician about your own health.
FDA and health regulationDigital health and AI in careWearables
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.