Version: v1.0 Framework: TensorFlow 2.x Optimized format: TensorFlow Lite Input: 478 Mediapipe Face Mesh landmarks per frame (up to 300 frames) Output: 6-class emotion prediction (Angry, Disgust, Fear, Happy, Neutral, Sad)
🧠 Model Overview
The Emotion Sequence Transformer is a deep learning model built using TensorFlow for recognizing human emotions from continuous video clips.
It uses 478 Mediapipe facial landmarks per frame to capture spatiotemporal patterns of facial movements across time.
The model predicts one of six basic emotions by analyzing both facial geometry and temporal variation within sequences of up to 300 frames.
This model is suitable for real-time video-based emotion detection, affective computing, human-computer interaction, and emotion-aware AI systems.
📊 Dataset
This model was trained on the Optimized 478-Point 3D Facial Landmark Dataset —
a dataset derived from the Video Emotion Dataset, optimized for emotion recognition using Mediapipe’s 3D face mesh landmarks.
Each sample in the dataset includes:
Up to 300 frames per clip
478 facial landmarks per frame
Corresponding emotion label
🧩 Model Architecture
The architecture is based on a Transformer encoder design that processes sequential data of facial landmarks.
Pipeline:
Input normalization using precomputed mean and std (global stats)
Sequence embedding via positional encodings
Transformer encoder blocks to capture temporal and spatial dependencies
Dense layers for emotion classification (6 output neurons with softmax)