Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
CalculatorComparison
Frameworks
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryFinancial LiteracyInvestment Banking Analyst
Private Equity AnalystHedge Funds AnalystBreaking Into VCBreaking Into QuantsAI For Finance
Financial Analyst ProgramRisk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Internships
Equity Research InternMutual Fund Intern
Portfolio Management InternFinancial Literacy Intern
Explore Micro Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
Courses
Explore Career Roadmaps
Investment Banking AnalystEquity Research AnalystVC AnalystPrivate Equity AnalystHedge Funds Analyst
Quant AnalystAI For FinanceFinancial Analyst ProgramPrivate Wealth ManagementDebt Capital Markets
Risk Management ProgramDerivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
AI, Automation & Digital Finance
1AI Foundations
Artificial Intelligence in FinanceAlgorithmNeural Networks and Deep LearningMachine LearningArtificial Intelligence vs Machine…Computer Vision in FinanceTraining Data and LabelsNatural Language Processing in Finance
2Generative AI
Generative AIGenerative AI vs Predictive AILarge Language ModelsEmbeddingsHallucinationFine TuningPrompting vs Fine TuningThe PromptThe Context WindowTool CallingGroundingVector DatabasesRetrieval Augmented GenerationRAG vs Fine Tuning
3Automation and Workflow
Workflow AutomationAutomation vs AugmentationHow to Map a…Straight-Through Processing and Exception…Robotic Process AutomationRule EnginesMachine Learning vs Rule-Based…
4Document and Operations AI
Intelligent Document ProcessingBatch vs Real-Time vs…Document Classification vs Entity…Service Level AgreementsCase ManagementHow to Document Data…Reconciliation AutomationOptical Character Recognition and Data ExtractionConfidence Scores
5Customer Systems, Identity and Digital Assets
Digital IdentityConsent ManagementBlockchain and Distributed LedgerChatbots and Conversational AIFrom Use Case to ProductionDigital Assets and TokenisationDigital SignaturesData Sharing in FinanceElectronic KYC and Digital Onboarding
6Credit and Fraud Systems
The Fraud AlertCredit Decisioning SystemsHuman in the Loop…Adverse ActionAnomaly DetectionThe Decision ThresholdCredit Score vs Credit DecisionAlert Triage and EscalationFraud Detection and Transaction MonitoringFraud Model vs Credit ModelHow to Build Human…
7Governance, Data and Vendors
AI Governance and the AI PolicyHow to Create an…Explainability and Interpretability ComparedThe AI VendorBias and Fairness in Financial AIShadow AIAccess Control and Data MinimisationCloud Computing in FinanceData Lineage and Master DataData ResidencyThe AI Use Case Register and Model InventoryThe Model Owner
8Model Performance, Monitoring and Resilience
Model DriftFalse Positives and False NegativesClassification MetricsAdversarial AttacksModel TestingBias, Fairness and Explainability…Stopping an Automated SystemModel ValidationAI Governance vs Model Risk ManagementPrompt InjectionHow to Create an…

Optical Character Recognition and Data Extraction: From Image to Field

Optical character recognition recovers characters from an image. Data extraction assembles those characters into named fields and validates them. A field is right only if every character in it is right, so a character reading of 99.2 per cent gives a twelve character field a 90.8 per cent chance of being right. Field length, not the reading step, sets the result.

Two numbers about a reading chain sound like the same measurement and are not. One is a statement about characters. The other is a statement about whole fields, and it is the first one compounded once for every character the field holds. Nothing about the components explains the distance between them. The length of what is being read explains all of it, and once that is clear, a great many confident reports about reading systems stop being reassuring.

Because it is the mistake most often made here, one warning belongs before any number arrives. Sumeru Bank Limited, an invented bank, reports that 95.0 per cent of its fields cleared its own confidence setting in a month. The 95.0 per cent is the share of fields accepted above a bar, and it is not a field accuracy at all. Accepted and correct are two different statements about a value, they are produced by two different mechanisms, and the difference is worked in full below. The two stay apart from here on.

What happens between an image arriving and a field being populated?

