Skip to content

This repository consists of a project where deep learning algorithms have been used to analyze facial emotions of the students in the class in real time using Open CV. A web app has also been created using streamlit for demonstration purposes.

Notifications You must be signed in to change notification settings

SuhasTantri/Real-time-emotion-detection

Repository files navigation

Real-time-emotion-detection [Deep Learning Capstone Project Almabetter]

The goal of the project is to do real time facial emotion recognition of students in a live class so that they can be monitored easily. This is done by using Deep learning algorithms and Open CV.

The project was done by me and my teammate Raghavendra A Kulkarni.

MobileNet Architecture

App Screenshot

  • The MobileNet structure is built on depthwise separable convolutions except for the first layer which is a full convolution. By defining the network in such simple terms we are able to easily explore network topologies to find a good network. All layers are followed by a batchnorm and ReLU nonlinearity with the exception of the final fully connected layer which has no nonlinearity and feeds into a softmax layer for classification. Counting depthwise and pointwise convolutions as separate layers, MobileNet has 28 layers.

Transfer Learning

App Screenshot

  • Transfer learning is a research problem in machine learning (ML) that focuses on storing knowledge gained while solving one problem and applying it to a different but related problem.

  • In this project Mobile-Net transfer learning is used along with computer vision for real time Facial emotion recognition through webcam. A streamlit web app has also been built.

  • The model is trained on FER-2013 dataset which has 5 emotions classes namely 'Happy','Neutral','Fear','Angry' and 'Disgust'.

  • The model gives an accuracy of 81 % on train data and 76 % on test data.

Here is an image showing the confusion matrix of the model classification

App Screenshot

{0: 'Angry', 1: 'fear', 2: 'Happy', 3: 'Neutral'}

  • The confusion matrix indicates that the model performs better on Happy and Neutral images.

Demo

streamlit demo gif (3)

Links

About

This repository consists of a project where deep learning algorithms have been used to analyze facial emotions of the students in the class in real time using Open CV. A web app has also been created using streamlit for demonstration purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published