# US 11,120,361 B1 · Training data routing and prediction ensembling at time series prediction system

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

- Number: US 11,120,361 B1
- Document ID: US11120361B1
- Status: Granted
- Kind: B1
- Application number: 15/441,924
- Filed: 2017-02-24
- Granted: 2021-09-14
- Earliest claimed: 2017-02-24
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Tim Januschowski; Joos-Hendrik Boese; Jan Alexander Gasthaus; Sebastian Schelter
- Web page: https://patentgrep.com/patent/US11120361B1

## CPC

- G06N 20/00: Machine learning
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06Q 10/04: Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem" (market predictions or forecasting for commercial activities G06Q30/0202)
- G06Q 30/02: Marketing; Price estimation or determination; Fundraising
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- 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

## Abstract

An input data set with a plurality of item descriptors comprising respective time series observations is identified. A routing directive indicating a predicate to be evaluated to determine whether a particular item descriptor is to be included in a training data set for a first learning algorithm is obtained. A plurality of learning algorithms are trained using training data sets derived from the input data set according to respective routing directives, and the trained algorithms are stored.

## Claims

### Claim 1

A system, comprising:
one or more computing devices of a network-accessible machine learning service;
wherein the one or more computing devices are configured to:
identify a first input data set comprising respective item descriptors associated with respective ones of a plurality of items, wherein a first item descriptor of the respective item descriptors comprises (a) a first time series of observations associated with a first item of the plurality of items and (b) one or more additional attributes of the first item, including an item category to which the first item belongs;
obtain, via one or more programmatic interfaces, a training specification comprising one or more routing directives indicating respective predicates to be evaluated to determine which item descriptors of the first input data set are to be included in respective training data sets for training respective ones of a plurality of learning algorithms indicated in the training specification;
evaluate the predicates indicated by the one or more muting directives with respect to the item descriptors of the first input data set to form the respective training data sets from the first input data set, wherein the respective training data sets include at least some differences in which portions item descriptors of the first input data set are included in the respective training data sets;
provide different ones of the training data sets to train respective ones of the plurality of learning algorithms as indicated in the training specification;
obtain, via the one or more programmatic interfaces, a prediction specification comprising one or more aggregation directives, wherein a particular aggregation directive of the one or more aggregation directives indicates, with respect to a particular prediction period:
a first percentile of prediction samples to be obtained from the first learning algorithm for one or more items of the plurality of items that satisfy an aggregation predicate, and
a second percentile of prediction samples to be obtained from a second learning algorithm for the one or more items,
wherein the prediction specification is obtained prior to applying the first and second learning algorithms to obtain predictions for the first and second items such that the first and second percentiles are predetermined and the aggregation predicate is predetermined; and
store a probabilistic prediction of a future value corresponding to the first time series, wherein the probabilistic prediction is obtained at least in part by combining the first and second percentiles of prediction samples in accordance with the prediction specification.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein another aggregation directive of the one or more aggregation directives indicates a third predicate, wherein the third predicate is expressed in terms of a temporal variable representing a first forecasting period, wherein in accordance with the other aggregation directive, a third percentile of prediction samples are to be obtained from the first learning algorithm to respond to a prediction request whose targeted forecasting period overlaps at least in part with the first forecasting period.

### Claim 3 (depends on 1)

The system as recited in claim 1, wherein the one or more computing devices are configured to:
obtain, with respect to one or more of the item descriptors, a respective class value of a plurality of categorical class values from a classifier, wherein the first predicate is expressed at least in part in terms of one or more class values of the plurality of categorical class values.

### Claim 4 (depends on 1)

The system as recited in claim 1, wherein the one or more computing devices are configured to:
evaluate one or more prediction results corresponding to a second input data set; and
generate, based at least in part on said evaluating, at least one routing directive to be used to generate another training data set.

### Claim 5 (depends on 1)

The system as recited in claim 1, wherein the one or more computing devices are configured to:
provide, via a programmatic interface, item identification information corresponding to individual item descriptors included in the training data set for a particular learning algorithm of the plurality of learning algorithms.

