Quiz: few labels

Short questions on annotation, the human in the loop and active learning. Try each on paper first, then open the answer.


Q1. With 50 labels your error is 8 %, with 100 labels 5 %. Roughly how many labels would bring it to 2.5 %, if the learning curve keeps its slope?

On log-log axes the curve is a straight line: each doubling multiplies the error by the same factor.

One doubling multiplied the error by 5/8 = 0.625. From 5 % to 2.5 % is a factor 0.5: \log 0.5 / \log 0.625 \approx 1.5 doublings, so about 100 \cdot 2^{1.5} \approx 280 labels (if the curve does not flatten first).


Q2. Why may unmarked pixels of a sparsely annotated image not be counted as background?

What is in the unmarked part?

They contain unmarked nuclei too. Counting them as background would teach the network that those nuclei are background. The loss must ignore unmarked pixels.


Q3. Uncertainty sampling labelled 40 cells and never one of a rare subtype. Why?

How sure is the model about the rare cells?

The model is confidently wrong about them: they lie far from the boundary, deep in the region it assigns to the other class, so their predictions are not uncertain and they are never chosen. Uncertainty only measures what the model knows it does not know. Diversity sampling (the most different cell) or a person looking at the predictions finds them.


Q4. Should the test set of an active-learning project be chosen by active learning? Why?

What kind of cells does active learning pick?

No. Active learning picks unusual and hard cells, so a test set chosen that way does not represent the images you will analyse, and its score would be biased. The test set must be a random sample.


Q5. Why is the human-in-the-loop cycle (predict, correct, retrain) faster than annotating from scratch?

What does the person do for a correct prediction?

Correct predictions only need to be accepted; the person’s time goes to the mistakes, which are exactly where new labels help most. Fixing an outline or deleting a false object takes seconds; drawing an outline takes much longer.


Q6. (math) Compute the entropy (in bits) of the two-class predictions p = 0.5 and p = 0.9.

H = -p\log_2 p - (1 - p)\log_2(1 - p).

p = 0.5: 1 bit. p = 0.9: -0.9\log_2 0.9 - 0.1\log_2 0.1 = 0.137 + 0.332 = 0.469 bits.