Design the ML system for self-driving perception
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Google's first round (coding), last asked Dec 2025. It tests computer vision, autonomous driving and mlops.
Design the perception system of a self-driving car: the part that turns raw sensor data into the obstacles around the vehicle so the planner can avoid collisions. Cover the sensors, the models that detect and track objects, how training data is collected and labelled, how you evaluate safety-critical errors, and how models are deployed and monitored on the car under hard latency limits.
Requirements
- Functional: detect and classify vehicles, pedestrians, cyclists and static obstacles; estimate their position, size, velocity and heading; track them across frames and hand the planner a list of objects with uncertainty.
- Non-functional: end-to-end latency in the tens of milliseconds on the car's compute; graceful behaviour when a sensor fails; recall on vulnerable road users treated as the critical metric; every model change traceable and reversible.
Clarifying questions
- Which sensors are available: cameras only, or cameras with lidar and radar?
- What compute is on the vehicle, and what is the latency budget for perception?
- Is there an HD map, and which operating domain (highway, city, weather)?
- Does the planner need predicted trajectories from us, or only current state?
- How much labelled data exists, and what is the labelling budget?
What a strong answer covers
- Sensor fusion choices: early (raw), mid (features in a bird's-eye-view grid) or late (per-sensor detections), and why; time synchronisation and calibration.
- Models: a 3D detector over the fused BEV features, a tracker (Kalman filter with data association, or learned), and how uncertainty is passed on to planning.
- Data engine: fleet logging, triggers that pick interesting scenes (disagreement between models, hard braking, driver takeovers), auto-labelling with large offline models plus human review, and targeted mining of rare classes.
- Evaluation: per-class precision and recall by distance and occlusion, false negatives near the vehicle weighted most, tracking metrics, scenario-based regression suites and simulation replays before any road test.
- Deployment: quantisation and pruning to fit the latency budget, shadow mode next to the current model, staged rollout, and rollback.
- Monitoring on the car: sensor health, input drift, detection-count anomalies, and a safe fallback (minimal-risk manoeuvre) when perception confidence drops.
Follow-ups
- A camera is blinded by sun glare. What does the system do?
- How do you find the rare cases (a child chasing a ball) the model has never seen?
- Would you train one end-to-end model from pixels to driving actions instead? What do you lose?
Where it's asked
- Google · First round: coding · Last asked Dec 202545 min · Coding in a Google Doc, no syntax highlighting or autocomplete · No AI
What it tests
computer vision · autonomous driving · mlops
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
