System and method for analyzing enterprise data
The system addresses limitations in time series forecasting by integrating a time series fusion model, data quality inspection, and drift detection, enabling accurate and adaptive forecasting for diverse enterprise data without requiring specialized expertise.
Patent Information
- Application Number
- US19/651816
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-04-18
- Filing Date
- 2026-04-20
- Publication Date
- 2026-11-26
AI Technical Summary
Current time series forecasting techniques face challenges with single model limitations, data quality issues, insufficient training data, model performance degradation due to drift, and high modeling thresholds, making them inadequate for diverse and dynamic enterprise data scenarios.
A system integrating a time series fusion model, data quality inspection, deep meta-learner, drift detection, and automated operation modules, utilizing a large language model for robust forecasting and adaptive model management.
The system provides accurate, adaptive, and efficient forecasting by combining multiple methods, addressing data quality, and automatically handling drift, reducing the need for specialized expertise.
Smart Images

Figure US20260377778A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present application claims the benefit of and priority to U.S. Provisional Patent Application Ser. No. 63 / 790,718, filed on Apr. 18, 2025, the entire contents of which are incorporated herein by reference.FIELD
[0002] The present invention relates to a system and method for analyzing enterprise data, and more particularly, to a system and method that combine Generative Artificial Intelligence (Generative AI) with Automated Machine Learning (AutoML). More specifically, the present invention relates to a system and method that utilize a Large Language Model (LLM) to analyze enterprise data and provide on-demand prediction and time series forecasting by means of a time series fusion model, data quality inspection, deep meta-learning, and a drift-triggered automated operations mechanism.BACKGROUND
[0003] Time series forecasting plays a critical role in enterprise operations. Applications such as sales forecasting, inventory management, demand planning, financial budgeting, and energy consumption estimation all rely on accurate time series forecasting to support decision-making. With the rapid growth of enterprise data volume, traditional manual modeling approaches have become increasingly inadequate to meet the demand for real-time forecasting.
[0004] Current time series forecasting techniques suffer from the following problems.
[0005] First, there are limitations for a single model. Conventional approaches typically employ only a single forecasting algorithm (such as ARIMA, exponential smoothing, or LSTM). However, different time series data may exhibit markedly different temporal patterns. Some time series data have pronounced long-term trends, some exhibit strong seasonal fluctuations, and some are dominated by random noise. A single model has difficulty adapting to all such patterns simultaneously, resulting in insufficient overall forecasting accuracy when facing diverse forecast targets, such as forecasting sales for hundreds of products.
[0006] Second, there are data quality issues. Enterprise data commonly includes missing values, duplicate rows, suspected identifier fields, high-cardinality categorical fields, and highly correlated fields. Failure to properly address these issues prior to modeling may result in problems such as unstable model training, biased forecasts, or overfitting.
[0007] Third, there is a difficulty of insufficient training data. In scenarios such as new products, new stores, or new business areas, historical data is often extremely limited, and conventional machine learning models cannot build effective forecasting models due to the lack of sufficient training samples.
[0008] Fourth, there is a problem of model performance degradation. After a forecasting model is deployed, as the external environment (e.g., market condition, consumer behavior, and competitive landscape) changes, the statistical distribution between the training data and the actual forecast data gradually diverges, that is, drift occurs, causing the performance of the deployed model to degrade over time.
[0009] Fifth, there is an excessively high modeling threshold. Conventional machine learning modeling workflows require data scientists to manually perform feature engineering, algorithm selection, hyperparameter tuning, and other steps. The entire process is time-consuming and requires specialized expertise, making it difficult for general business personnel to operate on their own.
[0010] Accordingly, there is an urgent need in the industry for a unified forecasting system capable of automatically handling data quality, integrating diverse forecasting methods, leveraging a large language model to overcome insufficient data, and automatically detecting model drift to trigger an operation workflow.SUMMARY
[0011] In view of the foregoing, the present invention provides a system for analyzing enterprise data using a large language model. The core of the system is a time series fusion model module, which integrates a plurality of time series forecasting methods having mutually different forecasting characteristics and produces a robust final fused forecast result through a cross-validation ranking and Top-N selection-and-aggregation mechanism. The system may further include a data quality inspection module, a deep meta-learner module, a drift detection module, an automated operation module, and a conversational modeling interface module.
[0012] The present invention further provides a method for analyzing enterprise data utilizing a large language model, and the method comprises steps corresponding to the system described above.
[0013] A first aspect of the present invention provides a system for analyzing enterprise data. The system includes a processing device and a storage device, which is coupled to the processing device and configured to store a plurality of instructions defining a time series fusion model module; and when the instructions are executed by the processing device, the time series fusion model module is configured to: receive time series data associated with a plurality of forecast targets; perform a plurality of time series forecasting methods on the time series data, each of the time series forecasting methods having a mutually different forecasting characteristic; rank, for each of the forecast targets, the time series forecasting methods based on a respective cross-validation score calculated for each of the time series forecasting methods; and select, based on the ranking, from among the time series forecasting methods, a predetermined quantity (N) of the time series forecasting methods having a top ranking, and calculate an aggregated forecast value for forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking, the aggregated forecast value constituting a final fused forecast result.
[0014] In some embodiments of the first aspect, the time series forecasting methods include at least three of the following types: a statistical model method, a machine learning model method, and a deep learning model method.
[0015] In some embodiments of the first aspect, the forecast targets correspond to a plurality of stock keeping units (SKUs), and the time series fusion model module is configured to separately perform the ranking and calculate the aggregated forecast value for each of the stock keeping units.
[0016] In some embodiments of the first aspect, each of the cross-validation scores is calculated based on a cross-validation configuration defined by a predetermined experimental setting, and wherein N is a predetermined positive integer.
[0017] In some embodiments of the first aspect, calculating the aggregated forecast value includes calculating an average value of the forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking.
[0018] In some embodiments of the first aspect, the system further includes a data quality inspection module configured to perform a quality diagnosis on the time series data, before the time series fusion model module processes the time series data, so as to detect one or more data quality issues.
[0019] In some embodiments of the first aspect, the one or more data quality issues include at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field.
[0020] In some embodiments of the first aspect, the data quality inspection module is further configured to generate a data quality report, and the data quality report identifies the one or more data quality issues and is provided to a user.
[0021] In some embodiments of the first aspect, the system further includes a deep meta-learner module configured to: convert raw data into a textual representation; embed the textual representation into a prompt; and provide the prompt to a Large Language Model (LLM) and receive a forecast output from the large language model.
[0022] In some embodiments of the first aspect, the raw data includes non-textual data, and the deep meta-learner module is configured to convert the non-textual data into the textual representation, and the non-textual data includes at least one of the following: numerical data, image data, or audio data.
[0023] In some embodiments of the first aspect, the deep meta-learner module is configured to utilize knowledge acquired by the large language model from a plurality of different domains to perform a cross-domain inference on the raw data, so as to produce the forecast output.
[0024] In some embodiments of the first aspect, the deep meta-learner module is configured to produce the forecast output under a condition of less than a predetermined amount of training data, and the large language model synthesizes information from a plurality of different domains together with the raw data as a basis for producing the forecast output.
[0025] In some embodiments of the first aspect, the system further includes a drift detection module configured to monitor a statistical distribution drift between training data and forecast data, and the drift detection module includes: a target drift submodule configured to utilize a statistical method to detect a first distribution drift of a target variable between the training data and the forecast data; and a feature drift submodule configured to utilize the statistical method to detect a second distribution drift of one or more prediction features between the training data and the forecast data.
[0026] In some embodiments of the first aspect, the statistical method comprises calculating a Population Stability Index (PSI) value, and the target drift submodule and the feature drift submodule each calculate the PSI value to respectively quantify the first distribution drift and the second distribution drift.
[0027] In some embodiments of the first aspect, the drift detection module is configured to classify the first distribution drift or the second distribution drift, based on the PSI value, as one of the following: a first category corresponding to the PSI value being less than a first threshold value; a second category corresponding to the PSI value being greater than or equal to the first threshold value and less than a second threshold value; and a third category corresponding to the PSI value being greater than or equal to the second threshold value.
[0028] In some embodiments of the first aspect, the feature drift submodule is further configured to: rank the one or more prediction features according to a feature importance corresponding to each of the one or more prediction features, so as to obtain a feature importance ranking; select, from the feature importance ranking, a predetermined quantity of prediction features having a top ranking, and exclude prediction features of a date-time type therefrom, to form a feature subset to be monitored; and detect the second distribution drift separately for each prediction feature in the feature subset to be monitored.
[0029] In some embodiments of the first aspect, the system further includes an automated operation module communicatively coupled to the drift detection module, and the automated operation module is configured to: receive a drift alert signal from the drift detection module, the drift alert signal indicating that the first distribution drift or the second distribution drift exceeds a predetermined threshold value; automatically perform a model retraining process, in response to the drift alert signal, based on updated training data; and automatically deploy a retrained model to replace a previous model after completion of the model retraining process.
[0030] In some embodiments of the first aspect, the system further includes a conversational modeling interface module configured to receive modeling configuration information from a user through a natural language conversational interface and initiate a modeling process based on the modeling configuration information.
[0031] A second aspect of the present invention provides a method for analyzing enterprise data, and the method comprises: receiving time series data associated with a plurality of forecast targets; performing a plurality of time series forecasting methods on the time series data, each of the time series forecasting methods having a mutually different forecasting characteristic; ranking, for each of the forecast targets, the time series forecasting methods based on a respective cross-validation score calculated for each of the time series forecasting methods; and selecting, based on the ranking, from among the time series forecasting methods, a predetermined quantity (N) of the time series forecasting methods having a top ranking, and calculating an aggregated forecast value for forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking, the aggregated forecast value constituting a final fused forecast result.
[0032] In some embodiments of the second aspect, the method further comprises: performing, prior to performing the time series forecasting methods, a data quality inspection on the time series data to detect at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field; and calculating a population stability index (PSI) value between training data and new forecast data after the aggregated forecast value is produced, and triggering an automated model retraining process when the PSI value exceeds a predetermined threshold value.BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG. 1 is a schematic diagram illustrating the architecture of a system for analyzing enterprise data according to an embodiment of the present invention.
[0034] FIG. 2 is a flowchart illustrating the operation of a time series fusion model module according to an embodiment of the present invention.
[0035] FIG. 3 is a flowchart illustrating the operation of a data quality inspection module according to an embodiment of the present invention.
[0036] FIG. 4 is a flowchart illustrating the operation of a deep meta-learner module according to an embodiment of the present invention.
[0037] FIG. 5 is a schematic diagram illustrating the architecture of a system for analyzing enterprise data according to another embodiment of the present invention.
[0038] FIG. 6 is a flowchart illustrating the operation of a feature drift submodule according to an embodiment of the present invention.
[0039] FIG. 7 is a flowchart illustrating the operation of an automated operation module according to an embodiment of the present invention.
[0040] FIG. 8 is an interaction flowchart illustrating a conversational modeling interface module according to an embodiment of the present invention.
[0041] FIG. 9 is a flowchart illustrating a method for analyzing enterprise data according to an embodiment of the present invention.DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
[0042] The following description contains specific information pertaining to exemplary embodiments in the present invention. The drawings in the present invention and their accompanying detailed description are directed to merely exemplary embodiments. However, the present invention is not limited to such exemplary embodiments. Other variations and embodiments of the present invention will occur to those skilled in the art. Unless otherwise specified, identical or corresponding elements in the figures may be indicated by identical or corresponding reference numerals. Moreover, the drawings and illustrations in the present invention are generally not to scale, and are not intended to correspond to actual relative dimensions.
[0043] For the purpose of consistency and ease of understanding, like features are identified by reference numerals in the exemplary figures (although, in some examples, they may not be so identified). However, the features in different embodiments may differ in other respects, and therefore shall not be narrowly confined to what is shown in the figures.
[0044] References to “at least one embodiment,”“an embodiment,”“multiple embodiments,”“different embodiments,”“some embodiments,”“the present embodiment,” and other such terms may indicate that the embodiment(s) of the invention so described may include a particular feature, structure, or characteristic, but not every possible embodiment of the invention necessarily includes the particular feature, structure, or characteristic. Furthermore, repeated use of the phrases “in an embodiment” or “in the present embodiment” does not necessarily refer to the same embodiment, although they may. Furthermore, when a phrase such as “an embodiment” is used in connection with “the present invention,” it does not imply that all embodiments of the present invention must include the particular feature, structure, or characteristic, and it should be understood that “at least some embodiments of the present invention” include the particular feature, structure, or characteristic so described. The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to a physical connection. When the term “comprising” is used, it means “including, but not limited to,” explicitly indicating an open-ended inclusion or relationship of the stated combinations, groups, series, and equivalents thereof.
[0045] Furthermore, for purposes of explanation and not limitation, specific details such as functional entities, techniques, protocols, and standards are set forth in order to provide an understanding of the described technology. In other instances, detailed descriptions of well-known methods, techniques, systems, architectures, and so forth are omitted so as not to obscure the description with unnecessary detail.
[0046] The terms “first,”“second,” and “third,” as used in the specification and the foregoing drawings of the present invention, are used to distinguish between different objects, and are not used to describe a particular order. Furthermore, the term “comprising,” and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally further include steps or modules that are not listed, or may optionally further include other steps or modules inherent to such process, method, product, or device.
[0047] The embodiments of the present invention are described below with reference to the accompanying drawings.
[0048] FIG. 1 is a schematic diagram illustrating the architecture of a system for analyzing enterprise data according to an embodiment of the present invention.
[0049] Referring to FIG. 1, in some embodiments, the system 100 for analyzing enterprise data of the present invention includes a processing device 110 and a storage device 120. The storage device 120 is coupled to the processing device 110 and configured to store a plurality of instructions. In an embodiment, the processing device 110 and the storage device 120 may be respectively disposed in different servers and communicatively connected through a wired communication technology or a wireless communication technology to perform data and instruction exchange. In other embodiments, the processing device 110 and the storage device 120 may be disposed in the same server and electrically connected to each other to perform data and instruction exchange.
[0050] In some embodiments, the processing device 110 may be a central processing unit (CPU), a graphics processing unit (GPU), a tensor processing unit (TPU), a field programmable gate array (FPGA), or any combination thereof.
[0051] In some embodiments, the storage device 120 may include a random access memory (RAM), a solid-state drive (SSD), or any combination thereof. In other embodiments, the storage device 120 may be a cloud object storage (such as an Amazon S3 or Azure Blob Storage) server configured to store enterprise data, model parameters, and forecast results. The system 100 for analyzing enterprise data may be deployed on a cloud computing platform (such as AWS, Azure, or GCP), an enterprise on-premises server, or a hybrid cloud architecture.
[0052] In some embodiments, when the instructions are executed by the processing device 110, the instructions cause the system 100 to implement the following modules: a time series fusion model module 200, a data quality inspection module 300, a deep meta-learner module 400, a drift detection module 500, and a conversational modeling interface module 600.
[0053] FIG. 2 is a flowchart illustrating the operation of a time series fusion model module according to an embodiment of the present invention.
[0054] In some embodiments, the time series fusion model module 200 is configured to integrate a plurality of time series forecasting methods having mutually different forecasting characteristics and to produce a final fused forecast result through a cross-validation ranking and Top-N selection-and-aggregation mechanism.
[0055] Referring to FIG. 2, in step S201, time series data associated with a plurality of forecast targets is received.
[0056] Specifically, the time series fusion model module 200 is configured to receive time series data associated with a plurality of forecast targets. The time series data refers to a series of observed values arranged in chronological order, and each of the observed values corresponds to a particular point in time or time interval. The plurality of forecast targets refer to entities that require independent forecasting, such as a plurality of stock keeping units (SKUs), a plurality of stores, a plurality of product categories, a plurality of customer groups, a plurality of production lines, or other business dimensions.
[0057] In some embodiments, the temporal granularity of the time series data may be hourly, daily, weekly, monthly, or quarterly. Each record corresponding to the time series data may include: a timestamp, a forecast target identifier (such as an SKU number), a target variable value (such as sales volume), and zero or multiple external feature values (such as weather temperature, whether it is a holiday, promotion intensity, competitor price, etc.).
[0058] In some embodiments, the system uniformly receives and manages the time series data associated with the plurality of forecast targets, such that subsequent steps can perform forecasting and ranking by a plurality of methods independently for each forecast target, rather than forecasting only for a single target or for the data as a whole.
[0059] Referring to FIG. 2, in step S203, a plurality of time series forecasting methods are performed on the time series data, and each of the time series forecasting methods has a mutually different forecasting characteristic.
[0060] Specifically, the time series fusion model module 200 is configured to perform a plurality of time series forecasting methods on the time series data. Each of the time series forecasting methods has a mutually different forecasting characteristic. A mutually different forecasting characteristic refers to differences among different forecasting methods in mathematical principles, model structures, and types of temporal patterns that are adept at capturing. Rather than running only a single algorithm, the system executes a plurality of algorithms in parallel on the same set of time series data, so as to cover various possible temporal patterns.
[0061] In some embodiments, the time series forecasting methods include at least three of the following types: a statistical model method, a machine learning model method, and a deep learning model method. A diverse set of time series forecasting methods can ensure that the pool of time series forecasting methods of the system covers three types that differ markedly in mathematical principle, such that the methods are structurally complementary to one another; that is, linear patterns at which a statistical model excel, feature-interaction patterns at which machine learning excels, and nonlinear, long-term dependency patterns at which deep learning excels are all covered, thereby improving the overall robustness of the fused forecast. In other words, by simultaneously executing a plurality of methods having mutually different forecasting characteristics, the system can cover linear trends, seasonal fluctuations, nonlinear patterns, feature interactions, and other various temporal patterns, thereby avoiding the risk of a single model omitting a particular pattern due to inherent structural limitations.
[0062] In some embodiments, implementable models of the statistical model method include: ARIMA (which models autocorrelation to capture linear trends; and parameters (p, d, q) respectively represent the autoregressive order, the differencing order, and the moving average order), ETS (exponential smoothing, which assigns higher weight to more recent observed values to capture trend and seasonality; and three components, Error / Trend / Seasonality, may each be set to an additive or multiplicative mode), and SARIMA (which adds seasonal differencing on the basis of ARIMA).
[0063] In some embodiments, implementable models of the machine learning model method include: XGBoost, LightGBM, CatBoost (gradient boosted trees, which capture feature interactions and nonlinear relationships through an ensemble of decision trees, suitable for time series rich in external features), Random Forest, and SVR (support vector regression).
[0064] In some embodiments, implementable models of the deep learning model method include: LSTM (Long Short-Term Memory network, which captures long-term dependencies through a gate mechanism), GRU (Gated Recurrent Unit, a simplified version of LSTM), Temporal Fusion Transformer (TFT) (which utilizes a self-attention mechanism), N-BEATS (a purely fully-connected network), Prophet (developed by Meta, which decomposes a series into trend / seasonality / holiday effects), and DeepAR.
[0065] For example, (a) Autoregressive Integrated Moving Average (ARIMA): it is configured to capture a linear trend and an autoregressive structure by modeling the autocorrelation and partial autocorrelation of a time series. The ARIMA model includes three parameters (p, d, q).
[0066] (b) Exponential Smoothing (ETS): it is configured to assign a higher exponentially decaying weight to more recent observed values to capture trend and seasonality. The three components of ETS (Error, Trend, Seasonality) may each be set to an additive or multiplicative mode.
[0067] (c) Seasonal ARIMA (SARIMA): it is configured to add seasonal differencing on the basis of ARIMA and suitable for time series having a fixed periodicity.
[0068] (d) Prophet model: it is an additive model developed by Meta and configured to decompose a time series into three components: trend, seasonality, and holiday effects.
[0069] (e) Long Short-Term Memory network (LSTM): it is a recurrent neural network architecture configured to control the memorization and forgetting of information through a gate mechanism, capturing long-term dependencies and nonlinear patterns.
[0070] (f) Gated Recurrent Unit (GRU): it is a simplified version of LSTM with fewer parameters and faster training.
[0071] (g) Gradient boosted tree models (XGBoost, LightGBM, CatBoost): it is configured to capture feature interactions and nonlinear relationships through an ensemble of decision trees.
[0072] (h) Temporal Fusion Transformer (TFT): it is configured to utilize a self-attention mechanism to capture dependencies between arbitrary time steps.
[0073] (i) N-BEATS: it is a purely fully-connected neural network time series forecasting model that does not rely on time-series-specific assumptions.
[0074] Referring to FIG. 2, in step S205, a ranking is performed for each of the forecast targets based on a cross-validation score calculated for each of the time series forecasting methods.
[0075] Specifically, cross-validation (CV) refers to dividing historical data into a plurality of training subsets and validation subsets and alternately performing training and validation, so as to objectively evaluate the forecasting performance of each forecasting method.
[0076] In some embodiments, each of the cross-validation scores is calculated based on a cross-validation configuration defined by a predetermined experimental setting. The predetermined experimental setting defines the specific parameters of the cross-validation. In one embodiment, a rolling window cross-validation may be employed, in which a training window length W, a validation window length H, and a rolling step size S are set, and K=floor((T−W−H) / S)+1 validations are performed in total. In another embodiment, an expanding window cross-validation is employed, in which the starting point of the training window is fixed while the end point progressively expands. Through a configurable cross-validation configuration, a user can adjust the validation strategy according to the length of the historical data and business requirements. In addition, through an adjustable value of N (N being a positive integer), a user may achieve a balance between “the robustness afforded by fusing more methods” and “the precision afforded by fewer methods.”
[0077] In some embodiments, the evaluation metrics that may be used include root mean square error (RMSE), mean absolute percentage error (MAPE), mean absolute error (MAE), and symmetric mean absolute percentage error (sMAPE). The cross-validation score may be defined as the average of the evaluation metric values across the respective validations.
[0078] In detail, the ranking is performed “individually” for each forecast target. Different forecast targets may have markedly different temporal patterns, and therefore the suitable methods also differ.
[0079] Specifically, the purpose of this step is that, by performing a cross-validation ranking individually for each forecast target, the system can automatically identify, for each forecast target, the forecasting method best suited to its particular temporal pattern, rather than forcing all forecast targets to use the same set of methods. This mechanism enables the system to effectively adapt to a large number of diverse forecast targets.
[0080] Referring to FIG. 2, in step S207, a predetermined quantity (N) of the time series forecasting methods ranked at the top is selected, based on the ranking, from among the time series forecasting methods, and an aggregated forecast value is calculated for the forecast values respectively generated by the predetermined quantity (N) of the time series forecasting methods ranked at the top and constitutes a final fused forecast result.
[0081] In some embodiments, the forecast targets may correspond to a plurality of stock keeping units (SKUs), and the time series fusion model module is configured to separately perform the ranking and calculate the aggregated forecast value for each of the stock keeping units.
[0082] In some embodiments, due to differences in product nature among different SKUs (for example, the sales pattern of carbonated beverages is markedly different from that of office stationery), the suitable forecasting methods also differ. By performing the ranking and aggregation for each SKU individually, the system can customize an optimal combination of methods for each SKU, thereby improving the overall accuracy of large-scale, multi-item forecasting.
[0083] For example, a beverage company has 500 SKUs, and the system runs 5 methods for each SKU individually, ranks them individually, and takes the Top-3 for fusion individually, thereby performing 500×5=2,500 model trainings in total. Cola at the Xinyi store may rank Prophet first, while mineral water at the Gongguan store may rank XGBoost first.
[0084] In step S207, the system may, based on a ranking result, retain only the N methods having the highest cross-validation scores, automatically exclude methods with poorer performance, and combine the forecast values respectively generated by the selected N methods into a single aggregated forecast value through an aggregation operation.
[0085] In detail, calculating the aggregated forecast value includes calculating an average value of the forecast values respectively generated by the predetermined quantity (N) of the time series forecasting methods ranked at the top. An arithmetic mean is the most intuitive and least computationally costly aggregation approach, which can effectively smooth out the forecast bias of each method and reduce the impact of any extreme forecast from a single method on the final result.
[0086] In some embodiments, N is a predetermined positive integer, which may be preset by a user or automatically determined by the system based on the total number of methods. The aggregation operation may include an arithmetic mean, a weighted average, a median, or stacking learning, among others.
[0087] The purpose of this step is that, by selecting the N methods having the best ranking and aggregating their forecast values, the system can reduce the forecast error that any single method may produce due to a bias toward a particular data pattern, such that the final fused forecast result is more robust than that of any single method. At the same time, automatically excluding poorly performing methods avoids dragging down the overall forecast quality.
[0088] A specific embodiment is described below to illustrate the complete operational flow of the time series fusion model module 200.
[0089] Assume that a beverage company wishes to forecast the monthly sales volume of 500 SKUs under its brand for the next 3 months. The system 100 receives time series data of the monthly sales volume of the 500 SKUs over the past 24 months, and each record includes an SKU number, month, sales volume (in boxes), average temperature (°C), whether there is a promotion (yes / no), and competitor price (in dollars).
[0090] The system 100 simultaneously performs 5 time series forecasting methods for each SKU: ARIMA (i.e., a statistical model), ETS (i.e., a statistical model), Prophet (i.e., a deep learning model), LSTM (i.e., a deep learning model), and XGBoost (i.e., a machine learning model).
[0091] Taking SKU-001 (Coca-Cola, 330 ml can) as an example, the system 100 employs a rolling window cross-validation, sets a training window W=18 months, a validation window H=3 months, and a rolling step size S=1 month, and performs 4 validations in total. Using MAPE as the evaluation metric, the cross-validation score of each method (expressed as 1−MAPE, where higher is better) is as follows.
[0092] Prophet: CV score=0.918 (MAPE=8.2%)
[0093] ETS: CV score=0.905 (MAPE=9.5%)
[0094] LSTM: CV score=0.899 (MAPE=10.1%)
[0095] ARIMA: CV score=0.877 (MAPE=12.3%)
[0096] XGBoost: CV score=0.842 (MAPE=15.8%)
[0097] Ranking result: 1st place is Prophet, 2nd place is ETS, 3rd place is LSTM, 4th place is ARIMA, 5th place is XGBoost.
[0098] Setting N=3, the top 3 ranked methods are selected: Prophet, ETS, and LSTM. The forecast values respectively generated by these 3 methods for the next 3 months are as follows.
[0099] Prophet forecast: 10,200 boxes, 11,500 boxes, 9,800 boxes
[0100] ETS forecast: 9,800 boxes, 11,000 boxes, 9,500 boxes
[0101] LSTM forecast: 10,500 boxes, 11,800 boxes, 10,200 boxes
[0102] The aggregated forecast value is calculated using the arithmetic mean as follows.Month 1: (10,200+9,800+10,500) / 3=10,167 boxesMonth 2: (11,500+11,000+11,800) / 3=11,433 boxesMonth 3: (9,800+9,500+10,200) / 3=9,833 boxesFor SKU-002 (mineral water, 600 ml), the ranking result may be: 1st place is XGBoost (CV=0.935), 2nd place is ARIMA (CV=0.921), and 3rd place is Prophet (CV=0.908). This ranking is entirely different from that of SKU-001 since the sales pattern of mineral water (which is heavily influenced by weather temperature and has a different seasonality) differs from that of a carbonated beverage. The system 100 selects, individually for each SKU, the most suitable combination of methods.FIG. 3 is a flowchart illustrating the operation of a data quality inspection module according to an embodiment of the present invention.
[0105] Referring to FIGS. 1 and 3, in step S301, a quality diagnosis is performed on the time series data so as to detect one or more data quality issues.
[0106] The data quality inspection module 300 in the system 100 is configured to perform a comprehensive quality scan on the time series data before the time series fusion model module 200 processes the time series data. The data quality inspection module 300 is positioned as a pre-processing stage of the modeling workflow.
[0107] Since data quality issues are identified and disclosed prior to modeling, a user has the opportunity to correct or clean the data, thereby preventing poor-quality data from entering the model training stage and causing unstable model training or biased forecasts.
[0108] In some embodiments, the one or more data quality issues include at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field. Examples are as follows.
[0109] (a) Missing Values: data rows in which a field is not filled in. The system calculates the missing rate of each field (i.e., number of rows with missing values÷total number of rows×100%). Missing values may cause insufficient model training due to a reduced sample size or may introduce bias due to an improper imputation strategy.
[0110] (b) Duplicate Rows: records in which the values of all fields are identical, typically arising from repeated execution of an ETL (Extract-Transform-Load) pipeline. Duplicate rows cause the model to overlearn from the duplicated samples.
[0111] (c) Suspected ID Columns: a field in which the number of unique values is equal to or close to the total number of rows (for example, an order ID: order_id or a transaction ID: transaction_id). Such a field serves only as a unique identifier of a record and has no informational value for forecasting; if mistakenly included in the model, it will lead to severe overfitting.
[0112] (d) High Cardinality Columns: a categorical field containing an excessive number of distinct values (for example, a field containing 42,000 postal codes). During one-hot encoding, t an excessive number of dummy variables is generated to increase the model dimensionality and the risk of overfitting.
[0113] (e) Highly Correlated Columns: two fields whose Pearson correlation coefficient has an absolute value exceeding a predetermined threshold (for example, 0.95). Highly correlated fields carry redundant information, causing multicollinearity, which renders the model coefficient estimates unstable.
[0114] Referring further to FIG. 3, in step S303, a data quality report is generated, and the data quality report identifies the one or more data quality issues and is provided to a user.
[0115] For example, the data quality report presents the type, location, and severity of each issue through visualized charts (such as a missing-value heat map, a correlation matrix chart, and a high-cardinality histogram) and a textual summary, for the user's reference prior to modeling.
[0116] The effect of this function is that it enables business personnel who lack expertise in data science to intuitively understand the issues present in the data and determine corrective measures accordingly, thereby improving data quality and, in turn, improving model stability.
[0117] A specific embodiment is described below to illustrate the complete operational flow of the data quality inspection module 300.
[0118] A retail chain enterprise uploads 100,000 sales records, including the following 9 fields.
[0119] order_id (Order ID), store_id (Store ID), date, product_name (Product Name), sales_qty (Sales Quantity), price, promotion_discount (Promotion Discount), weather_temp (Weather Tempature), and competitor_price (Competitor Price).
[0120] The quality report generated by the data quality inspection module 300 is as follows.
[0121] Missing values: the promotion_discount field has a missing rate of 12.3% (12,300 rows); and the weather_temp field has a missing rate of 3.1% (3,100 rows).
[0122] Duplicate rows: 2,340 fully duplicate records were found (2.34% of the total data).
[0123] Suspected ID field: the order_id field has a unique value count of 100,000 (a 100% unique value ratio) and is flagged as a suspected identifier field.
[0124] High cardinality: the product_name field contains 8,500 distinct values (a unique-value count exceeding 1,000) and is flagged as high-cardinality.
[0125] Highly correlated: the Pearson correlation coefficient between price and competitor_price is 0.97 (>0.95), and the fields are flagged as highly correlated.
[0126] Recommendations of the report: deleting the 2,340 duplicate rows; excluding order_id from the modeling features; considering converting product_name into a coarser-grained category (such as a brand or product-category level) to reduce cardinality; and retaining only one of price and competitor_price, or instead using the difference between the two (price_gap=price−competitor_price) as a new feature.
[0127] FIG. 4 is a flowchart illustrating the operation of a deep meta-learner module according to an embodiment of the present invention.
[0128] Referring to FIG. 4, in step S401, raw data is converted into a textual representation.
[0129] A large language model primarily processes text, and therefore raw data (which may be a numerical table, an image, or audio) must first be converted into a text format that the large language model can understand.
[0130] In some embodiments, the system can process various forms of enterprise data, rather than being limited to structured numerical data, thereby expanding the scope of data sources available to the system.
[0131] In some embodiments, the raw data includes non-textual data, and the deep meta-learner module is configured to convert the non-textual data into the textual representation, wherein the non-textual data includes at least one of the following: numerical data, image data, or audio data.
[0132] (a) Numerical data: structured numerical data is converted into a semantically meaningful textual description. For example, the table record “sales_qty: 15000, month: 2024-01, and yoy_growth: 0.12” is converted into “The sales volume for January 2024 was 15,000 units, representing a 12% increase year-over-year, placing it at approximately the 75th percentile historically.” Statistical context (such as percentile rank or comparison with the historical average) may be added during the conversion to enrich the semantics.
[0133] (b) Image data: image recognition techniques (such as a convolutional neural network (CNN), a Vision Transformer (ViT), or a pretrained multimodal model such as GPT-4 Vision) are configured to convert image content into a textual description. For example, a photograph of a shelf is converted into “The shelf displays three rows of carbonated beverages: the top row contains 330 ml cans of Brand A, the middle row contains 500 ml bottles of Brand B, and the bottom row is sold out.”
[0134] (c) Audio data: speech recognition techniques (such as the Whisper model or the Google Speech-to-Text API) are configured to convert audio content into text. For example, a recording of a customer service call is converted into a verbatim transcript.
[0135] Referring further to FIG. 4, in step S403, the textual representation is embedded into a prompt.
[0136] The converted textual description is combined with the forecasting task instructions into a complete prompt. The structure of the prompt may include: a system instruction (defining the role and the output format), a data description, a forecasting instruction, and an output format specification.
[0137] Referring further to FIG. 4, in step S405, the prompt is provided to the large language model, and a forecast output is received from the large language model.
[0138] The system feeds the prompt into the large language model and receives the forecast result generated thereby. Large language models that may be used include the GPT-4 series (OpenAI), the Claude series (Anthropic), the Gemini series (Google), and the LLaMA series (Meta, open-source). The system may invoke an external model service through an API or may deploy an open-source model locally.
[0139] In some embodiments, the deep meta-learner module is configured to utilize knowledge acquired by the large language model from a plurality of different domains to perform a cross-domain inference on the raw data so as to generate the forecast output.
[0140] Specifically, the deep meta-learner module 400 utilizes knowledge acquired by the large language model from a plurality of different domains to perform a cross-domain inference on the raw data so as to generate the forecast output. Cross-domain inference refers to the patterns and knowledge that a large language model has learned, during pretraining, from a domain A (for example, historical analysis reports in the retail industry) being applicable to a domain B (for example, sales forecasting in the food and beverage industry). For example, an LLM that has learned the pattern “sales increase by 20-30% before a holiday” from retail industry analysis reports can apply this knowledge when asked to forecast sales for the food and beverage industry.
[0141] In detail, a conventional machine learning model can learn only “patterns present in the training data,” whereas a large language model can leverage knowledge learned from a massive corpus of multi-domain text to assist in inference, thereby breaking through the limitations of training data confined to a single domain.
[0142] In some embodiments, the deep meta-learner module 400 is configured to generate the forecast output under a condition of less than a predetermined amount of training data. The large language model synthesizes information from a plurality of different domains together with the raw data as a basis for generating the forecast output. For example, a conventional ARIMA model requires at least 30 or more monthly observation values to be effectively trained, whereas the deep meta-learner module 400 can generate a forecast output with as few as 6 monthly observation values.
[0143] In some embodiments, a system including the deep meta-learner module 400 enables the system to provide a forecast for a forecast target having very little historical data (such as a new product that has been on the market for only 2 months, or a newly opened store), thereby filling the gap that a conventional model is entirely unable to address due to insufficient data volume.
[0144] A specific embodiment is described below to illustrate the complete operational flow of the deep meta-learner module 400.
[0145] Assume that a B2B SaaS startup has been established for only 6 months and has only 6 monthly revenue data points: NT$120,000 in August, NT$ 180,000 in September, NT$250,000 in October, NT$310,000 in November, NT$280,000 in December, and NT$350,000 in January. The company wishes to forecast its monthly revenue for the upcoming quarter (February through April).
[0146] Step 1 (converting data to text): the system converts the numerical data of the company into a textual description: “This is a B2B SaaS company located in Taipei and established in July 2024, and the B2B SaaS company primarily serves small and medium-sized manufacturing clients. Monthly revenue over the past 6 months has shown a growth trend: NT$120,000 in August, NT$180,000 in September (+50%), NT$250,000 in October (+39%), NT$310,000 in November (+24%), NT$280,000 in December (−10%, due to a delayed payment from a major client), and NT$350,000 in January (+25%). The number of clients grew from 3 to 15, with an average growth of approximately 2 new clients per month.”
[0147] Step 2 (embedding into a prompt): the system automatically composes a prompt: “[System instruction] You are an enterprise revenue analyst. Please forecast the monthly revenue for the next 3 months based on the following company data. [Data] (the textual description from step 1 above) [Instruction] Please forecast the monthly revenue for February, March, and April of 2025, and explain the basis for your forecast. Please output the result in JSON format.”
[0148] Step 3 (LLM forecasting): the large language model, based on its cross-domain knowledge (for example: the typical monthly revenue growth rate of B2B SaaS companies is approximately 10-20%; Q1 typically sees more new contracts signed due to the corporate annual budget approval cycle; and the Lunar New Year holiday in Taiwan may delay contract signing by 1-2 weeks in February), produces a forecast output: NT$380,000-420,000 in February, NT$440,000-480,000 in March, and NT$470,000-520,000 in April. This forecast is generated by the large language model based on information from multiple domains, including SaaS industry analysis, enterprise procurement behavior research, and the impact of Taiwanese holidays on business, together with the raw data of only 6 months.
[0149] FIG. 5 is a schematic diagram illustrating the architecture of a system for analyzing enterprise data according to another embodiment of the present invention.
[0150] Referring to FIG. 5, the drift detection module 500 in the system is configured to monitor a statistical distribution drift between training data and forecast data. The drift detection module 500 may include a target drift submodule 510 and a feature drift submodule 520. The effect of the drift detection module 500 is that, by simultaneously monitoring the distribution drift of the target variable and of the prediction features, the system can comprehensively detect two major sources of model performance degradation, that is, changes in the forecast target itself (such as a change in sales distribution due to a change in consumer habits) and changes in the external environment (such as a change in the price feature distribution due to a competitor's price cut), thereby making model operation decisions more precise.
[0151] In some embodiments, the target drift submodule 510 is configured to utilize a statistical method to detect a first distribution drift of a target variable between the training data and the forecast data. The target variable refers to the field predicted by the model (such as sales volume, revenue, or number of visitors). The first distribution drift refers to a significant change in the statistical distribution (including the mean, variance, quantiles, and so forth) of the target variable between the training period and the forecast period.
[0152] In some embodiments, the feature drift submodule 520 is configured to utilize the statistical method to detect a second distribution drift of one or more prediction features between the training data and the forecast data. A prediction feature refers to an input variable used by the model to make a forecast. For example, the input variable may be whether the distribution of prices or weather temperatures has changed, that is, whether the second distribution drift occurs.
[0153] FIG. 6 is a flowchart illustrating the operation of a feature drift submodule according to an embodiment of the present invention.
[0154] Referring to FIG. 6, in step S601, the one or more prediction features are ranked according to a feature importance corresponding to each of the one or more prediction features, so as to obtain a feature importance ranking.
[0155] In some embodiments, the feature drift submodule 520 is further configured to: rank the one or more prediction features according to a feature importance corresponding to each of the one or more prediction features, so as to obtain a feature importance ranking. For example, the feature importance may be calculated by a built-in function of a model (such as XGBoost) to reflect the degree of contribution of each feature to the forecast result.
[0156] In step S603, a predetermined quantity of prediction features having a top ranking is selected from the feature importance ranking, and prediction features of a date-time type are excluded therefrom to form a feature subset to be monitored.
[0157] For example, only a number of features having the highest importance (for example, the top 10) may be selected for monitoring, while fields of a date-time type are excluded (because a date increases naturally over time, detecting drift therein has no technical significance). Finally, in step S605, the second distribution drift is detected separately for each prediction feature in the feature subset to be monitored.
[0158] When the feature drift submodule 520 is included in the system, the system can focus drift monitoring on the most important features, thereby effectively detecting the drift that has the greatest impact on the model while avoiding the waste of computational resources that would result from monitoring unimportant features. Excluding date-time fields, in turn, eliminates meaningless drift alerts that would inevitably occur.
[0159] In some embodiments, the statistical method includes calculating a population stability index (PSI) value, and the target drift submodule and the feature drift submodule each calculate the PSI value to respectively quantify the first distribution drift and the second distribution drift.
[0160] In some embodiments, the steps for calculating the PSI are as follows: (1) dividing the variable values into K intervals (for numerical types, equal intervals or equal frequency bins may be used; for categorical types, each category constitutes one interval); (2) calculating the proportion P_train(i) of each interval in the training data and the proportion P_new(i) of each interval in the forecast data; and (3) PSI=Σ[P_new(i)−P_train(i)]×ln[P_new(i) / P_train(i)], for i=1, . . . , K. The PSI value has a range of [0, +∞), with a larger value indicating more severe drift.
[0161] Specifically, the PSI provides a unified and quantifiable drift measurement metric applicable to both numerical and categorical features, enabling the degree of drift across different features and different points in time to be objectively compared.
[0162] In some embodiments, the drift detection module 500 is configured to classify the first distribution drift or the second distribution drift, based on the PSI value, as one of the following categories: a first category corresponding to the PSI value being less than a first threshold value; a second category corresponding to the PSI value being greater than or equal to the first threshold value and less than a second threshold value; and a third category corresponding to the PSI value being greater than or equal to the second threshold value.
[0163] In some embodiments, the first threshold value is 0.1 and the second threshold value is 0.2. PSI<0.1 is the first category (stable distribution); 0.1≤PSI<0.2 is the second category (i.e., a slight shift requiring attention); and PSI≥0.2 is the third category (i.e., a significant shift requiring action). In a highly sensitive scenario (e.g., financial transaction forecasting), the threshold values may be lowered to 0.05 and 0.10.
[0164] In detail, by converting the continuous PSI value into a discrete three-tier classification, the system can adopt different response strategies according to the different severity levels (for example, no action for the first category, an alert for the second category, and triggering automatic retraining for the third category), thereby achieving tiered management.
[0165] Referring further to FIG. 5, in some embodiments, the system 100 further includes an automated operation module 530 coupled to the drift detection module 500 via a wired or wireless communication technology.
[0166] FIG. 7 is a flowchart illustrating the operation of an automated operation module according to an embodiment of the present invention.
[0167] Referring to FIG. 7, in step S701, a drift alert signal is received from the drift detection module. The drift alert signal indicates that the first distribution drift or the second distribution drift exceeds a predetermined threshold value.
[0168] In one embodiment, the predetermined threshold value corresponds to the aforementioned second threshold value (for example, PSI≥0.2, i.e., the third category), indicating that the distribution has undergone a significant shift. In another embodiment, for an application scenario with a lower risk tolerance (for example, financial transaction forecasting or medical drug demand forecasting), the predetermined threshold value may be set to correspond to the first threshold value (for example, PSI≥0.1, i.e., the second category) to implement a more conservative monitoring strategy. The drift alert signal may include the following information: the name of the variable that triggered the drift (for example,“weather temperature” or “daily sales amount”), the PSI value of that variable (for example, 0.35), the category corresponding to that PSI value (for example, the third category), and a detection timestamp. In one embodiment, the drift detection module automatically performs drift detection according to a predetermined scheduling cycle (for example, daily, weekly, or monthly), and when any detection result shows that the PSI value of at least one variable exceeds the predetermined threshold value, the drift alert signal is generated and transmitted to the automated operation module. In another embodiment, the drift alert signal may also be accompanied by a notification transmitted to a user (for example, via email, instant messaging, or an in-system notification), informing the user that drift has occurred and that an automated retraining process is about to be initiated.
[0169] In step S703, in response to the drift alert signal, a model retraining process is automatically performed based on updated training data. That is, the fusion model is automatically retrained using the updated training data.
[0170] First, the automated operation module 530 collects updated training data. The “updated training data” refers to a dataset that includes new data accumulated from the cutoff date of the original training data up to the current point in time. In one embodiment, if the original model was trained on data from January through June 2024, and the drift alert signal is generated in December 2024, the updated training data may be data from April through December 2024 (adopting a rolling window strategy, discarding the earliest data so that the training data more closely tracks the current data distribution). In another embodiment, the updated training data may be the complete data from January through December 2024 (adopting an expanding window strategy, retaining all historical data). The choice of training window strategy may be preset by the user or may be automatically determined by the system based on the severity of the drift. For example, when the PSI value is extremely high (for example, PSI≥0.5), the system may automatically adopt a shorter rolling window to avoid having an excessive amount of old data dilute the learning of new patterns.
[0171] Next, the automated operation module 530 re-executes the complete process of the time series fusion model module 200 using the updated training data. This process includes re-performing the plurality of time series forecasting methods on the updated training data, re-performing the cross-validation ranking for each forecast target, and re-selecting the top N ranked methods for aggregated forecasting. In one embodiment, the forecasting methods, the cross-validation configuration, and the value of N used during retraining are the same as those used during the original training, so as to ensure comparability between the models before and after retraining. In another embodiment, the system may automatically adjust the cross-validation configuration during retraining, for example, by increasing the number of rolling steps due to an increase in data volume, or by removing a particular type of method from the method repository due to the drift detection result showing that the performance of the particular type of method has consistently been poor.
[0172] Subsequently, the automated operation module 530 performs a validation procedure on the retrained model. The validation procedure evaluates the forecasting performance of the new model using a holdout validation set, so as to confirm that the cross-validation score of the new model is better than or not worse than that of the old model. In one embodiment, the validation criterion is that the overall MAPE of the new model is not higher than the MAPE of the old model plus a tolerance margin value (for example, 2 percentage points). If the new model fails validation, the system may choose to keep the old model in operation and send a notification to the user explaining the reason for the unsuccessful retraining and recommended manual intervention measures.
[0173] In step S705, after completion of the model retraining process, a retrained model is automatically deployed to replace the previous model. That is, once the new model passes validation, it is automatically deployed to replace the old model.
[0174] In some embodiments, after the retrained model passes validation, the automated operation module 530 automatically deploys the retrained model to replace the previous model. This deployment replacement may employ a blue-green deployment strategy: the new model is first deployed in a standby environment, and once confirmed to be operating normally, traffic is then switched to the new model, thereby avoiding service interruption during the deployment process. In another embodiment, a canary deployment strategy may be employed: a small portion of the forecast requests (for example, 10%) is first routed to the new model, and after observing stable performance over a period of time, all traffic is gradually switched to the new model. After the deployment is complete, the system records a complete log of this retraining event, including the triggering cause (the content of the drift alert signal), the range of the updated training data, the validation score of the new model, and the deployment time, for subsequent audit and tracking purposes.
[0175] The foregoing method fully automates a model update process that conventionally required manual judgment and manual execution by a data scientist. The system can automatically complete retraining and deployment upon detecting drift without manual intervention, ensuring that the model consistently maintains good forecasting performance.
[0176] A specific embodiment is described below to illustrate the complete operational flow of the drift detection module 500 in cooperation with the automated operation module 530.
[0177] A sales forecasting model of an e-commerce platform was trained using data from January through June 2024 and then deployed. The model uses 30 features. The system automatically performs drift detection weekly, and the feature drift submodule selects the top 10 non-date-time features according to feature importance ranking for monitoring.
[0178] The detection result for December 2024 is as follows.
[0179] Target drift (daily sales amount): the training period had a mean of NT$500,000 and a standard deviation of NT$150,000; the most recent 30 days had a mean of NT$350,000 and a standard deviation of NT$220,000; PSI=0.23→third category.
[0180] Feature drift (top 10): promotion intensity PSI=0.05→first category; historical sales volume PSI=0.08→first category; product price PSI=0.03→first category; weather temperature PSI=0.35→third category (entering winter); day of the week PSI=0.01→first category; competitor price PSI=0.22→third category (competitor price cut); inventory level PSI=0.12→second category; holiday flag PSI=0.02→first category; membership tier PSI=0.07→first category; and advertising impressions PSI=0.15→second category.
[0181] The drift detection module 500 issues a drift alert signal (the target variable PSI=0.23, the weather temperature PSI=0.35, and the competitor price PSI=0.22 all reach the third category). Upon receiving the signal, the automated operation module 530 automatically re-executes the complete process of the time series fusion model module 200 (including cross-validation ranking and Top-N aggregation) using the updated data from April through December 2024. After the new model passes validation, it is automatically deployed to replace the old model.
[0182] In some embodiments, the conversational modeling interface module 600 is configured to receive modeling configuration information from a user through a natural language conversational interface and initiate a modeling process based on the modeling configuration information.
[0183] FIG. 8 is an interaction flowchart illustrating a conversational modeling interface module according to an embodiment of the present invention.
[0184] Referring to FIG. 8, in step S801, a forecasting requirement input by a user in natural language is received. The user does not need to understand any specialized machine learning terminology or operational procedure and only needs to describe the forecasting target using everyday language.
[0185] For example, a marketing manager of a supermarket chain may input: “I want to use the past two years of branch store sales data to forecast the sales of next month for each branch store.” As another example, a production supervisor in a manufacturing business may input: “Please use the past half-year of production line sensor data to forecast which equipment may fail next week.” As a further example, an operations staff member of an e-commerce platform may input: “Use the order data around Double Eleven (November 11) of last year to forecast the hourly order volume on Double Eleven of this year.” The form, length, and wording of the foregoing inputs are not restricted, and the system can accept and subsequently parse all such inputs.
[0186] In step S803, the system utilizes a large language model to parse the user's natural language input to automatically identify the following modeling parameters.
[0187] Specifically, the system determines, through intent recognition, that the user's core requirement is to “build a forecasting model,” and then extracts key information from the input text through named entity extraction, and maps the extracted information to predefined modeling parameter fields through slot filling. Taking the aforementioned marketing manager's input as an example, the parsing result of the system is as follows: the forecasting target is sales amount (sales_amount), the historical data range is the past two years (past 2 years), the forecast period is next month (next month), the grouping dimension is store (store_id), and the temporal granularity is monthly (monthly). In one embodiment, if a user inputs “forecast the number of daily visitors for next week,” the system will parse the forecasting target as visitor count (visitor_count), the forecast period as next week (next week), and the temporal granularity as daily (daily). In another embodiment, if the meaning of the user's input is ambiguous (for example, the user inputs only “help me forecast sales” without specifying a time range or dimension), the system flags the missing parameters as pending confirmation and inquires further with the user in the next step.
[0188] In step S805, the system determines whether confirmation or supplementary information is needed from the user. If any modeling parameter is missing or ambiguous, the system inquires further through the conversational interface. The system internally maintains a modeling parameter checklist, which includes at least the following required fields: forecasting target, historical data range, forecast period, grouping dimension, and temporal granularity. If any required field cannot be successfully extracted from the user's input, or if the extracted result is ambiguous (for example, the user mentions both “month” and “week,” resulting in an unclear temporal granularity), the system will inquire further with the user through the conversational interface. The manner of inquiry is to generate a natural language question directed at the missing or ambiguous field for confirmation. For example, the system may ask: “Are there any external factors (such as promotional activities or weather data) that need to be included in the model?” As a further example: “Does the sales data you mentioned refer to sales amount or sales quantity?” As a further example: “Would you like the forecast to be performed on a daily basis or a weekly basis?” This inquiry process may proceed over one or more rounds until all required parameters have been confirmed. In one embodiment, the system may also suggest a default value to the user, for example: “No temporal granularity was specified; it is recommended to use daily data for higher forecast resolution —do you agree?”
[0189] In step S807, upon receiving the instruction generated by user's confirmation, the system transmits the completed modeling configuration information to the data quality inspection module 300 and the time series fusion model module 200, automatically initiating the complete modeling process.
[0190] Specifically, in step S807, after the user has confirmed all of the modeling parameters, a confirmation instruction may be generated by pressing a confirmation button provided by the conversational modeling interface module 600; the system receives the confirmation instruction, and, based on the confirmation instruction, packages the completed modeling configuration information into a structured modeling configuration file (for example, in JSON format), including such parameters as the forecasting target field name, the start and end times of the historical data, the start and end times of the forecast period, the grouping dimension field name, the temporal granularity, and a list of external feature field names. The system then transmits the modeling configuration file to the data quality inspection module 300 to initiate a quality diagnosis, and, after the quality diagnosis is complete, transmits it to the time series fusion model module 200 to initiate the multi-method fused forecasting process. This series of modeling steps is automatically initiated, requiring no manual operation by the user. In one embodiment, the system displays progress status to the user through the conversational interface after the modeling process is initiated, for example: “Performing data quality check . . . 3 issues to be corrected have been found”→“Executing 5 forecasting methods for 48 stores . . . ”→“Cross-validation ranking complete, performing Top-3 fusion . . . ”→“Modeling complete.”
[0191] In step S809, after modeling is complete, the system presents the forecast results, model performance metrics, and visualized charts to the user through the conversational interface.
[0192] Specifically, the presented content may include at least one of the following.
[0193] (a) The forecast value for each forecast target (for example, “the forecast sales amount for the Xinyi flagship store next month is NT$2,850,000”).
[0194] (b) The model performance metric (for example, “the overall MAPE is 8.7% indicating that the average deviation between the forecast values and the actual values is approximately 8.7%”).
[0195] (c) The visualized chart (for example, a line chart comparing historical actual values and forecast values, a bar chart of forecast rankings across stores, and a band chart of forecast confidence intervals).
[0196] (d) The explanation of the model composition (for example, “the Xinyi flagship store uses a fused forecast of Prophet+ETS+LSTM; the Gongguan school-district store uses a fused forecast of XGBoost+ARIMA+Prophet”). The user may further inquire through the conversational interface, for example: “Why is the forecast for the Gongguan store lower than last month?” The system may respond by incorporating the feature importance analysis of the model: “The main reason is that the end of the school semester has reduced foot traffic from nearby students, and the contribution of the weather temperature feature has decreased by 15%.”
[0197] In one embodiment, the natural language processing techniques that may be used by the conversational modeling interface module 600 include, but are not limited to: intent recognition, named entity extraction, and dialogue state tracking.
[0198] When the system includes the conversational modeling interface module 600, the technical threshold for building a forecasting model can be significantly lowered, enabling a business user lacking specialized expertise in algorithm selection, feature engineering, or hyperparameter tuning to independently complete the configuration and deployment of a forecasting model.
[0199] A specific embodiment is described below to illustrate the complete operational flow of the conversational modeling interface module 600.
[0200] A user inputs: “I want to use the past two years of branch store sales data to forecast the sales of next month for each branch store, taking into account weather and promotion factors.” The system uses a large language model to parse the foregoing input into modeling parameters: forecasting target=sales_amount, historical range=2 years, forecast period=next month, dimension=store, external features=weather+promotion, temporal granularity=monthly. The system asks: “Would you like to use daily data or weekly data?” The user answers “daily.” The system automatically initiates the complete modeling process: the data quality check module 300 first scans the data, the time series fusion model module 200 then performs the multi-method fused forecasting, and finally the drift detection module 500 begins continuous monitoring.
[0201] FIG. 9 is a flowchart illustrating a method for analyzing enterprise data according to an embodiment of the present invention.
[0202] In some embodiments, the method for analyzing enterprise data of FIG. 9 is applicable to the system 100 for analyzing enterprise data.
[0203] Referring to FIG. 9, in step S901, time series data associated with a plurality of forecast targets is received.
[0204] In some embodiments, prior to performing the time series forecasting methods, a data quality inspection is performed on the time series data to detect at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field.
[0205] Referring to FIG. 9, in step S903, a plurality of time series forecasting methods is performed on the time series data.
[0206] In some embodiments, each of the time series forecasting methods has a mutually different forecasting characteristic.
[0207] Referring to FIG. 9, in step S905, for each of the forecast targets, a ranking is performed based on a cross-validation score calculated for each of the time series forecasting methods.
[0208] Referring to FIG. 9, in step S907, based on the ranking, a predetermined quantity (N) of the time series forecasting methods ranked at the top is selected from among the time series forecasting methods, and an aggregated forecast value is calculated for the forecast values respectively generated by the predetermined quantity (N) of the time series forecasting methods ranked at the top. The aggregated forecast value constitutes a final fused forecast result.
[0209] In some embodiments, after the aggregated forecast value is generated, a population stability index (PSI) value between training data and new forecast data is calculated.
[0210] In some embodiments, an automated model retraining process is triggered when the PSI value exceeds a predetermined threshold value.
[0211] An embodiment is described below to illustrate the end-to-end operational flow of the system 100 for analyzing enterprise data.
[0212] Scenario: a chain coffee brand forecasts the daily number of cups of coffee sold at 50 stores across taiwan for the next three months.
[0213] Step 1 (conversational modeling setup): the user inputs through the conversational interface: “I want to forecast the daily number of cups of coffee sold at each store for the next 3 months.” After parsing, the system responds: “I will build a time series fusion model using daily temporal granularity and store as the grouping dimension. Should weather and promotion factors be included in the model?” The user answers “yes.”
[0214] Step 2 (data quality inspection): the user uploads 2 years of daily sales data for the 50 stores. The data quality inspection module 300 automatically scans the data and reports the following issues: the weather_temp field has a missing rate of 3.2%; 1,847 fully duplicate records were found; store_id is flagged as a suspected ID field; and the correlation coefficient between competitors_nearby and store_area_sqm is 0.93. A quality report is generated for the user to confirm and correct.
[0215] Step 3 (time series fusion forecasting): the time series fusion model module 200 simultaneously performs 5 forecasting methods (ARIMA, ETS, Prophet, LSTM, and XGBoost) for each store, performs a rolling window cross-validation, ranks the methods individually for each store, and takes the top 3 (N=3) for fusion by arithmetic mean. For example:The Xinyi flagship store: Prophet (CV=0.92)+ETS (CV=0.89)+LSTM (CV=0.87)→fused forecast.The Gongguan school-district store: XGBoost (CV=0.94)+ARIMA (CV=0.91)+Prophet (CV=0.88)→fused forecast.Step 4 (LLM-assisted forecasting): for the “Nangang new store,” which opened only 2 months ago, the historical data comprises only 60 days, which is insufficient to train a conventional model. The deep meta-learner module 400 converts the data for this store into text: “Located in Nangang, Taipei, with an area of 149 square meters with 3 nearby competitors, an average daily sales of 380 cups in the first month of opening and 420 cups in the second month. Trade area characteristics: predominantly office workers on weekdays and shoppers on weekends,” which is embedded into a prompt. The large language model generates a forecast based on its cross-domain knowledge (for example, a 3-to-6 month stabilization period for a new coffee shop and consumption characteristics of office workers in the Nangang trade area) together with the raw data.Step 5 (model deployment and drift monitoring): after the model is deployed, the feature drift submodule 520 of the drift detection module 500 selects the top 10 features (excluding date fields) according to feature importance ranking, to form the feature subset to be monitored. The weather_temp feature is detected to have a PSI=0.31 (third category) since the distribution of temperature has changed substantially with the onset of summer.
[0218] Step 6 (automatically triggering retraining): upon receiving the drift alert signal, the automated operation module 530 automatically re-executes the fusion modeling process using the most recent dataset, which includes summer data. After the new model passes validation, it is automatically deployed to replace the old model, without requiring any intervention by the user.
[0219] In some embodiments, industry scenarios to which the present invention may be applied include, but are not limited to: the retail industry (sales / inventory forecasting), the manufacturing industry (equipment failure / yield rate forecasting), the financial industry (exchange rate / stock price / credit risk forecasting), the energy industry (power demand / power generation forecasting), the logistics industry (delivery volume / warehousing demand forecasting), the healthcare industry (patient visit volume / pharmaceutical demand forecasting), and the telecommunications industry (network traffic / customer churn forecasting).
[0220] In summary, in the system and method proposed by the embodiments of the present invention, the time series fusion model module individually performs, for each forecast target, a plurality of time series forecasting methods having mutually different forecasting characteristics, ranks the methods based on cross-validation scores, and selects the top N ranked methods for aggregation, such that the final fused forecast result is more robust than that of any single method. The data quality inspection module detects issues such as missing values, duplicate rows, suspected identifier fields, high-cardinality fields, and highly correlated fields prior to modeling and generates a report therefor, so that poor-quality data can be corrected before entering model training. The deep meta-learner module converts raw data into a textual representation and provides it to a large language model through a prompt to perform cross-domain inference, such that the system can still generate a forecast output in a scenario with insufficient training data. The drift detection module quantifies the distribution drift of the target variable and of the prediction features using a population stability index and classifies the drift into three tiers, and, in cooperation with the automated operation module, automatically performs model retraining and deployment replacement when drift exceeds a predetermined threshold value, such that the model performance does not degrade due to environmental changes. The conversational modeling interface module receives modeling configuration information through a natural language conversation and initiates the modeling process, enabling a user lacking specialized data science expertise to complete the model configuration. Accordingly, the present invention achieves a complete forecasting lifecycle management encompassing quality control prior to modeling, multi-method fusion during modeling, and continuous monitoring after modeling.
[0221] Based on the foregoing description, it is apparent that various techniques may be used to implement the concepts described in the present application without departing from the scope of those concepts. Moreover, although the concepts have been described with specific reference to certain embodiments, a person of ordinary skill in the art will recognize that changes may be made in form and detail without departing from the scope of those concepts. As such, the described embodiments are to be considered in all respects as illustrative and not restrictive. It should also be understood that the present application is not limited to the particular embodiments described above, but rather that many rearrangements, modifications, and substitutions may be made without departing from the scope of the present invention.
Claims
1. A system for analyzing enterprise data, comprising:a processing device;a storage device, coupled to the processing device and configured to store a plurality of instructions, the instructions defining a time series fusion model module; andwhen the instructions are executed by the processing device, the time series fusion model module is configured to:receive time series data associated with a plurality of forecast targets;perform a plurality of time series forecasting methods on the time series data, each of the time series forecasting methods having a mutually different forecasting characteristic;rank, for each of the forecast targets, the time series forecasting methods based on a respective cross-validation score calculated for each of the time series forecasting methods; andselect, based on the ranking, from among the time series forecasting methods, a predetermined quantity (N) of the time series forecasting methods having a top ranking, and calculate an aggregated forecast value for forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking, the aggregated forecast value constituting a final fused forecast result.
2. The system of claim 1, wherein the time series forecasting methods comprise at least three of the following types: a statistical model method, a machine learning model method, and a deep learning model method.
3. The system of claim 1, wherein the forecast targets correspond to a plurality of stock keeping units (SKUs), and the time series fusion model module is configured to separately perform the ranking and calculate the aggregated forecast value for each of the stock keeping units.
4. The system of claim 1, wherein each of the cross-validation scores is calculated based on a cross-validation configuration defined by a predetermined experimental setting, and wherein N is a predetermined positive integer.
5. The system of claim 1, wherein calculating the aggregated forecast value comprises calculating an average value of the forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking.
6. The system of claim 1, further comprising a data quality inspection module configured to perform a quality diagnosis on the time series data, before the time series fusion model module processes the time series data, so as to detect one or more data quality issues.
7. The system of claim 6, wherein the one or more data quality issues include at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field.
8. The system of claim 6, wherein the data quality inspection module is further configured to generate a data quality report, and the data quality report identifies the one or more data quality issues and is provided to a user.
9. The system of claim 1, further comprising a deep meta-learner module configured to:convert raw data into a textual representation;embed the textual representation into a prompt; andprovide the prompt to a large language model (LLM) and receive a forecast output from the large language model.
10. The system of claim 9, wherein the raw data includes non-textual data, and the deep meta-learner module is configured to convert the non-textual data into the textual representation, wherein the non-textual data includes at least one of the following: numerical data, image data, or audio data.
11. The system of claim 9, wherein the deep meta-learner module is configured to utilize knowledge acquired by the large language model from a plurality of different domains to perform a cross-domain inference on the raw data, so as to produce the forecast output.
12. The system of claim 9, wherein the deep meta-learner module is configured to produce the forecast output under a condition of less than a predetermined amount of training data, wherein the large language model synthesizes information from a plurality of different domains together with the raw data as a basis for producing the forecast output.
13. The system of claim 1, further comprising a drift detection module configured to monitor a statistical distribution drift between training data and forecast data, the drift detection module comprising:a target drift submodule configured to utilize a statistical method to detect a first distribution drift of a target variable between the training data and the forecast data; anda feature drift submodule configured to utilize the statistical method to detect a second distribution drift of one or more prediction features between the training data and the forecast data.
14. The system of claim 13, wherein the statistical method comprises calculating a population stability index (PSI) value, and the target drift submodule and the feature drift submodule each calculate the PSI value to respectively quantify the first distribution drift and the second distribution drift.
15. The system of claim 14, wherein the drift detection module is configured to classify the first distribution drift or the second distribution drift, based on the PSI value, as one of the following:a first category corresponding to the PSI value being less than a first threshold value;a second category corresponding to the PSI value being greater than or equal to the first threshold value and less than a second threshold value; anda third category corresponding to the PSI value being greater than or equal to the second threshold value.
16. The system of claim 13, wherein the feature drift submodule is further configured to:rank the one or more prediction features according to a feature importance corresponding to each of the one or more prediction features, so as to obtain a feature importance ranking;select, from the feature importance ranking, a predetermined quantity of prediction features having a top ranking, and exclude prediction features of a date-time type therefrom to form a feature subset to be monitored; anddetect the second distribution drift separately for each prediction feature in the feature subset to be monitored.
17. The system of claim 13, further comprising an automated operation module communicatively coupled to the drift detection module, the automated operation module configured to:receive a drift alert signal from the drift detection module, the drift alert signal indicating that the first distribution drift or the second distribution drift exceeds a predetermined threshold value;automatically perform a model retraining process, in response to the drift alert signal, based on updated training data; andautomatically deploy a retrained model to replace a previous model after completion of the model retraining process.
18. The system of claim 1, further comprising a conversational modeling interface module configured to receive modeling configuration information from a user through a natural language conversational interface and initiate a modeling process based on the modeling configuration information.
19. A method for analyzing enterprise data, the method comprising:receiving time series data associated with a plurality of forecast targets;performing a plurality of time series forecasting methods on the time series data, each of the time series forecasting methods having a mutually different forecasting characteristic;ranking, for each of the forecast targets, the time series forecasting methods based on a respective cross-validation score calculated for each of the time series forecasting methods; andselecting, based on the ranking, from among the time series forecasting methods, a predetermined quantity (N) of the time series forecasting methods having a top ranking, and calculating an aggregated forecast value for forecast values respectively produced by the predetermined quantity (N) of the time series forecasting methods having the top ranking, the aggregated forecast value constituting a final fused forecast result.
20. The method of claim 19, further comprising:performing, prior to performing the time series forecasting methods, a data quality inspection on the time series data to detect at least one of the following: a missing value, a duplicate row, a suspected identifier field, a high-cardinality field, or a highly correlated field; andcalculating a population stability index (PSI) value between training data and new forecast data after the aggregated forecast value is produced, and triggering an automated model retraining process when the PSI value exceeds a predetermined threshold value.