The situation is a familiar one. A relative sends a photograph of an electricity bill on a messaging app, and asks for the amount due. The photograph was taken at an angle in poor light, so the picture gets opened, squinted at, the phone turned, perhaps pinched to zoom. The printing is read. Then the part of the bill that carries the amount has to be found. Finding it is not the same act as reading the printing. The bill is covered in numbers, and only one of them is the answer. Last comes the judgement of whether what has been read makes sense as an amount, and if the reading gives a figure with a stray mark in the middle, the looking starts again.

Reading a bill by hand is five acts, and a document reading chain performs the same five in the same order. Only the third of them is optical character recognition, and three of the four ways this step fails happen outside it. The five are: acquire the image; assess and improve it; recover the characters; locate the field on the document; assemble and validate the value. Optical character recognitionRecovering the characters in an image so they can be read as text. is step three and nothing else. The reading step does not choose the image, it does not decide where a value begins, and it does not judge whether the result is sensible.

Step two deserves a moment because it is the step people forget exists. Before a single character is recovered, the image is scored and cleaned: straightened where it was photographed at an angle, cropped, contrast lifted, and given an image quality indexThe bank's own score for an image, which its fitted relationship turns into a count of fields readable.. At Sumeru Bank Limited the index is the bank's own score for how much the reading step is being asked to work with. A poor score at step two is not corrected by anything at step three. It is inherited.

Five steps run between the image and the field. Character recognition is one of them. STEP 1 Acquire the image a photo or a scan STEP 2 Assess and improve it straighten, crop, score STEP 3 Recover the characters this alone is the reading STEP 4 Locate the field on the page where it starts and stops STEP 5 Assemble and validate format, range, checks WHAT CAN GO WRONG AT EACH STEP Failure 1: the image was never legible 812 of the 1,264 stopped files carried one Failure 2: a character misread Failure 3: the boundary is wrong Failure 4: a good value rejected An accuracy figure quoted for step 3 describes step 3. It is silent on steps 1, 2, 4 and 5, which between them carry three of the four ways a field comes back wrong or comes back not at all.
Acquire the image, assess and improve it, recover the characters, locate the field on the document, then assemble and validate the value, and only the third of those five steps is character recognition.
Try it out

Which of the five steps is character recognition?

What does the character reading actually measure?

Character accuracyThe share of individual characters recovered correctly. is the share of individual characters the step recovers correctly. At Sumeru Bank Limited the reading step recovers 99.2 per cent of individual characters correctly. The 99.2 per cent is the bank's own measurement on its own document supply in one month. Turned around, it says something concrete: out of every thousand characters it reads, about eight come back as something other than what was printed. A five becomes a six. An O becomes a zero. A one becomes a seven where the printing was thin.

Eight in a thousand is a genuinely good reading, and the step is doing what it was measured to do. The trouble is not that 99.2 per cent is wrong, it is that 99.2 per cent is an answer to a question nobody in the room was actually asking. Nobody wants to know about characters. A character is not stored anywhere, nobody makes a decision on one, and no part of the chain downstream has a place to put one. The chain stores fields, and a field is what a person eventually reads.

AI For Finance Bootcamp — Fin Maverick

What does data extraction assert, and why is its measure a different one?

Data extractionAssembling recovered characters into named fields and validating each one. is the work of steps four and five taken together. Handed a document full of recovered characters, data extraction decides where one named value begins and ends, pulls the characters between those two points, assembles them into a value, and then checks that value against whatever the chain expects of it. Out of a wall of text it produces a small number of named things: the employer name is this, the net pay is this, the account number is this. At this bank it produces 14 such fields on every file, and across the month's 8,600 completed files that is 120,400 fields.

The measure that belongs to that work is field accuracyThe share of whole fields that are entirely correct, which compounds with length.: the share of whole fields that come back entirely correct. One rule decides everything that follows. A field is not partly right. An account number with one wrong digit is not a slightly imperfect account number, it is a wrong account number, and it will fail to match, or worse, it will match something else. A field is right only when every single character in it is right, so field accuracy is character accuracy multiplied by itself once for every character the field holds.

The relationship

field accuracy = 0.992 raised to the power of the number of characters

