Feature Engineering for Predicting Restaurant Food Prep Time

Last updated: November 29, 2026

Quick Overview

DoorDash wants to predict how long a restaurant will take to prepare an order so Dashers arrive just as food is ready. What features would you build, and how would you deal with the fact that true prep time is rarely observed?

DoorDash
Machine Learning
Machine Learning Engineer
DoorDash
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


DoorDash wants to predict how long a restaurant will take to prepare an order so Dashers arrive just as food is ready. What features would you build, and how would you deal with the fact that true prep time is rarely observed?

Prep time estimation drives Dasher dispatch timing at DoorDash and directly affects both Dasher wait and food temperature. The interviewer checks feature sense across order, merchant, and real-time load, plus awareness of label noise and censoring.

What the Interviewer Expects
  • Define the label and its noise sources
  • Build order-level, merchant-level, and real-time load features
  • Use time-aware aggregations without leakage
  • Handle censored labels when the Dasher arrives after food is ready
  • Choose an evaluation tied to Dasher wait and food wait
Key Topics to Cover
feature engineering
label noise
censored data
time-series aggregation
prep time
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you use merchant tablet 'order ready' signals that are often wrong?
  • How would you handle a new restaurant with no history?
  • Which features would leak future information?
  • How would you model a sudden rush at the store?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

True prep time (order confirmed to food ready) is seldom logged reliably. Proxies: merchant marks "ready" (often late or early), Dasher pickup time (only an upper bound when the Dasher waited). Ask wh...

Approach

Treat the label carefully, then build features in three groups: the order itself, the merchant's typical behavior, and current load at the store....


Submit Your Answer
Markdown supported