# US 2019/0317952 A1 · Computer implemented systems for automatic hierarchy for large scale time series data sets

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

- Number: US 2019/0317952 A1
- Document ID: US20190317952A1
- Status: Published application
- Kind: A1
- Application number: 16/379,470
- Filed: 2019-04-09
- Published: 2019-10-17
- Earliest claimed: 2018-04-17
- Assignees: SAS Institute Inc.
- Applicants: SAS Institute Inc.
- Inventors: Yue Li; Neha Bindumadhav Kulkarni; Yung-Hsin Chien; Sagar Arun Mainkar; Bhupendra Suresh Bendale
- Web page: https://patentgrep.com/patent/US20190317952A1

## CPC

- G06F 16/287: {Visualization; Browsing}
- 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)
- G06F 16/2246: {Trees, e.g. B+trees}
- G06Q 10/20: Administration of product repair or maintenance
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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

A hierarchical structure (e.g., a hierarchy) for use in hierarchical analysis (e.g., hierarchical forecasting) of timestamped data can be automatically generated. This automated approach to determining a hierarchical structure involves identifying attributes of the timestamped data, clustering the timestamped data to select attributes for the hierarchy, ordering the attributes to achieve a recommended hierarchical order, and optionally modifying the hierarchical order based on user input. Through the approach disclosed herein, a hierarchy can be generated that is designed to perform well under hierarchical models. This recommended hierarchy for use in hierarchical analysis may be agnostic to any planned hierarchy provided by or used by a user to otherwise interpret the timestamped data.

## Claims

### Claim 1

A system, comprising:
one or more data processors; and
a non-transitory computer-readable storage medium containing instructions which, when executed on the one or more data processors, cause the one or more data processors to perform operations including:
receiving timestamped data, wherein the timestamped data is associated with a set of attributes and a set of independent variables, wherein the set of attributes comprises one or more time-independent attributes, and wherein the set of independent variables comprises one or more independent variables;
clustering the timestamped data into a set of clusters, wherein clustering the timestamped data comprises detecting patterns in the timestamped data, determining responses of the timestamped data to the set of independent variables, and generating cluster results based on the patterns of the timestamped data and the responses of the timestamped data to the set of independent variables;
selecting attributes from the set of attributes using the set of clusters, wherein selecting the attributes comprises identifying, from the set of attributes, a subset of attributes that are associated with the clusters;
ordering the selected attributes, wherein ordering the selected attributes comprises sequentially building an order of the selected attributes or globally building the order of the selected attributes; wherein sequentially building the order of the selected attributes comprises sequentially determining a location for a given attribute of the selected attributes in a current arrangement, updating the current arrangement with the location for the given attribute, and determining a location for a next attribute of the selected attributes in the updated current arrangement; and wherein globally building the order of the selected attributes comprises determining a first order of the selected attributes, determining a second order of the selected attributes, and comparing the first order and the second order to generate the order of the selected attribute;
generating a structure for a hierarchy using the order of the selected attributes, wherein the structure for the hierarchy defines a plurality of levels of the hierarchy; and
generating predicted values across the plurality of levels of the hierarchy using the received timestamped data and the generated hierarchical structure, wherein predicted values of one or more levels of the plurality of levels is informed by predicted values of another level of the plurality of levels.

### Claim 2 (depends on 1)

The system of claim 1, wherein the timestamped data is associated with an original hierarchical structure, and wherein the generated structure for the hierarchy is optimized for generating predicted values across the plurality of levels of the hierarchy such that the predicted values, when generated using the generated structure for the hierarchy, are more accurate than hypothetical predicted values generated using the original hierarchical structure.

### Claim 3 (depends on 1)

The system of claim 1, wherein the operations further comprise preprocessing the timestamped data before clustering the timestamped data, wherein clustering the timestamped data comprises clustering the preprocessed timestamped data, and wherein preprocessing the timestamped data comprises performing stratified sampling on the timestamped data to reduce a number of records of the timestamped data while maintaining a representative set of records for each of the set of attributes.

### Claim 4 (depends on 1)

The system of claim 1, wherein comparing the first order with the second order comprises comparing hierarchical analysis results associated with the first order with hierarchical analysis results associated with the second order.

### Claim 5 (depends on 1)

The system of claim 1, wherein comparing the first order with the second order comprises comparing an approximation measurement of the first order with an approximation measurement of the second order, wherein the approximation measurement of the first order and the approximation measurement of the second order are obtainable without performing hierarchical analysis.

### Claim 6 (depends on 1)

The system of claim 1, wherein ordering the selected attributes comprises sequentially building the order of the selected attributes.

### Claim 7 (depends on 1)

The system of claim 1, wherein ordering the selected attributes comprises comparing all permutations of orders of the selected attributes.

### Claim 8 (depends on 1)

