# US 2021/0342691 A1 · System and method for neural time series preprocessing

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

- Number: US 2021/0342691 A1
- Document ID: US20210342691A1
- Status: Published application
- Kind: A1
- Application number: 17/307,697
- Filed: 2021-05-04
- Published: 2021-11-04
- Earliest claimed: 2020-05-04
- Assignees: Royal Bank of Canada
- Applicants: Royal Bank of Canada
- Inventors: Yik Chau (Kry) Lui; Danlan Chen; Bo Chang
- Web page: https://patentgrep.com/patent/US20210342691A1

## CPC

- G06N 3/08: Learning methods
- G06F 18/10: Pre-processing; Data cleansing
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06F 18/2163: {Partitioning the feature space}
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06F 18/24133: {Distances to prototypes}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for neural time series preprocessing and forecasting, dividing time series data to generate chunks of short time series, inputting each of the short time series to a data preprocessing neural network that includes differencing to transform non-stationary data to stationary data and to filter noise, generating and outputting, from the data preprocessing neural network, processed time series data, and inputting the processed time series data to a forecasting neural network. Parameters of the data preprocessing neural network and parameters of the forecasting neural network are learned end-to-end.

## Claims

### Claim 1

A system for preprocessing and forecasting neural time series data, the system comprising:
at least one processor; and
a memory comprising instructions which, when executed by the processor, configure the processor to:
divide time series data to generate chunks of short time series;
input each of the short time series to a data preprocessing neural network that includes differencing to transform non-stationary data to more stationary data and to filter noise;
generate and output, from the data preprocessing neural network, processed time series data; and
input the processed time series data to a forecasting neural network;
wherein parameters of the data preprocessing neural network and parameters of the forecasting neural network are learned end-to-end.

### Claim 2 (depends on 1)

The system as claimed in claim 1, wherein the at least one processor is configured to determine a preprocessing weight parameter, the preprocessing weight parameter comprising:
a trained fixed component learned from the preprocessing neural network; and
a dynamic component comprising the output of a hyper neural network.

### Claim 3 (depends on 1)

The system as claimed in claim 1, wherein the at least one processor is configured to determine the parameters by optimizing a differentiable loss function via stochastic gradient descent or its derivatives.

### Claim 4 (depends on 1)

The system as claimed in claim 1, wherein the parameters are outputs by a neural network and serve as short term memories that depend on the particular input time series.

### Claim 5 (depends on 1)

The system as claimed in claim 1, wherein the data preprocessing neural network is configured to estimate moving weighted averages for each short time series.

### Claim 6 (depends on 5)

The system as claimed in claim 5, wherein the moving weighted averages comprise at least one of: moving mean, or moving standard deviation.

### Claim 7 (depends on 1)

The system as claimed in claim 1, wherein the data preprocessing neural network is configured to perform local regression for each short time series.

### Claim 8 (depends on 1)

The system as claimed in claim 1, wherein the differencing is generalized from a kernel scheme or an ARIMA-based differencing scheme.

### Claim 9 (depends on 1)

The system as claimed in claim 1, wherein the forecasting neural network implements a neural network forecasting model.

### Claim 10 (depends on 9)

The system as claimed in claim 9, wherein the neural network is an RNN, an LSTM or a temporal CNN.

### Claim 11

A computer-implemented method for neural time series preprocessing and forecasting, the method comprising:
dividing time series data to generate chunks of short time series;
inputting each of the short time series to a data preprocessing neural network that includes differencing to transform non-stationary data to more stationary data and to filter noise;
generating and outputting, from the data preprocessing neural network, processed time series data; and
inputting the processed time series data to a forecasting neural network,
wherein parameters of the data preprocessing neural network and parameters of the forecasting neural network are learned end-to-end.

### Claim 12 (depends on 11)

The method as claimed in claim 11, comprising a preprocessing weight parameter, the preprocessing weight parameter comprising:
a trained fixed component learned from the preprocessing neural network; and
a dynamic component comprising the output of a hyper neural network.

### Claim 13 (depends on 11)

The method as claimed in claim 11, comprising determining the parameters by optimizing a differentiable loss function via stochastic gradient descent or its derivatives.

### Claim 14 (depends on 11)

The method as claimed in claim 11, wherein the parameters are outputs by a neural network and serve as short term memories that depend on the particular input time series.

### Claim 15 (depends on 11)

The method as claimed in claim 11, wherein the data preprocessing neural network estimates moving weighted averages for each short time series.

### Claim 16 (depends on 15)

The method as claimed in claim 15, wherein the moving weighted averages comprise at least one of: moving mean, or moving standard deviation.

### Claim 17 (depends on 11)

The method as claimed in claim 11, wherein the data preprocessing neural network performs local regression for each short time series.

### Claim 18 (depends on 11)

The method as claimed in claim 11, wherein the differencing is generalized from a kernel scheme or an ARIMA-based differencing scheme.

### Claim 19 (depends on 11)

The method as claimed in claim 11, wherein the forecasting neural network implements a neural network forecasting model, including an RNN, an LSTM or a temporal CNN.

### Claim 20 (depends on 19)

The method as claimed in claim 19, wherein the neural network is an RNN, an LSTM or a temporal CNN.