0.992the bank's own measured character reading, being 99.2 per cent, held fixed throughout
the powerhow many characters the field holds, counted including spaces and separators
the resultthe share of fields of that length that come back entirely correct
What it says in wordsEvery extra character is one more chance to be wrong, and the chances do not add, they multiply. Reading two characters right is 0.992 times 0.992. Reading twelve right is 0.992 multiplied by itself twelve times, and that comes to 90.8 per cent. The arithmetic treats every character as independent of every other, a simplification stated as one: in real printing, a smudge that spoils one character often spoils its neighbour too.
One character at 99.2 per cent. Twelve characters at 90.8 per cent. Same step, same month. 100.0 98.0 96.0 94.0 92.0 90.0 1 CHARACTER: 99.2 12 CHARACTERS: 90.8 characters in the field, left to right The fall is more than eight percentage points, and all of it is arithmetic rather than a change in the step.
A character reading of 99.2 per cent produces a field reading of 90.8 per cent on a twelve character field, and nothing about the reading step differs between the two numbers.

Why does a reading of 99.2 per cent not survive into a longer field?

A household chore has the same shape. Ten children have to get onto one school bus, and for each child the chance that everything they need has been remembered is 99 in 100. Very good. But the morning only goes right if all ten are fine. The chance of that is 99 in 100 multiplied by itself ten times, or about 90 in 100. One morning in ten goes wrong, and no individual child was the problem. Compounding is what turns a very good per-item rate into an ordinary per-outcome rate, and the only thing that decides how ordinary is how many items the outcome depends on.

Applied to the fields at this bank, and holding the character reading at 99.2 per cent throughout, the readings are these. A 6 character field comes back entirely right 95.3 per cent of the time. A 12 character field, 90.8 per cent. A 20 character field, 85.2 per cent. A 30 character field, 78.6 per cent. Read that last one against the headline: a step that recovers more than 99 characters in every 100 correctly returns a completely correct thirty character value only about four times in five.

Characters in the fieldField accuracy at 99.2 per cent a characterFields wrong if all 120,400 were this length
199.2 per cent963
695.3 per cent5,665
893.8 per cent7,493
1290.8 per cent11,063
2085.2 per cent17,868
3078.6 per cent25,781

The right hand column is a what-if and not a count of anything that happened. The column answers one question only: if every one of the month's 120,400 fields happened to be that length, how many would come back wrong? The bank's fields are of many different lengths, so no single row of that column is the month. Length alone moves the count of wrong fields from 963 to 25,781.

Hold the character reading still and the field reading falls away as a curve. 100 95 90 85 80 75 70 the month implies about 8.6 characters, giving 93.3 6 chars: 95.3 12 chars: 90.8 20 chars: 85.2 30 chars: 78.6 1 6 12 20 30 characters in the field The vertical scale starts at 70 per cent, not at zero, because the whole story lives in the top thirty points.
At 99.2 per cent a character, a 6 character field is right 95.3 per cent of the time, a 12 character field 90.8 per cent and a 20 character field 85.2 per cent, and the curve is set entirely by length.
Try it out

Before the control below moves: the reading is right on 99.2 per cent of characters. What share of 20 character fields comes back entirely right?

Play with it

Stretch one field, and watch a hundred fields change colour

One input moves: how many characters the field holds, from 1 to 30. Three things redraw together. The field at the top grows a box for every character. The marker rides down the curve. And the hundred squares at the bottom recolour, so the fields of that length that come back entirely right can be counted one by one. The character reading is held at 99.2 per cent the whole way, so nothing that moves is a change in the step.

Static readings to check the control against. The character reading is 99.2 per cent throughout and the month holds 120,400 fields. At the default of 12 characters a field comes back entirely right 90.8 per cent of the time, and if every field in the month were 12 characters long, 11,063 would be wrong. At 6 characters the reading is 95.3 per cent. At 20 characters it is 85.2 per cent.

1 character12 characters30 characters
ONE FIELD, ONE BOX FOR EACH CHARACTER 12 characters, and all 12 have to be right for the field to be right FIELD ACCURACY AGAINST FIELD LENGTH 100 90 80 70 12, the worked example 90.8 per cent 1 6 12 20 30 OF 100 SUCH FIELDS, HOW MANY COME BACK ENTIRELY RIGHT 91 of every 100 such fields come back entirely right 9 do not

At 12 characters a field comes back entirely right 90.8 per cent of the time, so 91 of every 100 such fields are correct and 9 are not, and if every one of the month's 120,400 fields were 12 characters long, 11,063 would be wrong.

