Repository logo
 

SKS-Transformer: Multi-scale and Direction-aware Attention for Inertial Sensor-based Activity Recognition

aut.relation.articlenumber1754717
aut.relation.journalFrontiers in Sports and Active Living
aut.relation.startpage1754717
aut.relation.volume8
dc.contributor.authorFeng, Chengwei
dc.contributor.authorBačić, Boris
dc.contributor.authorLi, Weihua
dc.contributor.authorXu, Hongqi
dc.date.accessioned2026-05-19T01:14:49Z
dc.date.available2026-05-19T01:14:49Z
dc.date.issued2026-01-23
dc.description.abstractIntroduction: Human Activity Recognition (HAR) has emerged as an enabling research field, with applications ranging from healthcare and sports analytics to smart environments. However, achieving scalable and accurate HAR systems that generalize across diverse activity scenarios remains a challenging problem. Methods: In this paper, we propose a scalable HAR system, which integrates a new model named SKS-Transformer with a custom-designed wearable Inertial Measurement Unit (IMU). The IMU combines an ESP8266 microcontroller and a JY61 sensor, enabling wireless acquisition of motion data. The proposed SKS-Transformer model incorporates Selective Kernel Networks and squeeze-enhanced axial attention modules to capture multiscale temporal dynamics and directional dependencies, respectively. The motion data preprocessing pipeline includes denoising, segmentation, and normalization. The preprocessed data are fused through a learnable gating mechanism, enabling the model to adaptively balance local and global motion patterns. Results: We evaluate the system scalability and performance on two public datasets (UCI-HAR and PAMAP2) and two captured datasets that feature both daily activities and fine-grained golf swing errors. Experimental results demonstrate that the SKS-Transformer model consistently surpasses the state of the art on both public datasets (by 0.3% and 0.09% compared to the best of 11 other published models) and by 2.86% and 0.46%, achieving the accuracy of up to 98.10% on collected HAR data, as well as 100% accuracy in golf swing error detection. Discussion: Ablation studies of SKS-Transformer confirm the contribution of each architectural model component to overall model performance and provide further insights for future optimizations. Future work will investigate the applications of the SKS-Transformer-based system in extended real-world scenarios, including intelligent healthcare, sports performance monitoring, and wearable computing. The source code for our proposed method has been released publicly and is available on GitHub at: URL: https://github.com/cw-feng/SKS-Transformer-Multi-scale-and-direction-aware-attention-for-activity-recognition
dc.identifier.citationFrontiers in Sports and Active Living, ISSN: 2624-9367 (Print); 2624-9367 (Online), Frontiers Media S.A., 8, 1754717-. doi: 10.3389/fspor.2026.1754717
dc.identifier.doi10.3389/fspor.2026.1754717
dc.identifier.issn2624-9367
dc.identifier.issn2624-9367
dc.identifier.urihttp://hdl.handle.net/10292/21116
dc.languageeng
dc.publisherFrontiers Media S.A.
dc.relation.urihttps://www.frontiersin.org/journals/sports-and-active-living/articles/10.3389/fspor.2026.1754717/full
dc.rights© 2026 Feng, Bačić, Li and Xu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
dc.rights.accessrightsOpenAccess
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subjectHuman Activity Recognition (HAR)
dc.subjectIoT
dc.subjectbiomechanics
dc.subjectinertial data classification
dc.subjectopen source (OS)
dc.subjectprivacy & security
dc.subjecttransformer
dc.subjectwearable IMU sensors
dc.subject42 Health Sciences
dc.subject4207 Sports Science and Exercise
dc.subjectNetworking and Information Technology R&D (NITRD)
dc.subjectBioengineering
dc.subject4207 Sports science and exercise
dc.titleSKS-Transformer: Multi-scale and Direction-aware Attention for Inertial Sensor-based Activity Recognition
dc.typeJournal Article
pubs.elements-id752124

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
SKS-transformer multi-scale and direction-aware attention for inertial sensor-based activity recognition.pdf
Size:
1.38 MB
Format:
Adobe Portable Document Format
Description:
Journal article

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.37 KB
Format:
Plain Text
Description: