# US 2023/0267363 A1 · Machine learning with periodic data

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

- Number: US 2023/0267363 A1
- Document ID: US20230267363A1
- Status: Published application
- Kind: A1
- Application number: 17/666,076
- Filed: 2022-02-07
- Published: 2023-08-24
- Earliest claimed: 2022-02-07
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Yingxiang YANG; Tianyi LIU; Taiqing WANG; Chong WANG; Zhihan XIONG
- Web page: https://patentgrep.com/patent/US20230267363A1

## CPC

- G06N 20/00: Machine learning
- G06F 17/14: Fourier, Walsh or analogous domain transformations {, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms (for correlation function computation G06F17/156; spectrum analysers G01R23/16)}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06N 3/045: Combinations of networks
- 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

Embodiments of the present disclosure relate to machine learning with periodic data. According to embodiments of the present disclosure, a feature representation of an input data sample is obtained from a prediction model. First Fourier coefficients for a first component in a Fourier expansion are determined by applying the feature representation into a first mapping model, and second Fourier coefficients for a second component in the Fourier expansion are determined by applying the feature representation into a second mapping model. A Fourier expansion result is determined based on the first Fourier coefficients and the second Fourier coefficients in the Fourier expansion, and a prediction result for the input data sample is determined based on the Fourier expansion result.

## Claims

### Claim 1

A method comprising:
obtaining a feature representation of an input data sample from a prediction model, the prediction model being configured to process input data with a periodicity, the input data sample being a sample of the input data generated at a point of time within a period;
determining first Fourier coefficients for a first component in a Fourier expansion by applying the feature representation into a first mapping model, the Fourier expansion being dependent on the point of time and the feature representation, and the Fourier expansion being of the periodicity;
determining second Fourier coefficients for a second component in the Fourier expansion by applying the feature representation into a second mapping model;
determining a Fourier expansion result based on the first Fourier coefficients and the second Fourier coefficients in the Fourier expansion; and
determining a prediction result for the input data sample based on the Fourier expansion result.

### Claim 2 (depends on 1)

The method of claim 1, wherein the Fourier expansion comprises a truncated Fourier expansion with a predetermined number of terms, and the number of the first Fourier coefficients and the number of the second Fourier coefficients are based on the predetermined number.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first component is based on a sine function dependent on the point of time and having the periodicity, and the second component is based on a cosine function with the periodicity, and wherein determining the Fourier expansion result comprises:
determining a set of first component values for the first component by shifting a frequency of the sine function for the predetermined number of times;
determining a set of second component values for the second component by shifting a frequency of the cosine function for the predetermined number of times; and
determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values comprises:
calculating first products by multiplying the first Fourier coefficients with the first component values;
calculating second products by multiplying the second Fourier coefficients with the second component values;
mapping the first products to a first intermediate expansion result using a third mapping model, and mapping the second products to a second intermediate expansion result using a fourth mapping model; and
determining the Fourier expansion result by aggregating the first intermediate expansion result and the second intermediate expansion result.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the prediction result for the input data sample based on the Fourier expansion result comprises:
determining a first intermediate prediction result from the Fourier expansion result;
obtaining a second intermediate prediction result generated from an output layer of the prediction model based on the feature representation; and
determining the prediction result by aggregating the first intermediate prediction result and the second intermediate prediction result.

### Claim 6 (depends on 1)

The method of claim 1, wherein the prediction model comprises a plurality of sub-models configured to extract a plurality of feature representations from the input data sample, and wherein obtaining the feature representation comprises:
obtaining the plurality of feature representations from the plurality of sub-models;
generating the feature representation by aggregating the plurality of feature representations.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first mapping model and the second mapping model are constructed without activation functions.

### Claim 8

A system, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform acts comprising:
obtaining a feature representation of an input data sample from a prediction model, the prediction model being configured to process input data with a periodicity, the input data sample being a sample of the input data generated at a point of time within a period;
determining first Fourier coefficients for a first component in a Fourier expansion by applying the feature representation into a first mapping model, the Fourier expansion being dependent on the point of time and the feature representation, and the Fourier expansion being of the periodicity;
determining second Fourier coefficients for a second component in the Fourier expansion by applying the feature representation into a second mapping model;
determining a Fourier expansion result based on the first Fourier coefficients and the second Fourier coefficients in the Fourier expansion; and
determining a prediction result for the input data sample based on the Fourier expansion result.

