Main Article Content

Abstract

This research presents a comparative analysis of machine learning algorithms for human activity recognition (HAR) based on smartwatches using accelerometer sensor data. The main objective of this research is to evaluate and optimise the classification performance of Kernel Support Vector Machine (SVM), Random Forest (RF), and K-Nearest Neighbors(KNN) within an integrated experimental framework. Raw motion data is processed using Fast Fourier Transform (FFT) and statistical feature extraction such as Root Mean Square (RMS) and Signal Magnitude Area (SMA), followed by dimensionality reduction through Principal Component Analysis (PCA). Hyperparameter optimisation was performed using RandomizedSearchCV to ensure a fair comparison of models. The dataset from Kaggle, which includes six daily activities, was used for this test. The experimental results show that Kernel SVM achieved the highest accuracy of 98.69%, outperforming KNN (97.72%) and Random Forest (97.28%). These findings demonstrate that kernel-based methods are highly effective in capturing nonlinear relationships in motion signals, resulting in superior generalisation performance. This study highlights the critical role of feature engineering and hyperparameter tuning in enhancing model robustness. These results provide valuable insights for the development of lightweight and accurate smart sensor technology for health monitoring applications and smart home automation systems.  

Keywords

Accelerometer Feature Extraction Human Activity Recognition Smartwatch Wearable Computing

Article Details

Author Biographies

Jihan Kusumawardhani, Universitas Semarang

Department Of Information Technology and Communication

Aria Hendrawan, Universitas Semarang

Department Of Information Technology and Communication

