design and implementation of stress management...

5
Design and Implementation of Stress Management System Colin DSouza Vijay Kumar U Electronics and Communication Department Electronics and Communication Department BVB College of Engineering and Technology BVB College of Engineering and Technology Hubli, India Hubli, India [email protected] [email protected] Vinayak Baddi Vaibhav J Revankar Electronics and Communication Department Electronics and Communication Department BVB College of Engineering and Technology BVB College of Engineering and Technology Hubli, India Hubli, India [email protected] [email protected] Rohini Hongal Electronics and Communication Department BVB College of Engineering and Technology Hubli, India [email protected] Abstract—Today’s life is full of frustrations, deadlines, and demands. For many people, stress is so common that it has become an integral part of life. Stress is body’s way of responding to any kind of demand or threat. When you feel threatened, your nervous system responds by re- leasing a flood of stress hormones, including adrenaline due to which body’s conductance changes, heart pounds faster, muscles tighten, blood pressure rises and breath quickens. And they directly correlate the level of stress to one’s emotion or mood. Hence Heartbeat, Body temperature and GSR (Galvanic skin resistance) are the three informative signals that can be used to determine the stress. This work proposes a system which can detect the stress of a person using Temperature, GSR and Pulse sensors to measure body temperature, Skin conductance and Heartbeat respectively and provides a suitable medication. The system can also be used as personal stress assistance system which creates a calm environment to meditate with a time interval of 2minutes, 5minutes and 10minutes.The Raspberry Pi, Arduino and sensors form the hardware part and a GUI provides a user friendly interface .The human body resistance varies from 2 Mega ohm to 10 Kilo ohm based on the emotion, While the normal Heart beat and Body temperature is 60-90 BPM, 28C respectively. The proposed system is successful in measuring these values thus act as a stress management system which helps to cope with the stress and get relieved. Keywords-Arduino; Raspberry pi2; GSR sensor; Heartbeat sensor. I. INTRODUCTION As we move in to the new era, the people of today’s generation are so busy that they won’t even think about their health. So this stress management system eliminates the gap between professional and personal life. In this busy and competitive world the people are more focused on their work and setting up their empire. But with this it is also very important to keep track of health and reduce the stress on the body as well mind. So there is a need of a system which could easily detect the stress condition of the person and make him feel relaxed as for as possible. Various parameters like body temperature, heart beat rate and skin resistance change while a person is stressed mentally or physically. A. What is Stress? Stress is your body’s way of responding to any kind of demand or threat. When you feel threatened, your nervous system responds by releasing a flood of stress hormones, and including adrenaline and cortisol, which rouse the body for emergency action. Your heart pounds faster, muscles tighten, blood pressure rises, breath quickens, and your senses become sharper. These physical changes increase your strength and stamina, speed your reaction time, and enhance your focus. Stress is what keeps you on your toes during a presentation at work, sharpens your concentration when you are attempting the game-winning free throw, or drives you to study for an exam when you’d rather be watching TV [7]. B. Effects of Stress The body’s autonomic nervous system often does a poor job of distinguishing between daily stressors and life-threatening events. If you are stressed over an argument with a friend, a trac jam on your commute to work, or a mountain of bills, for example, your friend, a trac jam on Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 93 ISSN 2277-5099 | © 2016 Bonfring

Upload: others

Post on 17-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Design and Implementation of Stress Management …journal.bonfring.org/papers/sesc/volume6/BIJ-8251.pdfHubli, India Hubli, India vinayakbaddi618@gmail.com vaibhavjrevankar1995@gmail.com

Design and Implementation of Stress Management System

Colin D’Souza Vijay Kumar U

Electronics and Communication Department Electronics and Communication Department BVB College of Engineering and Technology BVB College of Engineering and Technology

Hubli, India Hubli, India [email protected] [email protected]

Vinayak Baddi Vaibhav J Revankar

Electronics and Communication Department Electronics and Communication Department BVB College of Engineering and Technology BVB College of Engineering and Technology

Hubli, India Hubli, India [email protected] [email protected]

Rohini Hongal

Electronics and Communication Department

BVB College of Engineering and Technology Hubli, India

[email protected]

Abstract—Today’s life is full of frustrations, deadlines, and

