# US 2022/0036209 A1 · Unsupervised competition-based encoding

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

- Number: US 2022/0036209 A1
- Document ID: US20220036209A1
- Status: Published application
- Kind: A1
- Application number: 16/941,250
- Filed: 2020-07-28
- Published: 2022-02-03
- Earliest claimed: 2020-07-28
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Yair Horesh; Daniel Ben David; Yehezkel Shraga Resheff
- Web page: https://patentgrep.com/patent/US20220036209A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 20/00: Machine learning
- G06Q 40/12: Accounting
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

A method collects word-based data corresponding to a first identifier. A first phrase vector is generated for the first identifier by extracting frequency data from the word-based data. A similarity metric is generated corresponding to the first identifier and a second identifier by comparing the first phrase vector of the first identifier to a second phrase vector of the second identifier. A tuple is generated that includes the first identifier and the second identifier using the similarity metric. A machine learning model is trained with the tuple to generate an embedded vector corresponding to the first identifier.

## Claims

### Claim 1

A method comprising:
collecting word-based data corresponding to a first identifier;
generating, for the first identifier, a first phrase vector by extracting frequency data from the word-based data;
generating a similarity metric corresponding to the first identifier and a second identifier by comparing the first phrase vector of the first identifier to a second phrase vector of the second identifier;
generating a tuple comprising the first identifier and the second identifier using the similarity metric; and
training a machine learning model with the tuple to generate an embedded vector corresponding to the first identifier.

### Claim 2 (depends on 1)

The method of claim 1, wherein collecting the word-based data comprises:
identifying a rule for the word-based data,
wherein the rule identifies invoice items of a predefined period of time as the word-based data; and
retrieving the word-based data from a repository using the rule.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the first phrase vector comprises:
generating an n-gram from the word-based data;
identifying frequency data comprising a phrase frequency of the n-gram and an inverse record frequency of the n-gram; and
combining the phrase frequency and the inverse record frequency to form a phrase element, the phrase element comprised by the first phrase vector, and the phrase element corresponding to the n-gram.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the similarity metric comprises:
generating the similarity metric as a Jaccard index calculated between the first phrase vector and the second phrase vector.

### Claim 5 (depends on 1)

The method of claim 1, wherein the tuple comprises a similarity value based on whether the similarity metric satisfies a similarity threshold.

### Claim 6 (depends on 1)

The method of claim 1, wherein training the machine learning model comprises:
assigning a first identification vector to the first identifier and a second identification vector to the second identifier;
inputting the first identification vector to the machine learning model to generate an output vector;
comparing the output vector to the second identification vector to update a weight of the machine learning model; and
forming the embedded vector with the weight.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
calculating a financial metric with the cluster of embedded vectors; and
presenting an offer based on a financial ratio.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
calculating a financial ratio with the cluster of embedded vectors; and
presenting an insight based on the financial ratio.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
categorizing the cluster of embedded vectors to form a category identifying a type of business of the cluster and the first identifier, wherein the first identifier was previously in a different cluster and a different category; and
presenting the category.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
adding a category corresponding to the cluster of embedded vectors to a set of categories when an additional category threshold is satisfied;
removing a previous category from the set of categories when a category removal threshold is satisfied; and
presenting the category.

### Claim 11

A system comprising:
a processor;
a memory; and
the memory comprising an application, wherein the application executes on the processor, uses the memory, and is configured for:
collecting word-based data corresponding to a first identifier;
generating, for the first identifier, a first phrase vector by extracting frequency data from the word-based data;
generating a similarity metric corresponding to the first identifier and a second identifier by comparing the first phrase vector of the first identifier to a second phrase vector of the second identifier;
generating a tuple comprising the first identifier and the second identifier using the similarity metric; and
training a machine learning model with the tuple to generate an embedded vector corresponding to the first identifier.

### Claim 12 (depends on 11)

The system of claim 11, wherein collecting the word-based data comprises:
identifying a rule for the word-based data,
wherein the rule identifies invoice items of a predefined period of time as the word-based data; and
retrieving the word-based data from a repository using the rule.

### Claim 13 (depends on 11)

The system of claim 11, wherein generating the first phrase vector comprises:
generating an n-gram from the word-based data;
identifying frequency data comprising a phrase frequency of the n-gram and an inverse record frequency of the n-gram; and
combining the phrase frequency and the inverse record frequency to form a phrase element, the phrase element comprised by the first phrase vector, and the phrase element corresponding to n-gram.

### Claim 14 (depends on 11)

The system of claim 11, wherein generating the similarity metric comprises:
generating the similarity metric as a Jaccard index calculated between the first phrase vector and the second phrase vector.

### Claim 15 (depends on 11)

The system of claim 11, wherein the tuple comprises a similarity value based on whether the similarity metric satisfies a similarity threshold.

### Claim 16 (depends on 11)

The system of claim 11, wherein training the machine learning model comprises:
assigning a first identification vector to the first identifier and a second identification vector to the second identifier;
inputting the first identification vector to the machine learning model to generate an output vector;
comparing the output vector to the second identification vector to update a weight of the machine learning model; and
forming the embedded vector with the weight.

### Claim 17 (depends on 11)

The system of claim 11, wherein the application is further configured for:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
calculating a financial metric with the cluster of embedded vectors; and
presenting an offer based on a financial ratio.

### Claim 18 (depends on 11)

The system of claim 11, wherein the application is further configured for:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
calculating a financial ratio with the cluster of embedded vectors; and
presenting an insight based on the financial ratio.

### Claim 19 (depends on 11)

The system of claim 11, wherein the application is further configured for:
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
categorizing the cluster of embedded vectors to form a category identifying a type of business of the cluster and the first identifier, wherein the first identifier was previously in a different cluster and a different category; and
presenting the category.

### Claim 20

A method comprising:
collecting word-based data corresponding to a first identifier;
generating, for the first identifier, a first phrase vector by extracting frequency data from the word-based data;
generating a tuple comprising the first identifier and a second identifier using the first phrase vector;
training a machine learning model with the tuple to generate an embedded vector corresponding to the first identifier;
clustering a set of embedded vectors to generate a cluster of embedded vectors including the embedded vector;
adding a category corresponding to the cluster of embedded vectors to a set of categories when an additional category threshold is satisfied; and
removing a previous category from the set of categories when a category removal threshold is satisfied.