The system of claim 1, wherein ordering the selected attributes further comprises:
determining a number of the selected attributes;
comparing the number of the selected attributes to a threshold value;
sequentially building the order of the selected attributes if the number of the selected attributes exceeds the threshold value; and
comparing all permutations of orders of the selected attributes if the number of selected attributes does not exceed the threshold value

### Claim 9 (depends on 1)

The system of claim 1, wherein ordering the selected attributes comprises receiving a user selection associated with the set of attributes and ordering the selected attributes using the user selection, wherein the user selection is indicative of a desired order for each of the set of attributes.

### Claim 10 (depends on 1)

The system of claim 1, wherein determining the first order comprises:
determining a Bayesian criteria associated with each of the selected attributes by performing a linear regression using the selected attributes as independent variables; and
ordering the selected attributes according to decreasing order of the Bayesian criteria associated with each of the selected attributes.

### Claim 11

A computer-implemented method, comprising:
receiving timestamped data, wherein the timestamped data is associated with a set of attributes and a set of independent variables, wherein the set of attributes comprises one or more time-independent attributes, and wherein the set of independent variables comprises one or more independent variables;
clustering the timestamped data into a set of clusters, wherein clustering the timestamped data comprises detecting patterns in the timestamped data, determining responses of the timestamped data to the set of independent variables, and generating cluster results based on the patterns of the timestamped data and the responses of the timestamped data to the set of independent variables;
selecting attributes from the set of attributes using the set of clusters, wherein selecting the attributes comprises identifying, from the set of attributes, a subset of attributes that are associated with the clusters;
ordering the selected attributes, wherein ordering the selected attributes comprises sequentially building an order of the selected attributes or globally building the order of the selected attributes; wherein sequentially building the order of the selected attributes comprises sequentially determining a location for a given attribute of the selected attributes in a current arrangement, updating the current arrangement with the location for the given attribute, and determining a location for a next attribute of the selected attributes in the updated current arrangement; and wherein globally building the order of the selected attributes comprises determining a first order of the selected attributes, determining a second order of the selected attributes, and comparing the first order and the second order to generate the order of the selected attribute;
generating a structure for a hierarchy using the order of the selected attributes, wherein the structure for the hierarchy defines a plurality of levels of the hierarchy; and
generating predicted values across the plurality of levels of the hierarchy using the received timestamped data and the generated hierarchical structure, wherein predicted values of one or more levels of the plurality of levels is informed by predicted values of another level of the plurality of levels.

### Claim 12 (depends on 11)

The method of claim 11, wherein the timestamped data is associated with an original hierarchical structure, and wherein the generated structure for the hierarchy is optimized for generating predicted values across the plurality of levels of the hierarchy such that the predicted values, when generated using the generated structure for the hierarchy, are more accurate than hypothetical predicted values generated using the original hierarchical structure.

### Claim 13 (depends on 11)

The method of claim 11, wherein the method further comprises preprocessing the timestamped data before clustering the timestamped data, wherein clustering the timestamped data comprises clustering the preprocessed timestamped data, and wherein preprocessing the timestamped data comprises performing stratified sampling on the timestamped data to reduce a number of records of the timestamped data while maintaining a representative set of records for each of the set of attributes.

### Claim 14 (depends on 11)

The method of claim 11, wherein comparing the first order with the second order comprises comparing hierarchical analysis results associated with the first order with hierarchical analysis results associated with the second order.

### Claim 15 (depends on 11)

The method of claim 11, wherein comparing the first order with the second order comprises comparing an approximation measurement of the first order with an approximation measurement of the second order, wherein the approximation measurement of the first order and the approximation measurement of the second order are obtainable without performing hierarchical analysis.

### Claim 16 (depends on 11)

The method of claim 11, wherein ordering the selected attributes comprises sequentially building the order of the selected attributes.

### Claim 17 (depends on 11)

The method of claim 11, wherein ordering the selected attributes comprises comparing all permutations of orders of the selected attributes.

### Claim 18 (depends on 11)

The method of claim 11, wherein ordering the selected attributes further comprises:
determining a number of the selected attributes;
comparing the number of the selected attributes to a threshold value;
sequentially building the order of the selected attributes if the number of the selected attributes exceeds the threshold value; and
comparing all permutations of orders of the selected attributes if the number of selected attributes does not exceed the threshold value.

### Claim 19 (depends on 11)

The method of claim 11, wherein ordering the selected attributes comprises receiving a user selection associated with the set of attributes and ordering the selected attributes using the user selection, wherein the user selection is indicative of a desired order for each of the set of attributes.

### Claim 20 (depends on 11)

The method of claim 11, wherein determining the first order comprises:
determining a Bayesian criteria associated with each of the selected attributes by performing a linear regression using the selected attributes as independent variables; and
ordering the selected attributes according to decreasing order of the Bayesian criteria associated with each of the selected attributes.

