The interview problem
Design a general fitness repetition counter that explains uncertainty without giving medical assessments.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Estimate pose landmarks, derive a task-specific angle trajectory and count completed transitions between separated thresholds. Require minimum visibility and use a reset state after tracking loss. Evaluate by person and camera position, using human-counted repetitions.
2. Trace the design or derivation
Pose track → angle and visibility → hysteresis states → completed cycle count
Keep thresholds exercise-specific and validate them instead of treating the example values as universal anatomy. A useful UI allows correcting the count and marks uncertain intervals. Evaluation should include both overcounting and undercounting rather than only absolute average error.
3. Calculate the example
With lower and upper thresholds of 70° and 150°, readings 160,100,65,100,155 form one complete cycle. Readings oscillating at 148,151,149,152 should not create repeated full repetitions.
4. Failure cases and trade-offs
A two-dimensional angle changes with viewpoint and occlusion. Counting is not evidence of safe technique, and a model should not diagnose an injury from the trajectory.
5. Validation, follow-ups and self-review
Test partial repetitions, pauses and reentry into frame. Follow-up: how would multiple people affect tracking? Self-review: show the state transitions and uncertainty display.
Sources and related practice
Technical reference: ai.google.dev — Pose landmark estimation; repetition thresholds are hypothetical.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Track anonymous objects through a camera view; Recognize deliberate hand gestures as commands.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.