Micro-expression Recognition

Realtime micro-expression recognition from scratch using OpenCV and PyTorch

Try it out with a webcam or video using the example code given – ‘meRecognition.py

Data Collection and Cleaning: https://github.com/k-m-irfan/MER_dataset_cleaning

Dataset: https://www.kaggle.com/datasets/kmirfan/micro-expressions

Notebook: https://www.kaggle.com/code/kmirfan/micro-expression-classification

Trained Weights: https://drive.google.com/file/d/19N4wP8bRsdR9VRf84ex2YFolUhF8qT6k/view?usp=sharing

Stock Video Credits:

PexBell – Free Stock Video Footage – YT, Video by Tima Miroshnichenko from Pexels, Video by Wolfgang Langer from Pexels, Vanessa Van Edwards – YT, Ancient Egypt – YT, and MDI Management Development International – YT


  • Python 3.9.7
  • PyTorch 1.10.1
  • OpenCV 4.5.4


View Github