Next Article in Journal
Amortization Transformer for Brain Effective Connectivity Estimation from fMRI Data
Previous Article in Journal
Music Therapy for Gait and Speech Deficits in Parkinson’s Disease: A Mini-Review
Previous Article in Special Issue
Analysis of IoT Security Challenges and Its Solutions Using Artificial Intelligence
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Attention Aware Deep Learning Approaches for an Efficient Stress Classification Model

1
Faculty of Computing, The Islamia University of Bahawalpur, Punjab, Pakistan
2
Department and College of Computer Science, King Khalid University, Abha 62529, Saudi Arabia
3
Faculty of Computer Science and Information Technology, Universiti Tun Hussein Onn Malaysia, Batu Pahat 86400, Johor, Malaysia
*
Author to whom correspondence should be addressed.
Brain Sci. 2023, 13(7), 994; https://doi.org/10.3390/brainsci13070994
Submission received: 28 May 2023 / Revised: 20 June 2023 / Accepted: 23 June 2023 / Published: 25 June 2023
(This article belongs to the Special Issue Intelligent Neural Systems for Solving Real Problems)

Abstract

:
In today’s world, stress is a major factor for various diseases in modern societies which affects the day-to-day activities of human beings. The measurement of stress is a contributing factor for governments and societies that impacts the quality of daily lives. The strategy of stress monitoring systems requires an accurate stress classification technique which is identified via the reactions of the body to regulate itself to changes within the environment through mental and emotional responses. Therefore, this research proposed a novel deep learning approach for the stress classification system. In this paper, we presented an Enhanced Long Short-Term Memory(E-LSTM) based on the feature attention mechanism that focuses on determining and categorizing the stress polarity using sequential modeling and word-feature seizing. The proposed approach integrates pre-feature attention in E-LSTM to identify the complicated relationship and extract the keywords through an attention layer for stress classification. This research has been evaluated using a selected dataset accessed from the sixth Korea National Health and Nutrition Examination Survey conducted from 2013 to 2015 (KNHANES VI) to analyze health-related stress data. Statistical performance of the developed approach was analyzed based on the nine features of stress detection, and we compared the effectiveness of the developed approach with other different stress classification approaches. The experimental results shown that the developed approach obtained accuracy, precision, recall and a F1-score of 75.54%, 74.26%, 72.99% and 74.58%, respectively. The feature attention mechanism-based E-LSTM approach demonstrated superior performance in stress detection classification when compared to other classification methods including naïve Bayesian, SVM, deep belief network, and standard LSTM. The results of this study demonstrated the efficiency of the proposed approach in accurately classifying stress detection, particularly in stress monitoring systems where it is expected to be effective for stress prediction.

1. Introduction

In the last decades, many researchers have observed that there are inextricable links between the mental health of the individual and his/her physical condition [1]. Recently, it has become an important and embedded part of our professional life, especially in a severely competitive economy. Stress mostly occurs due to increased work pressure which might occur in any form [2]. There are several analyses have been conducted by different researchers to find the key source of increased stress levels [3]. In the workplace, an individual must constantly face different situations, including but not limited to job insecurity, work overload, lack of job satisfaction, and the pressure to stay up-to-date. Stress is a critical factor in modern societies. It is increasing issue and it has become an unavoidable part of our daily lives. The continued presence of stress can lead to some bad health effects, such as susceptibility to infections, high blood pressure, lack of sleep and cardiovascular disease. All of these conditions result in mental stress which has become a leading cause of several diseases. In addition, stress can be examined as s physiological and psychological response of the body to adverse environmental situations. Consequently, the effective and accurate detection of stress can lead to specific prevention and intervention strategies in personal healthcare [4,5]. Thus, it is crucial to identify and control stress at an early stage to prevent stress-related illnesses. Selye [6] introduced the terms “eustress” and “distress” to differentiate between positive and negative stress, respectively. Eustress arises from positive changes or demands that do not pose a problem for coping or adapting to new situations. It can assist us in achieving our goals and enhancing productivity [7].
Stress detection is generally evaluated subjectively and measured by surveys; so far, numerous studies have been conducted on the association between physical activity and lifestyle, although the majority have been constrained to certain categories and factors. [8]. Figure 1 presents the conceptual design of our research study on different aspects of stress. In this research, the significance of sleep, number of working hours, physical activity and heart rate with regard to stress levels are analyzed. Episodic stress occurs when stressful situations happen more commonly but intermittently. It is associated with a highly stressful and disorganized life [9]. Lastly, chronic stress, which is the most damaging, occurs when stressors are persistent and long-lasting, such as family issues, job strain, or poverty [7]. To prevent stress from reaching its highest level and to reduce associated risks [10], it is essential to identify and address it during its early phases, specifically when it is still in the form of acute or episodic stress.
In Europe, stress ranks as the second most prevalent lifestyle health issue, trailing behind musculoskeletal disorders which can sometimes manifest as stress symptoms [7,11]. The financial impact of lifestyle stress was significant in 2002, costing EU enterprises €20 billion [12]. Additionally, a considerable 22% of European workers experienced work-related stress in 2005 [13]. A recent survey indicates that 51% of European workers acknowledge the prevalence of stress in their workplaces, and work-related stress and psychosocial risks account for approximately 50–60% of all lost working days in European companies [11]. Similarly, South Korea is also recognized as a country with a high incidence of heart disease, ranking second in terms of total deaths [14]. Common risk aspects for developing coronary heart disease (CHD) include unhealthy habits such as physical inactivity, a poor diet, drinking, smoking, and stress [15,16].
Therefore, the majority of people have used different variables to develop an effective technique for evaluating an unspecified kind of stress. Stress classification and prediction approaches using machine learning techniques, such as naïve Bayes (NB) and support vector machine (SVM), have been studied to enhance their prediction or classification results [17,18]. Jawharali et al. [17] introduced a Fuzzy support vector machine to measure perceived stress through EOG (ElectroOculoGraphy) technique, which can accurately predict the stress level. This technique illustrates evaluation accuracy more accurately than others conventional techniques without EOG. Similarly, Sani et al. [18] suggested an approach for classifying stress patients using SVM along with redial kernel function to achieve 83.29% classification accuracy based on electroencephalography signal.
The utilization of medical IT in conjunction with machine learning technologies has significantly enhanced the accuracy of disease prediction. This is achieved through the creation of predictive models using disease-related learning data have played a crucial role in this advancement [19]. However, due to the complexity of the data being analyzed, the application of deep learning techniques becomes necessary [20,21]. Several studies have been applied in the field of cardiovascular disease, employing machine learning methods. For instance, Khateb and Montezer [22] proposed a heart disease risk prediction approach by employing the Dempster-Shafer evidence concept and manipulating a fuzzy evidential hybrid inference mechanism. Another study by Krishnaieh et al. [23] introduced a cardiovascular risk assessment model by utilizing fuzzy K-nearest neighbor (K-NN) classifiers to handle uncertainty associated with measured values. Nevertheless, there is a noticeable research gap when it comes to a prediction technique for domestic cardiovascular disease [24,25]. In recent times, there has been an increasing amount of attention paid to constructing prediction models based on big data and leveraging advancements in deep learning technology.
Moreover, Bobade et al. [26] referred to the various deep learning and machine learning approaches for stress monitoring systems on individuals utilizing multimodal datasets acquired from physiological and motion sensors, which can avoid detecting a person from different stress associated health issues. However, these approaches need complicated and stochastic processing of physiological signals, which is unsuitable for the development of big data prediction techniques and deep learning technologies.
Recently, stress classification approaches have been aided by artificial intelligence, and numerous statistical and machine learning techniques have been developed for stress data analysis in healthcare [27]. The Long Short-Term Memory (LSTM) model is a powerful learning model in deep learning methods, with advanced technology and excellent performance on sequential data [28]. It consists of a gated mechanism which controls the flow of information and employs supervised learning via the backpropagation algorithm. The LSTM is employed in several medical areas and is extensively applied in medical research because of its superior performance [29,30].
In this study, we investigated the useful functionality of the conventional LSTM for stress classification using stress-correlated physical activity and lifestyle data accessed from the 2013–2015 Korea National Health and Nutrition Examination Survey (KNHANES VI) database [31]. First, we studied whether the stress assessment was feasible by analyzing the stress-related physical activity and lifestyle data and dividing the persons between the ages of 18 to 75 years old into two groups: those who were frequently felt stressed and those who did not. Second, we investigated an E-LSTM-based method for classifying stress that was designed to incorporate features from physical activity and lifestyle data, which were deemed essential for accurate stress evaluation. Furthermore, in order to select the most informative features, our developed framework demonstrated further enhancement in the conventional LSTM design based on the feature-attention mechanism, namely Enhanced LSTM (E-LSTM) for stress classification. The primary goal of our study is to enhance the conventional LSTM structure in order to increase stress classification accuracy and reduce the information loss.

