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.
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.
- 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.
Where AOI sits on the line
Two production lines, one inspection method. Select a station to jump to that part of the guide.
PCB assembly line
- AOI gate
- Process step
- Other inspection or test
- Where false calls concentrate
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 used | What it checks | Typical false-call triggers | Read more |
|---|---|---|---|
| PCB assembly, after paste printing | Paste volume, height, offset | Stencil wear, board warp | Where AOI is used |
| PCB assembly, before reflow | Component presence, position, polarity | Component color and marking changes | Where AOI is used |
| PCB assembly, after reflow | Solder joints, lifted leads, bridges | Joint shape variation, glare | What AOI catches |
| Wafer fabrication | Macro defects, particles, scratches, pattern defects | Film color variation, process noise | Where AOI is used |
| Semiconductor packaging | Bumps, die edges, wire bonds, package surface | Surface texture, mold compound variation | Where AOI is used |
| Pharma and medical devices | Containers, device surfaces, seals | Reflections, harmless cosmetic marks | Where AOI is used |
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:
- 01Cameras and lensesSet the resolution
- 02LightingSets what is visible
- 03Motion systemMoves the part or the camera
- 04SoftwareMakes 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:
| Method | How it decides | Strength | Weakness |
|---|---|---|---|
| Reference comparison | Compares each unit with a known good unit, often called a golden board | Fast to set up for a stable product | Flags any harmless difference from the reference |
| Rule-based | Measures features such as size, position and brightness against thresholds set by an engineer | Transparent and predictable | Needs retuning whenever the product or process shifts |
| AI classification | A trained model learns what real defects and acceptable variation look like from labeled images | Tolerates normal variation | Needs 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.
| Term | What it means | Where the term is used |
|---|---|---|
| Machine vision | The general field of cameras and software that guide or check an industrial process | Any industry, for guidance, measurement and inspection |
| Automated optical inspection (AOI) | A complete inspection machine built to find defects on one product type | Circuit boards, wafers, semiconductor packages, displays |
| Automated visual inspection (AVI) | Camera-based inspection of finished units or containers | Pharmaceutical and medical device manufacturing, final inspection in general |
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.
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 family | Examples | Where it appears |
|---|---|---|
| Component defects | Missing part, wrong part, reversed polarity, misalignment | PCB, before and after reflow |
| Solder joint defects | Cold solder joints, tombstoning, solder bridging, insufficient solder, solder balls, head-in-pillow | PCB, after reflow |
| Board and mask defects | Scratches, contamination, solder mask damage | Bare and assembled boards |
| Wafer defects | Particles, scratches, residue, pattern defects | Wafer fabrication |
| Package defects | Bump damage, die chipping, bond defects, voids in the mold, cosmetic marks | Semiconductor 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.
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:
| Finding | Source and conditions |
|---|---|
| In a sensitive wafer inspection, nuisance events can exceed 99 percent of all detected events | Source: KLA-Tencor patent US 9,721,337, granted 2017 |
| Advanced nodes produce about 100 times more defect candidates for e-beam review than earlier generations | Source: Applied Materials |
| Deep learning defect classification reached about 99 percent accuracy on major binning codes, with escape and overkill each near 0.2 percent | Source: 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 process | Source: Averroes deployment at Tekscend Photomask |
| False rejections fell from 12,000 units a week to 246 | Source: 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.
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:
- 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.
- Thresholds no longer trade escapes against false calls.
The AOI machine can stay sensitive, because the classifier filters what it over-calls.
- Unknown defects get flagged.
Anomaly detection marks anything that fits no trained class and routes it to a person instead of passing it.
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.
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.
| Method | What it sees | What it misses | Typical position |
|---|---|---|---|
| Automated optical inspection (AOI) | Visible surface defects on every unit | Hidden joints, electrical faults | After printing, placement and reflow |
| Solder paste inspection (SPI) | Paste volume, height and position | Anything after placement | After paste printing |
| Automated X-ray inspection (AXI) | Hidden joints under BGA and similar packages, voids | Surface cosmetic defects | After reflow, for selected boards |
| In-circuit and functional test | Electrical faults, wrong values, function | Defects that still work today but fail later | End of line |
| Manual visual inspection | Anything a trained person notices | Consistency at volume, small features | Review 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.
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.
- Pricing: what an AOI machine costs, and the wider visual inspection system cost breakdown.
- Vendors: AOI machine manufacturers compared, with reviews of Omron AOI and Camtek.
- Comparisons: Camtek inspection versus AI-native AOI and Cognex versus Keyence for general vision systems.
The cost that rarely appears in a quote is review labor. The cost of poor quality guide shows how to count it.
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.
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.
Solder paste inspection (SPI) measures solder paste deposits right after printing, before any components are placed. AOI inspects components and solder joints later in the line. SPI catches printing problems at their source. AOI catches placement and soldering defects. Most surface mount lines use both.
No. AOI detects defects visible from above, such as missing components and bad solder joints on exposed leads. It cannot see joints hidden under packages such as BGAs, which need X-ray inspection, and it cannot find electrical faults, which need in-circuit or functional test.
AOI produces false calls because reference comparison and fixed thresholds treat any visual difference as a defect. Normal variation in solder shape, component color, surface finish or lighting crosses those thresholds even when the part is good. Each false call then needs manual review.
No. AI classification runs on the images an installed AOI machine already captures and takes over the pass or fail decision. The machine, its lighting and the line layout stay in place. The Averroes.ai platform trains on 20 to 40 labeled images per defect class and deploys on premise.
No. AOI confirms that a board looks right. Functional testing confirms that it works. A board can pass AOI with a faulty component, and a board that works today can carry a weak solder joint that only AOI or X-ray would catch. Production lines use both.
Setup time for rule-based AOI depends on the number of component types on the board and how much of the existing component library can be reused. Each new part needs an inspection window and tuned thresholds. High-mix lines repeat this work for every product, which is one reason they adopt AI classification.
AOI system cost depends on whether the machine is 2D or 3D, inline or offline, and on the throughput it must reach. Software, programming time and review labor add to the purchase price. Current price ranges by machine class are in the guide to AOI machine prices.
AOI is one application of machine vision. Machine vision is the general field of using cameras and software to guide or check industrial processes. AOI refers to a complete inspection machine built for a specific job, most often checking circuit boards or semiconductor devices for defects.
No. 3D AOI measures height, which helps with solder joint shape, lifted leads and coplanarity. 2D AOI is enough for presence, position, polarity and marking checks, and it costs less and runs faster. The right choice depends on which defects matter for the product.
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.