Skip to main content
Viper Consulting shield logo Viper Consulting™ 1-800-455-5691

Research › Data Visualization

Graphite-and-gold close-up of the robot's hands on a laptop under a glowing ring, with a gold confusion-matrix grid. Viper Consulting™ wordmark.
  • Viper Consulting™ Technical Report VC-TR-2026-05
  • Data Visualization series
  • Version 1.0
  • Not peer reviewed

Visualizing Error Detection Performance: Per-Check Recall/Precision and Confusion Views for an AI Document QA System


Viper Consulting™ (Epstein Investment Group LLC), Arlington, Virginia

Abstract

A single accuracy number hides where a document quality-assurance system fails. Using the measured gold-set results of Viper PubPro™ 0.1.1 (12 checks, 50 seeded error types, 3,265 test copies; overall recall 99.1%, conservative precision 98.1%), we compare five views: a precision-recall scatter with direct labels for outliers, a diverging confusion bar per check, a recall strip for each of the 50 error types, recall with 95% Wilson intervals, and a top-k hit-rate line for classification suggestions (41.8% at top 1, 70.9% at top 5). Each view answers a different reviewer question, and each is shown with its data table. We also show why precision must be drawn as a lower bound when baseline findings are unlabeled.

Keywords: data visualization; precision; recall; confusion matrix; evaluation; document quality assurance

1. Introduction

"99.1% recall" is a good headline and a poor guide. A reviewer deciding whether to trust an automated document check needs to know which checks miss, which raise false alarms, whether a weak result is one bad error type or a general weakness, and how sure we are given the number of test cases. This report shows five views that answer those questions for one system, Viper PubPro™, a working prototype that runs quality checks on patent documents before publication, using its measured gold-set results (version 0.1.1). The companion report VC-TR-2026-03 describes the system and the measurement method in full.

2. The data

The gold set holds 3,265 test copies made from 79 public US patent documents (63 grants, 16 published applications), each copy with exactly one known error planted, across 50 error types grouped under 12 checks. For each check we have true positives (seeded errors detected), false negatives (missed) and conservative false positives: a false alarm is counted for every unmodified published document on which the same finding code already fires, even though some of those are real defects in the published document. Precision is therefore a lower bound [1]. For each of the 50 error types we have the number of applicable copies and the number detected. For the classification assistant we have top-k hit rates over the 79 documents. We regenerated the gold set on December 3, 2026 and it matched the committed results exactly. Overall: 3,236 detected, 29 missed, 62 conservative false alarms; recall 99.1%, precision at least 98.1%, F1 0.986.

3. Five views

3.1 Precision against recall: find the outliers

Scatter plot of 12 checks by recall and lower-bound precision. Most sit near 100% on both; claim antecedent basis sits at 91.8% recall and 67.7% precision; figure coverage at 87.5% recall and 90.9% precision.
Figure 1. Precision versus recall by check. Each bubble is one check; its area is proportional to the number of seeded errors. Precision is a lower bound because unreviewed findings on the unmodified documents are all counted as false alarms.
Show the data table for Figure 1
Data for Figure 1.
CheckRecallPrecision (lower bound)Seeded
Claim numbering100.0%100.0%188
Claim dependency99.1%100.0%226
Claim antecedent basis91.8%67.7%73
Reference numerals100.0%92.1%58
Figure coverage87.5%90.9%80
Abstract form100.0%97.9%233
Sequence presence100.0%99.4%157
Markup integrity100.0%97.5%195
Encoding anomalies98.7%100.0%632
Bibliographic consistency100.0%99.8%644
Certificate-of-correction patterns98.8%97.5%240
Amendment merge100.0%100.0%539

A scatter of the 12 checks on recall and precision, with bubble area proportional to the number of seeded errors, answers "which checks are different?" Nine checks cluster at the top right (both at least 97.5%), and we list them in a box rather than label nine overlapping points. Three stand apart and are labeled directly: claim antecedent basis (recall 91.8%, precision 67.7%), figure coverage (87.5%, 90.9%) and reference numerals (100.0%, 92.1%). The axes are cropped to the range of the data and say so in their tick labels; at full 0 to 100% scale every point would sit in one corner.

3.2 Confusion counts by check: see the sizes

Diverging horizontal bars per check: detected errors to the right, missed errors after a small gap, conservative false alarms to the left of zero. Every bar is labeled with its counts.
Figure 2. Confusion counts by check. True positives, false negatives and conservative false positives per check, labeled in text. True negatives are not drawn: every unmodified document is a negative for every seed, so the count is large and uninformative.
Show the data table for Figure 2
Data for Figure 2.
CheckTPFNFP (conservative)
Claim numbering18800
Claim dependency22420
Claim antecedent basis67632
Reference numerals5805
Figure coverage70107
Abstract form23305
Sequence presence15701
Markup integrity19505
Encoding anomalies62480
Bibliographic consistency64401
Certificate-of-correction patterns23736
Amendment merge53900

