Dendron: Enhancing Human Activity Recognition with On-Device TinyML Learning

Hazem Hesham Yousef Shalby, Manuel RoveriarXiv 2025 · DOI

Abstract

Dendron is a novel TinyML framework designed for wearable devices to learn new human activities on-the-fly, even when labeled data is extremely scarce. By utilizing a hierarchical architecture with a shared feature extractor, Dendron achieves higher accuracy than traditional models while requiring 5x less memory and 2x less computational power. This approach enables efficient on-device adaptation to new user activities in real-world scenarios.

Introduction

Human Activity Recognition (HAR) has transitioned from cloud-based processing to "TinyML" on wearable devices like smartwatches. However, these devices face two significant hurdles: extreme resource constraints (limited memory and processing power) and data scarcity (users cannot provide large labeled datasets for new activities). Existing models typically require extensive retraining or large datasets to adapt, making on-device learning impractical for standard wearable microcontrollers.

Methodology: Hierarchical Architecture

Dendron addresses these challenges through a "thin" and adaptable hierarchical learning methodology. Instead of a single "flat" model attempting to distinguish all activities simultaneously, Dendron employs a tree-like structure.

The hierarchical tree structure of Dendron, dividing activities into static and dynamic categories before further refinement.

The architecture consists of:

  • Shared Feature Extractor (FE): A single Convolutional Neural Network (CNN) acts as the "trunk," extracting general features from raw sensor data (e.g., accelerometers and gyroscopes).
  • Task-Specific Modules (FC): Small, fully connected "heads" reside at each node of the tree. Each node handles a specific sub-task, such as distinguishing between "Static" and "Dynamic" activities or identifying specific movements like "Walking" versus "Running."

On-Device Learning and Adaptation

When a user introduces a new activity, Dendron adapts by extending its hierarchy rather than retraining the entire network.

Illustration of adding a new task (e.g., distinguishing walking upstairs vs. downstairs) to the existing hierarchy.

The adaptation process involves two key steps:

  1. Node Selection: A frequency-based algorithm determines the optimal location for the new task within the existing tree.
  2. Lightweight Training: Only the small FC module for the specific sub-task is trained using Gradient Descent. The computationally expensive Feature Extractor remains frozen, which drastically reduces the memory and compute power required for on-device training.

Experimental Evaluation

The researchers evaluated Dendron using the UCA-EHAR (smart glasses data) and UCI-HAPT (smartphone data) datasets. Testing was performed on an STM32-NUCLEO-F401RE microcontroller.

Key Results

  • Efficiency: Dendron utilized 5x less memory (67 KiB vs. 324 KiB) and 2x less computational load (MACC) compared to standard hierarchical solutions.
  • Performance: Inference time was reduced by approximately 50%, from ~94ms to ~47ms.
  • Data Efficiency: In a "Walking Upstairs vs. Downstairs" test, Dendron achieved 84% accuracy with only 10% of the available data, significantly outperforming traditional "flat" models which reached only ~72% accuracy under the same constraints.

Conclusion

Dendron demonstrates that breaking complex HAR problems into smaller, hierarchical decisions allows for robust and efficient on-device learning. By reusing features and training only task-specific modules, it overcomes the primary barriers to TinyML adaptation. Future work will explore dynamic hierarchy generation and weight initialization techniques to further accelerate the learning process.

Summary updated

BibTeX
@misc{shalby2025dendron,
  author = {Hazem Hesham Yousef Shalby and Manuel Roveri},
  title = {{Dendron: Enhancing Human Activity Recognition with On-Device TinyML Learning}},
  year = {2025},
  eprint = {2503.01353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01353},
}
Figure