Coder Social home page Coder Social logo

arunangshu-nandy / emotion-detection-with-cnn-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 199 KB

Emotion detection from small images using CNN

Jupyter Notebook 100.00%
cnn-model dataaugmentation emotion-detection keras-neural-networks adam-optimizer cross-entropy flatten-array model-evaluation relu-activation sigmoid-function

emotion-detection-with-cnn-tensorflow's Introduction

In this case I take the dataset from Kaggle for facial emotion detection. I explore the sample data images along with associated class names. In the next step we access the data directory and create a small dictionary with 0-7 numbers for each of facial expressions. I also create another dictionary with path against each of the expressions. I create input (X) & output (y) numpy array for the dataset. After scaling the image (dividing the numpy array by 255), I feed the same to our CNN model(with padding). In CNN I have kept 3 layers along with one Maxpooling layer for each layer. I trained the model for 5 epochs and found the accuracy to be 51%. However while I used the same model for prediction I received accuracy of 47%. I also use data augmentation technique to experiment on the accuracy of the model After the same model with 5 epochs the accuracy is 38% (lower than initial one) and prediction accuracy is 24% (also very low). In order to increase the accuracy we need to change the hyper-parameters and increase number of epochs.

Data Source-https://www.kaggle.com/datasets/ananthu017/emotion-detection-fer

Techniques used- Tensorflow, CNN, Data Augmentation,

emotion-detection-with-cnn-tensorflow's People

Contributors

arunangshu-nandy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.