Time-MAGNET: Federated Multimodal Graph Neural Expert Transformer for Human Activity Recognition
Authors: Asmit Bandyopadhyay, Tanmay Sen, Rohit Basu, Swagatam Das
Organizations: Department of Computer Science & Engineering, Institute of Engineering & Management, Kolkata, 700091, West Bengal, India · SQC & OR Unit, Indian Statistical Institute, Kolkata, 700108, West Bengal, India · Electronics and Communication Sciences Unit, Indian Statistical Institute, Kolkata, 700108, West Bengal, India
Human Activity Recognition plays a vital role in applications such as fitness tracking, smart homes, and healthcare monitoring. Single modality HAR systems rely on a single source of sensory information and can therefore be affected by sensor specific noise and signal degradation, which may limit their ability to distinguish between activities. To address these limitations, this work proposes Time-MAGNET, a novel multimodal learning framework that adaptively fuses heterogeneous sensing modalities to learn discriminative representations for HAR. It adaptively models interactions among heterogeneous modalities using graph attention and a Mixture-of-Experts architecture. To capture complex temporal dependencies, we employ a lightweight encoder-only T5 architecture customized for multimodal HAR and efficiently trained using Low-Rank Adaptation (LoRA). In real world applications, multimodal HAR data are typically distributed across devices or users and cannot always be centrally collected due to privacy, data ownership, and communication constraints. However, the distributed nature of HAR introduces statistical and system heterogeneity across clients, which can challenge conventional federated aggregation methods. To address this issue, we propose Federated Proximal Adaptive Weighting (FedPAW), a novel federated aggregation algorithm for stable and effective model aggregation under heterogeneous client settings. Extensive experiments on the MEx dataset show that Time-MAGNET achieves accuracies of 0.9555 and 0.8997 in centralized and federated settings, respectively, outperforming the considered baseline methods. The results indicate that adaptive multimodal fusion and LoRA based temporal modeling improve centralized HAR performance, while FedPAW provides effective aggregation under heterogeneous federated clients.
Figures & tables
Figure 1: The proposed HAR architecture - Time-MAGNET.
Figure 3: Validation accuracy (left column) and validation loss (right column) across three experimental settings. Top: centralised training, comparing Time-MAGNET against five baseline architectures. Middle: federated training under our proposed FedPAW algorithm, comparing the same set of architectures. Bottom: federated algorithm comparison isolating Time-MAGNET’s performance under FedPAW against four established federated learning strategies (FedAvg, FedNova, FedProx, FedBN).
Model
Centralized
Federated
Accuracy
F1
Accuracy
F1
Time-MAGNET(with LoRA)
0.9555 ± 0.0018
0.9550 ± 0.0020
0.8997 ± 0.0017
0.8983 ± 0.0014
Time-MAGNET(no LoRA)
0.9217 ± 0.0013
0.9203 ± 0.0010
0.8834 ± 0.0020
0.8830 ± 0.0016
Chronos-T5
0.8256 ± 0.0026
0.8168 ± 0.0032
0.6028 ± 0.0021
0.5786 ± 0.0023
Chronos-MAGNET
0.9346 ± 0.0026
0.9338 ± 0.0032
0.8680 ± 0.0021
0.8660 ± 0.0023
BiLSTM
0.7939 ± 0.0021
0.7902 ± 0.0017
0.7107 ± 0.0023
0.6941 ± 0.0018
Table 1: Performance Comparison of Centralized and Federated Models (values reported as mean ± standard deviation)
Algorithm
Accuracy
F1
Training Time (s)
FedAvg
0.8693 ± 0.0012
0.8689 ± 0.0015
6967.53
FedProx
0.8847 ± 0.0010
0.8843 ± 0.0009
8023.40
FedNova
0.8672 ± 0.0018
0.8661 ± 0.0021
6913.21
FedBN
0.8693 ± 0.0027
0.8689 ± 0.0023
6974.14
FedPAW
0.8997 ± 0.0015
0.8983 ± 0.0013
8052.36
Table 2: Performance comparison of Time-MAGNET model under different federated optimization algorithms (values reported as mean ± standard deviation).
Figure 4: Confusion matrices for Time-MAGNET across training paradigms and LoRA configurations. Top: centralised training, with (left) and without (right) LoRA. Bottom: federated training under our proposed FedPAW algorithm, with (left) and without (right) LoRA. Each matrix reports per-class prediction counts on the held-out validation set, allowing class-wise error patterns to be compared across settings.
Figure 5: Precision-recall curves for Time-MAGNET across training paradigms and LoRA configurations. Top: centralised training, with (left) and without (right) LoRA. Bottom: federated training under our proposed FedPAW algorithm, with (left) and without (right) LoRA. These curves characterise the precision-recall trade-off at each classification threshold, complementing the accuracy and loss curves reported earlier.
Figure 6: t-SNE projections of the fused feature embeddings learned by Time-MAGNET. Top: models trained with LoRA, centralised (left) and federated under FedPAW (right). Bottom: models trained without LoRA, centralised (left) and federated under FedPAW (right). Rows are grouped by LoRA configuration rather than by training paradigm, letting the centralised-vs-federated embedding structure be compared directly within each row while holding LoRA use fixed.
Modality
Centralized
Federated
Accuracy
F1
Accuracy
F1
act, acw, pm
0.8504 ± 0.0016
0.8480 ± 0.0011
0.7306 ± 0.0009
0.7237 ± 0.0012
act, acw, dc
0.8818 ± 0.0014
0.8816 ± 0.0010
0.8018 ± 0.0008
0.8037 ± 0.0012
act, pm, dc
0.9184 ± 0.0003
0.9189 ± 0.0005
0.8938 ± 0.0007
0.8936 ± 0.0002
acw, pm, dc
0.9284 ± 0.0006
0.9281 ± 0.0004
0.8789 ± 0.0008
0.8773 ± 0.0003
Table 3: Performance Comparison of Centralized and Federated MAGNET Models with varying modalities (values reported as mean ± standard deviation).
Model
Parameter Count
Training Time (s)
Total
Trainable
Centralized
Federated
Time-MAGNET (with LoRA)
55,927,648
47,535,456
3485.05
8052.36
Time-MAGNET (no LoRA)
55,829,344
55,829,344
3714.76
8729.16
Chronos-T5
76,179,719
76,179,719
2510.07
6620.15
Chronos-MAGNET
65,813,344
65,813,344
4517.16
10386.09
BiLSTM
40,702,983
40,702,983
4283.07
8898.17
Table 4: Model Complexity and Training Time Comparison
Human Activity Recognition (HAR) from heterogeneous wearable sensors is fundamental to the Internet of Health Things (IoHT), supporting rehabilitation, elderly care, and smart healthcare. Existing multimodal fusion methods often assign fixed equal weights to sensor streams, overlooking differences in modality importance, acquisition cost, and sensor quality, which can vary due to movement, incorrect placement, or temporary blockage. We propose an adaptive and cost-aware multimodal HAR framework based on multi-agent reinforcement learning for centralized HAR and extend it to federated learning as FedMHAR. In the centralized setting, multimodal fusion is formulated as a cooperative Multi-Agent Reinforcement Learning (MARL) problem, where each sensing modality is assigned a PPO-based agent that learns per-sample fusion weights, enabling the model to emphasize informative modalities while down-weighting costly sensors when cheaper alternatives provide sufficient information. In the federated setting, we introduce BiFL-PPO, a bidirectional federated optimization strategy in which a server-side PPO policy learns client-specific trust weights and feeds them back to adapt local learning rates and proximal regularization. Unlike round-level optimization, BiFL-PPO uses dense batch-level rewards for more frequent feedback and stable training under heterogeneous client data. Evaluation on the MEx Rehabilitation and UTD Multimodal Human Action datasets shows that the centralized framework achieves 87.30% and 94.98% accuracy, respectively, outperforming conventional fusion methods and state-of-the-art HAR models. FedMHAR achieves 79.74% and 77.49% in the federated setting, consistently surpassing FedAvg, FedProx, FedBN, FedNova, and AdaFedProx, while providing more stable performance and reducing sensor acquisition cost.
Debasmita Dey, Tanmay Sen, Himel Mallick
SQC & OR Unit Indian Statistical Institute Kolkata Kolkata, India · Department of Population Health Sciences Cornell University 425 E 61st Street New York
Recent advances in Human Activity Recognition (HAR) from wearable sensors have shown that multi-modal deep learning models consistently outperform their uni-modal counterparts. Modalities can include IMUs, RGB cameras, audio signals, and others. One important aspect of multi-modal deep learning is the sensor fusion approach we apply. Over recent years, multiple fusion paradigms have been proposed for multi-modal HAR. However, to the best of our knowledge, no head-to-head comparison of these paradigms exists on a common multi-modal HAR benchmark dataset. To address this research gap, we systematically compare seven state-of-the-art sensor fusion methods on the recently released HARMES dataset, which comprises 61 hours of fully labeled IMU, audio, and ambient humidity data. The chosen dataset focuses on 15 household and personal hygiene activities of daily living (ADLs). By applying the seven different fusion techniques to a state-of-the-art multi-modal model architecture, we show that Gated Multi-modal Fusion achieves the highest macro F1-score (0.82), surpassing the concatenation-based late fusion HARMES paper baseline of 0.76 by +6pp under leave-one-participant-out evaluation. All code used in our experiments is made publicly available on GitHub.
Ahmed Mohamady, Robin Burchard, Kristof Van Laerhoven
The study explores a hybrid centralized-federated approach for Human Activity Recognition (HAR) using a Transformer-based architecture. With the increasing ubiquity of edge devices, such as smartphones and wearables, a significant amount of private data from wearable and inertial sensors is generated, facilitating discreet monitoring of human activities, including resting, sleeping, and walking. This research focuses on deploying HAR technologies using mobile sensor data and leveraging Federated Learning within the Flower framework to evaluate the training of a federated model derived from a centralized baseline. The experimental results demonstrate the effectiveness of the proposed hybrid approach in improving the accuracy and robustness of HAR models while preserving data privacy in a non-IID data scenario. The federated learning setup demonstrated comparable performance to centralized models, highlighting the potential of federated learning to strike a balance between data privacy and model performance in real-world applications.