2. The Impact of Stress on Society and the Economy

Stress expresses the reactions of the human body and is increasing day by day in advanced societies [32]. Office stress is caused by a mismatch between job expectations and skills, as well as time pressure and heavy workloads. Family interrelated conflicts, disabilities, chronic injuries and mental difficulties are all examples of off-the-job stress factors. In Europe, stress is the second most serious work-related health issue [33,34]. According to the American Institute of Stress, the United States spends $300 billion annually on stress-related diseases, http://www.who.int/occupational_health/topics/stressatwp/en/ (accessed on 29 April 2020). EU companies spent 25 billion euros on work-related stress in 2013 [35]. According to a recent public survey [36], 51 percent of European employees are stressed at their respective workplaces. In the European business sector, it has been estimated that 50–60% of all missing workdays are due to work-related stress and psychosocial hazards [34].
A study conducted in 2015 utilized data from the National Health Interview Survey to assess various risk factors in the US population [37]. The analysis involved 28,993 data points, which were subjected to cluster analysis in order to examine the risk factors. In order to maintain accuracy, any data with missing values were excluded from the analysis. In 2016, Liu et al., conducted a study using the 2003–2004 National Health and Nutrition Survey (NHANES) and physical activity data. They addressed missing data resulting from device failure in accelerometer measurement by implementing various imputation techniques known as additive regression, bootstrapping, and predictive mean matching (ARBP). The researchers carefully selected the most precise ARBP approach, which was then analyzed as the final model [12]. Additionally, in 2017, Beaulieu Jones and Moore [38] explored electronic health records (EHRs) as a valuable source of patient status data, despite the presence of extensive missing data.
As previously mentioned, stress has a significant impact on human health. Emotional pain, muscle aches, tension, digestive tract problems, and hyper arousal are all potential signs of acute stress. Some of the minor side effects of physical situations may including heartburn, back pain, stomach ache, headaches, rapid heartbeat and elevated blood pressure. However, it has a greater negative impact on human physical health. It is a significant risk factor for hypertension, irritable bowel syndrome and coronary disease [39], generalized anxiety disorder, gastro oesophageal reflux disease [40], and depression (http://www.bmj.com/content/315/7107/530, accessed on 30 August 1997)).
Psychological reactions involve the amplification of powerful negative emotions, such as anger, anxiety, irritation, or depression [41]. These responses can heighten our emotional experiences, leading to heightened feelings of worry, frustration, and hostility, thereby affecting our relationships [42]. From a physiological standpoint, increased activity in the sympathetic nervous system (SNS) alters the body’s hormone levels and triggers reactions such as increased sweating, elevated heart rate, and muscle activation [43]. Breathing becomes more rapid, and blood pressure rises [44]. These physiological changes also affect speech characteristics due to alterations in the muscles that regulate the respiratory system and vocal tract. Additionally, there is a decrease in skin temperature, as well as in the temperature of hands and feet [45]. The Heart Rate Variability (HRV) also decreases as a result [46].
The economy is significantly impacted by these health issues, leading to absenteeism, staff turnover, and tardiness among employees. Stress has also given rise to a widespread phenomenon known as “presenteeism”, where employees are physically present at their workstations but are not fully productive [32]. According to estimates, the cost of absenteeism and presenteeism in Europe is expected to be 269 billion euros annually, with an additional 239 billion euros in productivity losses [35]. Given the long-term consequences of stress, it is advisable to detect symptoms early on to prevent further damage.
The authors [47,48] conducted a comparison of various classification models, including Decision Tree (DT), Naïve Bayes (NB), K-Nearest Neighbors (KNN), Neural Network (NN), and Support Vector Machine (SVM). The findings of these studies revealed that the SVM classifier exhibited the highest accuracy. However, Kim et al. (2015) achieved superior accuracy (69.51%) than SVM by utilizing Fuzzy Logic and Decision Tree techniques on the sixth Korea National Health and Nutrition Examination Survey (KNHANES) dataset. On the other hand, [49,50] introduced DNN-based models for predicting Coronary Heart Disease (CHD). Atkov et al. (2012) constructed ten distinct prediction models using various risk factors. These models consisted of two hidden layers with four neurons each, and they achieved an accuracy of 93% using data from 487 patients at Central Clinical Hospital No. 2, of Russian. Furthermore, in [49,50], the authors performed feature correlation analysis and connected the hidden layers of the DNN based on the correlation results. The DNN model, integrated with feature correlation analysis, attained an accuracy of 83.9% and an AUC score of 79.0% on the sixth KNHANES dataset.

3. Long Short-Term Memory

A Long Short-Term Memory (LSTM) network is a special variant of conventional RNN, initially introduced by Sepp Hochraiter and Schmidhubar in 1997 [51]. LSTM networks are used to incorporate with an inception module; they have gained popularity due to their capability to examine the temporal relationship time-series data. Recently, the LSTM model reported state-of-the-art performance in various fields including text classification, speech recognition, machine translation and time series prediction. The capability of the LSTM network lies in its ability to effectively learn long sequential data and to propagate errors through all its layers. The standard LSTM was developed to address two major drawbacks commonly found in existing RNNs, namely gradient vanishing and expansion. LSTM included a gated mechanism and memory blocks that control the flow of information with self-connections.
The architecture of the conventional LSTM which contains memory blocks shown in Figure 2. As illustrated in Figure 2, the LSTM block provides a gating mechanism, which consists the three gates: the i t , o t , and f t , which are the input, output, and forget gate of LSTM, respectively; c t refers to the memory cell state, a ˜ t is the candidate state computed by equation (4). x t , h t , and h t 1 are the input, final output of the LSTM. An update to the cell state vector is calculated as in Equation (5). It is noted that these gate signals contain the logistic nonlinearity, presented by the Sigm activation function, and their signals range is between 0 and 1.
In order to determine the hidden state ( h t ) of an LSTM, a computation involving Equation (2) is performed on the output gate o t . This computation is then multiplied by the cell state c t through the use of the tanh function in Equation (6). The weight matrix for the input is denoted by W x o , while the weight matrix for the hidden state is represented by U h o . Additionally, a bias term is included in the computation, which is indicated by b 0 . Finally, the sigmoid function is also utilized Sigm (x) = 1 1 + e x . The most important part of the LSTM structure is a ˜ t and c t . These functions retain the data for a long period. As a result, this mechanism supports the long-term dependencies. The mathematical equations of the LSTM memory block are summarized as follows:
i t = S i g m ( W x i x t + U h i h t 1 + b i )
o t = S i g m ( W x o x t + U h o h t 1 + b o )
f t = S i g m ( W x f x t + U h f h t 1 + b f )
a ˜ t = t a n h ( W x ȃ x t + U h ȃ h t 1 + b ȃ )
c t = f t x t 1 + i t   a ˜ t
h t = O t t a n h   ( c t )
All parameters of the LSTM network are presented in Equations (1)–(6); in terms of weights and bias executed during the learning procedure, those processes involved are Wi, Wo, Wf, Rm × p, Ui, Uo, Uf, Rm × m, bi, bo, bf, and R m × 1. ∗ denotes point-wise multiplication of two vectors. Here ‘tanh’ is an element-wise hyperbolic tangent activation function.

4. Materials and Methods

In this study, we demonstrated the proposed framework which included enhanced LSTM with the combination of feature attention mechanism. The research design of this study is demonstrated in Figure 3. From the KNHANES VI dataset, this study considered various stress-related features from physical activity and lifestyle data, including systolic blood pressure, sleep time, body mass index, smoking, and drinking. The variables that were considered important for stress evaluation were extracted using statistical analysis of the selected data.
The major contribution of the developed approach is the extraction of the most significant features into two key stages, such as pre-feature attention E-LSTM and post-feature attention E-LSTM. As a feature, the statistical analysis data was incorporated into the E-LSTM modeling. Furthermore, to evaluate the capability of the proposed E-LSTM approach, we compared the stress classification outcomes, achieved by employing the statistical analysis data with state-of-the-art techniques and the conventional LSTM model.

5. Enhanced LSTM

LSTM networks are an advanced variant of traditional RNN, which was first developed by German authors Sepp Hochraiter et al., in 1997 [51], which are also followed by the existing architecture of RNNs with minor modifications [52]. We have already described the conventional LSTM network with a gating mechanism, which is depicted in Figure 2. However, here we introduced the enhanced LSTM architecture with modified equations that support the development of learning capabilities. The computational process of enhanced LSTM is not the same as the standard ones. In our enhancement, we used the “peephole connections mechanism” which is one of the most well-known variations of the LSTM architecture. Figure 4 presents the enhanced architecture of LSTM with peepholes.
In this section, we applied an enhanced LSTM architecture, which allows the gate layers to look at the cell state and adapt the peephole connection mechanism that completely influences the gating mechanism referred as the following equations:
i t = φ ( W x i × [   C t 1 , h t 1 , x t ] + b i )
f t = φ ( W x f × [   C t 1 , h t 1 , x t ] + b f )
C ¯ t = t a n h ( W x c ¯ [ h t 1 , x t ] + b c ¯ )
C t = f t C t 1 + i t   C ¯ t
In these equations, the input of transition matrices presented by x t , the memory cell C t 1 , while ∗ referred the element-wise multiplication, h t 1 denotes the hidden state vector and φ shows the non-linearity sigmoid activation function. The output gate o t controls the current hidden state value h t using the system nonlinearity to the contents of the memory cell:
o t = φ ( W x o × [ C t , h t 1 , x t ] + b o )
h t = o t t a n h   ( C t )
In the next phases, the current time of the hidden state h t is employed to acquire h t + 1 . Moreover, long short-term memory computes the internal hidden state h t , of the word series sequentially at each time step. The final time step of hidden activations can be used as the input to the layer that classifies stress by providing a semantic representation of the whole sequence.

5.1. Sequential Mechanism by Pre-Feature Attention E-LSTM

In order to make full use of the unique sentiment resource information in the sentiment analysis tasks, this study utilizes both pre-feature attention and post-feature attention mechanisms incorporating with the E-LSTM model. Our methodology performs well on computing feature-level and sentence-level attention, which is employed to integrate information from both word and sentence proceeding through the pre-feature attention mechanism for stress identification. Usually, due to the longer length of the input series, it is a challenging task for the conventional LSTM model to extract significant features during the training process for stress prediction [53].
However, specific features perform an important role and contribute to building a model that can accurately classify data. Similarly, our feature attention method is a vital component of the improved E-LSTM architecture, which helps extract the most informative features from challenging stress-related reviews to classify emotions based on word-level presentation [54]. In addition, the LSTM utilizes a gating strategy to manage information flow within memory, while the two-state LSTM structure combines information from both preceding words within desirable contexts [55]. Furthermore, for accurate stress identification, the forward and backward sub-states are included in the pre-feature attention mechanism modeling.
The sub-states in the neural network are responsible for processing the input data. The forward sub-state captures the words in sequence from the start of the input layer to the end. Conversely, the backward sub-state performs computations in the reverse order, as the forward sub-state performs computations in the forward direction. Typically, during a time step t , the input feature x k , is used to initialize the forward and backward candidate states h t 1 and h t 1 , which are then used in the pre-feature attention E-LSTM. The previous and current states of the forward C t and backward C t sub-states are also considered in this process and are referred to as follows:
C ¯ t = t a n h ( W x ( C ¯ ) [ h t 1 , x t ] + b ( C ¯ ) )
C ¯ t = t a n h ( W x ( C ¯ ) [ h t 1 , x t ] + b ( C ¯ ) )
C ¯ = ƒ ( V [ C ¯ t   :   C ¯ t ] + k )

5.2. Feature Seizing by Attention Mechanism

After producing the final output by hidden state, we incorporated an attention mechanism into the feature-attention process to assist the architecture in identifying stress detection by focusing on valuable information at the word-feature level. Our proposed mechanism utilizes a detailed attention structure, which is depicted in Figure 5, while Figure 5 illustrates the distribution of attention generated at a specific time step o t k at k t h by the attention mechanism as follows:
o t k = e x p ( e t k ) i = 1 m e x p ( e t i )
where the score function for memory cell c t 1 at k t h at a specific time step e t k is denoted by k t h , and score function demonstrated by e t k :
e t k = [ c t 1 T h 1 ,   c t 1 T h 2 , , c t 1 T h m ]
where the pre-feature attention E-LSTM utilizes hk to represent its hidden unit. Subsequently, the score functions derived from it are employed by the post-feature attention LSTM. The resulting attention output is then obtained through this process as follows:
o t = k = 1 m o t k h k

5.3. Post-Feature Attention LSTM

In this mechanism, the proposed approach utilizes a feature attention mechanism to learn stress level information that is intentionally similar to human behavior. This is achieved through a post-feature attention E-LSTM, which is followed by a word-feature seizing mechanism. In the second phase of this approach, a post-feature attention E-LSTM is used to imitate the decoded function. This step involves extracting predicted features that have been generated by both the pre-feature attention E-LSTM and the attention mechanism layer. The major equation used in the post-feature attention E-LSTM is equivalent to that of a standard LSTM, as follows:
C ¯ t = t a n h ( W x C ¯ [ h t 1 , x t ] + b C ¯ )
The process of predicting stress levels in the KNHANES VI dataset involves transforming the output features vector of post-feature attention E-LSTM into a sentence representation through a dense layer, followed by the use of a sigmoid activation function for final classification into “Low stress” or “High stress” categories. The accuracy of the model is greatly impacted by the extraction and selection of features, which directly affects its performance. As a result, we developed a feature attention enhanced LSTM mechanism specifically for stress classification. The detailed architecture of this mechanism is depicted in Figure 6.

6. Experimental Design

This research simulations were conducted on a computer with an Intel “core-i7-3770CPU @ 3.40 GHz” processor and 8 GB of RAM, running on the Windows 10 operating system. Python 3.9 compiler and Anaconda were utilized as the development environment for data pre-processing and analysis, along with TensorFlow 1.14 and Keras 2.3 as the necessary libraries. Additionally, to optimize the developed mechanism, a brief description of the datasets and implementation hyperparameter settings were provided in the following subsections.

6.1. Dataset

This research examined the records of adults aged 18–75 from the dataset attained by the Health Questionnaire and Nutrition Survey conducted during the 2013–2015 KNHANES VI. In KNHANES VI (2013–2015), a set of domestic experiments were carried out to establish the correlation between physical activity, lifestyle, and stress. The survey responses were categorized into four stress groups to measure the stress levels of the participants. To determine stress classification, a set of variables, including age, gender, sleeping duration, pulse rate, body mass index (BMI), systolic and diastolic blood pressure (SBP and DBP), height, weight, smoking and drinking habits were utilized as input parameters for learning, while the output variables indicated whether the subjects were stressed or not. There was a total of 22,898 experimental records from KNHANES VI (2013–2015)”. There were 14,622 record totals, except the unknown (non-respondent, null value) respondents. There were 651 people who felt extremely stressed out of 14,619 records, and 2529 people who did not feel stressed. As a result, the insufficient number of people experiencing stress led to the labeling of two groups: the group with low levels of stress was categorized as such because they did not feel stressed, while the group with high levels of stress was labeled as such because they felt significantly stressed.

6.2. Deep Learning Environment

In this study, The E-LSTM model was developed using a Deep Learning (DL) environment based on the TensorFlow platform and Python for designing, training, and distributing neural networks. Hyperparameters within the DL platform are variables that play a crucial role in determining how a neural network learns through the use of Python syntax. The configuration of visible and hidden layers, along with their corresponding activation functions (such as tanh and sigmoid), can be declared and constructed using the multilayer-configuration object to optimize the learning process. Generally, the algorithmic complexity of an algorithm is typically expressed as O ( W ) , where W represents the estimated number of parameters in the network. The calculation of W commonly involves to considering two variables: the dimension of the input vector (m-dimension) and the dimension of the hidden layer (n-dimension). Table 1 provides the estimated parameter counts for various deep learning approaches, including NB, SVM, LSTM, DBN, Bi-LSTM, and our proposed E-LSTM.
In comparison to the traditional LSTM, our proposed E-LSTM has a higher inner complexity due to the involvement of a larger number of parameters. Consequently, the execution of E-LSTM requires more time and resources compared to conventional NB, SVM, DBN, and LSTM. However, when compared to the existing approach of Bi-LSTM, our proposed mechanism is less complex, resulting in reduced execution time. Importantly, our proposed feature attention mechanism has the capability to extract valuable information, leading to a significant enhancement in stress classification accuracy.

6.3. Hyperparameter Setting

In a deep learning study, the effectiveness of a deep learning model is typically dependent on various factors, including the quantity of hidden layers and nodes, as well as the selection of appropriate hyperparameters. In this study, we experimented with the number of layers, nodes and hyperparameters to develop an effective E-LSTM based model for stress classification. Our experiment utilized the Adam optimizer with default optimal parameter settings, including a learning rate of 0.0005 and a decay factor of 0.9. The application of deep learning-based methods allows for the acquisition of an understanding of intricate connections between inputs and outputs [56]. The term ‘learning rate’ refers to the amount of time it takes to change the value of a parameter, whereas ‘momentum’ refers to the ability to accelerate or decelerate parameter.
Additionally, in each training iteration we maintain a fixed batch size of 768, which presents the grouping of multiple input data. To mitigate the risk of overfitting, we have incorporated the dropout technique [57], with a dropout rate of 0.2 for the LSTM layer and L 2 regularization with 10 5 for the coefficient λr. ‘ L 2 regularization’ is a usually applied for normalization method to avoid the overfitting. Likewise, in this study, we employed binary cross-entropy as the loss function along with L 2 regularization, which is defined as follows:
J   ( w ,   b ) = 1 N i = 1 N [ y i · l o g y ^ i + ( 1 y i ) · l o g ( 1 y ^ i ) ]
where y i is the refer label; and classification probability is represented by y ^ i . We set w = 0.001, of Fresenius norm value by compressing L 2 , which is the coefficient for L 2 . In the training phase, it was observed that utilizing L 2 regularization and dropout techniques can enhance performance by preventing overfitting. The optimal values of hyperparameters that were utilized for training the proposed framework are presented in Table 2.

6.4. Evaluation Metrics

Various assessment measures have been employed to evaluate the efficacy of the developed model in predicting stress-related issues when compared to other approaches. These evaluation metrics included: accuracy, precision, recall, and F-measure.
A c c u r a c y = ( T P + T N ) ( T P + T N + F P + F N )
P r e c i s i o n = T P ( T P + F P   )
S e n s i t i v i t y = R e c a l l = T P ( T P + F N   )
F 1 S c o r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
where TP, TN, FP and FN are the True Positive, True Negative, False Positive and False Negative, respectively.

7. Results and Discussion

The experimental results provide a concise summary of the simulation outcomes obtained using the proposed E-LSTM approach, which is then compared to state-of-the-art approaches using “KNHANES VI (2013–2015) datasets. The results are then examined based on different evaluation metrics.

7.1. Statistical Analysis

Table 3 referred to the distribution of physical and lifestyle activities based on low- and high-stress categories for 1280 stress records. In this study, two kinds of tests were performed. A comparison was made between specific average age, sleep duration, pulse rate, DBP, SBP, weight, height, and BMI between high-stress and low-stress classes; a t-test was also conducted. Meanwhile, a Chi-square test was used to investigate the relationship among gender, smoking, drinking variables, and stress. Both the t-test and Chi-square test used a significance level of p < 0.05 to determine the suitable variables for classifying stress. There were nine variables identified as significantly associated with stress based on their p-value less than 0.05. These variables were gender, age, sleep duration, pulse rate, SBP, weight, height, drinking,” and smoking.
The classification ability was assessed using a confusion matrix, which served as a performance evaluation tool for the model. Specifically, in terms of accuracy, precision, sensitivity, and F1-score were calculated as depicted in Figure 7, while confusion matrix results are illustrated in Table 4. The matrix consisted of the classification results (low stress, high stress) of the test dataset related to stress levels.
Figure 8 presents the loss function graph of the proposed approach in the term of configuration; (A) configuration 1 and (B) configuration 2, for stress classification dataset. On the graph, the epoch is displayed on the x-axis while the loss is depicted on the y-axis. The loss function has been captured based on 100 and 150 epochs (the left side of Figure 8A contains 150 epochs and the right-side of Figure 8B contains 100 epochs). However, the proposed approach maintains their loss rate after 140 epochs in configuration 1, while in the configuration 2, the model maintains their loss rate between 13 and 37 iterations. The loss function is a mathematical expression that computes the difference between the real and predicted outputs.
In the experiment, the two model configurations were compared by adjusting different parameters and scaling the graph of the loss function accordingly. Analyzing the results, we observed that the model configuration 1 has the minimum loss value. Therefore, in the terms of loss function and accuracy, we considered configuration 1 as the most favorable model.

7.2. Accuracy and Comparison

In this study, we used physical activity and lifestyle data to classify stress based on enhanced LSTM. We executed the implementation of our proposed E-LSTM model using KNHANES VI (2013–2015) datasets with particular parameters. Model training was carried out using stochastic gradient descent through considered batch size.
In our work, we assessed the stress analysis performance of the proposed E-LSTM model with comparative approaches such as naïve Bayes (NB), support vector machine (SVM), deep belief network (DBN) and long short-term memory (LSTM). Our developed E-LSTM model achieved excellent performance in the term of accuracy. Figure 9 shows the evaluation results of the proposed model and state-of-the-art approaches using the KNHANES-VI dataset.

7.3. Model Performance in Terms of Precision, Recall and F1-Score

A thorough performance analysis was conducted on both the proposed and comparative models, which involved to evaluate their performance using various metrics such as precision, recall, and f-measure. Precision refers to the number of true positive observations that are correctly classified as complete positive instances. Recall measures the ability to accurately identify positive instances among all real class instances. To obtain the final values of precision and recall, we separately calculated these steps and take the ratio of all classes. Finally, f-measure was used to determine the test accuracy, which was computed using the test precision and recall.
In this section, Figure 10 and Figure 11 present the performance of the proposed E-LSTM model and comparison with exiting approaches using KNHANES VI dataset. These figures show that the proposed approach achieved higher classification accuracy than the existing approaches, due to the efficient pre-processing and effective classification using the feature attention mechanism.
Figure 12 illustrates the comparison results of the proposed model with state-of-the-art approaches in the terms of accuracy, precision, recall and F1-score. The proposed E-LSTM model obtained an accuracy of 75.54%, precision of 74.26%, recall of 72.99%, and F1-score of 74.58%. Conversely, the E-LSTM model has the advantage of saving time as it allows for the use of unlabeled training samples due to its supervised learning mechanism. As a result, the E-LSTM model performs better in terms of human labelling time.

7.4. Discussion

In this study, we explored the classification of daily life stress using Enhanced LSTM (E-LSTM) based on the feature attention mechanism that focuses on determining and categorizing the stress polarity using sequential modelling and word-feature seizing. The goal was to develop a model that could accurately predict the level of stress individuals experience in their day-to-day lives. The results of our experiments demonstrate the potential of E-LSTM models for stress classification and offer valuable insights into the factors influencing stress levels.
Our findings indicate that the E-LSTM approach can effectively capture the temporal dependencies present in daily life stress data. By considering the sequential nature of stress experiences, E-LSTM networks can learn patterns and relationships across time, which are crucial for accurate stress classification. This is particularly relevant in the context of stress, as stressors often occur in succession and can have cumulative effects. Furthermore, we investigated the useful functionality of the conventional LSTM for stress classification using stress-correlated physical activity and lifestyle data accessed from the 2013–2015 Korea National Health and Nutrition Examination Survey (KNHANES VI) database [31]. First, we studied the stress assessment was feasible by analyzing the stress related physical activity and lifestyle data and divide the persons between the ages of 18 to 75 years old into two groups: those who were frequently felt stressed and those who did not. This dataset (KNHANES-VI) consists of 14,620 experimental records. By analyzing the statistical data, we confirmed that our proposed E-LSTM model performed successfully on stress classification data.
We compared the performance of our developed enhanced (E-LSTM) approach with several baseline approaches, including naïve Bayes, support vector machine, long short-term memory, deep brief network and bidirectional LSTM. Our experimental results demonstrate that the proposed (E-LSTM) approach outperformed the baseline models in terms of stress classification accuracy. The LSTM model achieved accuracy, precision, recall and F1-scores of 75.54%, 74.26%, 72.99% and 74.58%, respectively. This improvement in accuracy highlights the efficacy of proposed approach for stress classification and their ability to capture the complex dynamics of stress experiences.
Moreover, in our proposed study, we explored some pros and cons of using the enhanced LSTM (E-LSTM) approach for daily life stress classification. Our findings shed light on the potential benefits and limitations of employing E-LSTM model. It is worth noting that our study has a few limitations. Firstly, in comparison to the traditional LSTM, our proposed E-LSTM has a higher inner complexity due to the involvement of a larger number of parameters. Consequently, the execution of E-LSTM requires more time and resources compared to conventional NB, SVM, DBN, and LSTM. However, when compared to the existing approach of Bi-LSTM, our proposed mechanism is less complex, resulting in reduced execution time. Importantly, our proposed feature attention mechanism has the capability to extract valuable information, leading to a significant enhancement in stress classification accuracy. Secondly, the stress classification model used in this study was unable to determine the degree of stress in the two subcategories of stress. Therefore, a more in-depth analysis of the degree of stress is required to design a more reliable stress classification system that can thoroughly examine the degree of stress.
In conclusion, our study demonstrates the effectiveness of E-LSTM approach for use in stress monitoring systems for stress prediction. The results highlight the ability of the E-LSTM model to capture temporal dependencies and learn patterns in stress data, leading to improved stress classification accuracy. The insights gained from feature importance analysis provide a better understanding of the factors influencing stress levels. Regarding the direction of future study, future research should focus on addressing the limitations of this study and further exploring the potential of E-LSTM models for stress classification in various real-world applications.

8. Conclusions and Future Scope

This paper has presented an effective stress classification model using a deep learning method by integrating the Enhanced LSTM (E-LSTM) model through a feature-attention mechanism. Our study involved the development of a new feature-attention mechanism that utilizes both pre- and post-feature attention layers to obtain more comprehensive feature representation. By implementing this mechanism, we were able to construct an efficient stress classification model that was evaluated using stress-related health data obtained from the KNHANES VI (2013–2015) dataset, consisting of 14,620 experimental records. By analyzing the statistical data, we confirmed that our proposed E-LSTM model performed successfully on stress classification data. The experimental results showed that the proposed feature-attention E-LSTM framework achieved excellent results with an accuracy of 75.54%, precision of 74.26%, and recall of 72.99%, respectively. The proposed E-LSTM model performed better than other state-of-the-art classification approaches, namely, naïve Bayes, SVM, deep belief network and LSTM. This research demonstrated the effectiveness of the proposed method in identifying stress detection, indicating its potential for use in stress monitoring systems for stress prediction.
However, there are some limitations that need to be acknowledged in this study. Specifically, the stress classification model used in this study was unable to determine the degree of stress in the two subcategories of stress. Therefore, a more in-depth analysis of the degree of stress is required to design a more reliable stress classification system that can thoroughly examine the degree of stress.

Author Contributions

Conceptualization, M.Z. and R.G.; methodology, M.Z.; software, R.S.; validation, O.A. and M.A.; formal analysis, R.G.; investigation, M.A.; resources, H.S.; data curation, M.Z.; writing—original draft preparation, M.Z.; writing—review and editing, M.Z.; visualization, M.A.; supervision, R.G.; project administration, R.S.; funding acquisition, H.S. All authors contributed equally to conceiving the study, analyzing the data, and writing this paper. All authors have read and agreed to the published version of the manuscript.

Funding

This research work supported by King Khalid University of Saudi Arabia under the grant number RGP2/412/44.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data is publicly available at Kaggle: https://www.kaggle.com/datasets/cdc/national-health-and-nutrition-examination-survey (accessed on 12 June 2022).

Acknowledgments

The authors extend their appreciation to the Deanship of Scientific Research at King Khalid University for funding this work through large group Research Project under grant number RGP2/412/44.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Picard, R.W. Automating the Recognition of Stress and Emotion: From Lab to Real-World Impact. IEEE MultiMedia 2016, 23, 3–7. [Google Scholar] [CrossRef]
  2. Lloyd, J.; Bond, F.W.; Flaxman, P.E. Work-related self-efficacy as a moderator of the impact of a worksite stress management training intervention: Intrinsic work motivation as a higher order condition of effect. J. Occup. Health Psychol. 2017, 22, 115–127. [Google Scholar] [CrossRef] [Green Version]
  3. Lawanot, W.; Inoue, M.; Yokemura, T.; Mongkolnam, P.; Nukoolkit, C. Daily Stress and Mood Recognition System Using Deep Learning and Fuzzy Clustering for Promoting Better Well-Being. In Proceedings of the 2019 IEEE International Conference on Consumer Electronics, Yilan, Taiwan, 20–22 May 2019. [Google Scholar] [CrossRef]
  4. Priya, A.; Garg, S.; Tigga, N.P. Predicting Anxiety, Depression and Stress in Modern Life using Machine Learning Algorithms. Procedia Comput. Sci. 2020, 167, 1258–1267. [Google Scholar] [CrossRef]
  5. Li, R.; Liu, Z. Stress detection using deep neural networks. BMC Med. Inform. Decis. Mak. 2020, 20, 1–10. [Google Scholar] [CrossRef]
  6. Colligan, T.W.; Higgins, E.M.; Msw, T.W.C. Msw Workplace Stress. J. Work. Behav. Health 2006, 21, 89–97. [Google Scholar] [CrossRef]
  7. Bakker, J.; Pechenizkiy, M.; Sidorova, N. What’s Your Current Stress Level? Detection of Stress Patterns from GSR Sensor Data. In Proceedings of the 2011 IEEE 11th International Conference on Data Mining Workshops, Vancouver, BC, Canada, 11 December 2011; pp. 573–580. [Google Scholar]
  8. Khadilkar, A.; Wang, J.; Rai, R. Deep learning–based stress prediction for bottom-up SLA 3D printing process. Int. J. Adv. Manuf. Technol. 2019, 102, 2555–2569. [Google Scholar] [CrossRef]
  9. Sharma, N.; Dhall, A.; Gedeon, T.; Goecke, R. Thermal spatio-temporal data for stress recognition. EURASIP J. Image Video Process. 2014, 2014, 28. [Google Scholar] [CrossRef] [Green Version]
  10. Stress, H.W.M. Campaign Guide: Managing Stress and Psychosocial Risks at Work; Osha, European Agency for Safety Health at Work: Bilbao, Spain, 2014; Available online: https://eprints.bbk.ac.uk/id/eprint/20923/ (accessed on 20 June 2022).
  11. Hassard, J.; Teoh, K.; Cox, T.; Cosmar, M.; Gründler, R.; Flemming, D.; Cosemans, B.; Van den Broek, K. Calculating the cost of work-related stress and psychosocial risks. 2014. [Google Scholar] [CrossRef]
  12. Milczarek, M.; Schneider, E.; González, E.R. OSH in Figures, Stress at Work, Facts and Figures; Technical Report; European Agency for Safety and Health at Work: Luxembourg, 2009. [Google Scholar]
  13. Statistics Korea: Causes of Death Statistics in 2017; 2017. Available online: http://kostat.go.kr/portal/eng/pressReleases/1/index.board (accessed on 15 June 2022).
  14. Ornish, D.; Scherwitz, L.W.; Billings, J.H.; Gould, K.L.; Merritt, T.A.; Sparler, S. Intensive lifestyle changes for reversal of cor-onary heart disease. JAMA 1998, 280, 2001–2007. [Google Scholar] [CrossRef] [PubMed]
  15. Hu, F.B.; Stampfer, M.J.; Manson, J.E.; Grodstein, F.; Colditz, G.A.; Speizer, F.E.; Willett, W.C. Trends in the Incidence of Coronary Heart Disease and Changes in Diet and Lifestyle in Women. N. Engl. J. Med. 2000, 343, 530–537. [Google Scholar] [CrossRef] [Green Version]
  16. Song, M.H.; Kim, S.H.; Park, D.K.; Lee, Y.H. A Multi-Classifier Based Guideline Sentence Classification System. Health Inform. Res. 2011, 17, 224–231. [Google Scholar] [CrossRef] [Green Version]
  17. Jawharali, B.; Arunkumar, B. Efficient human stress level prediction and prevention using neural network learning through EEG Signals. Int. J. Eng. Res. Technol. 2019, 12, 66–72. [Google Scholar]
  18. Sani, M.M.; Norhazman, H.; Omar, H.A.; Zaini, N.; Ghani, S.A. Support vector machine for classification of stress subjects using EEG signals. In Proceedings of the 2014 IEEE Conference on Systems, Process and Control (ICSPC 2014), Kuala Lumpur, Malaysia, 12–14 December 2014; pp. 127–131. [Google Scholar] [CrossRef]
  19. Tomar, D.; Agarwal, S. Feature Selection based Least Square Twin Support Vector Machine for Diagnosis of Heart Disease. Int. J. Bio-Sci. Bio-Technol. 2014, 6, 69–82. [Google Scholar] [CrossRef]
  20. Kim, J.K.; Rho, M.J.; Lee, J.S.; Park, Y.H.; Lee, J.Y.; Choi, I.Y. Improved Prediction of the Pathologic Stage of Patient with Prostate Cancer Using the CART–PSO Optimization Analysis in the Korean Population. Technol. Cancer Res. Treat. 2016, 16, 740–748. [Google Scholar] [CrossRef] [Green Version]
  21. Khatibi, V.; Montazer, G.A. A fuzzy-evidential hybrid inference engine for coronary heart disease risk assessment. Expert Syst. Appl. 2010, 37, 8536–8542. [Google Scholar] [CrossRef]
  22. Krishnaiah, V.; Narsimha, G.; Chandra, N.S. Heart disease prediction system using data mining technique by fuzzy K-NN approach. In Emerging ICT for Bridging the Future—Proceedings of the 49th Annual Convention of the Computer Society of India (CSI) Volume 1; Satapathy, S., Govardhan, A., Raju, K., Mandal, J., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 371–384. [Google Scholar]
  23. Lee, D.Y.; Rhee, E.J.; Choi, E.S.; Kim, J.H.; Won, J.C.; Park, C.Y.; Lee, W.Y.; Oh, K.W.; Park, S.W.; Kim, S.W. Comparison of the Predictability of Cardiovascular Disease Risk According to Different Metabolic Syndrome Criteria of American Heart Association/National Heart, Lung, and Blood Institute and International Diabetes Federation in Korean Men. Korean Diabetes J. 2008, 32, 317–327. [Google Scholar] [CrossRef] [Green Version]
  24. Kim, J.-K.; Lee, J.-S.; Park, D.-K.; Lim, Y.-S.; Lee, Y.-H.; Jung, E.-Y. Adaptive mining prediction model for content recommendation to coronary heart disease patients. Clust. Comput. 2014, 17, 881–891. [Google Scholar] [CrossRef]
  25. Fine, L.J.; Philogene, G.; Gramling, R.; Coups, E.J.; Sinha, S. Prevalence of multiple chronic disease risk factors: 2001 National Health Interview Survey. Am. J. Prev. Med. 2004, 27, 18–24. [Google Scholar] [CrossRef]
  26. Bobade, P.; Vani, M. Stress detection with machine learning and deep learning using multimodal physiological data. In 2020 Second International Conference on Inventive Research in Computing Applications (ICIRCA); IEEE: Piscataway, NJ, USA, 2020; pp. 51–57. [Google Scholar]
  27. Litjens, G.; Kooi, T.; Bejnordi, B.E.; Setio, A.A.A.; Ciompi, F.; Ghafoorian, M.; van der Laak, J.A.W.M.; van Ginneken, B.; Sánchez, C.I. A survey on deep learning in medical image analysis. Med. Image Anal. 2017, 42, 60–88. [Google Scholar] [CrossRef] [Green Version]
  28. Tran, K.P.; Du Nguyen, H.; Thomassey, S. Anomaly detection using Long Short Term Memory Networks and its applications in Supply Chain Management. IFAC-PapersOnLine 2019, 52, 2408–2412. [Google Scholar] [CrossRef]
  29. Budak, Ü.; Cömert, Z.; Rashid, Z.N.; Şengür, A.; Çıbuk, M. Computer-aided diagnosis system combining FCN and Bi-LSTM model for efficient breast cancer detection from histopathological images. Appl. Soft Comput. 2019, 85, 105765. [Google Scholar] [CrossRef]
  30. Amin, J.; Sharif, M.; Raza, M.; Saba, T.; Sial, R.; Shad, S.A. Brain tumor detection: A long short-term memory (LSTM)-based learning model. Neural Comput. Appl. 2019, 32, 15965–15973. [Google Scholar] [CrossRef]
  31. Cho, S.M.J.; Lee, H.; Pyun, W.B.; Kim, H.C. Differential Control Rate of Systolic and Diastolic Blood Pressure among Korean Adults with Hypertension: The Sixth Korean National Health and Nutrition Examination Survey, 2013–2015 (KNHANES VI). Korean Circ. J. 2019, 49, 1035–1048. [Google Scholar] [CrossRef] [Green Version]
  32. Alberdi, A.; Aztiria, A.; Basarab, A. Towards an automatic early stress recognition system for office environments based on multimodal measurements: A review. J. Biomed. Inform. 2016, 59, 49–75. [Google Scholar] [CrossRef]
  33. Yadav, S.; Hashmi, A. An Investigation of Occupational stress Classification by using Machine Learning Techniques. Int. J. Comput. Sci. Eng. 2018, 6, 842–850. [Google Scholar] [CrossRef]
  34. Toukas, D.; Delichas, M.; Toufekoula, C.; Spyrouli, A. The Role of Labour Inspectorates in Tackling the Psychosocial Risks at Work in Europe: Problems and Perspectives. Saf. Health Work. 2015, 6, 263–267. [Google Scholar] [CrossRef] [Green Version]
  35. Sedlatschek, C. Perspectives on active ageing and work-related stress in Europe: A European opinion poll. Occup. Med. 2014, 64, 74–75. [Google Scholar] [CrossRef] [Green Version]
  36. Balzarotti, S.; Colombo, B.; Christensen, A. The Relationship Between Psychological Distress and Bio-behavioral Processes in Cardiovascular Disease. Brain Heart Dyn. 2020, 8, 229–239. [Google Scholar] [CrossRef]
  37. Liu, B.; Yu, M.; Graubard, B.I.; Troiano, R.P.; Schenker, N. Multiple imputation of completely missing repeated measures data within person from a complex sample: Application to accelerometer data in the National Health and Nutrition Examination Survey. Stat. Med. 2016, 35, 5170–5188. [Google Scholar] [CrossRef]
  38. Beaulieu-Jones, B.K.; Moore, J.H. The pooled resource open-access als clinical trials consortium missing data imputation in the electronic health record using deeply learned autoencoders. Biocomputing 2016, 22, 207–218. [Google Scholar] [CrossRef] [Green Version]
  39. Greco, A.; Valenza, G.; Lázaro, J.; Garzón-Rey, J.M.; Aguiló, J.; de la Cámara, C.; Bailón, R.; Scilingo, E.P. Acute Stress State Classification Based on Electrodermal Activity Modeling. IEEE Trans. Affect. Comput. 2021, 14, 788–799. [Google Scholar] [CrossRef]
  40. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  41. Peternel, K.; Pogačnik, M.; Tavčar, R.; Kos, A. A Presence-Based Context-Aware Chronic Stress Recognition System. Sensors 2012, 12, 15888–15906. [Google Scholar] [CrossRef]
  42. Wijsman, J.; Grundlehner, B.; Liu, H.; Penders, J.; Hermens, H. Wearable Physiological Sensors Reflect Mental Stress State in Office-Like Situations. In Proceedings of the 2013 Humane Association Conference on Affective Computing and Intelligent Interaction, Geneva, Switzerland, 2–5 September 2013; pp. 600–605. [Google Scholar] [CrossRef]
  43. Bickford, M. Stress in the Workplace: A General Overview of the Cases, the Effects and the Solutions; Technical Report, August; Canadian Mental Health Association: North York, ON, Canada, 2005. [Google Scholar]
  44. Liao, W.; Zhang, W.; Zhu, Z.; Ji, Q. A Real-Time Human Stress Monitoring System Using Dynamic Bayesian Network. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05)—Workshops 36, San Diego, CA, USA, 20–26 June 2006; p. 70. [Google Scholar] [CrossRef]
  45. Okada, Y.; Yoto, T.Y.; Suzuki, T.; Sakuragawa, S.; Sugiura, T. Wearable ECG recorder with acceleration sensors for monitoring daily stress: Office work simulation study. In Proceedings of the 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Osaka, Japan, 3–7 July 2013; 2013, pp. 4718–4721. [Google Scholar] [CrossRef]
  46. El-Bialy, R.; Salamay, M.A.; Karam, O.H.; Khalifa, M.E. Feature Analysis of Coronary Artery Heart Disease Data Sets. Procedia Comput. Sci. 2015, 65, 459–468. [Google Scholar] [CrossRef] [Green Version]
  47. Kim, J.; Lee, J.; Lee, Y. Data-Mining-Based Coronary Heart Disease Risk Prediction Model Using Fuzzy Logic and Decision Tree. Health Inform. Res. 2015, 21, 167–174. [Google Scholar] [CrossRef] [Green Version]
  48. Kim, J.K.; Kang, S. Neural Network-Based Coronary Heart Disease Risk Prediction Using Feature Correlation Analysis. J. Health Eng. 2017, 2017, 1–13. [Google Scholar] [CrossRef] [Green Version]
  49. Kim, J.; Kang, U.; Lee, Y. Statistics and Deep Belief Network-Based Cardiovascular Risk Prediction. Health Inform. Res. 2017, 23, 169–175. [Google Scholar] [CrossRef] [Green Version]
  50. Atkov, O.Y.; Gorokhova, S.G.; Sboev, A.G.; Generozov, E.V.; Muraseyeva, E.V.; Moroshkina, S.Y. Coronary heart disease diagnosis by artificial neural networks including genetic polymorphisms and clinical parameters. J. Cardiol. 2012, 59, 190–194. [Google Scholar] [CrossRef] [Green Version]
  51. Samarawickrama, A.J.P.; and Fernando, T.G.I. A recurrent neural network approach in predicting daily stock prices an ap-plication to the Sri Lankan stock market. In Proceedings of the 2017 IEEE International Conference on Industrial and Information Systems (ICIIS), Peradeniya, Sri Lanka, 15–16 December 2017; pp. 1–6. [Google Scholar]
  52. Zulqarnain, M.; Ghazali, R.; Aamir, M.; Hassim, Y.M. An efficient two-state gru based on feature attention mechanism for sen-timent analysis. Multimed. Tools Appl. 2022, 81, 1–26. [Google Scholar]
  53. Zulqarnain, M.; Abd Ishak, S.; Ghazali, R.; Nawi, N.M.; Aamir, M.; and Hassim, Y.M.M. An improved deep learning approach based on variant two-state gated recurrent unit and word embeddings for sentiment classification. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 594–603. [Google Scholar] [CrossRef] [Green Version]
  54. Peng, P.; Zhang, W.; Zhang, Y.; Xu, Y.; Wang, H.; Zhang, H. Cost sensitive active learning using bidirectional gated recurrent neural networks for imbalanced fault diagnosis. Neurocomputing 2020, 407, 232–245. [Google Scholar] [CrossRef]
  55. Greff, K.; Srivastava, R.K.; Koutník, J.; Steunebrink, B.R.; Schmidhuber, J. LSTM: A search space odyssey. IEEE Trans. Neural Netw. Learn. Syst. 2016, 28, 2222–2232. [Google Scholar] [CrossRef] [Green Version]
  56. Hinton, G. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
  57. Selye, H. The Stress of Life; McGraw-Hil Edition: New York, NY, USA, 1956. [Google Scholar]
