Git Product home page Git Product logo

ai_emotion_detection's Introduction

Facial Emotion Recognition using CNN

This repository contains the implementation of a Convolutional Neural Network (CNN) for facial emotion recognition. The model leverages deep learning techniques to identify and classify different human emotions from facial images.

1. Dataset

Our models are trained on the fer2013_csv.csv dataset, which includes pixel-level representations of facial expressions labeled across seven categories: Angry, Disgust, Fear, Happy, Sad, Surprise, and Neutral. Dataset Source: Kaggle

2. Model Architecture

2.1 ViT Model

The Vision Transformer (ViT) employed for facial emotion recognition utilizes a structured approach by dividing images into patches and embedding each patch. The architecture comprises a patch embedding layer, multiple transformer encoder blocks, and a classification head. Each encoder block integrates a multi-head self-attention mechanism and a feedforward network, with layer normalization applied before and after the attention process.

2.2 CNN Model

The CNN model uses a Residual Network (ResNet) architecture with several Residual Blocks, including convolutional layers with ReLU activation and batch normalization. The network architecture involves initial convolutional layers followed by multiple Residual Blocks, average pooling, and a final dense layer with softmax activation for classification.

ai_emotion_detection's People

Contributors

adelesnoko avatar sruxll 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.