| Literature DB >> 30364555 |
Yongwon Jang1,2, Seunghwan Kim2, Kiseong Kim1,3, Doheon Lee1.
Abstract
BACKGROUND: The proportion of overweight and obese people has increased tremendously in a short period, culminating in a worldwide trend of obesity that is reaching epidemic proportions. Overweight and obesity are serious issues, especially with regard to children. This is because obese children have twice the risk of becoming obese as adults, as compared to non-obese children. Nowadays, many methods for maintaining a caloric balance exist; however, these methods are not applicable to children. In this study, a new approach for helping children monitor their activities using a convolutional neural network (CNN) is proposed, which is applicable for real-time scenarios requiring high accuracy.Entities:
Keywords: Children; Classification; Convolutional neural network; Physical activity; Time resolution
Year: 2018 PMID: 30364555 PMCID: PMC6197045 DOI: 10.7717/peerj.5764
Source DB: PubMed Journal: PeerJ ISSN: 2167-8359 Impact factor: 2.984
Figure 1Appearance of devised data acquisition system.
(A) Front face of custom –made accelerometer modules. (B) Housing with clip. (C) Front and back sides of electronics board. Photographs by Yongwon Jang.
Protocol with selected activities for the experiment.
| A | 1 | Stay still (Sitting/Standing) | 3 | 3 | 20.7 k | |
| 2 | Sitting/Standing repeat | 2 | 5 | 25.5 k/25.2 k | ||
| B | 1 | Walking | slow | 2 | 7 | 19.1 k |
| 2 | fast | 2 | 9 | 16.4 k | ||
| 3 | Running | slow | 2 | 11 | 16.0 k | |
| 4 | fast | 2 | 13 | 17.7 k | ||
| C | 1 | Stairs | Ascending | 2 | 15 | 14.2 k |
| 2 | Descending | 2 | 17 | 10.4 k | ||
| 3 | Jumping rope | 3 | 20 | 18.4 k | ||
Notes.
183.6 k samples in total.
Figure 2Preprocessing procedures for physical activity training of classification algorithm.
(A) Acceleration signal data file of each subject. (B) Magnified portion of acceleration signals and windowing description (Window Size = 128 points = ∼2.8 s). (C) Dataset of activities from all subjects.
Figure 3Convolutional neural network (CNN) structure with input, feature extraction, and classification stages.
The feature extraction process was composed of a ternary convolution block expressed with different colors. The classification stage included fully connected layers and a dropout function, and provided an output from a softmax function.
The confusion matrix of classification results using the 10-fold cross-validation of the developed CNN algorithm.
| Input/Output | Target class | Sum by row | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Output Class | 428 | 29 | 5 | 116 | 19 | 4 | 0 | 0 | 2 | 1,971 | ||
| 357 | 52 | 16 | 43 | 7 | 10 | 0 | 0 | 0 | 1,545 | |||
| 2 | 47 | 366 | 42 | 44 | 59 | 0 | 0 | 0 | 1,446 | |||
| 1 | 5 | 536 | 23 | 40 | 43 | 0 | 0 | 0 | 1,969 | |||
| 136 | 66 | 8 | 6 | 64 | 32 | 2 | 1 | 0 | 1,221 | |||
| 33 | 21 | 51 | 36 | 65 | 70 | 2 | 2 | 0 | 1,076 | |||
| 10 | 14 | 38 | 23 | 193 | 67 | 0 | 0 | 0 | 1,966 | |||
| 4 | 1 | 0 | 0 | 6 | 1 | 0 | 66 | 6 | 2,509 | |||
| 1 | 1 | 1 | 0 | 1 | 3 | 0 | 73 | 8 | 2,556 | |||
| 3 | 1 | 0 | 0 | 21 | 0 | 0 | 13 | 13 | 2,104 | |||
| Sum by column | 1,915 | 1,644 | 1,601 | 1,773 | 1,416 | 1,041 | 1,839 | 2,515 | 2,550 | 2,069 | 18,363 | |
Notes.
The number in table mean classified cases with the trained CNN algorithm. For example, 1,368 samples were classified as WS from 1915 WS input samples.
The confusion matrix of the trained network for each class.
| Input/Output | Target Class | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Output class | 1.8 | 0.3 | 8.2 | 1.8 | 0.2 | 0.0 | 0.0 | 0.1 | |||
| 3.3 | 0.9 | 3.0 | 0.7 | 0.5 | 0.0 | 0.0 | 0.0 | ||||
| 0.1 | 2.9 | 20.6 | 3.0 | 4.2 | 3.2 | 0.0 | 0.0 | 0.0 | |||
| 0.1 | 0.3 | 33.5 | 1.6 | 3.8 | 2.3 | 0.0 | 0.0 | 0.0 | |||
| 7.1 | 4.0 | 0.5 | 0.3 | 6.2 | 1.7 | 0.1 | 0.0 | 0.0 | |||
| 1.7 | 1.3 | 3.2 | 2.0 | 4.6 | 3.8 | 0.1 | 0.1 | 0.0 | |||
| 0.5 | 0.9 | 2.4 | 1.3 | 13.6 | 6.4 | 0.0 | 0.0 | 0.0 | |||
| 0.2 | 0.1 | 0.0 | 0.0 | 0.4 | 0.1 | 0.0 | 2.6 | 0.3 | |||
| 0.1 | 0.1 | 0.1 | 0.0 | 0.1 | 0.3 | 0.0 | 2.9 | 0.4 | |||
| 0.2 | 0.1 | 0.0 | 0.0 | 1.5 | 0.0 | 0.0 | 0.5 | 0.5 | |||
| Sum by column | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
Notes.
Numbers in the cells are expressed in %. Each column makes 100% in total.
The various performance indicators of developed algorithm for each class.
| Class/Indicators | WS | WF | RS | RF | SU | SD | JR | ST | SI | NA |
|---|---|---|---|---|---|---|---|---|---|---|
| Recall | 0.714 | 0.645 | 0.553 | 0.745 | 0.640 | 0.765 | 0.882 | 0.964 | 0.968 | 0.992 |
| ±0.020 | ±0.023 | ±0.024 | ±0.020 | ±0.025 | ±0.026 | ±0.015 | ±0.007 | ±0.007 | ±0.004 | |
| Precision | 0.694 | 0.686 | 0.613 | 0.671 | 0.742 | 0.740 | 0.825 | 0.967 | 0.966 | 0.976 |
| ±0.021 | ±0.022 | ±0.024 | ±0.022 | ±0.023 | ±0.027 | ±0.017 | ±0.007 | ±0.007 | ±0.007 | |
| F1 score | 0.704 | 0.665 | 0.582 | 0.706 | 0.687 | 0.752 | 0.852 | 0.965 | 0.967 | 0.984 |
The converted confusion matrix with seven merged classes.
| Input/Output | Target class | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Sum by row | |||||||||
| Output class | 102 | 185 | 14 | 0 | 0 | 2 | 3,516 | ||
| 55 | 149 | 102 | 0 | 0 | 0 | 3,415 | |||
| 256 | 101 | 102 | 4 | 3 | 0 | 2,297 | |||
| 24 | 61 | 260 | 0 | 0 | 0 | 1,996 | |||
| 5 | 0 | 7 | 0 | 66 | 6 | 2,509 | |||
| 2 | 1 | 4 | 0 | 73 | 8 | 2,556 | |||
| 4 | 0 | 21 | 0 | 13 | 13 | 2,104 | |||
| Sum by column | 3,559 | 3,374 | 2,457 | 1,839 | 2,515 | 2,550 | 2,069 | 18,363 | |
Notes.
The number in table mean classified cases with the merged classes.
The converted confusion matrix with seven merged classes.
| Input/Output | Target Class | |||||||
|---|---|---|---|---|---|---|---|---|
| Output Class | 3.0 | 7.5 | 0.8 | 0.0 | 0.0 | 0.1 | ||
| 1.5 | 6.1 | 5.5 | 0.0 | 0.0 | 0.0 | |||
| 7.2 | 3.0 | 5.5 | 0.2 | 0.1 | 0.0 | |||
| 0.7 | 1.8 | 10.6 | 0.0 | 0.0 | 0.0 | |||
| 0.1 | 0.0 | 0.3 | 0.0 | 2.6 | 0.3 | |||
| 0.1 | 0.0 | 0.2 | 0.0 | 2.9 | 0.4 | |||
| 0.1 | 0.0 | 0.9 | 0.0 | 0.5 | 0.5 | |||
| Sum by column | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
Notes.
The number in table mean classified cases with the merged classes.
The various performance indicators of the developed algorithm with seven merged classes.
| Class/Indicators | WX | RX | SX | JR | ST | SI | NA |
|---|---|---|---|---|---|---|---|
| Recall | 0.900 | 0.920 | 0.750 | 0.880 | 0.960 | 0.970 | 0.990 |
| ±0.010 | ±0.009 | ±0.017 | ±0.015 | ±0.008 | ±0.007 | ±0.004 | |
| Precision | 0.914 | 0.910 | 0.797 | 0.825 | 0.970 | 0.970 | 0.976 |
| ±0.009 | ±0.010 | ±0.016 | ±0.017 | ±0.007 | ±0.007 | ±0.007 | |
| F1 score | 0.908 | 0.916 | 0.770 | 0.852 | 0.970 | 0.970 | 0.984 |
The overall accuracies of the compared target algorithms and CNN.
| Classifierr/Overall accuracy | CNN | SVM | DT | k-NN |
|---|---|---|---|---|
| 10 individual classes (%) | 81.2 ± 0.6 | 65.3 ± 0.7 | 63.9 ± 0.7 | 55.4 ± 0.7 |
| 7 merged classes (%) | 91.1 ± 0.4 | 74.7 ± 0.6 | 73.2 ± 0.6 | 65.3 ± 0.7 |
Notes.
The compared target algorithms showed best results under the below conditions.
kernel function, Gaussian, kernel scale, 3
split criterion, Gini’s diversity index, maximum number of splits, 5,000
distance metric, Euclidean (weighted), number of neighbors, 10
The performance indicators of the compared target algorithms with the ten individual classes.
| Class/Indicators | WS | WF | RS | RF | SU | SD | JR | ST | SI | NA | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| SVM | Recall | 0.740 | 0.481 | 0.597 | 0.771 | 0.192 | 0.374 | 0.865 | 0.687 | 0.531 | 0.985 |
| ±0.020 | ±0.024 | ±0.024 | ±0.020 | ±0.021 | ±0.029 | ±0.016 | ±0.018 | ±0.019 | ±0.005 | ||
| Precision | 0.499 | 0.527 | 0.558 | 0.661 | 0.449 | 0.546 | 0.863 | 0.614 | 0.619 | 0.981 | |
| ±0.022 | ±0.024 | ±0.024 | ±0.022 | ±0.026 | ±0.030 | ±0.016 | ±0.019 | ±0.019 | ±0.006 | ||
| F1 score | 0.596 | 0.503 | 0.576 | 0.712 | 0.269 | 0.444 | 0.864 | 0.649 | 0.572 | 0.983 | |
| DT | Recall | 0.617 | 0.519 | 0.547 | 0.783 | 0.330 | 0.380 | 0.841 | 0.598 | 0.586 | 0.980 |
| ±0.022 | ±0.024 | ±0.024 | ±0.019 | ±0.025 | ±0.029 | ±0.017 | ±0.019 | ±0.019 | ±0.006 | ||
| Precision | 0.534 | 0.523 | 0.581 | 0.643 | 0.413 | 0.478 | 0.834 | 0.621 | 0.587 | 0.979 | |
| ±0.022 | ±0.024 | ±0.024 | ±0.022 | ±0.026 | ±0.030 | ±0.017 | ±0.019 | ±0.019 | ±0.006 | ||
| F1 score | 0.572 | 0.521 | 0.563 | 0.707 | 0.367 | 0.424 | 0.838 | 0.610 | 0.586 | 0.980 | |
| k-NN | Recall | 0.497 | 0.374 | 0.556 | 0.752 | 0.207 | 0.264 | 0.818 | 0.492 | 0.438 | 0.944 |
| ±0.022 | ±0.023 | ±0.024 | ±0.020 | ±0.021 | ±0.027 | ±0.018 | ±0.020 | ±0.019 | ±0.010 | ||
| Precision | 0.411 | 0.423 | 0.552 | 0.650 | 0.276 | 0.422 | 0.826 | 0.504 | 0.463 | 0.772 | |
| ±0.022 | ±0.024 | ±0.024 | ±0.022 | ±0.023 | ±0.030 | ±0.017 | ±0.020 | ±0.019 | ±0.018 | ||
| F1 score | 0.450 | 0.397 | 0.554 | 0.697 | 0.237 | 0.325 | 0.822 | 0.498 | 0.450 | 0.849 | |
The performance indicators of the compared target algorithms with the seven merged classes.
| Class/Indicators | WX | RX | SX | JR | ST | SI | NA | |
|---|---|---|---|---|---|---|---|---|
| SVM | Recall | 0.860 | 0.910 | 0.330 | 0.870 | 0.690 | 0.530 | 0.980 |
| ±0.011 | ±0.010 | ±0.019 | ±0.015 | ±0.018 | ±0.019 | ±0.006 | ||
| Precision | 0.703 | 0.815 | 0.619 | 0.863 | 0.614 | 0.619 | 0.981 | |
| ±0.015 | ±0.013 | ±0.019 | ±0.016 | ±0.019 | ±0.019 | 0.006 | ||
| F1 score | 0.773 | 0.862 | 0.432 | 0.864 | 0.649 | 0.572 | 0.983 | |
| DT | Recall | 0.781 | 0.892 | 0.442 | 0.841 | 0.600 | 0.590 | 0.980 |
| ±0.014 | ±0.010 | ±0.020 | ±0.017 | ±0.019 | ±0.019 | ±0.006 | ||
| Precision | 0.723 | 0.821 | 0.554 | 0.834 | 0.621 | 0.587 | 0.979 | |
| ±0.015 | ±0.013 | ±0.020 | ±0.017 | ±0.019 | ±0.019 | ±0.006 | ||
| F1 score | 0.751 | 0.855 | 0.492 | 0.838 | 0.610 | 0.586 | 0.980 | |
| k-NN | Recall | 0.673 | 0.895 | 0.311 | 0.819 | 0.490 | 0.440 | 0.944 |
| ±0.015 | ±0.010 | ±0.018 | ±0.018 | ±0.020 | ±0.019 | ±0.010 | ||
| Precision | 0.636 | 0.824 | 0.447 | 0.826 | 0.504 | 0.463 | 0.772 | |
| ±0.016 | ±0.013 | ±0.020 | ±0.017 | ±0.020 | ±0.019 | ±0.018 | ||
| F1 score | 0.654 | 0.858 | 0.367 | 0.822 | 0.498 | 0.450 | 0.849 | |