AI visual inspection in production: how to run and measure a pilot
By INVENTCORPUpdated 2 min read
A packaging seal defect, a misplaced label, a scratch, a crooked cap, an off-shade colour: human visual inspection tires, varies by operator and slows the line. AI vision systems promise 100% inspection. Results in production depend on how the pilot is run and measured.
Disclosure: INVENTCORP builds applied AI projects, including visual inspection, shipped to production. This method applies to any vendor, specialist software provider or integrator.
Step 1: define defect classes
List each defect with a reference photo, its severity and the expected decision.
| Class | Example | Severity | Decision |
|---|---|---|---|
| Critical | Unsealed pack, foreign body | Customer or safety risk | Mandatory reject |
| Major | Missing or unreadable label, wrong batch printed | Non-compliance | Reject |
| Minor | Light scratch, small label offset | Cosmetic | Tolerance to set |
Step 2: build the reference sample
- Gather good and defective parts from several batches, shifts and periods.
- Include rare defects: they are the expensive ones.
- Have two inspectors check every part, with arbitration when they disagree.
- Hold back parts the vendor never sees before the test.
Step 3: measure the right metrics
| Metric | What it measures | Why it matters |
|---|---|---|
| Detection rate (recall) | Share of real defects found | A missed defect reaches the customer |
| False reject rate | Share of good parts rejected | Material cost and lost throughput |
| Detection by class | Recall for each defect class | An average hides missed critical defects |
| Line speed held | Inspection at real line speed | A system that slows the line will not be used |
| Stability | Results by lighting, shift and batch | Batch variation is the first cause of failure |
Step 4: test real conditions
- Lighting: day, night, glare, dust on the lens.
- Batch variation: new raw materials, new packaging suppliers.
- Format changes: time to add a new product or a new defect.
- Duration: at least two to four weeks on the line, all shifts.
Step 5: acceptance criteria and decision
Set before the pilot: minimum detection rate per class (strictest for critical defects), maximum false reject rate, line speed, and stable running time. At the end, three decisions: deploy, fix and extend, or stop.
Get independent validation
To convince management or a customer, have the protocol and results checked by someone who did not build the system: quality department, laboratory, customer or inspection body. Publish the report with missed defects, not only overall accuracy.
What we do at INVENTCORP
We build applied AI projects, including visual inspection, and ship them to production rather than leaving them in a lab. We run every pilot with a reference sample, criteria set upfront, and a report that includes missed defects and false rejects.
Frequently asked questions
How do I measure the accuracy of a visual inspection system?
Compare its decisions with a reference sample hand-checked by two inspectors. Measure detection rate per defect class and false reject rate, at real line speed, on parts the vendor has never seen.
What is a false reject?
A good part wrongly rejected by the system. A high false reject rate costs material and throughput, and pushes operators to switch inspection off.
How long should a visual inspection pilot last?
At least two to four weeks on the line, covering all shifts, several batches and format changes, after preparing the reference sample.
Can AI detect packaging seal defects?
Often, if the defect is visible with the right lighting and camera. Some defects need other sensors. Test on your real packaging, including rare defects, before deciding.
