# US 2023/0274092 A1 · Descriptive Topic Modeling with LDA on Bags of Utterance Clusters

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

- Number: US 2023/0274092 A1
- Document ID: US20230274092A1
- Status: Published application
- Kind: A1
- Application number: 17/682,368
- Filed: 2022-02-28
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Accenture Global Solutions Limited
- Applicants: Accenture Global Solutions Limited
- Inventors: Javier Miguel SASTRE MARTINEZ; Sean GORMAN; Aisling NUGENT; Anandita PAL
- Web page: https://patentgrep.com/patent/US20230274092A1

## CPC

- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06F 18/23213: with fixed number of clusters, e.g. K-means clustering
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06F 40/216: using statistical methods
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a system, a method, and a product for intent discovery. The system includes a processor in communication with a memory storing instructions. When the processor executes the instructions, the instructions are configured to cause the processor to: obtain documents comprising a set of utterances, extract the set of utterances from the documents, generate a set of utterance embeddings based on the set of utterances, clusterize the set of utterance embeddings to obtain a plurality of clusters, obtain a cluster label for each cluster, encode each document based on a number of times each utterance cluster identifier (ID) appears to obtain an encoded document, perform latent Dirichlet allocation (LDA) on the encoded documents to obtain K topics, and each topic corresponding to a list of key clusters with cluster IDs, and for each topic, replace the cluster IDs with the cluster labels.

## Claims

### Claim 1

A system for intent discovery, the system comprising:
a memory storing instructions; and
a processor in communication with the memory, wherein, when the processor executes the instructions, the instructions are configured to cause the processor to:
obtain documents comprising a set of utterances,
extract the set of utterances from the documents,
generate a set of utterance embeddings based on the set of utterances,
clusterize the set of utterance embeddings to obtain a plurality of clusters, each cluster comprising one or more utterance embeddings,
obtain a cluster label for each cluster,
for each cluster, encode each document based on a number of times each utterance cluster identifier (ID) appears to obtain an encoded document, the encoded document comprising at least one cluster ID with a weight,
perform latent Dirichlet allocation (LDA) on the encoded documents to obtain K topics, K being a positive integer, and each topic corresponding to a list of key clusters with cluster IDs, and
for each topic, replace the cluster IDs with the cluster labels.

### Claim 2 (depends on 1)

The system of claim 1, wherein, when the instructions are configured to cause the processor to generate the set of utterance embeddings based on the set of utterances, the instructions are configured to cause the processor to:
generate the set of utterance embeddings based on the set of utterances with a neural network sentence encoder comprising one of the following models:
a sentence bidirectional encoder representation from transformers (SBERT) sentence encoder,
a universal sentence encoder (USE), or
a multilingual universal sentence encoder (MUSE).

### Claim 3 (depends on 1)

The system of claim 1, wherein, when the instructions are configured to cause the processor to clusterize the set of utterance embeddings to obtain the plurality of clusters, the instructions are configured to cause the processor to:
clusterize, based on a first hyperparameter and a second hyperparameter, the set of utterance embeddings to obtain the plurality of clusters, the first hyperparameter indicating a minimum number of utterance embeddings in any cluster, the second hyperparameter indicating a maximum distance between any neighboring pair of utterance embeddings in any cluster.

### Claim 4 (depends on 1)

The system of claim 1, wherein, when the instructions are configured to cause the processor to clusterize the set of utterance embeddings to obtain the plurality of clusters, the instructions are configured to cause the processor to:
clusterize the set of utterance embeddings to obtain the plurality of clusters with a clustering algorithm of density-based spatial clustering of applications with noise (DBSCAN).

### Claim 5 (depends on 1)

The system of claim 1, wherein, when the instructions are configured to cause the processor to clusterize the set of utterance embeddings to obtain the plurality of clusters, the instructions are configured to cause the processor to:
partition the set of utterance embeddings into a plurality of subsets of utterance embeddings,
for each subset, clusterize the subset of utterance embeddings to obtain a subset of clusters, and
combine all subsets of clusters to form the plurality of clusters.

### Claim 6 (depends on 1)

The system of claim 1, wherein, when the instructions are configured to cause the processor to obtain the cluster label for each cluster, the instructions are configured to cause the processor to:
for each cluster:
calculate a center in an embedding space for all utterance embeddings in the cluster,
select a central utterance embedding in the cluster, the central utterance embedding being a closest utterance embedding to the center among all utterance embeddings in the cluster, and
obtain an utterance corresponding to the central utterance embedding as the cluster label.

### Claim 7 (depends on 1)

The system of claim 1, wherein:
the number of times each utterance in the cluster appearing in the documents is used to calculate a term frequency of a cluster ID corresponding to the utterance and an inverse document frequency of the cluster ID corresponding to the utterance.

### Claim 8 (depends on 1)

The system of claim 1, wherein, when the processor executes the instructions, the instructions are configured to further cause the processor to:
determine a value of the K using an exponential decay method.

### Claim 9

