GuidesSeptember 28, 2026

What Is AI AOI? How AI-Powered Automated Optical Inspection Works

AI AOI replaces hand-built inspection rules with trained models: programs built from one good board in minutes, and false calls fixed by retraining instead of loosening thresholds. Here is how it works and where it fits in an SMT line.

AI AOI is automated optical inspection that uses trained machine-learning models, instead of hand-built rules, to decide whether each component and solder joint on a printed circuit board assembly (PCBA) is good or defective. The cameras and lighting are similar to a conventional AOI; what changes is how the inspection program is created and how each call is made. In practice, that means a program built from one known-good board in minutes instead of from CAD data and a component library over several hours, and false calls reduced by retraining the model rather than loosening thresholds.

What is automated optical inspection (AOI)?

Automated optical inspection is a camera-based check of an assembled board. The machine images the PCBA under controlled lighting, compares what it sees with what should be there, and flags components or joints that fall outside the acceptance criteria.

AOI catches defects that are visible from above: missing, wrong, shifted or rotated parts, reversed polarity, tombstoning, solder bridges, insufficient or excess solder, lifted leads and open joints. It cannot see joints hidden under BGA or QFN bodies. That is the job of automated X-ray inspection (AXI).

An AOI does not repair anything. It sorts boards into pass and fail and shows the operator an image behind every call. Its value comes down to two numbers: how many real defects it catches, and how many good parts it flags as bad (false calls).

How does traditional rule-based AOI work?

A rule-based AOI inspects each component with a program that an engineer builds by hand. The program typically rests on four inputs.

This approach works, and many high-volume lines run it well. The cost is engineering time: DaoAI's own comparison puts initial programming on a rule-based machine at 3 to 5 hours per board variant, and several days for a board with thousands of components.

The second cost shows up in production. When a good joint gets flagged, the quickest fix is to widen the threshold. That silences the false call, but it also widens the accept band for every part judged by that parameter, which is how real defects start to slip through.

What changes with AI AOI?

AI AOI keeps the optics but replaces most of the hand-built program with learned models. Four differences matter on the shop floor.

1. Auto-programming from one golden board

Instead of starting from CAD and a library, the machine images one known-good board, finds every component, and generates the inspection windows and thresholds itself. On DaoAI machines this takes 30 seconds to 5 minutes, with 98% detection accuracy straight out of auto-programming, before any tuning.

DaoAI auto-programming does not require a prebuilt component library, and CAD or BOM data is optional. That data adds real designators and part numbers for MES export and repair sheets, but it does not change what is detected or how it is judged. See how AI auto-programming works.

2. Learned models instead of pixel rules

A rule-based window compares pixels against a template or a color range. A learned model scores the component or joint as a whole, based on many examples of good and defective parts.

DaoAI's models start from a visual foundation model trained on more than 1,000,000 real production images, then adapt to your board. That is why a second supplier's slightly different body color or marking font does not have to trigger a call, while a lifted lead still does.

3. Whole-board inspection

Every conventional check runs inside a window around a component. A solder ball sitting on bare laminate, or a wire clipping between two parts, falls inside none of them.

AI AOI can add a pass that looks at the board between components for solder balls, particles and foreign object debris (FOD), not only at the regions around each part.

4. Feedback learning

When an operator marks a false call as OK, an AI system can add that image to the product's dataset and retrain, instead of widening a threshold. The model learns what an acceptable variant looks like, and a real defect near the same score is still caught.

With this approach, DaoAI's false call rate can reach about 1% after tuning on a product. Details are on the feedback learning page.

Rule-based AOI vs AI AOI: how do they compare?

