# US 2021/0287277 A1 · Classification of query text to generate relevant query results

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

- Number: US 2021/0287277 A1
- Document ID: US20210287277A1
- Status: Published application
- Kind: A1
- Application number: 17/337,183
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2019-03-27
- Assignees: Target Brands, Inc.
- Applicants: Target Brands, Inc.
- Inventors: VIKRAM SRINIVASAN; SRINIVASAN SESHADRI; RICHARD WANG
- Web page: https://patentgrep.com/patent/US20210287277A1

## CPC

- G06Q 30/0641: {utilising user interfaces specially adapted for shopping}
- G06F 16/3344: {using natural language analysis}
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06F 17/15: Correlation function computation {including computation of convolution operations (arithmetic circuits for sum of products per se, e.g. multiply-accumulators G06F7/5443; digital filters, e.g. FIR, IIR, adaptive filters H03H17/00)}
- G06F 18/24: Classification techniques
- G06F 18/2414: {Smoothing the distance, e.g. radial basis function networks [RBFN]}
- G06F 18/40: Software arrangements specially adapted for pattern recognition, e.g. user interfaces or toolboxes therefor
- G06F 40/30: Semantic analysis
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06Q 30/0625: {by formulating product or service queries, e.g. using keywords or predefined options}
- G06Q 30/0633: {Managing shopping lists, e.g. compiling or processing purchase lists (shipping orders G06Q10/083; order filling G06Q10/087)}
- 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 service may provide an e-commerce platform through which users may search for, view, and purchase products. To ensure users receive relevant results when querying for particular products or product classes, a list of ranked classes may be generated, from which the query results are based. For example, products may be classified into classes and particular text from search data may be associated with one or more of the products based on click log data. For instance, input text from previously performed queries may be associated with products interacted with following those queries (e.g., products clicked on to view/purchase). Training data that associates the particular text with the respective one or more classes into which the clicked on products are classified may be generated, and in response to receiving a query including the particular text as input, the list of ranked classes may be generated based on the training data.

## Claims

### Claim 1

A method of classifying text, the method comprising:
identifying a plurality of classes;
receiving user interaction data associated with a particular text;
associating the particular text with at least one of the plurality of classes based on the user interaction data;
generating text-to-class data based on the association;
providing the text-to-class data as training data to an N-gram convolutional neural network; and
in response to receiving new text for classification, providing the new text as input to the N-gram convolutional neural network to generate a subset of classes from the plurality of classes for classifying the new text, the N-gram convolutional neural network building a plurality of N-grams comprised of multiple N-gram levels to analyze the new text using the multiple N-gram levels in conjunction with the training data to output the subset of classes.

### Claim 2 (depends on 1)

The method of claim 1, wherein the subset of classes includes more than one of the plurality of classes and the method further comprises:
ranking classes within the subset based on the training data.

### Claim 3 (depends on 2)

The method of claim 2, wherein ranking the classes within the subset comprises:
calculating a class score for each class within the subset based on the training data; and
ranking the classes within the subset based on the class score.

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of N-grams comprised of the multiple N-gram levels built by the N-gram convolutional neural network include N-grams of at least two different N-gram sizes.

### Claim 5 (depends on 1)

The method of claim 1, wherein the new text is comprised of a plurality of words, and each N-gram built by the N-gram convolutional neural network represents a different combination of one or more words from the plurality of words.

### Claim 6 (depends on 1)

The method of claim 1, wherein the new text received for classification and provided as input to the N-gram convolutional neural network is search query text, and the method further comprises:
generating search query results based on the subset of classes generated and output by the N-gram convolutional neural network.

### Claim 7

A system for classifying text, the system comprising:
an N-gram convolutional neural network;
a processor; and
a memory communicatively connected to the processor, the memory storing instructions that, when executed by the processor, cause the system to:
identify a plurality of classes;
receive user interaction data associated with a particular text;
associate the particular text with at least one of the plurality of classes based on the user interaction data;
generate text-to-class data based on the association;
provide the text-to-class data as training data to the N-gram convolutional neural network; and
in response to receiving new text for classification:
provide the new text as input to the N-gram convolutional neural network to generate a subset of classes from the plurality of classes for classifying the text, the N-gram convolutional neural network building a plurality of N-grams comprised of multiple N-gram levels to analyze the new text using the multiple N-gram levels in conjunction with the training data to output the subset of classes; and
rank classes within the subset based on the training data.

