# US 2023/0068026 A1 · Methods and systems for encoder parameter setting optimization

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

- Number: US 2023/0068026 A1
- Document ID: US20230068026A1
- Status: Published application
- Kind: A1
- Application number: 17/462,591
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Ching Yin Derek Pang; Kyrah Felder; Akshay Gadde; Paul Wilkins; Cheng Chen; Yao-Chung Lin
- Web page: https://patentgrep.com/patent/US20230068026A1

## CPC

- H04L 65/70: Media network packetisation
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- G06N 20/00: Machine learning
- H04L 65/61: for supporting one-way streaming services, e.g. Internet radio
- H04L 65/80: Responding to QoS
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/172: the region being a picture, frame or field
- H04N 21/251: {Learning process for intelligent management, e.g. learning user preferences for recommending movies (details of learning user preferences for the retrieval of video data in a video database G06F16/739; computer systems using learning methods G06N3/08)}
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N 20/20: Ensemble learning
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for encoder parameter setting optimization. A media item to be provided to one or more users of a platform is identified. The media item is associated with a media class. An indication of the identified media item is provided as input to a first machine learning model. The first machine learning model is trained to predict, for a given media item, a set of encoder parameter settings that satisfy a performance criterion in view of a respective media class associated with the given media item. One or more outputs of the first machine learning model are obtained. The one or more obtained outputs include encoder data identifying one or more sets of encoder parameter settings and, for each of the sets of encoder parameter settings, an indication of a level of confidence that a respective set of encoder parameter settings satisfies the performance criterion in view of the media class associated with the identified media item. The identified media item is encoded using the respective set of encoding parameter settings associated with the level of confidence that satisfies a confidence criterion.

## Claims

### Claim 1

A method comprising:
identifying a media item to be provided to one or more users of a platform, wherein the media item is associated with a media class of a plurality of media classes, and wherein each of the plurality of media classes corresponds to at least one of one or more distinct image characteristics or a distinct content type;
providing an indication of the identified media item as input to a first machine learning model, wherein the first machine learning model is trained to predict, for a given media item, a set of encoder parameter settings that satisfy a performance criterion in view of a respective media class, of the plurality of media classes, associated with the given media item;
obtaining one or more outputs of the first machine learning model, wherein the one or more obtained outputs comprise encoder data identifying one or more sets of encoder parameter settings and, for each of the sets of encoder parameter settings, an indication of a level of confidence that a respective set of encoder parameter settings satisfies the performance criterion in view of the media class associated with the identified media item; and
causing the identified media item to be encoded using the respective set of encoding parameter settings associated with the level of confidence that satisfies a confidence criterion.

### Claim 2 (depends on 1)

