Designing a perception pipeline
Sense, filter, segment, measure, decide. Which stage of the pipeline fails first when the lights flicker?
About 50 min · 3 goals · Checked by automated tests
1.Why should I care?
Real perception systems are chains of the steps you have learned, and their failures are usually at the joins: a filter that adds too much lag for the threshold after it, a threshold tuned in one light level. Designing the chain on paper, then testing it like a scientist, is the term's final skill.
- ◇ Lay out a perception pipeline as stages with stated inputs, outputs and parameters.
- ◇ Design a controlled investigation of one parameter's effect on reliability.
- ◇ Plan the term project: data, ground truth, conditions and metrics.
2.Predict
You want to know whether belt speed affects sorting accuracy. Which test design is fairest?
Guess first. Being wrong here is how the surprise works.
3.Understand
Stages and interfaces
Write the pipeline as boxes: sense (camera or sensor, sample rate) → condition (filter, calibrate) → segment (threshold, colour rule) → measure (label, area, position) → decide (rule, threshold from costs). For each stage state its input, output, units and parameters. That list is your design, and also your debugging map.
One question at a time
A good investigation asks a focused question, changes one variable, holds the others fixed, repeats runs to see the spread, and chooses its metric (recall, precision, throughput) before looking at results. Record everything, including runs that look wrong.
Planning the term project
The project, 'Count the parts, honestly', needs: a set of images with hand-counted ground truth; separate tuning and test images; at least three conditions (normal, changed lighting, added noise or occlusion); a metric per condition; and one mitigation tried and measured. Plan the data before writing code.
Explain it another way
A pipeline is a relay race: each runner hands the baton to the next. If one drops it, the team loses, however fast the others are.
Perception pipelines are evaluated end to end (final decision versus ground truth) and per stage (for example segmentation accuracy per pixel), so failures can be located. Parameters are tuned on one data split and evaluated on another.
Industrial vision suppliers validate a new inspection line on a fixed 'golden' set of known good and bad parts under controlled lighting before going live, and repeat it after any change.
Worked example 1
Write a one-line research question and method for the sorting machine.
'How does belt speed (0.3–1.0 m/s) affect sorting accuracy at fixed thresholds?' Method: same test batch, same thresholds, four speeds, three runs each, metric = % correctly sorted, recorded with parts per minute.
Common mix-ups
- If the final number looks right, every stage works.
✓ Errors can cancel. Check stage outputs too, especially under changed conditions. - Tuning on the test images is fine if you're careful.
✓ Any tuning on test data makes the test optimistic. Keep test images untouched until the end.
4.Discover
Open the sorting machine at Level 5. Choose one question (belt speed versus accuracy, or how much majority voting helps as glare increases). Change one setting across at least four recorded runs on the same test batch, holding everything else fixed.
Can't use the interactive? Read a description instead
Sorting machine Level 5, described: you choose one setting, such as belt speed, and record at least four runs on the same test batch with everything else fixed. The server recomputes each run's accuracy and throughput; you write a short report with a hypothesis, method, results and limitations, which a person reviews.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which change would make a belt-speed comparison unfair?
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Why choose the metric before running the tests?
Practice 3 · a fresh version every time
One reading of a temperature sensor has standard deviation 2 °C. You average n = 36 independent readings. What is the standard error of the mean, in °C?
Practice 4
Your parts counter is wrong only in dim images. The threshold mask looks fine in bright images but patchy in dim ones. Which stage should you fix first?
7.Apply it
Submit your Level 5 investigation with hypothesis, method, a results table and limitations. Then write your term-project plan: pipeline diagram with parameters, the image set and how you will hand-count ground truth, the three conditions and the metric for each.
8.Reflect
9.Go further
Research mode: limits and open questions
The proposed TV-01 study would follow the same pattern: a pre-registered question, controlled conditions and a fixed metric, with results reported whatever they turn out to be (no results exist yet).
Concepts: Perception pipelines and how vision fails · Experimental design and test protocols · Evaluation metrics