SlideShare a Scribd company logo
Predicting Emotions through
Facial Expressions
MADE BY-
TWINKLE SINGH
URJA THAKUR
Introduction about the minor project
Developing a computational model of face recognition is
quite difficult because faces are complex ,multidimensional
and meaningful visual stimuli. To make it easier and more
natural to interact with computers, people put forward new
demands to human computer interaction.
Project aim :A facial expression emotion
recognition system is proposed which consist of
two parts face recognition and facial expression
recognition .
Problem Statement
• Three basic problems need to be solved:
▫ Face detection
▫ Facial expression data extraction
▫ Facial expression classification
• Both static images and image sequences have
been used in studies surveyed in the PROJECT
Solution Statement that are proposed :
• Given an image, to identify it as a face and/or
extract face images from it.
• To retrieve the similar images (based on a
heuristic) from the given database of face images.
• And extract the facial expression.
Algorithm used:
for face recognition
The Principal Component Analysis (PCA) and
Linear Discriminative Analysis (LDA)
face expression recognition .
Eigen space and vector (based on PCA and
LDA)
Face recognition : Most Basic algorithm for face
recognition (Pattern Matching) is Principal Component
Analysis(PCA). One another pattern matching algorithm,
Linear Discriminative Analysis (LDA) is also being
applied.
Facial expression recogniton :
o The task of facial recogniton is discriminating input
signals (image data) into several classes (persons).
o The input signals are highly noisy yet the input images
are not completely random and in spite of their differences
there are patterns which occur in any input signal.
o These characteristic features are called eigenfaces in the
facial recognition domain (or principal components
generally).
o They can be extracted out of original image data by
means of a mathematical tool called Principal Component
Analysis (PCA).
Software:
MATLAB is being used as tool.
WHY MATLAB? NOT OpenCV !!
• Matlab --> Faster programming, less efficient
• OpenCV -->Slower programming, more efficient
MATLAB provide very nice platform for
computational problems.
Matlab, is more recommended since we will be able
to program faster. If you already had a result of your
research, and want to make an application with it,
OpenCV recommended, it will take longer to
program.
Algorithm
• FACE RECOGNITION
Principal Component Analysis (PCA)
 An image can be considered as 2D array or Matrix.
 Each pixel can be classified as variable(one axis in co-
ordinate system in which image is represented) for
image. The idea is that a high-dimensional dataset is
often described by correlated variables and therefore only
a few meaningful dimensions account for most of the
information.
 The PCA method finds the directions with the greatest
variance in the data, called principal components.
• Example
In this particular example, data set is given in 2
dimension space(x1,x2).
• Linear discriminant analysis (LDA)
• The LDA perform dimensionality reduction
while preserving as much of the class
discriminatory information as possible.
• . It seeks to find directions along which the
classes are best separated.
• The LDA takes into consideration the scatter
within-classes but also the scatter between-
classes.
• It maximize between classes scattering.
• It minimizes within class scattering.
• So maximize ratio of between classes scattering
and within class ratio. This can be done by
finding Eigen Values.
▫ FACIAL EXPRESSION RECOGNITION
Eigen faces
• Most of the studies perform an emotion
classification and use the following
6 basic categories: happiness,
sadness, surprise,
fear, anger, and disgust.
Eigen Space and Eigen Faces:
 Face Images are projected into
a feature space (“Face Space”)
that best encodes the variation
among known face images.
 The face space is defined by the “eigenfaces”, which
are the eigenvectors of the set of faces.
STEPS
 Initialization :
 Acquire the training set and calculate eigenfaces
(using PCA projections) which define eigenspace.
 When a new face is encountered, calculate its weight.
 Determine if the image is face.
 If yes, classify the weight pattern as known or
unknown.
 (Learning) If the same unknown face is seen several
