You are on page 1of 5

International Journal of Advances in Engineering and Management (IJAEM)

Volume 5, Issue 7 July 2023, pp: 255-259 www.ijaem.net ISSN: 2395-5252

Stress Detection in It ProfessionalsUsing


Image Processing and MachineLearning
Kusuma H R, Devika Rani B S, Anjali K, Ashwini N
Department of Electronics and Communication Engineering PES College of Engineering Mandya - 571401
Department of Electronics and Communication Engineering PES College of Engineering Mandya – 571401
Department of Electronics and Communication Engineering PES College of Engineering Mandya – 571401
Department of Electronics and Communication Engineering PES College of Engineering Mandya - 571401

----------------------------------------------------------------------------------------------------------------------------- ----------
Date of Submission: 05-07-2023 Date of Acceptance: 15-07-2023
----------------------------------------------------------------------------------------------------------------------------- ----------
ABSTRACT - Stress detection in employees is a environment and ensuring the well-being of
critical area of research as it directly impacts employees. World Health Organization (WHO)
individual well-being and organizational says that, stress is a psychological condition that
productivity. Stress is a natural human response negatively affects the lives of one in four people.
exhibited under mental tension and work pressure. This paper replaces the usual technique that
As of now, the IT field is the most continuously includes live detection and individual counselling
evolving sector, though most of the IT professionals which is time consuming, and other conventional
were undergoing through stress nowadays. More method for detecting stress includes
and more employees today are overloaded with Electrocardiography (ECG), Electroence
work stress from different aspects: organizational phalography (EEG), Electromyography, which are
future, self- cognition, inter-personal, and affection. time and cost intensive examinations. To address
Long - lasting stress may lead to anxiety, these challenges, researchers and practitioners have
withdrawal, aggression, or poor coping skills such turned to machine learning approaches, leveraging
as drug and alcohol use, threatening one‟s health the power of artificial neural networks for stress
and development. Hence, it is important for both IT detection. CNNs, in particular, have shown
employees and their guardian/parents to be aware remarkable capabilities in various domains,
of the stress in advance, and manage the stress including image recognition, natural language
before it becomes severe and starts causing health processing, and now, stress detection. The ability of
problems. CNNs to automatically learn spatial and temporal
Keywords – Stress detection, Image processing, patterns from data makes them well-suited for
Machine learning, CNN. analyzing complex signals and extracting
meaningful features related to stress. The scope of
I. INTRODUCTION the Python CNN algorithm for stress detection in
Stress has become a prevalent issue in employees is broad and encompasses several key
modern workplaces, affecting the well-being and areas. Firstly, it focuses on developing an automated
productivity of employees. As a result, there is a system that can accurately detect and classify stress
growing interest in developing automated systems levels in employees using diverse data sources,
that can detect and monitor stress levels in including physiological signals and behavioral
employees. Machine learning techniques, patterns. The algorithm aims to provide real-time
particularly Convolutional Neural Networks monitoring of stress levels, enabling organizations
(CNNs), have emerged as powerful tools for to identify individuals who may require additional
analyzing complex data and extracting meaningful support or interventions. Additionally, the
patterns. The detection of stress in employees is of algorithm has the potential to contribute to the
paramount importance due to its profound impact development of personalized stress management
on both individuals and organizations. High levels programs. By analyzing individual stress profiles,
of stress can lead to decreased job satisfaction, the algorithm can assist in tailoring interventions
increased absenteeism, reduced productivity, and and support strategies based on employees' specific
even long-term health issues. needs and stress patterns. Furthermore, the
Detecting and addressing stress in its early algorithm's scope extends to large- scale research
stages is crucial for promoting a healthy work studies on employee well-being. By analyzingstress

DOI: 10.35629/5252-0507255259 |Impact Factorvalue 6.18| ISO 9001: 2008 Certified Journal Page 255
International Journal of Advances in Engineering and Management (IJAEM)
Volume 5, Issue 7 July 2023, pp: 255-259 www.ijaem.net ISSN: 2395-5252

