HARFormer: WiFi-Based Human Activity Recognition with Dynamic Tanh Transformer

Jiawei Li, Meng Xu, Zhao Huang, Chaoyun Song

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Human Activity Recognition (HAR) is essential for applications in smart healthcare, ambient intelligence, and behavior monitoring. Recently, deep learning-based WiFi HAR approaches have achieved high accuracy, particularly those based on transformer architectures. Transformer-based HAR methods adopt layer normalization layers to improve model's stability and performance. However, it requires tuning the training hyperparameters and dampens learning dynamics. Targeting these challenges, we proposed a novel HARFormer architecture, a lightweight and efficient Transformer-based model specifically designed for sequential sensor data in HAR tasks. Different with traditional transformer, we first introduce Dynamic Tanh (DyT) to replace Layer Normalization, a minimalist alternative that directly suppressing extreme activations and introducing nonlinearity. This HARFormer not only simplifies the model structure but also enhances training stability and scalability. Extensive experiments on in-domain (Day 1) and cross-domain (Day 2 and Day 3) Channel State Information (CSI) datasets are conducted and show that the proposed HARFormer outperforms state-of-the-art methods across three scenarios, achieving accuracies of 98.93%, 87.73%, and 88.84% respectively.
Original languageEnglish
Title of host publication2025 IEEE International Workshop on Electromagnetics: Applications and Student Innovation Competition (iWEM)
Place of PublicationPiscataway, US
PublisherIEEE
Pages208-211
Number of pages4
ISBN (Electronic)9798331522407
ISBN (Print)9798331522414
DOIs
Publication statusPublished - 4 Aug 2025
Event2025 IEEE International Workshop on Electromagnetics: Applications and Student Innovation Competition (iWEM) - Hong Kong, Hong Kong
Duration: 4 Aug 20256 Aug 2025
https://www.iwem2025.org/

Publication series

NameIEEE International Workshop on Electromagnetics: Applications and Student Innovation Competition (iWEM)
PublisherIEEE
ISSN (Print)2574-1411
ISSN (Electronic)2835-7655

Conference

Conference2025 IEEE International Workshop on Electromagnetics: Applications and Student Innovation Competition (iWEM)
Abbreviated titleiWEM 2025
Country/TerritoryHong Kong
CityHong Kong
Period4/08/256/08/25
Internet address

Keywords

  • Human Activity Recognition
  • Transformer
  • WiFi
  • Channel State Information

Cite this