Skip to content
LexDataLexData
PlatformIndustriesCustomers
DocsThe Field GuideBlogWhy models drift
AboutCareersSecurityContact
Log inStart now

// 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.

Start with your footageBook a demo →All of manufacturing →

// 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

  1. 01

    The tag against the crop inside the straw box, not the whole carton frame.

  2. 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.

  3. 03

    A doubted carton held for a person, with the frame and the crop attached.

  4. 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.

How the loop fits together →

// 05 · What breaks it after launch

Covariate shift

A camera moved

→Covariate shift →

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

Full write-up ↓Every case study →

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.

Read next

Juice box quality inspection at the straw applicator, the full walk-through →The same presence-and-position question, boxing a small assembly on a carton instead of a straw →What a nudged mount does to a model that learned one framing →
Start with your footageBook a demo →

// 07 · Also in manufacturing

Surface Defect Detection→Weld Quality Inspection→Assembly Verification & Error Proofing→Package & Label Inspection→Package Damage Detection→FDA Food Label Compliance→Diabetes Device Inspection→Date & Lot Code Inspection→Predictive Maintenance→Multi-Sensor Monitoring→Tablet Defect Inspection→Syringe Barrel Defect Detection→Foreign Material Detection→Glass Defect Detection→Semiconductor Wafer Inspection→Strip Surface Defect Inspection→Ceramic Defect Detection→Wood Defect Detection→Pipe & Tube Defect Inspection→Body-in-White Inspection→Contact Lens Defect Inspection→Coffee Bean Defect Inspection→Parts Count Verification→Pallet Scanning→PCB Defect Detection→IV Bag Fill Level & Leak Detection→Bottle Cap Inspection→Paint Defect Detection→Fall Detection→Orthopedic Implant Inspection→All forty-one→
Surface Defect DetectionWeld Quality InspectionAssembly Verification & Error ProofingPackage & Label InspectionPackage Damage DetectionFDA Food Label ComplianceDiabetes Device InspectionDate & Lot Code InspectionPredictive MaintenanceMulti-Sensor MonitoringTablet Defect InspectionSyringe Barrel Defect DetectionForeign Material DetectionGlass Defect DetectionSemiconductor Wafer InspectionStrip Surface Defect InspectionCeramic Defect DetectionWood Defect DetectionPipe & Tube Defect InspectionBody-in-White InspectionContact Lens Defect InspectionCoffee Bean Defect InspectionParts Count VerificationPallet ScanningPCB Defect DetectionIV Bag Fill Level & Leak DetectionBottle Cap InspectionPaint Defect DetectionFall DetectionOrthopedic Implant InspectionAll forty-one →

Send us a week of this footage. We’ll show you what comes back.

Start with your footageBook a demo →
LexData
LexData

Product

  • Platform
  • Industries
  • Use cases

Resources

  • Docs
  • The Field Guide
  • Blog
  • Why models drift

Industries

  • Energy & utilities
  • Oil & gas
  • Agriculture
  • Manufacturing
  • Insurance
  • Retail
  • Robotics

Company

  • About
  • Customers
  • Careers
  • Contact

Trust

  • Security
  • Privacy
  • Terms

Stay updated

What we learn running vision models in production.

See everything.
Miss nothing.

Stay updated

What we learn running vision models in production.

Terms of use & Privacy policy

© 2026 LexData Labs · All rights reserved