On-device ML
MoodScope
Real-time emotion detection that runs entirely on a Raspberry Pi.

~33 FPS
on a Raspberry Pi 4, with nothing sent to a server
My role
When
What it is
MoodScope reads emotions from your face in real time and runs entirely on a Raspberry Pi 4. I built it at Health Hacks @ USF 2025.
Why I built it
I wanted people to be able to track their mood without streaming video of their face to some server.
How I built it
I quantized the models so they run at about 33 FPS on the Pi, and a small language model on the device explains the results in plain English.
What it can do.
Seven emotions
It distinguishes angry, disgust, fear, happy, sad, surprise, and neutral.
Nothing leaves the device
Camera, vision model, and language model all run locally. No video gets uploaded anywhere.
It flags rough stretches
If sad, angry, or afraid shows up in 8 of the last 10 minutes, it raises an alert.
Works for groups
With several people in frame, it reports the group’s dominant emotion and how engaged everyone looks.
Technical details.
- Device
- Raspberry Pi 4 (edge)
- Models
- TensorFlow Lite, INT8 quantized
- Throughput
- ~30 ms/frame (~33 FPS)
- Latency
- ~45% fewer frame stalls (threaded dual backends)
- Insight
- local Llama 3.2, on-device
- Vision
- OpenCV
What I used
- TensorFlow Lite (INT8)
- Llama 3.2
- OpenCV
- Raspberry Pi 4
- Python
