Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children
<p>Interaction plots summarizing the effect of window size and feature set on the adjusted F-scores for models trained on wrist, hip, and combined hip and wrist accelerometer data. + Denotes significantly different from the base model at a given window size <span class="html-italic">p</span> < 0.05; * Denotes significantly different from the previous window size for a given feature set <span class="html-italic">p</span> < 0.05.</p> "> Figure 2
<p>Confusion matrices for physical activity classification from the wrist, hip, and combined hip and wrist placement for lag/lead 10 and 15 s window models. The columns represent observed; rows represent predictions; bold represents correct predictions; SED = sedentary; LIGHT_AG = light physical activity and games; MV_AG = moderate to vigorous physical activity and games; WALK = walking; RUN = running.</p> ">
Abstract
:1. Introduction
2. Materials and Methods
2.1. Participants
2.2. Free-Living Play Session
2.3. Instrumentation
2.4. Direct Observation Coding Procedure
2.5. Development and Evaluation of Activity Classification Models
2.5.1. Data Processing and Feature Extraction
- (1)
- Base features: time and frequency domain features were used in the previously published activity classification models [21,22,28]: mean, SD, minimum, maximum, interquartile range, percentiles (10th, 25th, 50th, 75th, 95th), coefficient of variation, signal sum, signal power, peak-to-peak amplitude, median crossings, cross axis correlations, dominant frequency between 0.25 and 5.0 Hz, and magnitude of dominant frequency between 0.25 and 5.0 Hz.
- (2)
- Base plus temporal features: a second feature set consisted of the base features and temporal features calculated from the preceding (lead) and succeeding (lag) activity windows. These included the standard deviation (SD) for the 1 and 2 lag and lead windows and the SD over the lag and lead windows and the current window ([], where n = 5). This resulted in a total of five temporal features, in addition to the base features.
2.5.2. Model Training and Testing
2.6. Statistical Analysis
3. Results
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- World Health Organization. Report of the Commission on Ending Childhood Obesity; World Health Organization: Geneva, Switzerland, 2016. [Google Scholar] [CrossRef] [Green Version]
- De Onis, M.; Blossner, M.; Borghi, E. Global prevalence and trends of overweight and obesity among preschool children. Am. J. Clin. Nutr. 2010, 92, 1257–1264. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Steinberger, J.; Daniels, S.R.; Hagberg, N.; Isasi, C.R.; Kelly, A.S.; Lloyd-Jones, D.; Pate, R.R.; Pratt, C.; Shay, C.M.; Towbin, J.A.; et al. Cardiovascular Health Promotion in Children: Challenges and Opportunities for 2020 and Beyond: A Scientific Statement From the American Heart Association. Circulation 2016, 134, e236–e255. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Sonntag, D. Why Early Prevention of Childhood Obesity Is More Than a Medical Concern: A Health Economic Approach. Ann. Nutr. Metab. 2017, 70, 175–178. [Google Scholar] [CrossRef] [Green Version]
- World Health Organization. Prevalence of Insufficient Physical Activity; Global Health Observatory; World Health Organization: Geneva, Switzerland, 2016; pp. 4–5. [Google Scholar]
- Reinehr, T.; Hetherington, M.; Nekitsing, C.; Janet, M.; Shloim, N.; Ekelund, U. Aetiology of obesity in children. Adv. Nutr. Diet. Obes. 2018, 169, 261–286. [Google Scholar] [CrossRef]
- Okely, A.D.; Ghersi, D.; Hesketh, K.D.; Santos, R.; Loughran, S.P.; Cliff, D.P.; Shilton, T.; Grant, D.; Jones, R.A.; Stanley, R.M.; et al. A collaborative approach to adopting/adapting guidelines—The Australian 24-Hour Movement Guidelines for the early years (Birth to 5 years): An integration of physical activity, sedentary behavior, and sleep. BMC Public Health 2017, 17, 869. [Google Scholar] [CrossRef] [PubMed]
- Willumsen, J.; Bull, F. Development of WHO Guidelines on Physical Activity, Sedentary Behavior, and Sleep for Children Less Than 5 Years of Age. J. Phys. Act. Health 2020, 17, 96–100. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Tremblay, M.S.; Chaput, J.-P.; Adamo, K.B.; Aubert, S.; Barnes, J.D.; Choquette, L.; Duggan, M.; Faulkner, G.; Goldfield, G.S.; Gray, C.E.; et al. Canadian 24-Hour Movement Guidelines for the Early Years (0–4 years): An Integration of Physical Activity, Sedentary Behaviour, and Sleep. BMC Public Health 2017, 17, 874. [Google Scholar] [CrossRef]
- Cliff, D.; Reilly, J.J.; Okely, A.D. Methodological considerations in using accelerometers to assess habitual physical activity in children aged 0–5 years. J. Sci. Med. Sport 2009, 12, 557–567. [Google Scholar] [CrossRef]
- Jago, R.; Zakeri, I.; Baranowski, T.; Watson, K. Decision boundaries and receiver operating characteristic curves: New methods for determining accelerometer cutpoints. J. Sports Sci. 2007, 25, 937–944. [Google Scholar] [CrossRef]
- Welk, G.J. Principles of Design and Analyses for the Calibration of Accelerometry-Based Activity Monitors. Med. Sci. Sports Exerc. 2005, 37, 501–511. [Google Scholar] [CrossRef]
- Trost, S.G.; Loprinzi, P.D.; Moore, R.; Pfeiffer, K.A. Comparison of Accelerometer Cut Points for Predicting Activity Intensity in Youth. Med. Sci. Sports Exerc. 2011, 43, 1360–1368. [Google Scholar] [CrossRef] [PubMed]
- Hislop, J.F.; Bulley, C.; Mercer, T.H.; Reilly, J.J. Comparison of accelerometry cut points for physical activity and sedentary behavior in preschool children: A validation study. Pediatr. Exerc. Sci. 2012, 24, 563–576. [Google Scholar] [CrossRef] [PubMed]
- Okely, A.D.; Batterham, M.J.; Hinkley, T.; Ekelund, U.; Brage, S.; Reilly, J.J.; Trost, S.G.; Jones, R.A.; Janssen, X.; Cliff, D.; et al. Wrist Acceleration Cut Points for Moderate-to-Vigorous Physical Activity in Youth. Med. Sci. Sports Exerc. 2018, 50, 609–616. [Google Scholar] [CrossRef] [PubMed]
- Janssen, X.; Cliff, D.P.; Reilly, J.J.; Hinkley, T.; Jones, R.A.; Batterham, M.; Ekelund, U.; Brage, S.; Okely, A.D. Predictive Validity and Classification Accuracy of ActiGraph Energy Expenditure Equations and Cut-Points in Young Children. PLoS ONE 2013, 8, e79124. [Google Scholar] [CrossRef]
- Kotsiantis, S.B. Supervised machine learning: A review of classification techniques. Informatics 2007, 31, 249–268. [Google Scholar]
- Wang, H.; Ma, C.; Zhou, L. A Brief Review of Machine Learning and Its Application. In Proceedings of the 2009 International Conference on Information Engineering and Computer Science, Wuhan, China, 19–20 December 2009; pp. 1–4. [Google Scholar]
- Mjolsness, E.; Decoste, D. Machine Learning for Science: State of the Art and Future Prospects. Science 2001, 293, 2051–2055. [Google Scholar] [CrossRef]
- Trost, S.G.; Wong, W.-K.; Pfeiffer, K.A.; Zheng, Y. Artificial Neural Networks to Predict Activity Type and Energy Expenditure in Youth. Med. Sci. Sports Exerc. 2012, 44, 1801–1809. [Google Scholar] [CrossRef] [Green Version]
- Ellis, K.; Kerr, J.; Godbole, S.; Staudenmayer, J.; Lanckriet, G. Hip and Wrist Accelerometer Algorithms for Free-Living Behavior Classification. Med. Sci. Sports Exerc. 2016, 48, 933–940. [Google Scholar] [CrossRef] [Green Version]
- Trost, S.G.; Cliff, D.; Ahmadi, M.N.; Van Tuc, N.; Hagenbuchner, M. Sensor-enabled Activity Class Recognition in Preschoolers. Med. Sci. Sports Exerc. 2018, 50, 634–641. [Google Scholar] [CrossRef]
- Sasaki, J.E.; Hickey, A.M.; Staudenmayer, J.W.; John, D.; Kent, J.A.; Freedson, P.S. Performance of Activity Classification Algorithms in Free-Living Older Adults. Med. Sci. Sports Exerc. 2016, 48, 941–950. [Google Scholar] [CrossRef] [Green Version]
- Lyden, K.; Keadle, S.K.; Staudenmayer, J.; Freedson, P.S. A Method to Estimate Free-Living Active and Sedentary Behavior from an Accelerometer. Med. Sci. Sports Exerc. 2014, 46, 386–397. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Bastian, T.; Maire, A.; Dugas, J.; Ataya, A.; Villars, C.; Gris, F.; Perrin, E.; Caritu, Y.; Doron, M.; Blanc, S.; et al. Automatic identification of physical activity types and sedentary behaviors from triaxial accelerometer: Laboratory-based calibrations are not enough. J. Appl. Physiol. 2015, 118, 716–722. [Google Scholar] [CrossRef] [Green Version]
- Ahmadi, M.N.; Brookes, D.; Chowdhury, A.; Pavey, T.; Trost, S.G. Free-living Evaluation of Laboratory-based Activity Classifiers in Preschoolers. Med. Sci. Sports Exerc. 2019, 52, 1227–1234. [Google Scholar] [CrossRef] [PubMed]
- Koch, J.R.L.G. The Measurement of Observer Agreement for Categorical Data. Biometrics 1977, 33, 159. [Google Scholar] [CrossRef] [Green Version]
- Ahmadi, M.N.; Pfeiffer, K.A.; Trost, S. Physical Activity Classification in Youth Using Raw Accelerometer Data from the Hip. Meas. Phys. Educ. Exerc. Sci. 2020, 24, 1–7. [Google Scholar] [CrossRef]
- Chowdhury, A.K.; Tjondronegoro, D.; Chandran, V.; Trost, S.G. Ensemble Methods for Classification of Physical Activities from Wrist Accelerometry. Med. Sci. Sports Exerc. 2017, 49, 1965–1973. [Google Scholar] [CrossRef] [Green Version]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar]
- Reiss, A.; Weber, M.; Stricker, D. Exploring and extending the boundaries of physical activity recognition. In Proceedings of the 2011 IEEE International Conference on Systems, Man, and Cybernetics, Anchorage, AK, USA, 9–12 October 2011; pp. 46–50. [Google Scholar]
- Forman, G.; Scholz, M. Apples-to-Apples in Cross-Validation Studies: Pitfalls in Classifier Performance Measurement. ACM SIGKDD Explor. Newsl. 2010, 12, 49–57. [Google Scholar] [CrossRef]
- Ermes, M.; Parkka, J.; Mantyjarvi, J.; Korhonen, I. Detection of Daily Activities and Sports With Wearable Sensors in Controlled and Uncontrolled Conditions. IEEE Trans. Inf. Technol. Biomed. 2008, 12, 20–26. [Google Scholar] [CrossRef]
- Vale, S.; Santos, R.; Silva, P.; Soares-Miranda, L.; Mota, J. Preschool children physical activity measurement: Importance of epoch length choice. Pediatr. Exerc. Sci. 2009, 21, 413–420. [Google Scholar] [CrossRef]
- McClain, J.J.; Abraham, T.L.; Brusseau, T.A.; Tudor-Locke, C. Epoch Length and Accelerometer Outputs in Children: Comparison to direct observation. Med. Sci. Sports Exerc. 2008, 40, 2080–2087. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Trost, S.G.; McIver, K.L.; Pate, R.R. Conducting Accelerometer-Based Activity Assessments in Field-Based Research. Med. Sci. Sports Exerc. 2005, 37, S531–S543. [Google Scholar] [CrossRef] [PubMed]
- Hislop, J.F.; Bulley, C.; Mercer, T.H.; Reilly, J.J. Comparison of epoch and uniaxial versus triaxial accelerometers in the measurement of physical activity in preschool children: A validation study. Pediatr. Exerc. Sci. 2012, 24, 450–460. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Bailey, R.C.; Olson, J.; Pepper, S.L.; Porszasz, J.; Barstow, T.J.; Cooper, D.M. The level and tempo of children’s physical activities: An observational study. Med. Sci. Sports Exerc. 1995, 27, 1033–1041. [Google Scholar] [CrossRef] [Green Version]
- Baquet, G.; Stratton, G.; Van Praagh, E.; Berthoin, S. Improving physical activity assessment in prepubertal children with high-frequency accelerometry monitoring: A methodological issue. Prev. Med. 2007, 44, 143–147. [Google Scholar] [CrossRef]
- Zhang, S.; Rowlands, A.V.; Murray, P.; Hurst, T.L. Physical Activity Classification Using the GENEA Wrist-Worn Accelerometer. Med. Sci. Sports Exerc. 2012, 44, 742–748. [Google Scholar] [CrossRef]
- Zhao, W.; Adolph, A.L.; Puyau, M.R.; Vohra, F.A.; Butte, N.F.; Zakeri, I.F. Support vector machines classifiers of physical activities in preschoolers. Physiol. Rep. 2013, 1, e0006. [Google Scholar] [CrossRef]
- Chowdhury, A.K.; Tjondronegoro, D.; Chandran, V.; Trost, S.G. Physical Activity Recognition Using Posterior-Adapted Class-Based Fusion of Multiaccelerometer Data. IEEE J. Biomed. Health Inform. 2017, 22, 678–685. [Google Scholar] [CrossRef]
- Narayanan, A.; Stewart, T.; Mackay, L. A Dual-Accelerometer System for Detecting Human Movement in a Free-living Environment. Med. Sci. Sports Exerc. 2020, 52, 252–258. [Google Scholar] [CrossRef]
- Trost, S.G.; Zheng, Y.; Wong, W.-K. Machine learning for activity recognition: Hip versus wrist data. Physiol. Meas. 2014, 35, 2183–2189. [Google Scholar] [CrossRef]
- Cleland, I.; Kikhia, B.; Nugent, C.; Boytsov, A.; Hallberg, J.; Synnes, K.; McClean, S.; Finlay, D.D. Optimal Placement of Accelerometers for the Detection of Everyday Activities. Sensors 2013, 13, 9183–9200. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Trost, S.G.; Drovandi, C.; Pfeiffer, K. Developmental Trends in the Energy Cost of Physical Activities Performed by Youth. J. Phys. Act. Health 2016, 13, S35–S40. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Harrell, J.S.; McMurray, R.G.; Baggett, C.D.; Pennell, M.L.; Pearce, P.F.; Bangdiwala, S.I. Energy Costs of Physical Activities in Children and Adolescents. Med. Sci. Sports Exerc. 2005, 37, 329–336. [Google Scholar] [CrossRef]
- McMurray, R.G.; Butte, N.F.; Crouter, S.E.; Trost, S.G.; Pfeiffer, K.A.; Bassett, D.R.; Puyau, M.R.; Berrigan, D.; Watson, K.B.; Fulton, J.E.; et al. Exploring Metrics to Express Energy Expenditure of Physical Activity in Youth. PLoS ONE 2015, 10, e0130869. [Google Scholar] [CrossRef] [PubMed]
Activity Class | Movement Descriptors | Activity Types |
---|---|---|
SED | Sitting/lying down | Sit still |
Stationary/motionless | Sit w/upper body movement | |
LIGHT_AG | Standing | Stand still |
Stationary/movement of limbs or trunk (very easy) | Stand w/upper body movement | |
Translocation (slow/easy) | Crawl | |
Up/downstairs | ||
Floor games | ||
Stand and kick | ||
Slide | ||
Climb (low intensity) | ||
MV_AG | Translocation (medium speed/moderate) | Run and kick |
Translocation (fast or very fast/hard) | Side gallop | |
Jump/hop/leap | ||
Ride a bike | ||
Ride a scooter | ||
Stationary ride/spin/swing | ||
Climb (high intensity) | ||
WALK | Translocation (steady/medium speed/moderate) | Walk slow/stroll |
Walk brisk | ||
Walk and hold object | ||
RUN | Translocation (steady/fast or very fast/hard) | Sprint |
Run and hold object |
Placement | Feature | Window | SED | LIGHT_AG | MV_AG | WALK | RUN | Ave F-Score |
---|---|---|---|---|---|---|---|---|
Wrist | Base | 1 | 63.3 | 71.4 | 45.7 | 45.9 | 55.1 | 62.6 |
5 | 69.3 | 76.5 | 60.9 | 60.7 | 68.5 | 70.8 | ||
10 | 73.7 | 79.1 | 62.0 | 68.8 | 73.4 | 74.5 | ||
15 | 78.2 | 81.2 | 62.1 | 70.5 | 82.4 | 77.3 | ||
Lag/Lead | 1 | 69.2 | 75.5 | 57.5 | 54.8 | 61.6 | 68.8 | |
5 | 78.5 | 80.1 | 66.9 | 60.3 | 68.8 | 75.5 | ||
10 | 82.4 | 82.9 | 70.3 | 70.8 | 71.5 | 80.0 | ||
15 | 83.3 | 83.7 | 70.7 | 69.0 | 82.4 | 80.6 | ||
Hip | Base | 1 | 73.3 | 76.0 | 61.0 | 55.7 | 63.1 | 70.6 |
5 | 80.6 | 82.7 | 75.5 | 69.8 | 71.2 | 79.5 | ||
10 | 82.3 | 85.7 | 77.6 | 80.7 | 74.4 | 83.1 | ||
15 | 85.0 | 86.8 | 75.3 | 78.4 | 80.0 | 84.0 | ||
Lag/Lead | 1 | 80.0 | 80.4 | 65.2 | 62.9 | 67.2 | 75.8 | |
5 | 85.7 | 85.6 | 76.3 | 68.8 | 72.8 | 82.2 | ||
10 | 87.6 | 87.9 | 76.4 | 81.0 | 73.6 | 85.3 | ||
15 | 87.7 | 88.2 | 78.5 | 79.4 | 82.6 | 85.9 | ||
Hip & Wrist | Base | 1 | 75.8 | 77.7 | 62.1 | 58.4 | 64.5 | 72.5 |
5 | 81.1 | 82.8 | 74.3 | 70.1 | 71.7 | 79.6 | ||
10 | 83.9 | 85.8 | 75.6 | 79.5 | 74.9 | 83.2 | ||
15 | 85.5 | 86.4 | 77.1 | 78.1 | 86.6 | 84.3 | ||
Lag/Lead | 1 | 80.8 | 81.0 | 66.7 | 64.9 | 67.9 | 76.8 | |
5 | 86.0 | 85.6 | 74.5 | 69.5 | 72.5 | 82.1 | ||
10 | 87.5 | 87.9 | 77.2 | 80.7 | 73.0 | 85.3 | ||
15 | 88.7 | 88.4 | 78.0 | 79.8 | 86.8 | 86.4 |
© 2020 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 (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ahmadi, M.N.; Pavey, T.G.; Trost, S.G. Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children. Sensors 2020, 20, 4364. https://doi.org/10.3390/s20164364
Ahmadi MN, Pavey TG, Trost SG. Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children. Sensors. 2020; 20(16):4364. https://doi.org/10.3390/s20164364
Chicago/Turabian StyleAhmadi, Matthew N., Toby G. Pavey, and Stewart G. Trost. 2020. "Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children" Sensors 20, no. 16: 4364. https://doi.org/10.3390/s20164364
APA StyleAhmadi, M. N., Pavey, T. G., & Trost, S. G. (2020). Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children. Sensors, 20(16), 4364. https://doi.org/10.3390/s20164364