# Facial-Expression-Recognition-1
**Repository Path**: liu_xin0807/Facial-Expression-Recognition-1
## Basic Information
- **Project Name**: Facial-Expression-Recognition-1
- **Description**: Classify each facial image into one of the seven facial emotion categories considered using CNN based on https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-06-16
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Facial Expression Recognition
Used Convolutional neural networks (CNN) for facial expression recognition . The goal is to classify each facial image into one of the seven facial emotion categories considered .
## Data :
We trained and tested our models on the data set from the [Kaggle Facial Expression Recognition Challenge](https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge), which comprises 48-by-48-pixel grayscale images of human faces,each labeled with one of 7 emotion categories: anger, disgust, fear, happiness, sadness, surprise, and neutral .
Image set of 35,887 examples, with training-set : dev-set: test-set as 80 : 10 : 10 .
## Dependencies
Python 2.7, sklearn, numpy, Keras.
## Library Used:
python cnn_major.py
No need to train the model , already trained weights saved in model4layer_2_2_pool.h5 file.
3. Want to train model yourself ?
is_model_saved = True
// to
is_model_saved = False
##### Shallow CNN Model
Code Link - [cnn_major_shallow](https://github.com/rishabh30/Facial-Expression-Recognition/blob/master/cnn_major_shallow.py)First convolutional layer, we had 32 3×3 filters, along with batch normalization and dropout and max-pooling with a filter size 2×2.
Second convolutional layer, we had 64 3×3 filters, along with batch normalization and dropout and max-pooling with a filter size 2×2.
In the FC layer, we had a hidden layer with 512 neurons and Softmax as the loss function.
[ 4.99624775e-07 3.69855790e-08 9.91190791e-01 8.15907307e-03 2.62175627e-06 9.97206644e-06 1.02341000e-03]which is converted to