The method of claim 1, wherein providing the indication of the identified media item as input to the first machine learning model comprises:
determining the media class associated with the identified media item; and
including an indication of the determined media class in the input provided to the first machine learning model.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the media class associated with the identified media item comprises:
obtaining one or more characteristics associated with the identified media item, wherein the one or more characteristics correspond to at least one of an image characteristic associated with the identified media item or a content type associated with the identified media item; and
providing the one or more characteristics associated with the identified media item as input to a second machine learning model, wherein the second machine learning model is trained to predict, based on given input characteristics associated with a respective media item, a particular media class, of the plurality of media classes, that corresponds to the respective media item in view of the given input characteristics,
wherein the media class associated with the identified media item is determined based on one or more outputs of the second machine learning model.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
providing the identified media item and a default set of encoding parameter settings as input to a media item encoder;
obtaining an encoded bit stream based on one or more outputs of the media item encoder;
determining at least one of a value associated with one or more encoding statistics associated with the encoded bit stream, an indication of a degree of motion associated with the encoded bit stream, or an indication of one or more mode decisions associated with the media item encoder; and
providing the at least one of the value associated with one or more encoding statistics associated with the encoded bit stream, the indication of a degree of motion associated with the encoded bit stream, or the indication of one or more mode decisions associated with the media item encoder as an additional input to the second trained machine learning model.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first machine learning model is further trained to predict, for the given media item, the respective media class, of the of media classes, associated with the given media item based on one or more characteristics associated with the given media item, wherein the one or more characteristics correspond to at least one of an image characteristic associated with the given media item or a content type associated with the given media item.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining a set of encoder parameter settings for a training media item from a set of training media items, wherein the set of encoder parameters satisfies a performance criterion in view of a particular media class of the plurality of media classes, the particular media class associated with the training media item; and
training the first machine learning model using (i) a training input comprising the particular media class associated with the training media item, and (ii) a target output for the training input, the target output comprising an indication of the determined set of encoding parameter settings that satisfies the performance criterion for the training media item in view of the particular media class.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining the set of encoding parameter settings for the training media item that satisfies the performance criterion in view of the particular media class comprises:
providing the training media item, an indication of the one or more characteristics associated with the training media item, an indication of a default set of encoder parameter settings, and an indication of the performance criterion to an optimization platform, wherein the optimization platform is configured to determine, for a given object, one or more given characteristics associated with the given object, an indication of a default set of encoder parameter settings, and an indication of a given performance criterion, a set of parameter settings that satisfy the given performance criterion in view of the one or more given characteristics associated with the given object; and
receiving, from the optimization platform, an indication of the set of encoding parameter settings for the training media item that satisfies the performance criterion in view of the particular media class.

### Claim 8 (depends on 1)

The method of claim 1, wherein the media item is associated with the media class in view of at least one of an image characteristic associated with the identified media item or a content type associated with the identified media item.

### Claim 9 (depends on 8)

The method of claim 8, wherein the image characteristic associated with the identified media item corresponds to at least one of: a spatial resolution associated with the media item, a frame rate associated with the media item, a motion activity associated with the media item, a type of device that generated the media item, an amount of image noise associated with the media item, an image texture complexity associated with the media item, or a spatial complexity associated with the media item.

### Claim 10 (depends on 1)

The method of claim 1, wherein the performance criterion corresponds to at least one of a bitrate savings performance criterion, a peak signal-to-noise ratio (PSNR) criterion, a structural similarity index (SSIM) criterion, a perceptual media quality criterion, or a psychovisual similarity criterion.

### Claim 11

A system comprising:
a memory device; and
a processing device coupled to the memory device, the processing device to perform operations comprising:
identifying a media item to be provided to one or more users of a platform, wherein the media item is associated with a media class of a plurality of media classes, and wherein each of the plurality of media classes corresponds to at least one of: one or more distinct image characteristics or a distinct content type;
providing an indication of the identified media item as input to a first machine learning model, wherein the first machine learning model is trained to predict, for a given media item, a set of encoder parameter settings that satisfy a performance criterion in view of a respective media class, of the plurality of media classes, associated with the given media item;
obtaining one or more outputs of the first machine learning model, wherein the one or more obtained outputs comprise encoder data identifying one or more sets of encoder parameter settings and, for each of the sets of encoder parameter settings, an indication of a level of confidence that a respective set of encoder parameter settings satisfies the performance criterion in view of the media class associated with the identified media item; and
causing the identified media item to be encoded using the respective set of encoding parameter settings associated with the level of confidence that satisfies a confidence criterion.

### Claim 12 (depends on 11)

The system of claim 11, wherein providing the indication of the identified media item as input to the first machine learning model comprises:
determining the media class associated with the identified media item; and
including an indication of the determined media class in the input provided to the first machine learning model.

### Claim 13 (depends on 12)

The system of claim 12, wherein determining the media class associated with the identified media item comprises:
obtaining one or more characteristics associated with the identified media item, wherein the one or more characteristics correspond to at least one of an image characteristic associated with the identified media item or a content type associated with the identified media item; and
providing the one or more characteristics associated with the identified media item as input to a second machine learning model, wherein the second machine learning model is trained to predict, based on given input characteristics associated with a respective media item, a particular media class, of the plurality of media classes, that corresponds to the respective media item in view of the given input characteristics,
wherein the media class associated with the identified media item is determined based on one or more outputs of the second machine learning model.

