# US 2019/0171875 A1 · Blockwise extraction of document metadata

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

- Number: US 2019/0171875 A1
- Document ID: US20190171875A1
- Status: Published application
- Kind: A1
- Application number: 15/828,813
- Filed: 2017-12-01
- Published: 2019-06-06
- Earliest claimed: 2017-12-01
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kevin NORTHRUP; Craig M. TRIM; Terry HICKEY; Thozamile JAVU
- Web page: https://patentgrep.com/patent/US20190171875A1

## CPC

- G06F 40/163: Handling of whitespace
- G06F 16/35: Clustering; Classification
- G06F 16/367: {Ontology}
- G06F 16/93: Document management systems
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/30: Semantic analysis
- G06V 30/412: Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
- G06V 30/413: Classification of content, e.g. text, photographs or tables
- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods, computer program products, and systems are presented. The methods include, for instance: obtaining a document image, wherein the document image includes a plurality of objects; identifying a plurality of macroblocks within the document image; performing microblock processing within macroblocks of the plurality of macroblocks, wherein the microblock processing includes examining content of microblocks within a macroblock for extraction of key-value pairs, the examining content including performing an ontological analysis of microblocks, wherein the microblock processing includes associating confidence levels to the extracted key-value pairs; and outputting metadata based on the performing microblock processing within macroblocks of the plurality of macroblocks.

## Claims

### Claim 1

A method comprising:
obtaining a document image, wherein the document image includes a plurality of objects;
identifying a plurality of macroblocks within the document image;
performing microblock processing within macroblocks of the plurality of macroblocks, wherein the microblock processing includes examining content of microblocks within a macroblock for extraction of key-value pairs, the examining content including performing an ontological analysis of microblocks, wherein the microblock processing includes associating confidence levels to the extracted key-value pairs; and
outputting metadata based on the performing microblock processing within macroblocks of the plurality of macroblocks.

### Claim 2 (depends on 1)

The method of claim 1, wherein the outputting metadata includes outputting metadata to a process interface.

### Claim 3 (depends on 1)

The method of claim 1, wherein the method includes processing the document image to identify a baseline styling parameter value, the baseline styling parameter value specifying a baseline font height; identifying for each word of a line of text of the document image a relative styling parameter, the relative styling parameter being defined in reference to the baseline styling parameter value, wherein the relative styling parameter specifies a font height of a word of text of the text line as a percentage of the baseline styling parameter value; and wherein the outputting metadata includes providing the relative styling parameter as output metadata for output.

### Claim 4 (depends on 1)

The method of claim 1, wherein the metadata presents a hierarchy including indications of macroblocks, and identified key-value pairs identified and subheaded within designators for each macroblock.

### Claim 5 (depends on 1)

The method of claim 1, wherein the examining content of microblocks within an area of a the macroblock includes iteratively performing the examining using different machine logic microblock delineation rules so that for a first iteration a first set of microblocks within the area of the macroblock is identified and for a second iteration a second set of microblocks within the area of the macroblock is identified, wherein a count of microblocks of the second set of microblocks is different from the count of microblocks of the second set of microblocks.

### Claim 6 (depends on 1)

The method of claim 1, wherein the outputting includes discarding key-value pairs so that key-value pairs having confidence levels below a threshold are not subject to outputting.

### Claim 7 (depends on 1)

The method of claim 1, wherein the examining content includes performing an ontological analysis of unaligned microblocks, and determining that unaligned microblocks are collinear based on the ontological analysis.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method includes determining a white space styling parameter value for an area of the document image larger than a microblock and applying a machine logic microblock delineation rule based on the white space styling parameter value.

### Claim 9

A method comprising:
obtaining a document image, wherein the document image includes a plurality of objects;
identifying a macroblock within the document image, wherein the macroblock includes objects of the plurality of objects;
examining content of microblocks within an area of the macroblock of the document image for extraction of one or more key-value pair, wherein the examining includes examining content of unaligned microblocks within the area of the microblock, and wherein the examining content of unaligned microblocks within the area of the microblock includes applying an ontological analysis;
associating a confidence level to a key-value pair of the one or more key-value pair; and
outputting the one or more key-value pair.

### Claim 10 (depends on 9)

The method of claim 9, wherein the examining includes analyzing respective semantic content of both a first microblock and a second microblock within the area of the macroblock, ascertaining that first semantic content of the first microblock is associated with a key name, discovering, from key ontology data corresponding to the key name, that a second semantic content of the second microblock is of a data type corresponding to the key name.

### Claim 11 (depends on 9)

The method of claim 9, wherein the examining content of unaligned microblocks is commenced prior to the identifying a macroblock, and wherein the identifying a macroblock within the document image is performed based on the examining content of unaligned microblocks.

### Claim 12 (depends on 9)

The method of claim 9, wherein the examining content of unaligned microblocks within an area of a the macroblock includes iteratively performing the examining using different machine logic microblock delineation rules so that for a first iteration a first set of microblocks within the area of the macroblock is identified and for a second iteration a second set of microblocks within the area of the macroblock is identified, wherein a count of microblocks of the second set of microblocks is different from the count of microblocks of the second set of microblocks.

