Classification of Diabetic Walking for Senior Citizens and Personal Home Training System Using Single RGB Camera through Machine Learning
Abstract
:1. Introduction
2. Dataset Construction
2.1. Human Subjects
2.2. Experiment for Data Acquisition
2.3. Dataset
3. Classification through Automated Machine Learning
3.1. Data Preparation and Feature Engineering
3.2. Model Selection
3.3. Hyperparameter Optimization
4. Results of Dataset and Classification
4.1. Results of Constructed Dataset
4.2. Results of Classification
5. Development of Machine-Learning-Based Personal Training System
5.1. Experimental Condition
5.2. Dynamic Time Warping Algorithm for Similarity Evaluations
- Monotonicity:The points must be monotonically ordered with respect to time, and .
- Continuity:The steps in the grid are confined to neighboring points, and .
- Warping window:Allowable points can be constrained to fall within a given warping window, , where w is a positive integer window width.
- Slope constraint:Allowable warping paths can be constrained by restricting the slope, avoiding extensive movements in a single direction.
- Boundary conditions:The starting point selects one of the subsequent paths, and the endpoint adds some offset to constrained points, such as , and , .
6. Results of Machine-Learning-Based Personal Training System
6.1. Results of Graphical User Interface
6.2. Results of Similarity Evaluation through Dynamic Time Warping Algorithm
7. Discussions
- (1)
- Body specifics according to the gender:When image data of humans train human-pose-estimation-based models, it is necessary to consider the difference in physiology between males and females. For example, if the dataset for the train includes many men’s images, the accuracy for the prediction depends on only male users. Meanwhile, if women’s users use the trained model, wrong results wait for us, although the exercise posture is good. Thus, the model should consider the difference between the two genders when the home training system is developed based on human pose estimation.
- (2)
- Physiology specifics:The model based on human pose estimation can recognize the user’s body through the dataset of image data. However, it is not easy to guarantee whether images for training are similar body structures or not. Thus, the prediction results are always low even if the exercise posture is correct when the training does not use the dataset with the general proportion for the body parts.
- (3)
- Decision of the exercise start:There is no problem that the user follows human coaches to start and finish the exercise. However, it is difficult to tell the home training system when the activity begins and ends. Thus, the dataset should be time-series data because it doubts to decide the exercise duration with some images.
- (4)
- Decision of frontal view:When we need to compare exercise postures with two different videos, there is no guarantee which the taken conditions of the camera, such as the angle, height, and lighting, are similar. Thus, finding the frontal view from the recorded video is always impossible, and the results may be insufficient. The dataset still does not contain enough information for alignment.
- (5)
- Problem for quick movements of the body part:The frame rate of the web camera is 30 or 60 Hz, in general. That means that the model based on human pose estimation does not allow fast movements for exercises to detect exact key points. Although deep learning improves pose estimation technology, blurred image data are not helpful for training.
- (6)
- Decision of horizontal position:It is not easy to find the flat plane from the image. Thus, it is difficult to find the horizontal and vertical axes from the only image when someone performs exercises. That is the reason why we should need to calibrate images before training.
- (7)
- Decision of occluded joints:The occlusion problem is a problematic issue when finding key points from the image through human pose estimation. According to the taken condition, some bodies and objects hide target joints, in general. At that time, it is necessary to decide how to estimate hidden or lost joints. However, there is still not a clear to solve the occlusion problem.
8. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
AutoML | Automated Machine Learning |
DTW | Dynamic Time Warping |
References
- Mayo, C. The Essential Diabetes Book, 2nd ed.; TI Inc. Books, Independent Publishers Group(IPG): Chicago, IL, USA, 2014; Chapter 2; pp. 30–49. [Google Scholar]
- Woo, Y.; Andres, P.T.C.; Jeong, H.; Shin, C. Classification of diabetic walking through machine learning: Survey targeting senior citizens. In Proceedings of the International Conference on Artificial Intelligence in Information and Communication (ICAIIC), Jeju Island, Korea, 13–16 April 2021; pp. 435–437. [Google Scholar]
- Carmella, W.; Matthew, S.; Brian, W. Everything You Should Know about Diabetic Neuropathy. Healthline 2018. Available online: https://www.healthline.com/health/type-2-diabetes/diabetic-neuropathy (accessed on 23 September 2021).
- Negri, C.; Bacchi, E.; Morgante, S.; Soave, D.; Marques, A.; Menghini, E.; Muggeo, M.; Bonora, E.; Moghetti, P. Supervised walking groups to increase physical activity in type 2 diabetic patients. Diabetes Care 2010, 33, 2333–2335. [Google Scholar] [CrossRef] [Green Version]
- Mustapa, A.; Justine, M.; Mustafah, N.; Jamil, N.; Manaf, H. Postural Control and Gait Performance in the Diabetic Peripheral Neuropathy: A Systematic Review. BioMed Res. Int. 2016, 2016, 9305025. [Google Scholar] [CrossRef] [Green Version]
- Qiu, S.; Cai, X.; Schumann, U.; Velders, M.; Sn, Z.; Steinacker, J.M. Impact of walking on glycemic control and other cardiovascular risk factors in type 2 diabetes: A meta-analysis. PLoS ONE 2014, 9, e109767. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Sallis, J.F.; Haskell, W.L.; Fortmann, S.P.; Varanizan, K.M.; Taylor, C.B.; Solomon, D.S. Predictors of adoption and maintenance of physical activity in a community sample. Prev. Med. 1986, 15, 331–341. [Google Scholar] [CrossRef]
- Perri, M.G.; Anton, S.D.; Durning, P.E.; Ketterson, T.U.; Sydeman, S.J.; Berlant, N.E.; Kanasky, W.F., Jr.; Newton, R.L., Jr.; Limacher, M.C.; Martin, A.D. Adherence to exercise prescriptions: Effects of prescribing moderate versus higher levels of intensity and frequency. Health Psychol. 2002, 21, 425–458. [Google Scholar] [CrossRef]
- Tinetti, M.E. Clinical practice. Prev. Falls Elder. Pers. 2003, 348, 42–49. [Google Scholar]
- Hewston, P.; Deshpande, N. Fall and balance impairments in older adults with type 2 diabetes: Thinking beyond diabetic peripheral neuropathy. Can. J. Diabet. 2016, 40, 6–9. [Google Scholar] [CrossRef] [Green Version]
- Pijpers, E.; Ferreira, I.; de Jongh, R.T.; Deeg, D.J.; Lips, P.; Stehouwer, C.D.A.; Kruseman, A.C.N. Older individuals with diabetes have an increased risk of recurrent falls: Analysis of potential mediating factors: The Longitudinal Ageing Study Amsterdam. Age Ageing 2012, 41, 358–365. [Google Scholar] [CrossRef] [Green Version]
- de Mettelinge, R.T.; Cambier, D.; Calders, P.; Van Den Noortgate, N.; Delbaere, K. Understanding the relationship between type 2 diabetes mellitus and falls in older adults: A prospective cohort study. PLoS ONE 2013, 8, e67055. [Google Scholar] [CrossRef] [Green Version]
- Sawach, Z.; Sartor, C.D.; Yi, L.C.; Guiotto, A.; Spolaor, F. Clustering classification of diabetic walking abnormalities: A new approach taking into account intralimb coordination patterns. Gait Posture 2020, 79, 33–40. [Google Scholar] [CrossRef]
- Domingues, M.; Tavares, C.; Nepomuceno, A.; Alberto, N.; André, P.; Antunes, P.; Chi, H.; Radwan, A. Non-Invasive Wearable Optical Sensors for Full Gait Analysis in E-Health Architecture. IEEE Wirel. Commun. 2021, 28, 28–35. [Google Scholar] [CrossRef]
- Domingues, M.; Alberto, N.; Leitão, C.; Tavares, C.; Lima, E.; Radwan, A.; Sucasa, V.; Rodriguez, J.; André, P.; Antunes, P. Insole Optical Fiber Sensor Architecture for Remote Gait Analysis—An e-Health Solution. IEEE Internet Things J. 2019, 6, 207–214. [Google Scholar] [CrossRef] [Green Version]
- Palma, F.H.; Antigual, D.U.; Martinez, S.F.; Monrroy, M.A.; Gajardo, R.E. Static balance in patients presenting diabetes mellitus type 2 with and without diabetic polyneuropathy. Arq. Bras. Endocrinol. Metabol. 2013, 57, 722–726. [Google Scholar] [CrossRef] [Green Version]
- Kiani, J.; Moghimbeigi, A.; Azizkhani, H.; Kosarifard, S. The prevalence and associated risk factors of peripheral diabetic neuropathy in Hamedan, Iran. Arch. Iran. Med. 2013, 16, 17–19. [Google Scholar] [PubMed]
- Akbarinia, A.; Kargarfard, M.; Naderi, M. Aerobic training improves platelet function in type 2 diabetic patients: Role of microRNA-130a and GPIIb. Acta Diabetol. 2018, 55, 893–899. [Google Scholar] [CrossRef] [PubMed]
- Dixit, S.; Maiya, A.; Shastry, B.A.; Guddattu, V. Analysis of postural control during quiet standing in a population with diabetic peripheral neuropathy undergoing moderate intensity aerobic exercise training: A single blind, randomized controlled trial. Am. J. Phys. Med. Rehabil. 2016, 95, 516–524. [Google Scholar] [CrossRef]
- Dixit, S.; Maiya, A.; Shastry, B.A. Effects of aerobic exercise on vibration perception threshold in type 2 diabetic peripheral neuropathy population threshold in type 2 diabetic peripheral neuropathy population using 3-sites method: Single-blind randomized controlled trial. Altern. Ther. Health Med. 2019, 25, 36–41. [Google Scholar] [PubMed]
- Koo, B.K.; Han, K.A.; Ahn, H.J.; Jung, J.Y.; Kim, H.C.; Min, K.W. The effects of total energy expenditure from all levels of physical activity vs physical activity energy expenditure from moderate-to-vigorous activity on visceral fat and insulin sensitivity in obese type 2 diabetic women. Diabet. Med. 2010, 27, 1088–1092. [Google Scholar] [CrossRef]
- Sung, K.; Bae, S. Effects of a regular walking exercise program on behavioral and biomechemical aspects in elderly people with type II diabetes. Nurs. Health Sci. 2012, 14, 438–445. [Google Scholar] [CrossRef]
- Abd El-Kader, S.M.; Al-Jiffri, O.H.; Al-Shreef, F.M. Aerobic exercises alleviate symptoms of fatigue related to inflammatory cytokines in obese patients with type 2 diabetes. Afr. Health Sci. 2015, 15, 1142–1148. [Google Scholar] [CrossRef] [Green Version]
- Sawacha, Z.; Guarneri, G.; Avogaro, A.; Cobelli, C. A New Classification of Diabetic Gait Pattern Based on Cluster Analysis of Biomechanical Data. J. Diabetes Sci. 2010, 4, 1127–1138. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Watelain, E.; Barbier, F.; Allard, P.; Thevenon, A.; Angue, J.C. Gait pattern classification of healthy elderly men based on biomechanical data. Arch. Phys. Med. Rehabil. 2000, 81, 579–586. [Google Scholar] [CrossRef]
- Lee, M.; Youm, C.; Noh, B.; Park, H.; Cheon, S. Gait Characteristics under Imposed Challenge Speed Conditions in Patients with Parkinson’s Disease During Overground Walking. Sensors 2020, 20, 2132. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Lee, M.; Youm, C.; Noh, B.; Park, H. Gait Characteristics Based on Shoe-Type Inertial Measurement Units in Healthy Young Adults during Treadmill Walking. Sensors 2020, 20, 2095. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Guyon, I.; Sun-Hosoya, L.; Boulle, M.; Escalante, H.J.; Escalera, S.; Liu, Z.; Jajetic, D.; Ray, B.; Saeed, M.; Sebag, M.; et al. Analysis of the AutoML Challenge Series 2015–2018. In Automated Machine Learning; Hutter, F., Kotthoff, L., Vanschoren, J., Eds.; The Springer Series on Challenges in Machine Learning; Springer: Cham, Switzerland, 2019. [Google Scholar] [CrossRef] [Green Version]
- Kanter, J.M.; Veeramachaneni, K. Deep feature synthesis: Towards automating data science endeavors. In Proceedings of the IEEE International Conference on Data Science and Advanced Analytics (DSAA), Paris, France, 19–21 October 2015. [Google Scholar]
- Tran, B.; Xue, B.; Zhang, M. Genetic programming for feature construction and selection in classification on high-dimensional data. Memetic Comput. 2016, 8, 3–15. [Google Scholar] [CrossRef]
- Kohavi, R. A study of cross-validation and bootstrap for accuracy estimation and model selection. In Proceedings of the IJCAI-95, International Joint Conferences on Artificial Intelligence, Montreal, QC, Canada, 20–25 August 1995; pp. 1137–1145. [Google Scholar]
- Hutter, F.; Hoos, H.; Leyton-Brown, K.; Stützle, T.; Param, I.L.S. An automatic algorithm configuration framework. JAIR 2009, 36, 267–306. [Google Scholar] [CrossRef]
- Bergstra, J.; Bardenet, R.; Bengio, Y.; Kégl, B. Algorithms for Hyper-Parameter Optimization. In Proceedings of the 24th International Conference on Neural Information Processing Systems, Granada, Spain, 12–15 December 2011; pp. 2546–2554. [Google Scholar]
- Model Explainability. Available online: https://docs.h2o.ai/h2o/latest-stable/h2o-docs/explain.html (accessed on 16 August 2021).
- Bazarevsky, V.; Grishchenko, I. On-device, Real-time Body Pose Tracking with MediaPipe BlazePose. Google AI Blog 2020. Available online: https://ai.googleblog.com/2020/08/on-device-real-time-body-pose-tracking.html (accessed on 23 September 2021).
- Senin, P. Dynamic Time Warping Algorithm Review; University of Hawaii at Manoa: Honolulu, HI, USA, 2008; Available online: https://seninp.github.io/assets/pubs/senin_dtw_litreview_2008.pdf (accessed on 23 September 2021).
- Jiang, Y.; Qi, Y.; Wang, W.K.; Bent, B.; Avram, R.; Olgin, J.; Dunn, J. EventDTW: An Improved Dynamic Time Warping Algorithm for Aligning Biomedical Signals of Nonuniform Sampling Frequencies. Sensors 2020, 20, 2700. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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
Woo, Y.; Ko, S.; Ahn, S.; Nguyen, H.T.P.; Shin, C.; Jeong, H.; Noh, B.; Lee, M.; Park, H.; Youm, C. Classification of Diabetic Walking for Senior Citizens and Personal Home Training System Using Single RGB Camera through Machine Learning. Appl. Sci. 2021, 11, 9029. https://doi.org/10.3390/app11199029
Woo Y, Ko S, Ahn S, Nguyen HTP, Shin C, Jeong H, Noh B, Lee M, Park H, Youm C. Classification of Diabetic Walking for Senior Citizens and Personal Home Training System Using Single RGB Camera through Machine Learning. Applied Sciences. 2021; 11(19):9029. https://doi.org/10.3390/app11199029
Chicago/Turabian StyleWoo, Yeoungju, Seoyeong Ko, Sohyun Ahn, Hang Thi Phuong Nguyen, Choonsung Shin, Hieyong Jeong, Byungjoo Noh, Myeounggon Lee, Hwayoung Park, and Changhong Youm. 2021. "Classification of Diabetic Walking for Senior Citizens and Personal Home Training System Using Single RGB Camera through Machine Learning" Applied Sciences 11, no. 19: 9029. https://doi.org/10.3390/app11199029
APA StyleWoo, Y., Ko, S., Ahn, S., Nguyen, H. T. P., Shin, C., Jeong, H., Noh, B., Lee, M., Park, H., & Youm, C. (2021). Classification of Diabetic Walking for Senior Citizens and Personal Home Training System Using Single RGB Camera through Machine Learning. Applied Sciences, 11(19), 9029. https://doi.org/10.3390/app11199029