Bridging Generalization and Personalization in Wearable Human Activity Recognition via On-Device Few-Shot Learning

Pixi Kang, Julian Moosmann, Mengxi Liu, Bo Zhou, Michele Magno, Paul Lukowicz, Sizhen BianarXiv 2025 · DOI

Introduction

Wearable Human Activity Recognition (HAR) systems, which power applications ranging from fitness tracking to gesture-based interfaces, face a significant challenge: the "one-size-fits-all" limitation. While deep learning models can be trained on large-scale datasets to recognize general movement patterns, they often struggle when deployed to individual users. This phenomenon, known as User-Induced Concept Drift (UICD), occurs because every person possesses unique biomechanics, body shapes, and sensor placement habits. A model that performs excellently on a thousand-person training set may fail to accurately track a specific individual's form.

Traditionally, addressing UICD required transmitting user data to the cloud for retraining—a process that introduces privacy risks, high latency, and significant battery drain. This paper presents a hybrid framework that bridges the gap between broad generalization and rapid, on-device personalization using few-shot learning on resource-constrained microcontrollers.

Methodology: The Two-Stage Adaptation Framework

The proposed solution decouples feature extraction from classification to enable efficient on-device learning. The framework operates in two distinct stages:

  1. Offline Pre-training (Generalization): A lightweight 1D Convolutional Neural Network (1D-CNN) is trained on a diverse pool of users. This stage focuses on developing a robust "backbone" capable of extracting universal features of human movement.
  2. On-Device Adaptation (Personalization): Upon deployment, the pre-trained backbone is frozen. When a new user provides a small number of labeled samples (few-shot learning), the system updates only the final dense classifier layer.
The 1D-CNN architecture consists of a feature-extracting backbone and a task-specific classifier. During personalization, the backbone is frozen while the classifier is updated.

The system was implemented on the GAP9 microcontroller, a low-power platform featuring a multi-core RISC-V cluster. To facilitate on-device training, the researchers optimized a training engine using Stochastic Gradient Descent (SGD) with Exponential Moving Average (EMA) buffers. By parallelizing computations across eight cores, the system ensures that model updates occur in real-time with minimal overhead.

Experimental Setup and Datasets

To validate the versatility of the framework, it was evaluated across three distinct sensing modalities:

  • RecGym: A dataset combining Inertial Measurement Unit (IMU) data with Human Body Capacitance (HBC) to track 12 gym exercises.
  • QVAR-Gesture: A hand gesture dataset utilizing electrostatic charge variation sensors and IMUs.
  • Ultra-Gesture: An ultrasonic-based hand gesture dataset.

These datasets represent a wide range of signal types and user variations, providing a rigorous test for the personalization framework.

Key Results and Performance

The experimental results confirm that even minimal on-device adaptation leads to substantial performance gains. The "accuracy tax" of generalization was particularly evident in the QVAR dataset, where moving from a user-specific model to a general one resulted in a 25.89% drop in accuracy. The proposed few-shot adaptation effectively recovered much of this lost performance.

Comparison of model accuracy before and after On-Device Personalization (ODP) across three datasets.

Beyond accuracy, the system demonstrated exceptional efficiency:

  • Latency: Inference takes a mere 0.34 milliseconds, while a single training update completes in 0.07 to 0.17 milliseconds.
  • Energy Efficiency: A parameter update on the GAP9 consumes approximately 4 microjoules—over 250 times less energy than traditional microcontrollers like the STM32F7.
  • Online Learning: The system operates in a fully online manner, learning from individual labeled instances as they arrive without requiring large data buffers.

Discussion and Future Directions

The "frozen backbone" strategy proves that fundamental features of human movement are universal enough to be shared, while the final decision-making layer must be tailored to the individual. This approach minimizes the memory and computational footprint required for on-device learning.

However, several challenges remain for real-world deployment. Future research must address label acquisition, developing non-intrusive ways for users to provide the few samples needed for calibration. Additionally, exploring long-term stability is crucial to understand how models adapt to gradual changes in user behavior over months or years. Finally, scaling this approach to more complex, multi-modal environments will be essential for the next generation of truly intelligent wearables.

Summary updated

BibTeX
@misc{kang2025bridging,
  author = {Pixi Kang and Julian Moosmann and Mengxi Liu and Bo Zhou and Michele Magno and Paul Lukowicz and Sizhen Bian},
  title = {{Bridging Generalization and Personalization in Wearable Human Activity Recognition via On-Device Few-Shot Learning}},
  year = {2025},
  eprint = {2508.15413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.15413},
}
Figure