In this capstone, you will evaluate a synthetic model result for a narrow document-review task. Your job is to write a test plan, classify a small set of known-answer outputs under a fixed rule, and report which conclusions the results support. The exercise is designed to be completed by hand.
The model is intended to flag fictional archive forms that display a specific revision marker in a designated field. A flag routes the form for review. It does not establish who prepared the form or whether the archive record is authentic. Keep the measurement, reference answer, and final use distinct throughout the exercise.
Key terms
- Synthetic dataset
- A collection of constructed or simulated observations with documented generation rules.
- Evaluation protocol
- A written plan defining test inputs, reference answers, decision rules, metrics, and how results will be assessed.
- Confusion matrix
- A table cross-tabulating observed or predicted decisions against independently established reference labels.
- Decision coverage
- The proportion of eligible cases in which the method issues a definite decision.
Learning Objectives
- Define an intended use, reference labels, and a held-out evaluation plan.
- Calculate confusion counts and coverage from a fixed synthetic set.
- Explain how a changed threshold affects distinct errors and review volume.
- Write a traceable report that identifies the limits of the evaluation.
Define the Question and the Output
Suppose a local archive is testing a reader for fictional intake forms. The task is to flag a form whose designated status field contains the marker “R7.” The reader receives a scan and proposes a flag based on a recorded score. A trained reviewer checks the original field before any archive decision uses the result.
Write the intended use before reading the supplied test outcomes. Identify the forms, the one field, and the review decision. Include the rules for unreadable regions and unexpected layouts. The model output describes a proposed label for one field. The intended-use lesson shows how narrow framing helps define which errors matter.
One case is one form from one fictional source document. A positive reference is a verified R7 in the designated field. A form with R7 only in another area is a negative. In this simulation a clean source form supplies the reference even when the test image makes the field unreadable. Recording both facts establishes a way to count such cases.
Define the relevant observed states. A score at or above the primary cutoff produces a flag. A valid score below it yields no flag. A case lacking a score because the test region is unavailable is unresolved. The follow-up route is manual review. Keep all three outcomes distinct so the counts describe how the intended workflow handles them.
Decide what the flag would allow someone to do. A review queue may use the result to open a page sooner, while keeping an independent verification requirement. For this plan, state how the reviewer finds the designated field and which observations would justify a final reading. The test evaluates the proposal stage, and later review needs its own record.
Protect the Reference and Evaluation Design
Create fictional source forms only. A test plan can include the designated marker, a different valid marker, a blank field, and a nearby distractor outside the field. Preserve a clean original and a documented working derivative when a crop or blur is used. These are deliberately constructed examples whose underlying answers are known without reading the model's output.
Write and check reference answers independently of the scores. Document the source form, field location, and presence of the marker. A second person can confirm the entries before model review. Use a stable identifier to link every test record to its source. The reference data lesson explains why reference errors can resemble model errors.
Assign each source before making working images. The scenario assumes a separate development group which does not share forms with the 12 held-out records below. In a real exercise, save that assignment and keep every derivative of each form in its original group. The evaluation splits lesson explains how shared sources can undermine a test.
Specify the primary rule before opening the held-out results. In this exercise the planned cutoff is 0.70, including exact equality. Use 0.85 as a separately labeled sensitivity check on the same fixed scores. This check illustrates a tradeoff. It cannot provide an independently chosen operating threshold for another use without further evaluation.
Add planned boundary fixtures to the test design before evaluating a revised rule. A score exactly equal to the cutoff should receive the specified flag. A visible R7 elsewhere on the page should remain a negative. An unsupported layout could be recorded for referral. Keep these ideas separate from the 12 supplied outcomes used in the calculations.
Classify the Supplied Synthetic Cases
Use the following fictional records as the held-out output. The verified positive forms are P1, P2, P3, P4, and P5. Their scores are 0.91, 0.86, 0.72, and 0.64 for P1 through P4, respectively. P5 has no score because the designated field is outside the working image. Its clean source still shows the marker.
The verified negative forms are N1, N2, N3, N4, N5, N6, and N7. Their scores are 0.84, 0.62, 0.45, 0.34, 0.23, and 0.10 for N1 through N6, respectively. N7 has no score because the designated field could not be read in the working image. Its verified source lacks the marker in that field.
Make a worksheet with the case identifier, reference class, score or availability, and decision under each rule. Apply the primary cutoff first. Count true positives, false positives, true negatives, and false negatives for the cases that received definite decisions. Then count unresolved cases by reference class, including them in eligible totals used for coverage.
Check your counts by summing in two directions. Every eligible case belongs to one verified class, and every output is flagged, unflagged, or unresolved. Different totals can show that a case was counted twice or left out. The confusion matrix lesson gives a method for checking each numerator and denominator.
Inspect the reasons for unresolved outputs. P5 lacks the necessary region. N7 has the region but its contents are unreadable in the supplied version. The statuses have the same immediate consequence and different implications for recovery. A real workflow could request a wider capture for one and a legible version for the other.
Retain the intended outcome for any field the model could not measure. In the worksheet, the reference class is known even when the score is unavailable. Assigning an unavailable score zero would create a different policy with a definite negative output. If a future study tests that policy, distinguish it from the procedure evaluated here.
Compare the Two Rules and Explain Their Tradeoffs
At 0.70, P1 through P3 are true positives and P4 is a false negative. N1 is a false positive. N2 through N6 are true negatives. That gives three true positives, one false negative, one false positive, and five true negatives. P5 and N7 remain unresolved, so decision coverage is 10 of 12, or about 83 percent.
For that primary rule, three of four flags are correct, giving 75 percent precision in the exercise. Three of the four readable known positives were flagged, giving 75 percent recall among scored positives. Across all five known positives, three were flagged and one remained unresolved. Label that broader result as coverage of known positive cases by the flagging step.
At 0.85, P1 and P2 remain true positives. P3 and P4 are now false negatives, and all six scored negatives are true negatives. Both unresolved records retain their status. This rule also yields eight correct decisions among the 10 definite outputs, but the two wrong decisions are both misses. The 0.70 rule had one miss and one false flag.
Compare how the results affect the intended use. The stricter rule sends fewer candidates for review but misses an additional verified positive. The equal decided-case accuracy does not reveal that change. The class imbalance lesson explains why a test's case mix also influences workload and the fraction of correct flags.
The score labels are demonstration values. No independent exercise established what probability any score represents. Record the numbers and cutoff as a scoring rule, and avoid interpreting 0.91 as a 91 percent chance that the form has the marker. The model score calibration lesson describes how to test a probability claim separately.
Describe the error types in terms of the quantifiable workload. The primary rule produced four flags among 12 eligible records, plus two unresolved cases sent to manual review. The alternate cutoff produced two flags plus the same two unresolved records. Verify whether those queues are disjoint under the stated procedure before giving a total number of referrals.
Write and Check the Evidence Record
Your deliverable is an examination note with an explicit use, the source and split record, the fixed comparison rules, the per-case worksheet, and summarized results. Identify the primary analysis and exploratory comparison. Explain how unresolved cases would be handled. A reviewer should be able to confirm the math, find every case, and understand the limits of the evidence.
A possible primary finding is, “Under the 0.70 rule, the reader flagged three of five verified positive forms and one of seven verified negatives. Ten of 12 forms received a definite result. One positive and one negative lacked a usable result. The alternate cutoff removed one false alert and missed one additional verified positive in this exercise.”
State the effect of the study design. The 12 records are hand-constructed for training. Their counts demonstrate the calculation, the effect of score thresholds, and a way to document unavailable inputs. They do not estimate performance for actual archives or the prevalence of a marker. A future validation needs independently sourced materials representative of the intended conditions.
Check the report with another reader. Ask them to reproduce the counts under both rules from the supplied scores and verify the status of every record. They should identify any assumption about equality or missing values that was needed. Use the analysis records lesson to decide what a later reviewer would need to reproduce the result.
Document what additional evidence a real review would need. Include relevant layouts and acquisition conditions, independent source records, and an evaluation with more than one example of a rare failure. If a change targets only the unreadable region check, retain the old results and test whether the revised handling affects other cases already within scope.
Does this exercise require running software?
Why does a case with no usable image output still have a reference label?
Can we select 0.85 as the primary rule after seeing its result?
What conclusion can be carried into real casework?
Check Your Understanding
Source
- 1.Huang et al., ICDAR 2019 Competition on Scanned Receipt OCR and Information ExtractionDocuments separate text localization, recognition, and field extraction tasks with distinct reference requirements.