Related Experiment Video
Updated: Sep 16, 2026

Artificial Intelligence-Based System for Detecting Attention Levels in Students
Published on: December 15, 2023
A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based
Hans E Anderson1, Robert A Scheidt2, Kimberly D Bassindale3
1Department of Orthopaedics, Division of Physical Medicine and Rehabilitation, Stanford Medicine, Stanford, CA 94305, USA.
Abstract:
Machine learning (ML) algorithms can be used to extract clinically meaningful information from movement data captured by inertial measurement units (IMUs), but many human activity recognition (HAR) pipelines are developed on large laboratory datasets that may not reflect small, heterogeneous, real-world samples. The purpose of this study is to systematically compare the accuracy of multiple ML models, feature sets (both simple and expanded), class balancing strategies, null and transition period handling techniques, and sensor configurations for recognizing a set of four everyday activities extracted from IMU time series data from an age-diverse population. Six ML classifiers were trained and tested: multilayer perceptron, random forest, k-nearest neighbors, logistic regressor, CatBoost, and gaussian naive bayes. These approaches were used in a pipeline with differing sampling techniques including the synthetic minority oversampling technique or random undersampling, and feature handling steps including principal component analysis or a Select-From-Model metatransformer. Additionally, two deep learning methods, DeepConvLSTM and ResGCNN, were trained and tested. Accuracy, precision, recall, and area under the receiver operating characteristic curve were compared to a dummy classifier as a benchmark approximation to chance performance. All pipelines performed better than the dummy classifier, with model accuracy ranging between 0.427 and 0.644. This study demonstrated the ability of several ML algorithms to properly recognize a set of functional activities using limited IMU data from both children and adults.