Educational illustration. Every figure belongs to Sumeru Bank Limited and describes one deployment in one month. The character reading is held at the bank's own measured 99.2 per cent throughout. Every character is treated as independent of every other, a simplification. The count of wrong fields is a what-if on a single field length rather than the month's actual count. The squares round to the nearest whole field out of a hundred.
Breaking Into Quants Bootcamp — Fin Maverick

Which fields suffer most, and what decides that?

A room asked which of the fourteen fields worries it will name the hard ones: the handwritten bits, the smudged bits, the employer letter that arrived as a photograph of a screen. Reasonable, and not the answer. Ranking the fourteen fields by character count ranks them by field accuracy, whatever anybody thinks about how hard each one looks. Difficulty affects the character reading. Length affects how many times that reading has to hold.

No report the bank produced ever separated its fields by length, and that omission is what the sign-off below turned on. So the lengths below are ordinary lengths for values of that sort rather than the bank's own measurement, and they settle the ordering rather than any count. The ordering is the part that does not depend on the lengths being exactly right: the short codes sit at the top of the list at more than 95 per cent, and the long free text values, an account number or an employer name, sit at the bottom, and no plausible set of lengths reverses that.

Ranking the fields by length ranks them by how often they come back right. Bars start at 80 per cent, not at zero, so the ordering is visible. A yes or no marker, 1 99.2 A pay period code, 6 95.3 A net pay amount, 7 94.5 A date of birth, 10 92.3 An account number, 14 89.4 An employer name, 24 82.5 80 100 Lengths shown are ordinary lengths for such values, used to show the ordering and not to report a count.
Ranked by character count, the short codes sit at the top of the field accuracy list and the long values such as an account number or an employer name sit at the bottom, whatever the reading step is.
Try it out

Two fields are read by the same step. One holds 6 characters and one holds 20. Which one needs a person more often?

What does the image itself do to the number of fields that come back?

Everything so far has held the image constant. Now let the image move. In practice the image is where most of the trouble at this bank actually arrived. The bank scores every image it receives and relates that score to how much of the file comes back readable using its own fitted relationship: the share readable is 0.50 plus 0.0062 times the index, capped at 1.00, and multiplied by the 14 fields on the file, then rounded down to a whole field. The relationship is the bank's own, fitted on the bank's own images, and it is not a general property of anything.

The bank's median image quality index is 74. Put 74 through the relationship: 0.50 plus 0.0062 times 74 is 0.9588, times 14 is 13.4232, rounded down to 13. So on a file of median image quality, 13 of the 14 fields come back above the bank's acceptance barThe confidence level above which a field is taken without a person, chosen by this bank at 0.92. and one does not. Drop the index to 52 and the same relationship returns 11.5136. Rounded down that is 11, so three fields stop instead of one. Lift it to 81 and the relationship reaches its cap: every one of the 14 comes back, and improving the image beyond that point buys nothing at all on this file.

Same file, same 14 fields, same reading step. Only the image changed. INDEX 52 0.50 + 0.0062 x 52 = 0.8224, x 14 = 11.5136, rounded down 11 settled, 3 stopped INDEX 74 the bank's median: 0.9588, x 14 = 13.4232, rounded down 13 settled, 1 stopped INDEX 81 the relationship reaches its cap of 1.00, so 14 of 14 14 settled, 0 stopped 812 of the 1,264 files that reached the exception desk with an unreadable field, being 64.2 per cent, carried at least one image below the bank's own chosen quality bar. The problem arrived before the step ran.
At the bank's median index of 74 the relationship returns 13 of 14 fields above the bar, and 812 of the 1,264 stopped files carried an image below the bank's own quality bar.
Try it out

812 of the 1,264 stopped files carried a low quality image. What does that say about where to spend?

Financial Analyst Program Bootcamp — Fin Maverick

How does one file's reading fit with the month's figures?

Two readings are now in play and they look as though they disagree, so settle that before either is used for anything. The per-file relationship says a median file returns 13 of 14, or about one stopped field per file. The month says 6,020 fields were routed to a person, and those 6,020 sat in only 1,264 files, an average of 4.76 fields each. One stopped field a file against 4.76 in far fewer files. One reading describes a single file at a given index and the other is an aggregate over a month of files that mostly had none, so the two are not in conflict and must never be merged.

