Abstract
The rapid evolution of Internet of Things (IoT) technology has spurred the widespread adoption of Human Activity Recognition (HAR) in various daily life domains. Federated Learning (FL) is frequently utilized to build a global HAR model by aggregating user contributions without transmitting raw individual data. Despite substantial progress in user privacy protection with FL, challenges persist. Regulations like the General Data Protection Regulation (GDPR) empower users to request data removal, raising a new query in FL: How can a HAR client request data removal without compromising other clients' privacy? In response, we propose a lightweight machine unlearning method for refining the FL HAR model by selectively removing a portion of a client's training data. Our method employs a third-party dataset unrelated to model training. Using KL divergence as a loss function for fine-tuning, we aim to align the predicted probability distribution on forgotten data with the third-party dataset. Additionally, we introduce a membership inference evaluation method to assess unlearning effectiveness. Experimental results across diverse datasets show our method achieves unlearning accuracy comparable to retraining methods, resulting in speedups ranging from hundreds to thousands.
Introduction
In the era of wearable technology, Human Activity Recognition (HAR) models have become integral to monitoring health and daily activities. While Federated Learning (FL) provides a privacy-preserving framework by keeping raw data on-device, it does not inherently support the "right to be forgotten" mandated by regulations like GDPR. If a user withdraws consent, their data's influence must be removed from the global model. Traditionally, this requires "retraining"—discarding the data and restarting the entire FL process—which is computationally expensive and communication-intensive for edge devices.
Methodology
The proposed method introduces a lightweight Federated Unlearning (FU) framework that avoids full retraining. Instead, it utilizes a fine-tuning approach based on Kullback-Leibler (KL) Divergence to "re-educate" the model.
Unlearning via Distribution Alignment
The core innovation lies in treating unlearning as a distribution alignment task. When a client identifies data to be forgotten ($D_f$), the model is fine-tuned to match the predicted probability distribution of $D_f$ with that of a neutral third-party dataset ($D_t$). This process effectively teaches the model to treat sensitive data as unrelated noise.
Balancing Forgetting and Preservation
A hyperparameter ($\lambda$) is employed to balance the unlearning objective with the need to maintain high accuracy on the retained data ($D_r$). This ensures that the model "forgets" specific samples without losing its general predictive capabilities. Notably, the researchers found that simple random noise can serve as an effective third-party dataset, eliminating the need for clients to download additional data.
Evaluation and Results
The method was evaluated on three datasets: HAR70+, HARTH, and MNIST (for IID and non-IID baselines). Effectiveness was measured using Membership Inference Attacks (MIA); a successful unlearning process results in MIA accuracy near 0.5, indicating the model can no longer distinguish forgotten data from unseen data.
Key results include:
- Efficiency: The method achieved staggering speedups compared to retraining, ranging from 294× on MNIST to 6,119× on the HARTH dataset.
- Communication: The process requires only three transmissions (download, local update, and final broadcast), significantly reducing bandwidth usage.
- Performance: Model accuracy on retained data remained nearly identical to the original global model, proving that targeted forgetting does not degrade overall utility.
Conclusion
This lightweight Federated Unlearning approach provides a practical solution for GDPR compliance in IoT-based HAR systems. By shifting the paradigm from data deletion to distribution alignment via KL divergence, the method offers a high-speed, communication-efficient alternative to retraining while maintaining robust model performance and privacy protection.
Summary updated