### Claim 6

A method, comprising:
performing, by one or more computing devices:
identifying a first input data set comprising a plurality of item descriptors, individual ones of the item descriptors associated with different respective items of a plurality of items, wherein the individual item descriptors of the first input data set comprise respective time series of observations associated with respective items of the plurality of items;
obtaining a training specification comprising one or more routing directives indicating respective predicates to be evaluated to determine respective portions of the item descriptors of the first input data set to be included in respective training data sets for training respective ones of a plurality of learning algorithms indicated in the training specification, wherein the training specification is obtained prior to forming the respective training data sets from the first input data set such that the predicates are predetermined;
after obtaining the training specification, evaluating the predicates indicated by the one or more routing directives with respect to individual ones of the item descriptors of the first input data set to form the respective training data sets from the first input data set to determine which individual ones of the item descriptors to include in different ones of the training data sets, wherein the respective training data sets include at least some differences in which item descriptors of the first input data set are included in the respective training data sets;
providing different ones of the training data sets to train respective ones of the plurality of learning algorithms as indicated in the training specification; and
storing one or more of the trained learning algorithms.

### Claim 7 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
generating a probabilistic prediction of a future value corresponding to the first time series, wherein the probabilistic prediction is obtained at least in part by combining a first prediction sample from a first learning algorithm and a second prediction sample from a second learning algorithm of the plurality of learning algorithms.

### Claim 8 (depends on 7)

The method as recited in claim 7, further comprising performing, by the one or more computing devices:
obtaining a prediction specification comprising one or more aggregation directives, wherein a particular aggregation directive of the one or more aggregation directives indicates, with respect to a particular prediction period, a first percentile of prediction samples to be obtained from the first learning algorithm for one or more items which satisfy a different predicate, and a second fraction Percentile of prediction samples to be obtained from the second learning algorithm for the one or more items that satisfy the different predicate, wherein said generating the probabilistic prediction comprises combining respective prediction samples from the first learning algorithm and the second learning algorithm in accordance with the prediction specification.

### Claim 9 (depends on 8)

The method as recited in claim 8, wherein another aggregation directive of the one or more aggregation directives indicates a particular predicate, wherein the particular predicate is expressed in terms of a temporal variable representing a first forecasting period, wherein in accordance with the other aggregation directive, a third percentile of prediction samples are to be obtained from the first learning algorithm to respond to a prediction request whose targeted forecasting period overlaps at least in part with the first forecasting period.

### Claim 10 (depends on 8)

The method as recited in claim 8, wherein the prediction specification comprises an ordered set of aggregation directives including a first aggregation directive followed by a second aggregation directive, the method further comprising performing, by the one or more computing devices:
searching the aggregation directives of the prediction specification in a sequential order to identify an aggregation directive whose predicate is satisfied by an item for which a prediction has been requested.

### Claim 11 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
obtaining definitions of one or more condition variables associated with the first input data set, wherein a value, with respect to the first item, of a particular conditional variable of the one or more condition variables is based at least in part on contents of the first item descriptor, and wherein one of the predicates is expressed using the one or more conditional variables.

### Claim 12 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
initiating execution of a classifier to obtain, with respect to individual ones of the item descriptors, a respective class value of a plurality of categorical class values, wherein one of the predicates is expressed at least in part in terms of one or more class values of the plurality of categorical class values.

### Claim 13 (depends on 6)

The method as recited in claim 6, wherein the first item descriptor indicates an item category to which the first item belongs, wherein one of the predicates is expressed at least in part in terms of one or more item categories including the item category.

### Claim 14 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
determining, based at least in part on evaluating one of the predicates, that at least a portion of a first item descriptor is to be included in the training data set for a first learning algorithm; and
determining, based at least in part on evaluating another predicate indicated in a different routing directive of the training specification, that at least a different portion of the first item descriptor is to be included in the training data set for a different learning algorithm of the plurality of learning algorithms.