Work it through in both directions and it settles cleanly. Taken continuously rather than rounded to whole fields, the relationship at the median index gives 95.88 per cent of fields readable. On 120,400 fields that would be about 4,960 routed. Rounded up to whole files, if every one of the 8,600 files sat exactly at the median with one stopped field each, that would be 8,600 routed fields spread across 8,600 files. The month sits between the two on count, at 6,020, and nowhere near either on spread: those 6,020 fields touched 1,264 files, or 14.7 per cent of the month rather than all of it. The concentration is clusteringFailures sitting together in a few files rather than spreading evenly across many., and it is the reason an exception desk is very much smaller than a field level error rate makes it sound.

One file, every file, and the month. The gap between them is where the failures sit. ONE FILE AT INDEX 74 1 stopped field 13 of the 14 come back above the bar This is a statement about one file at one index. IF EVERY FILE SAT THERE 8,600 routed fields, spread across all 8,600 files Every file would carry one. No file would escape. THE MONTH AS IT HAPPENED 6,020 routed fields, sitting in only 1,264 files, at 4.76 each 14.7 per cent of the month carried all of the trouble. THE THIRD READING, WHICH RECONCILES THE OTHER TWO Taken continuously rather than rounded to whole fields, the relationship at index 74 gives 95.88 per cent readable, being about 4,960 routed on 120,400 fields. The actual 6,020 sits between the two. What no reading of the relationship predicts is the spread, and the spread is the clustering.
The fitted relationship gives about one routed field on a median file, and the month's 6,020 routed fields sit in 1,264 files at 4.76 each, so the difference between them is exactly the clustering.
Try it out

The fitted relationship gives about one routed field on a median file, and the month has 4.76 routed fields per stopped file. Is that a contradiction?

Why is the month's 95.0 per cent not a field accuracy at all?

Now the figure quoted at the outset, in full. Of the month's 120,400 fields, 114,380 cleared the bank's own chosen acceptance bar of 0.92 and were taken without a person looking. The 114,380 accepted are 95.0 per cent of the month. The remaining 6,020 were routed. The 95.0 per cent is reported everywhere in the bank, and it is often the only figure anyone quotes about the reading step. Being the only figure quoted is exactly why it deserves this much care. The figure answers the question how many fields were accepted, and it does not answer the question how many fields were right.

The distinction is a familiar one. A shopkeeper accepting a hundred rupee note without holding it to the light has accepted it. Whether it was genuine is a separate matter settled by a separate mechanism, and the acceptance rate describes the shopkeeper rather than the notes. Here the separate mechanism is a hand check: 400 accepted fields were pulled and read by a person, and 7 of them were wrong. Seven in 400 is 1.75 per cent of accepted fields. Across the 114,380 accepted in the month that projects to about 2,002 wrong values sitting quietly inside the accepted pile.

Two numbers about the same 120,400 fields, answering two different questions. 95.0 PER CENT ACCEPTED A FIELD ACCURACY The question it answers How many fields were takenwithout a person? How many fields hold thevalue that was printed? What produces it A confidence value comparedagainst a chosen bar of 0.92 Somebody reading thedocument and comparing Moves with a change in the bar, with no change toany value on any document the images, the step or thelength of the fields The proof they are different: 400 accepted fields were read by hand and 7 of them were wrong, being 1.75 per cent, or about 2,002 in the month.
95.0 per cent is the share of fields accepted above the bank confidence bar, a field accuracy is the share of fields that are actually right, and neither number is a statement about the other.
Try it out

The month shows 95.0 per cent of fields accepted. Is the reading step right 95.0 per cent of the time?

Bond Pricing and Yield Mechanics — free micro-course from Fin Maverick

What is the month's implied field accuracy, and why is it only a floor?

With the two numbers held apart, the month's field accuracy can finally be built, and it is one line of subtraction. Start with all 120,400 fields. Take out the roughly 2,002 that were accepted and are wrong, the number the hand check implies. Take out all 6,020 that were routed to a person. Left over are 112,378 fields that were both accepted and right, or 93.3 per cent of the month.

The subtraction treats every one of the 6,020 routed fields as wrong, and most of them were not wrong at all: they were merely unreadable. So the 93.3 per cent is a floor rather than a reading. A field the step declined to guess at is not an error in the value; it is an absence of a value. The true field accuracy is therefore somewhere above 93.3 per cent, and the honest treatment of a number that can only be bounded is to say which side it has been bounded from. Called a floor, it is defensible. Called the answer, it quietly reports the step as worse than it was.

