Technology
Seeing the ingredient. Establishing the connection.
Vision identifies material; load cells measure mass. The proposed matching layer asks which observations belong to the same physical event. Supported matches receive an ingredient and batch link. Unresolved deposits retain their measured mass without an invented identity.
The proposed full station
Three cameras, three scales, two bins, one edge unit.
The full architecture also includes two temperature channels. This is a design configuration, not a claim that every device has been validated together. Experiment rigs use documented subsets; current compute measurements come from a Raspberry Pi 5.
| Part | Qty | Specification | Identifier |
|---|---|---|---|
| Load cells | 3 | Single-point, 1–5 kg, with HX711 (ADS1220 under test) | SENSOR-RAW / PEEL / ROTTEN |
| Cameras | 3 | 1080p UVC USB on rigid overhead mounts, diffuse LED rings, splash covers | CAM-RAW / PEEL / ROTTEN |
| Temperature channels | 2 | T1/T2 in the full architecture: context for drift and sensor health, not spoilage detection. Complete installation unqualified. | T1 / T2 |
| Edge computer | 1 | Linux mini-PC or Pi-class board, SSD, RTC, active cooling | EDGE-01 |
| USB hub | 1 | Powered USB 3.0 | — |
| Foot pedal | 1 | Optional hands-free confirmation | INPUT-01 |
Upper shelf. Camera 1 and the intake scale record stock presented for preparation. This starting mass is separate from purchased quantities recorded from supplier documents.
Preparation views. The illustrated pilot arrangement observes peeling and cutting before material reaches two independently weighed bins. Camera angles and mounting need qualification on the actual rig.
Temperature. T1 and T2 support drift correction and operating context in the full design. The fusion experiment guide specifies a smaller rig with TEMP_1. Temperature does not establish spoilage.
The pipeline
Eighteen stages in six blocks.
The Technical Design and R&D Record carries the complete architecture from physical observation to a human decision. Each block depends on the evidence and guarantees produced before it.
01–05
OBSERVE
- Physical event
- Sensing
- Image-quality gate
- Vision inference (three paths)
- Mass and thermal channel
06–10
DECIDE
- Common time base
- Look-back buffers per camera
- Independent event state machines
- Stage 09: sensor fusion
- Event builder with confidence bands
11–12
PRESERVE
- Durable local queue with sequence numbers
- Store-and-forward, ordered replay
13–15
PROVE
- Ingest validation
- Canonical payload, signatures and retained checkpoints
- Verified event store
16–17
LEARN
- Features, training, registry with a gate
- Reviewed uncertain events fed back
18
USE
- Dashboard, reports, read-only assistants
Record through 28 October 2026: detector and Pi 5 experiments, one-bin physical trials, offline matching prototypes, software recovery, SSH/HTTP delivery and signed local records exist. The complete three-camera/sensor pipeline, calibrated mass accuracy and parent-to-waste attribution remain unqualified. Production radio, consensus ledger and the connected learning/reporting services remain proposed.
Stage 09 · event association
One supported explanation. Or an explicit unknown.
The 23 October design combines independent bin state machines, layered camera verification and a scored matcher. It checks both the strength of the best candidate and the gap to the next. Thirteen proposed steps make the decision reproducible; the complete method is not yet a validated system result.
- 01Ingest camera and scale observations; keep event and arrival times and apply the measured clock offset.
- 02Validate message identity and sequence; flag duplicates, missing times, stale sources and impossible values.
- 03Run an independent state machine for each weighing point. Only stable mass events enter matching.
- 04Calculate settled mass minus that bin’s valid baseline; keep removals as a separate event type.
- 05Collect camera evidence from the correct zone and frame-time window. Group repeated views of one tracked object.
- 06Collect eligible open batches from the intake history, within a bounded age.
- 07Check class, bin and batch compatibility; retain rejected alternatives in the evidence trail.
- 08Check for competing mass events on other bins without merging their measurements.
- 09Compare recent confirmed events on the other bin for supporting or conflicting batch identity. Share identity evidence, never mass.
- 10Score the remaining mass, camera and batch combinations using the configured evidence terms.
- 11Apply the match and ambiguity-margin gates. Match, review, leave unresolved or reject a contradictory pairing.
- 12Save the decision, evidence, candidates, scores, reasons and model/configuration versions.
- 13Advance only this bin’s baseline, keeping raw evidence so the decision can be replayed.
Seven verification layers
The illustrative score combines six terms: timing, mass plausibility, class compatibility, zone agreement, visibility and cross-bin identity consistency. Its weights, windows and score-combination method require labelled experiments. Detection accuracy alone evaluates only one layer; it does not prove a correct match to a mass event.
The cross-bin check can corroborate a batch identity using a recent confirmed event. It cannot move, combine or duplicate measured mass between bins.
Result states
A vision-only event has no measured mass. A sensor fault is not a trusted weight. An unresolved event can retain a valid mass without an assigned ingredient. These states keep different kinds of missing evidence separate.
Confidence bands must be calibrated against labelled outcomes. Calling a decision “high confidence” is a claim to test, not a guarantee created by the label.
“Fusion never invents data.”
“A mass step is evidence of an event, never evidence of an identity.”
How it got here
Four architecture versions.
The fusion working document records this sequence and the problem behind each change. Architecture versions describe the matching logic; they are separate from the physical rig versions.
V1
Two cameras, one bin, nearest-time matching and a class lookup.
Why it changed: Timing alone could attach a deposit to the wrong nearby action.
V2
Three cameras, one shared bin and scale.
Why it changed: One total weight could not separate preparation waste from spoiled material.
V3
Three cameras and two bins, verified together.
Why it changed: The two waste streams arrive at different times; requiring both to agree together dropped valid events.
V4
Independent bin states and look-back histories; batch links checked afterwards.
Why it changed: Current design. The two-bin software structure exists offline; matching performance needs integrated proof.
Methods considered and set aside
Kalman family
No continuous state to estimate.
Late-fusion voting
Mass cannot name a material and vision cannot weigh one.
Fixed-window association
The offset varies with mass, release height and device load.
DeepSORT, ByteTrack, JPDA
Peel does not look like its parent item; kept as baselines.
Timing rules (“latest batch”)
Wrong on 35–49% of the deposits they assigned (reported).
Detector confidence as trust
Stays high when the view is poor; image quality is measured separately.
Off-the-shelf trackers were trialled in June and July and kept as baselines; no literature review of tracking is claimed.
Open questions
What is still uncertain.
Component experiments have measured specific behaviours. These four practical questions remain central to the next integrated tests: full-system thresholds, confidence calibration and acceptance limits need labelled sessions and independent reference measurements.
Is the association method itself good enough, and is its confidence calibrated?
Can a true weight be recovered from a scale that never settles, and can drift be told from real change?
Can a deposit be matched when the camera view is blocked?
Can event order be rebuilt after a dropped connection?
Edge deployment
What runs on a Raspberry Pi 5 today.
The experiment rig uses a Pi 5 for prototyping and staged integration. Final approval for all three models and the complete fusion pipeline needs full live-system testing: two unrestricted models already used about 90% of the CPU.
2.67×
MEASUREDthroughput after NCNN conversion on a 240-frame video (59.42 s to 22.26 s)
76.7 ms
MEASUREDmean prediction call over a 6 min 15 s live run at about 9 FPS
146–150 ms
MEASUREDmean analysed-frame delay with a balanced scheduler, from about 380 ms
74% → 40%
MEASUREDCPU with two models at 5 FPS when input fell from 640 to 480 (with detection errors at smaller inputs)
From the October 2026 Raspberry Pi 5 experiment reports. These are latency and resource results, not accuracy validation. The Ultralytics AGPL licence must be resolved before any deployment of the detector as a product component.
The hard part
A mass step says something happened. It never says what.
When a bin scale settles, the edge unit looks back through the recent camera history, collects every plausible source, rejects the impossible ones, scores the rest on seven kinds of evidence, and either attributes the deposit with a confidence, holds it for review, or records it as measured but unassigned. It never guesses.
One deposit · two signals · one decision
Seven kinds of evidence, drawn from different sources
Combined as a weighted score. The additive form is itself a hypothesis and the weights are unfitted; the overlap between the tests is to be measured, not assumed away.
“Fusion never invents data.”
“A mass step is evidence of an event, never evidence of an identity.”
Why the labels are not “useful” and “waste”
The camera learns the material. The kitchen sets the rule.
A carrot top and a plastic wrapper look nothing alike, yet both are waste. Onion skin and vegetable peel look alike, yet one kitchen keeps one of them. So the detector learns concrete material classes, and what counts as waste is a configuration setting, not something trained in.
Disposition mapping · config/disposition.yaml
Same detector, same classes. Flip the kitchen rule and watch the mapping change, with no retrain.
Detector · learned · 32 material classes · config/taxonomy.yaml
learnedDisposition mapping · not learned · config/disposition.yaml · per site
not learned# config/disposition.yaml · Kitchen A
brassica_stalk: waste
# carrot_top, herb_stem: waste
useful
to the ledger, auto
- whole_onion
- onion_flesh
waste
to the ledger, auto
- allium_skin
- veg_peel
- brassica_stalk
- carrot_top
- herb_stem
- bone
packaging
to the ledger, auto
- packaging_film
- cardboard
review
a person, never auto
- hand
- mixed_fragment
One line of YAML. A kitchen deciding broccoli stalks are now stock is a configuration change, not a new dataset.
Itemised reporting. The system says what was discarded, not merely that something was.
Somewhere for doubt to go. Indeterminate material goes to review instead of being forced into a confident answer and written to an immutable record.
The whole system, end to end
Eighteen stages. Six blocks. One record chain.
Seven sensors feed one sealed edge unit. It names the material, anchors the mass, matches the two, and writes an event. Events queue locally, cross the radio, are validated and hashed, and reach the owner. Reviewed events feed back into training. Built parts are marked; the rest is designed.
Cyan packets are camera observations; amber are mass and temperature readings. They meet at stage 09, where a settled mass step is matched against the look-back buffers. Anything the edge unit cannot resolve leaves as review, never as a guess.
Status, October 2026. OBSERVE and DECIDE: detectors trained and running on a Pi 5; no image-quality gate yet; matcher prototyped offline. PRESERVE: local queue and ordered replay built; radio link not built. PROVE: record signing checked (6,454 tamper checks); ledger not built. USE and LEARN: designed; clickable prototype exists.