demands. For many people, stress is so common that it has become an integral part of life. Stress is body’s way of responding to any kind of demand or threat. When you feel threatened, your nervous system responds by re- leasing a flood of stress hormones, including adrenaline due to which body’s conductance changes, heart pounds faster, muscles tighten, blood pressure rises and breath quickens. And they directly correlate the level of stress to one’s emotion or mood. Hence Heartbeat, Body temperature and GSR (Galvanic skin

resistance) are the three informative signals that can be used to

determine the stress. This work proposes a system which can

detect the stress of a person using Temperature, GSR and

Pulse sensors to measure body temperature, Skin conductance

and Heartbeat respectively and provides a suitable medication.

The system can also be used as personal stress assistance

system which creates a calm environment to meditate with a

time interval of 2minutes, 5minutes and 10minutes.The

Raspberry Pi, Arduino and sensors form the hardware part

and a GUI provides a user friendly interface .The human body

resistance varies from 2 Mega ohm to 10 Kilo ohm based on

the emotion, While the normal Heart beat and Body

temperature is 60-90 BPM, 28C respectively. The proposed

system is successful in measuring these values thus act as a

stress management system which helps to cope with the stress

and get relieved.

Keywords-Arduino; Raspberry pi2; GSR sensor; Heartbeat sensor.

I. INTRODUCTION

As we move in to the new era, the people of today’s generation are so busy that they won’t even think about their

health. So this stress management system eliminates the gap between professional and personal life.

In this busy and competitive world the people are more focused on their work and setting up their empire. But with this it is also very important to keep track of health and reduce the stress on the body as well mind. So there is a need of a system which could easily detect the stress condition of the person and make him feel relaxed as for as possible. Various parameters like body temperature, heart beat rate and skin resistance change while a person is stressed mentally or physically. A. What is Stress?

Stress is your body’s way of responding to any kind of demand or threat. When you feel threatened, your nervous

system responds by releasing a flood of stress hormones, and including adrenaline and cortisol, which rouse the body for

emergency action. Your heart pounds faster, muscles tighten, blood pressure rises, breath quickens, and your senses become

sharper. These physical changes increase your strength and stamina, speed your reaction time, and enhance your focus.

Stress is what keeps you on your toes during a presentation at work, sharpens your concentration when you are attempting the

game-winning free throw, or drives you to study for an exam when you’d rather be watching TV [7]. B. Effects of Stress

The body’s autonomic nervous system often does a poor job of distinguishing between daily stressors and life-threatening events. If you are stressed over an argument with a friend, a traffic jam on your commute to work, or a mountain of bills, for example, your friend, a traffic jam on

Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 93

ISSN 2277-5099 | © 2016 Bonfring

Page 2: Design and Implementation of Stress Management …journal.bonfring.org/papers/sesc/volume6/BIJ-8251.pdfHubli, India Hubli, India vinayakbaddi618@gmail.com vaibhavjrevankar1995@gmail.com

your commute to work, or a mountain of bills, for example, your body can still react as if you are facing a life-or-death situation. When you repeatedly experience the fight or flight stress response in your daily life, it can raise blood pressure, suppress the immune system, increase the risk of heart attack and stroke, speed up the aging process and leave you vulnerable to a host of mental and emotional problems such as:

Pain of any kind.

Heart disease.

Skin conductance.

Depression.

Digestive problems.

Increase in body temperature [1]. C. Cause of Stress

The situations and pressures that cause stress are known as stressors. We usually think of stressors as being negative, such as an exhausting work schedule or a rocky relationship. However, anything that puts high demands on you or forces you to adjust can be stressful. This includes positive events such as getting married, buying a house, going to college, or receiving a promotion.

Of course, not all stress is caused by external factors. Stress can also be self-generated, for example, when you worry excessively about something that may or may not happen, or have irrational, pessimistic thoughts about life. D. Manage Stress

As noted in the Introduction, you can learn to manage stress. The first step is understanding yourself better how you react in different situations, what causes you stress, and how you behave when you feel stressed. Once you have done that, take the following steps:

Practice facing stressful moments. Think about the event or situation you expect to face and rehearse your reactions.

Find ways to practice dealing with the

challenge. If you know that speaking in front of a group frightens you, practice doing it, perhaps with a trusted friend or fellow student. If the pressure of taking tests causes you to freeze up, buy some practice tests at the school bookstore or online and work with them when there are no time pressures.

