Skip to main content
QUICK REVIEW

[Paper Review] Human Activity Analysis and Recognition from Smartphones using Machine Learning Techniques

Jakaria Rabbi, Md. Tahmid Hasan Fuad|arXiv (Cornell University)|Mar 30, 2021
Context-Aware Activity Recognition SystemsComputer Science19 references10 citations
TL;DR

This study evaluates five machine learning models—Logistic Regression, Decision Tree, Random Forest, SVM, and ANN—for human activity recognition using smartphone sensor data. Using the UCI HAR dataset with accelerometer and gyroscope inputs, SVM achieved the highest average accuracy of 96.33%, significantly outperforming others through grid search hyperparameter tuning and statistical significance testing (p < 0.05).

ABSTRACT

Human Activity Recognition (HAR) is considered a valuable research topic in the last few decades. Different types of machine learning models are used for this purpose, and this is a part of analyzing human behavior through machines. It is not a trivial task to analyze the data from wearable sensors for complex and high dimensions. Nowadays, researchers mostly use smartphones or smart home sensors to capture these data. In our paper, we analyze these data using machine learning models to recognize human activities, which are now widely used for many purposes such as physical and mental health monitoring. We apply different machine learning models and compare performances. We use Logistic Regression (LR) as the benchmark model for its simplicity and excellent performance on a dataset, and to compare, we take Decision Tree (DT), Support Vector Machine (SVM), Random Forest (RF), and Artificial Neural Network (ANN). Additionally, we select the best set of parameters for each model by grid search. We use the HAR dataset from the UCI Machine Learning Repository as a standard dataset to train and test the models. Throughout the analysis, we can see that the Support Vector Machine performed (average accuracy 96.33%) far better than the other methods. We also prove that the results are statistically significant by employing statistical significance test methods.

Motivation & Objective

  • To evaluate the performance of multiple machine learning models in classifying human activities from smartphone sensor data.
  • To identify the most accurate model for human activity recognition using standard benchmark datasets.
  • To apply hyperparameter tuning via grid search to optimize model performance.
  • To validate the statistical significance of performance differences between models using t-tests.
  • To determine whether traditional ML models can outperform deep learning approaches on this specific HAR dataset.

Proposed method

  • Utilized the UCI Human Activity Recognition dataset collected from smartphone accelerometers and gyroscopes.
  • Applied 5-fold stratified cross-validation with grid search to optimize hyperparameters for each model.
  • Trained and evaluated five models: Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Support Vector Machine (SVM), and Artificial Neural Network (ANN).
  • Used standard classification metrics: Accuracy, Precision, Recall, and F1-score for model evaluation.
  • Conducted two-tailed Welch’s t-test and 5×2-fold cross-validation t-test to assess statistical significance of performance differences.
  • Evaluated ANN with varying hidden layers and nodes, observing accuracy degradation with increased depth.

Experimental results

Research questions

  • RQ1Which machine learning model achieves the highest classification accuracy for human activity recognition using smartphone sensor data?
  • RQ2How does hyperparameter tuning via grid search affect the performance of different models on the HAR dataset?
  • RQ3Are the performance differences between top-performing models statistically significant?
  • RQ4Does increasing the depth of an Artificial Neural Network improve its performance on this HAR dataset?
  • RQ5Can traditional machine learning models like SVM and LR outperform more complex models such as deep neural networks on this specific dataset?

Key findings

  • Support Vector Machine (SVM) achieved the highest average accuracy of 96.33% across all models.
  • Logistic Regression performed closely behind SVM, with high precision and recall scores per class, but was statistically outperformed by SVM.
  • Artificial Neural Network (ANN) showed declining accuracy when more than one hidden layer was used, with a 10% drop in performance observed.
  • Decision Tree and Random Forest models exhibited significantly lower accuracy compared to SVM and LR, indicating poor generalization on this dataset.
  • Both Welch’s t-test and 5×2-fold cross-validation t-test confirmed that the performance difference between SVM and other models was statistically significant (p < 0.05).
  • The results suggest that for this specific dataset, traditional machine learning models with proper tuning can outperform deep learning approaches like deep ANN.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.