AspectRule-based AOIAI AOI (DaoAI example)
Programming inputCAD/centroid file, component library, hand-placed windowsOne golden board; CAD/BOM optional
Programming time per new board3–5 hr; several days for boards with thousands of parts30 s – 5 min
New package typeAdded to the library by hand firstDetected and modelled from the board
How a part is judgedPixel, template or color rules per windowTrained model scores each component; threshold set against the scores
Accuracy before tuningDepends on the programmer98% detection accuracy from auto-programming
Reducing false callsLoosen the threshold, which also passes real defectsMark OK once; the model retrains on the example
Area between componentsNot inspected unless a window is drawnWhole-board pass for solder balls and FOD
Who can make a correctionWhoever holds the threshold knowledgeAny operator can report; permissions control program edits
Where board images stayOn the machineOn the machine; no cloud connection or account needed

Where does AOI fit in the SMT line?

A typical SMT line runs: stencil printer, solder paste inspection (SPI), pick-and-place, reflow oven, then test. AOI can sit at several points along it.

AOI results are most useful when they flow onward. Defect codes, crop images and whole-board images exported to MES let the repair station and quality engineers trace any call to a specific board and position.

What is the difference between 2D and 3D AOI?

2D AOI works from color images taken under multi-angle lighting. It infers shape from how light reflects off a joint or body, which is enough for presence, polarity, offset, bridges and most solder fillet checks.

3D AOI adds a measured height map, usually by projecting structured-light patterns from several directions. Lifted leads, coplanarity, tilted bodies and solder volume become measurements instead of inferences. DaoAI's P5, for example, uses four Scheimpflug structured-light projection units, one per direction, with height accuracy of 6 µm or better (a reference specification). The P5 and dual-track P5D are available for delivery now.

3D earns its extra cost when height-driven defects actually reach your customers: fine-pitch gull-wing ICs, connectors and high-reliability assemblies. For many boards, a well-programmed 2D machine covers the defect list.

What should you ask an AOI vendor?

  1. What does programming need before the first board runs? CAD, a component library, defect samples, or only a good board?
  2. How long does a new board take, measured on one of my boards? Ask to watch it, not to read a brochure number.
  3. How are false calls reduced? By widening thresholds, by the vendor retraining a shared model, or by retraining on my own examples? Can an update be undone?
  4. Can my engineers see and override every threshold? Are manual edits kept when the AI reprograms?
  5. Where do board images and trained models live? On the machine, or in a cloud service outside the plant?
  6. What is standard and what is a paid option? On DaoAI machines, auto-programming, feedback learning, model training and offline operation are standard across the range.
  7. What data comes out? CSV or MES export, defect codes, Gage R&R and Cpk reports, a repair station view.

A longer checklist is in our guide on how to evaluate an AI AOI system before you buy.

FAQ

Does AI AOI need CAD files?

Not necessarily. DaoAI's AI AOI programs a board from one golden board without CAD files, and DaoAI auto-programming does not require a prebuilt component library. CAD or BOM data can be added later to supply real designators and part numbers.

Does AI AOI replace X-ray inspection?

No. AOI, AI-based or not, only sees what is visible from the camera's viewpoint. Joints hidden under BGA, LGA or QFN bodies still need X-ray (AXI).

Can AI AOI run without an internet connection?

It depends on the vendor. DaoAI machines run entirely on-premise, with no cloud, account or connection out of the plant, and model training happens on the machine itself.

Is AI AOI only for high-volume production?

No. Fast programming, feedback learning and whole-board inspection help high-volume and high-mix lines alike, and high-mix work is a strong fit because rule-based setup there can exceed the run. AI AOI is available in offline, inline 2D, inline 3D and through-hole formats.

How are false calls handled on AI AOI?

The operator marks the flagged part as OK, and the system adds that image to the product's dataset. An AI update retrains the model so it stops calling that acceptable variation, without widening the threshold for real defects.

The quickest way to judge any AOI is on your own product. Send us one of your own boards and we will test it for you, free of charge, or book a 30-minute demo with a DaoAI engineer and watch a board you choose become an inspection program live.

Related

Subscribe for an instantly better inbox

AI inspection insights, product news, and industry analysis. Once a month, no noise.

We use your details to reply to your enquiry. See our Privacy Policy.