在BigQuery中一键实现百万级时间序列的精准预测与异常检测。
ARIMA_PLUS: Large-scale, Accurate, Automatic and Interpretable In-Database Time Series Forecasting and Anomaly Detection in Google BigQuery
- 模块化设计分离趋势、季节性、节假日等成分,结果可解释。
- 支持100万条时间序列,每秒处理超1.8万条,1.5小时完成计算。
- 用SQL直接调用,自动清洗数据、选模型,适合业务人员使用。
时间序列预测与异常检测在零售、制造、广告和能源等行业中广泛应用。本文提出ARIMA_PLUS框架,解决两大挑战:大规模高效准确预测与异常检测,以及结果可解释性。该框架采用模块化结构,分别建模趋势、季节性、节假日效应和异常,提升可解释性;各模块均引入创新优化,并统一处理预测与异常检测任务。在Monash公开数据集上42个数据集的综合测试表明,其性能优于传统统计模型(如ETS、ARIMA、Prophet)及主流神经网络模型(如DeepAR、N-BEATS、PatchTST、TimeMixer)。系统直接集成于Google Cloud BigQuery查询引擎,通过简单SQL接口运行,自动完成数据清洗与模型选择,依托云资源弹性扩展,可在1.5小时内处理100万条时间序列,吞吐量超过18000条/秒。案例研究展示其生成的业务洞察力与可定制性。
原文摘要 · Abstract (English)
Time series forecasting and anomaly detection are common tasks for practitioners in industries such as retail, manufacturing, advertising and energy. Two unique challenges stand out: (1) efficiently and accurately forecasting time series or detecting anomalies in large volumes automatically; and (2) ensuring interpretability of results to effectively incorporate business insights. We present ARIMA_PLUS, a novel framework to overcome these two challenges by a unique combination of (a) accurate and interpretable time series models and (b) scalable and fully managed system infrastructure. The model has a sequential and modular structure to handle different components of the time series, including holiday effects, seasonality, trend, and anomalies, which enables high interpretability of the results. Novel enhancements are made to each module, and a unified framework is established to address both forecasting and anomaly detection tasks simultaneously. In terms of accuracy, its comprehensive benchmark on the 42 public datasets in the Monash forecasting repository shows superior performance over not only well-established statistical alternatives (such as ETS, ARIMA, TBATS, Prophet) but also newer neural network models (such as DeepAR, N-BEATS, PatchTST, TimeMixer). In terms of infrastructure, it is directly built into the query engine of BigQuery in Google Cloud. It uses a simple SQL interface and automates tedious technicalities such as data cleaning and model selection. It automatically scales with managed cloud computational and storage resources, making it possible to forecast 100 million time series using only 1.5 hours with a throughput of more than 18000 time series per second. In terms of interpretability, we present several case studies to demonstrate time series insights it generates and customizability it offers.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。