dynamics across different populations or industries, images were collected to extract a emotion
the algorithm can provide valuable insights into the features. The results obtained from image
prevalence and patterns of workplace stress, processing with suitable inputs were used to train
enabling organizations and researchers to develop linear regression model and test this model with the
evidence-based interventions and strategies. The test dataset. Although the obtained results are
motivation behind developing a Python CNN preliminary with limited number of participants
algorithm for stress detection in employees stems and data, enables end users to successfully
from the pressing need to address the detrimental recognize his ongoing stress in order to minimize
effects of workplace stress on individuals and future health risks. [3].
organizations. Stress has become a pervasive issue,
leading to decreased job satisfaction, increased 3. Machine Learning Techniques for Stress
absenteeism, and reduced productivity. After Prediction in Working Employees
detection of stress, several steps can be taken by the This research paper develops the system
admin to help working IT professionals cope up that applies machine learning techniques to analyze
with stress for mental well being like counselling stress status in working employees. Additional
assistance, career guidance, stress management methods like the Naive Bayes classifier can be used
sessions, and health awareness programs by their to test the efficiency of the model. One can
interest. It is important to recognize such emotions implement deep learning techniques like CNN
and take the appropriate steps to calm them down (Convoluted Neural Networks) and verify how the
in order to avoid being negatively impacted by model performs for the given dataset [1].
them. Early identification of IT employees will be
needed such a help will improve the chances of such 4. Detection of Stress level of Automobile
measures being successful. Drivers using ECG and EMG Signals
Miss. Dikshita D. Sheth, Dr. Sanjay L.
II. LITERATURE SURVEY Nalbalwar , Dr. Shankar B. Deosarkar The stress
1. Stress and Anxiety Detection Using Facial level of the automobile driver was detected with
Cues FromVideos high accuracy of 78.57% for 60 seconds and
This research work develops an outline to 92.85% for240 seconds. Hence, with the large
detect and assess the stress states from the facial number of samples high accuracy can be obtained.
cues of the recorded video. A comprehensive The correlation between the stress level and
experimental technique was created to create a features extracted from ECG and EMG signal was
systematic variation in emotional states (neutral, also proved. The proposed method in this paper can
relaxed, and stressed/anxious) using a variety of help to increase driver‟s safety [6].
internal and external stimuli. This analysis is
mainly focused on semi-voluntary and non- 5. Exploring Deep Learning Models for Stress
voluntary facial cues to more accurately assess the Detection in Employees" Author: H. Nguyen
emotion representation. Using a camera-based et al
photoplethysmography, the activity of the mouth, The study compares various deep learning
head motion parameters, and heart rate were all models, including CNNs and recurrent neural
examined. The most reliable features were chosen networks, for stress detection. It shows that deep
in each experimental phase using a feature learning models can effectively learn complex
selection technique, which was then followed by patterns from diverse data sources and achieve high
classification systems that distinguished between accuracy in stress classification[7]
stress/anxiety and neutral states with reference to a
relaxed condition. There are specific facial signals 6. Stress Detection in Employees using Facial
that can distinguish between stress and anxiety with Expression Analysis
good accuracy that are obtained from mouth, eye, This research study explores the use of
and head movements.[4] facial expression analysis for stress detection. It
shows that features extracted from facial
2. Detection of Stress using Image Processing expressions, such as brow furrow and lip stretch,
and Machine Learning Techniques can be used to classify stress levels accurately.[8]
This research paper developed a
monitoring system to detect emotional stress of a III. EXISTING SYSTEM
person working continuously in front of the Traditional self-reporting methods have
computer. This paper integrates image processing been widely used in the past as an initial approach
and deep learning to detect stress. And several for stress assessment. These methods typically

