[Paper Review] Quick and Easy Time Series Generation with Established Image-based GANs
This paper proposes a simple, flexible method to generate single-channel time series data using established image-based GANs by converting time series into rasterized grayscale images, training a Wasserstein GAN with gradient penalty, and reconstructing synthetic time series from generated images. The approach achieves stable training and generates realistic sinusoidal, PPG, and ECG signals up to 4096 points, limited only by image resolution, with quantitative metrics (FID: 72.53–109.17) confirming distributional similarity to real data.
In the recent years Generative Adversarial Networks (GANs) have demonstrated significant progress in generating authentic looking data. In this work we introduce our simple method to exploit the advancements in well established image-based GANs to synthesise single channel time series data. We implement Wasserstein GANs (WGANs) with gradient penalty due to their stability in training to synthesise three different types of data; sinusoidal data, photoplethysmograph (PPG) data and electrocardiograph (ECG) data. The length of the returned time series data is limited only by the image resolution, we use an image size of 64x64 pixels which yields 4096 data points. We present both visual and quantitative evidence that our novel method can successfully generate time series data using image-based GANs.
Motivation & Objective
- To address the challenge of generating realistic single-channel time series data while preserving privacy, especially for sensitive physiological data.
- To leverage the stability and maturity of established image-based GANs—specifically WGAN-GP—for time series synthesis, bypassing the training instability of recurrent GANs.
- To enable easy deployment of time series generation using off-the-shelf GAN frameworks without requiring specialized architectures or extensive hyperparameter tuning.
- To demonstrate that time series can be effectively encoded as images and reconstructed with high fidelity, facilitating data sharing and reproducibility in scientific research.
- To provide a practical, beginner-friendly solution for time series generation that supports flexible sequence lengths and can be extended to multichannel data.
Proposed method
- Time series data is segmented into fixed-length windows and mapped to grayscale pixel values based on amplitude, preserving temporal structure.
- Each time series window is rasterized into a 64×64 pixel image, transforming the 1D signal into a 2D spatial representation suitable for image-based GANs.
- A Wasserstein GAN with gradient penalty (WGAN-GP) is trained on the rasterized images to learn the underlying data distribution, ensuring training stability.
- The critic network enforces the 1-Lipschitz constraint via gradient penalty, avoiding the vanishing/exploding gradient issues common in standard WGANs with weight clipping.
- Synthetic images are generated by the trained generator and converted back to time series using an inverse transform that maps pixel intensities to amplitude values.
- Post-processing, such as low-pass filtering, is applied to reduce high-frequency noise in the reconstructed time series while preserving key signal characteristics.
Experimental results
Research questions
- RQ1Can established image-based GANs be effectively repurposed for single-channel time series generation through image rasterization?
- RQ2To what extent does the proposed method preserve the temporal and spectral characteristics of real time series data such as sinusoidal, PPG, and ECG signals?
- RQ3How does the performance of the WGAN-GP framework compare in generating time series data when evaluated using FID and MMD metrics?
- RQ4What is the maximum sequence length achievable with this method, and how is it constrained by image resolution?
- RQ5Can the method be generalized to other types of single-channel time series data beyond the tested physiological signals?
Key findings
- The WGAN-GP model achieved stable training and generated synthetic time series that visually and quantitatively resemble real signals, with FID scores of 72.53 for sinusoidal, 86.74 for PPG, and 109.17 for ECG data.
- The MMD values were 71.75 (sinusoidal), 86.55 (PPG), and 111.36 (ECG), indicating a measurable but non-trivial distance between real and generated distributions, which decreased over training.
- The Wasserstein-1 distance between real and generated data distributions decreased consistently over 300 training epochs, confirming progressive distributional alignment.
- Reconstructed time series exhibited signal-specific characteristics—such as QRS complexes in ECG and pulsatile patterns in PPG—confirming the method's ability to capture underlying dynamics.
- High-frequency noise was observed in raw reconstructions, but application of a low-pass filter significantly improved signal quality and spectral similarity to real data, as confirmed by FFT analysis.
- The method supports flexible sequence lengths limited only by image resolution, with 64×64 images enabling 4096-point time series, offering a scalable and extensible framework.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.