DEV Community

MAKER-RAY AOI
MAKER-RAY AOI

Posted on

Making AI-Assisted Visual Inspection Auditable

An AI score is not a quality record by itself. Auditable use means a reviewer can recover the image, model version, input conditions, threshold, and final human disposition for a specific unit. It also means the team can show what changed when performance changed.

Start with the route and evidence

Split images by production lot, date, and board serial before training and testing. Near-duplicate images from the same panel make a model look better than it is. Preserve difficult “no defect” examples such as flux residue, silkscreen variation, and harmless reflections because these commonly drive false calls.

Specify what a finding means

Record three labels: the machine candidate label, the reviewer decision, and the confirmed disposition after repair or downstream test. Do not silently replace the first label. Disagreement is useful data for measuring review burden and deciding where the model is uncertain.

Put review and action in the same system

Use confidence bands rather than a single magical cutoff. A high-confidence call may hold a board, a middle band should queue human review, and a low-confidence candidate can be sampled. The boundaries are operating decisions that must be revisited as products, illumination, and defect mix change.

A practical first implementation

For AI-assisted visual inspection, begin with a limited pilot that has clear boundaries: one stable product, one route, a small set of named features, and a defined owner for exceptions. Freeze the initial program and collect a fixed number of units before changing thresholds. This makes the first comparison meaningful.

During the pilot, retain representative evidence for passes as well as calls. Review a random pass sample and all high-severity calls. Compare the recorded result with repair feedback and downstream test where available. If the evidence route is too slow for production, simplify data entry but do not remove identity, time, revision, and disposition.

Publish the result as a one-page controlled summary: the problem, baseline, method, observed change, uncertainty, and next check date. This format makes a local improvement transferable without pretending that it automatically applies to every board design.

Define the decision before selecting a threshold

Every inspection rule should answer a concrete disposition question: release, hold for review, repair, sample, or escalate. Write the question in operational language and name the owner who can change the rule. A technically interesting measurement that has no disposition path adds noise rather than control.

Use a compact record that a production and engineering team can both read:

unit_id | operation | feature | observation | disposition | evidence_id | recipe_rev
Enter fullscreen mode Exit fullscreen mode

Keep the evidence identifier stable even when a later reviewer changes the disposition. This provides an audit trail and allows the team to measure disagreement instead of hiding it.

Establish a usable baseline

Collect a baseline across normal shifts, material lots, and equipment states. Include confirmed good units and known challenging conditions, not only ideal samples. For each feature, calculate a rate using the number of opportunities inspected as the denominator. A count can rise simply because production volume rose.

Review the baseline with people who run the equipment and people who repair boards. Ask which categories are ambiguous, which defects matter downstream, and which labels are being used inconsistently. Fixing vocabulary and evidence capture is often more valuable than immediately tightening limits.

Run a controlled improvement cycle

Use a short cycle: observe, hypothesize, test, verify, standardize. Change one meaningful factor where possible, such as a stencil-clean interval, a fixture reference, a lighting angle, or a program rule. Record the expected effect before the trial. If results differ from the expectation, that is useful evidence that the causal story needs revision.

A practical review checklist is:

  • Is the unit identity and operation route complete?
  • Was the finding confirmed independently when the risk requires it?
  • Is the rate normalized by inspected opportunities?
  • Is the proposed cause an observation, or only a hypothesis?
  • Does the trial have a defined comparison and stop condition?
  • Will the change be rechecked after a normal production interval?

Make changes reproducible

Version inspection programs, reference images, measurement recipes, work instructions, and acceptance criteria together. A program change without a reason and validation sample is difficult to audit later. Store the approver, effective time, and a concise statement of what behavior should change.

Train reviewers with boundary examples rather than only obvious defects. Measure agreement periodically using blinded samples. When agreement falls, inspect the definitions, image quality, and escalation route before treating it as an individual performance problem.

Limitations and verification

Inspection data is evidence, not automatic proof of a process mechanism. Optical signals are affected by lighting, surface finish, component variation, board warp, and coverage gaps. Measurements also have uncertainty, and a rule can be repeatable without being accurate.

Verify high-risk conclusions through an independent method appropriate to the defect: controlled samples, electrical test, X-ray, cross-section work, or qualified human review. Revalidate after meaningful changes to design, materials, equipment, or environment. Keep unresolved cases visible; forcing them into pass or fail corrupts future analysis.

A lightweight review cadence

At the end of each shift, check route completeness, top defect rates, and unusual measurement distributions. Weekly, select one repeated confirmed problem for an evidence-based experiment. Monthly, review rule changes, false-call burden, escapes, and whether corrective actions remained effective. This cadence turns inspection from a static gate into a learning system.

Engineering safeguards for production use

Make the inspection route resilient to ordinary operational failures. Define behavior for a missing barcode read, an unavailable image store, a program revision mismatch, an interrupted panel, and a manual repair that cannot be tied to a station. The safe response is usually a visible hold state with an exception record, not an invented pass. Test these cases during release just as deliberately as normal defect detection.

Treat access control and retention as quality controls. Limit who can alter acceptance rules, preserve an approval history, and keep evidence for a retention period that matches product and customer risk. Back up the relationship between board identity and evidence, not only the image files. If a database restore produces images without route records, the system cannot support a credible investigation.

Finally, monitor the burden imposed on people. Track review queue age, repairs per confirmed call, unresolved exceptions, and time from detected trend to experiment. An inspection process that produces technically detailed data but delays decisions will be bypassed under production pressure. Design the simplest workflow that still preserves enough evidence to learn.

When selecting and validating an AI AOI, treat its outputs as one controlled source of evidence within the broader process rather than as a standalone verdict.

Disclosure: This article was prepared with AI assistance and reviewed for technical clarity; validate settings against your own process data and applicable standards.

Top comments (0)