0
0
Computer Visionml~5 mins

Segmentation evaluation (IoU, Dice) in Computer Vision - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does IoU stand for in segmentation evaluation?
IoU stands for Intersection over Union. It measures how much the predicted segmentation overlaps with the true segmentation compared to their combined area.
Click to reveal answer
beginner
How is the Dice coefficient calculated?
Dice coefficient = 2 × (Area of Overlap) / (Total number of pixels in both predicted and true segments). It ranges from 0 (no overlap) to 1 (perfect overlap).
Click to reveal answer
intermediate
Why do we use both IoU and Dice for segmentation evaluation?
IoU and Dice both measure overlap but emphasize different aspects. Dice is more sensitive to small objects, while IoU is stricter. Using both gives a fuller picture of model performance.
Click to reveal answer
beginner
What does an IoU score of 0.7 mean?
An IoU of 0.7 means the predicted and true segments overlap by 70% of their combined area. This indicates good but not perfect segmentation.
Click to reveal answer
intermediate
Write the formula for IoU using sets A (prediction) and B (ground truth).
IoU = |A ∩ B| / |A ∪ B|, where |A ∩ B| is the number of pixels in both prediction and ground truth, and |A ∪ B| is the number of pixels in either prediction or ground truth.
Click to reveal answer
What does a Dice coefficient of 1 indicate?
ANo overlap between prediction and ground truth
BPrediction is half the size of ground truth
CPrediction is twice the size of ground truth
DPerfect overlap between prediction and ground truth
Which metric is calculated as the intersection over the union of predicted and true segments?
AAccuracy
BIoU
CDice coefficient
DPrecision
If the predicted segmentation is completely outside the true segmentation, what is the IoU score?
A0
B1
C0.5
DCannot be determined
Which metric tends to give higher values for small objects in segmentation?
AIoU
BAccuracy
CDice coefficient
DRecall
What is the range of values for both IoU and Dice coefficient?
A0 to 1
B0 to 100
C-1 to 1
D-100 to 100
Explain in your own words what Intersection over Union (IoU) measures in segmentation tasks.
Think about how much the predicted area and true area share in common compared to their total combined area.
You got /4 concepts.
    Describe the difference between Dice coefficient and IoU and why both are useful for evaluating segmentation models.
    Consider how each metric treats overlap and size differences.
    You got /5 concepts.