Live a healthy lifestyle. Get plenty of exercise.

Eat healthy foods. Allow time for rest and relaxation. Find a relaxation technique that works for yoga, meditation, or breathing exercises. Look for the humor in life, and enjoy yourself.

Examine your expectations. Try to set realistic

goals. It’s good to push yourself to achieve, but make sure your expectations are realistic. Watch out for perfectionism. Be satisfied with doing the best you can. Nobody’s perfect- not

you, not your fellow Cadet, nobody. Allow people the liberty to make mistakes, and remember that mistakes can be a good teacher.

Learn to accept change as a part of life. Nothing stays the same. Develop a support system of friends and relatives you can talk to when needed. Believe in yourself and your potential [2].

II. HARDWARE DESCRIPTION

The software tools used in the project are Python and

Arduino IDE which are open source. The hardware tools used include Arduino UNO, Raspberry pi2, Heart-Beat Sensor, GSR Sensor, Temperature Sensor (LM35). A. Arduino Uno

Arduino Uno is a development board based on the ATmega328p microcontroller. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack and this board is programmed using Arduino software (IDE).It operates at 5V with a flash memory of around 32KB.

Figure 1. Arduino Uno R3 Board.

B. Raspberry Pi 2

The Raspberry Pi 2 Model B is the second generation Raspberry Pi shown in Fig.3. It replaced the original Raspberry Pi 1 Model B+ in February 2015. Compared to the Raspberry Pi 1 it has: A 900MHz quad-core ARM Cortex-A7 CPU 1GB RAM because it has an ARMv7 processor, it can run the full range of ARM GNU/Linux distributions, including Snappy Ubuntu Core, as well as Microsoft Windows 10 [3]. Some of its features are:

4 USB Ports.

40 GPIO Pins.

Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 94

ISSN 2277-5099 | © 2016 Bonfring

Page 3: Design and Implementation of Stress Management …journal.bonfring.org/papers/sesc/volume6/BIJ-8251.pdfHubli, India Hubli, India vinayakbaddi618@gmail.com vaibhavjrevankar1995@gmail.com

Full HDMI Port.

Ethernet Port.

The change in the sweat secretion in the skin can be

measured using a sensor called Galvanic skin response sensor. Based on the outputs of these sensors the proper action is taken. The action may be assistance or playing a song to mage the stress. This GSR is compatible with Arduino interface which can be operated at 5v and analog value coming out can be analyzed to detect the mood of a person [5].

Figure 2. Raspberry pi2 Model B.

C. Heartbeat Sensor

Heart rate can be measured using the sensor which works on the principle of Photophlethysmography. Pulse Sensor is a well-designed plug-and-play heart-rate sensor for Arduino. The sensor clips onto a fingertip or earlobe and plugs right into Arduino with some jumper cables.

It also includes an open source monitoring app that graphs your pulse in real time. It can be used by students, artists, athletes, makers, and game mobile developers who want to easily incorporate live heart rate data into their projects [4].

Figure 3. Heartbeat KG011 Pulse Sensor.

D. GSR Sensor

Figure4.GSR Circuit

Figure5. LM35 Temperature sensor

Equation to calculate voltage across probes:

Consider: R1 = 1M ohm; R2 = 1M ohm;

Out = (R2 / (R1+R2) ) × 5

The Figure 4 is a simple voltage divider followed by a

voltage follower. The resistors were chosen to be within the same magnitude as the subject’s resistance so that there will be significant variation in the output signal. We also set the equilibrium voltage at the intermediate node to 2.5V by pairing the resistors. Aditionally, since this is the only part of the polygraph that sends current through the subject, we took careful care to choose a moderate upper voltage of 5V.

The subject touches the two electrodes (circles in Figure 4) with the tips of the middle and ring fingers. When the resistance across the electrodes falls, the voltage at the intermediate node also falls because the parallel resistance in the bottom half of the divider is reduced [6]. E. Temperature Sensor

