A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based Setting
Highlights
- Several classical machine learning models outperformed two deep learning models (as well as a chance-level “dummy” classifier) in classifying functional activities using both a small and an expanded set of features derived from an IMU dataset from four wearable sensors.
- Functional activity classification using IMU data from bilateral wrist and ankle sensors is feasible in a less constrained, community-based setting.
- Multiple ML models performed with balanced accuracy >60% (far better than chance performance) despite a small, heterogeneous dataset and short (5 s) input windows, supporting their potential use in small-sample clinical populations.
- For small-sample human activity recognition (HAR), model choice, feature complexity, non-target (“null”) activity handling, and sensor layout should be evaluated comprehensively in heterogeneous datasets for real-world applications.
Abstract
1. Introduction
2. Materials and Methods
2.1. Materials
2.2. Protocol
2.3. Data Preprocessing
2.4. Machine Learning
- Accuracy: The number of correct predictions divided by the total number of predictions.
- Precision for a given class (positive predictive value): The fraction of correctly predicted members of a class (true positives, TP) normalized to the total predicted members of that class (sum of true positives and false positives, FP).
- Recall for a given class (aka sensitivity or true positive rate): The fraction of positives predicted in a class (true positives) normalized to the total number in that class (sum of the true positives and the false negatives, FN).
- The area under the receiver operating characteristic curve (AUC): The area underneath the curve obtained by plotting the true-positive rate (same as recall), and the true-negative rate (the fraction of true negatives of the total number of negatives) given different cutoff thresholds for a binary classifier. A one-vs-one method (with each class compared to each of the other class) is used to obtain the AUC of each class.
- F1 score, or the harmonic mean of precision and recall, was also calculated because it is a more robust measure of performance when class imbalance is suspected (Equation (5), where P represents precision, and R represents recall).
3. Results
3.1. Study Population
3.2. Model Performance with Expanded Feature Set
3.3. Model Performance with Simplified Feature Set
3.4. Model Performance and Age
3.5. Impact of Transitional Windows
3.6. Null Versus Non-Null Classification
3.7. Sensor Placement
3.8. Deep Learning
3.9. Computational Resource Utilization
4. Discussion
4.1. Research Gap and Contributions
4.2. Limitations and Future Directions
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ML | Machine Learning |
| IMU | Inertial Measurement Unit |
| RMS | Root Mean Square |
| MLP | Multilayer Perceptron |
| RF | Random Forest |
| KNN | K-Nearest Neighbors |
| LR | Logistic Regressor |
| GNB | Gaussian Naïve Bayes |
| RUS | Random Undersampling |
| SMOTE | Synthetic Minority Oversampling Technique |
| PCA | Principal Component Analysis |
| SFM | Select-From-Model |
| AUC | Area Under the Receiver Operating Characteristic Curve |
References
- Wei, S.; Wu, Z. The Application of Wearable Sensors and Machine Learning Algorithms in Rehabilitation Training: A Systematic Review. Sensors 2023, 23, 7667. [Google Scholar] [CrossRef] [Scilit]
- Boukhennoufa, I.; Zhai, X.; Utti, V.; Jackson, J.; McDonald-Maier, K.D. Wearable sensors and machine learning in post-stroke rehabilitation assessment: A systematic review. Biomed. Signal Process. Control 2022, 71, 103197. [Google Scholar] [CrossRef] [Scilit]
- Rast, F.M.; Labruyère, R. Systematic review on the application of wearable inertial sensors to quantify everyday life motor activity in people with mobility impairments. J. Neuroeng. Rehabil. 2020, 17, 148. [Google Scholar] [CrossRef] [Scilit]
- Sabry, F.; Eltaras, T.; Labda, W.; Alzoubi, K.; Malluhi, Q. Machine Learning for Healthcare Wearable Devices: The Big Picture. J. Healthc. Eng. 2022, 2022, 4653923. [Google Scholar] [CrossRef] [Scilit]
- Nguyen, B.; Coelho, Y.; Bastos, T.; Krishnan, S. Trends in human activity recognition with focus on machine learning and power requirements. Mach. Learn. Appl. 2021, 5, 100072. [Google Scholar] [CrossRef] [Scilit]
- Hou, C. A study on IMU-based human activity recognition using deep learning and traditional machine learning. In Proceedings of the 2020 5th International Conference on Computer and Communication Systems, ICCCS 2020, Shanghai, China, 15–18 May 2020. [Google Scholar] [CrossRef] [Scilit]
- Roggen, D.; Calatroni, A.; Rossi, M.; Holleczek, T.; Forster, K.; Troster, G.; Lukowicz, P.; Bannach, D.; Pirkl, G.; Ferscha, A.; et al. Collecting complex activity datasets in highly rich networked sensor environments. In Proceedings of the INSS 2010—7th International Conference on Networked Sensing Systems, Kassel, Germany, 15–18 June 2010. [Google Scholar] [CrossRef] [Scilit]
- Reiss, A. PAMAP2 Physical Activity Monitoring [Dataset]; UCI Machine Learning Repository: Irvine, CA, USA, 2012. [Google Scholar] [CrossRef]
- Weiss, G.M. WISDM Smartphone and Smartwatch Activity and Biometrics Dataset; WISDM Smartphone and Smartwatch Activity and Biometrics Dataset Data Set; UCI Machine Learning Repository: Irvine, CA, USA, 2019; Volume 7. [Google Scholar] [CrossRef]
- Reyes-Ortiz, J.; Anguita, D.; Ghio, A.; Oneto, L.; Parra, X. Human Activity Recognition Using Smartphones [Dataset]; UCI Machine Learning Repository: Irvine, CA, USA, 2013. [Google Scholar] [CrossRef]
- Stojchevska, M.; De Brouwer, M.; Courteaux, M.; Ongenae, F.; Van Hoecke, S. From Lab to Real World: Assessing the Effectiveness of Human Activity Recognition and Optimization through Personalization. Sensors 2023, 23, 4606. [Google Scholar] [CrossRef] [Scilit]
- Tavasoli, S.; Tavasoli, M.; Shojaeefard, M.; Farahmand, F. Analysis of cerebral palsy gait based on movement primitives. Clin. Biomech. 2023, 104, 105947. [Google Scholar] [CrossRef] [Scilit]
- Delmas, S.; Tiwari, A.; Tseng, H.Y.; Poisson, S.N.; Diehl, M.; Lodha, N. Amplified Intraindividual Variability in Motor Performance in Stroke Survivors: Links to Cognitive and Clinical Outcomes. Brain Behav. 2025, 15, e70365. [Google Scholar] [CrossRef] [Scilit]
- Cavanagh, S.K.; Gochyyev, P.; Nayeem, R.; Dusang, A.N.; Hamilton, T.; DiCarlo, J.A.; Kautz, S.A.; Sternad, D.; Walsh, C.; Hochberg, L.; et al. Trial-By-Trial Variation In Upper Extremity Movement Smoothness After Acute Stroke Relates To Clinical Assessments And Corticospinal Tract Injury. Neurorehabilit. Neural Repair 2025, 39, 639–652. [Google Scholar] [CrossRef] [Scilit]
- Chiudo, M.M.; Bet, P.; Costa, G.F.; Simões, M.D.S.M.P.; Ponti, M.A.; Dourado, V.Z.; Castro, P.C. Mapping features and patterns of accelerometry data on human movement in different age groups and associated health problems: A cross-sectional study. Exp. Gerontol. 2022, 168, 111949. [Google Scholar] [CrossRef] [Scilit]
- Mikos, V.; Yen, S.-C.; Tay, A.; Heng, C.-H.; Chung, C.L.H.; Liew, S.H.X.; Tan, D.M.L.; Au, W.L. Regression analysis of gait parameters and mobility measures in a healthy cohort for subject-specific normative values. PLoS ONE 2018, 13, e0199215. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Li, F.; Hobbelen, H.S.; van Munster, B.C.; Lamoth, C.J. Gait parameters and daily physical activity for distinguishing pre-frail, frail, and non-frail older adults: A scoping review. J. Nutr. Health Aging 2025, 29, 100580. [Google Scholar] [CrossRef] [Scilit]
- Stewart, T.; Narayanan, A.; Hedayatrad, L.; Neville, J.; Mackay, L.; Duncan, S. A dual-accelerometer system for classifying physical activity in children and adults. Med. Sci. Sports Exerc. 2018, 50, 2595–2602. [Google Scholar] [CrossRef] [Scilit]
- Trost, S.G.; Cliff, D.P.; Ahmadi, M.N.; Van Tuc, N.; Hagenbuchner, M. Sensor-enabled Activity Class Recognition in Preschoolers: Hip versus Wrist Data. Med. Sci. Sports Exerc. 2018, 50, 634–641. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Kang, P.; Tan, T.; Shull, P.B. Transfer Learning Improves Accelerometer-Based Child Activity Recognition via Subject-Independent Adult-Domain Adaption. IEEE J. Biomed. Health Inform. 2022, 26, 2086–2095. [Google Scholar] [CrossRef] [Scilit]
- Alanazi, M.; Aldahr, R.S.; Ilyas, M. Human Activity Recognition through Smartphone Inertial Sensors with ML Approach. Eng. Technol. Appl. Sci. Res. 2024, 14, 12780–12787. [Google Scholar] [CrossRef] [Scilit]
- Kwon, Y.; Ho, Y.; Heo, J.-H.; Jeon, H.-M.; Kim, J.; Eom, G.-M. Optimization of Sensor Placement Combinations and Classification Thresholds for the Accelerometer-Based Activity Recognition. J. Med. Imaging Health Inform. 2018, 8, 55–61. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Sun, Y.; Sun, S. Improving human activity recognition performance by data fusion and feature engineering. Sensors 2021, 21, 692. [Google Scholar] [CrossRef] [Scilit]
- Gebreyesus, Y.; Dalton, D.; Nixon, S.; De Chiara, D.; Chinnici, M. Machine Learning for Data Center Optimizations: Feature Selection Using Shapley Additive exPlanation (SHAP). Future Internet 2023, 15, 88. [Google Scholar] [CrossRef] [Scilit]
- Gao, L.; Bourke, A.K.; Nelson, J. Evaluation of accelerometer based multi-sensor versus single-sensor activity recognition systems. Med. Eng. Phys. 2014, 36, 779–785. [Google Scholar] [CrossRef] [Scilit]
- Shoaib, M.; Bosch, S.; Incel, O.D.; Scholten, H.; Havinga, P.J.M. Complex human activity recognition using smartphone and wrist-worn motion sensors. Sensors 2016, 16, 426. [Google Scholar] [CrossRef] [Scilit]
- Bailey, R.R.; Klaesner, J.W.; Lang, C.E. An accelerometry-based methodology for assessment of real-world bilateral upper extremity activity. PLoS ONE 2014, 9, e103135. [Google Scholar] [CrossRef] [Scilit]
- Najafi, B.; Aminian, K.; Paraschiv-Ionescu, A.; Loew, F.; Büla, C.J.; Robert, P. Ambulatory system for human motion analysis using a kinematic sensor: Monitoring of daily physical activity in the elderly. IEEE Trans. Biomed. Eng. 2003, 50, 711–723. [Google Scholar] [CrossRef] [Scilit]
- Bai, L. Time-Frequency Analysis of Upper Limb Motion Based on Inertial Sensors. In Proceedings of the 2021 32nd Irish Signals and Systems Conference, ISSC 2021, Athlone, Ireland, 10–11 June 2021. [Google Scholar] [CrossRef] [Scilit]
- Zhou, H.; Zhang, X.; Feng, Y.; Zhang, T.; Xiong, L. Efficient human activity recognition on edge devices using DeepConv LSTM architectures. Sci. Rep. 2025, 15, 13830. [Google Scholar] [CrossRef] [Scilit]
- Liao, T.; Zhao, J.; Liu, Y.; Ivanov, K.; Xiong, J.; Yan, Y. Deep Transfer Learning with Graph Neural Network for Sensor-Based Human Activity Recognition. In Proceedings of the 2022 IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2022, Las Vegas, NV, USA, 6–8 December 2022. [Google Scholar] [CrossRef] [Scilit]
- Schneiberg, S.; Sveistrup, H.; McFadyen, B.; McKinley, P.; Levin, M.F. The development of coordination for reach-to-grasp movements in children. Exp. Brain Res. 2002, 146, 142–154. [Google Scholar] [CrossRef] [Scilit]
- Gasser, T.; Rousson, V.; Caflisch, J.; Jenni, O.G. Development of motor speed and associated movements from 5 to 18 years. Dev. Med. Child Neurol. 2010, 52, 256–263. [Google Scholar] [CrossRef] [Scilit]
- Kuhtz-Buschbeck, J.P.; Stolze, H.; Jöhnk, K.; Boczek-Funcke, A.; Illert, M. Development of prehension movements in children: A kinematic study. Exp. Brain Res. 1998, 122, 424–432. [Google Scholar] [CrossRef] [Scilit]
- Devi, H.; Kumar, P.; Govindarajan, V.; Kumar, S.; Lohano, R.; Hitesh, H.; Shiwlani, A. A Comparative Study of Classical Machine Learning and Deep Learning Approaches for Human Behavior Detection Using Multisensor Data. IEEE Access 2026, 14, 25311–25325. [Google Scholar] [CrossRef] [Scilit]
- Rahman, S.; Irfan, M.; Raza, M.; Ghori, K.M.; Yaqoob, S.; Awais, M. Performance analysis of boosting classifiers in recognizing activities of daily living. Int. J. Environ. Res. Public Health 2020, 17, 1082. [Google Scholar] [CrossRef] [Scilit]
- Anguita, D.; Ghio, A.; Oneto, L.; Parra, X.; Reyes-Ortiz, J.L. A public domain dataset for human activity recognition using smartphones. In Proceedings of the ESANN 2013 Proceedings, 21st European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, Bruges, Belgium, 24–26 April 2013. [Google Scholar]
- Ordóñez, F.J.; Roggen, D. Deep convolutional and LSTM recurrent neural networks for multimodal wearable activity recognition. Sensors 2016, 16, 115. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. Catboost: Unbiased boosting with categorical features. In Advances in Neural Information Processing Systems, Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montreal, Canada, 2018; Curran Associates Inc.: Red Hook, NY, USA, 2018. [Google Scholar]
- Tang, Q.; John, D.; Thapa-Chhetry, B.; Arguello, D.J.; Intille, S. Posture and Physical Activity Detection: Impact of Number of Sensors and Feature Type. Med. Sci. Sports Exerc. 2020, 52, 1834–1845. [Google Scholar] [CrossRef] [Scilit]
- Preece, S.J.; Goulermas, J.Y.; Kenney, L.P.J.; Howard, D.; Meijer, K.; Crompton, R. Activity identification using body-mounted sensors—A review of classification techniques. Physiol. Meas. 2009, 30, R1–R33. [Google Scholar] [CrossRef] [Scilit]
- Alapati, Y.K.; Sindhu, K. Combining Clustering with Classification: A Technique to Improve Classification Accuracy. Int. J. Comput. Sci. Eng. 2016, 5, 1–3. [Google Scholar]
- Wolpert, D.H. The Lack of a Priori Distinctions between Learning Algorithms. Neural Comput. 1996, 8, 1341–1390. [Google Scholar] [CrossRef] [Scilit]