Percentages hide how many cases stand behind them. A diverging bar per check draws detected errors to the right of zero, missed errors after a small gap, and false alarms to the left, with the three counts written beside each bar. The view shows at once that the large checks (bibliographic consistency with 644 seeded errors, encoding anomalies 632, amendment merge 539) are nearly clean, and that the 32 false alarms of claim antecedent basis are more than half of all 62. True negatives are not drawn: every unmodified document is a negative for every error type, so the count is large and tells the reader nothing.

3.3 Recall for each error type: one weak type or many?

Bar strip of 50 seeded error types grouped by check. 41 reach 100%; the lowest are figure-brief-dropped at 82.1% (46 of 56) and antecedent at 91.8% (67 of 73).
Figure 3. Recall per seeded error type. One bar per seeded error type, grouped by check in the order of the gold-set report. The band color repeats what the label says (100%, 95 to 99.9%, below 95%).
Show the data table for Figure 3
Data for Figure 3.
SeedCheckApplicableDetectedRecall
claim-number-jumpClaim numbering6262100.0%
claim-number-textClaim numbering6363100.0%
claim-countClaim numbering6363100.0%
dependency-forwardClaim dependency777597.4%
dependency-missingClaim dependency7878100.0%
dependency-idrefClaim dependency7171100.0%
antecedentClaim antecedent basis736791.8%
refnum-typoReference numerals5858100.0%
figure-undescribedFigure coverage2424100.0%
figure-brief-droppedFigure coverage564682.1%
abstract-longAbstract form7979100.0%
abstract-missingAbstract form7979100.0%
abstract-legalAbstract form7575100.0%
sequence-untaggedSequence presence7979100.0%
sequence-no-listingSequence presence7878100.0%
table-colsMarkup integrity1818100.0%
math-arityMarkup integrity99100.0%
duplicate-idMarkup integrity7979100.0%
broken-idrefMarkup integrity7878100.0%
claim-parenMarkup integrity66100.0%
chemistry-imageMarkup integrity55100.0%
enc-replacementEncoding anomalies7979100.0%
enc-controlEncoding anomalies7979100.0%
enc-mojibakeEncoding anomalies797797.5%
enc-zero-widthEncoding anomalies7979100.0%
enc-entityEncoding anomalies797797.5%
enc-mixed-scriptEncoding anomalies797797.5%
enc-private-useEncoding anomalies7979100.0%
enc-lost-charEncoding anomalies797797.5%
date-orderBibliographic consistency7979100.0%
date-invalidBibliographic consistency7979100.0%
inventor-nameBibliographic consistency7979100.0%
inventor-duplicateBibliographic consistency7979100.0%
title-missingBibliographic consistency7979100.0%
kind-codeBibliographic consistency7979100.0%
application-numberBibliographic consistency7979100.0%
cpc-invalidBibliographic consistency7979100.0%
crossref-dateBibliographic consistency1212100.0%
double-wordCertificate-of-correction patterns797898.7%
digit-letterCertificate-of-correction patterns666497.0%
range-reversedCertificate-of-correction patterns66100.0%
digit-groupingCertificate-of-correction patterns1010100.0%
claim-periodCertificate-of-correction patterns7979100.0%
amend-add-missedAmendment merge7777100.0%
amend-del-keptAmendment merge7777100.0%
amend-not-enteredAmendment merge7777100.0%
amend-entered-twiceAmendment merge7777100.0%
amend-canceled-keptAmendment merge7777100.0%
amend-claim-droppedAmendment merge7777100.0%
amend-status-markupAmendment merge7777100.0%

One bar per error type, grouped by check, answers whether a weak check is weak everywhere. It is not: 41 of the 50 types reach 100%. Figure coverage's 87.5% comes entirely from one type, a dropped line in the brief description of the drawings (46 of 56), while the other figure type is 24 of 24. Encoding anomalies' 98.7% is four types at 97.5% (77 of 79 each). The band colors repeat what the labels say (100%, 95 to 99.9%, below 95%), so the figure reads the same in grayscale. We also show each type's applicable count, because a type planted in 5 documents (chemistry images) and one planted in 79 deserve different confidence.

3.4 Recall with confidence intervals: how sure are we?

The companion report shows recall per check with 95% Wilson score intervals, which we computed from the counts. The intervals carry information the point estimates do not: reference numerals reaches 100% on 58 seeded errors, but its interval runs from 93.8% to 100%, wider than the interval of encoding anomalies (97.5% to 99.4% on 632 errors) even though its point estimate is higher. A reader comparing checks should compare intervals, not points.

