Continual Activity Recognition with Generative Adversarial Networks

Juan Ye, Pakawat Nakwijit, Martin Schiemer, Saurav Jha, Franco ZambonelliACM Trans. Internet Things 2021

Abstract

Continual learning is an emerging research challenge in human activity recognition (HAR). As an increasing number of HAR applications are deployed in real-world environments, it is important and essential to extend the activity model to adapt to the change in people’s activity routine. Otherwise, HAR applications can become obsolete and fail to deliver activity-aware services. The existing research in HAR has focused on detecting abnormal sensor events or new activities, however, extending the activity model is currently under-explored. To directly tackle this challenge, we build on the recent advance in the area of lifelong machine learning and design a continual activity recognition system, called HAR-GAN, to grow the activity model over time. HAR-GAN does not require a prior knowledge on what new activity classes might be and it does not require to store historical data by leveraging the use of Generative Adversarial Networks (GAN) to generate sensor data on the previously learned activities. We have evaluated HAR-GAN on four third-party, public datasets collected on binary sensors and accelerometers. Our extensive empirical results demonstrate the effectiveness of HAR-GAN in continual activity recognition and shed insight on the future challenges.

Introduction

Human Activity Recognition (HAR) systems are typically trained on static datasets and deployed in fixed environments. However, real-world human behavior is inherently dynamic; routines change, and new activities are often introduced post-deployment. Standard deep learning models suffer from catastrophic forgetting, where the acquisition of new knowledge overwrites weights associated with previous tasks, leading to a drastic performance drop on old activities.

Traditional solutions involve storing all historical data for retraining or starting from scratch, both of which pose significant privacy risks and computational burdens. This paper introduces HAR-GAN, a framework designed for continual learning that leverages generative rehearsal to maintain performance on past tasks without the need to store raw historical data.

The HAR-GAN Framework

HAR-GAN utilizes a strategy called generative rehearsal to overcome forgetting. Instead of keeping a database of past sensor readings, the system trains a Generative Adversarial Network (GAN) to model the distribution of each activity class.

The HAR-GAN architecture across sequential tasks, illustrating the generative replay mechanism and classifier evolution.

Key Components

  • Evolvable Classifier: A neural network that dynamically adds new output units as new activity classes are introduced, allowing the architecture to grow without manual re-engineering.
  • Generative Replay: When a new task arrives, the GAN generates synthetic samples of previously learned activities. These "replays" are mixed with real data from the new task to retrain the classifier.
  • Self-Verification: To ensure quality, the system uses the previously trained classifier to filter out low-quality or "noisy" synthetic samples generated by the GAN before they are used for retraining.
  • Regularization: The authors integrated techniques like Learning Without Forgetting (LwF) (knowledge distillation) and Elastic Weight Consolidation (EWC) to further stabilize the learning process and protect old knowledge.

Experimental Evaluation

The framework was evaluated on four diverse, public HAR datasets representing a mix of discrete (binary) and high-dimensional continuous signals:

  1. House A & CASAS: Binary sensors (motion, door) from single and multi-resident homes.
  2. PAMAP2 & DSADS: Continuous accelerometer data from wearable units, with DSADS featuring up to 405 features.

Key Results and Insights

  • Near-Ideal Performance: HAR-GAN achieved overall accuracy within 9% to 18% of the "Offline" upper bound (the theoretical maximum achieved by training on all data at once).
  • Massive Gains over Sequential Training: Compared to a baseline with no rehearsal, HAR-GAN improved overall accuracy by 28% to 49% across the four datasets.
  • cGAN is the Optimal Choice: Conditional GANs (cGAN) outperformed multi-GAN setups. Conditioning on class labels helps the GAN navigate the complex search space of sensor distributions more effectively.
  • Distillation is Critical: In ablation studies, Knowledge Distillation (LwF) proved to be the most critical component. Maintaining the output probability distribution of the old model was more effective for stability than weight-based penalties like EWC.

Conclusion and Future Work

HAR-GAN demonstrates that generative rehearsal is a viable, privacy-preserving path for continual activity recognition. While the system provides a robust foundation, challenges remain regarding GAN stability and scaling to extremely high-dimensional data. Future directions include exploring VAE-GAN hybrids to improve sample diversity and investigating more advanced regularization techniques like contrastive loss to better separate similar activity classes in the feature space.

Summary updated

BibTeX
@article{ye2021continual,
  author = {Juan Ye and Pakawat Nakwijit and Martin Schiemer and Saurav Jha and Franco Zambonelli},
  title = {{Continual Activity Recognition with Generative Adversarial Networks}},
  journal = {ACM Trans. Internet Things},
  year = {2021},
  url = {https://openreview.net/forum?id=fwHW87K48z},
}
Figure