Skip to content
/ SSE Public

Learning Supervised Scoring Ensemble for Emotion Recognition in the Wild, EmotiW 2017, ICMI 2017

Notifications You must be signed in to change notification settings

erinhp/SSE

Repository files navigation

SSE: Learning Supervised Scoring Ensemble for Emotion Recognition in the Wild

SSE is a state-of-the-art algorithm for face emotion recognition. You can use the code to train/evaluate a network for emotion recognition task. For more details, please refer to our ICMI 2017 paper.

Citing SSE

If you find SSE useful in your research, please consider citing:

@inproceedings{HupICMI2017,
    Author = {Ping Hu, Dongqi Cai, Shandong Wang, Anbang Yao, Yurong Chen},
    Title = {Learning Supervised Scoring Ensemble for Emotion Recognition in the Wild},
    Booktitle = {19th ACM International Conference on Multimodal Interaction},
    Year = {2017} 
}

Results comparison of our SSE networks on Emotion Challenge validation set (%)

Methods Original 3conv-s + Eltwise 3conv-s + Concat 4conv-c + Eltwise 4conv-c + Concat
DenseNet-121 41.3594 44.1253 45.6919 43. 5625 44.6719
HoloNet 40.9922 44.2839 46.4752 41.4308 43.6031
ResNet-50 41.7755 \ \ \ 42.5587

Recognition accuracy of our best submission to Emotion Challenge 2017

For the best submition to Emotion in the wild Challenge 2017, we fuse the results on test set from five models. In folder submitted_predictions_emotiw2107, you can find the corresponding predictions for each model and ensemble predictions. We also provide test video list for evaluation.

Validation(%) Test(%) Methods
59.01 60.34 7th Fusion of 1 SSE-ResNet + 1 SSE-DenseNet + 1 SSE-HoloNet + 1 hand-crafted model + 1 audio model

SSE Installation

  1. Clone the SSE repository
    git clone https://github.com/erinhp/SSE.git
  1. Build Caffe and pycaffe, it can be download from here
   cd $ROOT/caffe
   # Now follow the Caffe installation instructions here:
   #   http://caffe.berkeleyvision.org/installation.html

   # If you're experienced with Caffe and have all of the requirements installed
   # and your Makefile.config in place, then simply do:
   make -j8 && make pycaffe
  1. Data initialization for training and testing on Emotion Challenge Dataset
    First, we locate and track target faces in the frames of video clips, then cut face regions, scale them to the same size and do face frontalization, at last rescale the frontalized face images to a resolution of 128*128 pixels. For more details, please refer to our ICMI 2017 paper. For data in this Challenge, you can contact organizers of EmotiW 2017. You can also use other dataset which contains face.
  2. Test SSE with Emotion Challenge Dataset
    Now we provide three models for testing the Emotion Challenge dataset. To use demo you need to download our pretrained SSE models, please download the model manually from BaiduYun, and put it under $models.
    For example, you can use the command in test_SSE_HoloNet.sh as follows to get face emotion recognition result for each frame:
   #extract features leveldb
   rm -r examples/sse_holonet_features/ && ./build/tools/extract_features.bin models/SSE/SSE_HoloNet_trval_iter_69500.caffemodel script/SSE-HoloNet/SSE_holonet_test.prototxt prob examples/sse_holonet_features 46 leveldb GPU

   #leveldb to mat
   cd leveldb2mat/ && python leveldb2mat.py ../../examples/sse_holonet_features/ 46 128 7 features.mat
  1. Train SSE with Emotion Challenge Dataset
    Train an SSE learning Strategy network. Here is the codes in train_SSE_XXX.sh. For example, train SSE-HoloNet on Emotion Challange train dataset. To train SSE-DenseNet or SSE-ResNet, you can finetune with their original pretrained models from: ResNet_50, DenseNet_121.
    ./build/tools/caffe train \
    --solver = script/SSE-HoloNet/SSE_holonet_train_solver.prototxt
    --gpu = 0
    ./build/tools/caffe train \
    --solver = script/SSE-DenseNet/SSE-densenet-121_train_solver.prototxt  \
    --weights = models/pretrained_model/DenseNet_121.caffemodel \
    --gpu = 0 

About

Learning Supervised Scoring Ensemble for Emotion Recognition in the Wild, EmotiW 2017, ICMI 2017

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published