# US 2025/0148473 A1 · Embedding service for unstructured data

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

- Number: US 2025/0148473 A1
- Document ID: US20250148473A1
- Status: Published application
- Kind: A1
- Application number: 19/015,592
- Filed: 2025-01-09
- Published: 2025-05-08
- Earliest claimed: 2021-07-30
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Runhua ZHAO; Vinay PATLOLLA; Nikolas TERANI; Taylor J. CRESSY; Henry VENTURELLI
- Web page: https://patentgrep.com/patent/US20250148473A1

## CPC

- G06Q 20/4016: {involving fraud or risk level assessment in transaction processing}
- G06F 16/3347: {using vector based model}
- G06F 16/338: Presentation of query results
- G06F 16/353: into predefined classes
- G06N 20/00: Machine learning
- 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
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method includes receiving an untransformed transaction including unstructured data. An embedding model generates a vector from the unstructured data. A cluster model matches the vector to a vector cluster. A cluster ID is assigned to the vector. The unstructured data in the untransformed transaction is replaced with the cluster ID to obtain a transformed transaction. A query including the cluster ID and based on the transformed transaction is generated. The query is processed to generate a query result from features of prior transformed transactions. A fraud determination model processes the query result to generate a fraud score for the transformed transaction. The fraud score is presented to a user of a software application. The cluster model is updated to add or delete or modify vector clusters to generate cluster IDs, whereby generating the set of cluster IDs does not affect an input or output of the fraud determination model.

## Claims

### Claim 1

A method, comprising:
receiving a transaction record comprising an untransformed transaction including a first unstructured data;
generating, by a first embedding model corresponding to the first unstructured data, a first vector from the first unstructured data;
matching, by a first cluster model corresponding to the first unstructured data, the first vector to a first vector cluster;
responsive to matching the first vector to the first vector cluster, assigning a first cluster ID corresponding to the first vector cluster to the first vector, wherein the first cluster ID identifies the first vector cluster;
replacing the first unstructured data in the untransformed transaction with the first cluster ID to obtain a transformed transaction;
generating a first query including the first cluster ID and based on the transformed transaction;
processing the first query to generate a query result from a plurality of features of a plurality of prior transformed transactions;
processing, by a fraud determination model, the query result to generate a fraud score for the transformed transaction;
presenting the fraud score and the first cluster ID to a user of a software application; and
updating the first cluster model to add or delete or modify vector clusters to generate a set of cluster IDs, whereby generating the set of cluster IDs does not affect an input or output of the fraud determination model.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating a plurality of features from a plurality of prior transformed transactions, the plurality of features comprising cluster-derived features including cluster IDs of the plurality of prior transformed transactions; and
training the fraud determination model on the cluster-derived features and non-cluster derived features of the plurality of features of the plurality of prior transformed transactions, to generate the fraud score indicating a probability that the transformed transaction is fraudulent.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
deriving, from the plurality of prior transformed transactions and using a second query, a cluster-derived feature, wherein the second query comprises at least one cluster ID; and
deriving, from the plurality of prior transformed transactions and using a third query, a raw feature, wherein the third query excludes cluster IDs,
wherein the plurality of features of the plurality of prior transformed transactions comprise the cluster-derived feature and the raw feature.

### Claim 4 (depends on 1)

The method of claim 1, wherein a plurality of untransformed transactions comprises a plurality of unstructured data, and wherein transforming the plurality of untransformed transactions to the plurality of prior transformed transactions comprises:
generating a plurality of vectors from the plurality of unstructured data of the plurality of untransformed transactions;
assigning, for the plurality of vectors, a plurality of matching cluster IDs by matching respective vectors of the plurality of vectors with respective matching vector clusters; and
replacing the plurality of unstructured data of the plurality of untransformed transactions with the plurality of matching cluster IDs.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
generating a second vector from unstructured data included in another untransformed transaction;
obtaining a subset of a plurality of untransformed transactions satisfying a filter criterion;
generating a plurality of vectors from a plurality of unstructured data of the subset of the plurality of untransformed transactions;
generating a plurality of similarity scores between the second vector and the plurality of vectors;
generating another fraud score using the plurality of similarity scores; and
determining, using the another fraud score, that the another untransformed transaction is fraudulent.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the first cluster ID is based on vectors within a threshold distance of a centroid of the first vector cluster,
the centroid represents an average of the vectors in the first vector cluster,
wherein the first cluster ID is expressed in a fixed format comprising an integer or alphanumeric string, and
the first cluster model is trained to cluster vectors from the first unstructured data.

### Claim 7 (depends on 1)

The method of claim 1, wherein a plurality of embedding models are trained to convert untransformed transactions in training data to vectors corresponding to a plurality of n-grams.

### Claim 8 (depends on 1)

The method of claim 1, wherein updating the first cluster model comprises generating a new cluster model.

### Claim 9

