Computer Vision Engineer Interview Question

How would you detect manufacturing defects when you have almost no examples of defects?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Flip the problem: learn what normal looks like and flag anything that differs, using anomaly detection trained on good parts only, for example by comparing image patch features against a bank of normal examples. Invest heavily in controlled imaging, with fixed lighting, cameras and part positioning, because that makes deviations far easier to see. Validate on the few real defects you have, set thresholds by the cost of escapes against false rejects, and collect defects over time.

Why interviewers ask this

Industrial inspection is one of the most common applied vision problems, and the scarcity of defect data is its defining constraint. Interviewers want to see that you reframe it as anomaly detection, that you value the imaging setup as much as the model, and that you think about thresholds in terms of production costs. Describing a path from unsupervised to supervised methods as defect examples accumulate shows practical experience.

How to structure your answer

  • Reframe the task as learning normal appearance.
  • Control the imaging setup as tightly as possible.
  • Validate with the real defects you have, and synthetic ones with care.
  • Set thresholds by production cost and collect defects over time.

Example answer

Spoken example, first person

With almost no defects, a supervised classifier is not realistic, so I would reframe it: learn what a good part looks like and flag anything different. Feature based anomaly detection works well here. You extract patch features from a pretrained network for thousands of good parts, store them, and at inference time score each patch of a new part by its distance to the nearest normal patch. That also gives you a heatmap, which operators like because they can see why a part was rejected. Before any of that, though, I would spend time on the imaging, with fixed lighting, a fixed camera and consistent part positioning. On a previous line, switching to diffuse lighting removed most of the false alarms caused by reflections. I would validate with the handful of real defects plus some carefully made synthetic ones, and set the threshold with the quality team based on what an escaped defect costs compared with a false reject. Every flagged part gets reviewed and labelled, so within a few months there is enough defect data to train a supervised model alongside the anomaly score.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you handle normal variation between batches or suppliers?
  • What would you do if the false reject rate was too high for the line?
  • How do you evaluate a system when you only have ten real defects?

Related computer vision engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot