Towards Time-Series Feature Engineering in Automated Machine Learning for Multi-Step-Ahead Forecasting

Can Wang, Mitra Baratchi, Thomas Bäck, Holger H. Hoos, Steffen Limmer, Markus Olhofer2022 · DOI

TL;DR

This paper tackles the challenge of improving automated machine learning (AutoML) for multi-step time-series forecasting by integrating specialized feature engineering techniques. By combining the AutoML system auto-sklearn with the tsfresh library for time-series feature extraction and introducing automated window size selection, the authors demonstrate significant accuracy gains over traditional ML baselines and even state-of-the-art models like N-BEATS.

What Problem Does This Paper Address?

Time-series forecasting, especially predicting multiple future values (multi-step forecasting), is crucial for many real-world applications like financial markets or energy consumption. While Automated Machine Learning (AutoML) aims to simplify the creation of predictive models by automating pipeline design, existing AutoML systems often lack specialized capabilities for time-series data. Specifically, they don't adequately handle time-series feature engineering or the critical hyperparameter of window size (how much historical data to consider). This gap means that AutoML might not achieve its full potential for time-series tasks, leaving room for improvement by incorporating domain-specific techniques.

Methods

The core of this work is extending auto-sklearn, a popular AutoML framework, to better handle multi-step time-series forecasting. The authors introduce three novel variants:

  1. Auto-sklearn with Automated Window Size Selection (W): This variant automatically optimizes the window size (w) used to extract historical data for predictions.
  2. Auto-sklearn with tsfresh Features (T): This variant leverages tsfresh to extract a rich set of features from the time-series data within a fixed window. It also incorporates feature selection using the Benjamini-Hochberg procedure to identify the most relevant features.
  3. Auto-sklearn with Automated Window Size Selection and tsfresh Features (WT): This is the most comprehensive approach, combining both automated window size selection and tsfresh feature extraction.

These variants replace auto-sklearn's default feature extraction component with these specialized time-series methods. The paper also compares these approaches against traditional ML baselines (GBM, SVM) using both recursive and multi-output strategies, and against a neural network-based model (N-BEATS).

Datasets

The experiments were conducted on 20 benchmarking datasets, comprising a mix of real-world and synthetic time-series data. These datasets were sourced from the CompEngine engine and cover diverse categories such as audio, ecology, economics, finance, medical, and various stochastic processes. The data was split into 67% for training and 33% for testing, preserving the temporal order.

Key Insights and Ideas

  • Feature Engineering is Key for Time-Series AutoML: The study strongly suggests that generic AutoML approaches are insufficient for time-series forecasting. Incorporating specialized feature extraction (like tsfresh) and thoughtful hyperparameter optimization (like window size) is crucial for achieving superior performance.
  • Window Size Matters (and can be automated): The paper reinforces the importance of the window size hyperparameter, a finding from their previous work on single-step forecasting. Automating its selection, as done in the 'W' and 'WT' variants, proves to be a significant advantage.
  • Multi-Output Strategies Shine: The research indicates that multi-output forecasting strategies generally outperform recursive strategies for multi-step tasks, especially when computational budgets are similar. This aligns with existing literature and is a practical consideration for model selection.
  • AutoML Can Outperform SOTA: The proposed AutoML variants, particularly the 'W' variant, demonstrate the ability to outperform not only traditional ML models but also the state-of-the-art N-BEATS model on a substantial number of datasets.

Key Results

The empirical results, summarized in Tables 1 and 2, show that the proposed AutoML methods significantly improve forecasting accuracy.

  • The best AutoML variant ('W') outperformed the best traditional ML baseline (SVM-multioutput) on 14 out of 20 data sets.
  • The 'W' variant also outperformed the N-BEATS model on 14 out of 20 data sets.
  • Across all proposed variants (W, T, WT), they showed lower error than traditional ML baselines on 10, 5, and 5 data sets respectively.
  • Statistical significance tests (Mann-Whitney U-test) confirmed the superiority of the proposed methods on many datasets.

Limitations and Future Work

The authors acknowledge that most AutoML systems are designed for stable datasets. However, time-series data characteristics can change over time. This leads to a natural direction for future work: extending AutoML to handle evolving data streams and online learning scenarios. Additionally, the paper suggests that the automated window size selection technique could be beneficial for time-series classification tasks, which often struggle with determining the optimal window size.

Summary updated

Abstract

Feature engineering is an essential step in the pipelines used for many machine learning tasks, including time-series forecasting. Although existing AutoML approaches partly automate feature engineering, they do not support specialised approaches for applications on time-series data such as multi-step forecasting. Multi-step forecasting is the task of predicting a sequence of values in a time-series. Two kinds of approaches are commonly used for multi-step forecasting. A typical approach is to apply one model to predict the value for the next time step. Then the model uses this predicted value as an input to forecast the value for the next time step. Another approach is to use multi-output models to make the predictions for multiple time steps of each time-series directly. In this work, we demonstrate how automated machine learning can be enhanced with feature engineering techniques for multi-step time-series forecasting. Specifically, we combine a state-of-the-art automated machine learning system, auto-sklearn, with tsfresh, a library for feature extraction from time-series. In addition to optimising machine learning pipelines, we propose to optimise the size of the window over which time-series data are used for predicting future time-steps. This is an essential hyperparameter in time-series forecasting. We propose and compare (i) auto-sklearn with automated window size selection, (ii) auto-sklearn with tsfresh features, and (iii) auto-sklearn with automated window size selection and tsfresh features. We evaluate these approaches with statistical techniques, machine learning techniques and state-of-the-art automated machine learning techniques, on a diverse set of benchmarks for multi-step time-series forecasting, covering 20 synthetic and real-world problems. Our empirical results indicate a significant potential for improving the accuracy of multi-step time-series forecasting by using automated machine learning in combination with automatically optimised feature extraction techniques.
BibTeX
@misc{wang2022towards,
  author = {Can Wang and Mitra Baratchi and Thomas Bäck and Holger H. Hoos and Steffen Limmer and Markus Olhofer},
  title = {{Towards Time-Series Feature Engineering in Automated Machine Learning for Multi-Step-Ahead Forecasting}},
  year = {2022},
  doi = {10.3390/engproc2022018017},
}
Figure