Abstract
Human activity recognition (HAR) models frequently employ window-level cross-validation, potentially inflating performance through participant-specific data leakage. This study evaluates participant-independent HAR using multimodal and motion-only wearable sensor representations. The publicly available, checksum-verified MHEALTH dataset comprised inertial and electrocardiographic recordings from 10 participants performing 12 activities at 50 Hz. Non-overlapping five-second windows yielded 1,335 samples. Eight statistical features per channel generated 184 multimodal and 168 motion-only features. Seven participants formed the development set, while three were held out for testing. Regularised logistic regression and extremely randomised trees were evaluated using five-fold participant-grouped cross-validation. Models were selected exclusively on development performance and frozen before testing. Uncertainty was assessed through participant-clustered bootstrapping. A multilayer perceptron served as an exploratory comparator. The multimodal extremely randomised trees model achieved 0.878 accuracy and 0.879 macro-F1 (95% CI: 0.805–0.901). The motion-only comparator performed better, achieving 0.905 accuracy and 0.908 macro-F1 (95% CI: 0.855–0.921). The paired macro-F1 difference was −0.033 (95% CI: −0.111 to 0.007), despite superior multimodal development performance (0.965 versus 0.955). Errors primarily involved static postures, whereas dynamic locomotor activities were classified correctly. The exploratory multilayer perceptron achieved 0.925 macro-F1. Participant-independent evaluation demonstrated strong generalisation while revealing no improvement from electrocardiographic features. These findings highlight the importance of leakage prevention, frozen model selection, and participant-level uncertainty estimation for reliable wearable-sensor HAR evaluation and reporting.
Keywords
Human Activity Recognition, Wearable Sensors, Participant-Independent Evaluation, Multimodal Sensing, Electrocardiography, Extremely Randomised Trees,Downloads
References
- O.D. Lara, M.A. Labrador, A survey on human activity recognition using wearable sensors. IEEE Communications Surveys & Tutorials, 15(3), (2013) 1192-1209.
- Bulling, U. Blanke, B. Schiele, A tutorial on human activity recognition using body-worn inertial sensors. ACM Computing Surveys, 46(3), (2014) 33.
- L. Bao, S.S. Intille, Activity Recognition from User-Annotated Acceleration Data. In: Ferscha, A., Mattern, F. (eds) Pervasive Computing. Pervasive 2004. Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 3001, (2004) 1-17.
- L. Atallah, B. Lo, R. King, G.-Z. Yang, Sensor positioning for activity recognition using wearable accelerometers. IEEE Transactions on Biomedical Circuits and Systems, 5(4), (2011) 320-329.
- J. Wang, Y. Chen, S. Hao, X. Peng, L. Hu, Deep learning for sensor-based activity recognition: A survey. Pattern Recognition Letters, 119, (2019) 3-11.
- O. Banos, R. Garcia, A. Saez, (2014). MHEALTH [Dataset]. UCI Machine Learning Repository.
- O. Banos, C. Villalonga, R. Garcia, A. Saez, M. Damas, J.A. Holgado-Terriza, S. Lee, H. Pomares, I. Rojas, Design, implementation and validation of a novel open framework for agile development of mobile health applications. BioMedical Engineering OnLine, 14(Suppl 2), (2015) S6.
- O. Banos, J.M. Galvez, M. Damas, H. Pomares, I. Rojas, Window size impact in human activity recognition. Sensors, 14(4), (2014) 6474-6499.
- G.S. Collins, J.B. Reitsma, D.G. Altman, K.G. Moons, Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): The TRIPOD statement. Journal of British Surgery, 102(3), (2015) 148-158.
- G.S. Collins, K.G.M. Moons, P. Dhiman, R.D. Riley, A.L. Beam, B. Van Calster, M. Ghassemi, X. Liu, J.B. Reitsma, M. van Smeden, A.-L. Boulesteix, J.C. Camaradou, L.A. Celi, S. Denaxas, A.K. Denniston, B. Glocker, R.M. Golub, H. Harvey, G. Heinze, A.P. Kengne, E. Lam, N. Lee, E.W. Loder, L. Maier-Hein, B.A. Mateen, M.D. McCradden, L. Oakden-Rayner, J. Ordish, R. Parnell, S. Rose, K. Singh, L. Wynants, P. Logullo, TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, 385, (2024) e078378.
- P. Geurts, D. Ernst, L. Wehenkel, Extremely randomized trees. Machine Learning, 63(1), (2006) 3-42.
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, É. Duchesnay, Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, (2011) 2825-2830.
- M. Sokolova, G. Lapalme, A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), (2009) 427-437.
- A. Fisher, C. Rudin, F. Dominici, All models are wrong, but many are useful: Learning a variable's importance by studying an entire class of prediction models simultaneously. Journal of Machine Learning Research, 20(177), (2019) 1-81.
- Odinaka, P.-H. Lai, A.D. Kaplan, J.A. O'Sullivan, E.J. Sirevaag, J.W. Rohrbaugh, ECG biometric recognition: A comparative analysis. IEEE Transactions on Information Forensics and Security, 7(6), (2012) 1812-1824.
Articles
