# US 2021/0286993 A1 · Extracting non-textual data from documents via machine learning

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

- Number: US 2021/0286993 A1
- Document ID: US20210286993A1
- Status: Published application
- Kind: A1
- Application number: 16/818,311
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Zhong Fang Yuan; Guang Qing Zhong; Tong Liu; De Shuo Kong; Yi Ming Wang
- Web page: https://patentgrep.com/patent/US20210286993A1

## CPC

- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/23: Clustering techniques
- G06N 20/00: Machine learning
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/763: {Non-hierarchical techniques, e.g. based on statistics of modelling distributions}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An approach for extracting non-textual data from an electronic document is disclosed. The approach includes receiving a request to extract a file and converting the file into pixels. The approach creates a pixel map of the converted file and determines one or more density clusters of the pixel map based on image clustering method. Furthermore, the approach determines one or more coordinates of the one or more density clusters and determines one or more candidate information regions based on the one or more coordinates, density of the one or more density clusters. Finally, the approach extracts one or more textual data based on the one or more candidate information regions and outputs the extracted one or more textual data.

## Claims

### Claim 1

A computer-implemented method for extracting non-textual data from an electronic document, the computer-implemented method comprising:
receiving a request to extract a file;
converting the file into pixels;
creating a pixel map of the converted file;
determining one or more density clusters of the pixel map based on image clustering method;
determining one or more coordinates of the one or more density clusters;
determining one or more candidate information regions based on the one or more coordinates, density of the one or more density clusters;
extracting one or more textual data based on the one or more candidate information regions; and
outputting the extracted one or more textual data.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein creating the pixel map of the converted file comprise:
converting the file without semantic information into pixels;
determining the pixel density distribution of the file; and
creating a pixel density distribution map.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein determining the one or more density clusters comprise:
determining a first density of the pixel map, wherein the first density is located at a center of the pixel map; and
determining a second and a third density away from the first density based on image cluster technique.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein determining the one or more coordinates of the one or more density clusters comprise:
determining whether the one or more density clusters exceeds a distance threshold and a density threshold;
responsive to the one or more density clusters exceeding the distance threshold and the density threshold, deleting the one or more density clusters until a pixel density is reduced to half of an original density of the one or more density clusters; and
determining the remaining one or more density clusters, wherein one or more coordinates of the remaining one or more density clusters is located from the file.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein determining one or more candidate information regions based on the one or more coordinates comprise:
superimposing the determined one or more coordinates back into the file as a candidate region coordinates; and
identifying the one or more candidate information regions based on the candidate region coordinates.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein extracting one or more textual data based on the one or more candidate information regions comprise:
counting the candidate region information regions;
creating one or more cells based on the count of the candidate region information regions; and
converting the one or more cells into textual information.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein outputting the extracted one or more textual data comprise:
sending the one or more textual data to the one or more users as an electronic format, the electronic format comprises of pdf file, word file and text file.

### Claim 8

A computer program product for extracting non-textual data from an electronic document, the computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to receive a request to extract a file;
program instructions to converting the file into pixels;
program instructions to create a pixel map of the converted file;
program instructions to determine one or more density clusters of the pixel map based on image clustering method;
program instructions to determine one or more coordinates of the one or more density clusters;
program instructions to determine one or more candidate information regions based on the one or more coordinates, density of the one or more density clusters;
program instructions to extract one or more textual data based on the one or more candidate information regions; and
program instructions to output the extracted one or more textual data.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein program instructions to create the pixel map of the converted file comprises:
program instructions to convert the file without semantic information into pixels;
program instructions to determine the pixel density distribution of the file; and program instructions to create a pixel density distribution map.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein program instructions to determine the one or more density clusters comprises:
program instructions to determine a first density of the pixel map, wherein the first density is located at a center of the pixel map; and
program instructions to determine a second and a third density away from the first density based on image cluster technique.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein program instructions to determine the one or more coordinates of the one or more density clusters comprise:
program instructions to determine whether the one or more density clusters exceeds a distance threshold and a density threshold;
responsive to the one or more density clusters exceeding the distance threshold and the density threshold, program instructions to delete the one or more density clusters until a pixel density is reduced to half of an original density of the one or more density clusters; and
program instructions to determine the remaining one or more density clusters, wherein one or more coordinates of the remaining one or more density clusters is located from the file.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein program instructions to determine the one or more candidate information regions based on the one or more coordinates comprise:
program instructions to superimpose the determined one or more coordinates back into the file as a candidate region coordinates; and
program instructions to identify the one or more candidate information regions based on the candidate region coordinates.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein program instructions to extract one or more textual data based on the one or more candidate information regions comprise:
program instructions to count the candidate region information regions;
program instructions to create one or more cells based on the count of the candidate region information regions; and
program instructions to convert the one or more cells into textual information.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein program instructions to output the extracted one or more textual data comprise:
program instructions to send the one or more textual data to the one or more users as an electronic format, the electronic format comprises of pdf file, word file and text file.

### Claim 15

A computer system for extracting non-textual data from an electronic document, the computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising:
program instructions to receive a request to extract a file;
program instructions to converting the file into pixels;
program instructions to create a pixel map of the converted file;
program instructions to determine one or more density clusters of the pixel map based on image clustering method;
program instructions to determine one or more coordinates of the one or more density clusters;
program instructions to determine one or more candidate information regions based on the one or more coordinates, density of the one or more density clusters;
program instructions to extract one or more textual data based on the one or more candidate information regions; and
program instructions to output the extracted one or more textual data.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein program instructions to determine the one or more density clusters comprises:
program instructions to determine a first density of the pixel map, wherein the first density is located at a center of the pixel map; and
program instructions to determine a second and a third density away from the first density based on image cluster technique.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein program instructions to determine the one or more coordinates of the one or more density clusters comprise:
program instructions to determine whether the one or more density clusters exceeds a distance threshold and a density threshold;
responsive to the one or more density clusters exceeding the distance threshold and the density threshold, program instructions to delete the one or more density clusters until a pixel density is reduced to half of an original density of the one or more density clusters; and
program instructions to determine the remaining one or more density clusters, wherein one or more coordinates of the remaining one or more density clusters is located from the file.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein program instructions to determine the one or more candidate information regions based on the one or more coordinates comprise:
program instructions to superimpose the determined one or more coordinates back into the file as a candidate region coordinates; and
program instructions to identify the one or more candidate information regions based on the candidate region coordinates.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein program instructions to extract one or more textual data based on the one or more candidate information regions comprise:
program instructions to count the candidate region information regions;
program instructions to create one or more cells based on the count of the candidate region information regions; and
program instructions to convert the one or more cells into textual information.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein program instructions to output the extracted one or more textual data comprise:
program instructions to send the one or more textual data to the one or more users as an electronic format, the electronic format comprises of pdf file, word file and text file.
