Research Article

In-depth Analysis of the Performance and Applications of Classical and Deep Learning Models under the UCI HAR Dataset

Yuqin Yang1, Xuxin Wang2,*
1. Eastside Preparatory School, Bellevue, United States
2. Hong Kong Polytechnic University, Hong Kong, China

* Corresponding author: [email protected]

Abstract

Human Activity Recognition (HAR) is vital in pattern recognition and AI, with applications in smart health and security, but faces challenges like diverse activities and sensor noise, making model selection critical. In this work, we compare classical and deep learning models for HAR using the UCI HAR dataset—including inertial sensor data from 30 volunteers performing six activities. Classical models (linear/RBF SVM, Random Forest, KNN, AdaBoost, Stacking) and deep learning models (CNN, RNN-LSTM) are evaluated on accuracy, macro-F1, and resource metrics. A leakage-free workflow is adopted: GridSearchCV (3-fold cross-validation) tunes hyperparameters, models are retrained on the full training set, and tested independently. Results show linear SVM achieves the best single-model accuracy (96.13%), while Stacking (combining linear SVM, KNN, RF) performs best overall (96.61%). CNN (92.60% accuracy) slightly outperforms RNN-LSTM (90.91%), and KNN uses the least memory. This work provides key insights for HAR model selection (linear SVM as baseline, Stacking for accuracy) and guides future work to reduce false positives, advancing HAR technology.

Keywords: human activity recognition (HAR); UCI HAR dataset; classical and deep learning models; model performance comparison
Published: November 5, 2025
DOI: 10.54254/2755-2721/2026.TJ29093
Volume: ACE Vol.203
pp. 53-64
Download PDF

References

  1. Hammerla et al. (2016) Deep, Convolutional, and Recurrent Models for Human Activity Recognition using Wearables.
  2. MDPI Paper (2020) Comparing Human Activity Recognition Models Based on Sensor Data.
  3. Gaikwad et al. (2024) Benchmarking Classical, Deep, and Generative Models for Human Activity Recognition.
  4. Ahmad et al. (2020) Human Activity Recognition using Multi‑Head CNN followed by LSTM.
  5. Mathew et al. (2023) Human activity recognition using Single Frame CNN and ConvLSTM.
  6. Khan & Hossni (2025) Comparative Analysis of LSTM Models Aided with Attention and Squeeze‑and‑Excitation Blocks for Activity Recognition (Scientific Reports)