Figure 1. The conceptual design of stress levels.
Figure 1. The conceptual design of stress levels.
Brainsci 13 00994 g001
Figure 2. The LSTM architecture.
Figure 2. The LSTM architecture.
Brainsci 13 00994 g002
Figure 3. The overall framework of proposed study.
Figure 3. The overall framework of proposed study.
Brainsci 13 00994 g003
Figure 4. Enhanced LSTM architecture with peepholes.
Figure 4. Enhanced LSTM architecture with peepholes.
Brainsci 13 00994 g004
Figure 5. The detailed structure of the attention mechanism.
Figure 5. The detailed structure of the attention mechanism.
Brainsci 13 00994 g005
Figure 6. The overall architecture of proposed feature-attention E-LSTM.
Figure 6. The overall architecture of proposed feature-attention E-LSTM.
Brainsci 13 00994 g006
Figure 7. Confusion matrix.
Figure 7. Confusion matrix.
Brainsci 13 00994 g007
Figure 8. Loss function of proposed approach in the terms of configuration: (A) configuration 1, (B) configuration 2.
Figure 8. Loss function of proposed approach in the terms of configuration: (A) configuration 1, (B) configuration 2.
Brainsci 13 00994 g008
Figure 9. Accuracy comparison of proposed model with existing approaches.
Figure 9. Accuracy comparison of proposed model with existing approaches.
Brainsci 13 00994 g009
Figure 10. Precision and recall comparison of the proposed model with the existing approaches.
Figure 10. Precision and recall comparison of the proposed model with the existing approaches.
Brainsci 13 00994 g010
Figure 11. F1-score comparison of proposed model with existing approaches.
Figure 11. F1-score comparison of proposed model with existing approaches.
Brainsci 13 00994 g011
Figure 12. Comparison performance of the model with state-of-the-art approaches.
Figure 12. Comparison performance of the model with state-of-the-art approaches.
Brainsci 13 00994 g012
Table 1. Numbers of parameters of proposed and traditional approaches.
Table 1. Numbers of parameters of proposed and traditional approaches.
ApproachesNumbers of Parameters
NB 2 × ( n 2 + n m + n )
SVM 2 × ( n 2 + n m + n )
GRU 3 × ( n 2 + n m + n )
LSTM 4 × ( n 2 + n m + n )
DBN 6 × ( n 2 + n m + n )
BiLSTM 8 × ( n 2 + n m + n )
Proposed E-LSTM 7 × ( n 2 + n m + n )
Table 2. Optimal hyperparameters of the proposed E-LSTM model.
Table 2. Optimal hyperparameters of the proposed E-LSTM model.
Hyperparameters E-LSTM
Model Configuration 1Model Configuration 2
Activation Function Binary Cross-entropySigmoid
Number of input nodes 99
Number of output nodes 22
Learning Rate 0.00050.0003
Batch Size 7681024
Dropout Rate 0.20.3
Epoch 150100
Momentum 0.10
Regularizer L2L2
Accuracy (%) 75.5473.98
Table 3. Distribution of physical activity and lifestyle between low and high-stress.
Table 3. Distribution of physical activity and lifestyle between low and high-stress.
Physical Activity and LifestylesLow StressHigh Stress p -Value
Gender 0.001
Man289228
Woman351405
Avg. age (year)56.7247.540.000
Avg. height (cm)159.80161.180.014
Avg. weight (kg)63.1264.070.049
Avg. sleep duration (hr)6.506.150.000
Avg. pulse rate (bpm)70.1072.680.000
Avg. SBP (mmHg)120.92116.370.000
Avg. DBP (mmHg)73.5274.590.190
Avg. BMI (kg/m2)24.0824.160.670
Drinking 0.004
No338287
Yes290341
Smoking 0.000
No542474
Yes98162
DBP: diastolic blood pressure, SBP: systolic blood pressure, and BMI: body mass index.
Table 4. Confusion matrix results.
Table 4. Confusion matrix results.
ModelsTrue PositiveFalse PositiveFalse NegativeTrue Negative
NB71298182242
SVM894143698
LSTM9022034816
DBN8404617886
BiLSTM91088158202
Proposed E-LSTM92676142212
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.

Share and Cite

MDPI and ACS Style

Zulqarnain, M.; Shah, H.; Ghazali, R.; Alqahtani, O.; Sheikh, R.; Asadullah, M. Attention Aware Deep Learning Approaches for an Efficient Stress Classification Model. Brain Sci. 2023, 13, 994. https://doi.org/10.3390/brainsci13070994

AMA Style

Zulqarnain M, Shah H, Ghazali R, Alqahtani O, Sheikh R, Asadullah M. Attention Aware Deep Learning Approaches for an Efficient Stress Classification Model. Brain Sciences. 2023; 13(7):994. https://doi.org/10.3390/brainsci13070994

Chicago/Turabian Style

Zulqarnain, Muhammad, Habib Shah, Rozaida Ghazali, Omar Alqahtani, Rubab Sheikh, and Muhammad Asadullah. 2023. "Attention Aware Deep Learning Approaches for an Efficient Stress Classification Model" Brain Sciences 13, no. 7: 994. https://doi.org/10.3390/brainsci13070994

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop