[Paper Review] SenseGen: A Deep Learning Architecture for Synthetic Sensor Data Generation
SenseGen proposes a deep learning architecture that generates synthetic sensor data using a stack of LSTM networks and a Mixture Density Network (MDN) to preserve statistical properties. It employs an adversarial training setup with an LSTM-based discriminator, achieving near-50% accuracy in distinguishing real from synthetic accelerometer traces—indicating strong privacy-preserving realism.
Our ability to synthesize sensory data that preserves specific statistical properties of the real data has had tremendous implications on data privacy and big data analytics. The synthetic data can be used as a substitute for selective real data segments,that are sensitive to the user, thus protecting privacy and resulting in improved analytics.However, increasingly adversarial roles taken by data recipients such as mobile apps, or other cloud-based analytics services, mandate that the synthetic data, in addition to preserving statistical properties, should also be difficult to distinguish from the real data. Typically, visual inspection has been used as a test to distinguish between datasets. But more recently, sophisticated classifier models (discriminators), corresponding to a set of events, have also been employed to distinguish between synthesized and real data. The model operates on both datasets and the respective event outputs are compared for consistency. In this paper, we take a step towards generating sensory data that can pass a deep learning based discriminator model test, and make two specific contributions: first, we present a deep learning based architecture for synthesizing sensory data. This architecture comprises of a generator model, which is a stack of multiple Long-Short-Term-Memory (LSTM) networks and a Mixture Density Network. second, we use another LSTM network based discriminator model for distinguishing between the true and the synthesized data. Using a dataset of accelerometer traces, collected using smartphones of users doing their daily activities, we show that the deep learning based discriminator model can only distinguish between the real and synthesized traces with an accuracy in the neighborhood of 50%.
Motivation & Objective
- Address the growing need for privacy-preserving synthetic data in sensor-based applications such as health monitoring and activity recognition.
- Overcome limitations of prior synthetic data methods that rely on handcrafted feature preservation, making them vulnerable to adversarial classifiers.
- Develop a generative model that can produce synthetic time-series sensor data indistinguishable from real data even under sophisticated deep learning-based discrimination.
- Demonstrate that the synthetic data can evade detection by a deep learning discriminator trained to detect distributional discrepancies between real and generated data.
Proposed method
- Use a generator model composed of stacked Long-Short-Term-Memory (LSTM) networks and a Mixture Density Network (MDN) to model complex temporal dependencies and output distributions in sensor time series.
- Train the generator to minimize negative log-likelihood of true next-step values, improving its ability to predict realistic sequences.
- Implement a separate LSTM-based discriminator model trained to classify input sequences as real or generated, using binary cross-entropy loss.
- Train the generator and discriminator in a two-stage process: first train the generator on real data, then train the discriminator on real and generated samples.
- Use mini-batches of 400-step time series sequences for both real and generated data during discriminator training.
- Do not yet implement end-to-end adversarial feedback due to back-propagation challenges through the stochastic MDN component.
Experimental results
Research questions
- RQ1Can a deep learning-based generative model produce synthetic sensor data that is statistically indistinguishable from real accelerometer traces?
- RQ2To what extent can a deep learning discriminator detect synthetic data generated by a model that preserves only statistical properties?
- RQ3Does using a discriminator that learns features automatically (rather than relying on pre-specified features) improve the robustness of synthetic data?
- RQ4Can the generator be trained to produce data that evades detection by a discriminator, even when the discriminator is trained to find subtle distributional differences?
Key findings
- The discriminator's accuracy in distinguishing real from synthetic accelerometer traces dropped to approximately 50% after sufficient training, indicating that the synthetic data is nearly indistinguishable from real data.
- The generator's negative log-likelihood loss decreased over time, showing improved modeling of the true next-step value distributions in the time series.
- Visual inspection of generated samples showed strong similarity to real accelerometer traces, with no obvious artifacts or structural deviations.
- The discriminator initially achieved nearly 100% accuracy in detecting synthetic samples but converged to near-random performance (50%) as the generator improved, demonstrating effective evasion of detection.
- The model was trained on 7,000 time steps of real accelerometer data from the HAR dataset, using TensorFlow on a GPU, and converged after 20,000 epochs in about 5 hours.
- The current architecture does not yet incorporate end-to-end adversarial training due to challenges in back-propagating through the stochastic MDN layer, but this remains a future goal.
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.