| Literature DB >> 34883806 |
Konstantinos Tzevelekakis1, Zinovia Stefanidi1, George Margetis1.
Abstract
Human stress is intricately linked with mental processes such as decision making. Public protection practitioners, including Law Enforcement Agents (LEAs), are forced to make difficult decisions during high-pressure operations, under strenuous circumstances. In this respect, systems and applications that assist such practitioners to take decisions, are increasingly incorporating user stress level information for their development, adaptation, and evaluation. To that end, our goal is to accurately detect and classify the level of acute, short-term stress, in real time, for the development of personalized, context-aware solutions for LEAs. Deep Neural Networks (DNNs), and in particular Convolutional Neural Networks (CNNs), have been gaining traction in the field of stress analysis, exhibiting promising results. Furthermore, the electrocardiogram (ECG) signals, have also been widely adopted for estimating levels of stress. In this work, we propose two CNN architectures for the stress detection and 3-level (low, moderate, high) stress classification tasks, using ultra short-term raw ECG signals (3 s). One architecture is simple and with a low memory footprint, suitable for running in wearable edge-computing nodes, and the other is able to learn more complex features, having more trainable parameters. The models were trained on the two publicly available stress classification datasets, after applying pre-processing techniques, such as data pruning, down-sampling, and data augmentation, using a sliding window approach. After hyperparameter tuning, using 4-fold cross-validation, the evaluation on the test set demonstrated state-of-the-art accuracy both on the 3- and 2-level stress classification task using the DriveDB dataset, reporting an accuracy of 83.55% and 98.77% respectively.Entities:
Keywords: ECG signal; convolutional neural network; real time; sliding window; stress assessment
Mesh:
Year: 2021 PMID: 34883806 PMCID: PMC8659908 DOI: 10.3390/s21237802
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1ECG signal period.
Figure 2DriveDB driving event segments and peaks of the marker signal, created using a respiration sensor.
DriveDB observations and errors.
| Subject | Used in This Work | Comments/Observations |
|---|---|---|
| drive01 | NO | No marker signal is provided. |
| drive02 | NO | The marker signal has more than 8 peaks. |
| drive03 | NO | No marker signal is provided. |
| drive04 | NO | The peaks of the marker signal are not distinguishable. |
| drive05 | PARTIALLY | We discarded the first two events(invalid signal values). |
| drive06 | YES | N/A |
| drive07 | YES | N/A |
| drive08 | YES | N/A |
| drive09 | NO | The marker signal has less than 8 peaks. |
| drive10 | YES | N/A |
| drive11 | YES | N/A |
| drive12 | NO | Missing ECG signal data. |
| drive13 | YES | N/A |
| drive14 | YES | N/A |
| drive15 | YES | N/A |
| drive16 | NO | The marker signal has less than 8 peaks. |
| drive17 | NO | Was not used because it is split in two parts. |
DriveDB driver events and corresponding annotations for 2 and 3 classes of stress.
| Classes | Initial Rest | City1 | Hwy1 | City2 | Hwy2 | City3 | Final Rest |
|---|---|---|---|---|---|---|---|
| 2 | NO | YES | YES | YES | YES | YES | NO |
| 3 | LOW | HIGH | MODERATE | HIGH | MODERATE | HIGH | LOW |
Number of samples per dataset, using a window size of 3 s.
| Dataset | Low | Moderate | High | Total |
|---|---|---|---|---|
| DriveDB | 1800 (29.51%) | 1700 (27.87%) | 2600 (42.62%) | 6100 |
| Arachnophobia | 5507 (23.67%) | 8882 (38.17%) | 8881 (38.17%) | 23270 |
Figure 3Sliding window dataset augmentation.
Figure 4VGG inspired stress level analysis architecture.
Figure 5Single 1D CNN stress level analysis architecture.
Models’ cross-validation accuracy using different configurations.
| Frequency (Hz) | SW | Classes | VGG Inspired | Single 1D CNN |
|---|---|---|---|---|
| 100 | No | 2 | 0.939 ± 0.024 | 0.950 ± 0.012 |
| 100 | No | 3 | 0.764 ± 0.043 | 0.803 ± 0.009 |
| 100 | Yes | 2 | 0.963 ± 0.024 | 0.959 ± 0.018 |
| 100 | Yes | 3 | 0.804 ± 0.006 | 0.823 ± 0.008 |
| 496 | No | 2 | 0.972 ± 0.009 | 0.943 ± 0.019 |
| 496 | No | 3 | 0.802 ± 0.022 | 0.796 ± 0.023 |
| 496 | Yes | 2 |
| 0.960 ± 0.008 |
| 496 | Yes | 3 | 0.822 ± 0.029 |
|
Test set accuracy for each stress-classification task and architecture.
| Classes | VGG Inspired | Single 1D CNN |
|---|---|---|
| 2 | 98.77% | 95.66% |
| 3 | 83.09% | 83.55% |
Figure 6The confusion matrix of the best model for the stress detection task (VGG inspired architecture).
Figure 7The confusion matrix of the best model for the 3-level stress classification task (single 1D CNN architecture).
Number of samples per class in test set of best models.
| Class | Samples | Percentage |
|---|---|---|
| LOW | 460 | 30.26% |
| MODERATE | 340 | 22.37% |
| HIGH | 720 | 47.37% |
Stress classification task with 3 stress labels (low, moderate, high).
| Models | DeepERNet | DeepECGNet | Single 1D Conv. | VGG Insp. |
|---|---|---|---|---|
| Accuracy (%) | 83.0 | 75.0 | 83.55 | 83.09 |
| Window | 24,800 | 24,800 | 1488 | 1488 |
| Frequency (Hz) | 496 | 496 | 496 | 496 |
| Time (sec) | 50 | 50 | 3 | 3 |
| Augmentation | no | no | yes | yes |
| Signals | ECG & RSP | ECG | ECG | ECG |
For DeepERNet refer to [33] and for DeepECGNet refer to [32].
Stress classification using heart related features.
| Method | Accuracy (%) | Method | Data | Window Size | Classes |
|---|---|---|---|---|---|
| VGG insp. | 98.77 | CNN | ECG | 3 s | 2 |
| [ | 98.69 | CNN | HRF | 10 s | 2 |
| [ | 98.3 | CNN-LSTM | ECG | - | 2 |
| [ | 95.67 | CNN | HR and other | 30 s | 2 |
| [ | 90.19 | CNN | ECG | 10 s | 2 |
| [ | 89.8 | CNN | ECG | 60 s | 2 |
| [ | 87.39 | CNN-RNN | ECG | 10 s | 2 |
| [ | 83.9 | CNN | ECG and RSP | 50 s | 2 |
| [ | 82.7 | CNN | ECG | 10 s | 2 |
| [ | 92.8 | CNN-LSTM | ECG and other | 5 s | 3 |
| [ | 92.8 | CNN | ECG | 25 s | 3 |
| [ | 86.5 | CNN-BiLSTM | ECG | 10 s | 3 |
| single 1D Conv. | 83.55 | CNN | ECG | 3 s | 3 |
| [ | 83.0 | CNN | ECG and RSP | 50 s | 3 |
| [ | 85.45 | CNN | ECG | 30 s | 5 |