times incorporate it into known faces.
PCA
Main assumption of PCA approach:
• Face space forms a cluster in image space.
• PCA gives suitable representation.
Eigenfaces (1)
• Calculation of Eigenfaces
(1) Calculate average face : v.
(2) Collect difference between training images and
average face in matrix A (M by N), where M is the number of
pixels and N is the number of images.
(3) The eigenvectors of covariance matrix C (M by M)
give the eigenfaces.
▫ M is usually big, so this process would be time consuming.
▫ What to do?
Eigenfaces (2)
• Calculation of Eigenvectors of C
If the number of data points is smaller than the dimension
(N<M), then there will be only N-1 meaningful eigenvectors.
Instead of directly calculating the eigenvectors of C, we can
calculate the eigenvalues and the corresponding
eigenvectors of a much smaller matrix L (N by N).
if λi are the eigenvectors of L then A λi are the eigenvectors for
C.
▫ The eigenvectors are in the descent order of the corresponding
eigenvalues.
Eigenfaces (3)
• Representation of Face Images using Eigenfaces
• The training face images and new face images
can be represented as linear combination of the
eigenfaces.
• When we have a face image u :
Since the eigenvectors are orthogonal :
Eigenfaces (4)
• Experiment and Results
Data used here are from the ORL database of
faces. Facial images of 16 persons are used. - Tra
iTest set contains 16×3 images.
REFERENCES
• Automatic analysis of facial actions, IEEE paper, vol 8 ,2017
• A facial expression emotion recognition based human robot interaction
system ,IEEE journal , october 2017
• http://www.cs.ucsb.edu/%7Emturk/Papers/mturk-CVPR91.pdf
• http://openbio.sourceforge.net/resources/eigenfaces/eigenfaces-
html/facesOptions.html
• http://face-rec.org/ - Facial Recognition homepage
• https://in.mathworks.com/matlabcentral/fileexchange/33325-
eigenface-based-facial-expression-classification
• Cambridge University Computer Laboratory The Digital Technology
Group orl databse.
• Ekman P, Friesen WV. The Facial Action Coding System A Technique
for the Measurement of Facial Movement. San Francisco: Consulting
Psychologists Press; 1978. http://face-and-
emotion.com/dataface/facs/manual/TitlePage.html

More Related Content

What's hot

4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition
Ngaire Taylor
 
Facel expression recognition
Facel expression recognitionFacel expression recognition
Facel expression recognition
Mintoo Jakhmola
 
Facial recognition technology by vaibhav
Facial recognition technology by vaibhavFacial recognition technology by vaibhav
Facial recognition technology by vaibhav
Vaibhav P
 
Emotion detection using cnn.pptx
Emotion detection using cnn.pptxEmotion detection using cnn.pptx
Emotion detection using cnn.pptx
RADO7900
 
Project Face Detection
Project Face Detection Project Face Detection
Project Face Detection
Abu Saleh Musa
 
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
 
Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approach
AshwinRachha
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
Zara Tariq
 
EMOTION DETECTION USING AI
EMOTION DETECTION USING AIEMOTION DETECTION USING AI
EMOTION DETECTION USING AI
Aantariksh Developers
 
Emotion recognition
Emotion recognitionEmotion recognition
Emotion recognition
Madhusudhan G
 
Attendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan SikdarAttendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan Sikdar
raihansikdar
 
Introduction to emotion detection
Introduction to emotion detectionIntroduction to emotion detection
Introduction to emotion detection
Tyler Schnoebelen
 
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
Smriti Tikoo
 
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
 
face detection
face detectionface detection
face detection
Smriti Tikoo
 
Face Detection
Face DetectionFace Detection
Face Detection
Reber Novanta
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
Kalyan Acharjya
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognition
ijtsrd
 
Facial Expression Recognition
Facial Expression Recognition Facial Expression Recognition
Facial Expression Recognition
Rupinder Saini
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition system
Divya Sushma
 

What's hot (20)

4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition4837410 automatic-facial-emotion-recognition
4837410 automatic-facial-emotion-recognition
 
Facel expression recognition
Facel expression recognitionFacel expression recognition
Facel expression recognition
 
Facial recognition technology by vaibhav
Facial recognition technology by vaibhavFacial recognition technology by vaibhav
Facial recognition technology by vaibhav
 
Emotion detection using cnn.pptx
Emotion detection using cnn.pptxEmotion detection using cnn.pptx
Emotion detection using cnn.pptx
 
Project Face Detection
Project Face Detection Project Face Detection
Project Face Detection
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
 
Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approach
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
EMOTION DETECTION USING AI
EMOTION DETECTION USING AIEMOTION DETECTION USING AI
EMOTION DETECTION USING AI
 
Emotion recognition
Emotion recognitionEmotion recognition
Emotion recognition
 
Attendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan SikdarAttendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan Sikdar
 
Introduction to emotion detection
Introduction to emotion detectionIntroduction to emotion detection
Introduction to emotion detection
 
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 based on image feature
Facial expression recognition based on image featureFacial expression recognition based on image feature
Facial expression recognition based on image feature
 
face detection
face detectionface detection
face detection
 
Face Detection
Face DetectionFace Detection
Face Detection
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognition
 
Facial Expression Recognition
Facial Expression Recognition Facial Expression Recognition
Facial Expression Recognition
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition system
 

Similar to Predicting Emotions through Facial Expressions

L008.Eigenfaces And Nn Som
L008.Eigenfaces And Nn SomL008.Eigenfaces And Nn Som
L008.Eigenfaces And Nn Som
ramesh kumar
 
Eigenfaces , Fisherfaces and Dimensionality_Reduction
Eigenfaces , Fisherfaces and Dimensionality_ReductionEigenfaces , Fisherfaces and Dimensionality_Reduction
Eigenfaces , Fisherfaces and Dimensionality_Reduction
mostafayounes012
 
Image–based face-detection-and-recognition-using-matlab
Image–based face-detection-and-recognition-using-matlabImage–based face-detection-and-recognition-using-matlab
Image–based face-detection-and-recognition-using-matlab
Ijcem Journal
 
Face Identification Project Abstract 2017
Face Identification Project Abstract 2017Face Identification Project Abstract 2017
Face Identification Project Abstract 2017
ioshean
 
Face Recognition Using Gabor features And PCA
Face Recognition Using Gabor features And PCAFace Recognition Using Gabor features And PCA
Face Recognition Using Gabor features And PCA
IOSR Journals
 
Criminal Detection System
Criminal Detection SystemCriminal Detection System
Criminal Detection System
Intrader Amit
 
Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...
Bulbul Agrawal
 
H0334749
H0334749H0334749
H0334749
iosrjournals
 
Final year ppt
Final year pptFinal year ppt
Final year ppt
Shruti Chandra
 
Design of face recognition system using principal
Design of face recognition system using principalDesign of face recognition system using principal
Design of face recognition system using principal
eSAT Publishing House
 
Face Recognition
Face RecognitionFace Recognition
Face Recognition
Amro El Namory
 
Fr pca lda
Fr pca ldaFr pca lda
Fr pca lda
ultraraj
 
A Robust & Fast Face Detection System
A Robust & Fast Face Detection SystemA Robust & Fast Face Detection System
A Robust & Fast Face Detection System
IDES Editor
 
Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113
Editor IJARCET
 
Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113
Editor IJARCET
 
Real time facial expression analysis using pca
Real time facial expression analysis using pcaReal time facial expression analysis using pca
Real time facial expression analysis using pca
International Journal of Science and Research (IJSR)
 
A study on face recognition technique based on eigenface
A study on face recognition technique based on eigenfaceA study on face recognition technique based on eigenface
A study on face recognition technique based on eigenface
sadique_ghitm
 
Implementation of Face Recognition in Cloud Vision Using Eigen Faces
Implementation of Face Recognition in Cloud Vision Using Eigen FacesImplementation of Face Recognition in Cloud Vision Using Eigen Faces
Implementation of Face Recognition in Cloud Vision Using Eigen Faces
IJERA Editor
 
Comparison on PCA ICA and LDA in Face Recognition
Comparison on PCA ICA and LDA in Face RecognitionComparison on PCA ICA and LDA in Face Recognition
Comparison on PCA ICA and LDA in Face Recognition
ijdmtaiir
 
A Hybrid Approach to Recognize Facial Image using Feature Extraction Method
A Hybrid Approach to Recognize Facial Image using Feature Extraction MethodA Hybrid Approach to Recognize Facial Image using Feature Extraction Method
A Hybrid Approach to Recognize Facial Image using Feature Extraction Method
IRJET Journal
 

Similar to Predicting Emotions through Facial Expressions (20)

L008.Eigenfaces And Nn Som
L008.Eigenfaces And Nn SomL008.Eigenfaces And Nn Som
L008.Eigenfaces And Nn Som
 
Eigenfaces , Fisherfaces and Dimensionality_Reduction
Eigenfaces , Fisherfaces and Dimensionality_ReductionEigenfaces , Fisherfaces and Dimensionality_Reduction
Eigenfaces , Fisherfaces and Dimensionality_Reduction
 
