Giter VIP home page Giter VIP logo

face-emotion-recognition's Introduction

Face-emotion-recognition

An implementation of face emotion recognition by Convolutional neurla network.

Requirements

  • Caffe 1.0.0
  • Python 2.7/3.5
  • OpenCV (cv2)
  • Numpy
  • mtcnn

Description

As for humans, we classify emotions all the time without knowing it. We can see if someone is happy or sad or frustrated and in need of help. However, it is a very complex problem that involves many subtleties about facial expression. Even just the tiniest change in someone’s face can be a signal of a different emotion. Training models that understand human emotions will be critical to build truly intelligent machine that can interact with us likes humans do.

In this project, we build a classifier to recognize basic human emotion from facial expression by two steps: face detection and CNN based recognition.

Datasets

Training

FER2013 database from Kaggle Challenges in Representation Learning: Facial Expression Recognition Challenge

This dataset has 7 facial expression categories (angry, disgust, fear, happy, sad, surprise and neutral).
28709 training set + 3589 validation set of 48px * 48px grayscale images.

Testing

  • 3589 Testing set of FER2013.

Main tasks

  • Preprocessing (recent accomplished)
  1. Extract and create images for FER2013 from csv
  2. Face detection
  3. Face alignment
  4. Convert to LMDB format
  5. Compute mean
  • Training & Testing (recent accomplished)
  1. Build model
  2. Adjust hyper-parameters
  3. Train model
  • Predicting (recent accomplished)

Preprocessing

Training & Testing

Totally 150 epochs training with 0.01 base learning rate and multi-steps learning strategy.
Learning rate reduced 10% during 60% and 85% training.

CNN Structure

Training loss

Testing accuracy

Highest test accuracy on FER2013: 78%.





Predicting

Preprocess

Predict

References

A Real-time Facial Expression Recognizer using Deep Neural Network

face-emotion-recognition's People

Contributors

isthatyoung 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.