### Claim 14 (depends on 13)

The system of claim 13, wherein the operations further comprise:
providing the identified media item and a default set of encoding parameter settings as input to a media item encoder;
obtaining an encoded bit stream based on one or more outputs of the media item encoder;
determining at least one of a value associated with one or more encoding statistics associated with the encoded bit stream, an indication of a degree of motion associated with the encoded bit stream, or an indication of one or more mode decisions associated with the media item encoder; and
providing the at least one of the value associated with one or more encoding statistics associated with the encoded bit stream, the indication of a degree of motion associated with the encoded bit stream, or the indication of one or more mode decisions associated with the media item encoder as an additional input to the second trained machine learning model.

### Claim 15 (depends on 11)

The system of claim 11, wherein the first machine learning model is further trained to predict, for the given media item, the respective media class, of the of media classes, associated with the given media item based on one or more characteristics associated with the given media item, wherein the one or more characteristics correspond to at least one of an image characteristic associated with the given media item or a content type associated with the given media item.

### Claim 16 (depends on 11)

The system of claim 11, wherein the operations further comprise:
determining a set of encoder parameter settings for a training media item from a set of training media items, wherein the set of encoder parameters satisfies a performance criterion in view of a particular media class of the plurality of media classes, the particular media class associated with the training media item; and
training the first machine learning model using (i) a training input comprising the particular media class associated with the training media item, and (ii) a target output for the training input, the target output comprising an indication of the determined set of encoding parameter settings that satisfies the performance criterion for the training media item in view of the particular media class.

### Claim 17

A non-transitory computer readable storage medium comprising instructions for a server that, when executed by a processing device, cause the processing device to perform operations comprising:
identifying a media item to be provided to one or more users of a platform, wherein the media item is associated with a media class of a plurality of media classes, and wherein each of the plurality of media classes corresponds to at least one of one or more distinct image characteristics or a distinct content type;
providing an indication of the identified media item as input to a first machine learning model, wherein the first machine learning model is trained to predict, for a given media item, a set of encoder parameter settings that satisfy a performance criterion in view of a respective media class, of the plurality of media classes, associated with the given media item;
obtaining one or more outputs of the first machine learning model, wherein the one or more obtained outputs comprise encoder data identifying one or more sets of encoder parameter settings and, for each of the sets of encoder parameter settings, an indication of a level of confidence that a respective set of encoder parameter settings satisfies the performance criterion in view of the media class associated with the identified media item; and
causing the identified media item to be encoded using the respective set of encoding parameter settings associated with the level of confidence that satisfies a confidence criterion.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein providing the indication of the identified media item as input to the first machine learning model comprises:
determining the media class associated with the identified media item; and
including an indication of the determined media class in the input provided to the first machine learning model.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein determining the media class associated with the identified media item comprises:
obtaining one or more characteristics associated with the identified media item, wherein the one or more characteristics correspond to at least one of an image characteristic associated with the identified media item or a content type associated with the identified media item; and
providing the one or more characteristics associated with the identified media item as input to a second machine learning model, wherein the second machine learning model is trained to predict, based on given input characteristics associated with a respective media item, a particular media class, of the plurality of media classes, that corresponds to the respective media item in view of the given input characteristics,
wherein the media class associated with the identified media item is determined based on one or more outputs of the second machine learning model.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the operations further comprise:
providing the identified media item and a default set of encoding parameter settings as input to a media item encoder;
obtaining an encoded bit stream based on one or more outputs of the media item encoder;
determining at least one of a value associated with one or more encoding statistics associated with the encoded bit stream, an indication of a degree of motion associated with the encoded bit stream, or an indication of one or more mode decisions associated with the media item encoder; and
providing the at least one of the value associated with one or more encoding statistics associated with the encoded bit stream, the indication of a degree of motion associated with the encoded bit stream, or the indication of one or more mode decisions associated with the media item encoder as an additional input to the second trained machine learning model.