One more reading falls out of the floor, and it closes the circle with the figures at the outset. If a character reading of 99.2 per cent produces a field accuracy of 93.3 per cent, what average field length would do that? About 8.6 characters answers it. Multiply 0.992 by itself 8.6 times and the result is 93.3 per cent. The 8.6 is arithmetic on the bank's own figures rather than a measurement of its fields, so it is a consistency check rather than a count. The month behaves as though its typical field is between eight and nine characters long. For a set of fields holding dates, codes, amounts, an account number and an employer name, eight or nine characters is entirely plausible.

The month's field accuracy is one subtraction, and the answer is a floor. All 120,400 fields read in the month 112,378 right and accepted 2,002 accepted but wrong 6,020 routed to a person THE LINE 120,400 less 2,002 less 6,020 = 112,378, being 93.3 per cent of 120,400 Why it is a FLOOR and not a reading: the line counts all 6,020 routed fields as wrong. Most of them held no wrong value at all. They held no value. The true figure sits above 93.3 per cent.
Taking 2,002 wrong accepted fields and 6,020 routed fields out of 120,400 leaves 112,378, being 93.3 per cent, and that figure is a floor because it counts every routed field as an error.
Try it out

Why is the month's implied field accuracy of about 93.3 per cent described as a floor?

The error that gets made, and what it cost here

The reading step at Sumeru Bank Limited was signed off on a character accuracy of 99.2 per cent. The figure was correctly measured, correctly reported and correctly minuted. The next four seconds in a room full of competent people did the damage. Nobody said the word character out loud, so everybody heard a system that is right 99.2 per cent of the time.

A chain right 99.2 per cent of the time is not what they had. At an average field length of about 8.6 characters the same 99.2 per cent gives a field accuracy of about 93.3 per cent, a floor built from one line of subtraction on the month's own numbers, and the difference between those two readings across 120,400 fields is thousands of fields a month. Expectations about how much would stop, and therefore how many people the exception desk needed, were carried out of that room on the character figure. The business case sat at 2 posts of exception work. The desk that steady state actually required was 7.

Nobody misreported anything, and the reading step did not underperform. A measure was carried across a boundary it does not cross, and the boundary is that characters compound into fields. Where the damage landed is entirely predictable in hindsight: on the long fields, an account number or an employer name, the very fields no report ever separated out. Nothing was mismeasured, so no measurement discipline catches this. One question asked out loud before the sign-off catches it: this figure is a share of what?

Subtraction gives a field accuracy that is only a floor. See what it hides.

What are the four ways this step fails, and how is each one caught?

A single accuracy figure conceals four quite different events, and they are caught by four different things, cost four different amounts and are fixed by four different teams. Setting them out separately is the most useful half hour anybody running such a chain can spend. Three of the four happen outside the character recognition step entirely, and so the character figure can be excellent while the chain is not.

The third of them deserves particular attention because nothing at character level can ever see it. Suppose the characters are all recovered perfectly and the field boundaryWhere a value starts and stops on the document, which can be wrong even when the characters are right. is drawn in the wrong place, so the value assembled runs one character short or swallows a stray mark from the line above. The result is a well formed, confident, wrong value. Every character in it was read correctly. By its own definition that event was a perfect success, so a character accuracy measure scores it as one and is right to. The fourth kind runs the other way: the value is entirely correct and a validation ruleA written check that a value must pass, such as a format, a range or a match against another record. refuses it because the format was unusual, and a person is asked to confirm something that was never wrong.

Four failures, four catches, and only one of them visible to a character measure. WHAT HAPPENED AT WHICH STEP WHAT CATCHES IT CHARACTER MEASURE 1 The image was never legible812 of the 1,264 stopped files Steps 1 and 2 The image quality index,before any reading runs Sees nothing 2 A character was recoveredwrongly Step 3 A low confidence value,or a validation rule Sees it 3 The characters were right andthe field boundary was wrong Step 4 A format check or a matchagainst another record Scores it as aperfect success 4 The field was right and avalidation rule rejected it Step 5 A person, who confirms avalue that was never wrong Sees nothing
The image was never legible, or the characters were recovered wrongly, or the characters were right and the field boundary was wrong, or the field was right and a validation rule rejected it.
Try it out

