Lite / Intelligent Robotic Systems / Week 27
Designing a perception pipeline
Sense, filter, segment, measure, decide. Which stage of the pipeline fails first when the lights flicker?
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.
Predict
You want to know whether belt speed affects sorting accuracy. Which test design is fairest?
- Run once at each speed with different batches
- Run each speed several times on the same test batch, changing nothing else
- Run the fastest speed many times
Guess first, then reveal
Change one variable, hold the rest fixed, repeat to see the run-to-run spread. Different batches would mix the effect of speed with the effect of the parts themselves.
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.
What the interactive shows (text version)
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.
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
Intuitive
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.
Technical
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.
Applied
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.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
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.
Reflect
Which stage of your planned pipeline do you expect to fail first, and what evidence would show it?
Write your answer on paper or in your own notes. Lite never stores what you write.
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).