Qualitas Logo
ExpertiseIndustries
ContactBook a Demo
FMCG

AI Machine Vision for Multi-Variant Packaging Inspection

How Qualitas helped a global snack foods manufacturer reach 98%+ validated accuracy across count, variant, and carton-defect detection on a high-speed packaging line with nine SKU variants.

AI Machine Vision for Multi-Variant Packaging Inspection
The challenge

What needed solving

At infeed, primary packs must be verified for correct slug count and correct variant before cartoning; at outfeed, sealed cartons must be free of glue gaps, flap gaps, and flap misalignment.

Manual and sampling-based checks could not hold 100% count/variant accuracy or 98% carton-defect accuracy across multi-shift running and nine SKU changeovers.

The solution

How Qualitas solved it

Two EagleEye vision stations on the cartoning line — primary pack infeed and secondary carton outfeed — synchronised with the line PLC so flagged rejects use the customer’s existing rejection process.

Infeed verifies slug count and variant across nine SKUs; outfeed measures glue/flap gaps and misalignment against fixed tolerances and reads date/batch codes via OCR.

1. The Challenge: Zero-Defect Expectations on a High-Speed Line

The customer’s cracker packaging line runs on automated cartoning equipment across nine active SKU variants — spanning large and small pack formats, regional export variants, and multiple sandwich-cracker formats. At infeed, primary packs must be verified for correct slug count and correct variant before entering the carton; at outfeed, the sealed secondary carton must be free of glue gaps, flap gaps, and flap misalignment before it reaches distribution.

Working with their systems integration partner, the customer set a strict bar: 100% accuracy on count and variant mismatch at infeed, since a single misfilled or wrong-variant pack reaching a consumer is a brand and food-safety issue — and a 98% accuracy target on outfeed carton defects, where sub-millimetre glue and flap tolerances are difficult for human inspectors to judge consistently at line speed.

RequirementWhy it matteredTarget
Count mismatch (infeed)Under-filled packs are a consumer complaint and compliance risk100%
Variant mismatch (infeed)Wrong-SKU packs create recall and mislabeling exposure100%
Glue gap (outfeed)Seal integrity affects shelf life and transit damage>2.5mm reject, 98%
Flap gap (outfeed)Visible flap gaps affect shelf presentation and integrity>2.5mm reject, 98%
Flap misalignmentCosmetic and structural carton defect>1.5mm reject, 98%
OCR / batch codeTraceability for date and batch compliance100%

2. Why Manual Inspection Fell Short

Before automation, count and variant checks at infeed relied on operator vigilance and periodic sampling — adequate for gross errors, but not capable of catching every mixed-variant or short-fill event across continuous multi-shift running. At outfeed, glue gap, flap gap, and flap misalignment are visual judgments made against tolerances (2.5mm and 1.5mm) that are difficult to hold consistently by eye, particularly across a 9-SKU changeover schedule.

LimitationImpact on the production line
Sampling-based checksDefects between samples pass through undetected
Sub-mm visual tolerancesInconsistent calls on glue/flap gap near threshold
Multi-variant changeovers9 SKUs increase chance of variant mix-up at infeed
Fatigue over long shiftsDetection consistency drops over a shift
No structured audit trailDifficult to prove accuracy for compliance sign-off
Manual OCR checksDate/batch code misreads slip through at speed

3. The Qualitas Solution

Qualitas Technologies designed and deployed two purpose-built EagleEye vision stations on the cartoning line — one at primary pack infeed, one at secondary carton outfeed — synchronised with the line’s PLC control signals so that a system-flagged reject is handled directly in the customer’s existing rejection process.

Station 1 — Primary Packaging Infeed verifies slug count and product variant for every pack across all nine SKU variants as it enters the carton — empty, under-filled, and cross-variant mixing are all caught before sealing.

Station 2 — Secondary Packaging Outfeed inspects the sealed carton for glue gap, flap gap, and flap misalignment against fixed tolerances (2.5mm / 1.5mm), and reads date and batch codes via OCR for traceability.

CapabilityStationDetection method
Slug count verificationInfeedRule-based vision
Variant identification (9 SKUs)InfeedDeep learning classifier
Empty / partial pack detectionInfeedRule-based vision
Glue gap measurement (>2.5mm)OutfeedDL + edge measurement
Flap gap measurement (>2.5mm)OutfeedDL + edge measurement
Flap misalignment (>1.5mm)OutfeedDL + edge measurement
Date / batch code OCROutfeedTrained OCR model
Reject signal to line PLCBothI/O synchronisation
Flap gaps and glue gaps identified by the model on Ritz cartons

4. Results: Independently Validated Performance

Performance was measured through a structured UAT protocol jointly agreed with the customer and their systems integration partner, based on true positive/true negative testing against 100-sample defective and good-product batches, followed by an end-to-end validation run on live production data captured for the highest-volume SKU variant.

Defect TypeCustomer ExpectationQualitas CommitmentResult
Count Mismatch100%100%Met
Variant Mismatch100%100%Met
Glue Gap100%98.0%Signed off
Flap Gap100%98.0%Signed off
Flap Misalignment100%98.0%Signed off
OCR100%100%Met
Defect TypeImages TestedActual DefectsCorrect DetectionsAccuracy
Overall (all defects)5,6031565,52298.5%
Flap Gap5,60365,60099.9%
Glue Gap5,60355100%
Flap Misalignment11,20614611,14399.4%
OCR (date/batch)5,60325,58499.66%

Average model execution time held at approximately 150ms per box across 5,600+ images — fast enough to run inline on the packaging line without becoming a bottleneck.

5. Implementation & Deployment

The rollout followed a phased approach: baseline dataset capture and model training on all nine variants, followed by a structured UAT phase using 100-sample true-positive/true-negative batches per defect type, and finally an end-to-end production validation run before formal joint sign-off between Qualitas and the customer’s project team.

Barcode reading was scoped out of this phase pending new hardware procurement by the customer, who retained ownership of the physical infeed rejection process — with Qualitas supplying a synchronised reject output signal to the line’s control system rather than handling physical rejection directly.

  • Training and validation datasets built per variant across all nine SKUs
  • Accuracy validated using a documented misprediction formula: (Total inspections − mispredictions) / Total inspections × 100
  • Test plan covered mixed-variant, empty, and under-filled scenarios at infeed; combination defects at outfeed
  • Reject output signal synchronised with the line’s control system
  • Local HMI displays live pass/fail status per station
  • Validation dataset and accuracy logs retained for compliance audit

Want results like these on your line?

Send us a sample part — our engineers will scope the right system and the ROI you can expect.