Introduction
Generating synthetic time series data is a critical tool for privacy-preserving data sharing, particularly in sensitive domains like healthcare. However, most existing Generative Adversarial Networks (GANs) assume "utopian" data: complete, fixed-length, and perfectly formatted. Real-world time series (RTS) data is far messier, characterized by variable sequence lengths and high rates of missing values. Crucially, these missing values are often informative—reflecting clinical decisions or patient stability—rather than random noise. This paper introduces RTSGAN, an architecture designed to bridge the gap between idealized models and the complexity of real-world datasets.
The RTSGAN Architecture
The core innovation of RTSGAN is the decoupling of sequence generation from the GAN training process. Instead of generating sequences directly, the framework utilizes a two-stage approach:
- Encoder-Decoder Module: An RNN-based autoencoder compresses variable-length time series into a single, fixed-dimensional latent vector. The decoder is trained to reconstruct the original series from this vector.
- Generation Module: A Wasserstein GAN (WGAN) is trained exclusively on these fixed-dimensional latent vectors. To produce synthetic data, the WGAN generates a new latent vector, which the pre-trained decoder then unfolds into a full time series.
To address the challenge of informative missingness, the authors developed RTSGAN-M. This variant incorporates an Observation Embedding layer that includes missingness masks and time points. It also features a Decide-and-Generate Decoder, which first determines the pattern of missingness for a time step before generating the specific feature values.
Evaluation and Key Results
The framework was evaluated on both complete datasets (Google Stocks, UCI Energy) and highly incomplete clinical datasets (PhysioNet 2012, MIMIC-III). Performance was measured using the "Train on Synthetic, Test on Real" (TSTR) metric, where a predictive model is trained on synthetic data and evaluated on its ability to generalize to real-world data.
- Predictive Accuracy: On the Google Stocks dataset, RTSGAN achieved a Mean Absolute Error (MAE) of 0.037, nearly matching the performance of models trained on real data (0.036).
- Superiority in Messy Data: On the MIMIC-III dataset (mortality prediction), RTSGAN-M achieved an AUC of 0.8003. This significantly outperformed baselines like TimeGAN (0.5875) and DoppelGANger (0.6330), approaching the real-data baseline of 0.8457.
Insights and Qualitative Fidelity
Visualizations using t-SNE and PCA (as seen in Figure 6) demonstrate that RTSGAN-M captures the underlying distribution of complex clinical data far more effectively than sequential GANs. Furthermore, Pearson correlation heatmaps confirmed that the model successfully mimics the hidden logic of missing data—such as capturing when specific clinical metrics are typically measured in tandem.
By generating data from a stable latent space rather than step-by-step sequences, RTSGAN avoids the compounding errors and mode collapse that plague traditional time series GANs. This decoupled training approach simplifies the modeling process while achieving state-of-the-art results on challenging real-world benchmarks.
Limitations
One notable finding was a discrepancy in data normalization. While standard scaling typically improves performance on real datasets, the authors found that models trained on synthetic data performed better with min-max scaling. This sensitivity to normalization remains an open question for future research in synthetic data utility.
Summary updated