# US 2022/0292803 A1 · Systems and methods for stamp detection and classification

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

- Number: US 2022/0292803 A1
- Document ID: US20220292803A1
- Status: Published application
- Kind: A1
- Application number: 17/831,317
- Filed: 2022-06-02
- Published: 2022-09-15
- Earliest claimed: 2020-08-11
- Assignees: Nationstar Mortgage LLC, d/b/a/ Mr. Cooper
- Applicants: Nationstar Mortgage LLC, d/b/a/ Mr. Cooper
- Inventors: Won Lee; Goutam Venkatesh; Ankit Kumar Sinha; Sudhir Sundararam
- Web page: https://patentgrep.com/patent/US20220292803A1

## CPC

- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/82: using neural networks
- G06F 18/24: Classification techniques
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06N 3/096: Transfer learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N 20/20: Ensemble learning
- G06V 10/817: {by voting}
- G06V 30/153: {using recognition of characters or words}
- G06V 30/41: Analysis of document content (recognition of printed characters based on code marks G06V30/224)
- G06V 30/10: Character recognition
- 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

In some aspects, the disclosure is directed to methods and systems for detection and classification of stamps in documents. The system can receive image data and textual data of a document. The system can pre-process and filter that data, and covert the textual data to a term frequency inverse document frequency (TF-IDF) vector. The system can detect the presence of a stamp on the document. The system can extract a subset of the image data including the stamp. The system can extract text from the subset of the image data. The system can classify the stamp using the extracted text, the image data, and the TF-IDF vector. The system can store the classification in a database.

## Claims

### Claim 1

A method for stamp detection and classification, comprising:
receiving, by a computing device, textual data of a document and image data comprising a capture of the document;
detecting, by the computing device via a trained neural network from the textual data and image data, a presence of a stamp on the document;
responsive to detection of the presence of the stamp, extracting, by the computing device, a subset of the image data comprising the stamp;
extracting, by the computing device via optical character recognition, text from the subset of the image data; and
storing, by the computing device in a database, the subset of the image data comprising the stamp, the extracted text from the subset of the image data, and an identification of a classification of the stamp.

### Claim 2 (depends on 1)

The method of claim 1, further comprising converting, by the computing device, the image data to grayscale.

### Claim 3 (depends on 1)

The method of claim 1, further comprising downscaling, by the computing device, the grayscale image data to a predetermined size.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
filtering, by the computing device, the textual data to remove predetermined characters; and
converting, by the computing device, the textual data to a term frequency-inverse document frequency (TF-IDF) vector.

### Claim 5 (depends on 4)

The method of claim 4, wherein filtering the textual data further comprises applying a regular expression filter to the textual data.

### Claim 6 (depends on 4)

The method of claim 4, wherein filtering the textual data further comprises standardizing, by the computing device, at least one word of the textual data according to a predefined dictionary.

### Claim 7 (depends on 4)

The method of claim 4, wherein the TF-IDF vector is used as an input to the trained neural network.

### Claim 8 (depends on 1)

The method of claim 1, wherein the trained neural network comprises a weighted ensemble model.

### Claim 9 (depends on 1)

The method of claim 1, further comprising classifying the stamp according to a ridge regression model.

### Claim 10 (depends on 1)

The method of claim 1, further comprising classifying the stamp as corresponding to one of a predetermined plurality of classifications.

### Claim 11

A system configured for stamp detection and classification, the system comprising:
a computing device comprising one or more processors and a memory, configured to:
receive textual data of a document and image data comprising a capture of the document,
detect, via a trained neural network from the textual data and image data, a presence of a stamp on the document,
responsive to detection of the presence of the stamp, extract a subset of the image data comprising the stamp,
extract, via optical character recognition, text from the subset of the image data, and
storing, in a database, the subset of the image data comprising the stamp, the extracted text from the subset of the image data, and an identification of a classification of the stamp.

### Claim 12 (depends on 11)

The system of claim 11, wherein the computing device is further configured to convert the image data to grayscale.

### Claim 13 (depends on 11)

The system of claim 11, wherein the computing device is further configured to downscale the grayscale image data to a predetermined size.

### Claim 14 (depends on 11)

The system of claim 11, wherein the computing device is further configured to:
filtering the textual data to remove predetermined characters; and
convert the textual data to a term frequency-inverse document frequency (TF-IDF) vector.

### Claim 15 (depends on 14)

The system of claim 14, wherein the computing device is further configured to apply a regular expression filter to the textual data.

### Claim 16 (depends on 14)

The system of claim 14, wherein the computing device is further configured to standardize at least one word of the textual data according to a predefined dictionary.

### Claim 17 (depends on 14)

The system of claim 14, wherein the TF-IDF vector is used as an input to the trained neural network.

### Claim 18 (depends on 11)

The system of claim 11, wherein the trained neural network comprises a weighted ensemble model.

### Claim 19 (depends on 11)

The system of claim 11, wherein the computing device is further configured to classify the stamp according to a ridge regression model.

### Claim 20 (depends on 11)

The system of claim 11, wherein the computing device is further configured to classify the stamp as corresponding to one of a predetermined plurality of classifications.
