SlideShare a Scribd company logo
ACompactDeepLearningModelforRobustFacialEmotion
RecognitionwithAnacondaPythonKerasandPandaspackages
UnderTheGuidanceof: Asst. Prof. Mr.Akhil Mathew Philip
DEPARTMENTOFCOMPUTERAPPLICATIONS
VISHNU V
ROLL N0 :60
REGISTRATION NO:LMGP16MCA061
DEPT OF COMPUTER APPLICATIONS
SAINTGITS COLLEGE OF ENGINEERING
2017-2019 BATCH
ORGANIZATION DETAILS
ABSTRACT
• User’s emotion using its facial expressions will be detected.
These expressions can be derived from the live feed via
system's camera or any pre-existing image available in the
memory. Emotions possessed by humans can be recognized
and has a vast scope of study in the computer vision industry
upon which several researches have already been done.
• We propose a compact CNN model for facial expression
recognition.
• The work has been implemented using Python Open Source
Computer Vision Library (OpenCV) and NumPy,pandas,keras
packages. The scanned image (testing dataset) is being
compared to training dataset and thus emotion is predicted.
OBJECTIVES
• The objective of this paper is to develop a system which can
analyze the image and predict the expression of the person.
• Development of this software is more useful for police
officers to predict the current emotional state of prisoners and
criminals.
• This project is also useful for doctor's to predict expression of
children which are affected by autism.
• The major application of this work would be to predict a
person’s emotion based on his face images, video frames etc.
This can even be applied for evaluating the public option
relating to a particular movie form the video reaction posts on
social Medias.
CHALLENGES
• low-intensity expressions which are difficult to
distinguish with insufficient image resolution.
• Data collection for facial expression recognition is
expensive and time-consuming.
• Recognizing precise expression from a variety of
expression forms of different people would be a huge
problem. To solve this problem, this project generates an
Emotion Detection Model to extract emotion from video
frame image input.
FACIALEXPRESSION
• Facial expression is one of the most powerful, natural and
universal signals for human beings to convey their emotional
states and intentions.
• The frame-to-sequence approach successfully exploits
temporal information and it improves the accuracies on the
public benchmarking databases.
• Prototypical facial expressions are anger, disgust, fear,
happiness, sadness, neutral and surprise. Contempt was
subsequently added as one of the basic emotions.
• Behaviors, actions, poses, facial expressions and speech;
these are considered as channels that convey human emotions.
STEPS IN PROCESS
• This work mainly focuses on psychological approach of
COLOUR CIRCLE-EMOTION relation to find the accurate
emotion behind the video frame input image (image input).
• At first the whole image will be image preprocessed and pixel by
pixel data studied.
• The combinations of these circles based on combined data will
result into a new color.
• This resulted color will be directly linked to a particular
emotion..
PACKAGES USED
• Numpy- NumPy is a library for the Python programming language,
adding support for large, multi-dimensional arrays and matrices, along with
a large collection of high-level mathematical functions to operate on these
arrays.
• Scipy-SciPy is a free and open-source Python library used for scientific
computing and technical computing. SciPy contains modules for
optimization, linear algebra, integration, interpolation, special functions,
FFT, signal and image processing, ODE solvers and other tasks common in
science and engineering.
• Mathplotlib- Matplotlib is a Python 2D plotting library which produces
publication quality figures in a variety of hardcopy formats and interactive
environments across platforms.
• Opencv- OpenCV is a Python library which is designed to solve computer
vision problems. OpenCV supports a wide variety of programming
languages such as C++, Python, Java etc. Support for multiple platforms
including Windows, Linux, and Mac OS.
PACKAGES USED
• Pandas- pandas is an open source, BSD-licensed library providing high-
performance, easy-to-use data structures and data analysis tools for the
Python programming language. pandas is a NumFOCUS sponsored
project. This will help ensure the success of development of pandas as a
world-class open-source project, and makes it possible to donate to the
project.
• Theano-Theano is a Python library that allows you to define, optimize,
and evaluate mathematical expressions involving multi-dimensional arrays
efficiently. Theano features: tight integration with NumPy, transparent use
of a GPU , efficient symbolic differentiation , speed and stability
optimizations, dynamic C code generation, extensive unit-testing and self-
verification
• Keras- Keras is an open-source neural-network library written in Python.
It is capable of running on top of Tensor Flow, Microsoft Cognitive
Toolkit, Theano, or PlaidML. Designed to enable fast experimentation
with deep neural networks, it focuses on being user-friendly, modular, and
extensible.
PACKAGES USED
• Seaborn- Seaborn is a Python data visualization library based on
matplotlib. It provides a high-level interface for drawing attractive and
informative statistical graphics.
• H5py- The h5py package is a Pythonic interface to the HDF5 binary data
format.HDF5 lets you store huge amounts of numerical data, and easily
manipulate that data from NumPy.
• Tensor flow-Tensor Flow is a free and open-source software library for
dataflow and differentiable programming across a range of tasks. It is a
symbolic math library, and is also used for machine learning applications
such as neural networks.
• Python-dateutil-The dateutil module provides powerful extensions to the
standard date time module, available in Python 2.3+.
• Pytz- pytz brings the Olson tz database into Python. This library allows
accurate and cross platform time zone calculations using Python 2.4 or
higher. It also solves the issue of ambiguous times at the end of daylight
saving time.
PACKAGES USED
• Pyyaml-YAML is a data serialization format designed for human
readability and interaction with scripting languages.PyYAML is a
YAML parser and emitter for the Python programming language.
WORKING
• This paper proposes a prototype system which automatically
recognizes the emotion represented on a face.
• Thus a neural network based solution combined with image
processing is used in classifying the universal emotions.
• Happiness, Sadness, Anger, Disgust, Surprise and Fear.
Colored frontal face images are given as input to the prototype
system.
• There are basically 22 expression are there ,for our purpose
we only use basic 7 emotions.
WORKING
• After the face is detected, image processing based feature point
extraction method is used to extract a set of selected feature
points.
• Finally, a set of values obtained after processing those
extracted feature points are given as input to the neural
network to recognize the emotion contained .
• The three main steps that are common in automatic deep FER,
i.e., pre-processing, deep feature learning and deep feature
classification.
WORKING
DATASETTRAINING
• Matrix generation from given images
• Convolution
• Pooling
• Flattening
• Storing (H5py)
CPU USAGE GRAPH
WORKING
Trained Dataset Validation image
MODULES
• Module 1:- Data analysis
• Module 2:- Training the dataset
• Module 3:-Data identification
Related Works
• Face detection
• Missing Person identification
• Object detection
• Vehicle detection
• Pedestrian identification
FUTURE ENHANCEMENT
User’s emotion using its facial expressions will be detected. These
expressions can be derived from the live feed via system's camera
or using web cameras.
HARDWARE REQUIREMENTS
TRAINING
• System with min of 16 GB ram
• Processor I7 or above
• Minimum 5 GB memory required.
TESTING
• System with min of 8 GB ram
• Processor I5 or above
• Minimum 5 GB memory required.
EXPERIMENTS WITH DATASET
DATASET
433 "Angry Human Face", 510 "Happy Human Face", 425 Disgusted Human Face",
339 "Fearful Human Face", 369"Neutral Human Face", 436 "Sad Human Face",
469"Surprised Human Face" and 155 “Contempt Human Face”. Totally 3136 images
datasets.
https://drive.google.com/drive/folders/1U3KEp_Ruk-CXXvHNmJcnIVTrjE1wCHKM?usp=sharing
SCREEN SHOTS
ANGER
SCREEN SHOTS
HAPPY
SCREEN SHOTS
NEUTRAL
SCREEN SHOTS
FEAR
SCREEN SHOTS
DISGUSTED
SCREEN SHOTS
CONTEMPT
SCREEN SHOTS
SURPRISE
SCREEN SHOTS
SAD
GITHUB REPOSITORYDETAILS
LINK:https://github.com/vishnu02424/facial-emotion-recognition
PAPER WRITTEN
END

