Quiz: boundaries, counts and the uncertain ground truth
Before this unit: Matching objects: IoU, F1 and average precision (previous unit); Day 12: Thresholding; Day 33: Random forests; Day 36: Neural networks.
See also: Day 14: Labelling; Day 15: Watershed.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. A predicted nucleus outline has one thin protrusion of 12 px; elsewhere it is perfect. Which changes most: IoU, average surface distance (ASD) or Hausdorff distance?
Which of them is a maximum, which an average, which counts pixels?
The Hausdorff distance: it is the worst boundary distance, so it becomes 12 px. The ASD averages over all boundary points and rises only a little; IoU counts pixels and a thin protrusion has very few.
Q2. You care about the typical error of a cell outline in µm, for objects of very different sizes. Why is IoU a poor choice, and what would you use?
What does a one-pixel error do to the IoU of a small and of a large object?
IoU mixes the outline error with the object size: the same 1-px error gives a much lower IoU for a small object. The average surface distance (in pixels or µm) measures the outline error directly and means the same for every size; add Hausdorff or HD95 if single large deviations matter.
Q3. An automated cell count has correlation r = 0.98 with the manual count over 50 images. Is the method accurate?
What does r say about the identity line?
Not necessarily. r only says the points lie close to some straight line; a method that always counts 70 % of the cells has r close to 1. Look at the Bland–Altman plot: the bias (mean difference), the limits of agreement, and whether the difference depends on the count.
Q4. In a Bland–Altman plot the differences (auto − manual) go from about 0 for sparse images to −30 for dense ones. Name a likely cause and a better way to report the agreement.
What goes wrong more often when nuclei touch?
A proportional bias: in dense images more nuclei touch and are merged, so the undercount grows with the count. One bias and one pair of limits do not describe it; report the ratio auto/manual (or the differences of logarithms) against the size, or the bias as a function of the count.
Q5. Your method undercounts every image by 8 %. Does this matter when you compare treated with control wells? When would it matter?
Does the bias depend on the condition?
A constant relative bias cancels when both conditions are measured the same way: the ratio treated/control is unchanged. It matters for absolute numbers (cells per mm²), and when the bias depends on the condition, e.g. if the treatment makes the cells denser and the method merges more of them there.
Q6. Two expert annotators agree with F1 0.85 at \tau = 0.5. A new method scores 0.87 against one of them. What is a fair summary?
What is the ceiling of any score against one annotator?
The method agrees with that annotator about as well as another expert does: “as good as a human annotator”, within the uncertainty of both numbers. It is not “better than humans”; it may have learned that annotator’s style. Evaluate against the other annotator or a consensus.
Q7. A recall of 0.9 is measured on 300 objects, all from 3 images. Is \pm 2\sqrt{0.9 \cdot 0.1/300} = \pm 0.035 a fair uncertainty?
Are the 300 objects independent?
No, it is too optimistic. The formula assumes 300 independent objects, but objects of one image share its illumination, density and staining. If the method does badly on one image, a whole block of objects fails at once. The real uncertainty is closer to that of a handful of images; evaluate per image and use more images and experiments.
Q8. (math) Show that if auto = 0.8 \cdot manual exactly, the Bland–Altman points lie on a line through the origin with slope -2/9.
Write the difference and the mean in terms of the manual value x.
d = 0.8x - x = -0.2x and m = (x + 0.8x)/2 = 0.9x, so d = (-0.2/0.9)\,m = -\frac29 m.