Image–based face-detection-and-recognition-using-matlab
Image–based face-detection-and-recognition-using-matlabImage–based face-detection-and-recognition-using-matlab
Image–based face-detection-and-recognition-using-matlab
 
Face Identification Project Abstract 2017
Face Identification Project Abstract 2017Face Identification Project Abstract 2017
Face Identification Project Abstract 2017
 
Face Recognition Using Gabor features And PCA
Face Recognition Using Gabor features And PCAFace Recognition Using Gabor features And PCA
Face Recognition Using Gabor features And PCA
 
Criminal Detection System
Criminal Detection SystemCriminal Detection System
Criminal Detection System
 
Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...
 
H0334749
H0334749H0334749
H0334749
 
Final year ppt
Final year pptFinal year ppt
Final year ppt
 
Design of face recognition system using principal
Design of face recognition system using principalDesign of face recognition system using principal
Design of face recognition system using principal
 
Face Recognition
Face RecognitionFace Recognition
Face Recognition
 
Fr pca lda
Fr pca ldaFr pca lda
Fr pca lda
 
A Robust & Fast Face Detection System
A Robust & Fast Face Detection SystemA Robust & Fast Face Detection System
A Robust & Fast Face Detection System
 
Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113
 
Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113Volume 2-issue-6-2108-2113
Volume 2-issue-6-2108-2113
 
Real time facial expression analysis using pca
Real time facial expression analysis using pcaReal time facial expression analysis using pca
Real time facial expression analysis using pca
 
A study on face recognition technique based on eigenface
A study on face recognition technique based on eigenfaceA study on face recognition technique based on eigenface
A study on face recognition technique based on eigenface
 
Implementation of Face Recognition in Cloud Vision Using Eigen Faces
Implementation of Face Recognition in Cloud Vision Using Eigen FacesImplementation of Face Recognition in Cloud Vision Using Eigen Faces
Implementation of Face Recognition in Cloud Vision Using Eigen Faces
 
Comparison on PCA ICA and LDA in Face Recognition
Comparison on PCA ICA and LDA in Face RecognitionComparison on PCA ICA and LDA in Face Recognition
Comparison on PCA ICA and LDA in Face Recognition
 
A Hybrid Approach to Recognize Facial Image using Feature Extraction Method
A Hybrid Approach to Recognize Facial Image using Feature Extraction MethodA Hybrid Approach to Recognize Facial Image using Feature Extraction Method
A Hybrid Approach to Recognize Facial Image using Feature Extraction Method
 

Recently uploaded

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