### Claim 21

A computer-program product tangibly embodied in a non-transitory machine-readable storage medium, including instructions configured to cause a data processing apparatus to perform operations including:
receiving timestamped data, wherein the timestamped data is associated with a set of attributes and a set of independent variables, wherein the set of attributes comprises one or more time-independent attributes, and wherein the set of independent variables comprises one or more independent variables;
clustering the timestamped data into a set of clusters, wherein clustering the timestamped data comprises detecting patterns in the timestamped data, determining responses of the timestamped data to the set of independent variables, and generating cluster results based on the patterns of the timestamped data and the responses of the timestamped data to the set of independent variables;
selecting attributes from the set of attributes using the set of clusters, wherein selecting the attributes comprises identifying, from the set of attributes, a subset of attributes that are associated with the clusters;
ordering the selected attributes, wherein ordering the selected attributes comprises sequentially building an order of the selected attributes or globally building the order of the selected attributes; wherein sequentially building the order of the selected attributes comprises sequentially determining a location for a given attribute of the selected attributes in a current arrangement, updating the current arrangement with the location for the given attribute, and determining a location for a next attribute of the selected attributes in the updated current arrangement; and wherein globally building the order of the selected attributes comprises determining a first order of the selected attributes, determining a second order of the selected attributes, and comparing the first order and the second order to generate the order of the selected attribute;
generating a structure for a hierarchy using the order of the selected attributes, wherein the structure for the hierarchy defines a plurality of levels of the hierarchy; and
generating predicted values across the plurality of levels of the hierarchy using the received timestamped data and the generated hierarchical structure, wherein predicted values of one or more levels of the plurality of levels is informed by predicted values of another level of the plurality of levels.

### Claim 22 (depends on 21)

The computer-program product of claim 21, wherein the timestamped data is associated with an original hierarchical structure, and wherein the generated structure for the hierarchy is optimized for generating predicted values across the plurality of levels of the hierarchy such that the predicted values, when generated using the generated structure for the hierarchy, are more accurate than hypothetical predicted values generated using the original hierarchical structure.

### Claim 23 (depends on 21)

The computer-program product of claim 21, wherein the operations further comprise preprocessing the timestamped data before clustering the timestamped data, wherein clustering the timestamped data comprises clustering the preprocessed timestamped data, and wherein preprocessing the timestamped data comprises performing stratified sampling on the timestamped data to reduce a number of records of the timestamped data while maintaining a representative set of records for each of the set of attributes.

### Claim 24 (depends on 21)

The computer-program product of claim 21, wherein comparing the first order with the second order comprises comparing hierarchical analysis results associated with the first order with hierarchical analysis results associated with the second order.

### Claim 25 (depends on 21)

The computer-program product of claim 21, wherein comparing the first order with the second order comprises comparing an approximation measurement of the first order with an approximation measurement of the second order, wherein the approximation measurement of the first order and the approximation measurement of the second order are obtainable without performing hierarchical analysis.

### Claim 26 (depends on 21)

The computer-program product of claim 21, wherein ordering the selected attributes comprises sequentially building the order of the selected attributes.

### Claim 27 (depends on 21)

The computer-program product of claim 21, wherein ordering the selected attributes comprises comparing all permutations of orders of the selected attributes.

### Claim 28 (depends on 21)

The computer-program product of claim 21, wherein ordering the selected attributes further comprises:
determining a number of the selected attributes;
comparing the number of the selected attributes to a threshold value;
sequentially building the order of the selected attributes if the number of the selected attributes exceeds the threshold value; and
comparing all permutations of orders of the selected attributes if the number of selected attributes does not exceed the threshold value

### Claim 29 (depends on 21)

The computer-program product of claim 21, wherein ordering the selected attributes comprises receiving a user selection associated with the set of attributes and ordering the selected attributes using the user selection, wherein the user selection is indicative of a desired order for each of the set of attributes.

### Claim 30

A system, comprising:
one or more data processors; and
a non-transitory computer-readable storage medium containing instructions which, when executed on the one or more data processors, cause the one or more data processors to perform operations including:
receiving timestamped data, wherein the timestamped data comprises a plurality of observations, wherein the timestamped data is associated with a set of attributes and a set of independent variables, wherein the set of attributes comprises one or more time-independent attributes, and wherein the set of independent variables comprises one or more independent variables;
applying a factorization machine to the timestamped data, wherein the factorization machine utilizes variables and targets, wherein applying the factorization machine comprises using the plurality of observations as the targets of the factorization machine and the set of independent variables as the variable of the factorization machine, and wherein applying the factorization machine results in a set of cross features each having a weight value;
extracting the weight values for each of the set of cross features;
generating cluster results using the weight values for each of the set of cross features, wherein the cluster results are usable to cluster the timestamped data for analyzing the timestamped data; and
displaying the clustered timestamped data.
