TY - JOUR
T1 - TransHAR: Towards Intent-Aware Transformer-Based Human Activity Recognition in Intelligent IoT Communication Systems
AU - Huang, Zhao
AU - Xu, Meng
AU - Li, Qilei
AU - Luo, Fei
AU - Li, Jiguang
AU - Zeng, Yifeng
AU - Jeon, Gwanggil
PY - 2025/11/18
Y1 - 2025/11/18
N2 - Human Activity Recognition (HAR) has emerged as a critical component in intent-aware, AI-driven Internet of Things (IoT) Communication systems, enabling context-aware responses in smart environments. Recently, WiFi-based HAR has gained significant attention due to its non-intrusive nature, low deployment cost, and ability to preserve privacy. However, they face a major challenge across domains. To address this limitation, we propose a novel cross-domain HAR framework (called TransHAR) by introducing a lightweight and efficient transformer model. On one hand, we design a feature representation block that processes the Wi-Fi channel frequency response (CFR) phase data to estimate Doppler shifts, capturing motion-related dynamics while remaining invariant to static, environment-specific structures, enhancing generalization across domains. On the other hand, we propose a lightweight Transformer architecture, termed ResDyTFormer, which minimizes reliance on normalization layers by incorporating a novel Residual Dynamic Tanh function. This function dynamically learns to balance between traditional normalization and the Dynamic Tanh operation, thereby maintaining training stability and avoiding gradient vanishing issues often encountered when using Dynamic Tanh alone. Extensive experiments on two benchmark datasets demonstrate that the proposed TransHAR framework achieves state-of-the-art performance in both in-domain and cross-domain HAR tasks with only 0.17M parameters. On the SHARP dataset, it attains an impressive 99.04% F1 score and 98.94% accuracy. On the 3DO dataset, it achieves 86.10% accuracy and 84.95% F1 score. These results highlight the potential of TransHAR as an efficient and scalable framework for real-world WiFi-based human activity sensing.
AB - Human Activity Recognition (HAR) has emerged as a critical component in intent-aware, AI-driven Internet of Things (IoT) Communication systems, enabling context-aware responses in smart environments. Recently, WiFi-based HAR has gained significant attention due to its non-intrusive nature, low deployment cost, and ability to preserve privacy. However, they face a major challenge across domains. To address this limitation, we propose a novel cross-domain HAR framework (called TransHAR) by introducing a lightweight and efficient transformer model. On one hand, we design a feature representation block that processes the Wi-Fi channel frequency response (CFR) phase data to estimate Doppler shifts, capturing motion-related dynamics while remaining invariant to static, environment-specific structures, enhancing generalization across domains. On the other hand, we propose a lightweight Transformer architecture, termed ResDyTFormer, which minimizes reliance on normalization layers by incorporating a novel Residual Dynamic Tanh function. This function dynamically learns to balance between traditional normalization and the Dynamic Tanh operation, thereby maintaining training stability and avoiding gradient vanishing issues often encountered when using Dynamic Tanh alone. Extensive experiments on two benchmark datasets demonstrate that the proposed TransHAR framework achieves state-of-the-art performance in both in-domain and cross-domain HAR tasks with only 0.17M parameters. On the SHARP dataset, it attains an impressive 99.04% F1 score and 98.94% accuracy. On the 3DO dataset, it achieves 86.10% accuracy and 84.95% F1 score. These results highlight the potential of TransHAR as an efficient and scalable framework for real-world WiFi-based human activity sensing.
KW - Cross-domain
KW - Doppler Shift
KW - Human Activity Recognition (HAR)
KW - Transformer
UR - https://www.scopus.com/pages/publications/105022269828
U2 - 10.1109/jiot.2025.3634412
DO - 10.1109/jiot.2025.3634412
M3 - Article
SN - 2327-4662
SP - 1
EP - 10
JO - IEEE Internet of Things Journal
JF - IEEE Internet of Things Journal
ER -