TSGBench: Time Series Generation Benchmark

Yihao Ang, Qiang Huang, Yifan Bao, Anthony K. H. Tung, Zhiyong Huang · DOI

TL;DR

This paper introduces TSGBench, the first comprehensive benchmark for Time Series Generation (TSG). It addresses critical limitations in existing TSG research, such as inconsistent dataset selection, ambiguous evaluation metrics, and a lack of holistic model comparison, by providing a standardized framework for evaluating TSG methods.

What Problem Does This Paper Address?

Synthetic Time Series Generation (TSG) is crucial for applications like data augmentation, anomaly detection, and privacy preservation. However, the field faces significant challenges:

  • Inconsistent Benchmarking: Existing TSG methods are often evaluated against similar model types, hindering a holistic understanding of their capabilities.
  • Biased Datasets and Preprocessing: The use of specialized or private datasets, along with varied preprocessing techniques, introduces biases and limits the generalizability of findings.
  • Ambiguous Evaluation Metrics: Evaluation measures are frequently tied to custom networks or specific downstream tasks, making fair and consistent comparisons difficult.

These issues collectively impede progress in TSG by making it hard to reliably assess and compare different generative models.

Methods

TSGBench is designed to provide a unified and comprehensive assessment of TSG methods. Its core components include:

  • Standardized Dataset Pipeline: A curated collection of ten publicly available, real-world time series datasets from diverse domains, along with a standardized preprocessing pipeline to ensure consistency.
  • Comprehensive Evaluation Suite: A suite of twelve evaluation measures covering model-based, feature-based, distance-based metrics, training efficiency, and visualization tools. This includes established measures and novel additions like distance-based metrics (Euclidean Distance and Dynamic Time Warping) to offer more robust assessments.
  • Domain Adaptation (DA) Generalization Test: A novel test to evaluate the generalization capabilities of TSG methods, particularly in scenarios with limited target domain data. This test is structured into three scenarios: single DA, cross DA, and reference DA.

The benchmark also includes a taxonomy of TSG methods based on three foundational generative models: Generative Adversarial Networks (GANs), Variational Autoencoders (VAEs), and Flow-based models.

Datasets

TSGBench utilizes ten publicly available, real-world time series datasets:

  • Dodgers Loop Game (DLG)
  • Stock
  • Stock Long
  • Exchange
  • Energy
  • Energy Long
  • EEG
  • HAPT
  • Air
  • Boiler

Additionally, the HAPT, Air, and Boiler datasets are extended for the generalization testing using Domain Adaptation.

Key Insights and Ideas

  • VAE-based methods show strong performance: VAE-based models (e.g., TimeVAE, TimeVQVAE) consistently perform well across various evaluation measures, particularly in distance-based metrics, and offer good training efficiency.
  • Feature-based measures are consistent: Feature-based measures (MDD, ACD, SD, KD) show a strong correlation, suggesting that a method's ability to capture statistical properties is consistent across these metrics.
  • DS and PS can be unreliable: The paper highlights significant variability and inconsistency in Discriminative Score (DS) and Predictive Score (PS), particularly due to their reliance on post-hoc models and sensitivity to dataset size and sequence length.
  • Distance-based measures offer robustness: Euclidean Distance (ED) and Dynamic Time Warping (DTW) are proposed as more robust and deterministic alternatives to DS and PS for evaluating TSG quality.
  • Generalization is a key challenge: The DA test reveals that while some methods adapt well to new domains, others struggle, highlighting the importance of evaluating generalization capabilities.
  • Dataset characteristics matter: Larger dataset sizes (N) generally benefit TSG methods, while longer sequences (l) introduce more complex temporal dependencies, making generation harder.

Key Results

  • Method Ranking: TimeVQVAE, TimeVAE, COSCI-GAN, RTSGAN, and LS4 consistently rank high across various datasets and evaluation measures. RGAN generally ranks lower.
  • Training Efficiency: TimeVAE and LS4 demonstrate exceptional training efficiency, while GAN-based methods generally exhibit longer training times.
  • Visualization: VAE-based methods, COSCI-GAN, and RTSGAN excel at generating time series that closely mirror the features and patterns of original ones, as shown by t-SNE and distribution plots.
  • Robustness Test: Feature-based, distance-based measures, and C-FID are found to be robust and accurately reflect changes in input time series, unlike DS and PS which show inconsistencies.

Limitations and Future Work

Limitations:

  • The paper acknowledges that while they aim for a comprehensive benchmark, they cannot cover every possible TSG method or dataset.
  • The evaluation of DS and PS, despite their limitations, is still included due to their prevalence in existing literature.
  • The generalization test is applied to a select group of methods and datasets.

Future Work:

  • Continuously integrate emerging TSG methods and new datasets to keep the benchmark up-to-date and challenging.
  • Introduce functionalities for automatic hyperparameter tuning to streamline the benchmarking process and make it more user-friendly.
  • Explore further the impact of dataset characteristics and domain shifts on TSG method performance.

Summary updated

BibTeX
@article{ang2023tsgbench,
  author = {Yihao Ang and Qiang Huang and Yifan Bao and Anthony K. H. Tung and Zhiyong Huang},
  title = {{TSGBench: Time Series Generation Benchmark}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  doi = {10.14778/3632093.3632097},
}
Figure