Research › Data Visualization

- 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™ Research
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
Show the data table for Figure 1
| Check | Recall | Precision (lower bound) | Seeded |
|---|---|---|---|
| Claim numbering | 100.0% | 100.0% | 188 |
| Claim dependency | 99.1% | 100.0% | 226 |
| Claim antecedent basis | 91.8% | 67.7% | 73 |
| Reference numerals | 100.0% | 92.1% | 58 |
| Figure coverage | 87.5% | 90.9% | 80 |
| Abstract form | 100.0% | 97.9% | 233 |
| Sequence presence | 100.0% | 99.4% | 157 |
| Markup integrity | 100.0% | 97.5% | 195 |
| Encoding anomalies | 98.7% | 100.0% | 632 |
| Bibliographic consistency | 100.0% | 99.8% | 644 |
| Certificate-of-correction patterns | 98.8% | 97.5% | 240 |
| Amendment merge | 100.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
Show the data table for Figure 2
| Check | TP | FN | FP (conservative) |
|---|---|---|---|
| Claim numbering | 188 | 0 | 0 |
| Claim dependency | 224 | 2 | 0 |
| Claim antecedent basis | 67 | 6 | 32 |
| Reference numerals | 58 | 0 | 5 |
| Figure coverage | 70 | 10 | 7 |
| Abstract form | 233 | 0 | 5 |
| Sequence presence | 157 | 0 | 1 |
| Markup integrity | 195 | 0 | 5 |
| Encoding anomalies | 624 | 8 | 0 |
| Bibliographic consistency | 644 | 0 | 1 |
| Certificate-of-correction patterns | 237 | 3 | 6 |
| Amendment merge | 539 | 0 | 0 |
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?
Show the data table for Figure 3
| Seed | Check | Applicable | Detected | Recall |
|---|---|---|---|---|
| claim-number-jump | Claim numbering | 62 | 62 | 100.0% |
| claim-number-text | Claim numbering | 63 | 63 | 100.0% |
| claim-count | Claim numbering | 63 | 63 | 100.0% |
| dependency-forward | Claim dependency | 77 | 75 | 97.4% |
| dependency-missing | Claim dependency | 78 | 78 | 100.0% |
| dependency-idref | Claim dependency | 71 | 71 | 100.0% |
| antecedent | Claim antecedent basis | 73 | 67 | 91.8% |
| refnum-typo | Reference numerals | 58 | 58 | 100.0% |
| figure-undescribed | Figure coverage | 24 | 24 | 100.0% |
| figure-brief-dropped | Figure coverage | 56 | 46 | 82.1% |
| abstract-long | Abstract form | 79 | 79 | 100.0% |
| abstract-missing | Abstract form | 79 | 79 | 100.0% |
| abstract-legal | Abstract form | 75 | 75 | 100.0% |
| sequence-untagged | Sequence presence | 79 | 79 | 100.0% |
| sequence-no-listing | Sequence presence | 78 | 78 | 100.0% |
| table-cols | Markup integrity | 18 | 18 | 100.0% |
| math-arity | Markup integrity | 9 | 9 | 100.0% |
| duplicate-id | Markup integrity | 79 | 79 | 100.0% |
| broken-idref | Markup integrity | 78 | 78 | 100.0% |
| claim-paren | Markup integrity | 6 | 6 | 100.0% |
| chemistry-image | Markup integrity | 5 | 5 | 100.0% |
| enc-replacement | Encoding anomalies | 79 | 79 | 100.0% |
| enc-control | Encoding anomalies | 79 | 79 | 100.0% |
| enc-mojibake | Encoding anomalies | 79 | 77 | 97.5% |
| enc-zero-width | Encoding anomalies | 79 | 79 | 100.0% |
| enc-entity | Encoding anomalies | 79 | 77 | 97.5% |
| enc-mixed-script | Encoding anomalies | 79 | 77 | 97.5% |
| enc-private-use | Encoding anomalies | 79 | 79 | 100.0% |
| enc-lost-char | Encoding anomalies | 79 | 77 | 97.5% |
| date-order | Bibliographic consistency | 79 | 79 | 100.0% |
| date-invalid | Bibliographic consistency | 79 | 79 | 100.0% |
| inventor-name | Bibliographic consistency | 79 | 79 | 100.0% |
| inventor-duplicate | Bibliographic consistency | 79 | 79 | 100.0% |
| title-missing | Bibliographic consistency | 79 | 79 | 100.0% |
| kind-code | Bibliographic consistency | 79 | 79 | 100.0% |
| application-number | Bibliographic consistency | 79 | 79 | 100.0% |
| cpc-invalid | Bibliographic consistency | 79 | 79 | 100.0% |
| crossref-date | Bibliographic consistency | 12 | 12 | 100.0% |
| double-word | Certificate-of-correction patterns | 79 | 78 | 98.7% |
| digit-letter | Certificate-of-correction patterns | 66 | 64 | 97.0% |
| range-reversed | Certificate-of-correction patterns | 6 | 6 | 100.0% |
| digit-grouping | Certificate-of-correction patterns | 10 | 10 | 100.0% |
| claim-period | Certificate-of-correction patterns | 79 | 79 | 100.0% |
| amend-add-missed | Amendment merge | 77 | 77 | 100.0% |
| amend-del-kept | Amendment merge | 77 | 77 | 100.0% |
| amend-not-entered | Amendment merge | 77 | 77 | 100.0% |
| amend-entered-twice | Amendment merge | 77 | 77 | 100.0% |
| amend-canceled-kept | Amendment merge | 77 | 77 | 100.0% |
| amend-claim-dropped | Amendment merge | 77 | 77 | 100.0% |
| amend-status-markup | Amendment merge | 77 | 77 | 100.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.
| Check | Detected / seeded | Recall | 95% interval |
|---|---|---|---|
| Figure coverage | 70 / 80 | 87.5% | 78.5% to 93.1% |
| Claim antecedent basis | 67 / 73 | 91.8% | 83.2% to 96.2% |
| Reference numerals | 58 / 58 | 100.0% | 93.8% to 100.0% |
| Encoding anomalies | 624 / 632 | 98.7% | 97.5% to 99.4% |
| Bibliographic consistency | 644 / 644 | 100.0% | 99.4% to 100.0% |
3.5 Top-k hit rate for classification suggestions
Show the data table for Figure 4
| k | Any subclass | Main subclass |
|---|---|---|
| 1 | 41.8% | 25.3% |
| 3 | 60.8% | 41.8% |
| 5 | 70.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
- 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
- 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
- W3C. Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, October 5, 2023. https://www.w3.org/TR/2023/REC-WCAG22-20231005/
Viper 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-performanceVersion 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.