| Literature DB >> 35892905 |
Saeed Ali Alsareii1, Muhammad Awais2, Abdulrahman Manaa Alamri1, Mansour Yousef AlAsmari1, Muhammad Irfan3, Nauman Aslam4, Mohsin Raza2.
Abstract
Physical activity plays an important role in controlling obesity and maintaining healthy living. It becomes increasingly important during a pandemic due to restrictions on outdoor activities. Tracking physical activities using miniature wearable sensors and state-of-the-art machine learning techniques can encourage healthy living and control obesity. This work focuses on introducing novel techniques to identify and log physical activities using machine learning techniques and wearable sensors. Physical activities performed in daily life are often unstructured and unplanned, and one activity or set of activities (sitting, standing) might be more frequent than others (walking, stairs up, stairs down). None of the existing activities classification systems have explored the impact of such class imbalance on the performance of machine learning classifiers. Therefore, the main aim of the study is to investigate the impact of class imbalance on the performance of machine learning classifiers and also to observe which classifier or set of classifiers is more sensitive to class imbalance than others. The study utilizes motion sensors' data of 30 participants, recorded while performing a variety of daily life activities. Different training splits are used to introduce class imbalance which reveals the performance of the selected state-of-the-art algorithms with various degrees of imbalance. The findings suggest that the class imbalance plays a significant role in the performance of the system, and the underrepresentation of physical activity during the training stage significantly impacts the performance of machine learning classifiers.Entities:
Keywords: digital health; e-health; machine learning; pandemic; performance evaluation; physical activity
Year: 2022 PMID: 35892905 PMCID: PMC9332439 DOI: 10.3390/life12081103
Source DB: PubMed Journal: Life (Basel) ISSN: 2075-1729
Figure 1Post-surgery patient’s sensory data communications and activity classification framework.
Figure 2A representation of body network to collect sensory data from body-mounted sensors.
Class distribution of different ADLs in experiment 1 (E1).
| Activity Type | Total Dataset | Percentage (Total Dataset) | Train Split | Test Split |
|---|---|---|---|---|
| Walk | 1722 | 16.72% | 1226 | 496 |
| Upstairs | 1544 | 14.99% | 1073 | 471 |
| Downstairs | 1406 | 13.65% | 986 | 420 |
| Sit | 1777 | 17.25% | 1286 | 491 |
| Stand | 1906 | 18.51% | 1374 | 532 |
| Lie | 1944 | 18.88% | 1407 | 537 |
Class distribution of different ADLs in training samples during experiments 1–7 (E1, E2, E3, E4, E5, E6 and E7).
| Activity Type | E1 | E2 | E3 | E4 | E5 | E6 | E7 |
|---|---|---|---|---|---|---|---|
| Train Split | Train Split | Train Split | Train Split | Train Split | Train Split | Train Split | |
| Walk | 1226 | 100 | 100 | 100 | 100 | 100 | 100 |
| Upstairs | 1073 | 1073 | 100 | 100 | 100 | 100 | 100 |
| Downstairs | 986 | 986 | 986 | 100 | 100 | 100 | 100 |
| Sit | 1286 | 1286 | 1286 | 1286 | 100 | 100 | 100 |
| Stand | 1374 | 1374 | 1374 | 1374 | 1374 | 100 | 100 |
| Lie | 1407 | 1407 | 1407 | 1407 | 1407 | 1407 | 100 |
Figure 3Performance analysis of classifiers using the train/test split in experiment 1 (E1).
Figure 4Performance analysis of classifiers using the train/test split in experiment 2 (E2).
Figure 5Performance analysis of classifiers using the train/test split in experiment 3 (E3).
Figure 6Performance analysis of classifiers using the train/test split in experiment 4 (E4).
Figure 7Performance analysis of classifiers using the train/test split in experiment 5 (E5).
Figure 8Performance analysis of classifiers using the train/test split in experiment 6 (E6).
Figure 9Performance analysis of classifiers using the train/test split in experiment 7 (E7).
Performance by class of different classifiers using the train/test split in Experiment 1 (E1).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 97.62 | 94.09 | 95.19 | 86.74 | 95.65 | 93.42 |
| Upstairs | 96.78 | 90.66 | 92.44 | 86.37 | 91.91 | 89.10 |
| Downstairs | 98.08 | 93.97 | 94.49 | 81.03 | 92.37 | 89.82 |
| Sit | 92.26 | 87.45 | 89.55 | 80.36 | 89.36 | 89.78 |
| Stand | 93.55 | 89.57 | 91.26 | 81.42 | 91.04 | 90.64 |
| Lie | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| Overall | 96.38 | 92.62 | 93.82 | 85.99 | 93.39 | 92.13 |
Performance by class of different classifiers using the train/test split in Experiment 2 (E2).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 76.92 | 15.96 | 9.23 | 6.25 | 25.35 | 34.11 |
| Upstairs | 90.80 | 76.23 | 78.80 | 72.26 | 80.81 | 82.22 |
| Downstairs | 87.73 | 70.76 | 74.00 | 65.22 | 70.03 | 69.82 |
| Sit | 92.26 | 85.93 | 85.53 | 81.76 | 90.74 | 89.73 |
| Stand | 93.55 | 88.13 | 86.90 | 82.60 | 92.05 | 90.67 |
| Lie | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| Overall | 90.21 | 72.83 | 72.41 | 68.02 | 76.50 | 77.76 |
Performance by class of different classifiers using the train/test split in Experiment 3 (E3).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 81.92 | 51.04 | 13.83 | 44.41 | 47.15 | 60.22 |
| Upstairs | 49.68 | 39.11 | 27.09 | 65.26 | 47.36 | 53.82 |
| Downstairs | 64.55 | 59.53 | 61.23 | 62.82 | 56.04 | 59.89 |
| Sit | 92.28 | 85.99 | 84.05 | 80.81 | 89.36 | 89.66 |
| Stand | 93.47 | 87.87 | 70.42 | 81.84 | 90.88 | 90.55 |
| Lie | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| Overall | 80.32 | 70.59 | 59.44 | 72.52 | 71.80 | 75.69 |
Performance by class of different classifiers using the train/test split in Experiment 4 (E4).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 84.30 | 62.19 | 23.49 | 69.53 | 77.59 | 75.24 |
| Upstairs | 79.21 | 67.58 | 40.00 | 71.26 | 74.44 | 73.49 |
| Downstairs | 77.99 | 76.32 | 77.01 | 73.67 | 78.60 | 72.94 |
| Sit | 92.28 | 72.36 | 78.74 | 73.70 | 82.92 | 89.05 |
| Stand | 93.47 | 85.91 | 58.54 | 76.87 | 86.48 | 90.19 |
| Lie | 100.00 | 100.00 | 100.00 | 99.72 | 100.00 | 100.00 |
| Overall | 87.88 | 77.39 | 62.96 | 77.46 | 83.34 | 83.49 |
Performance by class of different classifiers using the train/test split in Experiment 5 (E5).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 84.30 | 71.29 | 35.79 | 60.89 | 65.68 | 78.91 |
| Upstairs | 79.35 | 65.12 | 45.05 | 72.67 | 42.90 | 72.75 |
| Downstairs | 77.99 | 75.60 | 78.09 | 68.01 | 67.74 | 73.81 |
| Sit | 67.29 | 61.67 | 61.06 | 46.13 | 61.02 | 63.20 |
| Stand | 81.23 | 77.69 | 55.93 | 77.30 | 77.17 | 79.48 |
| Lie | 100.00 | 98.71 | 100.00 | 95.30 | 100.00 | 100.00 |
| Overall | 81.70 | 75.01 | 62.65 | 70.05 | 69.09 | 78.02 |
Performance by class of different classifiers using the train/test split in Experiment 6 (E6).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 84.30 | 58.55 | 65.23 | 61.04 | F-score | 69.80 |
| Upstairs | 79.35 | 55.60 | 48.78 | 67.14 | 64.38 | 71.53 |
| Downstairs | 77.99 | 76.61 | 79.96 | 67.58 | 57.96 | 72.94 |
| Sit | 83.12 | 65.34 | 66.55 | 79.92 | 70.77 | 84.11 |
| Stand | 85.43 | 74.15 | 80.73 | 81.68 | 80.08 | 83.47 |
| Lie | 100.00 | 98.08 | 90.86 | 100.00 | 80.99 | 99.63 |
| Overall | 85.03 | 71.39 | 72.02 | 76.23 | 100.00 | 80.25 |
Performance by class of different classifiers using the train/test split in Experiment 7 (E7).
| Activity Type | SVM (%) | XGB (%) | GB (%) | CB (%) | ADA (DT) (%) | ADA (RF) |
|---|---|---|---|---|---|---|
| Walk | 84.30 | 63.61 | 21.72 | 71.23 | 59.02 | 83.08 |
| Upstairs | 79.35 | 56.58 | 43.16 | 62.70 | 53.74 | 76.52 |
| Downstairs | 77.99 | 77.26 | 75.66 | 72.36 | 70.94 | 76.15 |
| Sit | 82.88 | 73.37 | 75.18 | 81.34 | 79.68 | 81.57 |
| Stand | 85.27 | 80.70 | 58.96 | 78.95 | 80.30 | 81.60 |
| Lie | 100.00 | 99.91 | 99.72 | 96.23 | 99.53 | 100.00 |
| Overall | 84.97 | 75.24 | 62.40 | 77.14 | 73.87 | 83.15 |