An automated optical inspection (AOI) machine is a camera system that scans each board or wafer under controlled lighting. It compares what it sees against rules or the board’s CAD design and triggers a defect report on deviations. A defect-detection model passing a pilot is not the same as one surviving the line. In production it is judged on false alarms and missed defects, while changeovers, suppliers and acceptance criteria shift underneath it.
The reliability artefacts that keep a line-side vision model running are set out in the industrial CV reliability pack.
How an Automated Optical Inspection (AOI) Machine Works on the Line
An AOI system has four main hardware parts: a handling system for material and components, an illumination system, an image acquisition system and a processor. A common optical setup lights the board with red, green and blue LEDs and uses reflections from solder and component surfaces to show the condition of each joint, which cameras then capture. Some machines image the board from several angles, above and below, and run pattern matching on colour histograms of the reflected light. Each manufacturer uses its own inspection algorithms and lighting techniques, so two machines can have quite different strengths on the same product.
The pipeline has these stages:
- Handling. The machine has a material and component handling system.
- Illumination and capture. Controlled lighting and one or more cameras record the surface.
- Image processing. The images are enhanced, relevant features are extracted and candidate anomalies are isolated.
- Decision. Classic systems trigger a defect report either from rules (for example, no line on the board narrower than 50μ) or by comparing the board locally against its CAD design. Learned detectors output a defect class, a confidence score and a bounding-box location, so missed detections, false alarms and localisation errors each feed straight into the quality decision.
- Disposition. Failed boards go to rework and the rest move to the next process stage. An experienced operator then classifies the parts the AOI flags as fails.
2D and 3D AOI differ in how they decide. 2D AOI compares a flat image against a reference and infers defects from appearance, while 3D AOI measures actual surface height, so joint volume, coplanarity and lead lift are evaluated against numeric tolerances, as Koh Young describes the difference. Inspecting by appearance produces escapes when a defect looks acceptable and false failures when a good joint looks unusual (a shiny fillet, a slightly rotated part, a different surface finish).
On an SMT line, AOI can sit at bare-board inspection, solder paste inspection (SPI), pre-reflow or post-reflow. Post-reflow has historically been the main position, because a single system there can check placement, shorts, missing solder and most other defect types at one point in the line.
Component skew and rotation are among the standard AOI checks. Our explainer on oriented bounding boxes and when AOI needs them takes up that choice of output shape. If the job is to outline irregular regions such as fillets or foreign material instead of boxing them, read how FastSAM works and where it fits on the line.
What AOI Catches, and What It Cannot See
On populated boards, AOI checks for component presence, polarity, offset, skew, billboarding, tombstoning, lifted leads, wrong parts, solder bridging, insufficient or excessive solder and foreign material. On bare boards, it looks for line-width and spacing violations, excess copper, missing pads, shorts, cuts and hole breakage. It also complements electrical test: a TU/e paper cites earlier work finding that 80% of optically detectable faults cannot be recognised electrically.
The blind spots fall into a few groups. AOI misses anything outside its program: failure modes nobody anticipated, defect classes with no training examples, and low-contrast defects the optics cannot separate. On PCBs, its reliability is limited by scarce, class-imbalanced defect samples and by poor representation of small, low-contrast defects against dense circuit patterns. AOI cannot inspect anything the camera cannot see, so it cannot check solder joints hidden under BGAs.
How Accurate Is AOI on a Real Line, and Why Doesn’t the Pilot Number Carry Over?
On programmed defect classes, AOI benchmarks sit above 95 percent, and vendors commonly quote better than 99 percent for solder and placement defects on a well-tuned program, according to CodeTrace. The same analysis adds that a defect class missing from the program is invisible however high the accuracy. On difficult parts, results vary widely between machines. In a study of 03015 components, defect detection ranged from 53.67% to 98.74% across AOI machines, with false calls between 17,886 and 41,463 PPM. No machine met Flex’s target of fewer than 5,000 false-call PPM. The 3D machines had to fall back to 2D algorithms, because the mirror-like surface of the components stopped height measurement.
The authors found that defect escapes fell as false-call PPM rose, and that optimised programming should be based on test-data analysis. A single accuracy figure hides that trade-off, and on imbalanced inspection data accuracy is actively misleading: a model that calls every joint good scores very high and catches nothing. A 2025 study of AOI false-call reduction argues that accuracy is a poor guide and that slip rate (defective boards let through) and the reduction in boards sent to manual inspection are the critical metrics.
Staged validation does not see every production change. One ensemble PCB detector reached 95% accuracy on a 692-image dataset built from ten template boards. The authors of another framework state that their results come from a public dataset and do not count as validation on private production lines or AOI devices. In two studies that evaluated on conditions the models had not seen, the numbers fell:
- Unseen board types. In a 2020 study of solder-joint defect detection on X-ray images, test boards were board types held out of training. Recall dropped by about 2% to 5% from validation to test, and false-positive rate rose by 1% to 8%.
- Later time periods. In the 2025 false-call study, two models met their targets during development, but performance decayed immediately on later time slices, with slip rates far above target in the first slice.
Our piece on verification and validation for production AI explains why a number with no stated conditions does not answer the validation question. The general argument across line-side vision is made in why pilot accuracy is the wrong release criterion for line-side CV, and the model-side detail for one common detector family is in fine-tuning YOLO for PCB AOI.
PCB and SMT Assembly Versus Wafer Inspection: Does the AOI Pipeline Change?
Both pipelines acquire and process images before flagging anomalies. What changes is what the machine compares against and which defects it looks for. Wafer AOI sweeps cameras on precision stages under visible, ultraviolet, infrared and polarised light, aligns images to a reference die or golden unit, and then combines pattern matching, edge detection, statistical anomaly detection and morphological analysis. The defects it looks for include particles and contamination, pattern bridging and opens, line-edge roughness and scratches.
| PCB / SMT assembly AOI | Semiconductor wafer AOI | |
|---|---|---|
| Reference | Rules or CAD data | Reference die or golden unit |
| Typical defects | Placement, polarity, solder shorts and insufficiency | Particles, bridging, opens, line-edge roughness |
| Acceptance basis | IPC-A-610 criteria after reflow | Yield-limiting defects |
| Main false-call driver | Process variation, changeovers, new component suppliers | Rigid template matching flagging harmless deviation |
Wafer-inspection vendor Averroes reports false-positive rates of up to about 50% in many fabs running legacy rule-based tools, and says those tools also struggle with subtle, process-specific defects such as microbridging. Treat those as a vendor’s figures. On PCB lines, layouts vary from product to product, which limits how far defect samples transfer between board types. Traditional AOI also needs a program written and tuned for every new board, an estimated 2 to 8 hours each according to Averroes.
When Does a Line Need X-Ray Inspection Alongside AOI?
A line needs automated X-ray inspection (AXI) where joints are hidden, as under BGA packages. BGA connections sit underneath the package, so optical inspection of them is impossible. Instead of a full-colour surface image, AXI passes X-rays through the board and records greyscale images of the shadows. It finds opens, shorts, insufficient and excessive solder, missing parts and misalignment, including connections under the package, but AXI systems cost more than optical ones. On dense double-sided boards, a single 2D X-ray image is often obscured, so systems use tomosynthesis to build a 3D model from several angles. IPC criteria that cannot be seen optically are a further reason to bring X-ray into the verification scheme.
X-ray flags also go to specialists for review. In the 2020 solder-joint study, only around 15% of 518,292 through-hole joints flagged as defective by an AXI machine were real defects, according to specialists. For that reason we would treat AXI as a complement for hidden-joint packages, with its own false-call budget, and not as a straight replacement for AOI on surface checks.
Can AOI Replace Manual Inspection, or Do Operators Still Need to Check Its Calls?
Give the search to AOI. Keep people on the decision. In a 2015 Sandia study, inspectors correctly rejected 85% of defective items but also rejected 35% of acceptable parts. Sandia’s literature review notes that error rates of 20% to 30% are frequently quoted across inspection tasks, and that detection can deteriorate by up to 40% within 30 minutes. Inspectors also tend to search for a subset of about five defect types, however many the specification lists. Automated inspection is far more repeatable.
Humans still do better with novel situations and with forming generalisations from single occurrences. CodeTrace makes the AOI version of this point: a person notices that something looks wrong without being told what wrong looks like. Sandia’s literature review recommends giving search to the machine and decision-making to the human. That matches practice on the line, where an experienced operator re-judges what the AOI failed, and where a zero-escape approach depends on an image-based verification database for manual review, not just IPC thresholds uploaded to the machine.
A high false-call rate is a fundamental concern in this arrangement. Siemens reports, from its customers and its own factories, that AOI alarms can reach 5% to 70% of passing throughput, with up to 95% of those being false calls. The same paper warns that alarm fatigue raises the number of real defects inspectors let through. The Sandia review notes that too many nuisance alarms lead operators to find ways of disabling them. A high false-call rate therefore damages quality as well as costing labour, because it wears down the human check that is supposed to catch the machine’s misses.
How Does AOI Compare to Manual Inspection, and Where Does Human Inspection Still Belong Alongside It?
| AOI | AXI | Manual visual inspection | |
|---|---|---|---|
| What it sees | Full-colour surface images | Greyscale X-ray shadows, including hidden joints | Surface, with human context |
| Strong at | Repeatable checks on programmed classes | BGA and other concealed joints | Novel defects and judgement calls |
| Blind spots | Unprogrammed classes, low contrast, hidden joints | Obscured views on dense double-sided boards | Fatigue and a narrow search set |
| Error profile reported (metrics differ by study) | 17,886 to 41,463 false-call PPM in the Flex 03015 study | About 85% of AXI-flagged through-hole joints were false calls (2020 study) | 85% correct rejects, 35% false rejects (Sandia, 2015) |
How Do You Know the AOI Reject Rate Is Still Right Once the Line Is Live?
You know the reject rate is still right by comparing it continuously against the baseline recorded at commissioning. That means tracking false calls through the verification station’s re-judged decisions and escapes through downstream test, because model drift does not announce itself. iFactory, a monitoring vendor, describes a drifting vision model as one that keeps returning confident predictions, with failure showing only as a creeping miss or false-reject rate that looks like noise. More generally, performance tends to degrade over time as the data distribution drifts.
The line conditions that move the distribution are specific:
- Ambient and stray light, which distorts captured images and raises misjudgement rates. Cognex calls lighting interference the most common and least diagnosed cause of AOI degradation.
- Calibration drift, where operating parameters slowly diverge from the conditions at calibration.
- Changeovers and supply changes: a new component supplier, warpage, a different substrate or solder resist.
- Reflective component finishes, which can defeat 3D height measurement.
- Surface contamination, such as dust or burn marks that degrade image quality.
- Redefined acceptance criteria, since the inspection types test engineers set can change through continuous improvement.
The useful signals move before the top-line accuracy does. Watch the shape of the confidence-score distribution, because more borderline scores appearing in the middle is an early sign of drift. Track the detection rate for each known defect class week by week. Look at where false positives fall: clusters near reflective solder joints point to specular reflection, and the fix is to audit illumination angle against component height, since tall components may need secondary lighting. Each alert then needs a diagnosis. Data drift (new lighting, materials or sensor behaviour under the same defect rule) is often fixed by recalibration. Concept drift (a moved pass-fail line or a new failure mode) needs relabelling and a retrain. Alerts only help if each type routes to a defined action with a named owner.
The hard constraint is ground truth: monitoring true performance needs labels. We hold that this monitoring is a reliability discipline separate from model accuracy. For the instrumentation, see label-free drift detection and logging drift telemetry with wandb.log.
What Running an AOI Machine Costs, and What Keeps It from Reverting to Manual
Machine prices vary widely. Averroes puts them at about $3,000 for a compact 2D desktop unit to well past $200,000 for high-speed inline 3D. CodeTrace lists production-grade 3D AOI at $50,000 to $200,000. ALLPCB gives installation at $5,000 to $15,000, annual maintenance at $5,000 to $15,000, and software subscriptions, where they apply, at $1,000 to $10,000 or more a year.
Worked Example: Five-Year Cost of Ownership
ALLPCB’s example assumes a mid-range 3D system bought for $75,000. Over five years it adds $10,000 for installation, $50,000 for maintenance at $10,000 a year, $15,000 for licensing at $3,000 a year, and $20,000 in downtime losses (two incidents a year at $2,000 each). The total is $75,000 + $10,000 + $50,000 + $15,000 + $20,000 = $170,000, more than double the purchase price. The example leaves out two costs: programming time for each new board, and the labour of manually re-evaluating false calls.
Averroes puts payback at 9 to 18 months, and CodeTrace reports vendor quotes of 12 to 18 months for 3D AOI. Treat both as vendor numbers. Averroes itself notes that poorly specified systems can stall near zero return. For the step before capital spend, see our piece on an AOI feasibility pilot before capital spend. See also whether you need a feasibility check or a full pilot.
For an AOI deployment to survive a line refresh, a few reliability artefacts have to be in place before go-live. Most AOI tools include automated daily or per-shift calibration routines. The program and model need pinned versions, with a rollback runbook for the line-side model that defines when to revert. There needs to be an agreed process for updating the reliability evidence when lighting or fixturing changes. And the drift telemetry described above has to be running from day one, so the commissioning baseline exists to compare against. Our PCB piece puts the risk plainly: the first production change the staged validation never saw is where the accuracy number stops meaning what you think.
Who Can Help Make an AOI Model Releasable on Our Line?
TechnoLynx’s Computer Vision R&D practice does the model-side AI engineering for manufacturing that turns an AOI model that works in the pilot into one that can be released on the line: validation on boards and periods the model has not seen, drift telemetry, and the rollback and versioning evidence a line refresh will test.
The question to settle honestly is whether anyone currently owns the false-call and escape numbers after go-live, because that ownership decides whether the AOI machine stays in service or ends up as a camera that operators override.