Table 1. Recall with 95% Wilson intervals for selected checks.
CheckDetected / seededRecall95% interval
Figure coverage70 / 8087.5%78.5% to 93.1%
Claim antecedent basis67 / 7391.8%83.2% to 96.2%
Reference numerals58 / 58100.0%93.8% to 100.0%
Encoding anomalies624 / 63298.7%97.5% to 99.4%
Bibliographic consistency644 / 644100.0%99.4% to 100.0%

3.5 Top-k hit rate for classification suggestions

Line chart: any-subclass hit rate 41.8% at top 1, 60.8% at top 3, 70.9% at top 5; main-subclass 25.3%, 41.8%, 49.4%.
Figure 4. CPC suggestion hit rate at top-k. Share of the 79 documents whose recorded CPC subclass appears among the top k suggestions (CPC scheme 2026.08). Suggestions only; a person decides the classification.
Show the data table for Figure 4
Data for Figure 4.
kAny subclassMain subclass
141.8%25.3%
360.8%41.8%
570.9%49.4%

The classification assistant suggests CPC subclasses; a person decides. Its accuracy is best shown as a top-k curve, because a reviewer sees a short list, not a single answer. A recorded subclass is the top suggestion for 41.8% of documents and among the top 5 for 70.9%; the main (first) subclass is first for 25.3% and in the top 5 for 49.4%. Two lines, one axis, every point labeled.

4. Discussion

Each view answers one question. Scatter: which checks differ. Confusion bars: how many cases. Type strip: one weakness or many. Intervals: how sure. Top-k: how useful is a short list. A dashboard that shows only one of them invites the wrong conclusion.

Draw a lower bound as a lower bound. We label the precision axis "lower bound" and say why in every caption. Without labeled negatives, a precision figure cannot be drawn as a point estimate honestly.

Use the same check names everywhere. Readers move between views; a check called "claims.antecedent" in one chart and "Antecedent" in another costs attention. We use one plain-English name per check throughout.

Accessibility. All views use position or length for quantity, direct labels for values, a palette checked for color-vision deficiency (Okabe-Ito hues [2]) and a data table, in line with WCAG 2.2 criteria 1.1.1 and 1.4.1 [3].

5. Limitations

  • The errors were planted by us, one per copy, and many are easy for a rule to find. The views describe performance on this gold set, not on errors that really reached print.
  • Precision is a lower bound; 309 findings on the unmodified documents have not been labeled.
  • The Wilson intervals assume independent trials; seeded copies of the same document are not fully independent, so the intervals are, if anything, too narrow.
  • Static figures; no usability testing with reviewers.

6. Reproducibility

All counts come from the gold-set metrics file of PubPro 0.1.1, regenerated on December 3, 2026 and identical to the committed version. The figures and their data tables were drawn with matplotlib by one script; the Wilson intervals use the standard score formula with z = 1.96. The library and gold-set tool are proprietary; the measurement method is described in VC-TR-2026-03.

7. Conclusion

A per-check, per-type, interval-aware set of views turns "99.1% recall" into something a reviewer can act on: trust the nine clustered checks, read every antecedent-basis finding with care, and treat a missing line in the brief description of the drawings as the known blind spot. The same five views apply to any document quality-assurance system that can be measured on a seeded set.

References

  1. Davis, J., Goadrich, M. The Relationship Between Precision-Recall and ROC Curves. Proceedings of the 23rd International Conference on Machine Learning (ICML'06), 2006. https://pages.cs.wisc.edu/~shavlik/abstracts/davis.icml06.abstract.html
  2. Wong, B. Points of view: Color blindness. Nature Methods 8, 441 (2011). doi:10.1038/nmeth.1618. https://link.springer.com/article/10.1038/nmeth.1618
  3. W3C. Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, October 5, 2023. https://www.w3.org/TR/2023/REC-WCAG22-20231005/
How to citeViper Consulting™ Research. (2026). Visualizing Error Detection Performance: Per-Check Recall/Precision and Confusion Views for an AI Document QA System. Viper Consulting™ Technical Report VC-TR-2026-05, version 1.0, December 3, 2026. https://viperconsulting.ai/research/visualizing-error-detection-performance

Version history. Version 1.0, December 3, 2026: first publication. PDF: https://viperconsulting.ai/research/visualizing-error-detection-performance.pdf

Viper Consulting™ Technical Report. Not peer reviewed. Built only from our own measured results and the public sources cited. Viper Consulting™ is not affiliated with or endorsed by the USPTO, NIST, OWASP or MITRE. © 2026 Epstein Investment Group LLC d/b/a Viper Consulting™. All rights reserved.

← VC-TR-2026-04VC-TR-2026-06 →