Coder Social home page Coder Social logo

sohamd242 / emotion_detectioncnn Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 3.36 MB

This Jupyter Notebook focuses on emotion detection using CNNs, with custom models, data augmentation, and pre-trained architectures like VGG16 and ResNet. It covers model building, training, evaluation, and visualization, providing a comprehensive overview of the process.

Jupyter Notebook 79.32% Python 20.68%

emotion_detectioncnn's Introduction

Emotion Detection with CNN, Data Augmentation, VGG16, and ResNet

This Jupyter Notebook explores emotion detection using various Convolutional Neural Network (CNN) techniques, focusing on improving accuracy through custom CNNs, data augmentation, and transfer learning.

Approach

  • Custom CNN: The initial model was built using normalization, max-pooling, and ReLU activation functions, achieving 56% accuracy due to imbalanced data.
  • Data Augmentation: To address the data imbalance, I applied techniques like rotation, flip, and zoom, leading to more diverse training data.
  • Transfer Learning with VGG16: Implemented transfer learning by fine-tuning a VGG16-based model, resulting in significant performance improvements.
  • ResNet for Optimal Accuracy: Ultimately, I used the ResNet architecture, achieving a remarkable 92% accuracy for emotion detection.

What's Inside

  • Code for building and training a custom CNN, with detailed explanations of layers and functions used.
  • Implementation of data augmentation strategies to boost model robustness.
  • Steps to fine-tune a VGG16, ResNet model and evaluate its performance.
  • Instructions for using the ResNet model to achieve high accuracy.

How to Use

  1. Clone or download the repository.
  2. Install the necessary dependencies.
  3. Follow the step-by-step instructions in the Jupyter Notebook to build, train, and evaluate the models.
  4. Observe the differences in accuracy across the custom CNN, VGG16, and ResNet models.

Requirements

  • Python 3.10
  • Jupyter Notebook
  • Deep learning libraries like TensorFlow, Keras
  • Data visualization libraries such as Matplotlib, Computer Vision

Screenshots

Example-1

Example-2

emotion_detectioncnn's People

Contributors

sohamd242 avatar

Stargazers

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