# US 2019/0303447 A1 · Method and system for identifying type of a document

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

- Number: US 2019/0303447 A1
- Document ID: US20190303447A1
- Status: Published application
- Kind: A1
- Application number: 15/938,789
- Filed: 2018-03-28
- Published: 2019-10-03
- Earliest claimed: 2018-03-28
- Assignees: Wipro Limited
- Applicants: Wipro Limited
- Inventors: Ghulam Mohiuddin Khan; Gopichand Agnihotram
- Web page: https://patentgrep.com/patent/US20190303447A1

## CPC

- G06F 16/93: Document management systems
- G06F 16/24578: {using ranking}
- G06F 16/35: Clustering; Classification
- G06F 16/583: using metadata automatically derived from the content
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 30/412: Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
- G06V 30/416: Extracting the logical structure, e.g. chapters, sections or page numbers; Identifying elements of the document, e.g. authors
- G06V 30/418: Document matching, e.g. of document images
- 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

Disclosed herein is a method and system for identifying type of an input document in real-time. In an embodiment, visual features and keywords of the input document are compared with reference visual features and reference keywords extracted from plurality of predetermined document types for computing a relative similarity score for the input document. Subsequently, one or more best-match document types are identified among the plurality of predetermined document types based on the relative similarity score of the input document. Thereafter, visual features and keywords of the input document are compared with global and local characteristics of the best-match document types for identifying the type of the input document. In an embodiment, the present disclosure helps in recognizing type of a document prior to digitizing the document, and thereby helps in storing the digitized documents in correct formats and appropriate storage directories.

## Claims

### Claim 1

A method for identifying type of a document in real-time, the method comprising:
extracting, by a document identification system (105), one or more visual features (102A) and one or more keywords (103A) from an input document (101);
comparing, by the document identification system (105), each of the one or more visual features (102A) and each of the one or more keywords (103A) with one or more reference visual features (102B) and with one or more reference keywords (103B) associated with a plurality of predetermined document types (109);
computing, by the document identification system (105), a relative similarity score (211) for the input document (101) based on the comparison;
identifying, by the document identification system (105), one or more best-match document types (111), among the plurality of predetermined document types (109), for the input document (101) based on the relative similarity score (211) of the input document (101); and
identifying, by the document identification system (105), the type (117) of the input document (101) by comparing the one or more visual features (102A) and the one or more keywords (103A) extracted from the input document (101) with one or more global characteristics (113) and one or more local characteristics (115) associated with each of the one or more best-match document types (111).

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein the one or more visual features (102A) and the one or more keywords (103A) are extracted from the input document (101) using a predetermined character recognition technique configured in the document identification system (105).

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein the one or more visual features (102A) comprises location and pattern of each of lines, keywords, text boxes, check boxes, box sequences, tables, labels and logos in the input document (101).

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein computing the relative similarity score (211) for the input document (101) comprises:
assigning a visual similarity score for the input document (101) based on comparison of each of the one or more visual features (102A) extracted from the input document (101) with one or more reference visual features (102B) of each of the plurality of predetermined document types (109);
assigning a textual similarity score for the input document (101) based on comparison of each of the one or more keywords (103A) extracted from the input document (101) with one or more reference keywords (103B) associated with each of the plurality of predetermined document types (109); and
aggregating the visual similarity score and the textual similarity score for obtaining the relative similarity score (211) of the input document (101).

### Claim 5 (depends on 4)

The method as claimed in claim 4, wherein the visual similarity score and the textual similarity score for the input document (101) are assigned using a pre-trained multi-class classifier configured in the document identification system (105).

### Claim 6 (depends on 5)

The method as claimed in claim 5, wherein the pre-trained multi-class classifier is trained using one or more visual features (102A) and one or more keywords (103A) extracted from one or more documents filled with contents and one or more non-filled documents of each of the plurality of predetermined document types (109).

### Claim 7 (depends on 1)

The method as claimed in claim 1, wherein the relative similarity score (211) of the input document (101) indicates relative similarity of the input document (101) with each of the plurality of predetermined document types (109).

### Claim 8 (depends on 1)

The method as claimed in claim 1, wherein one or more of the plurality of predetermined document types (109) are identified as the one or more best-match document types (111) when the relative similarity score (211) of the input document (101) is higher than a threshold similarity score.

### Claim 9 (depends on 1)

