# US 2023/0274193 A1 · Data Management Forecasting Forecasting from Distributed Tracing

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

- Number: US 2023/0274193 A1
- Document ID: US20230274193A1
- Status: Published application
- Kind: A1
- Application number: 18/315,111
- Filed: 2023-05-10
- Published: 2023-08-31
- Earliest claimed: 2020-08-27
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Martin Christoph Maas; Giulio Zhou
- Web page: https://patentgrep.com/patent/US20230274193A1

## CPC

- G06N 20/00: Machine learning
- G06F 16/285: {Clustering or classification}
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0499: Feedforward networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for using machine learning to handle data in a computing system with improved efficiency can include obtaining a handling request associated with a data item, the handling request instructing the computing system to perform a handling operation with the data item, obtaining a trace log comprising one or more distributed trace items, the one or more distributed trace items including data from each of one or more services interacting with the data item, providing the trace log to a data characteristic prediction model including one or more machine-learned models, receiving, in response to providing the trace log to the data characteristic prediction model, one or more data characteristic predictions associated with the data item, and selecting a handling operation of a plurality of candidate handling operations based at least in part on the one or more data characteristic predictions.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A computer-implemented method for using machine learning to handle data in a computing system with improved efficiency, the method comprising:
obtaining, by a computing system comprising one or more computing devices, a handling request associated with a data item, the handling request instructing the computing system to perform a handling operation with the data item;
obtaining, by the computing system, a trace log comprising one or more distributed trace items, the one or more distributed trace items comprising data from each of one or more services interacting with the data item;
providing, by the computing system, the trace log to a data characteristic prediction model comprising one or more machine-learned models;
in response to providing the trace log to the data characteristic prediction model, receiving, by the computing system, one or more data characteristic predictions associated with the data item;
providing, by the computing system, the data characteristic predictions to a handling decision model; and
determining, by the handling decision model, a handling operation of a plurality of candidate handling operations based at least in part on the one or more data characteristic predictions.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, wherein the one or more data characteristic predictions comprise a distribution of a data characteristic.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22, wherein determining, by the handling decision model, the handling operation of a plurality of candidate handling operations based at least in part on the one or more data characteristic predictions comprises selecting a handling operation based on a sample of the distribution of the data characteristic.

### Claim 24 (depends on 22)

The computer-implemented method of claim 22, wherein the distribution of the data characteristic comprises a lognormal distribution having a mean and a standard deviation.

### Claim 25 (depends on 21)

The computer-implemented method of claim 21, wherein the data characteristic prediction model comprises:
a vector space model configured to map the one or more distributed trace items to a mapping in a vector space, the vector space comprising a plurality of neighbor vectors, the neighbor vectors based at least in part on training distributed trace items; and
a k-nearest neighbor model configured to select a nearest neighbor vector of the plurality of neighbor vectors based at least in part on the mapping.

### Claim 26 (depends on 25)

The computer-implemented method of claim 25, wherein the k-nearest neighbor model comprises an inverted index k-nearest neighbor model.

### Claim 27 (depends on 21)

The computer-implemented method of claim 21, wherein the data characteristic prediction model comprises:
an embedding submodel configured to receive the one or more distributed trace items and produce, based on the one or more distributed trace items, an embedding table comprising one or more embeddings:
an encoder submodel configured to receive the one or more embeddings from the embedding table and produce, based at least in part on the one or more embeddings, a first encoded output;
a character encoding submodel comprising one or more encoder submodels, the character encoding submodel configured to encode each character of a plurality of characters of the one or more distributed trace items as a one-hot encoding and provide the one-hot encoding to the embedding submodel.
an averaging layer configured to receive the first encoded output and produce, based at least in part on the first encoded output, an averaged output; and
one or more characteristic specific layers configured to receive the averaged output and produce, based at least in part on the averaged output, the one or more data characteristic predictions.

### Claim 28 (depends on 27)

The computer-implemented method of claim 27, wherein the encoder submodel comprises one or more of a multi-head self-attention machine-learned model and a transformer encoder submodel.

### Claim 29 (depends on 21)

The computer-implemented method of claim 21, wherein the handling decision model comprises one or more of a heuristic model and a machine-learned model.

### Claim 30 (depends on 21)

The computer-implemented method of claim 21, wherein the data characteristic prediction model comprises a distributed trace extraction submodel configured to receive the trace log and extract the one or more distributed trace items from the trace log.

### Claim 31 (depends on 21)

The computer-implemented method of claim 21, wherein the handling request comprises a storage request.

### Claim 32 (depends on 21)

The computer-implemented method of claim 21, wherein the trace log comprises a distributed trace string.

### Claim 33 (depends on 21)

The computer-implemented method of claim 21, wherein the one or more distributed trace items comprise one or more key and value pairs.

### Claim 34 (depends on 21)

The computer-implemented method of claim 21, wherein the one or more data characteristic predictions comprise a handling decision.

### Claim 35 (depends on 21)

The computer-implemented method of claim 21, wherein the one or more data characteristic predictions comprise at least one of an access interarrival time prediction, a file lifetime prediction, a final file size prediction, access frequency prediction, read/write fraction prediction, antagonistic workload prediction, or resource contention prediction.

### Claim 36 (depends on 21)

The computer-implemented method of claim 21, wherein determining, by the handling decision model, the handling operation of the plurality of candidate handling operations based at least in part on the one or more data characteristic predictions comprises selecting a storage medium to store the data item from a plurality of candidate storage mediums.

### Claim 37 (depends on 21)

The computer-implemented method of claim 21, wherein the data characteristic prediction model is trained based at least in part on a loss function that models a likelihood that a data characteristic prediction was obtained from a distribution of training data.

### Claim 38 (depends on 37)

The computer-implemented method of claim 37, wherein the training data comprises one or more distributed trace items from one or more prior handling requests occurring prior to the handling request.

### Claim 39

A computing system configured for using machine learning to handle data with improved efficiency, the computing system comprising:
one or more processors; and
one or more memory devices, the one or more memory devices storing:
a data characteristic prediction model comprising one or more machine-learned models;
a handling decision model comprising one or more of a heuristic model and a machine-learned model; and
computer-readable instructions that, when implemented, cause the one or more processors to perform operations; wherein the operations comprise:
obtaining a handling request associated with a data item, the handling request instructing the computing system to perform a handling operation with the data item;
obtaining a trace log comprising one or more distributed trace items, the one or more distributed trace items comprising data from each of one or more services interacting with the data item;
providing the trace log to the data characteristic prediction model comprising one or more machine-learned models;
in response to providing the trace log to the data characteristic prediction model, receiving one or more data characteristic predictions associated with the data item;
providing the data characteristic predictions to the handling decision model; and
determining, by the handling decision model, a handling operation of a plurality of candidate handling operations based at least in part on the one or more data characteristic predictions.

### Claim 40 (depends on 39)

The computing system of claim 39, wherein the data characteristic prediction model comprises:
an embedding submodel configured to receive the one or more distributed trace items and produce, based on the one or more distributed trace items, an embedding table comprising one or more embeddings;
an encoder submodel configured to receive the one or more embeddings from the embedding table and produce, based at least in part on the one or more embeddings, a first encoded output;
an averaging layer configured to receive the first encoded output and produce, based at least in part on the first encoded output, an averaged output; and
one or more characteristic specific layers configured to receive the averaged output and produce, based at least in part on the averaged output, the one or more data characteristic predictions.
