journal article·2021-09-13Open access

Comparing Human Activity Recognition Models Based on Complexity and Resource Usage

Simon Angerbauer, Alexander Palmanshofer, Stephan Selinger, Marc Kurz

Applied Sciences· Volume 11· Issue 18

Abstract

Human Activity Recognition (HAR) is a field with many contrasting application domains, from medical applications to ambient assisted living and sports applications. With ever-changing use cases and devices also comes a need for newer and better HAR approaches. Machine learning has long been one of the predominant techniques to recognize activities from extracted features. With the advent of deep learning techniques that push state of the art results in many different domains like natural language processing or computer vision, researchers have also started to build deep neural nets for HAR. With this increase in complexity, there also comes a necessity to compare the newer approaches to the previous state of the art algorithms. Not everything that is new is also better. Therefore, this paper aims to compare typical machine learning models like a Random Forest (RF) or a Support Vector Machine (SVM) to two commonly used deep neural net architectures, Convolutional Neural Nets (CNNs) and Recurrent Neural Nets (RNNs). Not only in regards to performance but also in regards to the complexity of the models. We measure complexity as the memory consumption, the mean prediction time and the number of trainable parameters of the models. To achieve comparable results, the models are all tested on the same publicly available dataset, the UCI HAR Smartphone dataset. With this combination of prediction performance and model complexity, we look for the models achieving the best possible performance/complexity tradeoff and therefore being the most favourable to be used in an application. According to our findings, the best model for a strictly memory limited use case is the Random Forest with an F1-Score of 88.34%, memory consumption of only 0.1 MB and mean prediction time of 0.22 ms. The overall best model in terms of complexity and performance is the SVM with a linear kernel with an F1-Score of 95.62%, memory consumption of 2 MB and a mean prediction time of 0.47 ms. The two deep neural nets are on par in terms of performance, but their increased complexity makes them less favourable to be used.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Context-Aware Activity Recognition Systems · IoT and Edge/Fog Computing · Non-Invasive Vital Sign Monitoring

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Mobility and Energy, University of Applied Sciences Upper Austria, 4232 Hagenberg, Austria

References (32)

