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.
Here are some examples of predictions made by the trained model:
β Add your own screenshots in the
screenshots/
folder for better visuals!
- Source: FER2013 (Facial Expression Recognition)
- 48x48 grayscale images of faces
- Emotions:
- Angry
- Disgust
- Fear
- Happy
- Sad
- Surprise
- Neutral
- Input: 48x48 grayscale image
- Layers:
- Conv2D β ReLU β MaxPooling
- Dropout for regularization
- Dense β Softmax (multi-class classification)
- Optimizer: Adam
- Loss Function: Categorical Crossentropy
Metric | Value |
---|---|
Accuracy | XX% (fill yours) |
Loss | XX |
Epochs | 30 |
Batch Size | 64 |
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 |
- Deploy using Streamlit
- Integrate with OpenCV for real-time webcam emotion detection
- Improve accuracy with data augmentation and ResNet
Muhammad Rayan Shahid
Passionate AI & ML Developer | LinkedIn | GitHub
β If you found this project helpful, consider starring the repo!