On-device · ML2023

Emotion Detection

TensorFlow Lite model that classifies facial emotion in real time at 30 FPS on-device.

Role
Full-stack engineer
Timeline
2023
Stack
FlaskTensorFlow LiteML KitCamera
01

Screens & Architecture

Live classifier
Screen 01 · Live classifier
02

The Problem

TensorFlow Lite model that classifies facial emotion in real time at 30 FPS on-device.

03

How I built it

  • Quantized model down to a 4.2MB TFLite binary.
  • Camera pipeline with ML Kit for face detection.
  • Fully offline inference for privacy.
04

Outcome

  • 30 FPS on target mid-range devices.
  • 87% classification accuracy on held-out set.