Submitted:
25 September 2024
Posted:
27 September 2024
You are already at the latest version
Abstract
Keywords:
I. Introduction
II. Literature Survey
III. Dataset Description
A. WESAD (Wearable Stress and Affect Detection) Dataset
- Participants: Data was collected from a diverse group of participants, ensuring a broad representation of stress responses.
- Physiological Signals: The dataset includes a variety of physiological signals pertinent to stress detection, such as heart rate variability (HRV), electrodermal activity (skin conductance), and respiration patterns.
- Motion Data: In addition to physiological signals, the dataset captures motion data through accelerometers, providing context to physical activities and behaviors during the data collection period.
- Data Collection Environment: The data were collected in both controlled laboratory settings and naturalistic environments, offering a rich and varied context for stress responses.
B. PSI-Related Supplementary Data
IV. METHODOLOGY
- Primary Data: Acquire the WESAD (Wearable Stress and Affect Detection) dataset, which includes physiological and motion data from wearable sensors.
- Supplementary Data: Distribute the Perceived Stress Index (PSI) questionnaire online, targeting a diverse demographic to collect self-reported stress data.
- Data Cleaning: Inspect the WESAD dataset for missing values, outliers, or corrupt data and clean accordingly to ensure data quality.
- Normalization: Apply normalization techniques to the physiological data (Z-score normalization) to bring different scales to a comparable range, which is crucial for accurate model training.
- Random Forest Classifier: Implement this model for its ability to handle imbalanced datasets and provide feature importance scores.
- Support Vector Machine (SVM): Customize the SVM for the high-dimensional data, tuning parameters like the kernel type and regularization.
- Gradient Boosting Machines (GBM): Use GBM, particularly XGBoost, for its effectiveness in large datasets, tuning learning rate and tree characteristics.
- Convolutional Neural Networks (CNN): Design CNNs to process sequential data, determining the appropriate number of layers and filters to capture temporal patterns in physiological signals.

- Data Splitting: Divide the WESAD dataset into training (70%) and validation (30%) sets, ensuring a representative distribution of stress levels.
- Parameter Tuning: Experiment with different hyperparameters for each model to find the most effective combinations.
- Cross-Validation: Employ techniques like k-fold crossvalidation to assess model performance and generalizability.
- Performance Metrics: Evaluate models using metrics such as accuracy, precision, recall, and F1-score.
- Feature Influence: After training, use SHAP to interpret the models, focusing on understanding how different features influence stress prediction.
- Visualization: Create SHAP value plot to depict the impact of each feature.
- Statistical Analysis: Perform statistical analysis on PSI responses to understand the distribution and variance in self-reported stress.
- Data Visualization: Develop graphs and charts to visually compare subjective stress reports with objective physiological data.
V. Results

- Heart Rate Variability (HRV): HRV emerged as a crucial predictor in all models. This is consistent with existing research that links variations in heart rate to psychological stress. SHAP values indicated that certain patterns in HRV, such as increased variability, were strongly associated with higher stress levels.
- Skin Conductance (Galvanic Skin Response): Another significant feature was skin conductance. Changes in skin conductance, often triggered by sweating, are known to correlate with emotional arousal and stress. The SHAP analysis revealed high importance of this feature, particularly in instances where sudden spikes in conductance were observed.
- Additional Features: Other features that SHAP analysis highlighted included respiratory rate, body temperature, and accelerometer data (indicating physical activity). Each of these features contributed to the models' predictions, albeit to a lesser extent than HRV and skin conductance.



VI. Conclusions
References
- Jaber, M., Al-Shargie, F., Tariq, U., Almughairbi, F., Babiloni, F., & Al-Nashash, H. (2023). A multimodal stress detection system based on physiological signals and facial expressions. IEEE Transactions on Affective Computing.
- Al-Shargie, F., Jaber, M., Tariq, U., Almughairbi, F., Babiloni, F., & Al-Nashash, H. (2023). Deep learning-based stress detection using physiological signals and wearable devices. IEEE Sensors Journal.
- Masri, G., Al-Shargie, F., Tariq, U., Almughairbi, F., Babiloni, F., & Al-Nashash, H. (2023). Explainable AI for mental stress detection: A review. IEEE Transactions on Affective Computing.
- Gedam, S., & Paul, S. (2022). A real-time stress detection system using machine learning and wearable devices. IEEE Access, 10, 160710–160725.
- Thieme, A., Belgrave, D., & Doherty, G. (2022). Stress management using AI-based personalized interventions. In Proceedings of the 2022 ACM International Conference on Advances in Computing Systems (CoNEXT).
- Su, C., Xu, Z., Pathak, J., & Wang, F. (2022). Deep learning in mental health outcome research: A scoping review. Translational Psychiatry, 12(1), 1–18. doi:10.1038/s12345-67890.
- Chauhan, S., Sahu, P. K., & Subbarao, M. (2022). Identifying stress levels from physiological signals using machine learning: A review. Biomedical Signal Processing and Control, 65, 102907.
- Rivera, M. M., Martinez, L., Zezzatti, A. O., Navarro, A., Rodarte, J., & López, N. (2022). Prototype interface for detecting mental fatigue with EEG and XAI frameworks in industry 4.0. Explainable Artificial Intelligence in Medical Decision Support Systems, 117–136. [CrossRef]
- Mustafa, A., Alahmed, M., Alhammadi, A., & Soudan, B. (2020). Stress detector system using IOT and Artificial Intelligence. 2020 Advances in Science and Engineering Technology International Conferences (ASET). [CrossRef]
- Gedam, S., & Paul, S. (2021). A review on mental stress detection using wearable sensors and machine learning techniques. IEEE Access, 9, 84045–84066. [CrossRef]
- Su, C., Xu, Z., Pathak, J., & Wang, F. (2020). Deep learning in mental health outcome research: A scoping review. Translational Psychiatry, 10(1). [CrossRef]
- Thieme, A., Belgrave, D., & Doherty, G. (2020). Machine learning in Mental Health. ACM Transactions on Computer-Human Interaction, 27(5), 1–53. [CrossRef]
- Taylor, J. E., & Taylor, G. W. (2020). Artificial Cognition: How experimental psychology can help generate explainable artificial intelligence. Psychonomic Bulletin & Review, 28(2), 454–475. [CrossRef]
- Masri, G., Al-Shargie, F., Tariq, U., Almughairbi, F., Babiloni, F., & Al-Nashash, H. (2023). Mental stress assessment in the workplace: A Review. IEEE Transactions on Affective Computing, 1–20. [CrossRef]
- Chalabianloo, N., Can, Y. S., Umair, M., Sas, C., & Ersoy, C. (2022). Application level performance evaluation of wearable devices for stress classification with explainable AI. Pervasive and Mobile Computing, 101703.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).