# US 2020/0151253 A1 · Intent discovery with a prototype classifier

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

- Number: US 2020/0151253 A1
- Document ID: US20200151253A1
- Status: Published application
- Kind: A1
- Application number: 16/189,584
- Filed: 2018-11-13
- Published: 2020-05-14
- Earliest claimed: 2018-11-13
- Assignees: Asapp, Inc.
- Applicants: Asapp, Inc.
- Inventors: Jeremy Elliot Azriel Wohlwend; Ethan Russell Elenberg; Samuel Andrew Altschul; Michael Griffiths
- Web page: https://patentgrep.com/patent/US20200151253A1

## CPC

- G06Q 30/016: After-sales
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- 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/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G05B 2219/23002: Petrinet
- G06N 3/045: Combinations of networks
- 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
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

In some applications, it may be desired to process a message to determine an intent of the message, where the intent indicates the meaning of the message. An intent classifier may be used to determine the meaning of a message by processing the message to compute a message embedding vector that represents the message in a vector space. Each possible intent may be represented by a prototype vector, and the intent of the message may be determined by comparing the message embedding to one or more prototype vectors, such as by selecting an intent whose prototype vector is closest to the message embedding. An intent classifier may be used, for example, (i) to implement an automated communications system with states where each state is associated with a subset of the possible intents or (ii) for processing usage data of a communications system to update the intents of the communications system.

## Claims

### Claim 1

A computer-implemented method for updating intents of a communications system, the method comprising:
deploying the communications system, comprising a neural network and a first plurality of prototype vectors for communicating with users, wherein:
each prototype vector corresponds an intent of a first plurality of intents, and
the communications system is configured to (i) process a message with the neural network to compute a message embedding that represents a meaning of the message and (ii) determine an intent of the message by comparing the message embedding with one or more of the first plurality of prototype vectors;
collecting usage data from the deployed communications system, wherein the usage data comprises a plurality of message embeddings computed by processing messages from users with the neural network;
clustering the plurality of message embeddings into a plurality of clusters;
determining to create a new intent using a first cluster of the plurality of clusters;
computing a new prototype vector for the new intent by combining message embeddings of the first cluster; and
deploying an updated communications system using the neural network and a second plurality of prototype vectors, wherein the second plurality of prototype vectors comprises at least a majority of the first plurality of prototype vectors and the new prototype vector.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein determining to create the new intent comprises:
processing the plurality of clusters to determine that (i) the first cluster is at least a threshold distance from each prototype vector of the first plurality of prototype vectors, and (ii) a density of the first cluster exceeds a density threshold.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the density of the first cluster is computed using an average distance of the message embeddings to a center of the first cluster.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein computing the new prototype vector comprises computing an average of message embeddings of the first cluster.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein determining to create the new intent comprises:
processing the plurality of clusters to determine to create the new intent by splitting a first intent of the first plurality of intents into the new intent and a second new intent.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein processing the plurality of clusters to determine to create the new intent comprises:
determining that the first cluster is within a threshold distance of a first prototype vector of the first intent;
determining that a second cluster is within the threshold distance of the first prototype vector;
computing a second new prototype vector for the second new intent by combining message embeddings of the second cluster; and
wherein the second plurality of prototype vectors comprises the second new prototype vector.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, comprising determining to merge a second intent and a third intent into a fourth intent, wherein the second plurality of prototype vectors comprises a fourth prototype vector for the fourth intent, does not comprise a second prototype vector for the second intent, and does not comprise a third prototype vector for the third intent.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, comprising:
determining that a second cluster is within a threshold distance of the second prototype vector; and
determining that the second cluster is within the threshold distance of the third prototype vector.

### Claim 9

