Vision inspection can check visible features such as valve presence, print position, and surface damage on cement bags. Before using inspection results to control rejection, validate defect detection and confirm that the tracking and reject mechanisms remove the intended bags. This guide explains how to define the inspection task, run a representative trial, and set operating limits.
Keep three functions separate: a PLC executes defined machine sequences; a vision system classifies visible features; a safety system protects people. A learned classifier does not replace a validated safety function or a destructive bag-strength test.
Match the technology to the inspection task
The comparison below is an application checklist, not a standardized hierarchy of automation levels. NIST’s AI Risk Management Framework provides the risk-management basis for evaluating an AI application in its intended context.
| Application | Evidence to collect | Important limitation |
|---|---|---|
| Position sensor and PLC | Detection and timing at each approved bag size | Confirms position, not bond strength |
| Conventional vision | Contrast, lighting, dimensional reference, repeatability | Rules may fail when the appearance changes |
| Learned vision classifier | Labeled defects and independent test results | Performance depends on represented conditions |
| Condition monitoring | Comparable load, speed, sensor placement, fault history | An alert does not establish remaining bearing life |
Run a controlled qualification
- Define the defect and its consequence. Photograph acceptable and unacceptable bags. Separate missing print, torn fabric, open seams, and cosmetic variation. Agree who can release a held lot.
- Confirm prerequisites. Establish stable lighting, camera access, encoder tracking, and a reject location. Obtain the machine integrator’s approval before modifying controls or guarding.
- Create independent test sets. Keep training images separate from evaluation images. Include different shifts, material lots, approved artwork, and production speeds. Record the actual condition of every test bag.
- Test the complete decision path. Measure missed defects and false rejects separately. Follow marked bags through the conveyor and verify that the ejector removes the intended bag without creating a downstream jam.
- Run in observation mode first. Compare system decisions with an agreed inspection method. Then enable rejection only within the validated operating range. Retain an operator response for camera failure, lost tracking, or a full reject bin.
- Control subsequent changes. Version the model, thresholds, lighting arrangement, and recipe. Reevaluate when a substrate, print design, camera, or defect definition changes.
Worked example: why overall accuracy can mislead
Assume an independent test contains 1,000 bags: 100 truly defective and 900 acceptable. The system rejects 95 defective bags and 18 acceptable bags. It misses 5 defects and correctly accepts 882 good bags.
| Actual condition | System rejects | System accepts | Total |
|---|---|---|---|
| Defective | 95 | 5 | 100 |
| Acceptable | 18 | 882 | 900 |
| Total | 113 | 887 | 1,000 |
Defect detection is 95 ÷ 100 × 100 = 95%. False rejection is 18 ÷ 900 × 100 = 2% of acceptable bags. Overall correct classification is (95 + 882) ÷ 1,000 × 100 = 97.7%. Percentages are shown to one decimal place only when needed. These assumed results demonstrate the calculation; they are not a supplier performance claim or acceptance criterion.
The five missed defects may matter more than the overall accuracy figure. Set acceptance criteria by defect consequence before testing. Also report performance by defect class, since a large number of easy print defects can hide poor detection of a rare missing valve.
Safety and production release
Use OSHA’s machine-guarding guidance when assessing new cameras, rejectors, and robots in a US installation. A production classifier must not authorize entry into a hazardous area. Keep required physical performance testing in the quality plan, even when every bag receives visual inspection.
Conclusion
Automate a defined, measurable task and qualify the complete inspection-and-rejection sequence. Purchase decisions should follow representative test results, acceptable false-reject losses, and a supported maintenance plan. Expand to additional defects only after the first application works under normal production variation.