Workout Detection by Wearable Device Data Using Machine Learning
Abstract
:1. Introduction
2. Method
2.1. Experimental Protocol
2.2. Data Analysis and Machine Learning Algorithms
3. Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Eliot, R.S.; Forker, A.D.; Robertson, R.J. Aerobic exercise as a therapeutic modality in the relief of stress. Adv. Cardiol. 1976, 18, 231–242. [Google Scholar]
- Esch, T.; Stefano, G.B. Endogenous reward mechanisms and their importance in stress reduction, exercise and the brain. Arch. Med. Sci. 2010, 6, 447–455. [Google Scholar] [CrossRef] [PubMed]
- Chu, A.H.; Koh, D.; Moy, F.M.; Müller-Riemenschneider, F. Do workplace physical activity interventions improve mental health outcomes? Occup. Med. 2014, 64, 235–245. [Google Scholar] [CrossRef] [Green Version]
- Hartescu, I.; Morgan, K.; Stevinson, C.D. Increased physical activity improves sleep and mood outcomes in inactive people with insomnia: A randomized controlled trial. J. Sleep Res. 2015, 24, 526–534. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Mead, M.P.; Baron, K.; Sorby, M.; Irish, L.A. Daily Associations Between Sleep and Physical Activity. Int. J. Behav. Med. 2019, 26, 562–568. [Google Scholar] [CrossRef]
- Kredlow, M.A.; Capozzoli, M.C.; Hearon, B.A.; Calkins, A.W.; Otto, M.W. The effects of physical activity on sleep: A meta-analytic review. J. Behav. Med. 2015, 8, 427–449. [Google Scholar] [CrossRef]
- Stefan, L.; Vrgoc, G.; Rupcic, T.; Sporis, G.; Sekulic, D. Sleep Duration and Sleep Quality Are Associated with Physical Activity in Elderly People Living in Nursing Homes. Int. J. Environ. Res. Public Health 2018, 15, 2512. [Google Scholar] [CrossRef] [Green Version]
- Memon, A.R.; Gupta, C.C.; Crowther, M.E.; Ferguson, S.A.; Tuckwell, G.A.; Vincent, G.E. Sleep and physical activity in university students: A systematic review and meta-analysis. Sleep Med. Rev. 2021, 58, 101482. [Google Scholar] [CrossRef]
- Bisson, A.N.S.; Robinson, S.A.; Lachman, M.E. Walk to a better night of sleep: Testing the relationship between physical activity and sleep. Sleep Health 2019, 5, 487–494. [Google Scholar] [CrossRef]
- Atoui, S.; Chevance, G.; Romain, A.J.; Kingsbury, C.; Lachance, J.P.; Bernard, P. Daily associations between sleep and physical activity: A systematic review and meta-analysis. Sleep Med. Rev. 2021, 57, 101426. [Google Scholar] [CrossRef]
- Dabrowska-Galas, M.; Dabrowska, J. Physical activity improves sleep quality in women. Ginekol. Pol. 2021, 92, 487–490. [Google Scholar] [CrossRef] [PubMed]
- Canhin, D.D.S.; Tebar, W.R.; Scarabottolo, C.C.; Silva, G.C.R.; Pinto, R.Z.; Gobbo, L.A.; Oliveira, C.B.S.; Christofaro, D.G.D. Physical activity across life stages and sleep quality in adulthood—An epidemiological study. Sleep Med. 2021, 83, 34–39. [Google Scholar] [CrossRef] [PubMed]
- Wang, H.; He, L.; Gao, Y.; Gao, X.; Lei, X. Effects of physical activity and sleep quality on well-being: A wrist actigraphy study during the pandemic. Appl. Psychol. Health Well Being 2021, 13, 394–405. [Google Scholar] [CrossRef] [PubMed]
- Romero-Blanco, C.; Rodríguez-Almagro, J.; Onieva-Zafra, M.D.; Parra-Fernández, M.L.; Prado-Laguna, M.D.C.; Hernández-Martínez, A. Physical Activity and Sedentary Lifestyle in University Students: Changes during Confinement Due to the COVID-19 Pandemic. Int. J. Environ. Res. Public Health 2020, 17, 6567. [Google Scholar] [CrossRef]
- Meyer, J.; McDowell, C.; Lansing, J.; Brower, C.; Smith, L.; Tully, M.; Herring, M. Changes in Physical Activity and Sedentary Behavior in Response to COVID-19 and Their Associations with Mental Health in 3052 US Adults. Int. J. Environ. Res. Public Health 2020, 17, 6469. [Google Scholar] [CrossRef]
- Koohsari, M.J.; Nakaya, T.; McCormack, G.R.; Shibata, A.; Ishii, K.; Oka, K. Changes in Workers’ Sedentary and Physical Activity Behaviors in Response to the COVID-19 Pandemic and Their Relationships with Fatigue: Longitudinal Online Study. JMIR Public Health Surveill. 2021, 73, e26293. [Google Scholar] [CrossRef]
- Wakaizumi, K.; Yamada, K.; Shimazu, A.; Tabuchi, T. Sitting for long periods is associated with impaired work performance during the COVID-19 pandemic. J. Occup. Health 2021, 63, e12258. [Google Scholar] [CrossRef]
- Pears, M.; Kola-Palmer, S.; De Azevedo, L.B. The impact of sitting time and physical activity on mental health during COVID-19 lockdown. Sport Sci. Health 2021, 18, 179–191. [Google Scholar] [CrossRef]
- Kumari, P.; Mathew, L.; Syal, P. Increasing trend of wearables and multimodal interface for human activity monitoring: A review. Biosens. Bioelectron. 2017, 90, 298–307. [Google Scholar] [CrossRef]
- TDK, Silmee W22. Available online: https://product.tdk.com/ja/products/biosensor/biosensor/silmee_w22/index.html (accessed on 25 March 2023).
- Pardoel, S.; Kofman, J.; Nantel, J.; Lemaire, E.D. Wearable-Sensor-based Detection and Prediction of Freezing of Gait in Parkinson’s Disease: A Review. Sensors 2019, 19, 5141. [Google Scholar] [CrossRef] [Green Version]
- Chae, S.H.; Kim, Y.; Lee, K.S.; Park, H.S. Development and Clinical Evaluation of a Web-Based Upper Limb Home Rehabilitation System Using a Smartwatch and Machine Learning Model for Chronic Stroke Survivors: Prospective Comparative Study. JMIR Mhealth Uhealth 2020, 8, e17216. [Google Scholar] [CrossRef] [PubMed]
- Foster, C.; Rodriguez-Marroyo, J.A.; De Koning, J.J. Monitoring Training Loads: The Past, the Present, and the Future. Int. J. Sports Physiol. Perform. 2017, 12, S22–S28. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Gordt, K.; Gerhardy, T.; Najafi, B.; Schwenk, M. Effects of Wearable Sensor-Based Balance and Gait Training on Balance, Gait, and Functional Performance in Healthy and Patient Populations: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Gerontology 2018, 64, 74–89. [Google Scholar] [CrossRef] [PubMed]
- Bai, Y.; Tompkins, C.; Gell, N.; Dione, D.; Zhang, T.; Byun, W. Comprehensive comparison of Apple Watch and Fitbit monitors in a free-living setting. PLoS ONE 2021, 16, e0251975. [Google Scholar] [CrossRef] [PubMed]
- Camargo, J.; Flanagan, W.; Csomay-Shanklin, N.; Kanwar, B.; Young, A. A Machine Learning Strategy for Locomotion Classification and Parameter Estimation Using Fusion of Wearable Sensors. IEEE Trans. Biomed. Eng. 2021, 68, 1569–1578. [Google Scholar] [CrossRef]
- Gurchiek, R.D.; Cheney, N.; McGinnis, R.S. Estimating Biomechanical Time-Series with Wearable Sensors: A Systematic Review of Machine Learning Techniques. Sensors 2019, 19, 5227. [Google Scholar] [CrossRef] [Green Version]
- World Health Organization. WHO Guidelines on Physical Activity and Sedentary Behaviour; World Health Organization: Geneva, Switzerland, 2020; Available online: https://apps.who.int/iris/bitstream/handle/10665/336656/9789240015128-eng.pdf (accessed on 25 March 2023).
Classifier | Hyperparameter | |
---|---|---|
RF | n_estimators | 16, 32, 64, 128, 256, 512, 1024 |
max_depth | 16, 32, 64, 128, 256, 512, 1024 | |
criterion | gini | |
SVM | C | 0.001, 0.01, 0.1, 1, 10, 100, 1000 |
gamma | 0.001, 0.01, 0.1, 1, 10, 100, 1000 | |
KNN | n_neighbors | 3, 5, 7, 9, 11, 13, 15, 17, 19, 21 |
Classifier | Recall | Precision | F-Score |
---|---|---|---|
RF | 0.962 ± 0.023 | 0.963 ± 0.020 | 0.963 ± 0.021 |
SVM | 0.961 ± 0.023 | 0.962 ± 0.022 | 0.962 ± 0.023 |
KNN | 0.886 ± 0.117 | 0.893 ± 0.094 | 0.886 ± 0.106 |
Classifier: RF | Results of Detection | |||
---|---|---|---|---|
State | Workout | Awake | Sleep | |
Actual | Workout | 3156 | 260 | 0 |
Awake | 131 | 3285 | 0 | |
Sleep | 0 | 0 | 3416 | |
Classifier: SVM | Results of detection | |||
State | Workout | Awake | Sleep | |
Actual | Workout | 3167 | 249 | 0 |
Awake | 140 | 3276 | 0 | |
Sleep | 2 | 5 | 3409 |
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. |
© 2023 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yoshida, Y.; Yuda, E. Workout Detection by Wearable Device Data Using Machine Learning. Appl. Sci. 2023, 13, 4280. https://doi.org/10.3390/app13074280
Yoshida Y, Yuda E. Workout Detection by Wearable Device Data Using Machine Learning. Applied Sciences. 2023; 13(7):4280. https://doi.org/10.3390/app13074280
Chicago/Turabian StyleYoshida, Yutaka, and Emi Yuda. 2023. "Workout Detection by Wearable Device Data Using Machine Learning" Applied Sciences 13, no. 7: 4280. https://doi.org/10.3390/app13074280
APA StyleYoshida, Y., & Yuda, E. (2023). Workout Detection by Wearable Device Data Using Machine Learning. Applied Sciences, 13(7), 4280. https://doi.org/10.3390/app13074280