EmoSense
According to research 18.5% of the world population is suffering from mental illness out of which majority of the problems are related to depression, personality disorders etc. .Most of these problems can be diagnosed before they are triggered if the people suffering from stress are recognized.
2025-06-28 16:32:23 - Adil Khan
EmoSense
Project Area of Specialization Artificial IntelligenceProject SummaryAccording to research 18.5% of the world population is suffering from mental illness out of which majority of the problems are related to depression, personality disorders etc. .Most of these problems can be diagnosed before they are triggered if the people suffering from stress are recognized.
The goal of the Emotion Recognition System (EmoSense) is to detect user’s emotional status system by combining the analysis of Heart Rate Variability (HRV) and the recognition of facial expressions. As, psychological disorders are relatively difficult to detect in normal Conditions. It is hope to determine, as early as possible, the presence of these disorders by measurement of HRV and recognition of facial expressions. Also, abnormal emotions due to illness are hoped to be diagnosed as early as possible, in order to prevent tragedies.
The Proposed System consist of 2 input Electrocardiography and Facial Image. Both inputs are collected through ECG module and audiCam. The collected data is then send to the cloud using wifi module where Emotion recognition process starts. The process includes certain algorithms for collecting the HRV attributes and facial feature extraction using which 13 key attributes are obtained which will define the emotion of the user. The trained model then checks the all 13 attributes and computes the result. The cloud then send the result (recognized mood) to the application where the user can view the recognized emotion
Project Objectives- Most of the time Mental Illness is not reflected in people, mostly it battles inside of a person head, therefore it is a proper mechanism to extract and to know what they feel inside silently which can be reflected through persons heart rate variability and can be monitored using any daily used electronic device(e.g smart phones etc)
- To provides more refined and accurate solution for emotion detection through heart rate variability and facial instead of other researches which do have other methods example gsr, eeg which might be inconvenient to use for long duration in daily life or inappropriate in some places like sleeping, walking, talking etc.
- To be portable and can be used anywhere anytime, also other researches takes only heart rate variability in place to identify emotions unlike this research which would have both facial and heart rate variability attributes which would reflect more accurate emotion recognition.
- Provide User with his/her emotional status as a result of methods and procedures applied in measurement of Emotion Recognition, through an Android Application with an intuitive and friendly user interface
Since our requirements are very well documented, clear and fixed therefore we will be using linear sequential Model I.e. Waterfall model
Requirement Analysis:
In the first phase the requirements and features that are necessary for EmoSense(Emotion Recognition System) are gathered and then there will be analysis for the requirement which will ensure the feasibility of the project .
System Design:
In the second phase the model and architecture of the system will be developed on the basis of requirements that are approved. The design phase includes, Data flow diagrams, Use cases, Prototypes etc.
Implementation:
In this phase cloud and hardware is configured at the first place, and then programs with certain algorithms are developed in order to take ECG and Facial images as an input and recognized emotion as an output. An android application is then build which can show the result of the evaluated emotion
Testing:
After the development of the system testing phase is initiated. The system will be tested on different test samples in order to calculate the accuracy of the system. There will be different type of testing applied , such as penetration testing , stress testing , black box & white box testing
Deployment:
In this phase the tested product is deployed , the programs that implement algorithms for detecting the emotions are deployed on cloud & programs responsible for taking the input through users are deployed on aurdiuno .
Block Diagram:

The Emotion recognition process requires two inputs Electrocardiography (ECG) and Facial Image which is initiated by the user. The Inputs are sent to cloud where, The QRS Detection algorithm is applied to the first input (ECG Signals) .When the QRS wave is detected, R-R Interval between two nodes is calculated which is further processed for HRV Analysis .In HRV Analysis the QRS waves are analyzed and 10 attributes are extracted (Including standard deviation, Root mean square, etc) from the first input. Similarly for the second input (Facial image), Face recognition takes place in the first place then 3 features are extracted (Feature extraction) from the face (Including eyeball distance, mouth openness, height change of eyeball). Fuzzy Rule is then applied on 13 extracted attributes that provides a fuzzy set of 4 Emotions and chances of each of them. Results are then sent to android application so that user can view his/her emotion.
The development of EmoSense is according to an international research paper published on IEEE i.e .The Emotion Recognition System with Heart Rate Variability and Facial Image Features by Pei-Yang Hsieh and Chiun-Li Chin which provides.
Benefits of the Project- A proper package of system all in one system would be developed including camera ECG sensor and app for health monitoring which would be accessible to people at home saving their traveling time and cost for consulting experts (except that of any serious condition which needed to be handled in hospital conditions).
- A system would be developed which would be used for monitoring of health or issues regarding health (stress, anxiety, diseases, diabetes, irregularities etc.)
- Recognizes an accurate emotion through limited inputs (Electrocardiography and Facial Image)
- Portable and easy to use can be use like a wearable gadget. (e.g. wearable watch)
- System can be extended to other devices that can help in up lifting mood
Following would be our Final Deliverables:
- A Prototype hand gadget (like wearable watch):
Is a package containing electrodes for measuring ECG. Also, the gadget will be responsible for capturing image through AudiCam and sending the data to cloud.
- An Android Application:
That will receive processed results from cloud and provide an output in an intuitive and friendly User Interface.

| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Total in (Rs) | 71300 | |||
| Aurdino Uno R3 | Equipment | 1 | 4500 | 4500 |
| Single Lead ECG Module | Equipment | 1 | 6000 | 6000 |
| Arducam Mini Module Camera Shield with OV2640 2 Megapixels Lens for Ar | Equipment | 1 | 3000 | 3000 |
| Windows Azure Cloud Servers (6 Months) | Equipment | 6 | 6000 | 36000 |
| Google Cloud SQL (Database Host) | Equipment | 6 | 1400 | 8400 |
| Wearable Gadget Prototype | Equipment | 1 | 1000 | 1000 |
| Arduino Wifi Module | Equipment | 1 | 1000 | 1000 |
| 12 volt lithium ion battery rechargeable | Equipment | 1 | 1300 | 1300 |
| Circuit Board | Equipment | 1 | 100 | 100 |
| Miscellaneous | Miscellaneous | 1 | 10000 | 10000 |