The interview problem

Practice prompt

Design a service that turns fleet-camera video into a deduplicated road-repair inspection queue.

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

Assume consenting fleet capture, GPS timestamps and human confirmation before maintenance decisions. Detect candidate damage in frames, aggregate adjacent frames into tracks, map tracks to road segments and attach uncertainty from positioning. Train with damage type and extent annotations; split by road and season. Keep original evidence only for a bounded review period. Rank segments by confirmed severity and recency rather than raw detection count, which otherwise rewards heavily traveled routes.

2. Trace the design or derivation

Detect damage
  → track across frames
  → geolocate
  → deduplicate passes
  → inspection queue

Use a road-segment observation ledger with last-seen time, weather and fleet coverage. A previously detected defect absent from one rainy pass should not be marked repaired. Require confirmed repair evidence or repeated clear observations under comparable conditions, and distinguish no recent observation from no damage.

3. Calculate the example

A vehicle captures 30 frames per second and sees one pothole for two seconds: 60 detections may refer to one defect. Ten passes could yield 600 detections but still only one repair candidate.

4. Failure cases and trade-offs

Shadows resemble cracks, rain hides damage and GPS drift merges neighboring lanes. Aggressive spatial deduplication reduces reviewer burden but can merge distinct defects. Retain separate candidates when location uncertainty overlaps multiple lanes; route them for inspection.

5. Validation, follow-ups and self-review

Evaluate defect-level precision, missed severe defects and duplicate tickets on unseen roads. Follow-up: how would you prioritize an unobserved road? Self-review: distinguish detection, geolocation, deduplication and human confirmation.

Sources and related practice

Technical reference: arxiv.org — Object detection from images; counting, tracking and road workflows are original applications, not paper benchmark claims.

Source publication/update: Submitted June 8, 2015; revised May 9, 2016. 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 Detect rare manufacturing defects from images; Detect land-cover changes from satellite image pairs.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.