References

  1. D. Garcia-Gonzalez, D. Rivero, E. FernandezBlanco, and M. R. Luaces, "A Public Domain Dataset for Real-Life Human Activity Recognition Using Smartphone Sensors," Sensors (Switzerland), vol. 20, no. 8, 2020. [Online]. Available: https://doi.org/10.3390/s20082200.
  2. N. Ahmed, J. Ibna Rafiq, and M. Rashedul Islam, "Enhanced Human Activity Recognition Based on Smartphone Sensor Data Using Hybrid Feature Selection Model," Sensors (Switzerland), vol. 20, no. 1, 2020. [Online]. Available: https://doi.org/10.3390/s20010317.
  3. Y. Joy Rakesh, R. Kavitha, and J. Julian, "Human Activity Recognition Using Wearable Sensors," in Advances in Intelligent Systems and Computing, vol. 1177, 2021. [Online]. Available: https://doi.org/10.1007/978-981-155679-1_51.
  4. N. C. Sri Harsha, Y. Girish Venkata Sai Anudeep, Kudarvalli Vikash, and D. Venkata Ratnam, "Performance Analysis of Machine Learning Algorithms for Smartphone-Based Human Activity Recognition," Wireless Personal Communications, vol. 121, no. 1, 2021. [Online]. Available: https://doi.org/10.1007/s11277-02108641-7.
  5. P. Tarafdar and I. Bose, "Recognition of Human Activities for Wellness Management Using a Smartphone and a Smartwatch: A Boosting Approach," Decision Support Systems, vol. 140, 2021. [Online]. Available: https://doi.org/10.1016/j.dss.2020.1134 26.
  6. S. Liu, J. Wang, and W. Zhang, "Federated Personalized Random Forest for Human Activity Recognition," Mathematical Biosciences and Engineering, vol. 19, no. 1, 2022. [Online]. Available: https://doi.org/10.3934/mbe.2022044.
  7. B. A. Alsaify, M. Almazari, R. Alazrai, S. Alouneh, and M. I. Daoud, "A CSIBased Multi-Environment Human Activity Recognition Framework," Applied Sciences (Switzerland), vol. 12, no. 2, 2022. [Online]. Available: https://doi.org/10.3390/app12020930.
  8. I. U. Khan, S. Afzal, and J. W. Lee, "Human Activity Recognition via Hybrid Deep Learning Based Model," Sensors, vol.
  9. 22, no. 1, 2022. [Online]. Available: https://doi.org/10.3390/s22010323.
  10. R. A. Lateef and A. R. Abbas, "Human Activity Recognition Using Smartwatch and Smartphone: A Review on Methods, Applications, and Challenges," Iraqi Journal of Science, vol. 63, no. 1, 2022. [Online]. Available: https://doi.org/10.24996/ijs.2022.63.1.3 4.
  11. A. Hayat, M. D. Fernando, B. P. Bhuyan, and R. Tomar, "Human Activity Recognition for Elderly People Using
  12. Machine and Deep Learning Approaches," Information (Switzerland), vol. 13, no. 6, 2022. [Online]. Available: https://doi.org/10.3390/info13060275.
  13. G. Csizmadia, K. Liszkai-Peres, B. Ferdinandy, Á. Miklósi, and V. Konok, "Human Activity Recognition of Children with Wearable Devices Using LightGBM Machine Learning," Scientific Reports, vol. 12, no. 1, 2022. [Online]. Available:
  14. https://doi.org/10.1038/s41598-02209521-1.
  15. T. H. Dao, H. T. H. Yen, V. N. Hoang, D. T. Tran, and D. N. Tran, "Human Activity Recognition System For Moderate Performance Microcontroller Using Accelerometer Data And Random Forest Algorithm," EAI Endorsed Transactions on Industrial Networks and Intelligent Systems, vol. 9, no. 4, 2022. [Online]. Available: https://doi.org/10.4108/eetinis.v9i4.257 1.
  16. D. Thakur and S. Biswas, "An Integration of Feature Extraction and Guided Regularized Random Forest Feature Selection for Smartphone Based Human Activity Recognition," Journal of Network and Computer Applications, vol. 204, 2022. [Online].
  17. Available: https://doi.org/10.1016/j.jnca.2022.103 417.
  18. N. Halim, "Stochastic Recognition of Human Daily Activities via Hybrid Descriptors and Random Forest Using Wearable Sensors," Array, vol. 15, 2022. [Online]. Available:
  19. https://doi.org/10.1016/j.array.2022.100 190.
  20. Y. Nawal, M. Oussalah, B. Fergani, and A. Fleury, "New Incremental SVM Algorithms for Human Activity Recognition in Smart Homes," Journal of Ambient Intelligence and Humanized Computing, vol. 14, no. 10, 2023. [Online]. Available:
  21. https:/doi.org/10.1007/s12652-02203798-w.
  22. D. Thakur and S. Biswas, "Guided Regularized Random Forest Feature Selection for Smartphone Based Human Activity Recognition," Journal of Ambient Intelligence and Humanized Computing, vol. 14, no. 7, 2023. [Online]. Available: https://doi.org/10.1007/s12652-02203862-5.
  23. Y. J. Luwe, C. P. Lee, and K. M. Lim, "Wearable Sensor-Based Human Activity Recognition with Ensemble Learning: A Comparison Study," International Journal of Electrical and Computer Engineering, vol. 13, no. 4,
  24. 2023. [Online]. Available: https://doi.org/10.11591/ijece.v13i4.pp 4029-4040.
  25. A. Ray, M. H. Kolekar, R. Balasubramanian, and A. Hafiane, "Transfer Learning Enhanced Vision-Based Human Activity Recognition: A Decade-Long Analysis," International Journal of Information Management Data Insights, 2023. [Online]. Available: https://doi.org/10.1016/j.jjimei.2022.10 0142.
  26. Y. Karayaneva, S. Sharifzadeh, Y. Jing, and B. Tan, "Human Activity Recognition for AI-Enabled Healthcare Using LowResolution Infrared Sensor Data," Sensors, vol. 23, no. 1, 2023. [Online]. Available: https://doi.org/10.3390/s23010478
  27. T. H. Tan, J. Y. Shih, S. H. Liu, M. Alkhaleefah, Y. L. Chang, and M. Gochoo, "Using a Hybrid Neural Network and a Regularized Extreme
  28. Learning Machine for Human Activity Recognition with Smartphone and Smartwatch," Sensors, vol. 23, no. 6, 2023. [Online]. Available: https://doi.org/10.3390/s23063354.
  29. D. Garcia-Gonzalez, D. Rivero, E. FernandezBlanco, and M. R. Luaces, "New Machine Learning Approaches for Real-Life Human Activity Recognition Using Smartphone Sensor-Based Data," Knowledge-Based Systems, vol. 262, 2023. [Online]. Available:
  30. https://doi.org/10.1016/j.knosys.2023.1 10260.
  31. V. Ghate and S. Hemalatha C., "A Comprehensive Comparison of Machine Learning Approaches with Hyper-Parameter Tuning for Smartphone Sensor-Based Human Activity Recognition," Measurement: Sensors, vol. 30, 2023. [Online]. Available: https://doi.org/10.1016/j.measen.2023.1 00925.
  32. S. Gaikwad, S. Bhatlawande, S. Shilaskar, and A. Solanke, "A Computer VisionApproach for Activity Recognition and Residential Monitoring of Elderly People," Medicine in Novel Technology and Devices, vol. 20, 2023. [Online]. Available:
  33. https://doi.org/10.1016/j.medntd.2023.1 00272.
  34. M. Ghosian, A. A. Nazari Shirehjini, and S. Shirmohammadi, "A WiFi-Based Method for Recognizing Fine-Grained Multiple-Subject Human Activities," IEEE Transactions on Instrumentation and Measurement, vol. 72, 2023. [Online]. Available:
  35. https://doi.org/10.1109/TIM.2023.3289 547.
  36. M. G. E. Ante, R. Gustilo, A. S. I. Crisostomo, and S. Al Balushi, "Human Activity Recognition Using Supervised Machine Learning Techniques," in AIP Conference Proceedings, vol. 2898, 2024. [Online]. Available: https://doi.org/10.1063/5.0194457.
  37. R. Tholeti and H. Tholeti, "Human Activity Recognition System with Smartphones Using Machine Learning," International Journal for Research in Applied Science and Engineering Technology, vol. 12, no. 2, 2024. [Online]. Available: https://doi.org/10.22214/ijraset.2024.58 437.
  38. A. Saha, S. Rajak, J. Saha, and C. Chowdhury, "A Survey of Machine Learning and Meta-Heuristics Approaches for Sensor-Based Human Activity Recognition Systems," Journal of Ambient Intelligence and Humanized Computing, vol. 15, no. 1, 2024. [Online]. Available: https://doi.org/10.1007/s12652-02203870-5.
  39. W. Guo, S. Yamagishi, and L. Jing, "Human Activity Recognition via Wi-Fi and Inertial Sensors with Machine Learning," IEEE Access, vol. 12, 2024. [Online]. Available: https://doi.org/10.1109/ACCESS.2024. 3360490.
  40. D. Thakur and S. Biswas, "Permutation Importance Based Modified Guided Regularized Random Forest in Human Activity Recognition with Smartphone," Engineering Applications of Artificial Intelligence, vol. 129, 2024. [Online]. Available: https://doi.org/10.1016/j.engappai.2023 .107681.
  41. R. A. Praba and L. Suganthi, "HARNet: Automatic Recognition of Human Activity from Mobile Health Data Using CNN and Transfer Learning of LSTM with SVM," Automatika, vol. 65, no. 1, 2024. [Online]. Available: https://doi.org/10.1080/00051144.2023. 2290736.
  42. S. Abbas, S. Alsubai, M. Ibrar Ul Haque, G. Avelino Sampedro, A. Almadhor, A. Al Hejaili, and I. Ivanochko, "Active Machine Learning for Heterogeneity Activity Recognition Through Smartwatch Sensors," IEEE Access, vol. 12, 2024. [Online]. Available: https://doi.org/10.1109/ACCESS.2024. 3362676.
  43. Z. Comas-González, J. Mardini, S. A. Butt, A. Sanchez-Comas, K. Synnes, A. Joliet, E. Delahoz-Franco, et al., "Sensors and Machine Learning Algorithms for Location and POSTURE Activity Recognition in Smart Environments," Automatic Control and Computer Sciences, vol. 58, no. 1, 2024. [Online]. Available: https://doi.org/10.3103/S014641162401 0048.
  44. N. Saffaryazdi, N. Kirkcaldy, G. Lee, K. Loveys, E. Broadbent, and M. Billinghurst, "Exploring the Impact of Computer-Mediated Emotional Interactions on Human Facial and Physiological Responses," Telematics and Informatics Reports, vol. 14, 2024. [Online]. Available:
  45. https://doi.org/10.1016/j.teler.2024.100 131.
  46. A. I. Alexan, A. R. Alexan, and S. Oniga, "Real-Time Machine Learning for Human Activities Recognition Based on Wrist-Worn Wearable Devices," Applied Sciences (Switzerland), vol. 14, no. 1, 2024. [Online]. Available: https://doi.org/10.3390/app1401032