Quiz: networks and classical pipelines compared

Short questions to test your understanding. Try each on paper first, then open the answer. Throughout, methods are scored against an annotation with the evaluation day’s object matching: a predicted object and a true object are a match when their IoU is at least τ, each object is matched at most once, and F1 = 2 TP / (number of predicted + number of true objects).


Q1. Why report F1 at more than one IoU threshold τ, for example at 0.5 and at 0.7?

What does a match at τ = 0.5 say about the outline? What would you use the objects for?

At τ = 0.5 a match only says “this object was found, roughly in the right place”: that is what counting needs. At τ = 0.7 or higher the outline must also be good, which is what measuring areas or shapes needs. Two methods can tie at 0.5 and differ a lot at 0.7 (one finds every nucleus with sloppy outlines, the other draws careful outlines). One number hides that; the curve F1(τ), or at least two points of it, shows it.


Q2. A network scores F1 = 0.95 on a public image set. Later you learn that the network was trained on images from that same set. What does the 0.95 tell you about your own images?

The evaluation day’s unit on leakage.

Very little. The score is measured on (relatives of) the training data, so it is optimistic: it shows the network can reproduce what it has seen, not how it does on new images. On your images, which may differ in microscope, staining, magnification and cell type, the score can be much lower. The only reliable number comes from a held-out annotated subset of your images.


Q3. When is a classical pipeline (smoothing, threshold, distance transform, h-maxima, watershed) enough?

Look at the “sparse” image in the results: what makes it easy?

When the objects are bright on a dark, even background, roughly round, of similar size, and mostly separate or only touching at narrow necks. Then a threshold finds the foreground and the distance transform separates touching pairs. On such images the classical pipeline scores close to the networks, runs in milliseconds, needs no download or training, and every step can be explained. It breaks on dense clumps (merges), uneven or dim staining (threshold fails), and irregular shapes (wrong splits).


Q4. Besides the time per image, what belongs in the “cost” of a segmentation method?

Think of everything you need before the first good result, and after.

The download and memory (model size, number of parameters); the annotation needed (none for a pretrained network whose domain fits, hundreds of annotated objects to fine-tune, plus a held-out annotated subset to check any method); the tuning time of the knobs (classical pipelines need tuning per image type); the hardware (one core, several workers, a GPU); and the cost of errors downstream (how much manual correction the results need).


Q5. A single-shot object detector trained on everyday photographs (people, cars, animals) is run on a fluorescence image of nuclei. Its F1 against the nuclei annotation is 0. Why, even though it is a good detector?

What can its output contain?

It only outputs boxes of the classes it was trained on, and “nucleus” (or “cell”) is not one of them. Any box it reports carries a wrong class or a low score and is removed by the score threshold, so there is nothing to match. In addition it outputs boxes, not outlines, so even with a cell class its masks would be compared with boxes. A fine-tuned detector with a nucleus class would be a fair contestant; the pretrained one is not.


Q6. Two methods score mean F1 0.81 and 0.83 over seven test images. Can you say that the second is better?

How much do the per-image scores vary?

Not from these numbers alone. With seven images, the per-image differences vary a lot (one hard image can move the mean by several hundredths). A bootstrap over images (resample the seven images with replacement many times, recompute the mean difference) gives an interval for the difference; if it contains 0, the two methods are not distinguishable on this benchmark. More images, or a larger difference, are needed.


Q7. The automatic mode of a promptable segmenter (a grid of 8 × 8 point prompts) finds only 5 of 36 small nuclei. Why, and what would you change?

How many prompts land on a nucleus?

Each grid point prompts one object. With 64 points spread over the image and nuclei covering about 7 % of it, only a handful of points fall on a nucleus at all; the others prompt background, which the filters remove. The method can never find more objects than prompts that hit them. A denser grid (16 × 16 or 32 × 32) finds more, at 4 or 16 times the cost; for many small objects a network made for nuclei is the better tool, and the promptable segmenter is for a few objects you click on.