Concept Architecture
Confusion Matrix for AI Screening and Diagnostic Evidence
A confusion matrix cross-tabulates what a model predicted against what a reference standard says is true, so that every record, patient or data item lands in exactly one of four cells. In health technology assessment it sits behind most claims about how well an AI tool screens abstracts for a systematic review, extracts model inputs or classifies patients. NICE ECD20 (2026), the NICE AI methods for evidence framework, builds its screening metrics on these four cells and uses them for a secondary analysis of error type in data extraction. The same arithmetic gives sensitivity, specificity and the predictive values that decision models of tests already use.
The four cells and how the table is laid out
Each item has a true class, set by the reference standard, and a predicted class, set by the model. Fawcett (2006) describes the four outcomes. A positive item classified as positive is a true positive and one classified as negative is a false negative, while a negative item classified as negative is a true negative and one classified as positive is a false positive. He notes that the two-by-two table is a form of contingency table, with correct decisions on the main diagonal and the errors off it.
| Reference standard positive | Reference standard negative | |
|---|---|---|
| Model predicts positive | True positives (TP) | False positives (FP) |
| Model predicts negative | False negatives (FN) | True negatives (TN) |
The positive class has to be named before counting starts. In title and abstract screening, NICE ECD20 (2026) treats a relevant record as the positive, so a false negative is a relevant record wrongly excluded. In data extraction it treats an available data item as the positive, so a value hallucinated where the paper reports nothing is a false positive, and an available item missed or extracted wrongly is a false negative. For a diagnostic algorithm the positive is the target condition according to the reference standard.
Layout is not standardised. Fawcett (2006) puts the predicted class in rows and the true class in columns, as above, while Chicco and Jurman (2020) put the actual class in rows. With more than two classes, such as several study designs, the table becomes n by n.
Rates that come out of the table
Most performance measures are ratios of cells. The two that condition on the reference-positive items, the true positive and false negative rates, are the ones NICE ECD20 (2026) puts first for screening.
where TPR is the true positive rate (sensitivity or recall), FNR is the false negative rate, TP is the count of true positives and FN is the count of false negatives.
where TNR is the true negative rate (specificity), TN is the count of true negatives, FP is the count of false positives and PPV is the positive predictive value (precision), the share of items predicted positive that are truly positive. The false positive rate is one minus TNR, and classification accuracy is TP plus TN divided by all items.
Fawcett (2006) points out that the class balance is the ratio of the positive column to the negative column. Any measure that mixes both columns, such as accuracy, precision and the F score, therefore shifts when the class balance shifts even if the classifier has not changed, while the true and false positive rates each stay within one column. This is why the negative predictive value and positive predictive value move with prevalence and sensitivity and specificity do not change for that arithmetic reason. The F-Score, the Matthews Correlation Coefficient, the False Positive Rate and the False Negative Rate each have their own glossary page.
How NICE uses the table for AI evidence work
NICE ECD20 (2026) makes the false negative rate, or equivalently one minus the true positive rate, the primary metric for AI title and abstract screening, because relevant records are usually a small share of the search yield and a missed study can change the evidence base. Where AI does a first sift and humans screen everything it keeps, avoiding false negatives takes priority over avoiding false positives, and aggregate scores such as the F-score, accuracy and the Matthews coefficient should not replace the two rates in reporting. The framework asks for both rates with measures of uncertainty, read alongside the number of records screened, the prevalence of included studies and the absolute number of false negatives.
For data extraction, NICE ECD20 (2026) makes overall concordance the primary metric and uses the four cells as a secondary analysis of error type. When those counts are pooled it suggests the true positive rate and positive predictive value may be the most informative, because measures resting on true negatives say little when many items are simply not reported. Under these definitions a value invented for an item the paper does not report falls in the false positive cell, while a wrong value for an item the paper does report counts as a false negative. Hallucination (AI) can therefore land in either cell, and NICE ECD20 (2026) notes that published studies count it in different ways.
The framework warns against treating human screeners as a perfect benchmark and suggests independent review with adjudication instead. Errors in the reference standard, which it calls benchmark bias, pass into every cell, so a false negative may in fact be a reviewer's mistake.
Worked example with 2,000 screened abstracts
All numbers in this example are illustrative. A search for a review informing a cost-effectiveness model returns 2,000 records. After double screening with adjudication, the reference standard marks 100 as relevant and 1,900 as irrelevant, a prevalence of 5%. A large language model screens the same records as a first sift.
1. Fill the cells. The model keeps 96 of the 100 relevant records (TP = 96, FN = 4) and 380 of the 1,900 irrelevant ones (FP = 380, TN = 1,520).
2. Rates on the relevant records. TPR = 96 / 100 = 0.96 and FNR = 4 / 100 = 0.04. These are the figures NICE ECD20 (2026) expects to see first, with the four missed records listed and checked.
3. Rates on the irrelevant records. TNR = 1,520 / 1,900 = 0.80 and the false positive rate is 380 / 1,900 = 0.20.
4. Predictive values. PPV = 96 / (96 + 380) = 0.202, about one in five kept records. NPV = 1,520 / (1,520 + 4) = 0.997.
5. Accuracy and a trivial rule. Accuracy = (96 + 1,520) / 2,000 = 0.808. A rule that excludes every record has TP = 0, FN = 100, FP = 0 and TN = 1,900, so its accuracy is 1,900 / 2,000 = 0.95 although it finds no relevant study. Chicco and Jurman (2020) give the same warning, that accuracy is unreliable when one class is much larger than the other.
6. Balanced F score. Twice TP divided by (twice TP plus FP plus FN) gives 192 / (192 + 380 + 4) = 0.333. The low score reflects the 380 false positives, which cost reviewer time but lose no evidence, so it says little about the risk NICE ranks first.
7. Workload saved. Cohen and colleagues (2006) define work saved over sampling as
where TN and FN are the true and false negative counts, N is the total number of records screened and R is recall, the true positive rate. Here (1,520 + 4) / 2,000 = 0.762, and 0.762 minus 0.04 gives WSS = 0.722. Cohen and colleagues (2006) report the measure at recall fixed at 0.95 (WSS@95%), so a value taken at a recall of 0.96 is not directly comparable with published WSS@95% figures. In routine use, human screeners would read the 476 kept records instead of 2,000.
8. Interpretation. NICE ECD20 (2026) asks for the four misses to be reviewed manually and the rate compared with what human screening would miss. The false negative rate rests on only 100 relevant records, and an exact binomial 95% interval for 4 in 100 runs from about 1% to 10%, far wider than the total of 2,000 suggests.
Choices that change the counts
The same tool can produce very different matrices on the same records. The differences come mostly from four choices.
- Threshold. A model that outputs a score yields a different matrix at each cut-off. Fawcett (2006) shows that plotting the true and false positive rates across thresholds gives the ROC curve, and that the best operating point depends on the class balance and the relative cost of the two errors.
- Unit of counting. Scoring an odds ratio and its confidence limits as one extraction element or as three items changes the counts, which is why NICE ECD20 (2026) asks for each element to be defined clearly.
- Evaluation set. Prevalence, topic and study designs in the test set shape the counts, and NICE ECD20 (2026) warns that performance in one review can be much worse in another.
- Uncertain items. Escalated records and failed calls need a rule, and NICE ECD20 (2026) states that a failed call must not be treated as an exclusion.
Linking the table to economic evaluation
The four cells map onto the branches of a decision tree for a test or classifier. Rautenberg and colleagues (2020) show how the two-by-two table parameterises disease-based and test-based tree structures, and stress that predictive values depend on prevalence, so the prevalence used must match the setting modelled. Trikalinos and colleagues (2012) note that test accuracy is only a surrogate end point, with patient outcomes coming through the treatment decisions that follow true and false results. In a health technology assessment of an AI diagnostic, each cell carries its own costs and health outcomes, so the result depends on all four counts and not on accuracy alone. AI diagnostic value and screening economics cover that valuation step.
For AI tools used on evidence the consequence is indirect. A false negative in screening can remove a trial from a meta-analysis that feeds a treatment effect, and an extraction error in either cell can put a wrong or hallucinated value into a model input. NICE ECD20 (2026) notes that a missed record matters more in a review that directly informs a recommendation than in a surveillance review.
Boundaries and common misreadings
A confusion matrix is the special case of a contingency table in which both variables are the same set of classes, one predicted and one true. Misclassification as a bias concerns errors in how exposures or outcomes are recorded in a study, although a confusion matrix is the usual way to quantify such error. Several misreadings recur.
- Swapped axes. Layouts differ between sources, so the row and column labels should be checked before FP and FN are read.
- Accuracy on imbalanced data. High accuracy can coexist with a high false negative rate, as the trivial rule above shows.
- Rates without counts. A false negative rate of 4% means 4 records here but 40 in a review with ten times as many relevant records, which is why NICE ECD20 (2026) asks for absolute numbers and the sample size.
Sources
- Chicco D, Jurman G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics. 2020;21:6. https://doi.org/10.1186/s12864-019-6413-7
- Cohen AM, Hersh WR, Peterson K, Yen PY. Reducing workload in systematic review preparation using automated citation classification. Journal of the American Medical Informatics Association. 2006;13(2):206-219. https://doi.org/10.1197/jamia.M1929
- Fawcett T. An introduction to ROC analysis. Pattern Recognition Letters. 2006;27(8):861-874. https://doi.org/10.1016/j.patrec.2005.10.010
- National Institute for Health and Care Excellence. AI methods for evidence framework (ECD20). Published 9 November 2026. Introduction, principles and evidence synthesis chapters, and Appendix A. https://www.nice.org.uk/corporate/ecd20
- Rautenberg T, Gerritsen A, Downes M. Health economic decision tree models of diagnostics for dummies: a pictorial primer. Diagnostics. 2020;10(3):158. https://doi.org/10.3390/diagnostics10030158
- Trikalinos TA, Kulasingam S, Lawrence WF. Deciding whether to complement a systematic review of medical tests with decision modeling. Journal of General Internal Medicine. 2012;27(Suppl 1):76-82. https://doi.org/10.1007/s11606-012-2019-3
Related Concepts (6)
Library
Publications
1
The STARD-AI reporting guideline for diagnostic accuracy studies using artificial intelligence — Sounderajah V, Guni A, Liu X, et al, Vol. 31, No. 10, pp. 3283-3289 ed., 2025 (Nature Medicine)
Reporting standard for diagnostic accuracy studies of AI, which supply the sensitivity and specificity inputs to AI diagnostic models. The publisher has issued a correction to this article.
Journal ArticleView source →
Frequently Asked Questions (6)
What is Confusion Matrix?
A confusion matrix is a table counting a model's true positives, false positives, true negatives and false negatives against a reference standard.
Source: Fawcett 2006
How are sensitivity, specificity and precision calculated from a confusion matrix?
Each measure divides one cell by a row or column total of the table. Sensitivity, also called the true positive rate or recall, is true positives divided by all items the reference standard marks positive, and specificity is true negatives divided by all items it marks negative. Precision, or positive predictive value, is true positives divided by all items the model called positive. Fawcett notes that sensitivity and specificity each use a single column of the table, so they do not shift with the class balance for that arithmetic reason. Measures that mix both columns, such as precision and accuracy, change when the class balance changes even if the classifier has not.
Source: Fawcett 2006
Which confusion matrix rates does NICE ECD20 put first when AI screens titles and abstracts for a systematic review?
NICE ECD20 treats a relevant record as the positive class, so a false negative is a relevant record wrongly excluded. Its primary screening metric is the false negative rate, or equivalently one minus the true positive rate, because relevant records are usually a small share of the search yield and a missed study can change the evidence base. Where AI does a first sift and humans screen everything it keeps, aggregate scores such as the F-score and accuracy should not replace those two rates in reporting. Both rates should be reported with measures of uncertainty and read alongside the absolute number of false negatives.
Source: NICE ECD20 (2026)
How is a confusion matrix used to assess AI data extraction for evidence synthesis under NICE ECD20?
For data extraction NICE ECD20 makes overall concordance with predefined reference criteria the primary metric, and the four cells form a secondary analysis of the type of error. An available data item counts as the positive, so a true positive is an item correctly extracted and a false negative is an available item missed or extracted wrongly. A value extracted where the paper reports nothing, including hallucinated content, is a false positive. When the counts are pooled, the true positive rate and positive predictive value may be the most informative, since measures resting on true negatives say little when many items are simply not reported.
Source: NICE ECD20 (2026)
Why can accuracy calculated from a confusion matrix mislead when relevant studies are rare?
Accuracy is the sum of true positives and true negatives divided by all items, so a large negative class can dominate it. Chicco and Jurman warn that accuracy stops being a reliable measure when one class is much larger than the other. In an illustrative screen of 2,000 abstracts with 100 relevant records, a rule that excludes every record scores an accuracy of 0.95 while finding no relevant study. A tool that keeps 96 of the 100 relevant records along with 380 irrelevant ones scores only 0.808, although it is far more useful for a systematic review.
Source: Chicco & Jurman 2020
How does a confusion matrix connect to a decision tree in the economic evaluation of a diagnostic test?
The four cells map onto the branches of a decision tree for a test or classifier, and each branch carries its own costs and health outcomes. Rautenberg and colleagues show how the two-by-two table parameterises both disease-based and test-based tree structures. They also stress that predictive values depend on prevalence, so the prevalence used in the model must match the setting being modelled. In a health technology assessment of an AI diagnostic, the result therefore depends on all four counts and not on accuracy alone.
Source: Rautenberg et al. 2020
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 10 Nov 2026
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/confusion-matrix
- Term code
- HS-HP-DH-074
Stable URI · Machine-readable · Resolvable · CC BY 4.0
