SlideShare a Scribd company logo
3
Most read
13
Most read
19
Most read
AI Facial Emotion
Detection
By: Ellie Pierson, Richard Thomas, Renold
Thomas, Luca Netter, Bergen Cloninger, Emily
Joseph
Instructor: Laikh Tewari
Sections to include
● Intro + context - Richard
● Problem setup and approach - Emily
○ Raw pixels vs extracted features
● Models (epochs, other hyperparams): - Luca, Bergen, and Ellie
○ KNN
○ Log reg
○ Neural Net
○ CNN
○ Transfer Learning
○ Eye+eyebrow model
○ Comparison table
● Conclusion - Renold
What we are doing?
● Creating an AI to read emotions
○ Helps kids with autism
○ Driving assistance/safety
○ Help teachers in online teaching
Can you label the images below using these 5
emotions?
● Happy
● Sad
● Surprised
● Angry
● Neutral
1 2 3
4 5 6
Can you label the images below using these 5
emotions?
● Happy
● Sad
● Surprised
● Angry
● Neutral
✓
1 2 3
4 5 6
Happy Angry Surprised
Sad Angry Neutral
How can we use AI to identify these
emotions?
Setup and Approach
● Use the best model that predicts
emotions most accurately
Landmarks and distances
Models
Evaluating
Results!
1 2
3
4
● Calculate distances between
each facial landmark
● Find landmarks on different face
images
● Training models using data
consisting of faces and labels (knn,
lr, dt, neural networks)
● Evaluate model performance using
confusion matrix, epoch/accuracy
graphs, and accuracy scores
Model Input Data
EXTRACTED FEATURES
Each image has 64 facial landmarks
The # of distances between landmarks:
64+63+62+61… + 1 = 2278
Then we condense those 2278 distances into
just 20 features!
INPUT:
20 distance values for each
OR
RAW PIXELS
Each image in the data set is 48*48 pixels (in
grayscale)
48*48 = 2304
INPUT:
2,304 pixels for each image
KNN example
● We used a KNN model (K nearest neighbors) to establish a baseline
accuracy
● A KNN model is a type of classification where an algorithm tries to
predict what a new data point will look like based off of existing data
● KNN classification tends to be fast but inaccurate
● With this model, the accuracy comes out to be 43.55%
Log Reg Example
● Logistic regression is a model
that classifies based off of a
probability.
● Logistic regression creates a
curve shaped like an S.
● An ‘S-Curve’ cannot extend the
class number above or below
0-1.
● With this model, the accuracy
comes out to be 36.8%
Neural Network
● A Neural Network is a model based off of
how the human brain works, and uses
input, hidden, and output layers.
● Each layer consists of some amount of
neurons, which are used to test and train
information by sending the information
through every possible path between the
layers. It filters the information which in
this case is images, and attempts to
correctly predict the emotion
● With this model, the accuracy comes out to
be 51.7%, which is almost as good as a
human, but just shy.
Neural Network Example
● Here is an example of a
Neural Network:
● Ours looks similar to
this, but with many
more neurons in each
layer.
CNN Example
● Takes an image
● Filters through a set of layers
● Predicts a label
Through different variables:
Our best model showed: Validation Accuracy = 68% , Loss = 0.85
Transfer Learning
● CNN Data Set →Model →Test Result
● Val Acc: 68.2%
● Better than most tested previous
models
Eye + Eyebrow Model
We wanted to see how our
models would do if we were
only given landmarks and
distances above the nose
as if we had a mask on.
Our models will only receive
inputs of eyes and
eyebrows landmarks.
Can you tell what
emotion this is?
Happy!
K Nearest Neighbors:
38.35%
Logistic Regression:
38.15%
Decision Tree:
34.35%
Neural Network:
42.65%
Comparison Table
The most accurate model was a pre
trained VGG model using Transfer
Learning at 68.2% accuracy. Our trained
CNN model was close behind at 68.0%
accuracy.
Future Applications
Emotion Detection could be used for:
● Help kids with autism
● In learning environments (i.e. Zoom,
Google Meet)
If we had 1 more week
● Create a live camera feature
Thank You

More Related Content

PPTX
Mental Health Monitor using facial expression
PPT
4837410 automatic-facial-emotion-recognition
PPTX
Facial Expression Recognition (FER) using Deep Learning
PPT
Mobile Application Development
PPTX
Pattern recognition
ODP
Face recognition application
PPTX
FACIAL EXPRESSION RECOGNITION 1 2.pptx
PPTX
Hand gesture recognition
Mental Health Monitor using facial expression
4837410 automatic-facial-emotion-recognition
Facial Expression Recognition (FER) using Deep Learning
Mobile Application Development
Pattern recognition
Face recognition application
FACIAL EXPRESSION RECOGNITION 1 2.pptx
Hand gesture recognition

