Abstract
In this work, we introduce the Federated Quantum Kernel-Based Long Short-term Memory (Fed-QK-LSTM) framework, integrating the quantum kernel methods and Long Short-term Memory into federated learning. Within Fed-QK-LSTM framework, we enhance human activity recognition (HAR) in privacy-sensitive environments and leverage quantum computing for distributed learning systems. The DeepConv-QK-LSTM architecture on each client node employs convolutional layers for efficient local pattern capture, this design enables the use of a shallow QK-LSTM to model long-range relationships within the HAR data. The quantum kernel method enables the model to capture complex non-linear relationships in multivariate time-series data with fewer trainable parameters. Experimental results on RealWorld HAR dataset demonstrate that Fed-QK-LSTM framework achieves competitive accuracy across different client settings and local training rounds. We showcase the potential of Fed-QK-LSTM framework for robust and privacy-preserving human activity recognition in real-world applications, especially in edge computing environments and on scarce quantum devices.
Introduction: The Challenge of Privacy-Preserving HAR
Human Activity Recognition (HAR) is a critical component of modern health monitoring and smart environments, relying on continuous data streams from wearable sensors like accelerometers and gyroscopes. However, the sensitive nature of this personal data creates a significant privacy barrier: users are often reluctant to upload raw sensor data to centralized servers for model training.
Federated Learning (FL) offers a solution by allowing models to be trained locally on user devices, with only model updates being shared. Yet, classical sequential models like Long Short-Term Memory (LSTM) networks, which are necessary for capturing complex temporal dependencies in HAR data, are often too parameter-heavy for resource-constrained edge devices. Quantum Machine Learning (QML) presents a promising alternative, offering high expressive power through high-dimensional Hilbert spaces, but integrating it into a decentralized federated framework for time-series data remains a complex challenge.
Methodology: DeepConv-QK-LSTM
The authors propose Fed-QK-LSTM, a hybrid quantum-classical architecture designed for federated environments. The core of this framework is the DeepConv-QK-LSTM model, which operates in three distinct stages:
- Feature Extraction: Raw multivariate time-series data is processed through 1D convolutional layers to extract local temporal features and reduce dimensionality.
- Quantum Kernel LSTM (QK-LSTM): Extracted features are encoded into quantum states using angle encoding. Unlike standard LSTMs that use classical matrix multiplications for gate operations (forget, input, and output gates), QK-LSTM utilizes quantum kernels. These kernels calculate data similarity within a high-dimensional quantum Hilbert space, capturing non-linear relationships more efficiently.
- Federated Aggregation: The model is trained using the Federated Averaging (FedAvg) algorithm. Because the quantum circuits are used to compute kernel values while the trainable weights remain classical, the framework integrates seamlessly with standard classical FL protocols.
Key Results and Performance
The Fed-QK-LSTM framework was evaluated using the RealWorld HAR (RWHAR) dataset. When compared to a classical Fed-LSTM baseline, the quantum-enhanced model demonstrated significant improvements in both predictive performance and efficiency.
As shown in the results, Fed-QK-LSTM achieved an accuracy of 95%, surpassing the classical baseline of 90%. More importantly, it achieved this with a 32% reduction in trainable parameters (137,996 vs. 202,696). This parameter efficiency is a direct result of the expressive power of the quantum kernel, which acts as a fixed, high-dimensional non-linear feature map.
The framework also proved robust across various configurations, maintaining high performance as the number of clients scaled from 2 to 32. While increasing the number of clients can slow global convergence, the authors found that increasing local training epochs can effectively mitigate this, albeit at the cost of higher local computational demand.
Discussion and Future Outlook
The success of Fed-QK-LSTM highlights the potential of quantum-enhanced machine learning for practical, privacy-preserving applications. By shifting the heavy lifting of non-linear feature mapping to quantum kernels, the model becomes more suitable for deployment on edge devices with limited memory.
While the current study relies on classical simulations of quantum circuits—which are themselves computationally intensive—the architecture is designed to be "quantum-ready." As physical quantum hardware becomes more accessible, particularly Noisy Intermediate-Scale Quantum (NISQ) devices, this framework could be deployed natively to leverage true quantum speedups in distributed learning environments. Future work will likely focus on optimizing the local computational burden and testing the framework on physical quantum processors.
Summary updated