A method for intent discovery, the method comprising:
obtaining, by a device comprising a memory storing instructions and a processor in communication with the memory, documents comprising a set of utterances,
extracting, by the device, the set of utterances from the documents,
generating, by the device, a set of utterance embeddings based on the set of utterances,
clusterizing, by the device, the set of utterance embeddings to obtain a plurality of clusters, each cluster comprising one or more utterance embeddings,
obtaining, by the device, a cluster label for each cluster,
for each cluster, encoding, by the device, each document based on a number of times each utterance cluster identifier (ID) appears to obtain an encoded document, the encoded document comprising at least one cluster ID with a weight,
performing, by the device, latent Dirichlet allocation (LDA) on the encoded documents to obtain K topics, K being a positive integer, and each topic corresponding to a list of key clusters with cluster IDs, and
for each topic, replacing, by the device, the cluster IDs with the cluster labels.

### Claim 10 (depends on 9)

The method of claim 9, wherein the generating the set of utterance embeddings based on the set of utterances comprises:
generating the set of utterance embeddings based on the set of utterances with a neural network sentence encoder comprising one of the following models:
a sentence bidirectional encoder representation from transformers (SBERT) sentence encoder,
a universal sentence encoder (USE), or
a multilingual universal sentence encoder (MUSE).

### Claim 11 (depends on 9)

The method of claim 9, wherein the clusterizing the set of utterance embeddings to obtain the plurality of clusters comprises:
clusterizing, based on a first hyperparameter and a second hyperparameter, the set of utterance embeddings to obtain the plurality of clusters, the first hyperparameter indicating a minimum number of utterance embeddings in any cluster, the second hyperparameter indicating a maximum distance between any neighboring pair of utterance embeddings in any cluster.

### Claim 12 (depends on 9)

The method of claim 9, wherein the clusterizing the set of utterance embeddings to obtain the plurality of clusters comprises:
clusterizing the set of utterance embeddings to obtain the plurality of clusters with a clustering algorithm of density-based spatial clustering of applications with noise (DBSCAN).

### Claim 13 (depends on 9)

The method of claim 9, wherein the clusterizing the set of utterance embeddings to obtain the plurality of clusters comprises:
partitioning the set of utterance embeddings into a plurality of subsets of utterance embeddings,
for each subset, clusterizing the subset of utterance embeddings to obtain a subset of clusters, and
combining all subsets of clusters to form the plurality of clusters.

### Claim 14 (depends on 9)

The method of claim 9, wherein the obtaining the cluster label to each cluster comprises:
for each cluster:
calculating a center in an embedding space for all utterance embeddings in the cluster,
selecting a central utterance embedding in the cluster, the central utterance embedding being a closest utterance embedding to the center among all utterance embeddings in the cluster, and
obtaining an utterance corresponding to the central utterance embedding as the cluster label.

### Claim 15 (depends on 9)

The method of claim 9, wherein:
the number of times each utterance in the cluster appearing in the documents is used to calculate a term frequency of a cluster ID corresponding to the utterance and an inverse document frequency of the cluster ID corresponding to the utterance.

### Claim 16 (depends on 9)

The method of claim 9, further comprising:
determining a value of the K using an exponential decay method.

### Claim 17

A product for intent discovery, the product comprising:
machine-readable media other than a transitory signal; and
instructions stored on the machine-readable media, wherein when a processor executes the instructions, the processor is configured to:
obtain documents comprising a set of utterances,
extract the set of utterances from the documents,
generate a set of utterance embeddings based on the set of utterances,
clusterize the set of utterance embeddings to obtain a plurality of clusters, each cluster comprising one or more utterance embeddings,
obtain a cluster label for each cluster,
for each cluster, encode each document based on a number of times each utterance cluster identifier (ID) appears to obtain an encoded document, the encoded document comprising at least one cluster ID with a weight,
perform latent Dirichlet allocation (LDA) on the encoded documents to obtain K topics, K being a positive integer, and each topic corresponding to a list of key clusters with cluster IDs, and
for each topic, replace the cluster IDs with the cluster labels.

### Claim 18 (depends on 17)

The product of claim 17, wherein, when the instructions are configured to cause the processor to generate the set of utterance embeddings based on the set of utterances, the instructions are configured to cause the processor to:
generate the set of utterance embeddings based on the set of utterances with a neural network sentence encoder comprising one of the following models:
a sentence bidirectional encoder representation from transformers (SBERT) sentence encoder,
a universal sentence encoder (USE), or
a multilingual universal sentence encoder (MUSE).

### Claim 19 (depends on 17)

The product of claim 17, wherein, when the instructions are configured to cause the processor to clusterize the set of utterance embeddings to obtain the plurality of clusters, the instructions are configured to cause the processor to:
clusterize, based on a first hyperparameter and a second hyperparameter, the set of utterance embeddings to obtain the plurality of clusters, the first hyperparameter indicating a minimum number of utterance embeddings in any cluster, the second hyperparameter indicating a maximum distance between any neighboring pair of utterance embeddings in any cluster.

### Claim 20 (depends on 17)

The product of claim 17, wherein, when the instructions are configured to cause the processor to clusterize the set of utterance embeddings to obtain the plurality of clusters, the instructions are configured to cause the processor to:
partition the set of utterance embeddings into a plurality of subsets of utterance embeddings,
for each subset, clusterize the subset of utterance embeddings to obtain a subset of clusters, and
combine all subsets of clusters to form the plurality of clusters.
