# US 2021/0083994 A1 · Detecting unrelated utterances in a chatbot system

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

- Number: US 2021/0083994 A1
- Document ID: US20210083994A1
- Status: Published application
- Kind: A1
- Application number: 17/017,076
- Filed: 2020-09-10
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Crystal C. Pan; Gautam Singaraju; Vishal Vishnoi; Srinivasa Phani Kumar Gadde
- Web page: https://patentgrep.com/patent/US20210083994A1

## CPC

- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 18/23213: with fixed number of clusters, e.g. K-means clustering
- G06F 18/24: Classification techniques
- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06N 20/00: Machine learning
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- 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)

## Abstract

Techniques are described to determine whether an input utterance is unrelated to a set of skill bots associated with a master bot. In some embodiments, a system described herein includes a training system and a master bot. The training system trains a classifier of the master bot. The training includes accessing training utterances associated with the skill bots and generating training feature vectors from the training utterances. The training further includes generating multiple set representations of the training feature vectors, where each set representation corresponds to a subset of the training feature vectors, and configuring the classifier with the set representations. The master bot accesses an input utterance and generates an input feature vector. The master bot uses the classifier to compare the input feature vector to the multiple set representations so as to determine whether the input feature falls outside and, thus, cannot be handled by the skill bots.

## Claims

### Claim 1

A system comprising:
a training system configured to train a classifier model, wherein training the classifier model comprises:
accessing training utterances associated with skill bots, the training utterances comprising respective training utterances associated with each skill bot of the skill bots, wherein each skill bot of the skill bots is configured to provide a dialog with a user;
generating training feature vectors from the training utterances, the training feature vectors comprising respective training feature vectors associated with each skill bot of the skill bots;
generating multiple set representations of the training feature vectors, wherein each set representation of the multiple set representations corresponds to a subset of the training feature vectors; and
configuring the classifier model to compare input feature vectors to the multiple set representations of the training feature vectors; and
a master bot configured to perform operations comprising:
accessing an input utterance as a user input;
generating an input feature vector from the input utterance;
comparing, using the classifier model, the input feature vector to the multiple set representations of the training feature vectors;
outputting an indication that the user input cannot be handled by the skill bots, based on the input feature vector falling outside the multiple set representations.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
generating the multiple set representations of the training feature vectors comprises generating clusters to which the training feature vectors are assigned; and
comparing the input feature vector to the multiple set representations comprises determining that the input feature vectors does not fall inside boundaries of the clusters.

### Claim 3 (depends on 2)

The system of claim 2, wherein generating the clusters comprises:
determining respective centroid locations for initial clusters in a feature space;
assigning each training feature vector to an initial cluster, in the initial clusters, having a respective centroid location to which the training feature vector is closest;
determining boundaries of the initial clusters, each initial cluster of the initial clusters including corresponding assigned training feature vectors; and
responsive to determining that a stopping condition has not yet been satisfied, updating the initial clusters, wherein updating the initial clusters comprises:
determining an increased count of clusters such that the increased count of the clusters is greater than an initial count of the initial clusters;
determining respective centroid locations for the clusters in the feature space;
assigning each training feature vector to a cluster, in the clusters, having a respective centroid location to which the training feature vector is closest; and
determining the boundaries of the clusters, each cluster of the clusters including corresponding assigned training feature vectors.

### Claim 4 (depends on 2)

The system of claim 2, wherein the operations of the master bot further comprise:
accessing a second input utterance as a second user input;
generating a second input feature vector from the second input utterance;
determining that the second input feature vector falls inside a boundary of a cluster of the clusters; and
forwarding the second input utterance to a skill bot associated with the cluster for processing, based on the second input feature vector falling inside the boundary of the cluster.

### Claim 5 (depends on 4)

The system of claim 4, further comprising the skill bot, wherein the skill bot is configured to process the input utterance to perform an action responsive to the user input.

### Claim 6 (depends on 1)

The system of claim 1, wherein generating the multiple set representations of the training feature vectors comprises:
dividing the training utterances into conversation categories; and
generating composite feature vectors corresponding to the conversation categories, wherein generating the composite feature vectors comprises, for each conversation category of the conversation categories, generating a respective composite feature vector as an aggregate of respective training feature vectors of the training utterances in the conversation category.

### Claim 7 (depends on 6)

The system of claim 6, wherein, for each conversation category of the conversation categories, generating the composite feature vector as an aggregate of the respective training feature vectors of the training utterances in the conversation category comprises averaging the respective training feature vectors of the training utterances in the conversation category.

### Claim 8 (depends on 6)

The system of claim 6, wherein the conversation categories are defined based on intents for which the skill bots are configured, such that each conversation category corresponds to a respective skill bot intent and comprises training utterances representative of the respective skill bot intent.

### Claim 9 (depends on 6)

The system of claim 6, wherein each conversation category of the conversation categories corresponds to a respective skill bot of the skill bots and comprises training utterances representative of the respective skill bot.

### Claim 10 (depends on 6)

The system of claim 6, wherein comparing the input feature vector to the multiple set representations of the training feature vectors comprises determining that the input feature vector is not sufficiently similar to the any of the composite feature vectors.

### Claim 11 (depends on 6)