### Claim 13 (depends on 9)

The method of claim 9, wherein the method includes processing the document image to identify a baseline styling parameter value, the baseline styling parameter value specifying a baseline font height; identifying for each word of a line of text of the document image a relative styling parameter, the relative styling parameter being defined in reference to the baseline styling parameter value, wherein the relative styling parameter specifies a font height of a word of text of the text line as a percentage of the baseline styling parameter value; and wherein the method includes providing the relative styling parameter as output metadata for output.

### Claim 14 (depends on 9)

The method of claim 9, wherein the examining content of unaligned microblocks includes performing the examining in a first iteration and in a second iteration, wherein the first iteration results in the identifying the macroblock, and wherein the second iteration is performed subsequent to the identifying the macroblock.

### Claim 15 (depends on 9)

The method of claim 9, wherein the examining content of unaligned microblocks includes performing the examining in a first iteration and in a second iteration, wherein the first iteration results in the identifying the macroblock, and wherein the second iteration is performed subsequent to the identifying the macroblock, wherein the performing the examining in in a first iteration includes applying a first machine logic microblock delineation rule to identify relatively fewer microblocks within the area of the macroblock, wherein performing the examining in a second iteration rule includes applying a second machine logic microblock delineation rule to identify relatively more microblocks within the area of the macroblock, wherein the outputting includes outputting the one or more key-value pair as metadata to a process interface selected from the group consisting of a process interface for document processing, a process interface for search engine searching, and a process interface for form regeneration.

### Claim 16

A method comprising:
obtaining a document image, wherein the document image includes a plurality of objects;
processing the document image to identify a baseline styling parameter value, the baseline styling parameter value specifying a baseline font height;
identifying for each word of a line of text of the document image a relative styling parameter, the relative styling parameter being defined in reference to the baseline styling parameter value, wherein the relative styling parameter specifies a font height of a word of text of the text line as a percentage value the baseline styling parameter value; and
providing the relative styling parameter as output metadata for output.

### Claim 17 (depends on 16)

The method of claim 16, wherein the method includes determining the baseline styling parameter value by providing a histogram of font height values in an area of the document that is larger than the line of text, and selecting the baseline styling parameter value based on a central dispersion of the histogram.

### Claim 18 (depends on 16)

The method of claim 16, wherein the process interface is a form regenerator.

### Claim 19 (depends on 16)

The method of claim 16, wherein the process interface is a form regenerator that is configured to examine the relative styling parameter that specifies a font height of a word of text of the text line as a percentage of the baseline styling parameter value and based on the relative styling parameter indicating a change in height, changing an attribute of the word other than font height in an output document output by the form regenerator.

### Claim 20

A computer program product comprising:
a computer readable storage medium readable by one or more processing circuit and storing instructions for execution by one or more processor for performing a method comprising:
obtaining a document image, wherein the document image includes a plurality of objects;
identifying a plurality of macroblocks within the document image;
performing microblock processing within macroblocks of the plurality of macroblocks, wherein the microblock processing includes examining content of microblocks within a macroblock for extraction of key-value pairs, the examining content including performing an ontological analysis of microblocks, wherein the microblock processing includes associating confidence levels to the extracted key-value pairs; and
outputting metadata based on the performing microblock processing within macroblocks of the plurality of macroblocks.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the examining content of microblocks within an area of a the macroblock includes iteratively performing the examining using different machine logic microblock delineation rules so that for a first iteration a first set of microblocks within the area of the macroblock is identified and for a second iteration a second set of microblocks within the area of the macroblock is identified, wherein a count of microblocks of the second set of microblocks is different from the count of microblocks of the second set of microblocks.

### Claim 22 (depends on 20)

The computer program product of claim 20, wherein the outputting includes discarding key-value pairs so that key-value pairs having confidence levels below a threshold are not subject to outputting.

### Claim 23 (depends on 20)

The computer program product of claim 20, wherein the examining content includes performing an ontological analysis of unaligned microblocks, and determining that unaligned microblocks are collinear based on the ontological analysis.

### Claim 24 (depends on 20)

The computer program product of claim 20, wherein the method includes determining a white space baseline styling parameter value for an area of the document image larger than a microblock and applying a machine logic microblock delineation rule based on the white space baseline styling parameter rule.

### Claim 25

A system comprising:
a memory;
at least one processor in communication with memory; and
program instructions executable by one or more processor via the memory to perform a method comprising:
obtaining a document image, wherein the document image includes a plurality of objects;
identifying a plurality of macroblocks within the document image;
performing microblock processing within macroblocks of the plurality of macroblocks, wherein the microblock processing includes examining content of microblocks within a macroblock for extraction of key-value pairs, the examining content including performing an ontological analysis of microblocks, wherein the microblock processing includes associating confidence levels to the extracted key-value pairs; and
outputting metadata based on the performing microblock processing within macroblocks of the plurality of macroblocks.
