| Literature DB >> 31687119 |
Sabyasachi Chakraborty1, Satyabrata Aich2, Moon-Il Joo2, Mangal Sain3, Hee-Cheol Kim1,2,4.
Abstract
Detection of the state of mind has increasingly grown into a much favored study in recent years. After the advent of smart wearables in the market, each individual now expects to be delivered with state-of-the-art reports about his body. The most dominant wearables in the market often focus on general metrics such as the number of steps, distance walked, heart rate, oximetry, sleep quality, and sleep stage. But, for accurately identifying the well-being of an individual, another important metric needs to be analyzed, which is the state of mind. The state of mind is a metric of an individual that boils down to the activity of all other related metrics. But, the detection of the state of mind has formed a huge challenge for the researchers as a single biosignal cannot propose a particular decision threshold for detection. Therefore, in this work, multiple biosignals from different parts of the body are used to determine the state of mind of an individual. The biosignals, blood volume pulse (BVP), and accelerometer are intercepted from a wrist-worn wearable, and electrocardiography (ECG), electromyography (EMG), and respiration are intercepted from a chest-worn pod. For the classification of the biosignals to the multiple state-of-mind categories, a multichannel convolutional neural network architecture was developed. The overall model performed pretty well and pursued some encouraging results by demonstrating an average recall and precision of 97.238% and 97.652% across all the classes, respectively.Entities:
Mesh:
Year: 2019 PMID: 31687119 PMCID: PMC6794971 DOI: 10.1155/2019/5397814
Source DB: PubMed Journal: J Healthc Eng ISSN: 2040-2295 Impact factor: 2.682
State of the mind category distribution.
| State of the mind class | Number of samples |
|---|---|
| Baseline | 274,790 |
| Amusement | 117150 |
| Stressed | 65450 |
| Meditation | 37090 |
| Recovery | 79000 |
Figure 1ECG signal for 30 seconds of subject 2.
Electrocardiography (ECG) features.
| Feature name | Description |
|---|---|
| ECG_Peaks | This gives out the number of local maxima in a minute |
| ECG_Average_Amplitude | This feature gives out the average amplitude of the local maximas in a minute |
| ECG_Differ_Mean | This feature pursues the average difference between consecutive local maxima in a minute |
| ECG_Resting | This feature shows out the resting motion of a subject, which means the number of local maxima within 10 samples that is 1 second |
Figure 2EMG signal for 30 seconds of subject 2.
Electromyography (EMG) features.
| Feature name | Description |
|---|---|
| EMG_Peaks | This gives out the number of local maxima in a minute |
| EMG_Average_Amplitude | This feature gives out the average amplitude of the local maximas in a minute |
| EMG_Differ_Mean | This feature pursues the average difference between consecutive local maxima in a minute |
Figure 3Respiration signal for 100 seconds of subject 2.
Respiration features.
| Feature name | Description |
|---|---|
| RESP_Peaks | Number of breath cycles in a minute |
| RESP_Average_Amplitude | This feature gives out the average amplitude of the local maximas in a minute |
| RESP_Differ_Mean | This feature pursues the average difference between consecutive local maxima in a minute |
Figure 4Blood volume pulse for 30 seconds of subject 2.
Blood volume pulse features.
| Feature name | Description |
|---|---|
| BVP_Peaks | This gives out the number of local maxima in a minute |
| BVP_Average_Amplitude | This feature gives out the average amplitude of the local maximas in a minute |
| BVP_Differ_Mean | This feature pursues the average difference between consecutive local maxima in a minute |
Accelerometer signal features.
| Feature | Equation | Description |
|---|---|---|
| Mean |
| The mean of the signal for each subject |
| Standard deviation |
| The standard deviation of the signal is calculated for each value |
| Correlation |
| The correlation coefficient between the two accelerometer signals |
| Kurtosis |
| Kurtosis shows the peakedness of a signal |
| Crest factor |
| It shows the signal impulsiveness with the maximum accelerometer value |
Figure 5Multichannel CNN architecture.
Multichannel CNN architecture.
| Layer | Layer type | Filters | Size | No. of parameters | Output dimension | Activation |
|---|---|---|---|---|---|---|
| 1 | Input | — | — | — | ECG: (4, 1) | — |
|
| ||||||
| 2 | Conv1D (1st layer) | 128 | ECG: (2, 1) | ECG: 384 | ECG: (3, 128) | ReLU |
|
| ||||||
| 3 | Conv1D (2nd layer) | 64 | ECG: (2, 1) | ECG: 16448 | ECG: (2, 64) | ReLU |
|
| ||||||
| 4 | Flatten | — | — | ECG: 128 | — | |
|
| ||||||
| 5 | Dropout | — | — | — | — | |
|
| ||||||
| 6 | Dense (1st layer) | 64 | — | ECG: 8256 | ECG: 64 | ReLU |
|
| ||||||
| 7 | Dropout | — | — | — | — | — |
|
| ||||||
| 8 | Dense (2nd layer) | 32 | ECG: 2080 | ECG: 32 | ReLU | |
|
| ||||||
| 9 | Concatenate | — | 0 | 160 | ||
|
| ||||||
| 10 | Dense (3rd layer) | 32 | 160 | 5152 | 32 | ReLU |
|
| ||||||
| 11 | Dense (output) | 5 | 32 | 165 | 5 | SoftMax |
Training, validation, and testing divisions for all the channels and number of features for Type I.
| Channel | Training samples | Testing samples | Validation set | No. of features |
|---|---|---|---|---|
| ECG channel | 616,413 | 176,118 | 88,059 | 4 |
| EMG channel | 616,413 | 176,118 | 88,059 | 3 |
| Respiration channel | 616,413 | 176,118 | 88,059 | 3 |
| BVP channel | 616,413 | 176,118 | 88,059 | 3 |
| Accelerometer channel | 616,413 | 176,118 | 88,059 | 15 |
Number of samples for each fold of training.
| The subject in the test set | Training set | Validation set | Testing set |
|---|---|---|---|
| Subject 1 | 656,872 | 164,218 | 59,500 |
| Subject 2 | 654,184 | 163,546 | 62,860 |
| Subject 3 | 654,264 | 163,566 | 62,760 |
| Subject 4 | 655,896 | 163,974 | 60,720 |
| Subject 5 | 649,320 | 162,330 | 68,940 |
| Subject 6 | 663,744 | 165,936 | 50,910 |
| Subject 7 | 661,960 | 165,490 | 53,140 |
| Subject 8 | 664,144 | 166,036 | 50,410 |
| Subject 9 | 661,728 | 165,432 | 53,430 |
| Subject 10 | 663,824 | 165,956 | 50,810 |
| Subject 11 | 650,536 | 162,634 | 67,420 |
| Subject 12 | 658,360 | 164,590 | 57,640 |
| Subject 13 | 654,512 | 163,628 | 62,450 |
| Subject 14 | 653,984 | 163,496 | 63,110 |
| Subject 15 | 659,280 | 164,820 | 56,490 |
Comparative analysis of the model performance based on the optimizer algorithms for subject 1 in the testing set.
| Metric | Adam | RMSprop | SGD |
|---|---|---|---|
| Accuracy | 97.62 | 90.45 | 92.51 |
| Recall “baseline” | 0.9861 | 0.8945 | 0.9063 |
| Precision “baseline” | 0.9703 | 0.9106 | 0.9542 |
| F1 score “baseline” | 0.9716 | 0.9033 | 0.9311 |
| Recall “amusement” | 0.9891 | 0.9322 | 0.9256 |
| Precision “amusement” | 0.9956 | 0.9158 | 0.9428 |
| F1 score “amusement” | 0.991 | 0.9288 | 0.9299 |
| Recall “stress” | 0.9832 | 0.9647 | 0.9568 |
| Precision “stress” | 0.9784 | 0.94 | 0.9487 |
| F1 score “stress” | 0.9693 | 0.9561 | 0.9509 |
| Recall “meditation” | 0.9583 | 0.9428 | 0.9467 |
| Precision “meditation” | 0.9752 | 0.9022 | 0.9788 |
| F1 score “meditation” | 0.9680 | 0.9312 | 0.9635 |
| Recall “recovery” | 0.9456 | 0.9365 | 0.9387 |
| Precision “recovery” | 0.9711 | 0.9174 | 0.9579 |
| F1 score “recovery” | 0.9620 | 0.9258 | 0.9466 |
Figure 6Confusion matrix of the multichannel CNN model.
Figure 7Model training process using Adam optimizer for 100 epochs.
Comparative analysis of the model performance for multichannel CNN and single-channel CNN for subject 1 in the testing set.
| Metric | Multi channel CNN | Single channel CNN |
|---|---|---|
| Accuracy | 97.62 | 87.53 |
| Recall “baseline” | 0.9861 | 0.9524 |
| Precision “baseline” | 0.9703 | 0.9347 |
| F1 score “baseline” | 0.9716 | 0.9435 |
| Recall “amusement” | 0.9891 | 0.9311 |
| Precision “amusement” | 0.9956 | 0.9006 |
| F1 score “amusement” | 0.991 | 0.9132 |
| Recall “stress” | 0.9832 | 0.8991 |
| Precision “stress” | 0.9784 | 0.9157 |
| F1 score “stress” | 0.9693 | 0.9036 |
| Recall “meditation” | 0.9583 | 0.7658 |
| Precision “meditation” | 0.9752 | 0.8631 |
| F1 score “meditation” | 0.9680 | 0.8122 |
| Recall “recovery” | 0.9456 | 0.9136 |
| Precision “recovery” | 0.9711 | 0.9217 |
| F1 score “recovery” | 0.9620 | 0.9178 |
Comparative analysis of the model performance for multichannel CNN for Type-II model.
| Metrics | Subject 1 | Subject 2 | Subject 3 | Subject 4 | Subject 5 | Subject 6 | Subject 7 | Subject 8 | Subject 9 | Subject 10 | Subject 11 | Subject 12 | Subject 13 | Subject 14 | Subject 15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Accuracy | 75.34 | 78.66 | 74.56 | 0.7644 | 75.84 | 76.54 | 77.8 | 79.89 | 78.26 | 76.20 | 76.79 | 77.72 | 77.66 | 78.08 | 76.14 |
| Recall “baseline” | 0.724 | 0.79 | 0.741 | 0.748 | 0.739 | 0.873 | 0.793 | 0.874 | 0.814 | 0.813 | 0.791 | 0.831 | 0.884 | 0.83 | 0.719 |
| Precision “baseline” | 0.752 | 0.795 | 0.771 | 0.715 | 0.769 | 0.718 | 0.798 | 0.715 | 0.79 | 0.727 | 0.742 | 0.809 | 0.8 | 0.775 | 0.713 |
| F1 score “baseline” | 0.738 | 0.792 | 0.756 | 0.731 | 0.754 | 0.788 | 0.795 | 0.787 | 0.802 | 0.768 | 0.766 | 0.82 | 0.84 | 0.802 | 0.716 |
| Recall “amusement” | 0.723 | 0.75 | 0.718 | 0.676 | 0.669 | 0.694 | 0.678 | 0.705 | 0.709 | 0.694 | 0.676 | 0.686 | 0.714 | 0.682 | 0.728 |
| Precision “amusement” | 0.727 | 0.813 | 0.818 | 0.841 | 0.81 | 0.835 | 0.714 | 0.769 | 0.752 | 0.742 | 0.777 | 0.816 | 0.844 | 0.79 | 0.736 |
| F1 score “amusement” | 0.725 | 0.78 | 0.765 | 0.75 | 0.733 | 0.758 | 0.696 | 0.736 | 0.73 | 0.717 | 0.723 | 0.745 | 0.774 | 0.732 | 0.732 |
| Recall “stress” | 0.719 | 0.734 | 0.786 | 0.74 | 0.804 | 0.718 | 0.744 | 0.744 | 0.806 | 0.734 | 0.767 | 0.749 | 0.746 | 0.747 | 0.801 |
| Precision “stress” | 0.785 | 0.796 | 0.769 | 0.788 | 0.843 | 0.781 | 0.836 | 0.778 | 0.813 | 0.785 | 0.815 | 0.844 | 0.805 | 0.76 | 0.838 |
| F1 score “stress” | 0.751 | 0.764 | 0.777 | 0.763 | 0.823 | 0.748 | 0.787 | 0.761 | 0.809 | 0.759 | 0.79 | 0.794 | 0.774 | 0.753 | 0.819 |
| Recall “meditation” | 0.734 | 0.798 | 0.775 | 0.873 | 0.779 | 0.756 | 0.835 | 0.849 | 0.759 | 0.788 | 0.757 | 0.819 | 0.766 | 0.791 | 0.773 |
| Precision “meditation” | 0.846 | 0.808 | 0.822 | 0.811 | 0.843 | 0.822 | 0.851 | 0.776 | 0.778 | 0.841 | 0.785 | 0.834 | 0.862 | 0.871 | 0.887 |
| F1 score “meditation” | 0.786 | 0.803 | 0.798 | 0.841 | 0.81 | 0.788 | 0.843 | 0.811 | 0.768 | 0.814 | 0.771 | 0.826 | 0.811 | 0.829 | 0.826 |
| Recall “recovery” | 0.867 | 0.861 | 0.723 | 0.785 | 0.801 | 0.786 | 0.84 | 0.819 | 0.825 | 0.781 | 0.849 | 0.801 | 0.773 | 0.854 | 0.786 |
| Precision “recovery” | 0.814 | 0.841 | 0.803 | 0.795 | 0.837 | 0.782 | 0.808 | 0.836 | 0.81 | 0.798 | 0.795 | 0.814 | 0.789 | 0.785 | 0.824 |
| F1 score “recovery” | 0.84 | 0.851 | 0.761 | 0.79 | 0.819 | 0.784 | 0.824 | 0.827 | 0.817 | 0.789 | 0.821 | 0.807 | 0.781 | 0.818 | 0.805 |