KatInterview

Real-Time Perception Pipeline for Autonomous Driving

Machine LearningModel answer
MediumModel answerMachine Learningml-systemscomputer-visionsensor-fusion

Last updated

Design an ML pipeline that fuses camera, LiDAR, and radar data to detect obstacles with sub-100ms latency on edge hardware.

Problem: Building a Multi-Sensor Object Detection System

You're building the perception stack for an autonomous driving platform. The system ingests streams from cameras, LiDAR, and radar mounted on the vehicle and must output a unified view of the surrounding environment to downstream planning modules.

What the System Must Do

Core Functionality:

  • Detect and classify dynamic objects: cars, pedestrians, bicycles
  • Combine signals from different sensor types to improve accuracy
  • Deliver results within a 50 millisecond cycle time

Operational Constraints:

  • Safety-first detection: Missing a pedestrian is unacceptable; the system must achieve extremely high recall for vulnerable road users
  • Embedded deployment: All processing happens on vehicle hardware with strict power and compute limits
  • Continuous operation: The system runs in varied weather, lighting, and sensor health conditions

Design Challenges to Address

Your architecture should cover:

  1. Cross-Sensor Integration: How do you align and synchronize data from sensors with different update rates, coordinate systems, and timing characteristics?

  2. Fusion Architecture Trade-offs: Should you merge raw sensor data before processing, combine intermediate representations, or run separate detectors and merge their outputs? Justify your choice.

  3. Latency Optimization: What techniques will you use to meet the 50ms requirement while maintaining detection quality on resource-constrained hardware?

  4. Degraded Operation: How does your system behave when sensors malfunction, get blocked, or perform poorly due to environmental conditions like fog or direct sunlight?

Provide a concrete architecture with justifications for key decisions.

Hints

Hint 1

Start by quantifying the problem: sensor rates, data volumes, compute budget, and what 'near-zero false negatives' means numerically

Hint 2

Consider what information each sensor provides uniquely—cameras give texture and color, LiDAR gives precise 3D geometry, radar gives velocity through Doppler

Hint 3

The 50ms budget must cover the entire pipeline from sensor data arrival to output delivery; allocate time to each stage

Hint 4

Build redundancy into safety-critical systems: don't rely on a single inference path for detecting pedestrians