Introduction
Standard Federated Learning (FL) often assumes that all participating devices use identical model architectures and classify the same set of labels. In real-world Human Activity Recognition (HAR) applications, these assumptions are frequently violated. Users possess varying hardware capabilities and track different subsets of activities. This paper presents a novel FL framework that addresses statistical, model, and label heterogeneity through model distillation.
Proposed Framework
The core innovation lies in moving away from traditional weight-based aggregation (like Federated Averaging) to a distillation-based approach. Instead of sharing model weights, which requires architectural uniformity, devices share class scores (logits) generated on a small, non-sensitive public dataset.
The process involves three main stages:
- Local Training: Users train custom models (e.g., CNNs or ANNs) on their private data.
- Model Distillation: Local models act as "teachers" to generate scores on a public dataset, which serves as a common communication medium.
- Global Aggregation: The server aggregates these scores using a weighting factor ($\beta$) that prioritizes devices with higher accuracy on overlapping labels. This consensus is then returned to refine local models.
Experimental Setup
The framework was evaluated using the Heterogeneity Human Activity Recognition (HHAR) dataset, focusing on four activities: Sit, Walk, Stand, and StairsUp. To simulate real-world heterogeneity, the data was partitioned non-IID across three users, each seeing only a subset of labels. A public dataset of 8,000 activity windows was utilized as the distillation bridge.
Results and Discussion
The proposed method achieved a significant average accuracy improvement of approximately 11.01% compared to standalone local training. A key strength of the framework is its robustness; the global update stabilizes performance even when a specific user's local data quality fluctuates.
Furthermore, the system's efficiency was validated on a Raspberry Pi 2, where training took roughly 1.7 seconds per epoch and inference required only 15 milliseconds. This demonstrates that the distillation overhead is manageable for resource-constrained mobile and IoT hardware.
Conclusion
By leveraging model scores rather than weights, this framework enables privacy-preserving collaborative learning across diverse mobile devices. Future work will explore scaling this approach to larger user bases and reducing the dependency on a shared public dataset.
Summary updated