UnSlouch
Privacy-first webcam posture monitor running CPU-only ML inference with configurable dwell-time alerts and zero video storage.

Overview
UnSlouch tracks head-and-shoulder posture continuously through a standard laptop webcam during desk sessions, classifying upright versus slouching alignment on CPU hardware without requiring a GPU.
Designed for realistic daily focus: a configurable 5–10 second dwell tolerance filters out brief leaning, a Picture-in-Picture pop-up keeps status visible across browser tabs, and video frames are never recorded or stored.
Approach
CPU-Only ML Posture Pipeline
Combined MediaPipe Pose landmark extraction with a trained scikit-learn classifier served via FastAPI threadpools for low-latency CPU inference.
Anti-False-Alarm Dwell & Privacy Engine
Evaluated sustained slouch duration across user-defined 5–10s windows with 5 alert tones, discarding raw frames immediately and storing only text session metrics in SQLite.
Multi-View Ergonomic Frontend
Built React 19, Vite, and Recharts views for Live Monitoring, cross-tab Picture-in-Picture overlays, optional 15–60 min stretch reminders, and 7-day trend history.
Key insight
Adding a configurable 5–10 second dwell threshold turns a noisy frame-by-frame posture classifier into a calm ergonomic tool people actually keep running all day.
Zero Video
Webcam frames are evaluated in memory and discarded; only timestamp, duration, and probability are stored.
CPU Only
Runs reliably on standard laptops without dedicated GPU hardware.
5–10s Dwell
Configurable tolerance window with 5 tones, PiP pop-out, and 7-day Recharts history.