### Claim 8 (depends on 7)

The system of claim 7, wherein:
the user interaction data associated with the particular text includes search data comprising a search query that includes the particular text and click log data associated with one or more of a plurality of products clicked on following the search query;
each of the one or more of the plurality of products are classified into one or more of the plurality of classes; and
to associate the particular text with at least one of the plurality of classes based on the user interaction data, the system is caused to associate the particular text with the one or more of the plurality of classes into which each of the one or more of the plurality of products are classified.

### Claim 9 (depends on 8)

The system of claim 8, wherein to generate the text-to-class data based on the association, the system is caused to one of:
associate the particular text with a single class from the one or more of the plurality of classes into which each of the one or more of the plurality of products are classified, the single class having a highest class score from among the one or more of the plurality of classes;
associate the particular text with each of the one or more of the plurality of classes into which each of the one or more of the plurality of products are classified, wherein the association is unweighted; and
associate the particular text with each of the one or more of the plurality of classes into which each of the one or more of the plurality of products are classified, wherein the association is weighted based on a class score.

### Claim 10 (depends on 8)

The system of claim 8, wherein the new text received for classification and provided as input to the N-gram convolutional neural network is search query text associated with the plurality of products, and the system is further caused to generate and provide for display search query results based on the ranked classes within the subset.

### Claim 11 (depends on 10)

The system of claim 10, wherein one or more of the plurality of products responsive to the search query text and classified into a highest ranked class within the subset are displayed first in the search query results.

### Claim 12 (depends on 7)

The system of claim 7, wherein the plurality of N-grams comprised of the multiple N-gram levels built by the N-gram convolutional neural network include N-grams of at least two different N-gram sizes.

### Claim 13 (depends on 7)

The system of claim 7, wherein the new text is comprised of a plurality of words and each N-gram built by the N-gram convolutional neural network represents a different word or combination of words from the plurality of words.

### Claim 14

A method of classifying text, the method comprising:
receiving, at a convolutional neural network, training data generated based on associations of particular text with one or more of a plurality of classes;
receiving new text for classification as input to the convolutional neural network;
building a plurality of N-grams comprised of multiple N-gram levels based on the new text;
analyzing the new text using the multiple N-gram levels in conjunction with the training data to generate a subset of classes from the plurality of classes for classifying the new text; and
providing the subset of classes as output of the convolutional neural network.

### Claim 15 (depends on 14)

The method of claim 14, wherein the training data received includes text-to-class data, and the text-to-class data is generated by:
identifying the plurality of classes;
receiving user interaction data associated with the particular text;
associating the particular text with at least one of the plurality of classes based on the user interaction data; and
generating the text-to-class data based on the association.

### Claim 16 (depends on 14)

The method of claim 14, wherein the plurality of N-grams comprised of the multiple N-gram levels include N-grams of at least two different N-gram sizes.

### Claim 17 (depends on 16)

The method of claim 16, wherein an N-gram size for an N-gram of the plurality of N-grams includes at least one of: a unigram, a bigram, a trigram, a quadgram, and a pentagram.

### Claim 18 (depends on 14)

The method of claim 14, wherein the new text is comprised of a plurality of words, each N-gram represents a different combination of one or more words from the plurality of words, and each N-gram of a different N-gram size represents a different number of the one or more words.

### Claim 19 (depends on 14)

The method of claim 14, wherein building the plurality of N-grams comprises:
generating a vector representation of the new text; and
building the plurality of N-grams comprised of the multiple N-gram levels based on the vector representation.

### Claim 20 (depends on 14)

The method of claim 14, wherein analyzing the new text using the multiple N-gram levels in conjunction with the training data to generate the subset of classes comprises:
passing each N-gram through a convolution layer comprising an activation function, wherein the activation function learns a weight matrix of each N-gram and produces an output feature vector for each N-gram;
passing the output feature vector for each N-gram through a max pooling layer to form a one-dimensional feature vector; and
passing the one-dimensional feature vector through a loss layer comprising a softmax function to yield the subset of classes.