DOI: 10.35629/5252-0507255259 |Impact Factorvalue 6.18| ISO 9001: 2008 Certified Journal Page 256
International Journal of Advances in Engineering and Management (IJAEM)
Volume 5, Issue 7 July 2023, pp: 255-259 www.ijaem.net ISSN: 2395-5252

involve questionnaires or surveys where employees setting for stress detection in employees. The
self-report their perceived stress levels. While these system will accept real-time data from web cam and
methods are easy to administer and cost-effective, images uploaded by the user, and then preprocess
they heavily rely on individuals' subjective the data to match the input format required by the
perceptions and may be influenced by biases or CNN model, and feed it into the model for stress
social desirability. Moreover, manual assessment classification. The output will indicate the
methods are time-consuming and resource- employee's stress level, enabling timely
intensive, making them impractical for large-scale interventions and support. The proposed system
implementation. As a result, the accuracy and offers several advantages, including its ability to
reliability of self-reporting methods may be capture complex patterns in physiological and
limited. To overcome the limitations of self- behavioral data, its adaptability to different data
reporting, researchers and practitioners have sources, and its potential for high accuracy in stress
explored the use of physiological measurements as detection. However, challenges such as obtaining a
indicators of stress. Moreover, researchers have diverse and representative dataset, addressing
also investigated the use of behavioral patterns and individual differences in stress responses, and
speech analysis for stress detection. Keystroke ensuring privacy and ethical use of employee data
dynamics, mouse movements, and voice analysis need to be carefully addressed during the system's
are examples of behavioral cues that can indicate development and implementation.
stress levels in employees.
MODULES
IV. PROPOSED SYSTEM
The Methodology for stress detection in
employees aims to utilize Python and
Convolutional Neural Network (CNN) algorithms
to develop an effective and accurate stress
detection model. By leveraging the power of
machine learning and the flexibility of Python
programming, the system intends to overcome the
limitations of existing methods and provide a
robust solution. The proposed system will start by
collecting data from various sources, including
facial expressions and behavioral patterns, to
capture a comprehensive picture of an employee's
stress levels. In the system, Python will be utilized
as the primary programming language due to its
extensive libraries and frameworks that support
deep learning and data analysis. Python's simplicity
and readability make it an ideal choice for
implementing complex algorithms and handling Figure 1: Stress Detection Emotion
large datasets. The CNN algorithm will be
designed to learn and extract features automatically
from the input data, enabling the system to detect
complex patterns associated with stress. The
algorithm will consist of multiple Convolutional
layers that capture local patterns and spatial
relationships in the data. . Pooling layers will be
used to reduce dimensionality and extract the most
relevant features. The output from the
Convolutional layers will be passed through fully
connected layers for classification, where the stress
level will be determined based on the learned
features. To train the CNN model, a large and Figure 2: Stress not detected Emotions
diverse dataset comprising labeled instances of
stressed and non-stressed employees will be
required. Once the CNN model is trained and
validated, it can be deployed in a real- world

DOI: 10.35629/5252-0507255259 |Impact Factorvalue 6.18| ISO 9001: 2008 Certified Journal Page 257
International Journal of Advances in Engineering and Management (IJAEM)
Volume 5, Issue 7 July 2023, pp: 255-259 www.ijaem.net ISSN: 2395-5252

V. METHODOLOGY FOLLOWED Admin:


Admin has to login in the portal by proper
required credentials. The admin has the authority to
approve the registration request sent by the users.
The admin will take-up the request from the user
only if it a valid request otherwise the request will
be neglected. The admin got notified when user
upload the images. The manager can now monitor
his staff' stress levels. he can determine the
emotions depicted in the pictures. The admin can
also see the outcomes of the CNN classification
detection. The spreadsheet is in Excel format.

Data Processing:
The images which were fed as a dataset
were actually a raw data. The method of making this
dataset suitable for a machine learning model is data
preprocessing. Data processing is the most essential
step so that the given dataset can analyzed,
interpreted, and used for future process.

