A tiny inertial transformer for human activity recognition via multimodal knowledge distillation and explainable AI
Open Access
- 27 November 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 42335
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/XTinyHARKeywords
All Related Versions
Funding Information
- Research, Development, and Innovation Authority (13325-psu-2023-PSNU-R-3-1-EF)
This publication has 50 references indexed in Scilit:
- A Deep Learning-Powered TinyML Model for Gesture-Based Air Handwriting Simple Arabic Letters Recognition2024
- A human activity recognition method based on Vision TransformerScientific Reports, 2024
- Vision + X: A Survey on Multimodal Learning in the Light of DataIEEE Transactions on Pattern Analysis and Machine Intelligence, 2024
- Video-Based Human Activity Recognition Using Deep Learning ApproachesSensors, 2023
- X-CHARProceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 2023
- Toward human activity recognition: a surveyNeural Computing and Applications, 2022
- Deep CNN-LSTM With Self-Attention Model for Human Activity Recognition Using Wearable SensorIEEE Journal of Translational Engineering in Health and Medicine, 2022
- Human Activity Recognition via Hybrid Deep Learning Based ModelSensors, 2022
- Wearable inertial sensors for human movement analysis: a five-year updateExpert Review of Medical Devices, 2021
- Recent trends in machine learning for human activity recognition—A surveyWIREs Data Mining and Knowledge Discovery, 2018