A tiny inertial transformer for human activity recognition via multimodal knowledge distillation and explainable AI
Ismail Lamaakal, Chaymae Yahyati, Yassine Maleh, Khalid El Makkaoui, Ibrahim Ouahbi, Ahmed A. Abd El‐Latif, Mariam Zomorodi‐Moghadam, Basma Abd El-Rahiem
Mohamed I University · Université Sultan Moulay Slimane
Key points
From the paper's conclusion- Our codes are available at: https://github.com/Ism-ail11/XTinyHAR.
Abstract
Human activity recognition (HAR) is essential for applications such as healthcare monitoring, fitness tracking, and smart environments, yet deploying accurate and interpretable models on resource-constrained devices remains challenging. In this paper, we propose XTinyHAR, a lightweight, transformer-based unimodal framework trained via cross-modal knowledge distillation from a multimodal teacher. Our model incorporates temporal positional embeddings and attention rollout to enhance sequential feature extraction and interpretability. Evaluated on UTD-MHAD and MM-Fit, XTinyHAR achieves test accuracies of 98.71% and 98.55% with F1-scores that match these results and Cohen's Kappa above 0.98. The model remains lightweight (2.45 MB) with fast inference (3.1 ms on CPU, 1.2 ms on GPU) and low computational cost (11.3M FLOPs). Extensive ablation studies confirm the contribution of each component, and subject-wise evaluations demonstrate strong generalization across users. These results highlight XTinyHAR's potential as a high-performance, interpretable, and deployable solution for real-time HAR on edge devices. Our codes are available at: https://github.com/Ism-ail11/XTinyHAR.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LightHARNet for smartphone sensor-based human activity recognition using lightweight depthwise attention convolution.PloS one · 2026
- UniHAR: A unified hierarchical transformer with multi-scale temporal modeling for wearable human activity recognition.PloS one · 2026
- Adaptive TinyML with Shift-Aware Routing for Human Activity Recognition Under Distribution ShiftsApplied Sciences · 2026
- Cross-Dataset Human Activity Recognition with Time-Series Foundation Models: A Subject-Disjoint Benchmark of Generalization, Robustness, and EfficiencySci · 2026
- Decoupled Heterogeneous Multi-Teacher Mutual Distillation for Wearable Human Activity RecognitionACM Transactions on Embedded Computing Systems · 2026
- Deployment-Oriented Evaluation of Lightweight IMU-Based Human Activity Recognition: On-Device Efficiency and Streaming Feasibility.Sensors (Basel, Switzerland) · 2026