More Related Content

What's hot

Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)
AbhiAchalla
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural networkSmriti Tikoo
 
Facial Expression Recognition via Python
Facial Expression Recognition via PythonFacial Expression Recognition via Python
Facial Expression Recognition via Python
Saurav Gupta
 
Emotion recognition
Emotion recognitionEmotion recognition
Emotion recognition
Madhusudhan G
 
Emotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.pptEmotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.ppt
Gopi Naidu
 
Predicting Emotions through Facial Expressions
Predicting Emotions through Facial Expressions  Predicting Emotions through Facial Expressions
Predicting Emotions through Facial Expressions
twinkle singh
 
4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognitionNgaire Taylor
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognition
ijtsrd
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
Dharmesh Tank
 
Face detection ppt
Face detection pptFace detection ppt
Face detection ppt
Pooja R
 
Emotion recognition using facial expressions and speech
Emotion recognition using facial expressions and speechEmotion recognition using facial expressions and speech
Emotion recognition using facial expressions and speech
Lakshmi Sarvani Videla
 
Face recognization
Face recognizationFace recognization
Face recognization
leenak770
 
Facial Expression Recognition (FER) using Deep Learning
Facial Expression Recognition (FER) using Deep LearningFacial Expression Recognition (FER) using Deep Learning
Facial Expression Recognition (FER) using Deep Learning
Emmeline Tsen
 
