Abstract
As Human Activity Recognition (HAR) moves toward edge devices like smartwatches and fitness trackers, the challenge of "data drift"—where a pre-trained model fails to account for individual user movement patterns—becomes increasingly prominent. While On-Device Learning (ODL) offers a solution for real-time adaptation, the energy cost of acquiring labels from a "teacher" device via wireless communication remains a significant bottleneck. This paper presents a specialized hardware core designed for supervised ODL that utilizes a novel automatic data pruning technique (P1P2) and a memory-efficient weight generation scheme (ODLHash). Implemented in 45nm CMOS, the core achieves a power consumption of only 3.39mW and reduces wireless communication by over 55%, with a negligible accuracy loss of 0.9%.
Introduction
Edge AI devices are increasingly tasked with monitoring human health and activity. However, the efficacy of these devices is often hampered by the variability in how different individuals perform the same tasks. A model trained on a general population may lose accuracy when deployed on a specific user whose gait or movement style differs from the training set. To maintain high performance, these devices must adapt at runtime through On-Device Learning (ODL).
Traditional ODL implementations face two primary hurdles: computational complexity and the "labeling problem." Supervised learning requires ground-truth labels, which a tiny wearable cannot generate on its own. Instead, it must query a nearby "teacher" device (such as a smartphone) for the correct label. Because wireless communication is one of the most power-hungry operations on a wearable, minimizing these queries is essential for battery longevity.
Methodology
The researchers proposed a hardware-optimized ODL core that integrates three innovative strategies to balance learning efficiency with power constraints.
1. Online Sequential Extreme Learning Machine (OS-ELM)
To avoid the high computational cost of backpropagation, the core utilizes OS-ELM. In this architecture, the weights of the input and hidden layers are fixed and random, and only the weights of the final output layer are updated. This approach significantly simplifies the hardware requirements for real-time learning while maintaining competitive performance for classification tasks like HAR.
2. Automatic Data Pruning (P1P2)
To address the labeling bottleneck, the system introduces a confidence-based pruning mechanism. The core calculates a metric called P1P2, defined as the difference between the probabilities of the top two predicted classes.
- High Confidence: If the gap between the top two predictions is large, the model is confident in its classification and skips the query to the teacher device.
- Low Confidence: If the gap is narrow, the model is uncertain and requests a label from the teacher to refine its weights.
To ensure robustness, the system employs an Auto-Tuning Threshold ($\theta$), which dynamically adjusts the pruning sensitivity based on the model's performance relative to the teacher's feedback.
3. ODLHash for Memory Efficiency
Storing random weights for the hidden layers typically requires significant SRAM, which is a luxury in tiny devices. The authors replaced stored weights with ODLHash, using a 16-bit "Xorshift" function to regenerate weights on the fly from a seed. This transformation shifts the burden from memory storage to low-power computation, drastically reducing the hardware footprint.
Experimental Evaluation
The core was evaluated using a standard Human Activity Recognition dataset featuring 30 subjects performing six activities: walking, walking upstairs, walking downstairs, sitting, standing, and laying. To simulate real-world data drift, the researchers used a "leave-one-subject-out" approach, ensuring the initial model was tested on data from users it had never encountered during pre-training.
Results and Discussion
The implementation in 45nm CMOS technology yielded several key performance metrics:
- Power and Area: The entire ODL core consumes just 3.39mW, making it suitable for always-on wearable applications.
- Communication Savings: The P1P2 pruning mechanism successfully reduced the volume of wireless communication by 55.7%. This reduction is critical for extending the battery life of edge devices.
- Accuracy: The reduction in training data (due to pruning) resulted in only a 0.9% loss in accuracy compared to a system that queries every single label, demonstrating the effectiveness of the P1P2 metric in identifying the most informative data points.
- Memory Footprint: By utilizing ODLHash, the memory required for a 128-node hidden layer was reduced to 136.39kB, which is smaller than many standard non-learning Multi-Layer Perceptron (MLP) implementations.
Conclusion and Future Work
This research demonstrates that high-efficiency on-device learning is achievable on a milliwatt power budget. By intelligently deciding when to "ask for help" from a teacher device, the proposed ODL core overcomes the primary energy barrier of supervised learning at the edge.
Future work may focus on reducing the dependency on a constant teacher connection and integrating specialized low-power drift detection units directly into the hardware to further automate the transition between inference and learning modes.
Summary updated