Computer Vision Engineer Interview Question

How do you choose a confidence threshold for a detector that will run in production?

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

Quick answer

Choose it from the product's error costs, not from a default like 0.5. Plot precision and recall against threshold on a validation set that matches production, decide which error is more expensive, and pick the point that meets the constraint, such as recall of at least 95 per cent at the lowest false alarm rate. Check it per class and per slice, since one global threshold often suits nobody, and recheck it after every retrain.

Why interviewers ask this

Thresholds are where a model becomes a product decision, and interviewers want to see that you connect them to real costs. They listen for a representative validation set, per class thresholds where needed, and knowing that thresholds drift when the model is retrained or the data shifts. Candidates who say they keep the default, or who tune thresholds on the test set, reveal gaps in evaluation discipline.

How to structure your answer

  • Start from the cost of each type of error.
  • Use precision and recall curves on representative data.
  • Set per class or per slice thresholds where needed.
  • Recalibrate after retraining and monitor in production.

Example answer

Spoken example, first person

I never keep the default, because 0.5 has nothing to do with the product. I start by asking what each error costs. For a system alerting staff to falls in a care home, a miss is far worse than a false alarm, but if false alarms arrive every ten minutes, staff stop responding, so there is a constraint on both sides. Then I plot precision and recall against threshold on a validation set that looks like production, not the test set, and choose the point that meets the requirement, for example the best precision we can get while keeping recall above ninety five per cent. I check it per class, because confidence scores are not comparable across classes, and on one project the rare class needed a much lower threshold than the common ones. I also check slices such as night and day. And I treat the threshold as part of the model release: every retrain changes the score distribution, so the threshold gets recalculated and reviewed, and in production I watch the alert rate as an early warning that something has shifted.

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 a threshold that needs to differ between cameras?
  • What is calibration, and does it matter here?
  • How would you explain the threshold trade off to a non-technical stakeholder?

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