A tiny inertial transformer for human activity recognition via multimodal knowledge distillation and explainable AI

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.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-27
DOI
https://doi.org/10.1038/s41598-025-26297-2
Citations
6
Primary Topic
Context-Aware Activity Recognition Systems
Type
article
Field-Weighted Citation Impact
7.66

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A tiny inertial transformer for human activity recognition via multimodal knowledge distillation and explainable AI

Khalid El Makkaoui, Yassine Maleh, Basma Abd El-Rahiem, Ahmed A. Abd El‐Latif et al.
6 citations
Scientific Reports
Context-Aware Activity Recognition Systems
7.66
article

A tiny inertial transformer for human activity recognition via multimodal knowledge distillation and explainable AI

Khalid El Makkaoui, Yassine Maleh, Basma Abd El-Rahiem, Ahmed A. Abd El‐Latif, Mariam Zomorodi‐Moghadam, Ibrahim Ouahbi, Ismail Lamaakal, Chaymae Yahyati
article en
6 citations

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.

Scientific ReportsVol. 15(1)
Prince Sultan University (SA), Cracow University of Technology (PL), Mohamed I University (MA), Université Sultan Moulay Slimane (MA), Menoufia University (EG)
Prince Sultan University
Openalex Percentile: Top 2%
Context-Aware Activity Recognition Systems
7.66
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.