The LM35 series are precision integrated-circuit temperature devices with an output voltage linearly-proportional to the Centigrade temperature. The LM35 device has an advantage over linear temperature sensors calibrated in Kelvin, as the user is not required to subtract a large constant voltage from the output to obtain convenient Centigrade scaling. The LM35 device does not require any external calibration or trimming to provide typical accuracies of C at room temperature and cover a full 55C to 150C temperature range. Lower cost is assured by trimming and calibration at the wafer level [3].

Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 95

ISSN 2277-5099 | © 2016 Bonfring

Page 4: Design and Implementation of Stress Management …journal.bonfring.org/papers/sesc/volume6/BIJ-8251.pdfHubli, India Hubli, India vinayakbaddi618@gmail.com vaibhavjrevankar1995@gmail.com

F. Firmware

The software part is done using both ARDUINO IDE and PYTHON, the sensors are interfaced using Arduino and Figure 4. then they are communicated with raspberry pi2 using PySerial package in python and real time graph and GUI are updated continuously.

Figure5. Temperature Sensor LM35.

Figure 6. Example of a ONE-COLUMN figure caption.

III. IMPLEMENTATION

A. Block Diagram

As shown in Figure 7, the Stress Management System

contains various hardware and firmware parts like raspberry

pi2, Arduino, and all related sensors for the project. Now the

input to the system is sensor outputs obtained from various

sensors like Heartbeat, GSR, Temperature sensors and this

values are analyzed and real time graphical representation is

shown to the user and also relaxed him from the stress.

Figure 6. Block Diagram of Stress Management System.

B. Algorithm

Shown below is the algorithm to operate Stress Management System using python GUI:

Start.

Read the analog values coming from 3 different sensors using Arduino.

Convert these analog values into standard form

and set a threshold value to analyze.

Using Python and raspberry pi2, the values from Arduino are made to communicate with pi using PySerial library.

Python plots the real time graph using

matplotlib library.

Analyzing the threshold value stress is detected and music is played to relax using GUI.

Now the values are uploaded to webpage to

access anywhere in local server. Stop.

IV. RESULTS

The open source raspberry pi and python helps in making a GUI as

shown in Figure 8. Here the GUI will continuously updates the serial values coming from the sensors, connected to Arduino analog pins. There are different buttons available in GUI like 2min, 5min graph and so on, and whenever the user presses on graph button he will get the live graphical representation of sensor values.

Figure 8. GUI Created Using Python.

The next target of the project was to upload the values to cloud using things- peak API, here the HTTP package is used to connect to internet. Now the user will be able to access the data of heart rate, temperature of the body and GSR anywhere in the world.

Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 96

ISSN 2277-5099 | © 2016 Bonfring

Page 5: Design and Implementation of Stress Management …journal.bonfring.org/papers/sesc/volume6/BIJ-8251.pdfHubli, India Hubli, India vinayakbaddi618@gmail.com vaibhavjrevankar1995@gmail.com

Figure 9. Cloud page using Thingspeak.

The Table I shows the results obtained after conducting a small survey among various people.

Table I.Results of Various Sensors.

V. CONCLUSION

The prototype of the STRESS MANAGEMENT SYSTEM is designed

using cost effective components and open source software. The developed proto- type is able to detect the stress in the person and make him/her relaxed. The prototype is intended to commercialize as a cost

effective product and affordable by all and eliminates the usage of huge machines to detect heart rate etc. This will introduce a higher level of interactivity and a whole new breed of Bio-medical application in the market. Further same thing can be extended for cloud based applications to get the data report anywhere in the world.

REFERENCES [1] Uma Devi .T Associate Professor, Aurora PG College ”A

Study on Stress Management and Coping Strategies With Reference to IT Companies ” Journal of Information Technology and Economic Development 2(2), 30-48, October 2011 30.

[2] G.Lewi Reno.Sorensen, Guerre. ”Study on Stress” IEEE International Communication Conference, 21:9771000, August 2003.

[3] http://www.instractables.com/stress-detector [4] https://en.wikipedia.org/wiki/pulse-sensor [5] https://en.wikipedia.org/wiki/GSR [6] https://courses.cit.cornell.edu/ee476/FinalProjects/s2007/jsc5

9_ecl37/jsc59_ecl37/report2.html [7] www.Helpguide.org

Bonfring International Journal of Software Engineering and Soft Computing, Vol. 6, Special Issue, October 2016 97

ISSN 2277-5099 | © 2016 Bonfring