### Claim 9 (depends on 8)

The system of claim 8, wherein the Fourier expansion comprises a truncated Fourier expansion with a predetermined number of terms, and the number of the first Fourier coefficients and the number of the second Fourier coefficients are based on the predetermined number.

### Claim 10 (depends on 9)

The system of claim 9, wherein the first component is based on a sine function dependent on the point of time and having the periodicity, and the second component is based on a cosine function with the periodicity, and wherein determining the Fourier expansion result comprises:
determining a set of first component values for the first component by shifting a frequency of the sine function for the predetermined number of times;
determining a set of second component values for the second component by shifting a frequency of the cosine function for the predetermined number of times; and
determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values.

### Claim 11 (depends on 10)

The system of claim 10, wherein determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values comprises:
calculating first products by multiplying the first Fourier coefficients with the first component values;
calculating second products by multiplying the second Fourier coefficients with the second component values;
mapping the first products to a first intermediate expansion result using a third mapping model, and mapping the second products to a second intermediate expansion result using a fourth mapping model; and
determining the Fourier expansion result by aggregating the first intermediate expansion result and the second intermediate expansion result.

### Claim 12 (depends on 8)

The system of claim 8, wherein determining the prediction result for the input data sample based on the Fourier expansion result comprises:
determining a first intermediate prediction result from the Fourier expansion result;
obtaining a second intermediate prediction result generated from an output layer of the prediction model based on the feature representation; and
determining the prediction result by aggregating the first intermediate prediction result and the second intermediate prediction result.

### Claim 13 (depends on 8)

The system of claim 8, wherein the prediction model comprises a plurality of sub-models configured to extract a plurality of feature representations from the input data sample, and wherein obtaining the feature representation comprises:
obtaining the plurality of feature representations from the plurality of sub-models;
generating the feature representation by aggregating the plurality of feature representations.

### Claim 14 (depends on 8)

The system of claim 8, wherein the first mapping model and the second mapping model are constructed without activation functions.

### Claim 15

A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a computing device cause the computing device to perform acts comprising:
obtaining a feature representation of an input data sample from a prediction model, the prediction model being configured to process input data with a periodicity, the input data sample being a sample of the input data generated at a point of time within a period;
determining first Fourier coefficients for a first component in a Fourier expansion by applying the feature representation into a first mapping model, the Fourier expansion being dependent on the point of time and the feature representation, and the Fourier expansion being of the periodicity;
determining second Fourier coefficients for a second component in the Fourier expansion by applying the feature representation into a second mapping model;
determining a Fourier expansion result based on the first Fourier coefficients and the second Fourier coefficients in the Fourier expansion; and
determining a prediction result for the input data sample based on the Fourier expansion result.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the Fourier expansion comprises a truncated Fourier expansion with a predetermined number of terms, and the number of the first Fourier coefficients and the number of the second Fourier coefficients are based on the predetermined number.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the first component is based on a sine function dependent on the point of time and having the periodicity, and the second component is based on a cosine function with the periodicity, and wherein determining the Fourier expansion result comprises:
determining a set of first component values for the first component by shifting a frequency of the sine function for the predetermined number of times;
determining a set of second component values for the second component by shifting a frequency of the cosine function for the predetermined number of times; and
determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein determining the Fourier expansion result by multiplying the first Fourier coefficients with the first component values, respectively, and multiplying the second Fourier coefficients with the second component values comprises:
calculating first products by multiplying the first Fourier coefficients with the first component values;
calculating second products by multiplying the second Fourier coefficients with the second component values;
mapping the first products to a first intermediate expansion result using a third mapping model, and mapping the second products to a second intermediate expansion result using a fourth mapping model; and
determining the Fourier expansion result by aggregating the first intermediate expansion result and the second intermediate expansion result.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein determining the prediction result for the input data sample based on the Fourier expansion result comprises:
determining a first intermediate prediction result from the Fourier expansion result;
obtaining a second intermediate prediction result generated from an output layer of the prediction model based on the feature representation; and
determining the prediction result by aggregating the first intermediate prediction result and the second intermediate prediction result.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the prediction model comprises a plurality of sub-models configured to extract a plurality of feature representations from the input data sample, and wherein obtaining the feature representation comprises:
obtaining the plurality of feature representations from the plurality of sub-models;
generating the feature representation by aggregating the plurality of feature representations.
