Predict Rail Car Bearing Failures From Wayside Detector Data
Last updated: November 29, 2026
Quick Overview
Design an ML system that uses readings from wayside hot bearing detectors, acoustic bearing detectors, and wheel impact load detectors to predict which rail cars are likely to have a bearing or wheel failure soon, so they can be set out for repair before a derailment.
Bnsf
November 29, 20260
0
0 solved
Design an ML system that uses readings from wayside hot bearing detectors, acoustic bearing detectors, and wheel impact load detectors to predict which rail cars are likely to have a bearing or wheel failure soon, so they can be set out for repair before a derailment.
Railroads like BNSF run thousands of wayside detectors and use the readings to pull defective cars before they fail. The interviewer checks labeling with rare and delayed outcomes, per-car time series features across many detector passes, cost-sensitive thresholds, and how predictions turn into actions in the yard.
What the Interviewer Expects
- Frames the task as predicting failure within a horizon at the car-axle-bearing level
- Defines labels from repair records and incidents, handling rarity and delay
- Builds features from trends across many detector passes, not single readings
- Picks metrics tied to the cost of misses versus unnecessary set-outs
- Designs the batch and streaming paths to actions in the field
- Plans monitoring for detector calibration drift
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
- Detectors from different vendors read systematically differently. How do you handle it?
- Most cars are foreign-owned and seen rarely. How does that affect features?
- How would you validate the model before letting it trigger set-outs?
- How do you avoid the model learning from its own interventions once deployed?
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
Goal: rank bearings (identified by car, axle, side) by probability of failure within, say, the next 7 days or 2,000 miles, and raise alerts that dispatch can act on. Constraints: a missed failure can ...
High-Level Design
- Ingest detector readings as events, join to car identity from AEI and to the train (for ambient temperature, speed, load).
- Feature store keyed on bearing: rolling statistics over recent passes. ...