Semantic segmentation labels every pixel with a class but does not separate individual objects. Instance segmentation finds each object and gives it its own mask, usually ignoring background regions. Panoptic segmentation does both, giving every pixel a class and countable objects an instance identity. Evaluate semantic with mean IoU per class, instance with mask average precision and panoptic with panoptic quality, and add boundary metrics when edges matter.
Why interviewers ask this
Interviewers ask this to check vocabulary and, more importantly, whether you can match the task formulation to the product. They listen for the distinction between countable objects and amorphous regions, the right metric for each task, and awareness that region metrics can look good while boundaries are poor. Candidates who can explain why they chose a formulation for a past project show judgement beyond definitions.
How to structure your answer
- Define the three tasks clearly.
- Give the standard metric for each.
- Explain when region metrics mislead, such as at boundaries.
- Tie the choice of formulation to the product need.
Example answer
Semantic segmentation gives every pixel a class, so all the cars in an image become one car region with no separation between them. Instance segmentation detects each object and gives it its own mask, so you can count the cars, but it usually ignores background regions like road or sky. Panoptic segmentation combines them: every pixel gets a class, and countable things also get an instance identity. For evaluation, semantic segmentation normally uses IoU per class averaged across classes, instance segmentation uses average precision computed on masks rather than boxes, and panoptic uses panoptic quality, which combines how well segments are matched with how accurate the matched masks are. The trap is that region metrics are dominated by large interior areas, so a model can score well while its boundaries are sloppy. On a medical imaging project, the edge of a structure was what clinicians measured, so we added a boundary metric and an error in millimetres, and those exposed problems that mean IoU had missed. I choose the formulation from the question the product asks: whether it needs to count, measure or just locate a class.
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 worksFollow-up questions to expect
- Why might an F1 style overlap score be preferred over IoU in medical imaging?
- How would you handle imbalance between large and small regions?
- How do you label segmentation data efficiently?
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