OCR Correction with LSTM and Modified Edit Distance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current Optical Character Recognition (OCR) techniques achieve high accuracy but often result in errors, particularly in eKYC processes, where names and addresses are frequently misinterpreted, leading to incorrect corrections when using direct search methods.

Innovation Solution

A system utilizing a trained Long short-term memory (LSTM) neural network language model and a modified edit distance process to evaluate OCR results, determining the need for correction and identifying the most similar text from a constructed name and address corpus, while enriching the corpus with corrected results to improve accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If direct searching of name/address corpus is used to correct OCR results, then correction speed is improved, but correction accuracy deteriorates due to many correct results being wrongly corrected

Engineering Contradiction:
Improvecorrection speedVSAvoidcorrection accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent introduces an intermediary verification mechanism between the OCR result and the corpus search. The system first identifies potential corrections through modified edit distance, then verifies them using multiple criteria including language model probability, character similarity metrics, and frequency analysis before applying corrections. This intermediary verification layer prevents wrong corrections while maintaining efficient processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent modifies the traditional edit distance parameter by introducing a weighted modified edit distance that incorporates visual similarity weights for different character types. Additionally, the system dynamically adjusts correction thresholds based on confidence scores from language models and corpus frequency statistics, allowing adaptive parameter changes to balance speed and accuracy.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If corpus coverage is increased to improve correction accuracy, then more OCR errors can be corrected, but system complexity and processing time increase

Engineering Contradiction:
Improvecorrection accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent performs preliminary actions by pre-processing the corpus to extract and store key features such as character frequency distributions, n-gram patterns, and visual similarity matrices before the actual correction process. Language models are pre-trained on the corpus, and edit distance thresholds are pre-calculated for common character pairs. This preliminary preparation reduces the complexity and processing time during actual OCR correction operations.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If modified edit distance with visual similarity weights is used, then correction accuracy is improved, but computational complexity increases

Engineering Contradiction:
Improvecorrection accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSPower

Solution Approach 1:

The patent applies local quality by assigning different visual similarity weights to different character positions and types. Instead of using uniform weights for all character comparisons, the system identifies locally important character positions (such as distinguishing characters in names) and applies higher weights to their similarity calculations. This localized approach improves accuracy for critical fields while reducing overall computational complexity by not uniformly applying complex calculations to all positions.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS11023766B2Automatic optical character recognition (OCR) correction
Publication Date: 2021.06.01 ZOLOZ PTE LTD
  • US11023766B2 patent drawing
  • US11023766B2 patent drawing
  • US11023766B2 patent drawing

AI summary

Disclosed herein are computer-implemented methods, computer-implemented systems, and non-transitory, computer-readable media for automatic Optical Character Recognition (OCR) correction. One computer-implemented method includes evaluating an OCR result using a trained Long short-term memory (LSTM) neural network language model to determine whether correction to the OCR result is required. If correction to the OCR result is required, a most similar text relative to the OCR result is determined from a name and address corpus using a modified edit distance technique. The OCR result is corrected with the determined most similar text.