Inspection methods

Automated Optical Inspection (AOI): How It Works, Where It Falls Short and How AI Improves It

By AverroesPublished Last updated

What AOI is, how it works, which defects it catches, why it raises false calls, and how AI improves the machines already on the line.

3
Decision methods
3
Industries
14
Min read
Nov '26
Last updated
The short answer

Automated optical inspection (AOI) is a camera-based method that checks manufactured parts for visible defects without touching them. An AOI machine photographs each board, wafer or package under controlled lighting, then software compares the images against a reference or a set of rules and flags anything that does not match.

Manufacturers use AOI to catch defects early, at line speed, on every unit.

Key takeaways
  • The camera sees everything. The decision software is where AOI systems differ most, and where they fall short.
  • AOI sees the outside of a part. Hidden joints need X-ray, and electrical faults need in-circuit or functional test.
  • Loosening thresholds to cut false calls lets more real defects escape. Tightening them brings the false calls back.
  • AI improves AOI by taking over the decision step. The machine, lighting and line layout stay as they are.
Line map

Where AOI sits on the line

Two production lines, one inspection method. Select a station to jump to that part of the guide.

  • AOI gate
  • Process step
  • Other inspection or test
  • Where false calls concentrate
Overview

AOI at a glance

AOI is used wherever a defect can be seen from the outside and the volume is too high for people to check every unit. The table summarizes where AOI sits, what it checks and where it tends to raise false calls.

Where AOI is usedWhat it checksTypical false-call triggersRead more
PCB assembly, after paste printingPaste volume, height, offsetStencil wear, board warpWhere AOI is used
PCB assembly, before reflowComponent presence, position, polarityComponent color and marking changesWhere AOI is used
PCB assembly, after reflowSolder joints, lifted leads, bridgesJoint shape variation, glareWhat AOI catches
Wafer fabricationMacro defects, particles, scratches, pattern defectsFilm color variation, process noiseWhere AOI is used
Semiconductor packagingBumps, die edges, wire bonds, package surfaceSurface texture, mold compound variationWhere AOI is used
Pharma and medical devicesContainers, device surfaces, sealsReflections, harmless cosmetic marksWhere AOI is used
Fundamentals

How AOI works

An AOI system is an inspection machine that combines cameras, lighting and decision software to judge each unit as pass or fail. The hardware captures the image. The software decides what the image means, and that decision step is where AOI systems differ most.

Main components. An AOI machine has four parts:

  • 01
    Cameras and lenses
    Set the resolution
  • 02
    Lighting
    Sets what is visible
  • 03
    Motion system
    Moves the part or the camera
  • 04
    Software
    Makes the pass or fail decision

Image capture. One or more cameras scan the part while lighting from several angles and colors brings out different features. Low-angle light shows height changes and scratches. Top light shows markings and color. Most machines take several images of the same area under different lighting.

Decision method. AOI software uses one of three approaches, often in combination:

MethodHow it decidesStrengthWeakness
Reference comparisonCompares each unit with a known good unit, often called a golden boardFast to set up for a stable productFlags any harmless difference from the reference
Rule-basedMeasures features such as size, position and brightness against thresholds set by an engineerTransparent and predictableNeeds retuning whenever the product or process shifts
AI classificationA trained model learns what real defects and acceptable variation look like from labeled imagesTolerates normal variationNeeds labeled examples and monitoring

Setting up the first two methods is called AOI programming. An engineer builds a library of components, draws inspection windows and tunes thresholds for each product. On high-mix lines that work repeats with every new product.

AOI can run inline, inspecting every unit on the conveyor, or offline at a separate station for samples and first articles.

2D and 3D AOI

2D AOI is inspection from flat images, which is enough to check presence, position, polarity and markings. 3D AOI adds height measurement, usually by projecting structured light onto the part and calculating the surface profile. Height data lets the machine measure solder fillet shape, lifted leads and component coplanarity that a flat image can only guess at. The trade-off is cost and cycle time. The guide to 3D automated optical inspection covers how the measurement works and when it is needed.

AOI, AVI and machine vision: how the terms differ

AOI, AVI and machine vision are overlapping terms for camera-based checking, and which one is used depends mostly on the industry.

TermWhat it meansWhere the term is used
Machine visionThe general field of cameras and software that guide or check an industrial processAny industry, for guidance, measurement and inspection
Automated optical inspection (AOI)A complete inspection machine built to find defects on one product typeCircuit boards, wafers, semiconductor packages, displays
Automated visual inspection (AVI)Camera-based inspection of finished units or containersPharmaceutical and medical device manufacturing, final inspection in general
Applications

Where AOI is used

AOI is used in any industry that builds small, dense, high-volume products where surface defects matter. Three areas account for most of the installed machines.

PCB and SMT lines

