|
a |
|
b/README.md |
|
|
1 |
# Stress Detection |
|
|
2 |
## Description: |
|
|
3 |
This is a real time face stress detection model.The model is image processing based model which is having two parts |
|
|
4 |
- Emotion Recognition |
|
|
5 |
- Stress level calculation |
|
|
6 |
|
|
|
7 |
The emotion recognition model will return the emotion predicted real time. The model classifies face as stressed and not stressed. |
|
|
8 |
A model is trained on the fer2013 dataset. |
|
|
9 |
|
|
|
10 |
The stress level is calculated with the help of eyebrows contraction and displacemnent from the mean position. The distance between the |
|
|
11 |
left and right eyebrow is being calculated and then the stress level is calculated using exponential function and normalized between 1 to 100. |
|
|
12 |
|
|
|
13 |
*** Important**** |
|
|
14 |
Before running the eyebrow_detection.py first download file in the same folder using this [link](https://github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2) |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
## Procedure: |
|
|
18 |
1. Real time web cam feed |
|
|
19 |
2. Detect faces |
|
|
20 |
3. Detect eyebrows both left and right |
|
|
21 |
4. Predict stress/not stress |
|
|
22 |
5. Calculate the stress level |
|
|
23 |
|
|
|
24 |
## Accuracy/Usage: |
|
|
25 |
- Run the eyebrow_detection.py file and sit straight infront of the webcam. |
|
|
26 |
- Do not run the emotion_recognitio.py. Use only if you want to retrain the model. |
|
|
27 |
- Try to be clear with your emotion, Fakeness cannot be detected. |
|
|
28 |
- The model is moderately accurate because the data could not be arranged within stipulated time. |
|
|
29 |
|
|
|
30 |
## Improvement Strategy: |
|
|
31 |
The model can be improved by including other facial features inputs as well. The feature include: |
|
|
32 |
- Lip movement |
|
|
33 |
- Head positioning |
|
|
34 |
- Eye blinking |
|
|
35 |
- Gaze movement |
|
|
36 |
The following features can be detected and a cummulative function can be defined to give out the total stress value. |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|