Predicting Emotions through Facial Expressions

  • 1. Predicting Emotions through Facial Expressions MADE BY- TWINKLE SINGH URJA THAKUR
  • 2. Introduction about the minor project Developing a computational model of face recognition is quite difficult because faces are complex ,multidimensional and meaningful visual stimuli. To make it easier and more natural to interact with computers, people put forward new demands to human computer interaction. Project aim :A facial expression emotion recognition system is proposed which consist of two parts face recognition and facial expression recognition .
  • 3. Problem Statement • Three basic problems need to be solved: ▫ Face detection ▫ Facial expression data extraction ▫ Facial expression classification • Both static images and image sequences have been used in studies surveyed in the PROJECT
  • 4. Solution Statement that are proposed : • Given an image, to identify it as a face and/or extract face images from it. • To retrieve the similar images (based on a heuristic) from the given database of face images. • And extract the facial expression.
  • 5. Algorithm used: for face recognition The Principal Component Analysis (PCA) and Linear Discriminative Analysis (LDA) face expression recognition . Eigen space and vector (based on PCA and LDA)
  • 6. Face recognition : Most Basic algorithm for face recognition (Pattern Matching) is Principal Component Analysis(PCA). One another pattern matching algorithm, Linear Discriminative Analysis (LDA) is also being applied.
  • 7. Facial expression recogniton : o The task of facial recogniton is discriminating input signals (image data) into several classes (persons). o The input signals are highly noisy yet the input images are not completely random and in spite of their differences there are patterns which occur in any input signal. o These characteristic features are called eigenfaces in the facial recognition domain (or principal components generally). o They can be extracted out of original image data by means of a mathematical tool called Principal Component Analysis (PCA).
  • 8. Software: MATLAB is being used as tool. WHY MATLAB? NOT OpenCV !! • Matlab --> Faster programming, less efficient • OpenCV -->Slower programming, more efficient MATLAB provide very nice platform for computational problems. Matlab, is more recommended since we will be able to program faster. If you already had a result of your research, and want to make an application with it, OpenCV recommended, it will take longer to program.
  • 9. Algorithm • FACE RECOGNITION Principal Component Analysis (PCA)  An image can be considered as 2D array or Matrix.  Each pixel can be classified as variable(one axis in co- ordinate system in which image is represented) for image. The idea is that a high-dimensional dataset is often described by correlated variables and therefore only a few meaningful dimensions account for most of the information.  The PCA method finds the directions with the greatest variance in the data, called principal components.
  • 10. • Example In this particular example, data set is given in 2 dimension space(x1,x2).
  • 11. • Linear discriminant analysis (LDA) • The LDA perform dimensionality reduction while preserving as much of the class discriminatory information as possible. • . It seeks to find directions along which the classes are best separated. • The LDA takes into consideration the scatter within-classes but also the scatter between- classes.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. • It maximize between classes scattering. • It minimizes within class scattering. • So maximize ratio of between classes scattering and within class ratio. This can be done by finding Eigen Values.
  • 17.
  • 18. ▫ FACIAL EXPRESSION RECOGNITION Eigen faces • Most of the studies perform an emotion classification and use the following 6 basic categories: happiness, sadness, surprise, fear, anger, and disgust. Eigen Space and Eigen Faces:  Face Images are projected into a feature space (“Face Space”) that best encodes the variation among known face images.
  • 19.  The face space is defined by the “eigenfaces”, which are the eigenvectors of the set of faces. STEPS  Initialization :  Acquire the training set and calculate eigenfaces (using PCA projections) which define eigenspace.  When a new face is encountered, calculate its weight.  Determine if the image is face.  If yes, classify the weight pattern as known or unknown.  (Learning) If the same unknown face is seen several times incorporate it into known faces.
  • 20. PCA Main assumption of PCA approach: • Face space forms a cluster in image space. • PCA gives suitable representation.
  • 21. Eigenfaces (1) • Calculation of Eigenfaces (1) Calculate average face : v. (2) Collect difference between training images and average face in matrix A (M by N), where M is the number of pixels and N is the number of images. (3) The eigenvectors of covariance matrix C (M by M) give the eigenfaces. ▫ M is usually big, so this process would be time consuming. ▫ What to do?
  • 22. Eigenfaces (2) • Calculation of Eigenvectors of C If the number of data points is smaller than the dimension (N<M), then there will be only N-1 meaningful eigenvectors. Instead of directly calculating the eigenvectors of C, we can calculate the eigenvalues and the corresponding eigenvectors of a much smaller matrix L (N by N). if λi are the eigenvectors of L then A λi are the eigenvectors for C. ▫ The eigenvectors are in the descent order of the corresponding eigenvalues.
  • 23. Eigenfaces (3) • Representation of Face Images using Eigenfaces • The training face images and new face images can be represented as linear combination of the eigenfaces. • When we have a face image u : Since the eigenvectors are orthogonal :
  • 24. Eigenfaces (4) • Experiment and Results Data used here are from the ORL database of faces. Facial images of 16 persons are used. - Tra iTest set contains 16×3 images.
  • 25. REFERENCES • Automatic analysis of facial actions, IEEE paper, vol 8 ,2017 • A facial expression emotion recognition based human robot interaction system ,IEEE journal , october 2017 • http://www.cs.ucsb.edu/%7Emturk/Papers/mturk-CVPR91.pdf • http://openbio.sourceforge.net/resources/eigenfaces/eigenfaces- html/facesOptions.html • http://face-rec.org/ - Facial Recognition homepage • https://in.mathworks.com/matlabcentral/fileexchange/33325- eigenface-based-facial-expression-classification • Cambridge University Computer Laboratory The Digital Technology Group orl databse. • Ekman P, Friesen WV. The Facial Action Coding System A Technique for the Measurement of Facial Movement. San Francisco: Consulting Psychologists Press; 1978. http://face-and- emotion.com/dataface/facs/manual/TitlePage.html