Main stream of the model:
Related paper: Enriched Long-term Recurrent Convolutional Network for Facial Micro-Expression Recognition
Related code: https://github.com/IcedDoggie/Micro-Expression-with-Deep-Learning
matlab 2015b
python 3.6
Keras (tensorflow as backend)
TIM-temporal-interpolation-model-master contains interpolation programs to preprocess data.
tvl1flow_3 is the package for computing optical flow and optical strain.
Recognition-Experiment contains model and training files.
- Prepare your data (e.g. CASMEII dataset http://fu.psych.ac.cn/CASME/casme2-en.php)
- Detect and crop the faces with opencv or some other packages by yourself.
- Run interpolation files to interpolate your video into 16 frames(can set by yourself).
- Compute optical flow image and optical strain image.
- When your data is ready, run train.py
I have trained the model for 1000 epochs and the accuracy is arround 70%. If you need the model, contact me. And I will upload it to cloud disk later.
Trained on CASMEII: link:https://pan.baidu.com/s/1tRWcHmPRVvgpFz95kybheA key:1234