Guided-GAN: Adversarial Representation Learning for Activity Recognition with Wearables

Alireza Abedin, Hamid Rezatofighi, Damith C. RanasinghearXiv 2021

Introduction

Human Activity Recognition (HAR) is a cornerstone of modern wearable technology, enabling applications in health monitoring and fitness tracking. However, the field faces a significant bottleneck: the reliance on large, manually labeled datasets. Labeling sensor data is a labor-intensive process that requires expert intervention, limiting the scalability of deep learning models in real-world scenarios.

To address this, researchers introduced Guided-GAN (Geometrically Guided GAN), an unsupervised framework designed to learn high-quality features from wearable sensor data without the need for manual annotations. By combining the generative power of GANs with structural constraints, Guided-GAN bridges the gap between unsupervised and supervised learning in activity recognition.

The Challenge of Unsupervised HAR

Traditional unsupervised methods, such as Autoencoders (AEs), focus on reconstructing input signals from a compressed latent representation. While effective for data compression, AEs often fail to capture the underlying semantic meaning of activities. Conversely, standard Generative Adversarial Networks (GANs) are powerful at modeling data distributions but are notoriously unstable when applied to sequential sensor data and lack an inherent mechanism to encode real data into useful features.

The Guided-GAN Framework

Guided-GAN introduces a novel architecture that stabilizes GAN training for time-series data while providing a robust feature extraction mechanism. Its architecture is built on three primary pillars:

1. Bi-directional Recurrent Structure

The framework is based on a Bi-directional GAN (BiGAN) architecture. It consists of three primary components: an Encoder ($\mathcal{E}_\theta$), a Generator ($\mathcal{G}_\phi$), and a Joint Discriminator ($\mathcal{D}_\omega$). Unlike standard GANs, the Joint Discriminator evaluates pairs of data and latent features, determining whether a pair $(\mathbf{x}, \hat{\mathbf{z}})$ or $(\hat{\mathbf{x}}, \mathbf{z})$ is real or synthetic.

The Guided-GAN architecture featuring bi-directional paths and geometric guidance loops.

2. Geometric Guidance

To stabilize adversarial training, the authors introduce "geometric guidance" through $L_2$ reconstruction losses. These losses are applied in both the data space (reconstructing $\mathbf{x}$ from $\hat{\mathbf{z}}$) and the latent space (reconstructing $\mathbf{z}$ from $\hat{\mathbf{x}}$). This dual-loop reconstruction forces the Encoder and Generator to act as approximate inverses, providing stable gradients that guide the model toward meaningful representations.

3. Temporal Modeling with LSTMs

Recognizing the sequential nature of wearable sensor data, all components utilize Long Short-Term Memory (LSTM) units. This allows the model to capture long-term temporal dependencies inherent in human movement. For instance, the Generator expands a single latent vector into a full temporal sequence by copying the input across multiple time steps.

Internal structure of the Generator component, illustrating sequence generation from a latent vector using LSTMs.

Experimental Evaluation

The performance of Guided-GAN was validated on three distinct benchmarks:

  • UCI HAR: Smartphone accelerometer and gyroscope data for 6 basic activities.
  • USC-HAD: High-performance wearable data for 12 diverse activities.
  • Sequential MNIST: A sequential re-purposing of handwritten digits used to visually demonstrate the model's ability to capture semantic shapes.

Key Results

Guided-GAN demonstrated superior performance compared to traditional unsupervised baselines like Recurrent Autoencoders (RAE) and Motion2Vector (M2V).

  • Recognition Accuracy: On the UCI HAR dataset, Guided-GAN achieved 89.0% accuracy, closely approaching the fully supervised baseline of 91.1%. On USC-HAD, it reached 67.2%, within 1.4% of the supervised ceiling.
  • Data Efficiency: The model proved highly efficient; after unsupervised pre-training, only a small linear classifier (comprising ~1-2% of total parameters) needed to be trained on labeled data to achieve state-of-the-art results.
  • Representation Quality: Qualitative analysis via t-SNE visualizations confirmed that the learned latent space effectively clusters different activities, and the generated data distribution closely matches the real sensor data distribution.

Conclusion

Guided-GAN presents a robust solution for unsupervised feature learning in wearable activity recognition. By integrating geometric guidance into a bi-directional GAN framework, the authors overcome the traditional instabilities of GANs for sensor data. The resulting model provides a scalable way to leverage the vast amounts of unlabeled wearable data, bringing unsupervised performance remarkably close to supervised standards.

Summary updated

BibTeX
@misc{abedin2021guided,
  author = {Alireza Abedin and Hamid Rezatofighi and Damith C. Ranasinghe},
  title = {{Guided-GAN: Adversarial Representation Learning for Activity Recognition with Wearables}},
  year = {2021},
  eprint = {2110.05732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.05732},
}
Figure