| Female | 69.6% |
| Race: White | 95.7% |
| Age (y) | 12 [10.5,26.5] |
| Height (in) | 60 [56,64.5] |
| Weight (lb) | 103 [80,140] |
| Model | Samples (n) | Percent of Total |
|---|---|---|
| Null | 417 | 30.4% |
| Fold | 285 | 20.7% |
| Stack | 251 | 18.3% |
| Stand | 219 | 15.9% |
| Dance | 202 | 14.7% |
| Mode | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| CatBoost | 0.644 [0.600,0.686] | 0.657 [0.613,0.698] | 0.637 [0.591,0.681] | 0.643 [0.597,0.685] | 0.847 [0.819,0.875] |
| MLP | 0.642 [0.603,0.684] | 0.650 [0.606,0.692] | 0.623 [0.578,0.666] | 0.629 [0.580,0.671] | 0.829 [0.798,0.857] |
| RF | 0.613 [0.573,0.657] | 0.629 [0.587,0.671] | 0.606 [0.564,0.653] | 0.613 [0.571,0.656] | 0.843 [0.817,0.869] |
| LR | 0.598 [0.556,0.644] | 0.613 [0.569,0.660] | 0.590 [0.547,0.638] | 0.591 [0.546,0.633] | 0.818 [0.792,0.844] |
| KNN | 0.577 [0.533,0.621] | 0.612 [0.569,0.656] | 0.569 [0.526,0.614] | 0.576 [0.531,0.620] | 0.807 [0.777,0.835] |
| GNB | 0.427 [0.385,0.471] | 0.492 [0.445,0.541] | 0.437 [0.402,0.476] | 0.410 [0.368,0.452] | 0.780 [0.756,0.804] |
| DC | 0.201 [0.167,0.239] | 0.200 [0.165,0.235] | 0.197 [0.162,0.233] | 0.195 [0.161,0.231] | 0.500 [0.500,0.500] |
| Model | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| MLP | 0.567 [0.525,0.615] | 0.577 [0.529,0.629] | 0.543 [0.499,0.593] | 0.547 [0.501,0.598] | 0.800 [0.771,0.829] |
| CatBoost | 0.550 [0.506,0.594] | 0.563 [0.517,0.608] | 0.542 [0.498,0.592] | 0.545 [0.501,0.590] | 0.832 [0.807,0.858] |
| RF | 0.542 [0.496,0.586] | 0.555 [0.508,0.601] | 0.535 [0.487,0.582] | 0.536 [0.489,0.580] | 0.797 [0.768,0.825] |
| KNN | 0.517 [0.475,0.563] | 0.552 [0.508,0.596] | 0.511 [0.466,0.558] | 0.510 [0.465,0.554] | 0.750 [0.719,0.782] |
| LR | 0.508 [0.464,0.556] | 0.534 [0.487,0.586] | 0.498 [0.454,0.548] | 0.497 [0.451,0.545] | 0.791 [0.764,0.817] |
| GNB | 0.431 [0.387,0.475] | 0.510 [0.461,0.560] | 0.450 [0.407,0.490] | 0.428 [0.384,0.467] | 0.761 [0.735,0.789] |
| DC | 0.201 [0.167,0.239] | 0.200 [0.165,0.235] | 0.197 [0.162,0.233] | 0.195 [0.161,0.231] | 0.500 [0.500,0.500] |
| Model | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| CatBoost | 0.624 [0.571,0.674] | 0.628 [0.574,0.682] | 0.608 [0.554,0.660] | 0.614 [0.559,0.664] | 0.844 [0.813,0.873] |
| RF | 0.606 [0.553,0.656] | 0.609 [0.554,0.662] | 0.596 [0.540,0.648] | 0.599 [0.542,0.648] | 0.830 [0.798,0.862] |
| LR | 0.565 [0.509,0.618] | 0.564 [0.507,0.622] | 0.544 [0.488,0.596] | 0.546 [0.487,0.600] | 0.797 [0.764,0.831] |
| GNB | 0.529 [0.482,0.582] | 0.545 [0.491,0.601] | 0.542 [0.493,0.594] | 0.513 [0.463,0.564] | 0.766 [0.729,0.801] |
| MLP | 0.541 [0.494,0.594] | 0.545 [0.492,0.601] | 0.537 [0.485,0.594] | 0.538 [0.485,0.592] | 0.791 [0.755,0.824] |
| KNN | 0.535 [0.482,0.591] | 0.529 [0.474,0.589] | 0.518 [0.462,0.576] | 0.521 [0.464,0.578] | 0.791 [0.758,0.827] |
| DC | 0.182 [0.141,0.227] | 0.177 [0.137,0.220] | 0.180 [0.139,0.225] | 0.175 [0.135,0.216] | 0.500 [0.500,0.500] |
| Model | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| LR | 0.656 [0.609,0.705] | 0.686 [0.642,0.730] | 0.648 [0.602,0.701] | 0.652 [0.603,0.702] | 0.840 [0.809,0.870] |
| CatBoost | 0.653 [0.603,0.702] | 0.672 [0.626,0.716] | 0.637 [0.585,0.686] | 0.648 [0.596,0.695] | 0.874 [0.847,0.899] |
| RF | 0.639 [0.590,0.689] | 0.671 [0.627,0.714] | 0.629 [0.580,0.679] | 0.640 [0.592,0.685] | 0.868 [0.839,0.895] |
| MLP | 0.639 [0.590,0.689] | 0.660 [0.611,0.707] | 0.623 [0.572,0.674] | 0.627 [0.576,0.678] | 0.846 [0.817,0.876] |
| KNN | 0.617 [0.565,0.667] | 0.641 [0.595,0.685] | 0.604 [0.551,0.654] | 0.611 [0.557,0.659] | 0.825 [0.793,0.856] |
| GNB | 0.468 [0.413,0.526] | 0.559 [0.499,0.620] | 0.479 [0.430,0.529] | 0.460 [0.406,0.516] | 0.788 [0.762,0.816] |
| DC | 0.201 [0.157,0.242] | 0.197 [0.155,0.239] | 0.197 [0.156,0.242] | 0.195 [0.154,0.236] | 0.500 [0.500,0.500] |
| Model | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| RF | 0.789 [0.749,0.824] | 0.732 [0.691,0.776] | 0.743 [0.700,0.784] | 0.737 [0.695, 0.777] | 0.809 [0.766,0.853] |
| LR | 0.774 [0.734,0.814] | 0.749 [0.702,0.796] | 0.733 [0.685,0.776] | 0.734 [0.693,0.784] | 0.800 [0.756,0.844] |
| MLP | 0.766 [0.726,0.803] | 0.717 [0.674,0.759] | 0.732 [0.688,0.776] | 0.723 [0.680,0.764] | 0.810 [0.765,0.854] |
| CatBoost | 0.759 [0.720,0.795] | 0.721 [0.675,0.764] | 0.723 [0.677,0.766] | 0.722 [0.677,0.762] | 0.807 [0.763,0.851] |
| GNB | 0.738 [0.699,0.778] | 0.640 [0.601,0.681] | 0.667 [0.623,0.711] | 0.620 [0.573,0.664] | 0.742 [0.690,0.792] |
| KNN | 0.632 [0.586,0.674] | 0.684 [0.631,0.733] | 0.659 [0.611,0.706] | 0.667 [0.616,0.714] | 0.759 [0.710,0.805] |
| DC | 0.496 [0.452,0.538] | 0.490 [0.450,0.530] | 0.488 [0.440,0.535] | 0.471 [0.427,0.515] | 0.500 [0.500,0.500] |
| Model | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|
| CatBoost | 0.696 [0.645,0.743] | 0.702 [0.652,0.748] | 0.689 [0.637,0.739] | 0.691 [0.637,0.738] | 0.872 [0.838,0.901] |
| RF | 0.696 [0.648,0.743] | 0.729 [0.684,0.770] | 0.689 [0.635,0.738] | 0.695 [0.644,0.740] | 0.869 [0.837,0.898] |
| MLP | 0.690 [0.639,0.734] | 0.697 [0.646,0.745] | 0.686 [0.634,0.734] | 0.687 [0.633,0.735] | 0.876 [0.845,0.904] |
| LR | 0.663 [0.609,0.711] | 0.679 [0.625,0.728] | 0.657 [0.601,0.708] | 0.657 [0.600,0.705] | 0.839 [0.805,0.871] |
| KNN | 0.651 [0.600,0.701] | 0.658 [0.607,0.706] | 0.645 [0.592,0.695] | 0.646 [0.592,0.695] | 0.818 [0.780,0.853] |
| GNB | 0.525 [0.469,0.582] | 0.599 [0.542,0.654] | 0.532 [0.478,0.582] | 0.516 [0.458,0.571] | 0.798 [0.763,0.829] |
| DC | 0.293 [0.242,0.340] | 0.294 [0.244,0.342] | 0.295 [0.244,0.342] | 0.292 [0.242,0.338] | 0.500 [0.500,0.500] |
| Study | Dataset | (Number of) Sensors | Window Size (s) | Classifiers | Accuracy | Model Size (KB) |
|---|---|---|---|---|---|---|
| Zhou et al. 2025 [30] | WISDM | (2) smartphone and unilateral wrist | 5 (multiple tested) | 1D CNN, 2D CNN, DeepConv LSTM, Res-GCNN | 0.96–0.98 | 136.5–633.47 |
| Devi et al. 2026 [35] | CMI | (1) unilateral wrist | Not provided | CB, XGB, LGBM, ExtraTrees, BiLSTM, Transformer | 0.81–1.00 | Not provided |
| Rahman et al. 2020 [36] | Public dataset [37] | (1) smartphone | 2.56 | XGB, LGBM, GB, CB, AB | 0.80–0.96 | Not provided |
| Current study | Community derived dataset | (4) bilateral wrists and ankles | 5 | MLP, RF, KNN, LR, CB, GNB, DeepConvLSTM, Res-GCNN | up to 0.789 | 606–2047 |
| Right Ankle | Left Ankle | Right Wrist | Left Wrist | DC | KNN | MLP |
|---|---|---|---|---|---|---|
| ✓ | - | - | - | 0.185 | 0.429 | 0.517 |
| - | ✓ | - | - | 0.185 | 0.500 | 0.515 |
| - | - | ✓ | - | 0.185 | 0.580 | 0.603 |
| - | - | - | ✓ | 0.185 | 0.572 | 0.607 |
| ✓ | ✓ | - | - | 0.185 | 0.464 | 0.526 |
| ✓ | - | - | ✓ | 0.185 | 0.666 | 0.688 |
| ✓ | - | ✓ | - | 0.185 | 0.651 | 0.700 |
| - | ✓ | - | ✓ | 0.185 | 0.642 | 0.678 |
| - | ✓ | ✓ | - | 0.185 | 0.633 | 0.666 |
| - | - | ✓ | ✓ | 0.185 | 0.620 | 0.631 |
| ✓ | ✓ | - | ✓ | 0.185 | 0.646 | 0.672 |
| ✓ | ✓ | ✓ | - | 0.185 | 0.633 | 0.677 |
| ✓ | - | ✓ | ✓ | 0.185 | 0.693 | 0.713 |
| - | ✓ | ✓ | ✓ | 0.185 | 0.677 | 0.688 |
| ✓ | ✓ | ✓ | ✓ | 0.185 | 0.687 | 0.703 |
| Training Time (min) | Classification (s) | |
|---|---|---|
| Present Study | 2127.5 | 306 |
| Ordonez & Roggen [38] | 340.3 | 6.68 |
| Model | Expanded Features | Simple Features | Raw Data |
|---|---|---|---|
| DC | 0.061 | 0.032 | - |
| GNB | 0.064 | 0.045 | - |
| KNN | 0.077 | 0.059 | - |
| MLP | 0.165 | 0.107 | - |
| LR | 0.324 | 0.130 | - |
| RF | 7.879 | 1.619 | - |
| CatBoost | 23.032 | 6.296 | - |
| DeepConvLSTM | - | - | 689 |
| ResGCNN | - | - | 1716 |
| DeepConvLSTM (Augmented Dataset) | - | - | 1873 |
| Model | Augmentation | Optuna | Accuracy | Precision | Recall | F1 Macro | AUC |
|---|---|---|---|---|---|---|---|
| ResGCNN | Yes | Yes | 0.487 [0.457,0.514] | 0.495 [0.462,0.523] | 0.476 [0.444,0.523] | 0.478 [0.445,0.505] | 0.769 [0.750,0.787] |
| ResGCNN | Yes | No | 0.446 [0.428,0.466] | 0.702 [0.652,0.748] | 0.689 [0.637,0.739] | 0.691 [0.637,0.738] | 0.872 [0.838,0.901] |
| DeepConvLSTM | Yes | Yes | 0.441 [0.428,0.456] | 0.440 [0.424,0.457] | 0.409 [0.396,0.423] | 0.409 [0.395,0.425] | 0.725 [0.716,0.735] |
| DeepConvLSTM | Yes | No | 0.464 [0.450,0.478] | 0.729 [0.684,0.770] | 0.689 [0.635,0.738] | 0.695 [0.644,0.740] | 0.869 [0.837,0.898] |
| DeepConvLSTM | No | No | 0.443 [0.429,0.457] | 0.697 [0.646,0.745] | 0.686 [0.634,0.734] | 0.687 [0.633,0.735] | 0.876 [0.845,0.904] |
| Model | Parameters | FLOPs per Sample Inference (KFLOPs) | Inference Throughput (Sample/s) | Inference CPU Usage (Mean; %) | Inference Memory Usage (Max; MB) |
|---|---|---|---|---|---|
| MLP | 14,205 | 28 | 258,720 | 100 | 1744 |
| KNN | 112,340 | 225 | 6285 | 120 | 1743 |
| LR | 415 | 1 | 270,073 | 93 | 1743 |
| RF | 69,550 | 3 | 12,164 | 102 | 1743 |
| GNB | 110 | 0 | 307,174 | 103 | 1743 |
| DC | 0 | 0 | 371,391 | 103 | 1743 |
| CatBoost | 9300 | 14 | 148,157 | 104 | 1743 |
| ResGCNN | 506,701 | 100,577 | 500 | 382 | 1189 |
| DeepConvLSTM | 149,509 | 299 | 5565 | 385 | 719 |
| Model | Expanded Features | Simple Features | Raw Data |
|---|---|---|---|
| DC | 4.5 | 2 | - |
| GNB | 15 | 11 | - |
| LR | 76 | 3 | - |
| MLP | 335 | 197 | - |
| CatBoost | 365 | 192 | - |
| DeepConvLSTM | - | - | 606 |
| KNN | 590 | 169 | - |
| ResGCNN | - | - | 2047 |
| RF | 7100 | 2200 | - |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Anderson, H.E.; Scheidt, R.A.; Bassindale, K.D. A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based Setting. Sensors 2026, 26, 5357. https://doi.org/10.3390/s26175357
Anderson HE, Scheidt RA, Bassindale KD. A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based Setting. Sensors. 2026; 26(17):5357. https://doi.org/10.3390/s26175357
Chicago/Turabian StyleAnderson, Hans E., Robert A. Scheidt, and Kimberly D. Bassindale. 2026. "A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based Setting" Sensors 26, no. 17: 5357. https://doi.org/10.3390/s26175357
APA StyleAnderson, H. E., Scheidt, R. A., & Bassindale, K. D. (2026). A Comparison of Machine Learning Approaches to Activity Classification Using IMU Data Collected in a Community-Based Setting. Sensors, 26(17), 5357. https://doi.org/10.3390/s26175357

