Paper Id 107
Paper Id 107
net/publication/376244663
CITATIONS READS
6 92
2 authors, including:
Mohammad Sakib
University of Liberal Arts Bangladesh
14 PUBLICATIONS 20 CITATIONS
SEE PROFILE
All content following this page was uploaded by Mohammad Sakib on 01 January 2024.
Abstract—Advancements in wearable sensor technologies have and immediate remedies to alleviate stress and enhance overall
revolutionized healthcare, particularly in nurses stress level mental well-being [2]. Nurses' stress level detection involves
detection using accelerometer-based data. Accurate detection of the utilization of cutting-edge technology, encompassing smart
nurse stress throughout a day holds significant potential to
enhance healthcare outcomes and optimize nursing workflows. devices and advanced algorithms, to continuously monitor and
However, existing research in this domain has been limited by evaluate the physiological and behavioral metrics while
small data-sets and short sampling duration’s, leading to performing their professional duties [3].
constrained generalizability. To address these limitations
comprehensively, this paper presents a data on nurses’ mental The primary aim is to identify and detect signs of stress
health in a practical setting are gathered using a wearable during their duties. Recent studies have found a strong
accelerometer sensor. To record the physiological and behavioral relationship between a person’s physical and mental health
traits of the nurses, a single triaxial accelerometer is mounted on during the previous two decades. A cohort of assiduous
their heads. Multiple machine learning methods, such as Nearest
Neighbor Classifiers (k-NN), Neural Networks (NN), Support
researchers undertook a comprehensive meta-analysis of varied
Vector Machines (SVM), Naive Bayes (NB), Discriminant Analysis studies aimed at evaluating stress levels in the human
(DA), Decision Trees (DT), and Ensemble Classifiers, were used to population. Stress constitutes a significant concern within
assess and compare the accuracy of nurses’ stress levels. The contemporary society. The timely detection of stress is
Medium Gaussian-SVM study showed the best average paramount as it curtails deleterious effects and precludes its
performance of 80.4% and mean efficacy F-measure of 80.2%
across all cases. whereas the Coarse Gaussian-SVM evaluation deep-seated manifestation. Presently, a surge in interest
exhibited the lowest mean performance of 26.5%, accompanied by surrounds the development of automated approaches,
a mean F-measure of 26.1%. On a scale of 1–7, a questionnaire leveraging smart devices and computer algorithms, to discern
evaluated privacy issues. The results show our method’s potential stress [4]. The potential applications of such automated stress
for accurately determining nurses’ levels of stress, making it detection systems span diverse environments, including
helpful for implementation in the future.
nursing, workplaces, individuals coping with air travel phobias,
Keywords—Nurses Stress Detection, Accelerometer-Based
Data, Machine Learning, Wearable Sensor, Classification motorcycle riding, and vehicular operation.
Algorithm, Healthcare Outcomes, Better Manage Heath The main goal of the proposed study is to automatically
assess nurses’ stress levels using data from wearable single 3D
I. INTRODUCTION accelerometer sensors collected during their activities. This
In the contemporary era, the global problem of stress is on discernment holds the potential to significantly contribute to
the rise, notably affecting nurses who grapple with elevated stress management and proactively prevent stress-induced
workload and occupational stress, further contributing to the ailments, thus serving as a valuable safeguard. Furthermore,
worldwide scarcity of nursing professionals. Regrettably, no this study is expected to stimulate and inspire further
prior research has been undertaken to gauge the extent of exploration by researchers in this domain. In the ensuing
workload and occupational stress among nurses in Dhaka, segment of the investigation, relevant antecedent research is
Bangladesh [1]. Stress, in its negative form, can adversely cited. To accomplish the goals of this endeavor, a series of
impact a person’s life and well-being. However, when stress is systematic measures were pursued. These entailed acquiring a
constructive and manageable, it can encourage innovation and comprehensive comprehension of the dataset framework,
help people come up with responses to common problems. painstakingly purifying and transforming the data to conform
Although eradicating stress entirely may prove challenging, with machine learning classification methodologies, and
mastering the monitoring and regulation of its physical and methodically scrutinizing, constructing, and juxtaposing
emotional repercussions holds paramount importance. In light diverse classification models. In a related study conducted by
of this, the provision of additional mental health counselling Qian Zhang et al. [5], real-time stress monitoring models were
and support programs becomes imperative, offering practical employed, focusing on physiological attributes and targeting
்ା்ே
Accuracy = (1)
்ା்ேାிାிே
Fig. 3. Participants’ accelerometer sensor system’s 3-axes of raw data signals ்
were collected
Sensitivity = (2)
்ே
of Absolute (MMAV), Ratio of Mean to RMS (RMER), Specificity = (3)
ே
Spectrum energy (SE), Slope sign changes, Number of peaks, ்
Precision = (4)
Waveform Length (WL), Average peaks range, Entropy of ்ାி
்
Spectrum (ES), Number of zero crossings, and Entropy [15]. Recall = (5)
்ାிே
Consequently, a total of 39 features were extracted from the ଶൈ௦ൈோ
accelerometer data of each participant, encompassing 13 F1 Score = (6)
௦ାோ
features from each axis. These features facilitated a
comprehensive analysis of stress patterns among the The confusion matrix is a fundamental metric for assessing
participants, leading to valuable insights and potential stress- model accuracy, comprising key values such as P (positive), N
reduction strategies. The inclusion of abundant accelerometer (negative), TP (true positives), TN (true negatives), FP (false
data from multiple axes enabled a detailed assessment of stress- positives), and FN (false negatives) [18]. In equations 1, 2, 3,
related behaviors and movements. 4, 5, and 6 P represents instances belonging to the positive
class, which the model aims to correctly detect. TP corresponds
D. Classification Algorithm to the count of positive class instances correctly identified by
Seven machine learning algorithms were used in this study, the model, while FP represents the cases where positive results
including K-NN, NN, SVM, NB, DA, DT, and Ensemble were falsely predicted. As opposed to P & TP, which allude to the
Classifiers. The effectiveness of each approach was evaluated. positive class, N & TN speak of the negative class. A fraction of the
Three classes—low stress, medium stress, and high stress—are model's performance may be used to construct Equation (1), which
represented by the labels 1, 2, and 3, respectively, in the dataset represents the model's accuracy [19]. However, accuracy isn't
utilized for the analysis. Twenty-nine classification models always enough to assess a model's effectiveness in its entirety.
based on the seven machine learning techniques were assessed Furthermore, the metrics of sensitivity, specificity, precision, and
to distinguish between these epochs. K-NN is a classification recall are commonly utilized measures. Equation (2) derives its
and regression algorithm that assigns labels to data points based score based on the proportion of accurate positive predictions,
on the most common class among their k-nearest neighbors. which is founded upon the total number of positive predictions.
Neural networks, inspired by the brain, consist of connected On the other hand, equation (3) defines the actual negative
nodes for tasks like pattern recognition. Naive Bayes is a prediction rate by dividing the true negative predictions by the
probabilistic algorithm assuming feature independence given total number of negative predictions. A high rate of prediction
class labels; it's used for text classification. The DA classifier is implied by precision. It is a percentage of all true positives in
separates classes by optimizing class differences and the model that are associated with all demanded positives. The
minimizing variance. Decision trees (DT), shown as branches rate of precision is seen in equation (4). The recall, also known
and nodes, are widely used for classification and regression. as the TP value, compares the precise total of positives in the
[26]. SVM is a supervised learning technique, produced the information to the total positives in the system states. The recall
best results for the classification problem out of all of these rate is represented by equation (5). The F1 evaluation, that is
methods. Due to the fact that SVM uses the ideal hyperplane to produced by the weighted average of the model's recall and
operate, it is very effective in high-dimensional spaces. SVM precision and is defined in equation (6) [20], is another useful
demonstrated strong generalization and speed when applied to metric for evaluating a model's performance.
the 2-dimensional data with dataset classes, making it a useful
method for this classification employment [16]. The IV. RESULT AND DISCUSSION
classification model in this work was trained using the
MATLAB 2023a Classification Learner tool from MathWorks To put the suggested framework into execution, we used a
Inc. The 10-fold and Leave- One-Subject-Out (LOSO) cross- dataset from 12 subjects in this study with a sampling rate of
validation approach was used to assess the performance of each 100Hz. Utilizing the LOSO approach, the dataset was split
classification model [17]. The LOSO cross-validation method between training and testing datasets. Table II displays the
involves iteratively training models using data from all subjects average results for accuracy, sensitivity, specificity, precision,
TABLE II
THE PERFORMANCE OF THE THREE-CLASS CLASSIFICATION TASK
recall, and F-score based on the data separately gathered from data training process. The CG-SVM’s comparable training
each of the 12 participants. Out of all the classifiers used, the accuracy was measured at 94.1%.
Coarse Gaussian-SVM classifier had the lowest accuracy, as During testing, the MG-SVM model was evaluated using
shown in Table II. Using the table to compare each classifier’s 761 (1 subject) epochs, and the result were presented in Table
performance, it is obvious that the Medium Gaussian-SVM V as a confusion matrix for all subjects. For the low stress class,
outperformed all other machine learning models. the model accurately classified 280 positive class epochs as true
The classification results for all subjects were presented in positives (TP), and (10 + 6 = 16) false negative class epochs
Table III. The MG-SVM model achieved promising performance (FN) and (3 + 8 = 11) false positive class epochs (FP) were
for all classes. The training phase of MG-SVM model was observed. Additionally, (245 + 4 + 205 = 454) the model
evaluated using 8314 (11 subjects) epochs. For the low stress correctly identified true negative class epochs as negative class
class, the model accurately classified 3081 positive class instances (TN). For the medium stress class, the model
epochs as true positives (TP), and (34 + 24 = 58) false negative achieved 245TP7FN, 10FP, and 499TN. Regarding the high
class epochs (FN) and (12 + 29 = 41) false positive class epochs stress class, the model obtained 205TP, 8FN, 10FP, and 538TN.
(FP) were observed. Additionally, (2918 + 9 + 2207 = 5134) the The MG-SVM achieved a testing accuracy of 80.4%, indicating
model correctly identified true negative class epochs as relatively good performance during testing. The confusion
negative class instances (TN). Similarly, for the medium stress matrix in Table V provides a comprehensive overview of the
class, the model achieved 2918TP, 21FN, 34FP, and 5341TN. model’s performance for all subjects during testing,
For the high stress class, the model attained 2207TP, 29FN, demonstrating a high number of correctly classified epochs
33FP, and 5341TN. The MG-SVM model demonstrated high with only a relatively small number of misclassifications.
training accuracy of 98.7%, indicating effective performance Conversely, Table VI presents the confusion matrix of CG-
during training [21]. However, in contrast, Table IV displays SVM, showcasing the lowest accuracy attained during the data
the confusion matrix of CG-SVM, which attained the lowest testing phase. The corresponding testing accuracy obtained by
accuracy compared to the other evaluated methods during the CG-SVM was measured at 26.5%.