The characters were recovered correctly and the field is still wrong. Which failure kind is that?

What has to be recorded so the four failures stay separable?

A chain that records one accuracy figure per month makes all four of those events look identical afterwards, and the cost of that is not theoretical: it is somebody spending a quarter improving the reading step when 64.2 per cent of the stopped files were carrying an inherited image problem. The record has to keep the steps apart in the same way the diagram does.

Six things, and none of them is expensive to keep. The image as received, unaltered, alongside the improved version actually read. The image quality index at the moment of reading. A file that failed at index 41 and a file that failed at index 79 are two different problems. The characters recovered, with the confidence value attached to each field. The boundary used for each field, so a boundary fault can be told apart from a character fault. The validation outcome, separately from the reading outcome. And the person intervention, saying what was changed and what was merely confirmed. Keep those six and every one of the four failure kinds can be counted separately after the fact; keep one accuracy figure instead and none of them can.

India

Where the accountability sits

Where document images supporting a lending decision are read and retained by a regulated lender, the expectations covering record keeping, outsourcing, customer data and consent sit with the Reserve Bank of India, and its material is published at rbi.org.in. The acceptance bar of 0.92 and the image quality bar are the bank's own choices rather than a standard of any kind.

Financial Literacy Bootcamp — Fin Maverick

How does a lender, an analyst or an operations head actually use this?

The use is a single question, asked before any money moves, and it takes about a minute. Somebody presents an accuracy figure for a reading step. The question is whether that is a share of characters or a share of fields. If the answer is characters, the next request is for the average number of characters in the fields the chain actually stores, and the character figure is raised to that power. At this bank that is 0.992 to the power of about 8.6, giving about 93.3 per cent. The number people were budgeting against was 99.2, so the conversation changes shape immediately.

Then two follow-ups. First, how many fields a month, so the percentage becomes a count of exceptions and the count becomes desk minutes. At this bank the exception desk runs 7 posts, and at the fully loaded Rs 9,00,000/- a year for one post that the bank assumes, that desk is about Rs 63,00,000/- a year, arithmetic on the assumed figure rather than a payroll reading. Set that beside the Rs 65,00,000/- a year this chain costs to run and the sizing question stops being an operations detail. Second, do the failures cluster? Here 6,020 stopped fields sat in 1,264 files, so the desk works 1,264 items and not 6,020, and a chain whose failures spread evenly would have needed a very different desk on identical field level numbers.

Ajay Agrawal, Joshua Gans and Avi Goldfarb, in Prediction Machines, 2018, put the general form of it: a component of this sort produces a prediction, and its value is set entirely by what somebody does differently as a result. Here the prediction is a field value, and what somebody does differently is either accept it or go and look at the document. A character figure cannot say how often somebody has to go and look, and that is the only quantity the desk, the budget and the customer waiting for a decision actually feel. Cathy O'Neil, in Weapons of Math Destruction, 2016, makes the companion point that a model's errors rarely fall evenly, and this case is a small clean instance of it: the errors here fall on whoever has the longest employer name.

Confidence values and how an acceptance bar is chosen are covered under confidence scores, where the sweep across four bars and the cost of moving one are worked in full. How the classifier decides what a document is, is covered under document classification. How the reading step was built, fitted or evaluated is covered separately.

Sources

SourceDocumentSite
Reserve Bank of IndiaExpectations on a regulated lender covering digital lending, outsourcing, customer data, consent and the retention of records supporting a credit decision, which apply to the lender whatever reads the documents behind that decisionrbi.org.in
Ajay Agrawal, Joshua Gans and Avi GoldfarbPrediction Machines, 2018, for the value of a prediction being set entirely by what somebody does differently as a resultHarvard Business Review Press
Cathy O'NeilWeapons of Math Destruction, 2016, for a model's errors falling unevenly rather than spreading across everybody alikeCrown

Sumeru Bank Limited is invented.
Educational material. Not advice on any investment, tax, budget or market position.

← PreviousNext →
Fin Maverick Micro CoursesExplore Micro Courses
Fin Maverick BootcampsExplore Bootcamps
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsCareersShowdown
RESOURCES
All CoursesMicro CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.