MANUFACTURING
Juice Box Quality Inspection
Juice Box Quality Inspection. What it takes to run it.
The straw boxed at the outfeed, tagged acceptable, missing, bent or pierced, the rare classes hunted on purpose rather than left to turn up.
// 01 · The question
“Is the straw on this carton missing, bent or pierced, caught at the outfeed before the case reaches the packer?”
// 02 · Why it is hard
Three of the four tags are rare on purpose, the applicator usually gets it right, so a model trained on a week of ordinary footage sees far more acceptable straws than pierced ones and defaults to calling everything acceptable. The pierced class carries the least warning: a carton can look sealed on the monitor and still be leaking by the time the case is wet on the pallet. Getting the rare classes into the training set, a deliberately misfed run at a changeover, the leak reports that point at a shift, the recorder's own archive, is a decision the line makes on purpose rather than something a week of ordinary frames hands over.
// 03 · What the labels have to be
Bounding box
Decided before the first frame
The straw is a small region on a carton moving fast, and the four tags, acceptable, missing, bent, pierced, are read from the crop inside that region rather than the whole frame. A box finds the straw wherever the applicator landed it; a classifier trained on the whole carton would also learn the conveyor, the carton artwork and the strip lamp's reflection, any of which changing is a change to its evidence. The box narrows what the tag depends on to the region that actually matters.
This is the decision that is expensive to reverse. The geometry has to match what the answer contains, and finding out it does not means labelling the set a second time.
// 03a · What it finds
Every carton's straw region
boxed at the outfeed, the moment the glue has set, on the camera already there
The tag on the crop inside that box
acceptable, missing, bent or pierced, read from the straw region rather than the whole carton frame
The rare classes
pierced and bent cartons hunted from the recorder's own archive by shift and from the leak reports, not left to turn up on their own in a week of ordinary footage
A carton the model is unsure of
held and sent to a person with the frame and the crop, rather than scored either way
// 03b · What it checks
- 01
The tag against the crop inside the straw box, not the whole carton frame.
- 02
The rule's severity and cooldown, a pierced carton routed to the line controller before the case packer, a missing straw routed to the operator's list.
- 03
A doubted carton held for a person, with the frame and the crop attached.
- 04
The missing rate on this one camera against its own history, so a nudged mount shows up as one line diverging while the others hold steady.
// 03c · What the line provides
- The camera already at the outfeed, no new camera, no new hardware.
- Frames from line 4's own outfeed, not a bench photograph taken in good light.
- The rare classes collected on purpose, a deliberately misfed run, the leak reports, the recorder's own archive.
- Someone who has stood at the line and can tell a lane from a carton, to check the pierced class the camera is still learning to see.
// 04 · How we run it
Three parts of one loop, on this job.
LexAnnotate
Defect Annotation
Pixel-level defect annotation for surface scratches, cracks, dents, weld faults, and assembly misalignments. Multi-sensor alignment for multi-camera inspection systems.
LexInsight
Line Performance
Ask which shift or which line is producing the most of one defect class, and get an answer with the frames behind it, graded against the plant's own written standard.
LexAlert
Quality Alerts
Monitor defect detection accuracy across changing production conditions. Detect when lighting shifts, new materials, or equipment aging degrades model performance. Auto-retrain to maintain 99%+ accuracy.
// 05 · What breaks it after launch
A wash-down or a routine clean nudges the outfeed camera's bracket a few degrees, and the straw region sits a little further left and a little larger in the frame than every frame the model learned from. The carton still looks right to the operator on the monitor, since a person recognises a straw from any angle; the model does not, and the missing rate on that one line quietly diverges from its own history while the lines either side of it hold steady.
It is not the only one that can get this use case, it is the one that usually gets it first. All ten conditions.
// 06 · In manufacturing
Defect Detection at Scale
The Challenge
Vision models performed well in pilots but lost accuracy as factory conditions shifted.
Our Execution
Built pixel-level annotated datasets and multi-sensor alignment for reliable defect detection.
The Result
Maintained 99%+ defect detection accuracy across changing production environments. Reduced unplanned downtime.
99%+
Accuracy maintained in production
// 06a · Questions we get asked
Does this replace the operator at the end of the line?
No. It is the check that runs before the operator would see the problem at all, a pierced carton leaks into the case well before the pallet is wet enough for a person to notice. The operator's list still gets the missing and bent cartons; the camera is there so the pierced class is caught at the outfeed instead of the warehouse.
Why does the pierced class take longer to learn than missing or bent?
Because it is rarer. A good shift might hand the model a dozen pierced cartons in a week against hundreds of acceptable ones, and a model trained on footage as it comes will default to calling everything acceptable. The fix is collecting the rare frames on purpose, from a deliberately misfed run, from the leak reports, from the recorder's archive, rather than waiting for a week of ordinary footage to hand them over.
What happens when the camera mount gets cleaned or bumped?
The straw region moves a little in the frame and the model's evidence quietly stops matching what it learned. Nothing looks wrong to a person on the monitor. What catches it is the missing rate on that one camera diverging from its own history while the lines either side hold steady, the first signal of a camera that moved. The fix is a short re-label from the new framing, on footage the plant already has.
What does the line controller actually receive?
A rule written as a sentence, with its own severity and cooldown, approved before it goes live: a pierced carton, critical, to the webhook the line controller reads, with the frame attached. A missing or bent straw is routine and goes to the operator's list instead of paging anyone.
// 07 · Also in manufacturing