Facial expression recognition based on image feature
Facial expression recognition based on image featureFacial expression recognition based on image feature
Facial expression recognition based on image feature
Tasnim Tara
 
SPEECH BASED EMOTION RECOGNITION USING VOICE
SPEECH BASED  EMOTION RECOGNITION USING VOICESPEECH BASED  EMOTION RECOGNITION USING VOICE
SPEECH BASED EMOTION RECOGNITION USING VOICE
VamshidharSingh
 
Facial emotion recognition
Facial emotion recognitionFacial emotion recognition
Facial emotion recognitionAnukriti Dureha
 
Emotion based music player
Emotion based music playerEmotion based music player
Emotion based music player
Nizam Muhammed
 
Presentation on FACE MASK DETECTION
Presentation on FACE MASK DETECTIONPresentation on FACE MASK DETECTION
Presentation on FACE MASK DETECTION
ShantaJha2
 
Speech emotion recognition
Speech emotion recognitionSpeech emotion recognition
Speech emotion recognition
saniya shaikh
 
Object detection
Object detectionObject detection
Object detection
Jksuryawanshi
 

What's hot (20)

Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
 
Facial Expression Recognition via Python
Facial Expression Recognition via PythonFacial Expression Recognition via Python
Facial Expression Recognition via Python
 
Emotion recognition
Emotion recognitionEmotion recognition
Emotion recognition
 
Emotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.pptEmotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.ppt
 
Predicting Emotions through Facial Expressions
Predicting Emotions through Facial Expressions  Predicting Emotions through Facial Expressions
Predicting Emotions through Facial Expressions
 
4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognition
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
 
Face detection ppt
Face detection pptFace detection ppt
Face detection ppt
 
Emotion recognition using facial expressions and speech
Emotion recognition using facial expressions and speechEmotion recognition using facial expressions and speech
Emotion recognition using facial expressions and speech
 
Face recognization
Face recognizationFace recognization
Face recognization
 
Facial Expression Recognition (FER) using Deep Learning
Facial Expression Recognition (FER) using Deep LearningFacial Expression Recognition (FER) using Deep Learning
Facial Expression Recognition (FER) using Deep Learning
 
Facial expression recognition based on image feature
Facial expression recognition based on image featureFacial expression recognition based on image feature
Facial expression recognition based on image feature
 
SPEECH BASED EMOTION RECOGNITION USING VOICE
SPEECH BASED  EMOTION RECOGNITION USING VOICESPEECH BASED  EMOTION RECOGNITION USING VOICE
SPEECH BASED EMOTION RECOGNITION USING VOICE
 
