Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Optimize Factory Defect Models Under Constraints

MediumMachine Learning00:00
Practice interviewer
In session
5 left
00:00

Your question is Optimize Factory Defect Models Under Constraints. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Business Context

VoltForge manufactures industrial motor controllers across 12 production lines and inspects roughly 1.8 million units per month. The quality team wants a model that predicts whether a unit will fail final inspection, but the solution must be optimized for plant constraints: false negatives are expensive, inference must run on edge devices, and engineers need understandable drivers of risk.

Dataset

You are given one year of unit-level production data collected from MES, sensor logs, and operator records.

Feature GroupCountExamples
Process measurements18solder_temp_mean, torque_std, cycle_time_sec, humidity_pct
Equipment metadata7line_id, machine_id, tool_version, maintenance_age_days
Material / supplier6supplier_id, lot_age_days, pcb_batch_grade
Operator / shift5shift, operator_tenure_days, overtime_flag
Quality history6prior_line_defect_rate_7d, rework_rate_30d, calibration_gap_days
  • Rows: 420K manufactured units, 42 features
  • Target: failed_final_inspection (1 = defective, 0 = passed)
  • Class balance: 4.6% defective, 95.4% non-defective
  • Missing data: ~12% missing in sensor-derived features during maintenance windows; ~4% missing in operator fields for temporary staff

Success Criteria

A good solution should:

  • achieve recall >= 0.85 on defective units,
  • maintain precision >= 0.30 to avoid overwhelming manual review,
  • keep batch scoring latency under 5 minutes for 200K units on a CPU-only edge server,
  • provide feature-level explanations usable by manufacturing engineers.

Constraints

  • No GPU at inference time
  • Model retrains weekly
  • Predictions are used to trigger secondary inspection, so threshold selection must reflect inspection capacity
  • The plant prefers simpler models if performance is within 2-3 points of a more complex alternative

Deliverables

  1. Build and compare at least two classification approaches suitable for tabular industrial data.
  2. Design preprocessing for mixed feature types and missing values.
  3. Choose an evaluation strategy that reflects class imbalance and temporal production drift.
  4. Select an operating threshold based on plant inspection capacity and defect recall.
  5. Explain the final model choice in terms of accuracy, latency, interpretability, and operational fit.