KatInterview

Camera Lens Health Monitor and Intermittent Fault Triage for a Driver-Assist Vehicle

System DesignModel answer
MediumModel answerSystem Designembeddedautomotivesensor-fusion

Last updated

Design a sensor layout, lens-obstruction detector and fallback logic for a driver-assist vehicle, then plan how to track down a camera fault that fires about once an hour in clear weather.

Context

You are on the software team for an electric utility vehicle that offers two driver-assistance modes:

  • Highway assist (Level 2+): lane centering, adaptive cruise control and automatic lane changes.
  • Low-speed maneuvering: parking help and slow off-road or trail driving.

Exterior camera lenses can be compromised by mud, snow, dust, direct sunlight and condensation. You need to design three things: the sensor layout, an on-vehicle detector for lens problems, and a manager that reduces driving-assist capability safely when a sensor is impaired.

What the design must cover

  1. Sensors and placement. Choose cameras and complementary sensors (radar, ultrasonic, etc.) for full 360-degree coverage, with redundancy for forward highway driving.
  2. Lens health detection. Describe a real-time pipeline that labels each camera as Clear, Partially Occluded, Fully Occluded or Blinded/Glare.
  3. Degradation behavior. Specify how features step down when a critical sensor is impaired or lost. Discuss fail-operational versus fail-safe behavior and the timing of handing control back to the driver.
  4. Event snapshots. Define lightweight diagnostic captures (sensor metadata, synchronized timestamps, small context frames) taken whenever a health state changes.

Constraints

  • The detector runs on the automotive SoC's accelerator and may use less than 5% of the perception compute budget.
  • Full occlusion must be reported within 1.0 second.
  • Cellular telemetry must stay under 20 MB per driving hour in normal operation.

Field problem to troubleshoot

A fleet technician reports that on a group of validation vehicles, the front wide camera raises a Fully Occluded event about every 60 minutes (plus or minus 2 minutes). It happens in bright, clear daylight, and each time the highway steering assist briefly disengages.

Explain how you would work with the technician to:

  1. Form testable root-cause hypotheses.
  2. Reproduce and isolate the problem without endangering test drivers.
  3. Decide which telemetry, logs and time-synchronized bus traces (CAN, Ethernet, PTP timestamps) you need.
  4. Validate a fix and check for regressions before wide release.

Give a structured answer with concrete numbers and trade-offs.

Hints

Hint 1

Start by turning the constraints into numbers: how many frames fit in 1.0 s at 30 fps, and what 20 MB per hour means as an average data rate. These set the voting window and the snapshot size and frequency.

Hint 2

For each forward-highway function, ask which two independent sources protect it. Camera plus camera and camera plus radar cover different failure modes, so think about which one backs lateral control and which backs longitudinal control.

Hint 3

A fault recurring every hour in perfect weather is unlikely to be environmental. Ask whether the period is tied to uptime or to wall-clock time, and consider counters, buffers, clock adjustments, or periodic background jobs. Also ask whether the detector is judging real image content or a missing or invalid frame.

Hint 4

For safe reproduction, move from least to most risky: replay recorded footage on a bench, inject faults to speed up the timer, then a stationary vehicle, then a closed track with steering actuation disabled.