Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Human-Detection Video Data Pipeline

Gather and evaluate representative camera clips for a person detector that controls notifications.

Problem statement

For this exercise, assume a company-neutral home-camera service. A household may opt in to upload ten-second motion-triggered clips from its cameras.

Design the data and ML system that gathers these clips, obtains reliable human-present labels, builds reproducible training and held-out test sets, evaluates and releases a person detector, and uses its decision to send a notification when a human is detected.

The core challenge is trustworthy training and testing data: a motion trigger is not a human label, and clips from the same camera or event can be highly correlated. Explain how video is checked and cleaned before it becomes a labeled example without exhausting worker memory.

The service must account for opt-out and deletion requests, retries, missing labels, and a model release that increases false alerts. Do not design the camera hardware, general-purpose video search, or a person-identity system. Choose reasonable model and infrastructure technologies; no vendor is required.

What to build

  1. Accept motion clips only for opted-in households, preserve camera/event identity, and show durable intake or rejection status.
  2. Validate and clean selected clips, record adjudicated human-present outcomes, and produce versioned training and held-out evaluation sets with traceable selection rules.
  3. Train and compare detector versions, activate a reviewed model, and notify a household only for an eligible clip judged to contain a human.
  4. On opt-out or deletion, stop future training and notification use of affected clips and track removal from retained raw and derived datasets.

At scale

  • For this exercise, assume one million opted-in cameras produce twenty million ten-second motion clips per day; most clips contain no human. The system should not require manual labeling of every clip, and each video-preprocessing worker has a two-gigabyte memory budget.
  • For this exercise, target five seconds at p95 from accepted clip to a notification decision when the detector is healthy, while durable data collection and labeling may be asynchronous.
  • For this exercise, retain raw uploaded clips for fourteen days unless a household requests earlier deletion, and prevent a revoked clip from entering any new training or notification job immediately after the revocation is acknowledged.
  • For this exercise, complete deletion of retained raw clips and attributable derived training examples within twenty-four hours; report incomplete cleanup rather than claiming success. Historical trained models are handled through a documented release/retraining policy, not per-clip instant unlearning.