| Literature DB >> 35206341 |
Dawoon Jung1, Junggu Choi1, Jeongjae Kim1, Seoyoung Cho1, Sanghoon Han1,2.
Abstract
Classifying emotional states is critical for brain-computer interfaces and psychology-related domains. In previous studies, researchers have tried to identify emotions using neural data such as electroencephalography (EEG) signals or brain functional magnetic resonance imaging (fMRI). In this study, we propose a machine learning framework for emotion state classification using EEG signals in virtual reality (VR) environments. To arouse emotional neural states in brain signals, we provided three VR stimuli scenarios to 15 participants. Fifty-four features were extracted from the collected EEG signals under each scenario. To find the optimal classification in our research design, three machine learning algorithms (XGBoost classifier, support vector classifier, and logistic regression) were applied. Additionally, various class conditions were used in machine learning classifiers to validate the performance of our framework. To evaluate the classification performance, we utilized five evaluation metrics (precision, recall, f1-score, accuracy, and AUROC). Among the three classifiers, the XGBoost classifiers showed the best performance under all experimental conditions. Furthermore, the usability of features, including differential asymmetry and frequency band pass categories, were checked from the feature importance of XGBoost classifiers. We expect that our framework can be applied widely not only to psychological research but also to mental health-related issues.Entities:
Keywords: electroencephalography; emotion recognition; machine learning; virtual reality
Mesh:
Year: 2022 PMID: 35206341 PMCID: PMC8872045 DOI: 10.3390/ijerph19042158
Source DB: PubMed Journal: Int J Environ Res Public Health ISSN: 1660-4601 Impact factor: 3.390
Figure 1Overview of the research scheme.
Figure 2VR content to induce the state.
Figure 3Electrode and channel information of EEG devices used in this study. (a) Muse2 headset band. (b) EEG montage of Muse 2 headset band based on the International 10–20 EEG electrode placement standard [27,28].
Figure 4Block diagram of EEG signal collection with VR contents.
Extracted features from EEG signals.
| Feature Category | Feature | No. of Features |
|---|---|---|
| Frequency band power (FP) | Delta power | 20 features |
| Theta power | ||
| Alpha power | ||
| Beta power | ||
| Gamma power | ||
| Differential asymmetry (DASM) | Delta power | 10 features |
| Theta power | ||
| Alpha power | ||
| Beta power | ||
| Gamma power | ||
| Rational asymmetry (RASM) | Delta power | 10 features |
| Theta power | ||
| Alpha power | ||
| Beta power | ||
| Gamma power | ||
| Correlation coefficient (CC) | Delta power | 10 features |
| Theta power | ||
| Alpha power | ||
| Beta power | ||
| Gamma power | ||
| Fractal dimension (FD) | AF7 | 4 features |
| AF8 | ||
| TP9 | ||
| TP10 |
Coefficient values of each feature from lasso and ridge regression models.
| Rank | Ridge Regression Coefficient | Feature | Lasso Regression Coefficient | Feature | No. | Selected Features (Common Feature) |
|---|---|---|---|---|---|---|
| 1 | 1.6540 | CC_Gamma_AF 1 | 1.6025 | CC_Gamma_AF | 1 | CC_Gamma_AF |
| 2 | 1.5410 | CC_Gamma_TP | 1.1770 | CC_Gamma_TP | 2 | CC_Gamma_TP |
| 3 | 1.4678 | DASM_Beta_TP 2 | 0.7070 | FP_Alpha_AF7 | 3 | DASM_Beta_TP |
| 4 | 1.2270 | FP_Delta_TP9 3 | 0.6682 | DASM_Beta_TP | 4 | DASM_Delta_TP |
| 5 | 1.2219 | DASM_Delta_TP | 0.5537 | CC_Beta_AF | 5 | FP_Beta_TP9 |
| 6 | 1.2061 | FP_Beta_TP9 | 0.5525 | FP_Beta_TP9 | 6 | FP_Alpha_AF7 |
| 7 | 1.1511 | FP_Alpha_AF7 | 0.5366 | FP_Beta_AF8 | 7 | CC_Beta_AF |
| 8 | 1.1342 | RASM_Delta_AF 4 | 0.2972 | CC_Delta_AF | 8 | FP_Beta_AF8 |
| 9 | 1.0362 | CC_Beta_AF | 0.2726 | DASM_Alpha_AF | 9 | FP_Gamma_TP9 |
| 10 | 1.0280 | DASM_Gamma_TP | 0.2453 | FP_Alpha_TP10 | 10 | CC_Delta_AF |
| 11 | 0.8683 | FP_Beta_AF8 | 0.2225 | FP_Gamma_AF8 | 11 | DASM_Alpha_AF |
| 12 | 0.8216 | FP_Gamma_TP9 | 0.1509 | DASM_Delta_TP | 12 | FP_Alpha_TP10 |
| 13 | 0.5619 | RASM_Gamma_TP | 0.1448 | FP_Theta_TP9 | 13 | DASM_Theta_AF |
| 14 | 0.5369 | CC_Delta_AF | 0.1327 | FP_Theta_AF7 | 14 | FP_Theta_AF7 |
| 15 | 0.4626 | DASM_Alpha_AF | 0.1064 | FP_Delta_AF8 | ||
| 16 | 0.4328 | RASM_Beta_TP | 0.0798 | DASM_Gamma_TP | ||
| 17 | 0.4295 | RASM_Theta_AF | 0.0751 | FP_Delta_AF7 | ||
| 18 | 0.3106 | FP_Alpha_TP10 | 0.0561 | DASM_Theta_AF | ||
| 19 | 0.2201 | DASM_Theta_AF | 0.0329 | DASM_Beta_AF | ||
| 20 | 0.1270 | FP_Theta_AF7 | 0.0081 | FP_Gamma_TP9 |
1 CC, correlation coefficient; 2 DASM, differential asymmetry; 3 FP, frequency band power; 4 RASM, rational asymmetry.
Hyperparameters of three machine learning classifiers.
| Classifier | Hyperparameter | Argument |
|---|---|---|
| XGBoost classifier | Eta | 0.3 |
| Gamma | 0 | |
| max_depth | 6 | |
| min_child_weight | 1 | |
| Support vector classifier | Kernel | rbf |
| Gamma | auto | |
| Logistic regression | Penalty | L2 |
| Solver | newton-cg |
Classification performance results for classifiers in binary-class condition.
| Condition | Classifier | Precision | Recall | F1-Score | Accuracy | AUROC 1 |
|---|---|---|---|---|---|---|
| Baseline vs. low arousal | XGBoost | 0.846 | 0.846 | 0.838 | 0.849 | 0.925 |
| SVC 2 | 0.795 | 0.829 | 0.764 | 0.737 | 0.789 | |
| LR 3 | 0.533 | 0.563 | 0.528 | 0.522 | 0.583 | |
| Baseline vs. high arousal | XGBoost | 0.851 | 0.855 | 0.858 | 0.838 | 0.860 |
| SVC | 0.769 | 0.747 | 0.748 | 0.722 | 0.686 | |
| LR | 0.651 | 0.673 | 0.663 | 0.632 | 0.669 | |
| Baseline vs. social anxiety | XGBoost | 0.929 | 0.914 | 0.915 | 0.929 | 0.941 |
| SVC | 0.843 | 0.833 | 0.860 | 0.830 | 0.856 | |
| LR | 0.721 | 0.728 | 0.733 | 0.712 | 0.813 | |
| low arousal vs. high arousal | XGBoost | 0.853 | 0.858 | 0.880 | 0.843 | 0.858 |
| SVC | 0.757 | 0.751 | 0.752 | 0.750 | 0.814 | |
| LR | 0.740 | 0.696 | 0.717 | 0.704 | 0.778 | |
| low arousal vs. social anxiety | XGBoost | 0.865 | 0.840 | 0.852 | 0.840 | 0.857 |
| SVC | 0.777 | 0.788 | 0.743 | 0.739 | 0.814 | |
| LR | 0.514 | 0.555 | 0.573 | 0.558 | 0.474 | |
| high arousal vs. social anxiety | XGBoost | 0.903 | 0.921 | 0.907 | 0.892 | 0.936 |
| SVC | 0.839 | 0.854 | 0.826 | 0.853 | 0.855 | |
| LR | 0.787 | 0.743 | 0.754 | 0.757 | 0.813 |
1 AUROC: area under the ROC curve, 2 SVC: support vector classifier, 3 LR: logistic regression.
Classification performance results for classifiers in multi-class condition.
| Condition | Classifier | Precision | Recall | F1-Score | Accuracy | AUROC 1 |
|---|---|---|---|---|---|---|
| Baseline vs. low arousal vs. high arousal | XGBoost | 0.912 | 0.911 | 0.913 | 0.938 | 0.938 |
| SVC 2 | 0.677 | 0.670 | 0.671 | 0.679 | 0.631 | |
| LR 3 | 0.579 | 0.572 | 0.527 | 0.531 | 0.578 | |
| Baseline vs. low arousal vs. social anxiety | XGBoost | 0.847 | 0.844 | 0.839 | 0.860 | 0.856 |
| SVC | 0.707 | 0.758 | 0.754 | 0.745 | 0.767 | |
| LR | 0.537 | 0.532 | 0.564 | 0.547 | 0.534 | |
| low arousal vs. high arousal vs. social anxiety | XGBoost | 0.902 | 0.911 | 0.911 | 0.938 | 0.905 |
| SVC | 0.745 | 0.726 | 0.755 | 0.734 | 0.764 | |
| LR | 0.660 | 0.664 | 0.651 | 0.664 | 0.725 | |
| Baseline vs. low 4 vs. high arousal vs. social anxiety | XGBoost | 0.843 | 0.874 | 0.846 | 0.845 | 0.858 |
| SVC | 0.730 | 0.752 | 0.752 | 0.742 | 0.683 | |
| LR | 0.629 | 0.619 | 0.533 | 0.517 | 0.556 |
1 AUROC, area under the ROC curve; 2 SVC, support vector classifier; 3 LR, logistic regression; 4 low, low-arousal condition.
Top 5 important features from XGBoost classifier in binary-class conditions.
| Rank | Baseline vs. Low 1 | Baseline vs. High 2 | Baseline vs. Social 3 | Low vs. High | Low vs. Social | High vs. Social |
|---|---|---|---|---|---|---|
| 1 | FP_beta_TP9 | CC_delta_AF | DASM_delta_TP | DASM_delta_TP | FP_theta_AF7 | DASM_delta_TP |
| 2 | DASM_alpha_AF | FP_alpha_TP10 | FP_theta_AF7 | CC_gamma_TP | DASM_delta_TP | FP_theta_AF7 |
| 3 | CC_delta_AF | DASM_alpha_AF | DASM_theta_AF | FP_alpha_TP10 | CC_gamma_TP | FP_beta_AF8 |
| 4 | FP_alpha_AF7 | CC_beta_AF | DASM_beta_TP | DASM_theta_AF | FP_beta_AF8 | DASM_alpha_AF |
| 5 | DASM_beta_TP | FP_theta_AF7 | FP_alpha_AF7 | CC_beta_AF | CC_delta_AF | FP_beta_TP9 |
1 low: low-arousal condition, 2 high: high-arousal condition, 3 social anxiety condition.
Top 5 important features from XGBoost classifier in multi-class conditions.
| Rank | Baseline vs. Low 1 vs. High 2 | Baseline vs. Low 1 vs. Social 3 | Low vs. High vs. Social | Baseline vs. Low vs. High vs. Social |
|---|---|---|---|---|
| 1 | DASM_theta_AF | FP_theta_AF7 | DASM_delta_TP | FP_theta_AF7 |
| 2 | CC_delta_AF | DASM_alpha_AF | FP_theta_AF7 | DASM_delta_TP |
| 3 | DASM_alpha_AF | FP_alpha_TP10 | DASM_alpha_AF | CC_gamma_TP |
| 4 | DASM_delta_TP | FP_beta_AF8 | CC_beta_AF | FP_alpha_TP10 |
| 5 | DASM_beta_TP | FP_beta_TP9 | DASM_theta_AF | CC_delta_AF |
1 low: low-arousal condition, 2 high: high-arousal condition, 3 social anxiety condition.