Giter VIP home page Giter VIP logo

biswadeep-roy / human-emotion-detection-using-deep-learning Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.19 MB

This project implements a deep learning model for the detection of human emotions in images. It uses Convolutional Neural Networks (CNNs) to classify images into three emotional categories: angry, happy, and sad.

License: MIT License

Jupyter Notebook 100.00%
python python3 tensorflow

human-emotion-detection-using-deep-learning's Introduction

Human-Emotion-Detection-using-Deep-Learning

This project implements a deep learning model for the detection of human emotions in images. It uses Convolutional Neural Networks (CNNs) to classify images into three emotional categories: angry, happy, and sad.

image

Dataset

The dataset used in this project is the "Human Emotions Dataset" available on Kaggle. It consists of labeled images representing different emotions.

Dataset Link

Human Emotions Dataset

Model Architecture

The model architecture is based on a modified LeNet-5 CNN architecture. It includes layers for data preprocessing, convolution, batch normalization, max-pooling, dropout, and fully connected layers. Regularization techniques are used to prevent overfitting.

Configuration

The project is configured with various hyperparameters, including batch size, image size, learning rate, and dropout rate, which can be adjusted as needed.

Training

The model is trained using TensorFlow and Keras. The training dataset is shuffled and preprocessed, and the model's performance is evaluated using a validation dataset.

Usage

To use this project, follow these steps:

  1. Clone the repository:

`git clone https://github.com/biswadeep-roy/Human-Emotion-Detection-using-Deep-Learning/`
`cd human-emotion-detection`
  1. Install the required libraries:

pip install -r requirements.txt

  1. Download and unzip the dataset (or use your own dataset) into the appropriate directories:
  • Training data: /content/dataset/Emotions Dataset/Emotions Dataset/train
  • Validation data: /content/dataset/Emotions Dataset/Emotions Dataset/test
  1. Adjust the configuration in the code as needed.

  2. Train the model.

  3. Evaluate the model.

  4. Make predictions on new data:

Results and Outcomes

Model Performance

The model achieved a significant level of accuracy in classifying human emotions in images. Training and validation metrics, such as accuracy and loss, can be found in the training logs.

Key Outcomes

Successful implementation of a modified LeNet-5 architecture for emotion detection. Efficient preprocessing of image data, including resizing and rescaling. Effective use of regularization techniques to prevent overfitting. Deployment of a TensorFlow-based deep learning model.

Challenges Faced

Mention any challenges you encountered during the project, such as data quality issues, overfitting, or performance optimization.

Future Improvements

Provide insights into potential future improvements or enhancements for the project. Ideas may include fine-tuning hyperparameters, exploring different architectures, or incorporating real-time emotion detection from a video stream.

Acknowledgments

Express gratitude to any contributors, libraries, or datasets that played a significant role in achieving the project's outcomes.

Visualizations

Include any relevant visualizations, such as confusion matrices or ROC curves, to showcase the model's performance.

Author

License

This project is licensed under the MIT License - see the MIT file for details.

Feel free to reach out if you have any questions or suggestions!

human-emotion-detection-using-deep-learning's People

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.