# US 2016/0239716 A1 · Targeted optical character recognition (ocr) for medical terminology

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0239716 A1
- Document ID: US20160239716A1
- Status: Published application
- Kind: A1
- Application number: 15/140,849
- Filed: 2016-04-28
- Published: 2016-08-18
- Earliest claimed: 2014-07-21
- Assignees: Optum, Inc.
- Applicants: Optum, Inc.
- Inventors: Casey Stella
- Web page: https://patentgrep.com/patent/US20160239716A1

## CPC

- G06V 10/98: Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/24: Classification techniques
- G06F 18/2415: based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
- G06T 7/10: Segmentation; Edge detection (motion-based segmentation G06T7/215)
- G06V 10/768: {using context analysis, e.g. recognition aided by known co-occurring patterns}
- G06V 30/224: of printed characters having additional code marks or containing code marks
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06T 2207/20112: Image segmentation details
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Embodiments of the present invention provide concepts for correcting optical character recognition (OCR) errors from and OCR scan result by sequentially applying an anagram hash (AH) and Levenshtein-Distance (LD) measurement for concurrent character identity-based (machine code) and character shape-based (OCR-Key) corrections. The OCR-Key classifies characters by shape into one or more disjoint and overlapping classes. Similar shaped-based classes appearing in consecutive characters are appended to a cardinality term, a repetition count of the class. The LD measurement groups OCR-Keys and differentiates on both class and cardinality to arrive at a shape-based mismatch error between competing candidate words from an associated dictionary and a target word from the OCR scan. The shape-based LD measurement errors are then functionally merged with the character identity-based deletion, substitution, and insertion errors to find a minimum error for the set of candidate words, corresponding to the preferred candidate word match to the target word.

## Claims

### Claim 1

A method for correcting optical character recognition (OCR) errors from an OCR scan result, comprising:
registering an OCR machine code from the OCR scan result;
mapping the registered OCR machine code to one or more of an OCR-Key according to one or more character shape functions;
selecting, from a dictionary, a first set of candidate words as possible matches to the registered OCR machine code;
selecting, from the dictionary, a second set of candidate words as possible matches to the OCR-Key;
calculating a set of errors between the second set of candidate words and the OCR machine code and the OCR-Key; and
selecting a preferred candidate word from the second set of candidate words with the smallest set of errors.

### Claim 2 (depends on 1)

The method of claim 1, wherein mapping the registered OCR machine code to one or more of the OCR-Key according to one or more character shape functions comprises:
mapping from one or more segments of an individual character represented by the OCR machine code to one or more character shape classes;
mapping from a combination of one or more characters represented by the OCR machine code to the one or more character shape classes;
mapping according to a character shape function comprising a repetition encoding of a characteristic shape, wherein the repetition encoding is designated as a cardinality of the one or more character shape classes;
mapping according to a character shape function, wherein a set of consecutive characters in a common character shape class are grouped into a single class with a cardinality equal to the sum of the cardinalities of each of the consecutive characters; and
mapping to the set of character shape classes comprising disjoint classes, overlapping classes, and combinations thereof.

### Claim 3 (depends on 2)

The method of claim 2, wherein selecting a second set of candidate words comprises activating a character shape anagram hash (AH-S) by:
mapping from the OCR-Key to an AH-S geometry;
constructing an AH-S search tree in the AH-S geometry; and
searching the AH-S search tree.

### Claim 4 (depends on 3)

The method of claim 3, wherein the AH-S geometry comprises:
a unique point for each candidate OCR-Key and its respective set of OCR-Key anagrams;
orthogonal groups of candidate OCR-Keys and their set of respective anagrams, wherein the orthogonal groups differ from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and
the cardinality, wherein the cardinality of a character shape class may vary with the unique points and the orthogonal groups.

### Claim 5 (depends on 4)

The method of claim 4, wherein calculating a set of errors between the second set of candidate words and the registered OCR machine code and the OCR-Key comprises:
a first Levenshtein-Distance (LD) measure between the second set of candidate words and the registered OCR machine code; and
a second Levenshtein-Distance (LD/OCR-Key) measure between the second set of candidate words and the OCR-Key.

### Claim 6 (depends on 5)

The method of claim 5, wherein the LD measure and the LD/OCR-Key measure comprises at least one of an LD matrix or LD trellis and at least one of an LD/OCR-Key matrix or LD/OCR-Key trellis.

### Claim 7 (depends on 6)

The method of claim 6, wherein the LD and LD/OCR-Key trellises are traversed by more than one path to all possible paths, wherein the traversing the LD and the LD/OCR-Key trellises comprises a step-by-step registering of an LD and an LD/OCR-Key trellis step error at each step.

### Claim 8 (depends on 7)

The method of claim 7, wherein a sequential collection of LD and LD/OCR-Key trellis step errors comprises an LD and an LD/OCR-Key critical path, wherein the critical path is a minimum error path.

