Gedam Shruti, Dutta Sandip, Jha Ritesh
Department of Computer Science and Engineering, Birla Institute of Technology (BIT), Mesra, Ranchi, Jharkhand, India.
Sci Rep. 2025 Jul 1;15(1):20610. doi: 10.1038/s41598-025-06918-6.
Mental stress is a prevalent issue in modern society, and detecting and classifying it accurately is crucial for effective interventions and treatment plans. This study aims to compare various machine learning (ML) algorithms for detecting mental stress using wearable physiological signal data and proposes a novel model that is automatic, high-performing, low-cost, and with lower time and computation complexity. The proposed model was trained and tested on a dataset of 200 participants, which involves applying four different stressors. Nine ML algorithms were investigated for both multivariate and univariate features. The physiological data was collected using a novel device developed using an Arduino microcontroller and low-cost sensors such as ECG, GSR, and ST sensors. The findings reveal that the suggested model detects mental stress with an accuracy of 96.17%, with the XGBoost method outperforming other algorithms in multivariate analysis. Univariate feature analysis found that XGBoost regularly demonstrated good accuracy, showing its dependability for detecting mental stress. The novel device created using low-cost sensors and automatic, high-performing algorithms is an effective and accessible tool for mental stress detection. Additionally, benchmark dataset validation (SWELL-KW, WESAD) confirmed the model's robustness with accuracies of 92.38% and 94.21% respectively. A real-time pilot test on ten new participants utilizing the developed device validated the model's practical value, with 97.5% classification accuracy and low latency. This study provides insights into the most effective ML algorithms for mental stress detection and creates a comprehensive and reliable resource for future research.
心理压力是现代社会中普遍存在的问题,准确检测和分类心理压力对于有效的干预措施和治疗方案至关重要。本研究旨在比较各种机器学习(ML)算法,以利用可穿戴生理信号数据检测心理压力,并提出一种新颖的模型,该模型具有自动、高性能、低成本以及较低的时间和计算复杂度。所提出的模型在一个包含200名参与者的数据集上进行了训练和测试,该数据集涉及应用四种不同的压力源。针对多变量和单变量特征研究了九种ML算法。生理数据是使用一种基于Arduino微控制器和低成本传感器(如心电图、皮肤电反应和ST传感器)开发的新型设备收集的。研究结果表明,所建议的模型检测心理压力的准确率为96.17%,在多变量分析中,XGBoost方法优于其他算法。单变量特征分析发现,XGBoost通常表现出良好的准确率,表明其在检测心理压力方面的可靠性。使用低成本传感器和自动、高性能算法创建的新型设备是一种用于心理压力检测的有效且易于使用的工具。此外,基准数据集验证(SWELL-KW、WESAD)分别以92.38%和94.21%的准确率证实了该模型的稳健性。对十名新参与者使用所开发设备进行的实时试点测试验证了该模型的实用价值,分类准确率为97.5%且延迟较低。本研究为心理压力检测最有效的ML算法提供了见解,并为未来研究创建了一个全面且可靠的资源。