Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2020 Aug 5;20(16):4364.
doi: 10.3390/s20164364.

Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children

Affiliations

Machine Learning Models for Classifying Physical Activity in Free-Living Preschool Children

Matthew N Ahmadi et al. Sensors (Basel). .

Abstract

Machine learning (ML) activity classification models trained on laboratory-based activity trials exhibit low accuracy under free-living conditions. Training new models on free-living accelerometer data, reducing the number of prediction windows comprised of multiple activity types by using shorter windows, including temporal features such as standard deviation in lag and lead windows, and using multiple sensors may improve the classification accuracy under free-living conditions. The objective of this study was to evaluate the accuracy of Random Forest (RF) activity classification models for preschool-aged children trained on free-living accelerometer data. Thirty-one children (mean age = 4.0 ± 0.9 years) completed a 20 min free-play session while wearing an accelerometer on their right hip and non-dominant wrist. Video-based direct observation was used to categorize the children's movement behaviors into five activity classes. The models were trained using prediction windows of 1, 5, 10, and 15 s, with and without temporal features. The models were evaluated using leave-one-subject-out-cross-validation. The F-scores improved as the window size increased from 1 to 15 s (62.6%-86.4%), with only minimal improvements beyond the 10 s windows. The inclusion of temporal features increased the accuracy, mainly for the wrist classification models, by an average of 6.2 percentage points. The hip and combined hip and wrist classification models provided comparable accuracy; however, both the models outperformed the models trained on wrist data by 7.9 to 8.2 percentage points. RF activity classification models trained with free-living accelerometer data provide accurate recognition of young children's movement behaviors under real-world conditions.

Keywords: accelerometer; assessment; classification; early childhood; measurement; physical activity; supervised learning.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analysis, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Figures

Figure 1
Figure 1
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 p < 0.05; * Denotes significantly different from the previous window size for a given feature set p < 0.05.
Figure 2
Figure 2
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.

References

    1. World Health Organization . Report of the Commission on Ending Childhood Obesity. World Health Organization; Geneva, Switzerland: 2016. - DOI
    1. 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. doi: 10.3945/ajcn.2010.29786. - DOI - PubMed
    1. 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. doi: 10.1161/CIR.0000000000000441. - DOI - PMC - PubMed
    1. 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. doi: 10.1159/000456554. - DOI - PubMed
    1. World Health Organization . Prevalence of Insufficient Physical Activity. World Health Organization; Geneva, Switzerland: 2016. pp. 4–5. Global Health Observatory.