The system of claim 6, wherein the operations of the master bot further comprise:
accessing a second input utterance as a second user input;
generating a second input feature vector from the second input utterance;
determining that the second input feature vector is sufficiently similar to a composite feature vector of the composite feature vectors; and
forwarding the second input utterance to a skill bot associated with the composite feature vector for processing, based on the second input feature vector being sufficiently similar to the composite feature vector.

### Claim 12 (depends on 11)

The system of claim 11, further comprising the skill bot, wherein the skill bot is configured to process the input utterance to perform an action responsive to the user input.

### Claim 13

A method comprising:
accessing, by a computer system, training utterances associated with skill bots, the training utterances comprising a respective subset of training utterances for each skill bot of the skill bots, wherein each skill bot of the skill bots is configured to provide a dialog with a user;
generating training feature vectors from the training utterances, the training feature vectors comprising a respective training feature vector for each training utterance of the training utterances:
determining centroid locations for clusters in a feature space;
assigning each training feature vector, of the training feature vectors, to a respective cluster, of the clusters, having a respective centroid location to which the training feature vector is closest from among the clusters;
repeatedly modifying the clusters until a stopping condition is met, wherein modifying the clusters comprises:
increasing a count of the clusters to an updated count;
determining new centroid locations for the clusters in a quantity equal to the updated count; and
reassigning the training feature vectors to the clusters based on closeness to the new centroid locations;
determining boundaries of the clusters, the boundaries comprising a respective boundary for each cluster of the clusters;
accessing an input utterance;
converting the input utterance to an input feature vector;
determining that the input feature vector falls outside the boundaries of the clusters by comparing the input feature vector to the boundaries of the clusters; and
outputting an indication that the input utterance cannot be handled by the skill bots, based on the input feature vector falling outside the clusters in the feature space.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
accessing a second input utterance as a second user input;
generating a second input feature vector from the second input utterance;
determining that the second input feature vector falls inside one or more clusters of the clusters; and
forwarding the second input utterance to a skill bot associated with the one or more clusters for processing, based on the second input feature vector falling inside the one or more clusters.

### Claim 15 (depends on 14)

The method of claim 14, wherein the one or more clusters include respective training utterances of the skill bot and respective training utterances of a second skill bot, and the method further comprising:
selecting the skill bot, for processing the input utterance, from between the skill bot and the second skill bot based on respective confidence scores computed for the skill bot and the second skill bot.

### Claim 16 (depends on 14)

The method of claim 14, wherein the one or more clusters include respective training utterances of the skill bot and respective training utterances of a second skill bot, and the method further comprising:
selecting the skill bot, for processing the input utterance, from between the skill bot and the second skill bot based on application of a k-nearest neighbors technique to the respective training utterances of the skill bot and the respective training utterances of the second skill bot.

### Claim 17

A method comprising:
accessing, by a computer system, training utterances associated with skill bots, the training utterances comprising a respective subset of training utterances for each skill bot of the skill bots, wherein each skill bot of the skill bots is configured to provide a dialog with a user;
generating training feature vectors from the training utterances, the training feature vectors comprising a respective training feature vector for each training utterance of the training utterances;
dividing the training utterances into conversation categories; and
generating composite feature vectors corresponding to the conversation categories, wherein generating the composite feature vectors comprises, for each conversation category of the conversation categories, generating a respective composite feature vector as an aggregate of respective training feature vectors of the training utterances in the conversation category;
accessing an input utterance;
converting the input utterance to an input feature vector;
determining that the input feature vector is not sufficiently similar to the composite feature vectors by comparing the input feature vector to the composite feature vectors; and
outputting an indication that the input utterance cannot be handled by the skill bots, based on the input feature vector not being sufficiently similar to the composite feature vectors.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
accessing a second input utterance;
converting the second input utterance to a second input feature vector;
determining that the second input feature vector is sufficiently similar to a composite feature vector of the composite feature vectors by comparing the second input feature vector to the composite feature vectors; and
forwarding the second input utterance to a skill bot associated with the composite feature vector for processing, based on the second input feature vector being sufficiently similar to the composite feature vector.

### Claim 19 (depends on 18)

The method of claim 18, wherein:
the conversation categories are defined based on intents that the skill bots are configured to handle, such that each conversation category corresponds to a respective one or more skill bot intents and comprises training utterances representative of the respective one or more skill bot intents; and
the composite feature vector corresponds to a skill bot intent that the skill bot is configured to handle.

### Claim 20 (depends on 19)

The method of claim 19, wherein determining that the second input feature vector is sufficiently similar to the composite feature vector by comparing the second input feature vector to the composite feature vectors comprises:
determining that the second input feature vector is sufficiently similar to one or more additional composite feature vectors corresponding to one or more additional skill bot intents of the skill bots:
performing a k-nearest neighbors analysis comprising:
identifying nearby composite feature vectors in a predefined quantity, wherein the nearby composite feature vectors are closest to the input feature vector;
determining that a majority of the nearby composite feature vectors correspond to skill bot intents that the skill bot is configured to handle; and
selecting the skill bot based on the majority of the nearby composite feature vectors corresponding to skill bot intents that the skill bot is configured to handle.
