Giter VIP home page Giter VIP logo

facial-emotion-recognition's Introduction

Recognition of facial expressions from gray scale images using Convolutional Neural Networks.

Background

Facial emotion recognition refers to identifying expressions that convey basic emotions such as fear, happiness, and disgust, etc. It plays an important role in human-computer interactions and can be applied to digital advertisement, online gaming, customer feedback assessment, and healthcare. High emotion recognition accuracy has been achieved in images captured under controlled conditions and consistent environments. Challenges persist in emotion recognition under naturalistic conditions due to high intra-class variation and low inter-class variation, e.g., changes in facial pose and subtle differences between expressions.

Aim

To automatically recognize facial emotions (angry, happy, sad, surprised, disgust, fear and neutral) from gray scale images using Convolution Neural Network (CNN) architecture.

Dataset

A publicly available dataset of facial expressions on the Kaggle website (https://www.kaggle.com/datasets/ananthu017/emotion-detection-fer). It contains 35,685 examples of 48x48 pixel gray scale images of faces with expressions (happiness, neutral, sadness, anger, surprise, disgust, fear).

Challenges

Achieving an accuracy better than human performance which is reported to be 65.5 %.

Code Highlights

Class weightage to handle non-uniform number of training samples across mulitple classes. Grad CAM visualiation to understand what regions of face contribute the decision to a certain prediction class.

Results

Four models are built for recognizing facial expressions from gray scale images. All the models are trained and tested on the same dataset. For consistency purposes, all the models are trained with same optimizer and same number of dense layers. Model #4 performed the best with an overall test accuracy of 65%, which is similar to the human performance reported 65-70%.

facial-emotion-recognition's People

Contributors

sriramraju avatar

Watchers

 avatar Kostas Georgiou 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.