| Literature DB >> 35528348 |
Nishtha Phutela1, Devanjali Relan1, Goldie Gabrani2, Ponnurangam Kumaraguru3, Mesay Samuel4.
Abstract
The early diagnosis of stress symptoms is essential for preventing various mental disorder such as depression. Electroencephalography (EEG) signals are frequently employed in stress detection research and are both inexpensive and noninvasive modality. This paper proposes a stress classification system by utilizing an EEG signal. EEG signals from thirty-five volunteers were analysed which were acquired using four EEG sensors using a commercially available 4-electrode Muse EEG headband. Four movie clips were chosen as stress elicitation material. Two clips were selected to induce stress as it contains emotionally inductive scenes. The other two clips were chosen that do not induce stress as it has many comedy scenes. The recorded signals were then used to build the stress classification model. We compared the Multilayer Perceptron (MLP) and Long Short-Term Memory (LSTM) for classifying stress and nonstress group. The maximum classification accuracy of 93.17% was achieved using two-layer LSTM architecture.Entities:
Mesh:
Year: 2022 PMID: 35528348 PMCID: PMC9071939 DOI: 10.1155/2022/7607592
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1The basic architecture of an LSTM cell containing a forget gate, an input gate, and an output gate.
Figure 2(a) Muse headband for measuring the activity of the brain via four electrodes: AF7, AF9, TP9, and TP10. (b) 10–20 system of electrode placement (source: [32]).
Summary of the excerpts from films shown for stress classification.
| Category | Name of the film | Duration (sec) | Clip content |
|
| |||
| Nonstressed | 3 Idiots | 80 | The kick of a stillborn child creates amusement among the surrounding people |
| Taare Zameen Par | 124 | A music teacher delights his students with a motivational song | |
| Stressed | Rang de Basanti | 117 | The nation mourns during the cremation of a warrior |
| Kal Ho Na Ho | 96 | Friends converse with another friend who is about to die | |
Figure 3Proposed model for stress classification using EEG signals.
Parameters for LSTM models chosen after hyperparameter tuning.
| Parameter | Values |
|
| |
| Number of input features | 20 |
| Number of output features | 1 |
| Number of LSTM layers | 2 |
| Number of hidden units in LSTM layers | 8 and 16 (only for two-layer LSTM) |
| Activation function | Sigmoid |
| Optimizer | Adam |
| Loss function | Binary cross entropy |
| Batch size | 32 |
| Window size | 20 |
| Epochs | 100 |
| Dropout value | 0.2 |
Confusion matrix for stress classification: Diagonal elements contain the TP and TN values, respectively, and the nondiagonal elements contain the FP and FN, respectively.
| Validation techniques | Classifier | |||||
| MLP | LSTM 1 | LSTM 2 | ||||
|
| ||||||
| 50–50 | 4300 | 990 | 4700 | 600 | 5200 | 360 |
| 1700 | 2010 | 2108 | 1300 | 790 | 2650 | |
| 60–40 | 3319 | 500 | 3794 | 402 | 4252 | 334 |
| 1481 | 1900 | 1006 | 1998 | 438 | 2176 | |
| 70–30 | 2993 | 692 | 3150 | 490 | 3198 | 300 |
| 607 | 1108 | 450 | 1310 | 222 | 1680 | |
| 10-fold cross validation | 964 | 191 | 1045 | 140 | 1155 | 68 |
| 236 | 409 | 155 | 460 | 55 | 522 | |
Classification accuracy comparison for stress classification. The table shows maximum (Max), average (avg), and minimum (Min) stress classification accuracy obtained with different methods.
| Method | Validation method | Accuracy | ||
| Max | Avg | Min | ||
|
| ||||
| MLP | 50–50 | 70.11 | 69.33 | 68.56 |
| LSTM 1 | 50–50 | 83.33 | 81.73 | 80.14 |
| LSTM 2 | 50–50 | 87.22 | 85.79 | 84.36 |
| MLP | 60–40 | 73.48 | 71.80 | 70.12 |
| LSTM 1 | 60–40 | 84.69 | 82.75 | 80.76 |
| LSTM 2 | 60–40 | 89.28 | 88.22 | 87.16 |
| MLP | 70–30 | 75.71 | 73.77 | 71.84 |
| LSTM 1 | 70–30 | 85.82 | 83.14 | 81.87 |
| LSTM 2 | 70–30 | 90.33 | 91.11 | 91.89 |
| MLP | 10-fold cross validation | 76.27 | 72.01 | 70.59 |
| LSTM 1 | 10-fold cross validation | 87.61 | 86.55 | 85.97 |
| LSTM 2 | 10-fold cross validation | 93.17 | 91.96 | 90.76 |
Figure 4Model loss and accuracy with LSTM 2 architecture using 10-fold cross validation. (a) Train data. (b) Test data.
Performance metrics for stress classification using various classification techniques and training-testing set partitions.
| Method | Validation method | Specificity | Recall | F1-score | Precision |
|
| |||||
| MLP | 50–50 | 50.17 ± 4.97 | 79.06 ± 2.35 | 73.17 ± 3.35 | 67.66 ± 4.66 |
| LSTM 1 | 50–50 | 61.86 ± 3.23 | 84.67 ± 4.16 | 79.17 ± 4.73 | 74.33 ± 4.79 |
| LSTM 2 | 50–50 | 88.04 ± 4.21 | 86.81 ± 4.84 | 90.04 ± 2.11 | 93.53 ± 3.23 |
| MLP | 60–40 | 51.19 ± 5.63 | 82.90 ± 3.43 | 73.83 ± 4.43 | 65.14 ± 4.34 |
| LSTM 1 | 60–40 | 63.51 ± 3.24 | 85.41 ± 5.23 | 80.34 ± 4.39 | 75.04 ± 5.66 |
| LSTM 2 | 60–40 | 86.69 ± 4.44 | 90.66 ± 4.86 | 91.68 ± 3.91 | 82.72 ± 4.27 |
| MLP | 70–30 | 60.60 ± 4.65 | 79.01 ± 2.28 | 64.51 ± 3.25 | 77.26 ± 6.32 |
| LSTM 1 | 70–30 | 70.43 ± 4.44 | 82.16 ± 4.53 | 83.01 ± 3.93 | 81.90 ± 6.36 |
| LSTM 2 | 70–30 | 84.85 ± 3.72 | 93.51 ± 3.18 | 92.45 ± 2.68 | 91.42 ± 5.23 |
| MLP | 10-fold cross validation | 61.41 ± 2.23 | 79.12 ± 3.01 | 76.81 ± 3.11 | 76.33 ± 4.69 |
| LSTM 1 | 10-fold cross validation | 71.79 ± 3.65 | 84.96 ± 4.67 | 84.62 ± 4.37 | 82.08 ± 5.53 |
| LSTM 2 | 10-fold cross validation | 88.47 ± 3.42 | 95.45 ± 2.32 | 94.94 ± 3.76 | 94.44 ± 4.43 |
Mann-Whitney test based comparison of p-values for LSTM 2.
| Training-testing partition | MLP | LSTM 1 | |||
|---|---|---|---|---|---|
|
| Significance |
| Significance | ||
| LSTM 2 | 50–50 | 2.72 × 10−11 | Highly significant | 1.19 × 10−9 | Highly significant |
| 60–40 | 2.54 × 10−11 | Highly significant | 1.76 × 10−9 | Highly significant | |
| 70–30 | 2.37 × 10−11 | Highly significant | 2.25 × 10−9 | Highly significant | |
| 10-fold cross validation | 3.02 × 10−11 | Highly significant | 1.13 × 10−9 | Highly significant | |
Comparison of stress classification accuracies.
| Reference | Number of subjects | Number of electrodes | Levels of stress | Stimulus | Classification method | Accuracy (%) |
|
| ||||||
| [ | 18 | 32 | 2 | Emotional video clips | Mean asymmetry scores | — |
| [ | 9 | 14 | 2 and 4 | SCWT | SVM | 85.17 (2 classes) |
| 67.06 (4 classes) | ||||||
| [ | 12 | 3 | 3 | SCWT | SVM | 72.3 |
| [ | 7 | 14 | 3 | Multitasking, SCWT | SVM | 77.53 |
| Arithmetic calculations and memory | ||||||
| [ | 28 | 4 | 2 and 3 | Public speaking | MLP | 92.85 (2 classes) |
| 64.28 (3 classes) | ||||||
| [ | 10 | 1 | 2 | SCWT | SVM | 97.6 |
| [ | 9 | 14 | 2 | High and low altitude | FC-DNN | 86.62 |
| Construction site | ||||||
| Proposed | 35 | 4 | 2 | Emotional video clips | LSTM 21 | 87.22 |
| Proposed | 35 | 4 | 2 | Emotional video clips | LSTM 22 | 89.28 |
| Proposed | 35 | 4 | 2 | Emotional video clips | LSTM 23 | 90.33 |
| Proposed | 35 | 4 | 2 | Emotional video clips | LSTM 24 | 93.17 |
1Result for 50–50 training-testing data, 2result for 60–40 training-testing data, 3result for 70–30 training-testing data, and 4result for 10-fold cross validation.