Show source-provided references
1. Weiss, G.M., Lockhart, J.W., Pulickal, T.T., McHugh, P.T., Ronan, I.H., and Timko, J.L. (2016, January 17–19). Actitracker: A Smartphone-Based Activity Recognition System for Improving Health and Well-Being. Proceedings of the 2016 IEEE International Conference on Data Science and Advanced Analytics (DSAA), Montreal, QC, Canada.10.1109/DSAA.2016.89 ↗
2. A novel human activity recognition scheme for smart health using multilayer extreme learning machine10.1109/JIOT.2018.2856241 ↗
3. A Survey on Ambient-Assisted Living Tools for Older Adults10.1109/JBHI.2012.2234129 ↗
4. Mashita, T., Shimatani, K., Iwata, M., Miyamoto, H., Komaki, D., Hara, T., Kiyokawa, K., Takemura, H., and Nishio, S. (2012, January 4–8). Human activity recognition for a content search system considering situations of smartphone users. Proceedings of the 2012 IEEE Virtual Reality Workshops, Costa Mesa, CA, USA.10.1109/VR.2012.6180847 ↗
5. Ho, J., and Intille, S.S. (2005, January 2–7). Using context-aware computing to reduce the perceived burden of interruptions from mobile devices. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, Portland, OR, USA.10.1145/1054972.1055100 ↗
6. Mehr, H.D., Polat, H., and Cetin, A. (2016, January 20–21). Resident activity recognition in smart homes by using artificial neural networks. Proceedings of the 2016 4th International Istanbul Smart Grid Congress and Fair (ICSG), Istanbul, Turkey.10.1109/SGCF.2016.7492428 ↗
7. Personalization Algorithm for Real-Time Activity Recognition Using PDA, Wireless Motion Bands, and Binary Decision Tree10.1109/TITB.2010.2055060 ↗
8. Yamato, J., Ohya, J., and Ishii, K. (1992, January 15–18). Recognizing human action in time-sequential images using hidden markov model. Proceedings of the 1992 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Champaign, IL, USA.
9. Lockhart, J.W., Pulickal, T., and Weiss, G.M. (2012, January 5–8). Applications of mobile activity recognition. Proceedings of the 2012 ACM Conference on Ubiquitous Computing, Pennsylvania, PA, USA.10.1145/2370216.2370441 ↗
10. Video-understanding framework for automatic behavior recognition10.3758/BF03192795 ↗
11. Bao, L., and Intille, S.S. (2004). Activity recognition from user-annotated acceleration data. International Conference on Pervasive Computing, Springer.10.1007/978-3-540-24646-6_1 ↗
12. He, Z., and Jin, L. (2009, January 11–14). Activity recognition from acceleration data based on discrete consine transform and SVM. Proceedings of the 2009 IEEE International Conference on Systems, Man and Cybernetics, San Antonio, TX, USA.10.1109/ICSMC.2009.5346042 ↗
13. Krishnan, N.C., and Panchanathan, S. (April, January 30). Analysis of low resolution accelerometer data for continuous human activity recognition. Proceedings of the 2008 IEEE International Conference on Acoustics, Speech and Signal Processing, Las Vegas, NV, USA.10.1109/ICASSP.2008.4518365 ↗
14. A study on human activity recognition using accelerometer data from smartphones10.1016/j.procs.2014.07.009 ↗
15. Hammerla, N.Y., Halloran, S., and Plötz, T. (2016). Deep, convolutional, and recurrent models for human activity recognition using wearables. arXiv.
16. Human activity recognition with smartphone sensors using deep learning neural networks10.1016/j.eswa.2016.04.032 ↗
17. Jiang, W., and Yin, Z. (2015, January 26–30). Human activity recognition using wearable sensors by deep convolutional neural networks. Proceedings of the 23rd ACM International Conference on Multimedia, Brisbane, Australia.10.1145/2733373.2806333 ↗
18. Ensembles of deep lstm learners for activity recognition using wearables10.1145/3090076 ↗
19. An effective deep autoencoder approach for online smartphone-based human activity recognition
20. Zhang, L., Wu, X., and Luo, D. (2015, January 9–11). Recognizing human activities from raw accelerometer data using deep neural networks. Proceedings of the 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA.10.1109/ICMLA.2015.48 ↗
21. Real-time human activity recognition from accelerometer data using Convolutional Neural Networks10.1016/j.asoc.2017.09.027 ↗
22. Lee, S.M., Yoon, S.M., and Cho, H. (2017, January 13–16). Human activity recognition from accelerometer data using Convolutional Neural Network. Proceedings of the 2017 IEEE International Conference on Big Data and Smart Computing (BigComp), Jeju, Korea.
23. Deep neural networks for sensor based human activity recognition using selective kernel convolution
24. Imaging and fusing time series for wearable sensor-based human activity recognition10.1016/j.inffus.2019.06.014 ↗
25. The layer-wise training convolutional neural networks using local loss for sensor-based human activity recognition10.1109/JSEN.2020.2978772 ↗
26. Pienaar, S.W., and Malekian, R. (2019, January 18–20). Human activity recognition using LSTM-RNN deep neural network architecture. Proceedings of the 2019 IEEE 2nd Wireless Africa Conference (WAC), Pretoria, South Africa.10.1109/AFRICA.2019.8843403 ↗
27. Deep recurrent neural network for mobile human activity recognition with high throughput10.1007/s10015-017-0422-x ↗
28. Mekruksavanich, S., and Jitpattanakul, A. (2021). Lstm networks using smartphone data for sensor-based human activity recognition in smart homes. Sensors, 21.10.3390/s21051636 ↗
29. Li, X., Luo, J., and Younes, R. (2020, January 12–17). ActivityGAN: Generative adversarial networks for data augmentation in sensor-based human activity recognition. Proceedings of the 2020 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2020 ACM International Symposium on Wearable Computers, Virtual Event.10.1145/3410530.3414367 ↗
30. Deep learning for sensor-based activity recognition: A survey10.1016/j.patrec.2018.02.010 ↗
31. Anguita, D., Ghio, A., Oneto, L., Parra, X., and Reyes-Ortiz, J.L. (2013, January 24–26). A public domain dataset for human activity recognition using smartphones. Proceedings of the 21th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, ESANN 2013, Bruges, Belgium.
32. Activity recognition using cell phone accelerometers10.1145/1964897.1964918 ↗