Lightweight Transformer for Robust Human Activity Recognition Using Smartphone IMU Data
Abstract
Human-activity recognition (HAR) underpins a wide range of m-health, smart-home, and context-aware services, yet conventional approaches frequently struggle with overfitting, class imbalance, and limited capacity to capture long-range temporal dependencies. In this study we introduce a lightweight, end-to-end Transformer pipeline that learns directly from raw smartphone inertial signals, eliminating the need for manually engineered features. We evaluate the approach on MotionDetection, a 12-channel dataset collected from 24 volunteers who performed a scripted series of everyday movements while carrying a Samsung Galaxy Note 20 Ultra. After windowing and minimal preprocessing, the Transformer attains %98 validation accuracy with no discernible overfitting. Relative to a strong CNN-BiLSTM baseline, it improves the macro F1-score by 3.6 percentage points while employing a smaller parameter budget, underscoring its computational efficiency. These findings indicate that Transformer architecture can provide a robust, scalable foundation for real-world HAR on commodity mobile devices, paving the way for battery-friendly, on-device activity monitoring in health and ambient-assisted applications
Keywords: Human Activity Recognition, Transformers
DOI: 10.54941/ahfe1005972
Cite this paper
More from this volume
- Enabling the Transfer of Large Files Across Security Domains in a Multinational Environment
- Defining Autonomous Weapon Systems: A Conceptual Overview of Existing Definitory Attempts and the Effectiveness of Human Oversight
- Exploring the Effect of Wearable Digital Devices (WDDs) on Adverse Occupational Health and Safety Practices of High-Risk Workers
- Evaluating the Effectiveness of Machine Learning Algorithms in Stock Price Prediction Across Different Time Frames
- Enhancing the Viability of Battery-Electric Trucks in Long-Distance Freight Transport: Assessing the User Acceptance of Overhead Line Technology
- Cognitive Science and Information Technologies in Team Sports: Enhancing Performance and Safety
- Artificial Intelligence as Self-Instantiated, Temporally Continuous, Disturbance-Driven Adaptive World-Builder
- Knowledge Evolution and Scientific Breakthroughs triggered by AI Hallucinations - A Paradigm Shift?
- Effectiveness of Knowledge Models for Visual Object Detection
- Talent Development and Retention in Industry 4.0: Strategy to Overcome Talent Challenges in VUCA Environments and Drive Digital Transformation with Agility
- Architectural Analysis of RFID Integration in Medical Device Logistics: A Healthcare Information Systems Study
- Early Detection of Arthritis Using Convolutional Neural Networks and Explainable AI


AHFE Open Access