The interview problem
Digitize handwritten maintenance forms containing asset IDs, dates and free-text notes. Design a pipeline that avoids silently inventing a plausible asset ID.
Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.
1. Scope and assumptions
Assume authorized scanned forms and a known initial set of layouts. Recognition must preserve raw evidence and support unknown fields. This is handwriting recognition, distinct from extracting printed document tables.
2. Worked approach
source image → versioned field crops → recognition candidates → validation → human review
Detect form version and field regions, deskew the image, and retain crop coordinates. Run handwriting recognition on each region and produce alternative strings with model evidence. Validate syntax separately from recognition: a valid-looking identifier is not necessarily the written identifier.
Join candidate IDs to the asset registry only as a constrained suggestion, retaining ambiguity when several candidates fit. Route critical uncertain fields to a reviewer with the original crop. Store raw transcription, normalized value, reviewer change and registry version separately. Publish the form only when required fields meet the agreed acceptance rule.
3. Calculate the example
If each of ten fields is independently correct with probability 0.98, whole-form correctness is 0.98^10 ≈ 81.71%. Independence is only an illustration; shared blur can make errors correlated. On a 1,000-character reference, 20 substitutions, 5 deletions and 5 insertions yield 3% character error, but one wrong character in an asset ID can still invalidate an entire form. Measure critical-field exact match directly.
4. Failure cases and trade-offs
A language model can turn an unusual serial number into a common word. Layout drift crops the wrong box. A registry lookup using today's assets can hide historical IDs. Keep image/version provenance and escalate unmatched or contradictory evidence.
Layout-specific crops work well for stable forms but need template maintenance. A general page model handles variation with more evaluation complexity. Registry constraints improve suggestions but can also amplify confident mistakes; never substitute a nearest match silently.
5. Validate the result
Hold out writers and form versions, include crossed-out text and blank fields, and evaluate exact match before and after review. Track review time and unresolved coverage as well as character error. A blank field should remain blank rather than receive a likely value.
6. Interview follow-ups and self-review
How are corrected forms reprocessed without losing human edits? What if two fields disagree about the asset?
Reward evidence-preserving outputs, field-level risk, qualified form-probability arithmetic and writer/layout holdouts.
Sources and related practice
Technical reference: arxiv.org — TrOCR research provides a recognition-model reference; form workflow and calculations are original.
Exact publication/update date not established in this review. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.
Continue with Extract structured tables from enterprise documents; Gate low-quality uploads before downstream inference.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.