Research on Human Activity Recognition Based on Smartphone Sensors
Abstract
To address the problem that current smart bands and fitness applications require users to manually select the exercise mode, which often leads to incorrect activity records, this paper studies an automatic human activity recognition method based on the built-in sensors of smartphones. The method is evaluated on the public UCI HAR dataset, which contains sensor records of six daily activities (walking, walking upstairs, walking downstairs, sitting, standing, and laying) collected from 30 volunteers, with 561 time-domain and frequency-domain features extracted from the signals of a three-axis accelerometer and a three-axis gyroscope for each record. Three classification models are compared: the decision tree, the K-Nearest Neighbor based on Euclidean distance, and KNN after PCA dimensionality reduction. The experimental results show that KNN achieves the best performance with an accuracy of 90.16%; the decision tree reaches 86.29%; after the features are compressed from 561 to 30 dimensions by PCA, KNN still maintains an accuracy of 87.41%, which significantly reduces the computational cost. The confusion matrix analysis shows that sitting and standing are the main sources of confusion (136 misclassifications in total), because the sensor signals of these two low-intensity static activities have extremely low amplitude and highly similar statistical features. In addition, a signal-level simulation platform is built to verify the learning curves, the hyperparameter sensitivity, and the noise robustness. The results prove the feasibility of high-accuracy activity recognition locally on mobile devices and provide a reference for the automatic activity recording of smart wearable devices.
References
- Reyes-Ortiz, J. L., Oneto, L., Samà , A., et al. (2013). Human activity recognition using smartphones.Proceedings of the 21st International European Symposium on Artificial Neural Networks (ESANN). Bruges, Belgium, 2013, pp. 1-6.
- Kwapisz, J. R., Weiss, G. M., & Moore, S. A. (2011). Activity recognition using cell phone accelerometers.ACM SIGKDD Explorations Newsletter, 12(2), 74-82.
- Shoaib, M., Bosch, S., Incel, O. D., et al. (2014). Fusion of smartphone motion sensors for physical activity recognition.Sensors, 14(6), 10146-10176.
- Ignatov, A. (2018). Real-time human activity recognition from accelerometer data using convolutional neural networks.Applied Soft Computing, 62, 915-922.
- Ramanujam, E., Perumal, T., & Padmavathi, S. (2021). Human activity recognition with smartphone and wearable sensors using deep learning techniques: A review.IEEE Sensors Journal, 21(12), 13029-13040.
- Zhang, S., Li, Y., Zhang, S., et al. (2022). Deep learning in human activity recognition with wearable sensors: A review on advances.Sensors, 22(4), 1476.
- Zhou, Y., Zhao, H., Huang, Y., et al. (2022). TinyHAR: A lightweight deep learning model designed for human activity recognition.Proceedings of the 2022 ACM International Symposium on Wearable Computers. Cambridge, UK, Sep. 11-15, pp. 89-93.
- Webber, M., & Rojas, R. F. (2021). Human activity recognition with accelerometer and gyroscope: A data fusion approach.IEEE Sensors Journal, 21(15), 16979-16989.
- Cover, T., & Hart, P. (1967). Nearest neighbor pattern classification.IEEE Transactions on Information Theory, 13(1), 21-27.
- Thakur, D., Guzzo, A., & Fortino, G. (2023). Attention-based multihead deep learning framework for online activity monitoring with smartwatch sensors.IEEE Internet of Things Journal, 10(20), 17746-17754.