A system for updating intents of a communications system, the system comprising:
at least one server computer comprising at least one processor and at least one memory, the at least one server computer configured to:
deploy the communications system, comprising a neural network and a first plurality of prototype vectors for communicating with users, wherein:
each prototype vector corresponds an intent of a first plurality of intents, and
the communications system is configured to (i) process a message with the neural network to compute a message embedding that represents a meaning of the message and (ii) determine an intent of the message by comparing the message embedding with one or more of the first plurality of prototype vectors;
collect usage data from the deployed communications system, wherein the usage data comprises a plurality of message embeddings computed by processing messages from users with the neural network;
cluster the plurality of message embeddings into a plurality of clusters;
determine to create a new intent using a first cluster of the plurality of clusters;
compute a new prototype vector for the new intent by combining message embeddings of the first cluster; and
deploy an updated communications system using the neural network and a second plurality of prototype vectors, wherein the second plurality of prototype vectors comprises at least a majority of the first plurality of prototype vectors and the new prototype vector.

### Claim 10 (depends on 9)

The system of claim 9, wherein the system is implemented by a company for providing customer support to its customers.

### Claim 11 (depends on 9)

The system of claim 9, wherein the system is implemented by a third-party company for providing customer support to customers of a company.

### Claim 12 (depends on 9)

The system of claim 9, wherein the at least one server computer is configured to determine to create the new intent by:
presenting a representation of the usage data to a person; and
receiving an input from the person to create the new intent using the first cluster.

### Claim 13 (depends on 12)

The system of claim 12, wherein presenting the representation of the usage data to the person comprises:
computing a second plurality of message embeddings from the plurality of message embeddings, where a dimension of the second plurality of message embeddings is smaller than a dimension of the plurality of message embeddings; and
presenting the second plurality of message embeddings to the person.

### Claim 14 (depends on 13)

The system of claim 13, wherein computing the second plurality of message embeddings comprises using stochastic neighbor embedding.

### Claim 15 (depends on 9)

The system of claim 9, wherein the at least one server computer is configured to compute the new prototype vector by computing an average of message embeddings of the first cluster.

### Claim 16 (depends on 9)

The system of claim 9, wherein the at least one server computer is configured to:
receive an input from a user to create a second new intent using one or more example messages corresponding to the second new intent;
compute a second new prototype vector for the second new intent by combining message embeddings of the one or more example messages; and
wherein the second plurality of prototype vectors comprises the second new prototype vector.

### Claim 17 (depends on 9)

The system of claim 9, wherein the at least one server computer is configured to:
train a second neural network;
compute a third plurality of prototype vectors using message embeddings computed using the second neural network; and
deploy the second neural network and the third plurality of prototype vectors for communicating with the users.

### Claim 18

One or more non-transitory, computer-readable media comprising computer-executable instructions that, when executed, cause at least one processor to perform actions comprising:
deploying a communications system, comprising a neural network and a first plurality of prototype vectors for communicating with users, wherein:
each prototype vector corresponds an intent of a first plurality of intents, and
the communications system is configured to (i) process a message with the neural network to compute a message embedding that represents a meaning of the message and (ii) determine an intent of the message by comparing the message embedding with one or more of the first plurality of prototype vectors;
collecting usage data from the deployed communications system, wherein the usage data comprises a plurality of message embeddings computed by processing messages from users with the neural network;
clustering the plurality of message embeddings into a plurality of clusters;
determining to create a new intent using a first cluster of the plurality of clusters;
computing a new prototype vector for the new intent by combining message embeddings of the first cluster; and
deploying an updated communications system using the neural network and a second plurality of prototype vectors, wherein the second plurality of prototype vectors comprises at least a majority of the first plurality of prototype vectors and the new prototype vector.

### Claim 19 (depends on 18)

The one or more non-transitory, computer-readable media of claim 18, wherein the actions comprise determining to discard a second intent, wherein the second plurality of prototype vectors does not comprise a prototype vector for the second intent.

### Claim 20 (depends on 19)

The one or more non-transitory, computer-readable media of claim 19, wherein the actions comprise:
determining a number of message embeddings from the usage data classified as corresponding to the second intent; and
comparing the number of message embeddings to a threshold.
