TL;DR
TSGM (Time Series Generative Modeling) is a comprehensive, open-source framework designed to generate and evaluate synthetic time series data. By unifying data-driven AI models (like GANs and VAEs) with traditional simulation-based approaches, it provides researchers with a "one-stop shop" to create high-quality synthetic datasets while rigorously testing them for privacy, fairness, and downstream utility.
The Challenge of Time Series Data
Time series data is the backbone of critical fields like healthcare, finance, and predictive maintenance. However, this data is often locked away due to strict privacy regulations or is simply too scarce to train robust deep learning models.
While researchers have proposed various "synthetic data" generators to solve this, the field has been fragmented. There was no unified software ecosystem to compare different methods, and evaluation was often limited to simple "visual similarity." This paper introduces TSGM to bridge these gaps, providing a standardized platform that handles everything from data augmentation to complex privacy audits.
TSGM Architecture and Methods
TSGM is built on the Keras 3 ecosystem, meaning it can seamlessly run on TensorFlow, PyTorch, or JAX backends. Its architecture consists of several key modules designed for end-to-end synthetic data generation and evaluation.
- Generators: Supports Data-driven models (GANs, VAEs, and Diffusion models) and Simulation-based models (where users define the underlying physics or logic, such as the Lotka-Volterra predator-prey equations).
- Architecture Zoo: A repository of pre-tested neural network components (CNNs, RNNs, Transformers) that can be plugged into generators or used for evaluation.
- Augmentations: Includes classic time-series tweaks like "Window Warping," "Slicing and Shuffling," and "Dynamic Time Warping Barycenter Averaging."
- Evaluation Suite: This is the framework's "secret sauce." It evaluates data across multiple dimensions:
- Similarity: How close is the synthetic distribution to the real one?
- Predictive Consistency: If Model A beats Model B on synthetic data, does it also beat it on real data?
- Privacy: Uses Membership Inference Attacks (MIA) to see if the generator "memorized" specific real individuals.
- Fairness: Checks for demographic and predictive parity to ensure synthetic data doesn't bake in biases.
Datasets
The framework provides built-in access to over 140 popular time series datasets, primarily sourced from the UCR and UCI repositories. In their demonstrations, the authors specifically utilized:
- ECG-200: Heartbeat electrical activity for classification.
- NASA C-MAPPS: A turbofan engine degradation dataset used for predictive maintenance.
- UCI Energy: 4.5 months of household energy consumption data.
- Sine-const: A custom synthetic dataset used to verify temporal conditioning.
Key Insights and Ideas
- The "Two Scenarios" Philosophy: The authors argue that evaluation depends on the goal. If you are sharing data, privacy and similarity are paramount. If you are augmenting data, "downstream effectiveness" (does it actually make my model more accurate?) is what matters most.
- Predictive Consistency: This is a novel way to validate synthetic data. Instead of just looking at the data, they look at the rank-order of models trained on it. If synthetic data preserves the performance hierarchy of different architectures, it is a high-quality proxy for the real world.
- Simulation + AI: TSGM is one of the few frameworks to treat simulators (like stochastic processes) and black-box AI (like GANs) as first-class citizens in the same pipeline, allowing for hybrid generation.
Key Results
- Performance Gains: Using TSGM’s "WindowWarp" augmentation on the ECG-200 dataset improved classification accuracy from a baseline of 0.89 to 0.91.
- Hardware Efficiency: The framework is highly optimized. Training a conditional GAN (cGAN) on a TPU was roughly 25x faster than on a standard CPU, demonstrating its readiness for large-scale industrial use.
- Model Selection: Their experiments showed that no single model wins every time. For example, TimeVAE might excel at preserving privacy, while RCGAN might be better for downstream task performance, highlighting the need for TSGM’s multi-metric evaluation.
Limitations and Future Work
- Irregular Sampling: Currently, TSGM is optimized for regular time steps. The authors acknowledge that handling irregularly sampled data (common in medical records) is a priority for future releases.
- Long Sequences: Generating very long, coherent time series remains a methodological challenge that the framework aims to address as new models (like specialized Transformers) are added to the Zoo.
- Watermarking: The authors plan to integrate robust watermarking algorithms to help distinguish between real and synthetic data in the wild, preventing the misuse of generated "fake" data.
Summary updated