A system, comprising:
at least one processor,
a plurality of embedding models corresponding to a plurality of unstructured data,
a plurality of cluster models corresponding to the plurality of unstructured data;
a transaction transformer,
a query generator, and a fraud determination model,
and configured for:
receiving a transaction record comprising an untransformed transaction including a first unstructured data of the plurality of unstructured data;
generating, by a first embedding model of the plurality of embedding models corresponding to the first unstructured data, a first vector from the first unstructured data;
matching, by a first cluster model of the plurality of cluster models corresponding to the first unstructured data, the first vector to a first vector cluster;
responsive to matching the first vector to the first vector cluster, assigning a first cluster ID corresponding to the first vector cluster to the first vector, wherein the first cluster ID identifies the first vector cluster;
replacing, by the transaction transformer, the first unstructured data in the untransformed transaction with the first cluster ID to obtain a transformed transaction;
generating, by the query generator, a first query including the first cluster ID and based on the transformed transaction;
processing the first query to generate a query result from a plurality of features of a plurality of prior transformed transactions;
processing, by the fraud determination model, the query result to generate a fraud score for the transformed transaction;
presenting the fraud score and the first cluster ID to a user of a software application; and
updating the first cluster model to add or delete or modify vector clusters to generate a set of cluster IDs, whereby generating the set of cluster IDs does not affect an input or output of the fraud determination model.

### Claim 10 (depends on 9)

The system of claim 9, wherein updating the first cluster model comprises generating a new cluster model.

### Claim 11 (depends on 9)

The system of claim 9, further configured for:
generating a plurality of features from a plurality of prior transformed transactions, the plurality of features comprising cluster-derived features including cluster IDs of the plurality of prior transformed transactions; and
training the fraud determination model on the cluster-derived features and non-cluster derived features of the plurality of features of the plurality of prior transformed transactions, to generate the fraud score indicating a probability that the transformed transaction is fraudulent.

### Claim 12 (depends on 9)

The system of claim 9, further configured for:
deriving, from the plurality of prior transformed transactions and using a second query, a cluster-derived feature, wherein the second query comprises at least one cluster ID, and
deriving, from the plurality of prior transformed transactions and using a third query, a raw feature, wherein the third query excludes cluster IDs,
wherein the plurality of features of the plurality of prior transformed transactions comprise the cluster-derived feature and the raw feature.

### Claim 13 (depends on 9)

The system of claim 9, wherein a plurality of untransformed transactions comprise a plurality of unstructured data, and wherein transforming the plurality of untransformed transactions to a plurality of transformed transactions comprises:
generating a plurality of vectors from the plurality of unstructured data;
assigning, for the plurality of vectors, a plurality of matching cluster IDs by matching respective vectors of the plurality of vectors with respective matching vectors clusters; and
replacing, by the transaction transformer, the plurality of unstructured data of the plurality of untransformed transactions with the plurality of matching cluster IDs.

### Claim 14 (depends on 9)

The system of claim 9, further configured for:
generating a second vector from unstructured data included in another untransformed transaction;
obtaining a subset of a plurality of untransformed transactions satisfying a filter criterion;
generating a plurality of vectors from a plurality of unstructured data of the subset of the plurality of untransformed transactions;
generating a plurality of similarity scores between the second vector and the plurality of vectors;
generating another fraud score using the plurality of similarity scores; and
determining, using the another fraud score, that the another untransformed transaction is fraudulent.

### Claim 15 (depends on 9)

The system of claim 9, wherein:
the first cluster ID is based on vectors within a threshold distance of a centroid of the first vector cluster,
the centroid represents an average of the vectors in the first vector cluster,
wherein the first cluster ID is expressed in a fixed format comprising an integer or alphanumeric string, and
the first cluster model is trained to cluster vectors from the first unstructured data.

### Claim 16 (depends on 9)

The system of claim 9, wherein the plurality of embedding models are trained to convert untransformed transactions in training data to vectors corresponding to a plurality of n-grams.

### Claim 17

A method comprising:
sending an untransformed transaction including a first unstructured data to an online fraud determination service including a fraud determination model, a first embedding model corresponding to the first unstructured data, a first cluster model corresponding to the first unstructured data, a query generator, and a transaction transformer;
performing, by the online fraud determination service, operations comprising:
generating, by the first embedding model, a first vector from the first unstructured data,
matching, by the first cluster model, the first vector to a first vector cluster,
responsive to matching the first vector to the first vector cluster, assigning a first cluster ID corresponding to the first vector cluster to the first vector, wherein the first cluster ID identifies the first vector cluster,
replacing, by the transaction transformer, the first unstructured data in the untransformed transaction with the first cluster ID to obtain a transformed transaction,
generating, by the query generator, a first query including the first cluster ID and based on the transformed transaction,
processing the first query to generate a query result from a plurality of features of a plurality of prior transformed transactions,
processing, by the fraud determination model, the query result to generate a fraud score for the transformed transaction,
presenting the fraud score and the first cluster ID to a user of a software application,
transmitting the fraud score, and
updating the first cluster model to add or delete or modify vector clusters to generate a set of cluster IDs, whereby generating the set of cluster IDs does not affect an input or output of the fraud determination model; and
receiving, from the online fraud determination service, the fraud score.

### Claim 18 (depends on 17)

The method of claim 17, wherein updating the first cluster model comprises generating a new cluster model.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
generating a plurality of features from a plurality of prior transformed transactions, the plurality of features comprising cluster-derived features including cluster IDs of the plurality of prior transformed transactions; and
training the fraud determination model on the cluster-derived features and non-cluster derived features of the plurality of features of the plurality of prior transformed transactions, to generate the fraud score indicating a probability that the transformed transaction is fraudulent.

### Claim 20 (depends on 17)

The method of claim 17, wherein the online fraud determination service is further configured to perform:
deriving, from the plurality of prior transformed transactions and using a second query, a cluster-derived feature, wherein the second query comprises a cluster ID, and
deriving, from the plurality of prior transformed transactions and using a third query, a raw feature, wherein the third query excludes cluster IDs,
wherein the plurality of features of the plurality of prior transformed transactions comprise the cluster-derived feature and the raw feature.
