TransHAR: Towards Intent-Aware Transformer-Based Human Activity Recognition in Intelligent IoT Communication Systems

Zhao Huang, Meng Xu, Qilei Li*, Fei Luo, Jiguang Li, Yifeng Zeng, Gwanggil Jeon*

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

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.
Original languageEnglish
Pages (from-to)1-10
Number of pages10
JournalIEEE Internet of Things Journal
Early online date18 Nov 2025
DOIs
Publication statusE-pub ahead of print - 18 Nov 2025

Keywords

  • Cross-domain
  • Doppler Shift
  • Human Activity Recognition (HAR)
  • Transformer

Cite this