Skip to content

RayanAIX/emotion-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ˜„ Emotion Classifier using Deep Learning

This project uses a Convolutional Neural Network (CNN) to classify human facial emotions based on the FER2013 dataset. It detects emotions like Happy, Sad, Angry, Surprise, and more β€” directly from grayscale face images.


πŸ“· Sample Output

▢️ Emotion Detection Results

Here are some examples of predictions made by the trained model:

βœ… Add your own screenshots in the screenshots/ folder for better visuals!


πŸ“ Dataset


🧠 Model Architecture

  • Input: 48x48 grayscale image
  • Layers:
    • Conv2D β†’ ReLU β†’ MaxPooling
    • Dropout for regularization
    • Dense β†’ Softmax (multi-class classification)
  • Optimizer: Adam
  • Loss Function: Categorical Crossentropy

πŸ“Š Training Results

Metric Value
Accuracy XX% (fill yours)
Loss XX
Epochs 30
Batch Size 64

πŸ“‚ Files

File Description
Emotion_Classifier.ipynb Complete training notebook (Google Colab)
emotion_classifier_model.h5 Trained Keras model
screenshots/ Folder for output screenshots
README.md Project overview and documentation

πŸš€ Future Plans

  • Deploy using Streamlit
  • Integrate with OpenCV for real-time webcam emotion detection
  • Improve accuracy with data augmentation and ResNet

πŸ§‘β€πŸ’» Author

Muhammad Rayan Shahid
Passionate AI & ML Developer | LinkedIn | GitHub


⭐ If you found this project helpful, consider starring the repo!