Design an ML System to Triage Resident Maintenance Requests
Last updated: November 29, 2026
Quick Overview
Residents describe maintenance problems by text or phone ("water coming through the ceiling", "dishwasher smells"). Design the ML system that classifies category and urgency, detects emergencies, asks clarifying questions, and creates a correctly routed work order.
EliseAI
November 29, 20260
0
0 solved
Residents describe maintenance problems by text or phone ("water coming through the ceiling", "dishwasher smells"). Design the ML system that classifies category and urgency, detects emergencies, asks clarifying questions, and creates a correctly routed work order.
Maintenance triage is a resident-side workflow where a missed emergency (gas, flooding, no heat in winter) has real safety and cost consequences. The interviewer checks label strategy, asymmetric error costs, and how the model sits inside a conversation rather than as a one-shot classifier.
What the Interviewer Expects
- Frame as multi-task: category, urgency, emergency flag, missing info
- Use historical work orders as weak labels and correct their noise
- Set thresholds by asymmetric cost, with a high-recall emergency path
- Combine LLM extraction with a calibrated classifier or rules for safety
- Plan offline and online evaluation, including tech-reported true category
- Escalation to on-call humans with latency guarantees
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 do you evaluate recall on emergencies when they are under 1% of requests?
- Photos are attached: how do you use them?
- Different operators use different category taxonomies: how do you handle that?
- How would you detect model drift after a cold snap changes the request mix?
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
Input: free text or a call transcript, optional photos, unit metadata (appliance list, building age). Output: category (plumbing, HVAC, appliance, electrical, pest, etc.), urgency tier, emergency yes/...
High-Level Design
- Safety screen first: a high-recall classifier plus keyword and pattern rules (gas smell, sparks, flooding, carbon monoxide, no heat with outdoor temperature below a threshold). Any hit routes t...