What's hot (20)

PDF
9 Wyposażenie bazy do prowadzenia usług agroturystycznych
PDF
Traffic Prediction for Intelligent Transportation System using Machine Learning
PDF
Optical Character Recognition (OCR) System
PDF
Mobile Application Development Services
PPTX
Final Report on Optical Character Recognition
PPS
univerzalnost ni i nili sklopa
PPTX
Place reminder
PPTX
ATM System by image processing
DOC
6 Weeks Project Based Summer Training
PDF
Speech recognition project report
PDF
Automatic Music Transcription
DOCX
Optical character recognition IEEE Paper Study
PPTX
Security
PDF
Facial Emoji Recognition
PPTX
Introduction to emotion detection
PPTX
Facial emotion recognition
PDF
UplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_is
PPTX
Face detection presentation slide
DOCX
Stock Market Analysis and Prediction
9 Wyposażenie bazy do prowadzenia usług agroturystycznych
Traffic Prediction for Intelligent Transportation System using Machine Learning
Optical Character Recognition (OCR) System
Mobile Application Development Services
Final Report on Optical Character Recognition
univerzalnost ni i nili sklopa
Place reminder
ATM System by image processing
6 Weeks Project Based Summer Training
Speech recognition project report
Automatic Music Transcription
Optical character recognition IEEE Paper Study
Security
Facial Emoji Recognition
Introduction to emotion detection
Facial emotion recognition
UplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_is
Face detection presentation slide
Stock Market Analysis and Prediction
Ad

Similar to Facial Emotion Detection Project (20)

PPTX
Inspirit AI Facial Emotion Detection Project (Dec 2021)
PPTX
Facial emotion detection on babies' emotional face using Deep Learning.
PPTX
Facial Emotion Recognition: A Deep Learning approach
PPTX
Project report of thr facial expressionppt.pptx
PDF
Facial expression recognition
PPTX
Facial Expression Recognition System using Deep Convolutional Neural Networks.
PDF
Human Emotion Recognition
PDF
EMOTION DETECTION USING AI
PPTX
Emotion recognition and drowsiness detection using python.ppt
PDF
IRJET- Facial Emotion Detection using Convolutional Neural Network
PDF
Deep Learning for real-time emotion recognition from face images
PPTX
Facial expression recognition projc 2 (3) (1)
PPTX
Decoding Human Emotions with Deep Learning: Facial Expression Recognition Exp...
PPTX
Unlocking Human Emotions: Facial Emotion Recognition with Deep Learning
PDF
AI Therapist – Emotion Detection using Facial Detection and Recognition and S...
PPTX
Emotion recognition using image processing in deep learning
PDF
Ct35535539
PDF
1705.07543
PPTX
HUMAN EMOTION RECOGNIITION SYSTEM
PDF
IRJET- Facial Emotion Detection using Convolutional Neural Network
Inspirit AI Facial Emotion Detection Project (Dec 2021)
Facial emotion detection on babies' emotional face using Deep Learning.
Facial Emotion Recognition: A Deep Learning approach
Project report of thr facial expressionppt.pptx
Facial expression recognition
Facial Expression Recognition System using Deep Convolutional Neural Networks.
Human Emotion Recognition
EMOTION DETECTION USING AI
Emotion recognition and drowsiness detection using python.ppt
IRJET- Facial Emotion Detection using Convolutional Neural Network
Deep Learning for real-time emotion recognition from face images
Facial expression recognition projc 2 (3) (1)
Decoding Human Emotions with Deep Learning: Facial Expression Recognition Exp...
Unlocking Human Emotions: Facial Emotion Recognition with Deep Learning
AI Therapist – Emotion Detection using Facial Detection and Recognition and S...
Emotion recognition using image processing in deep learning
Ct35535539
1705.07543
HUMAN EMOTION RECOGNIITION SYSTEM
IRJET- Facial Emotion Detection using Convolutional Neural Network
Ad

Recently uploaded (20)

PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Introduction to Data Science and Data Analysis
PDF
Clinical guidelines as a resource for EBP(1).pdf
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
annual-report-2024-2025 original latest.
PPT
Predictive modeling basics in data cleaning process
PPTX
modul_python (1).pptx for professional and student
PDF
Mega Projects Data Mega Projects Data
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Reliability_Chapter_ presentation 1221.5784
Introduction to Knowledge Engineering Part 1
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Introduction-to-Cloud-ComputingFinal.pptx
Optimise Shopper Experiences with a Strong Data Estate.pdf
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Introduction to Data Science and Data Analysis
Clinical guidelines as a resource for EBP(1).pdf
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Miokarditis (Inflamasi pada Otot Jantung)
annual-report-2024-2025 original latest.
Predictive modeling basics in data cleaning process
modul_python (1).pptx for professional and student
Mega Projects Data Mega Projects Data
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Business Analytics and business intelligence.pdf
SAP 2 completion done . PRESENTATION.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx

Facial Emotion Detection Project

  • 1. AI Facial Emotion Detection By: Ellie Pierson, Richard Thomas, Renold Thomas, Luca Netter, Bergen Cloninger, Emily Joseph Instructor: Laikh Tewari
  • 2. Sections to include ● Intro + context - Richard ● Problem setup and approach - Emily ○ Raw pixels vs extracted features ● Models (epochs, other hyperparams): - Luca, Bergen, and Ellie ○ KNN ○ Log reg ○ Neural Net ○ CNN ○ Transfer Learning ○ Eye+eyebrow model ○ Comparison table ● Conclusion - Renold
  • 3. What we are doing? ● Creating an AI to read emotions ○ Helps kids with autism ○ Driving assistance/safety ○ Help teachers in online teaching
  • 4. Can you label the images below using these 5 emotions? ● Happy ● Sad ● Surprised ● Angry ● Neutral 1 2 3 4 5 6
  • 5. Can you label the images below using these 5 emotions? ● Happy ● Sad ● Surprised ● Angry ● Neutral ✓ 1 2 3 4 5 6 Happy Angry Surprised Sad Angry Neutral
  • 6. How can we use AI to identify these emotions?
  • 7. Setup and Approach ● Use the best model that predicts emotions most accurately Landmarks and distances Models Evaluating Results! 1 2 3 4 ● Calculate distances between each facial landmark ● Find landmarks on different face images ● Training models using data consisting of faces and labels (knn, lr, dt, neural networks) ● Evaluate model performance using confusion matrix, epoch/accuracy graphs, and accuracy scores
  • 8. Model Input Data EXTRACTED FEATURES Each image has 64 facial landmarks The # of distances between landmarks: 64+63+62+61… + 1 = 2278 Then we condense those 2278 distances into just 20 features! INPUT: 20 distance values for each OR RAW PIXELS Each image in the data set is 48*48 pixels (in grayscale) 48*48 = 2304 INPUT: 2,304 pixels for each image
  • 9. KNN example ● We used a KNN model (K nearest neighbors) to establish a baseline accuracy ● A KNN model is a type of classification where an algorithm tries to predict what a new data point will look like based off of existing data ● KNN classification tends to be fast but inaccurate ● With this model, the accuracy comes out to be 43.55%
  • 10. Log Reg Example ● Logistic regression is a model that classifies based off of a probability. ● Logistic regression creates a curve shaped like an S. ● An ‘S-Curve’ cannot extend the class number above or below 0-1. ● With this model, the accuracy comes out to be 36.8%
  • 11. Neural Network ● A Neural Network is a model based off of how the human brain works, and uses input, hidden, and output layers. ● Each layer consists of some amount of neurons, which are used to test and train information by sending the information through every possible path between the layers. It filters the information which in this case is images, and attempts to correctly predict the emotion ● With this model, the accuracy comes out to be 51.7%, which is almost as good as a human, but just shy.
  • 12. Neural Network Example ● Here is an example of a Neural Network: ● Ours looks similar to this, but with many more neurons in each layer.
  • 13. CNN Example ● Takes an image ● Filters through a set of layers ● Predicts a label Through different variables: Our best model showed: Validation Accuracy = 68% , Loss = 0.85
  • 14. Transfer Learning ● CNN Data Set →Model →Test Result ● Val Acc: 68.2% ● Better than most tested previous models
  • 15. Eye + Eyebrow Model We wanted to see how our models would do if we were only given landmarks and distances above the nose as if we had a mask on. Our models will only receive inputs of eyes and eyebrows landmarks. Can you tell what emotion this is? Happy! K Nearest Neighbors: 38.35% Logistic Regression: 38.15% Decision Tree: 34.35% Neural Network: 42.65%
  • 16. Comparison Table The most accurate model was a pre trained VGG model using Transfer Learning at 68.2% accuracy. Our trained CNN model was close behind at 68.0% accuracy.
  • 17. Future Applications Emotion Detection could be used for: ● Help kids with autism ● In learning environments (i.e. Zoom, Google Meet)
  • 18. If we had 1 more week ● Create a live camera feature