In electronics assembly, AOI is the main inline check on a surface mount line. It appears at up to three points. After paste printing, a dedicated form called solder paste inspection measures each paste deposit before any component is placed. Before reflow, AOI confirms that every component is present, aligned and correctly oriented. After reflow, it inspects the finished solder joints. Through-hole joints from wave or selective soldering are inspected the same way. Boards with a protective coating get a further check under ultraviolet light.

AOI matters most where a field failure is costly. Automotive, aerospace and medical electronics are built to the strictest acceptance class, which leaves less room for both escapes and false calls.

Deeper coverage: AOI for PCB and SMT lines walks through each inspection point, and the PCB inspection guide compares AOI with the other methods used on a board.

Semiconductor wafers and packaging

In semiconductor manufacturing, AOI inspects wafers for particles, scratches and pattern defects, then inspects packaged devices for bump, bond and surface defects. Front-end fabs run optical inspection after many process steps, as described in AOI for wafers. In the back end, AOI checks solder bumps on flip-chip devices, die edges after dicing, and the finished IC package surface.

Advanced packaging is adding new inspection steps. Hybrid bonding, panel-level and fan-out packaging, glass interposers and stacked memory with through-silicon vias each bring defect types that existing inspection recipes were not written for. Power devices built on silicon carbide and gallium nitride do the same. For military and aerospace parts, internal visual inspection follows MIL-STD-883.

The full process context sits in the semiconductor manufacturing hub, which follows a chip through all 12 stages.

Pharmaceutical and medical device lines

In pharmaceutical and medical device manufacturing, the same camera-based approach is usually called automated visual inspection (AVI). It checks filled vials and syringes for particles, cracks and fill level, and checks devices such as implants, catheters and contact lenses for surface and assembly defects. Packaging lines use it to verify seals and label presence. These lines share the core problem of AOI in electronics: good product rejected by rule-based checks. They also add a validation step before any inspection system can run in production.

Coverage

What AOI catches

AOI detects defects that change how a part looks from the outside: something missing, misplaced, misshapen or contaminated. It cannot see through a component or test whether a circuit works.

Defect familyExamplesWhere it appears
Component defectsMissing part, wrong part, reversed polarity, misalignmentPCB, before and after reflow
Solder joint defectsCold solder joints, tombstoning, solder bridging, insufficient solder, solder balls, head-in-pillowPCB, after reflow
Board and mask defectsScratches, contamination, solder mask damageBare and assembled boards
Wafer defectsParticles, scratches, residue, pattern defectsWafer fabrication
Package defectsBump damage, die chipping, bond defects, voids in the mold, cosmetic marksSemiconductor packaging

On a circuit board, AOI does not judge defects by taste. Results are measured against IPC-A-610, the acceptance standard for electronic assemblies, which defines what is acceptable for each of three product classes. A joint that passes for a consumer product can fail for a medical or aerospace one.

A wider catalog of defect types across industries is in the guide to common manufacturing defect types.

Limits

Where AOI falls short

AOI falls short when the decision software cannot tell a real defect from harmless variation. The camera sees everything. The rules behind it decide badly in four recurring ways.

  • False calls

    A false call is a good part flagged as defective. Reference comparison and fixed thresholds treat any difference as a fault, so normal changes in solder shape, component color or surface texture trigger alarms. Every false call sends a unit to a review station, where an operator looks at it and overrides the machine. The causes and fixes are covered in the guide to reducing false positives.

  • Escapes

    An escape is a real defect that passes inspection. Teams often respond to false calls by loosening thresholds, which lets more real defects through. Tightening them again brings the false calls back.

  • Programming effort

    Each new product needs its own inspection program, and each process change can need retuning.

  • New defect types

    Rules only find what someone thought to write a rule for. A defect mode that appears for the first time often passes unnoticed.

In semiconductor inspection, flagged events that turn out not to matter are called nuisance defects. Published sources show how large the problem can be, and deployments show how much of it classification removes:

FindingSource and conditions
In a sensitive wafer inspection, nuisance events can exceed 99 percent of all detected eventsSource: KLA-Tencor patent US 9,721,337, granted 2017
Advanced nodes produce about 100 times more defect candidates for e-beam review than earlier generationsSource: Applied Materials
Deep learning defect classification reached about 99 percent accuracy on major binning codes, with escape and overkill each near 0.2 percentSource: Reported by Onto Innovation
99.993 percent classification accuracy across 1.4 million production images over 13 months, with defect review running 8 times faster than the manual processSource: Averroes deployment at Tekscend Photomask
False rejections fell from 12,000 units a week to 246Source: Averroes deployment at a medical equipment manufacturer

Rule-based defect classification has the same limits as rule-based detection. The guide to automatic defect classification explains how classification moved from rules to trained models.

AI and AOI

How AI improves AOI without replacing it