### Claim 9 (depends on 8)

The method of claim 8, wherein the LD and the LD/OCR-Key critical paths associated with the LD trellis and the LD/OCR-Key trellis are constructed concurrently.

### Claim 10 (depends on 9)

The method of claim 9, wherein the smallest set of errors is a function of the LD and LD/OCR-Key critical paths.

### Claim 11 (depends on 10)

The method of claim 10, wherein the function comprises:
the LD trellis step error associated with the last step in the LD critical path; and
the LD/OCR-Key trellis step error associated with the last step in the LD/OCR-Key critical path.

### Claim 12 (depends on 11)

The method of claim 11, wherein the function is applied to the second set of candidate words.

### Claim 13 (depends on 12)

The method of claim 12, wherein the function further comprises:
differences from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and;
the cardinality of the character shape class.

### Claim 14 (depends on 12)

The method of claim 12, wherein the function further comprises a frequency of the respective second set of candidate words.

### Claim 15

An apparatus for correcting optical character recognition (OCR) errors from an OCR scan result, said apparatus comprising a processing device and a memory-storing computer-executable instructions, the memory and the computer-executable instructions configured to, with the processing device, cause the apparatus to:
register an OCR machine code from the OCR scan result;
map the registered OCR machine code to one or more of an OCR-Key according to one or more character shape functions;
select, from a dictionary, a first set of candidate words as possible matches to the registered OCR machine code;
select, from the dictionary, a second set of candidate words as possible matches to the OCR-Key;
calculate a set of errors between the second set of candidate words and the OCR machine code and the OCR-Key; and
select a preferred candidate word from the second set of candidate words with the smallest set of errors.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein to map the registered OCR machine code to one or more of the OCR-Key according to one or more character shape functions comprises the memory and the computer-executable instructions are further configured to, with the processing device, cause the apparatus to:
map from one or more segments of an individual character represented by the OCR machine code to one or more character shape classes;
map from a combination of one or more characters represented by the OCR machine code to the one or more character shape classes;
map according to a character shape function comprising a repetition encoding of a characteristic shape, wherein the repetition encoding is designated as a cardinality of the one or more character shape classes;
map according to a character shape function, wherein a set of consecutive characters in a common character shape class are grouped into a single class with a cardinality equal to the sum of the cardinalities of each of the consecutive characters; and
map to the set of character shape classes comprising disjoint classes, overlapping classes, and combinations thereof.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein to select a second set of candidate words, the memory and the computer-executable instructions are further configured to, with the processing device, cause the apparatus to activate a character shape anagram hash (AH-S) by:
mapping from the OCR-Key to an AH-S geometry;
constructing an AH-S search tree in the AH-S geometry; and
searching the AH-S search tree.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the map to the AH-S geometry comprises:
a map to a unique point for each candidate OCR-Key and its respective set of OCR-Key anagrams;
a map to orthogonal groups of candidate OCR-Keys and their set of respective anagrams, wherein the orthogonal groups differ from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and
the cardinality, wherein the cardinality of a character shape class may vary with the unique points and the orthogonal groups.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein to calculate a set of errors between the second set of candidate words and the registered OCR machine code and the OCR-Key comprises the memory and the computer-executable instructions are further configured to, with the processing device, cause the apparatus to:
calculate a first Levenshtein-Distance (LD) measure between the second set of candidate words and the registered OCR machine code; and
calculate a second Levenshtein-Distance (LD/OCR-Key) measure between the second set of candidate words and the OCR-Key.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the LD measure and the LD/OCR-Key measure comprises at least one of an LD matrix or LD trellis and at least one of an LD/OCR-Key matrix or LD/OCR-Key trellis.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the LD and LD/OCR-Key trellises are traversed by more than one path to all possible paths, wherein the traversing the LD and the LD/OCR-Key trellises comprises a step-by-step registering of an LD and an LD/OCR-Key trellis step error at each step.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein a sequential collection of LD and LD/OCR-Key trellis step errors comprises an LD and an LD/OCR-Key critical path, wherein the critical path is a minimum error path.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein the LD and the LD/OCR-Key critical paths associated with the LD trellis and the LD/OCR-Key trellis are constructed concurrently.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the smallest set of errors is a function of the LD and LD/OCR-Key critical paths.

### Claim 25 (depends on 24)

The apparatus of claim 24, wherein the function further comprises:
the LD trellis step error associated with the last step in the LD critical path; and
the LD/OCR-Key trellis step error associated with the last step in the LD/OCR-Key critical path.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the function is applied to the second set of candidate words.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the function further comprises:
differences from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and;
the cardinality of the character shape class.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein the function further comprises a frequency of the respective second set of candidate words.

### Claim 29