CNN:
CNNs are trains the large dataset of
labeled image, where the network learns to
recognize patterns and features that are associated
with specific objects or classes. Once it is trained a
CNN uses to classify new images, or extract features
for used in other applications object detection or
image segmentation. As a result of CNN, the stress
of employees detected from the six principal
conditions as Happy, Surprised, Angry, Sad,
Disgust, fear and Neutral.
Figure 3: Flow diagram
VI. CONCLUSION
a. User After the successful registration and login,
b. Admin user can upload their picture or else uses the live
c. Data Preprocess camera . then user will get the output of the stress
d. CNN Machine Learning Technique level on the top of bounded box as angry, sad,
happy, disgusting, and neutral. Overall, the stress
User: detection system using Python CNN algorithm
In the Beginning the user need to register holds great potential in effectively assessing and
in the portal. While registering the registration managing employee stress levels. By leveraging the
request will send to the admin node along with the power of CNN algorithms and real-time data
user valid email-id and mobile number for further processing, the system empowers organizations to
process. The user got registered only when admin prioritize employee well-being, improve
the will the accept the user‟s registration request. productivity, and foster a healthier work
Once the user account get activated, the user then environment. The system's accuracy, real-time
able to sing in into their portal. Now the user has the monitoring, and comprehensive assessment of
access to upload the images which act as a input to multiple data sources contribute to its effectiveness
detect the stress. The CNN algorithm will extract in stress detection and intervention. As research in
the features of facial expression and proper stress detection and machine learning progresses,
emotion in the image uploaded by the users. The further advancements and refinements can be
stress detected by facial expression like angry, fear, expected in the field. Future studies may explore
disgust, sad etc. the integration of additional data sources, such as
sentiment analysis of textual data or facial
expression recognition, to enhance stress detection

DOI: 10.35629/5252-0507255259 |Impact Factorvalue 6.18| ISO 9001: 2008 Certified Journal Page 258
International Journal of Advances in Engineering and Management (IJAEM)
Volume 5, Issue 7 July 2023, pp: 255-259 www.ijaem.net ISSN: 2395-5252

capabilities. We use CNN classifier and predict the


accuracy of the model. Along with the accuracy we
also predict classification error, sensitivity,
specificity, false positive rate error, and precision.
We can supply successful solutions for stress
management, keeping the working conditions
sound and unconstrained for representatives, and
capitalizing on them all through work hours,
thusly.

REFERENCES
[1]. Dharan, "Machine Learning Techniques
for Stress Prediction in Working
Employees," Madurai, 2018 IEEE
International Conference on
Computational Intelligence and
Computing Research (ICCIC), Madurai,
India, 2018.
[2]. Bhattacharyya, R., & Basu, S. (2018).
Retrieved from „The Economic Times‟.
[3]. "Detection of Stress Using Image
Processing and Machine Learning
Techniques," by Nisha Raichur, Nidhi
Lonakadi, and Priyanka Mural, vol.9, no.
3S, July 2017.
[4]. "Stress and anxiety detection using facial
cues from videos," Biomedical Signal
Processing and Control, vol. 31, pp. 89-
101, January 2017. G. Giannakakis, D.
Manousos, F. Chiarugi
[5]. Sharif M., Mohsin S., Hanan R., Javed M.
and Raza M., "3D Face Recognition using
Horizontal and verticalMarked Strips",
Sindh University Research Journal
(SURJ), 43(01-A), (2011)
[6]. Liliyana DY. 2019. Emotion Recognition
from Facial Expression Using Deep
Convolutional Neural Network. (IOP
Conf. Series: Journal of Physics: Conf.
Series 1193)
[7]. “Exploring Deep Learning Models for
Stress Detection in Employees” H.
Nguyen et al, 2020.
[8]. “Stress Detection in Employees using
Facial Expression Analysis” N. S.
Chaudhari, 2018.

DOI: 10.35629/5252-0507255259 |Impact Factorvalue 6.18| ISO 9001: 2008 Certified Journal Page 259

You might also like