### Claim 15 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
evaluating one or more prediction results corresponding to a second input data set; and
generating, based at least in part on said evaluating, at least one routing directive to be included in another training specification.

### Claim 16 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
identifying a first execution platform to be used to execute a first learning algorithm of the plurality of learning algorithms;
identifying a second execution platform to be used to execute a second learning algorithm of the plurality of learning algorithms; and
initiating respective executions of the first and second learning algorithms on the first and second execution platforms, wherein the execution of the first learning algorithm overlaps at least in part in time with the execution of the second learning algorithm.

### Claim 17

A non-transitory computer-accessible storage medium storing program instructions that when executed on one or more processors cause the one or more processors to:
determine that a forecast of respective values of one or more time series are to be generated, wherein individual ones of the time series are associated with respective items;
obtain a prediction specification comprising one or more aggregation directives indicating, with respect to a particular prediction period of the forecast:
a first percentile for prediction samples to be obtained from a first learning algorithm for a first item of the respective items which satisfies a first predicate, and a second percentile for prediction samples to be obtained from a second learning algorithm for the first item, and
a third percentile for prediction samples to be obtained from one of the first learning algorithm or the second learning algorithm for a second item of the respective items which satisfies a second predicate,
wherein the prediction specification is obtained prior to applying the first and second learning algorithms to obtain predictions for the first and second items such that the first, second and third percentiles and the first and second predicates are predetermined;
obtain and combine the first percentile of prediction samples from the first learning algorithm and the second percentile of prediction samples from the second learning algorithm in accordance with the obtained prediction specification to determine a first probabilistic prediction for the first item, and obtain the third percentile of prediction samples from one of the first learning algorithm or the second learning algorithm to determine a second probabilistic prediction for the second item in accordance with the obtained prediction specification, such that the first probabilistic prediction for the first item and the second probabilistic prediction for the second item are based on different percentiles of prediction samples from the first learning algorithm and the second learning algorithm; and
store the first probabilistic prediction as a future value of a first time series associated with the first item and the second probabilistic prediction as a future value of a second time series associated with the second item.

### Claim 18 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein the program instructions when executed on one or more processors cause the one or more processors to:
obtain a training specification comprising one or more routing directives, wherein a first routing directive of the one or more routing directives indicates a routing predicate to be evaluated to determine whether at least a portion of an input data set is to be included in a training data set for the first learning algorithm; and
utilize the training specification to identify the training data set for the first learning algorithm.

### Claim 19 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein another aggregation directive of the one or more aggregation directives indicates a third predicate, wherein the third predicate is expressed in terms of a temporal variable representing a first forecasting period, wherein in accordance with the other aggregation directive, a fourth percentile of prediction samples is to be obtained from the first learning algorithm to respond to a forecast request whose targeted forecasting period overlaps at least in part with the particular prediction period.

### Claim 20 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein the prediction specification comprises an indication of a default learning algorithm to be used for generating a forecast for a particular item which does not satisfy one or more predicates indicated in the prediction specification.

### Claim 21 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein the first time series represents demand observations for the first item, wherein the first probabilistic prediction of the future value comprises a particular probabilistic demand forecast, wherein the program instructions when executed on one or more processors cause the one or more processors to:
transmit a representation of the particular probabilistic demand forecast to one or more of: (a) an automated ordering system, wherein the automated ordering system is configured to generate one or more orders for one or more items based at least in part on the particular probabilistic demand forecast, (b) a discount planning system, (c) a facilities planning system, (d) a promotions planning system, or (e) a product placement planning system for a physical store.

### Claim 22 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein the program instructions when executed on one or more processors cause the one or more processors to:
determine, based at least in part on one or more factors, whether to include a particular prediction sample in a collection of prediction samples to be combined to generate the probabilistic prediction of the future value of the second time series, wherein the particular prediction sample is obtained from a particular learning algorithm, and wherein the one or more factors include at least one value predicted by the particular learning algorithm.
