# US 2022/0277205 A1 · Automated machine learning to generate recommendations for websites or applications

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

- Number: US 2022/0277205 A1
- Document ID: US20220277205A1
- Status: Published application
- Kind: A1
- Application number: 17/187,737
- Filed: 2021-02-26
- Published: 2022-09-01
- Earliest claimed: 2021-02-26
- Assignees: Amplitude
- Applicants: Amplitude Inc.
- Inventors: Muhammad Bilal Mahmood; William Robert Pentney; Eric M Pollmann; Cynthia E Rogers; Mustafa Paksoy; Zachery Abe Miranda
- Web page: https://patentgrep.com/patent/US20220277205A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N 5/02: Knowledge representation; Symbolic representation
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Implementations described herein relate to methods, systems, and computer-readable media for automated generation and use of a machine learning (ML) model to provide recommendations. In some implementations, a method includes receiving a recommendation specification that includes a content type and an outcome identifier, and determining model parameters for a ML model based on the recommendation specification. The method further includes generating a historical user feature matrix (FM), generating a historical content feature matrix (FM), and transforming the historical user FM and the historical content FM into a suitable format for the ML model. The method further includes obtaining a target dataset that includes historical results for the outcome identifier for a plurality of pairs of user identifiers and content items of the content type. The method further includes training the ML model using supervised learning to generate a ranked list of content items for each user identifier.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a recommendation specification that includes a content type and an outcome identifier;
determining one or more model parameters for a machine learning model based at least in part on the recommendation specification;
generating a historical user feature matrix (FM) based on historical user data;
generating a historical content feature matrix (FM) based on historical content data;
transforming the historical user FM and the historical content FM into a suitable format for the machine learning model;
obtaining a target dataset based on the historical user data, wherein the target dataset includes historical results for the outcome identifier for a plurality of pairs of user identifiers and content items of the content type; and
training the machine learning model using supervised learning to generate a ranked list of the content items of the content type for each of the user identifiers, wherein the transformed historical user FM and the transformed historical content FM are provided as input to the machine learning model and the historical results in the target dataset are used as labels during the training.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the historical user FM based on the historical user data comprises selecting a subset of user features from the historical user data for inclusion in the historical user FM based at least in part on the recommendation specification.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein generating the historical content FM based on the historical content data comprises selecting a subset of content features from the historical content data for inclusion in the historical content FM based at least in part on the recommendation specification.

### Claim 4 (depends on 4)

The computer-implemented method of claim 4, wherein selecting the subset of content features for inclusion in the historical content FM based at least in part on the recommendation specification is based on a correlation value between each content feature and the historical results for the outcome identifier, and wherein content features with correlation values below a threshold are excluded from the subset of content features.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model is performed at periodic intervals, and wherein a previous version of the machine learning model is utilized during training.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model comprises:
obtaining a predicted result for the outcome identifier for a plurality of pairs of the content items and the user identifiers; and
adjusting at least one of the model parameters based on a comparison of the predicted result and the historical result.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the training is performed iteratively, and is stopped when improvement in model performance between consecutive iterations falls below an improvement threshold.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the historical user data includes per user aggregations of interaction events with a website or a software application associated with the recommendation specification.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising:
providing a graphical user interface that enables user selection of the recommendation specification.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving a request for a recommendation, wherein the request includes a user identifier;
generating, using the machine learning model, the recommendation that includes one or more recommended content items of the content type; and
providing the recommendation in response to the request.

### Claim 11

A computer-implemented method comprising:
receiving a recommendation specification that includes a content type and an outcome identifier;
determining one or more model parameters for a machine learning model based at least in part on the recommendation specification;
generating a historical user feature matrix (FM) based on historical user data;
generating a historical content feature matrix (FM) based on historical content data;
obtaining, using the machine learning model, a plurality of user clusters based on the historical user FM;
partitioning each user cluster of the plurality of user clusters into two sets based on the historical content FM, wherein a first set includes user identifiers that were associated with a positive result for the outcome identifier for at least one content item of the content type and a second set includes user identifiers that were not associated with the positive result for the outcome identifier in the historical user data; and
after the partitioning, obtaining a list of content items of the content type for each cluster, wherein the content items in the list are ranked based on a respective score.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein obtaining the plurality of user clusters is performed using k-means clustering, k-medians clustering, agglomerative clustering, or spectral clustering.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein obtaining the list is performed at periodic intervals.

### Claim 14 (depends on 11)

The computer-implemented method of claim 11, further comprising, after the partitioning, storing the plurality of user clusters by storing a respective cluster feature vector for each of the plurality of user clusters.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, further comprising:
receiving a request for a recommendation, wherein the request includes a particular user identifier;
mapping the particular user identifier to a particular cluster of the plurality of user clusters based on similarity between a user feature vector associated with the particular user identifier and the respective cluster feature vectors for the plurality of clusters; and
providing one or more recommended content items from the list of content items of the particular cluster as the recommendation.

### Claim 16

A computer-implemented method comprising:
receiving a request for a recommendation of one or more content items of a content type, wherein the request includes a user identifier;
assigning the user identifier to one of a treatment group or a control group;
if the user identifier is assigned to the treatment group,
identifying a ranked list of content items of the content type by applying a machine learning model, wherein the user identifier is an input to the machine learning model; and
providing one or more content items of the ranked list of content items as the recommendation;
if the user identifier is assigned to the control group,
selecting a set of content items without use of the machine learning model; and
providing one or more content items from the set of content items as the recommendation; and
determining a result of the recommendation based on one or more subsequent user actions.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the request further includes a recommendation context and is an additional input to the machine learning model.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the recommendation context indicates a number of content items and wherein providing one or more content items of the ranked list of content items includes selecting the number of content items from the ranked list of content items.

### Claim 19 (depends on 16)

The computer-implemented method of claim 16, wherein identifying the ranked list of content items of the content type by applying the machine learning model includes one of:
retrieving the ranked list from a database, based on the user identifier, wherein the database stores a respective ranked list of content items for each of a plurality of user identifiers, generated by applying the machine learning model prior to receiving the request; or
generating the ranked list by applying the machine learning model after receiving the request.

### Claim 20 (depends on 16)

The computer-implemented method of claim 16, further comprising:
receiving a recommendable set of content items, wherein the recommendable set excludes at least one content item of the content type; and
wherein applying the machine learning model comprises providing the recommendable set of content items to the machine learning model, wherein each content item in the ranked list of content items is included in the recommendable set of content items.

### Claim 21 (depends on 16)

The computer-implemented method of claim 16, wherein a plurality of requests are received, a corresponding plurality of recommendations are provided, and a respective result is determined for each recommendation, the method further comprising:
determining a difference between the respective results of the plurality of recommendations for the treatment group and the control group; and
providing a graphical user interface that illustrates the difference.