Facial emotion recognition
Facial emotion recognitionFacial emotion recognition
Facial emotion recognition
 
Emotion based music player
Emotion based music playerEmotion based music player
Emotion based music player
 
Presentation on FACE MASK DETECTION
Presentation on FACE MASK DETECTIONPresentation on FACE MASK DETECTION
Presentation on FACE MASK DETECTION
 
Speech emotion recognition
Speech emotion recognitionSpeech emotion recognition
Speech emotion recognition
 
Object detection
Object detectionObject detection
Object detection
 

Similar to Emotion recognition using image processing in deep learning

Python Open CV
Python Open CVPython Open CV
Python Open CV
Tarun Bamba
 
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch  synopsis Minor project pptxTransfer Leaning Using Pytorch  synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
Ankit Gupta
 
Journey of Generative AI
Journey of Generative AIJourney of Generative AI
Journey of Generative AI
thomasjvarghese49
 
Automatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
vatsal199567
 
Big Data Analytics (ML, DL, AI) hands-on
Big Data Analytics (ML, DL, AI) hands-onBig Data Analytics (ML, DL, AI) hands-on
Big Data Analytics (ML, DL, AI) hands-on
Dony Riyanto
 
Week1- Introduction.pptx
Week1- Introduction.pptxWeek1- Introduction.pptx
Week1- Introduction.pptx
fahmi324663
 
Introduction To TensorFlow
Introduction To TensorFlowIntroduction To TensorFlow
Introduction To TensorFlow
Spotle.ai
 
Poonam data scientist
Poonam data scientistPoonam data scientist
Poonam data scientist
Poonam Agrawal
 
Face Recognition - Deep Learning
Face Recognition - Deep LearningFace Recognition - Deep Learning
Face Recognition - Deep Learning
Aashish Chaubey
 
OWF14 - Big Data : The State of Machine Learning in 2014
OWF14 - Big Data : The State of Machine  Learning in 2014OWF14 - Big Data : The State of Machine  Learning in 2014
OWF14 - Big Data : The State of Machine Learning in 2014
Paris Open Source Summit
 
Human Emotion Recognition using Machine Learning
Human Emotion Recognition using Machine LearningHuman Emotion Recognition using Machine Learning
Human Emotion Recognition using Machine Learning
ijtsrd
 
Fake news detection
Fake news detection Fake news detection
Fake news detection
shalushamil
 
Novi sad ai event 1-2018
Novi sad ai event 1-2018Novi sad ai event 1-2018
Novi sad ai event 1-2018
Jovan Stojanovic
 
Cognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from MicrosoftCognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from Microsoft
Łukasz Grala
 
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine LearningMakine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
Ali Alkan
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
hkabir55
 
Deep Learning with CNTK
Deep Learning with CNTKDeep Learning with CNTK
Deep Learning with CNTK
Ashish Jaiman
 
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Maurice Nsabimana
 
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
Impetus Technologies
 
Human age and gender Detection
Human age and gender DetectionHuman age and gender Detection
Human age and gender Detection
AbhiAchalla
 

Similar to Emotion recognition using image processing in deep learning (20)

Python Open CV
Python Open CVPython Open CV
Python Open CV
 
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch  synopsis Minor project pptxTransfer Leaning Using Pytorch  synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
 
Journey of Generative AI
Journey of Generative AIJourney of Generative AI
Journey of Generative AI
 
Automatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
 
Big Data Analytics (ML, DL, AI) hands-on
Big Data Analytics (ML, DL, AI) hands-onBig Data Analytics (ML, DL, AI) hands-on
Big Data Analytics (ML, DL, AI) hands-on
 
Week1- Introduction.pptx
Week1- Introduction.pptxWeek1- Introduction.pptx
Week1- Introduction.pptx
 
Introduction To TensorFlow
Introduction To TensorFlowIntroduction To TensorFlow
Introduction To TensorFlow
 
Poonam data scientist
Poonam data scientistPoonam data scientist
Poonam data scientist
 
Face Recognition - Deep Learning
Face Recognition - Deep LearningFace Recognition - Deep Learning
Face Recognition - Deep Learning
 
