Giter VIP home page Giter VIP logo

fer_brain_and_cognitive_society's Introduction

Facial Emotion Recognition using Images

This repository contains all the code and relevant files used in Facial Expressions Recognition project under Brain and Cognitive Society. The goal of the project is to correctly recognize 7 fundamental expressions (anger, disgust, happiness, surprise, sadness, fear and neutral) from the images using Convolution neural network.We have tried to implement a research paper, which can be accessed here.

Dataset

JAFFE and CK+ datasets have been used.

Preprocessing

  1. Cropping Image
    WHY : Images were cropped to crop out the irrelevant parts of the face or the background and only have the closeup of face in image which is the region of interest
    HOW : With help of Detector and Predictor variables from the dlib library 68 landmarks were detected for the frontol face. The landmark coordinates for both eyes were used for rotating image to align the face horizontally for accurate cropping. The images in the training set are randomly flipped and rotated to increase the data set.
  2. Equilization : Equilization was performed using openCV on the cropped and rotated images to equalize the intensities
  3. Normalization : All the images were normalized with z-score method to get the data distribution centered at zero.The formula for the same is: [(value - mean)/standard deviation]
  4. Downsampling : The images are downsampled to 32x32 pixels
  5. Data Augmentation: The images in the training set are randomly flipped and rotated to increase the data set inorder to avoid overfitting on small data.

CNN Model (Keras implementation)

  • Architecture 2 convolutional layers with ReLU activation and 2 max pooling layers are used. The output is then flattened into a 1600x1 vector and connected to an output which uses a softmax activation.
  • Categorical Hyperparameters We have used momentum optimiser, binary cross entropy function and accuracy as metrics. We have used ten cross validation method for evaluation of our model.
  • Numerical Hyperparameters Batch size is 16, learning rate (eta) is 0.001 and no. of epochs are 80 to 100.

Architecture of The Model

fer_brain_and_cognitive_society's People

Contributors

lakshita2002 avatar deepika-sketch avatar kusum14 avatar rishid03 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.