The method as claimed in claim 1, wherein the one or more global characteristics (113) indicate presence and count of each of lines, keywords, text boxes, check boxes, box sequences, tables, labels and logos in the one or more best-match document types (111).

### Claim 10 (depends on 1)

The method as claimed in claim 1, wherein the one or more local characteristics (115) indicate location and pattern of each of one or more global characteristics (113) in the one or more best-match document types (111).

### Claim 11

A document identification system (105) for identifying type of a document in real-time, the document identification system (105) comprising:
a processor (203); and
a memory (205), communicatively coupled to the processor (203), wherein the memory (205) stores processor-executable instructions, which on execution cause the processor (203) to:
extract one or more visual features (102A) and one or more keywords (103A) from an input document (101);
compare each of the one or more visual features (102A) and each of the one or more keywords (103A) with one or more reference visual features (102B) and with one or more reference keywords (103B) associated with a plurality of predetermined document types (109);
compute a relative similarity score (211) for the input document (101) based on the comparison;
identify one or more best-match document types (111), among the plurality of predetermined document types (109), for the input document (101) based on the relative similarity score (211) of the input document (101); and
identify the type (117) of the input document (101) based on comparison of the one or more visual features (102A) and the one or more keywords (103A) extracted from the input document (101) with one or more global characteristics (113) and one or more local characteristics (115) associated with each of the one or more best-match document types (11).

### Claim 12 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the processor (203) extracts the one or more visual features (102A) and the one or more keywords (103A) from the input document (101) using a predetermined character recognition technique configured in the document identification system (105).

### Claim 13 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the one or more visual features (102A) comprises location and pattern of each of lines, keywords, text boxes, check boxes, box sequences, tables, labels and logos in the input document (101).

### Claim 14 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein to compute the relative similarity score (211) for the input document (101), the processor (203) is configured to:
assign a visual similarity score for the input document (101) based on comparison of each of the one or more visual features (102A) extracted from the input document (101) with one or more reference visual features (102B) of each of the plurality of predetermined document types (109);
assign a textual similarity score for the input document (101) based on comparison of each of the one or more keywords (103A) extracted from the input document (101) with one or more reference keywords (103B) associated with each of the plurality of predetermined document types (109); and
aggregate the visual similarity score and the textual similarity score to obtain the relative similarity score (211) of the input document (101).

### Claim 15 (depends on 14)

The document identification system (105) as claimed in claim 14, wherein the processor (203) assigns the visual similarity score and the textual similarity score for the input document (101) using a pre-trained multi-class classifier configured in the document identification system (105).

### Claim 16 (depends on 15)

The document identification system (105) as claimed in claim 15, wherein the processor (203) trains the pre-trained multi-class classifier using one or more visual features (102A) and one or more keywords (103A) extracted from one or more documents filled with contents, and one or more non-filled documents of each of the plurality of predetermined document types (109).

### Claim 17 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the relative similarity score (211) of the input document (101) indicates relative similarity of the input document (101) with each of the plurality of predetermined document types (109).

### Claim 18 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the processor (203) identifies one or more of the plurality of predetermined document types (109) as the one or more best-match document types (111), when the relative similarity score (211) of the input document (101) is higher than a threshold similarity score.

### Claim 19 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the one or more global characteristics (113) indicate presence and count of each of lines, keywords, text boxes, check boxes, box sequences, tables, labels and logos in the one or more best-match document types (111).

### Claim 20 (depends on 11)

The document identification system (105) as claimed in claim 11, wherein the one or more local characteristics (115) indicate location and pattern of each of one or more global characteristics (113) in the one or more best-match document types (111).

### Claim 21

A non-transitory computer readable medium including instructions stored thereon that when processed by at least one processor (203) cause a document identification system (105) to perform operations comprising:
extracting one or more visual features (102A) and one or more keywords (103A) from an input document (101);
comparing each of the one or more visual features (102A) and each of the one or more keywords (103A) with one or more reference visual features (102B) and with one or more reference keywords (103B) associated with a plurality of predetermined document types (109);
computing a relative similarity score (211) for the input document (101) based on the comparison;
identifying one or more best-match document types (111), among the plurality of predetermined document types (109), for the input document (101) based on the relative similarity score (211) of the input document (101); and
identifying the type (117) of the input document (101) by comparing the one or more visual features (102A) and the one or more keywords (103A) extracted from the input document (101) with one or more global characteristics (113) and one or more local characteristics (115) associated with each of the one or more best-match document types (111).