OWF14 - Big Data : The State of Machine Learning in 2014
OWF14 - Big Data : The State of Machine  Learning in 2014OWF14 - Big Data : The State of Machine  Learning in 2014
OWF14 - Big Data : The State of Machine Learning in 2014
 
Human Emotion Recognition using Machine Learning
Human Emotion Recognition using Machine LearningHuman Emotion Recognition using Machine Learning
Human Emotion Recognition using Machine Learning
 
Fake news detection
Fake news detection Fake news detection
Fake news detection
 
Novi sad ai event 1-2018
Novi sad ai event 1-2018Novi sad ai event 1-2018
Novi sad ai event 1-2018
 
Cognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from MicrosoftCognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from Microsoft
 
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine LearningMakine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
Makine Öğrenmesi ile Görüntü Tanıma | Image Recognition using Machine Learning
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
 
Deep Learning with CNTK
Deep Learning with CNTKDeep Learning with CNTK
Deep Learning with CNTK
 
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
 
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
Deep Learning: Evolution of ML from Statistical to Brain-like Computing- Data...
 
Human age and gender Detection
Human age and gender DetectionHuman age and gender Detection
Human age and gender Detection
 

Recently uploaded

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 

Recently uploaded (20)

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 

Emotion recognition using image processing in deep learning

  • 1. ACompactDeepLearningModelforRobustFacialEmotion RecognitionwithAnacondaPythonKerasandPandaspackages UnderTheGuidanceof: Asst. Prof. Mr.Akhil Mathew Philip DEPARTMENTOFCOMPUTERAPPLICATIONS VISHNU V ROLL N0 :60 REGISTRATION NO:LMGP16MCA061 DEPT OF COMPUTER APPLICATIONS SAINTGITS COLLEGE OF ENGINEERING 2017-2019 BATCH
  • 3. ABSTRACT • User’s emotion using its facial expressions will be detected. These expressions can be derived from the live feed via system's camera or any pre-existing image available in the memory. Emotions possessed by humans can be recognized and has a vast scope of study in the computer vision industry upon which several researches have already been done. • We propose a compact CNN model for facial expression recognition. • The work has been implemented using Python Open Source Computer Vision Library (OpenCV) and NumPy,pandas,keras packages. The scanned image (testing dataset) is being compared to training dataset and thus emotion is predicted.
  • 4. OBJECTIVES • The objective of this paper is to develop a system which can analyze the image and predict the expression of the person. • Development of this software is more useful for police officers to predict the current emotional state of prisoners and criminals. • This project is also useful for doctor's to predict expression of children which are affected by autism. • The major application of this work would be to predict a person’s emotion based on his face images, video frames etc. This can even be applied for evaluating the public option relating to a particular movie form the video reaction posts on social Medias.
  • 5. CHALLENGES • low-intensity expressions which are difficult to distinguish with insufficient image resolution. • Data collection for facial expression recognition is expensive and time-consuming. • Recognizing precise expression from a variety of expression forms of different people would be a huge problem. To solve this problem, this project generates an Emotion Detection Model to extract emotion from video frame image input.
  • 6. FACIALEXPRESSION • Facial expression is one of the most powerful, natural and universal signals for human beings to convey their emotional states and intentions. • The frame-to-sequence approach successfully exploits temporal information and it improves the accuracies on the public benchmarking databases. • Prototypical facial expressions are anger, disgust, fear, happiness, sadness, neutral and surprise. Contempt was subsequently added as one of the basic emotions. • Behaviors, actions, poses, facial expressions and speech; these are considered as channels that convey human emotions.
  • 7. STEPS IN PROCESS • This work mainly focuses on psychological approach of COLOUR CIRCLE-EMOTION relation to find the accurate emotion behind the video frame input image (image input). • At first the whole image will be image preprocessed and pixel by pixel data studied. • The combinations of these circles based on combined data will result into a new color. • This resulted color will be directly linked to a particular emotion..
  • 8. PACKAGES USED • Numpy- NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. • Scipy-SciPy is a free and open-source Python library used for scientific computing and technical computing. SciPy contains modules for optimization, linear algebra, integration, interpolation, special functions, FFT, signal and image processing, ODE solvers and other tasks common in science and engineering. • Mathplotlib- Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. • Opencv- OpenCV is a Python library which is designed to solve computer vision problems. OpenCV supports a wide variety of programming languages such as C++, Python, Java etc. Support for multiple platforms including Windows, Linux, and Mac OS.
  • 9. PACKAGES USED • Pandas- pandas is an open source, BSD-licensed library providing high- performance, easy-to-use data structures and data analysis tools for the Python programming language. pandas is a NumFOCUS sponsored project. This will help ensure the success of development of pandas as a world-class open-source project, and makes it possible to donate to the project. • Theano-Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. Theano features: tight integration with NumPy, transparent use of a GPU , efficient symbolic differentiation , speed and stability optimizations, dynamic C code generation, extensive unit-testing and self- verification • Keras- Keras is an open-source neural-network library written in Python. It is capable of running on top of Tensor Flow, Microsoft Cognitive Toolkit, Theano, or PlaidML. Designed to enable fast experimentation with deep neural networks, it focuses on being user-friendly, modular, and extensible.
  • 10. PACKAGES USED • Seaborn- Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. • H5py- The h5py package is a Pythonic interface to the HDF5 binary data format.HDF5 lets you store huge amounts of numerical data, and easily manipulate that data from NumPy. • Tensor flow-Tensor Flow is a free and open-source software library for dataflow and differentiable programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks. • Python-dateutil-The dateutil module provides powerful extensions to the standard date time module, available in Python 2.3+. • Pytz- pytz brings the Olson tz database into Python. This library allows accurate and cross platform time zone calculations using Python 2.4 or higher. It also solves the issue of ambiguous times at the end of daylight saving time.
  • 11. PACKAGES USED • Pyyaml-YAML is a data serialization format designed for human readability and interaction with scripting languages.PyYAML is a YAML parser and emitter for the Python programming language.
  • 12. WORKING • This paper proposes a prototype system which automatically recognizes the emotion represented on a face. • Thus a neural network based solution combined with image processing is used in classifying the universal emotions. • Happiness, Sadness, Anger, Disgust, Surprise and Fear. Colored frontal face images are given as input to the prototype system. • There are basically 22 expression are there ,for our purpose we only use basic 7 emotions.
  • 13. WORKING • After the face is detected, image processing based feature point extraction method is used to extract a set of selected feature points. • Finally, a set of values obtained after processing those extracted feature points are given as input to the neural network to recognize the emotion contained . • The three main steps that are common in automatic deep FER, i.e., pre-processing, deep feature learning and deep feature classification.
  • 14. WORKING DATASETTRAINING • Matrix generation from given images • Convolution • Pooling • Flattening • Storing (H5py)
  • 17. MODULES • Module 1:- Data analysis • Module 2:- Training the dataset • Module 3:-Data identification Related Works • Face detection • Missing Person identification • Object detection • Vehicle detection • Pedestrian identification
  • 18. FUTURE ENHANCEMENT User’s emotion using its facial expressions will be detected. These expressions can be derived from the live feed via system's camera or using web cameras.
  • 19. HARDWARE REQUIREMENTS TRAINING • System with min of 16 GB ram • Processor I7 or above • Minimum 5 GB memory required. TESTING • System with min of 8 GB ram • Processor I5 or above • Minimum 5 GB memory required.
  • 20. EXPERIMENTS WITH DATASET DATASET 433 "Angry Human Face", 510 "Happy Human Face", 425 Disgusted Human Face", 339 "Fearful Human Face", 369"Neutral Human Face", 436 "Sad Human Face", 469"Surprised Human Face" and 155 “Contempt Human Face”. Totally 3136 images datasets. https://drive.google.com/drive/folders/1U3KEp_Ruk-CXXvHNmJcnIVTrjE1wCHKM?usp=sharing
  • 31. END