AI improves AOI by taking over the decision step while the AOI machine keeps doing what it does well, which is capturing consistent images at line speed. The machine, lighting and line layout stay as they are.

An AI model trained on labeled images from the line learns what a real defect looks like and what acceptable variation looks like. It then reviews the images or calls the AOI machine produces and sorts them into real defects and false calls. Three things change:

  1. Fewer false calls reach the review station.

    The model clears harmless variation that rules would flag, so operators review a fraction of the previous volume. See AOI review automation.

  2. Thresholds no longer trade escapes against false calls.

    The AOI machine can stay sensitive, because the classifier filters what it over-calls.

  3. Unknown defects get flagged.

    Anomaly detection marks anything that fits no trained class and routes it to a person instead of passing it.

Averroes.ai

An AI visual inspection platform that works this way

Averroes.ai runs on the images that installed AOI and inspection tools already produce, trains a defect classification model on 20 to 40 labeled images per defect class, needs no code, and deploys on premise so images stay inside the plant. At Tekscend Photomask, that approach reached 99.993 percent classification accuracy across 1.4 million production images over 13 months.

Adding AI to a machine that is already installed is usually called an AI retrofit.

Related reading: how AI adds to AOI, AI versus rule-based machine vision, and classification, anomaly detection and segmentation compared. Product detail is on the AI for AOI page and the defect classification and defect review feature pages.

Comparison

AOI compared with other inspection and test methods

AOI is one of several checks on a production line, and each one sees something the others cannot. Most lines combine them.

MethodWhat it seesWhat it missesTypical position
Automated optical inspection (AOI)Visible surface defects on every unitHidden joints, electrical faultsAfter printing, placement and reflow
Solder paste inspection (SPI)Paste volume, height and positionAnything after placementAfter paste printing
Automated X-ray inspection (AXI)Hidden joints under BGA and similar packages, voidsSurface cosmetic defectsAfter reflow, for selected boards
In-circuit and functional testElectrical faults, wrong values, functionDefects that still work today but fail laterEnd of line
Manual visual inspectionAnything a trained person noticesConsistency at volume, small featuresReview stations, low-volume work

How X-ray inspection works is covered in the guide to automated X-ray inspection. For the trade-offs between machines and people, see automated quality control versus manual inspection.

Buying

AOI cost and vendors

AOI machines are sold by specialist equipment makers, and price depends mainly on whether the machine is 2D or 3D, inline or offline, and how fast it must run. In electronics, the established names include Koh Young, Omron, Saki, Mirtec and Viscom. In semiconductor inspection they include KLA, Onto Innovation and Camtek.

The cost that rarely appears in a quote is review labor. The cost of poor quality guide shows how to count it.

Reference

AOI glossary

The terms that recur across AOI programming, review and test, in plain language.

Automated optical inspection (AOI)
Camera-based inspection that checks parts for visible defects without contact.
Automated visual inspection (AVI)
The term used in pharmaceutical and medical device manufacturing for camera-based inspection of containers and devices.
Automatic defect classification (ADC)
Software that sorts detected defects into types, and separates real defects from false calls.
Escape
A real defect that passes inspection and moves down the line or to the customer.
False call
A good part that inspection flags as defective. Also called a false positive or false reject.
Golden board
A known good unit whose images serve as the reference for comparison.
Inline AOI
Inspection of every unit on the production line, as opposed to offline inspection of samples.
Inspection program
The product-specific set of component definitions, windows and thresholds an AOI machine runs. Called a recipe in semiconductor inspection.
IPC-A-610
The acceptance standard for electronic assemblies, defining acceptable workmanship for three product classes.
Nuisance defect
A flagged event that is real but does not matter for yield or function, or is not a defect at all.
Overkill
Rejection of good product. The opposite of an escape.
Review station
The workstation where an operator examines units the AOI machine flagged and confirms or overrides each call.
Solder paste inspection (SPI)
Inspection of solder paste deposits after printing and before component placement.
Structured light
A pattern projected onto a part so its distortion reveals surface height. The basis of most 3D AOI.
3D AOI
AOI that measures height as well as capturing flat images.
Automated X-ray inspection (AXI)
Inspection with X-rays to see joints and voids hidden from a camera.
Common questions

Frequently asked questions

AOI stands for automated optical inspection. It is a camera-based inspection method that checks manufactured parts, most often printed circuit boards and semiconductor devices, for visible defects. Some sources write it as automatic optical inspection. Both refer to the same technology.

AI for AOI

See what your AOI is over-calling

Averroes.ai adds AI defect classification to the inspection equipment already on the line. It needs 20 to 40 labeled images per defect class, no code and no new hardware, and it runs on premise.

20–40
Images per defect class
0
Lines of code
0
New hardware
Local
On-premise deployment

Experience the Averroes AI Advantage

Elevate Your Visual Inspection Capabilities

Request a Demo Now