| Literature DB >> 34065906 |
Mamoun T Mardini1,2, Chen Bai2, Amal A Wanigatunga3, Santiago Saldana4, Ramon Casanova4, Todd M Manini1.
Abstract
Accelerometer-based fitness trackers and smartwatches are proliferating with incessant attention towards health tracking. Despite their growing popularity, accurately measuring hallmark measures of physical activities has yet to be accomplished in adults of all ages. In this work, we evaluated the performance of four machine learning models: decision tree, random forest, extreme gradient boosting (XGBoost) and least absolute shrinkage and selection operator (LASSO), to estimate the hallmark measures of physical activities in young (20-50 years), middle-aged (50-70 years], and older adults (70-89 years]. Our models were built to recognize physical activity types, recognize physical activity intensities, estimate energy expenditure (EE) and recognize individual physical activities using wrist-worn tri-axial accelerometer data (33 activities per participant) from a large sample of participants (n = 253, 62% women, aged 20-89 years old). Results showed that the machine learning models were quite accurate at recognizing physical activity type and intensity and estimating energy expenditure. However, models performed less optimally when recognizing individual physical activities. F1-Scores derived from XGBoost's models were high for sedentary (0.955-0.973), locomotion (0.942-0.964) and lifestyle (0.913-0.949) activity types with no apparent difference across age groups. Low (0.919-0.947), light (0.813-0.828) and moderate (0.846-0.875) physical activity intensities were also recognized accurately. The root mean square error range for EE was approximately 1 equivalent of resting EE [0.835-1.009 METs]. Generally, random forest and XGBoost models outperformed other models. In conclusion, machine learning models to label physical activity types, activity intensity and energy expenditure are accurate and there are minimal differences in their performance across young, middle-aged and older adults.Entities:
Keywords: accelerometer; age groups; energy expenditure; machine learning; physical activity; random forest; wrist
Mesh:
Year: 2021 PMID: 34065906 PMCID: PMC8150764 DOI: 10.3390/s21103352
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1A block diagram showing the steps followed to collect and process the data.
Description of features extracted from the raw data.
| Feature | Description | |
|---|---|---|
|
| Mean of vector magnitude (mvm) | Sample mean of the VM in the window |
| SD of vector magnitude (sdvm) | Standard deviation of VM | |
| Mean angle of acceleration relative to vertical on the device (mangle) | Sample mean of the angle between x axis and VM in the window | |
| SD of the angle of acceleration relative to vertical on the device (sdangle) | Sample standard deviation of the angles in the window | |
| Mean of acceleration (mean_x, mean_y and mean_z) | Sample mean of acceleration from x axis, y axis and z axis in the window | |
| SD of acceleration (sd_x, sd_y and sd_z) | Standard deviation of acceleration from x axis, y axis and z axis in the window | |
| Coefficient of variation of acceleration (cv_x, cv_y and cv_z) | Standard deviation of acceleration from x axis, y axis and z axis in the window divided by their mean, multiplied by 100 | |
| Min of vector magnitude and acceleration (min_vm, min_x, min_y and min_z) | Min value of VM and acceleration from x axis, y axis and z axis in the window | |
| Max of vector magnitude and acceleration (max_vm, max_x, max_y and max_z) | Max value of VM and acceleration from x axis, y axis and z axis in the window | |
| 25% quantile of vector magnitude and acceleration (lower_vm_25, lower_x_25, lower_y_25 and lower_z_25) | Lower 25% quantile of VM and acceleration from x axis, y axis and z axis in the window | |
| 75% quantile of vector magnitude and acceleration (upper_vm_75, upper_x_75, upper_y_75 and upper_z_75) | Upper 75% quantile of VM and acceleration from x axis, y axis and z axis in the window | |
| Third moment of vector magnitude and acceleration (third_moment_vm, third_moment_x, third_moment_y and third_moment_z) | Third moment of VM and acceleration from x axis, y axis and z axis in the window, which are used to depict the shape of the signals | |
| Fourth moment of vector magnitude and acceleration (fourth_moment_vm, fourth_moment_x, fourth_moment_y and fourth_moment_z) | Fourth moment of VM and acceleration from x axis, y axis and z axis in the window, which are used to depict the shape of the signals | |
| Skewness | Skewness of the VM, acceleration from x axis, y axis, and z axis in the window | |
| Kurtosis | Kurtosis of the VM, acceleration from x axis, y axis and z axis in the window | |
| Coefficient of variation (CV) | Standard deviation of VM in the window divided by the mean, multiplied by 100 | |
|
| Percentage of the power of the vm that is in 0.6–2.5 Hz (p625) | Sum of moduli corresponding to frequency in this range divided by sum of moduli of all frequencies |
| Dominant frequency of vm (df) | Frequency corresponding to the largest modulus | |
| Fraction of power in vm at dominant frequency (fpdf) | Modulus of the dominant frequency/sum of moduli at each frequency |
Participants descriptive characteristics by age group.
| Young | Middle | Old | All | |
|---|---|---|---|---|
| Age range, years | [20–50] | (50–70] | (70–89] | [20–89] |
| Mean Age (SD), years | 35.2 (10.7) | 61.9 (5.6) | 77.7 (5.1) | 61.7 (17.7) |
| Mean BMI (SD), kg/m2 | 26.1 (5.5) | 26.9 (5.5) | 27.7 (5.8) | 27 (5.6) |
| Women % | 60% | 67% | 58% | 62% |
| Number of Hispanic | 3 | 2 | 1 | 6 |
| Total number | 60 | 95 | 98 | 253 |
Figure 2The F1-Scores of recognizing physical activity type. Each value is the mean and standard deviation of the 5-fold nested cross validation.
Figure 3Performance metrics of recognizing physical activity intensity. Each value is the mean and standard deviation of the 5-fold nested cross validation.
Figure 4Performance metrics of estimating energy expenditure. Each value is the mean and standard deviation of the 5-fold nested cross validation.
Performance metrics of recognizing individual physical activities using XGBoost. Each value is the mean and standard deviation of the 5-fold nested cross validation.
| Young | Middle | Old | All | |
|---|---|---|---|---|
| Individual Activities Recognition Performance (F1 Score) | ||||
| leisure walk | 0.544 (0.055) | 0.491 (0.070) | 0.391 (0.059) | 0.497 (0.026) |
| rapid walk | 0.645 (0.055) | 0.545 (0.061) | 0.470 (0.048) | 0.567 (0.037) |
| light gardening | 0.585 (0.056) | 0.529 (0.051) | 0.495 (0.025) | 0.571 (0.047) |
| yard work | 0.416 (0.035) | 0.478 (0.046) | 0.404 (0.070) | 0.489 (0.040) |
| prepare serve meal | 0.520 (0.022) | 0.482 (0.037) | 0.480 (0.046) | 0.520 (0.027) |
| digging | 0.711 (0.040) | 0.686 (0.050) | 0.637 (0.053) | 0.719 (0.038) |
| straightening up dusting | 0.460 (0.051) | 0.427 (0.041) | 0.415 (0.027) | 0.483 (0.014) |
| washing dishes | 0.782 (0.012) | 0.706 (0.024) | 0.596 (0.035) | 0.716 (0.023) |
| unloading storing dishes | 0.666 (0.031) | 0.669 (0.044) | 0.597 (0.036) | 0.675 (0.021) |
| walking at rpe 1 | 0.366 (0.064) | 0.491 (0.027) | 0.318 (0.056) | 0.437 (0.027) |
| personal care | 0.660 (0.043) | 0.709 (0.028) | 0.552 (0.027) | 0.672 (0.011) |
| dressing | 0.494 (0.035) | 0.450 (0.038) | 0.335 (0.023) | 0.456 (0.021) |
| walking at rpe 5 | 0.482 (0.050) | 0.440 (0.104) | 0.356 (0.094) | 0.443 (0.029) |
| sweeping | 0.602 (0.068) | 0.634 (0.073) | 0.518 (0.057) | 0.625 (0.018) |
| vacuuming | 0.637 (0.029) | 0.611 (0.044) | 0.533 (0.035) | 0.625 (0.024) |
| stair descent | 0.705 (0.120) | 0.693 (0.055) | 0.635 (0.064) | 0.706 (0.040) |
| stair ascent | 0.543 (0.104) | 0.561 (0.085) | 0.518 (0.023) | 0.600 (0.047) |
| trash removal | 0.425 (0.047) | 0.473 (0.050) | 0.355 (0.017) | 0.465 (0.034) |
| replacing sheets on a bed | 0.626 (0.064) | 0.677 (0.029) | 0.559 (0.024) | 0.665 (0.031) |
| stretching yoga | 0.628 (0.026) | 0.642 (0.033) | 0.557 (0.043) | 0.630 (0.035) |
| mopping | 0.673 (0.039) | 0.660 (0.033) | 0.623 (0.041) | 0.702 (0.041) |
| light home maintenance | 0.507 (0.027) | 0.536 (0.035) | 0.459 (0.028) | 0.530 (0.025) |
| computer work | 0.780 (0.043) | 0.800 (0.039) | 0.759 (0.049) | 0.795 (0.017) |
| heavy lifting | 0.650 (0.031) | 0.672 (0.024) | 0.495 (0.041) | 0.647 (0.035) |
| shopping | 0.506 (0.052) | 0.537 (0.039) | 0.524 (0.033) | 0.563 (0.040) |
| ironing | 0.636 (0.033) | 0.687 (0.014) | 0.620 (0.056) | 0.700 (0.023) |
| laundry washing | 0.426 (0.036) | 0.509 (0.039) | 0.411 (0.040) | 0.479 (0.021) |
| strength exercise leg curl | 0.576 (0.044) | 0.644 (0.062) | 0.656 (0.108) | 0.695 (0.028) |
| strength exercise chest press | 0.681 (0.082) | 0.668 (0.063) | 0.602 (0.079) | 0.697 (0.017) |
| strength exercise leg extension | 0.367 (0.128) | 0.462 (0.092) | 0.329 (0.079) | 0.419 (0.019) |
| tv watching | 0.614 (0.050) | 0.616 (0.019) | 0.546 (0.069) | 0.624 (0.030) |
| standing still | 0.631 (0.081) | 0.644 (0.060) | 0.527 (0.094) | 0.612 (0.036) |
| washing windows | 0.764 (0.058) | 0.720 (0.045) | 0.739 (0.056) | 0.755 (0.024) |
| Macro average (F1 score) | 0.584 (0.023) | 0.594 (0.021) | 0.516 (0.011) | 0.600 (0.014) |