Giter Site home page Giter Site logo

ststnet's Introduction

STSTNet (Shallow Triple Stream Three-dimensional CNN)

A shallow network is designed to extract the high level features (i.e., optical flow guided features) to perform the facial micro-expression recognition on three emotion classes (positive, negative and surprise).

Example of micro-expressions:

SAMM (006_006_1_2), SMIC (s03_s03_po_11), CASME II (sub11_EP15_04f)

STSTNet is a two-layer neural network that is capable to learn the features from three optical flow features (horizontal optical flow images, vertical optical flow images and optical strain) computed from the onset and apex frames from each video. Please find the source code for optical flow adopted in this experiment at http://www.ipol.im/pub/art/2013/26/

The recognition results achieved are:

The databases include CASME II (145 videos), SMIC (164 videos) and SAMM (133 videos). "Full" is the composite database of the 3 databases (442 videos).

The exact configuration of STSTNet is:

Matlab code

Software is written and tested using Matlab 2018b, toolbox required:

  1. Deep Learning Toolbox
  2. Parallel Computing Toolbox
  3. Computer Vision System Toolbox

The files include:

  1. main.m : Script which trains and tests the STSTNet (You may modify the input data, number of epochs, mini-batch size and the learning rate)
  2. STSTNet.mat : The STSTNet architecture design
  3. video442subName.txt : List of subject's name to validate the recognition performance in leave-one-subject-out cross validation (LOSOCV)
  4. input : Input data (28x28x3) arranged in LOSOCV manner. The resized images of: 1) horizontal optical flow images; 2) vertical optical flow images, and; 3) optical strain, computed from the onset and apex frames. Please download from https://bit.ly/2S35u05

Python code

Pytorch framework is used to reproduce the result. Note that the results obtained are slightly lower from the original work. The result for Full (Composite) is UF1: 0.7209 and UAR: 0.725.

Step 1) Please download the dataset from from https://bit.ly/2S35u05

Step 2) Place the files in the structure as follows:

├─STSTNet_Weights
├─norm_u_v_os
├─main.py
├─requirements.txt

Step 3) Installation of packages using pip

pip install -r requirements.txt

Step 4) Training and Evaluation

python main.py -- train False

If you use this method in your research, please cite:

@inproceedings{liong2019shallow,
title={Shallow triple stream three-dimensional cnn (ststnet) for micro-expression recognition},
author={Liong, Sze-Teng and Gan, YS and See, John and Khor, Huai-Qian and Huang, Yen-Chang},
booktitle={2019 14th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2019)},
pages={1--5},
year={2019},
organization={IEEE}
}

If you have suggestions or questions regarding this method, please reach out to [email protected]

Thank you for your interest and support.

ststnet's People

Contributors

christy1206 avatar genbing99 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.