Design an ML System to Predict Per-Flight Energy for Reserve Planning
Last updated: November 29, 2026
Quick Overview
Design a machine learning system that predicts how much battery energy a planned delivery flight will use, given route, payload, aircraft health and weather forecast, so that dispatch can set safe reserves and decide go or no-go.
Zipline
November 29, 20260
0
0 solved
Design a machine learning system that predicts how much battery energy a planned delivery flight will use, given route, payload, aircraft health and weather forecast, so that dispatch can set safe reserves and decide go or no-go.
Every Zipline flight has to land with reserve energy, and wind, temperature and battery aging change consumption a lot. The interviewer is looking for a safety-aware ML design: calibrated uncertainty rather than point estimates, a physics baseline, conservative fallbacks, and monitoring for drift in a safety-critical loop.
What the Interviewer Expects
- Frame the target and the decision it drives
- Start from a physics-based baseline and model residuals
- Predict a high quantile or a calibrated interval, not just the mean
- Describe features, training data and leakage risks
- Define offline and online evaluation tied to safety
- Plan fallback and drift monitoring
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you validate that the 99th percentile prediction is actually calibrated?
- A new aircraft revision ships with little data; what do you do?
- How do you keep forecast-time features consistent between training and serving?
- Should the model ever relax a reserve rule set by the safety team?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Target: energy used (Wh) from takeoff to landing for a planned mission. Decision: dispatch accepts the flight only if predicted_p99 + reserve <= usable_energy. Latency under 100 ms per prediction at...
High-Level Design
- Data: flight logs (per-second power, airspeed, groundspeed, altitude), mission plans, payload mass, battery pack ID and cycle count, aircraft revision, weather forecasts captured at plan time pl...