A non-transitory computer-readable medium storing machine-readable program code for causing, when executed, one or more devices to perform the following functions for correcting optical character recognition (OCR) errors from an OCR scan result:
register an OCR machine code from the OCR scan result;
map the registered OCR machine code to one or more of an OCR-Key according to one or more character shape functions;
select, from a dictionary, a first set of candidate words as possible matches to the registered OCR machine code;
select, from the dictionary, a second set of candidate words as possible matches to the OCR-Key;
calculate a set of errors between the second set of candidate words and the OCR machine code and the OCR-Key; and
select a preferred candidate word from the second set of candidate words with the smallest set of errors.

### Claim 30 (depends on 29)

The non-transitory computer-readable medium of claim 29, wherein to map the registered OCR machine code to one or more of the OCR-Key according to one or more character shape functions comprises, the machine-readable program code causes, when executed, one or more devices to perform the following functions:
map from one or more segments of an individual character represented by the OCR machine code to one or more character shape classes;
map from a combination of one or more characters represented by the OCR machine code to the one or more character shape classes;
map according to a character shape function comprising a repetition encoding of a characteristic shape, wherein the repetition encoding is designated as a cardinality of the one or more character shape classes;
map according to a character shape function, wherein a set of consecutive characters in a common character shape class are grouped into a single class with a cardinality equal to the sum of the cardinalities of each of the consecutive characters; and
map to the set of character shape classes comprising disjoint classes, overlapping classes, and combinations thereof.

### Claim 31 (depends on 30)

The non-transitory computer-readable medium of claim 30, wherein to select a second set of candidate words, the machine-readable program code causes, when executed, one or more devices to activate a character shape anagram hash (AH-S) by:
mapping from the OCR-Key to an AH-S geometry;
constructing an AH-S search tree in the AH-S geometry; and
searching the AH-S search tree.

### Claim 32 (depends on 31)

The non-transitory computer-readable medium of claim 31, wherein to map to the AH-S geometry, the machine-readable program code causes, when executed, one or more devices to perform the following functions:
map to a unique point for each candidate OCR-Key and its respective set of OCR-Key anagrams;
map to orthogonal groups of candidate OCR-Keys and their set of respective anagrams, wherein the orthogonal groups differ from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and
register the cardinality, wherein the cardinality of a character shape class may vary with the unique points and the orthogonal groups.

### Claim 33 (depends on 32)

The non-transitory computer-readable medium of claim 32, wherein to calculate a set of errors between the second set of candidate words and the registered OCR machine code and the OCR-Key, the machine-readable program code causes, when executed, one or more devices to perform the following functions:
calculate a first Levenshtein-Distance (LD) measure between the second set of candidate words and the registered OCR machine code; and
calculate a second Levenshtein-Distance (LD/OCR-Key) measure between the second set of candidate words and the OCR-Key.

### Claim 34 (depends on 33)

The non-transitory computer-readable medium of claim 33, wherein the LD measure and the LD/OCR-Key measure comprises at least one of an LD matrix or LD trellis and at least one of an LD/OCR-Key matrix or LD/OCR-Key trellis.

### Claim 35 (depends on 34)

The non-transitory computer-readable medium of claim 34, wherein the LD and LD/OCR-Key trellises are traversed by more than one path to all possible paths, wherein the traversing the LD and the LD/OCR-Key trellises comprises a step-by-step registering of an LD and an LD/OCR-Key trellis step error at each step.

### Claim 36 (depends on 35)

The non-transitory computer-readable medium of claim 35, wherein a sequential collection of LD and LD/OCR-Key trellis step errors comprises an LD and an LD/OCR-Key critical path, wherein the critical path is a minimum error path.

### Claim 37 (depends on 36)

The non-transitory computer-readable medium of claim 36, wherein the LD and the LD/OCR-Key critical paths associated with the LD trellis and the LD/OCR-Key trellis are constructed concurrently.

### Claim 38 (depends on 37)

The non-transitory computer-readable medium of claim 37, wherein the smallest set of errors is a function of the LD and LD/OCR-Key critical paths.

### Claim 39 (depends on 38)

The non-transitory computer-readable medium of claim 38, wherein the function further comprises:
the LD trellis step error associated with the last step in the LD critical path; and
the LD/OCR-Key trellis step error associated with the last step in the LD/OCR-Key critical path.

### Claim 40 (depends on 39)

The non-transitory computer-readable medium storing machine-readable program code of claim 39, wherein the function is applied to the second set of candidate words.

### Claim 41 (depends on 40)

The non-transitory computer-readable medium storing machine-readable program code of claim 40, wherein the function further comprises:
differences from the registered machine code OCR-Key by one or more of a character shape class deletion, a character shape class substitution, and a character shape class insertion, and;
the cardinality of the character shape class.

### Claim 42 (depends on 40)

The non-transitory computer-readable medium storing machine-readable program code of claim 40, wherein the function further comprises a frequency of the respective second set of candidate words.
