COMPUTER VISION · INTERVIEW QUESTION
A segmentation model has high pixel accuracy on a medical dataset but very low Dice for lesions. Which evaluation issue is most likely?
🔴 advanced · Segmentation · Imbalance
Hint: Focus on the decision rule, assumptions, and failure mode behind segmentation · imbalance.
Answer
When the target occupies a tiny region, predicting background everywhere can yield high pixel accuracy but poor Dice/IoU for the clinically important class.
Interview reasoning
A background-only mask reaches 99% pixel accuracy when lesions occupy 1% of pixels. Dice and lesion-level recall reveal the complete miss.
Pixel accuracy weights every background pixel, so sparse-lesion errors can be nearly invisible. For binary masks, Dice uses twice the intersection divided by total predicted plus true foreground; IoU uses intersection divided by union. Include component-level recall and boundary error where missed lesions are costly.
Worked example. If 99% of pixels are background, predicting only background gives 99% accuracy but zero Dice on a nonempty lesion mask.
Validation
Measure class overlap, lesion detection, boundary quality, and empty-mask conventions.
State empty-mask conventions, macro/micro averaging and lesion-size slices; inspect missed components on a clinician-reviewed subset.
Common pitfalls
Aggregate pixel accuracy gives little safety evidence in a highly imbalanced segmentation task.
The highest overlap metric may still miss rare lesions. Averaging empty cases with diseased cases can hide the failures being evaluated.
Likely follow-up: Measure class overlap, lesion detection, boundary quality, and empty-mask conventions.
Related questions
- Compare YOLO, SSD, and Faster R-CNN for object detection.
- Explain the concept of transfer learning in computer vision.
- Compare GANs, VAEs, and Diffusion Models for image generation.
- In an object detector, validation mAP@0.50 improves while mAP@[0.50:0.95] drops after increasing input resolution. What is the most likely interpretation?
- For contrastive image-text pretraining, why is the temperature parameter important in the softmax objective?