Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Emotion Detection 😠🤢😱😇😐☹️😲 CNN using keras
Mayank Choudhary
Mayank Choudhary

Posted on • Edited on

     

Emotion Detection 😠🤢😱😇😐☹️😲 CNN using keras

We will use 7 emotions namely - We have use 7 emotions namely - 'Angry'😠, 'Disgust'🤢, 'Fear'😱, 'Happy'😇, 'Neutral'😐, 'Sad'☹️, 'Surprise'😲 to train and test(validation) our algorithm using Convolution Neural Networks. You can directly use kaggle kernel notebook, so that you don't need to download the dataset. Also, you can download your code and run it in your local device directly.
Kaggle notebook -https://www.kaggle.com/mayank7900/notebook0a0917a828/edit

Tools and Libraries used -

  • Install anaconda
  • Jupyter notebook
  • VSCode
  • matplotlib
  • numpy
  • openCV
  • keras

Given dataset of different expressions:

https://www.kaggle.com/jonathanoheix/face-expression-recognition-dataset
Screenshot (249)

Screenshot of some angry expressions from the dataset on kaggle:
image

Screenshot (257)

Emotion Detection — Classifying the emotion on the face as emotion_labels = ['Angry','Disgust','Fear','Happy','Neutral', 'Sad', 'Surprise']
Screenshot (256)
Screenshot (254)

Top comments(5)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
jonrandy profile image
Jon Randy 🎖️
🤖 Artisanal developer - coding with varying degrees of success since 1983
  • Location
    Bangkok 🇹🇭
  • Joined
• Edited on• Edited

Looks at bit off to me - on the last picture (from top left to bottom right) - I'd go with:

excited - definitely not fear,pained - sad is close I guess,pleading - again, sad is close
surprised - certainly not neutral,happy - spot on,confused - not fear

CollapseExpand
 
rado_mayank profile image
Mayank Choudhary
checking feed on my infinity novelty machine

Hahaha right :) Well I have used this picture from the internet for the reference purpose only. My model will work fine with this dataset.

CollapseExpand
 
jonrandy profile image
Jon Randy 🎖️
🤖 Artisanal developer - coding with varying degrees of success since 1983
  • Location
    Bangkok 🇹🇭
  • Joined

Poor training data set maybe? or perhaps the subtleties of the human face are beyond the model's ability to discern

CollapseExpand
 
swagwik profile image
Sattwik Sahu
  • Joined

Yo that's pretty neeaaat! Naaahhsss one!

CollapseExpand
 
rado_mayank profile image
Mayank Choudhary
checking feed on my infinity novelty machine

Thanks ;)

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

checking feed on my infinity novelty machine
  • Location
    Delhi, India
  • Education
    MSIT Delhi
  • Joined

More fromMayank Choudhary

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp