Jurnal Informatika dan Rekayasa Perangkat Lunak
Vol. 8 No. 2 (2026): September

Smartwatch-Based Human Activity Recognition Using Random Forest, Kernel Support Vector Machine, and K-Nearest Neighbors: A Comparative Study of Sensor Data Classification Accuracy

Jihan Kusumawardhani (Universitas Semarang)
Aria Hendrawan (Universitas Semarang)



Article Info

Publish Date
22 Sep 2026

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.  

Copyrights © 2026






Journal Info

Abbrev

JINRPL

Publisher

Subject

Computer Science & IT

Description

Journal of Informatics and Software Engineering accepts scientific articles in the focus of Informatics. The scope can be: Software Engineering, Information Systems, Artificial Intelligence, Computer Based Learning, Computer Networking and Data Communication, and ...