# US 10,958,704 B2 · Feature generation for online/offline machine learning

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

- Number: US 10,958,704 B2
- Document ID: US10958704B2
- Status: Granted
- Kind: B2
- Application number: 16/557,558
- Filed: 2019-08-30
- Published: 2019-12-26
- Granted: 2021-03-23
- Earliest claimed: 2016-02-15
- Assignees: Netflix, Inc.
- Applicants: Netflix, Inc.
- Inventors: Mohammad Hossein Taghavi; Prasanna Padmanabhan; Dong-Bang Tsai; Faisal Zakaria Siddiqi; Justin Derrick Basilico
- Web page: https://patentgrep.com/patent/US10958704B2

## CPC

- H04L 65/762: {at the source (reformatting of additional data in video distribution servers H04N21/2355)}
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- H04L 65/70: Media network packetisation
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- G06F 16/335: Filtering based on additional data, e.g. user or group profiles (filtering in web context G06F16/9535, G06F16/9536)
- G06F 16/9535: Search customisation based on user profiles and personalisation
- H04L 67/303: Terminal profiles
- H04L 67/306: User profiles
- H04N 21/2407: {Monitoring of transmitted content, e.g. distribution time, number of downloads (arrangements for monitoring programmes for broadcast or for distribution combined with broadcast H04H20/14)}
- H04N 21/252: {Processing of multiple end-users' preferences to derive collaborative data}
- H04N 21/25891: {being end-user preferences (retrieval of video data in a video database based on user preferences G06F16/739; arrangements for recognizing users' preferences H04H60/46; user profiles in network data switching protocols H04L67/306; processing of user preferences or user profiles in wireless networks H04W8/18)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system for utilizing models derived from offline historical data in online applications is provided. The system includes a processor and a memory storing machine-readable instructions for determining a set of contexts of the usage data, and for each of the contexts within the set of contexts, collecting service data from services supporting the media service and storing that service data in a database. The system performing an offline testing process by fetching service data for a defined context from the database, generating a first set of feature vectors based on the fetched service data, and providing the first set to a machine-learning module. The system performs an online testing process by fetching active service data from the services supporting the media streaming service, generating a second set of feature vectors based on the fetched active service data, and providing the second set to the machine-learning module.

## Claims

### Claim 1

A system comprising:
a processor; and
a memory storing machine-readable instructions that when executed by the processor, cause the processor to perform operations comprising:
collecting service data from a media service;
performing an offline testing process comprising:
fetching at least some of the collected service data,
generating a first set of features based on the fetched service data using a specified feature encoder that is configured to encode the first set of features in a specified manner, and
providing the first set of features to a machine-learning module; and
performing an online testing process comprising:
fetching active service data from the media service,
generating a second set of features based on the fetched active service data using the same specified feature encoder the same encoding allowing the system to dynamically transition between the offline testing process and the online testing process, and
providing the second set of features to the machine-learning module.

### Claim 2 (depends on 1)

The system of claim 1, wherein the offline testing process further implements one or more portions of snapshot usage data to generate the first set of features.

### Claim 3 (depends on 1)

The system of claim 1, wherein the offline testing process further creates one or more data maps according to a feature model designed to test specified features, the data maps being configured to map data keys to specific data objects that are used to generate the first set of features.

### Claim 4 (depends on 1)

The system of claim 1, wherein the machine-readable instructions further cause the system to perform operations comprising determining a confidence value for a snapshot of collected usage data.

### Claim 5 (depends on 1)

The system of claim 1, wherein collecting usage data further comprises transforming service objects from the services into a condensed format.

### Claim 6 (depends on 5)

The system of claim 5, wherein fetching service data comprises restoring the service objects to a non-condensed format.

### Claim 7 (depends on 1)

The system of claim 1, wherein performing the offline testing process further comprises receiving label data defining contexts to be fetched.

### Claim 8 (depends on 7)

The system of claim 7, wherein the label data further defines items to be scored for the offline testing process.

### Claim 9 (depends on 1)

The system of claim 1, wherein the service data includes context-dependent data.

### Claim 10 (depends on 1)

The system of claim 1, wherein the service data includes context-independent data.

### Claim 11

A method comprising:
collecting service data from a primary service;
performing an offline testing process comprising:
fetching at least some of the collected service data for a defined context from the database,
generating a first set of features based on the fetched service data using a specified feature encoder that is configured to encode the first set of features in a specified manner, and
providing the first set of features to a machine-learning function; and
performing an online testing process comprising:
fetching active service data from the primary service,
generating a second set of features based on the fetched active service data using the same specified feature encoder, the same encoding allowing dynamic transitions between the offline testing process and the online testing process, and
providing the second set of features to the machine-learning function.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
performing an online testing process comprising:
fetching active service data from the secondary services;
generating a second set of features based on the fetched active service data; and
providing the second set of features to the machine-learning function.

### Claim 13 (depends on 11)

The method of claim 11, wherein the primary service is a media streaming service.

### Claim 14 (depends on 13)

The method of claim 13, wherein the media streaming service utilizes a service-oriented architecture.

### Claim 15 (depends on 11)

The method of claim 11, further comprising, determining a confidence value for a snapshot of collected usage data.

### Claim 16 (depends on 11)

The method of claim 11, wherein the secondary services include at least one of: a viewing history service, a user media list service, or a ratings service.

### Claim 17 (depends on 11)

The method of claim 11, wherein the contexts include one of: user profiles, device types, or time period.

### Claim 18

A method comprising:
performing an offline testing process comprising:
fetching service data from a primary service,
generating a first set of features based on the fetched service data using a specified feature encoder that is configured to encode the first set of features in a specified manner, and
providing the first set of features into a machine-learning function; and
performing an online testing process comprising:
fetching active service data from secondary services supporting the primary service,
generating a second set of features based on the fetched active service data using the same specified feature encoder, the same encoding allowing dynamic transitions between the offline testing process and the online testing process, and
providing the second set of features to the machine-learning function.

### Claim 19 (depends on 18)

The method of claim 18, wherein the machine-learning function generates a likelihood that a specified user will accept a recommended piece of content based on the offline and online testing using the first and second sets of features.

### Claim 20 (depends on 18)

The method of claim 18, wherein the offline testing process is initiated before the online testing process begins fetching active service data.
