Averroes Ai Automated Visual inspection software
PartnersCompany
Back
Automated Optical Inspection

AI Retrofit for AOI: How to Add AI to the Machines You Already Run

Averroes logo
Averroes
Published Dec 01, 2026UpdatedDec 02, 202614 min read
AI Retrofit for AOI: How to Add AI to the Machines You Already Run
Table of contents
What Is an AI Retrofit for AOI?
Why Retrofit an AOI Machine Instead of Replacing It?
How Does an AI Retrofit Connect to an AOI Machine?
What Must an AOI Machine Expose for an AI Retrofit?
How to Retrofit an AOI Machine With AI, Step by Step
AI Retrofit vs OEM AI Upgrade vs a New AOI Machine
When Does an AI Retrofit Not Help?
How Averroes.ai Retrofits AOI Machines
Frequently Asked Questions
Table of contents9 sections
What Is an AI Retrofit for AOI?
Why Retrofit an AOI Machine Instead of Replacing It?
How Does an AI Retrofit Connect to an AOI Machine?
What Must an AOI Machine Expose for an AI Retrofit?
How to Retrofit an AOI Machine With AI, Step by Step
AI Retrofit vs OEM AI Upgrade vs a New AOI Machine
When Does an AI Retrofit Not Help?
How Averroes.ai Retrofits AOI Machines
Frequently Asked Questions

An AI retrofit for AOI adds AI defect classification to an installed automated optical inspection machine without replacing its cameras, lighting or handling. The AOI keeps inspecting as before. AI models then re-check the images of the defects it flags and separate real defects from false calls, before an operator reviews them. A retrofit needs access to the machine’s images and results, 20 to 40 labeled images per defect class, and a parallel trial run.

An AI retrofit is one of the ways AI improves automated optical inspection. This guide comes from Averroes.ai, an AI visual inspection platform that runs as an overlay on existing inspection equipment. It covers where the AI attaches, what the machine has to expose, how deployment runs, and when a retrofit is the wrong answer.

Key Notes

  • An AI retrofit attaches at one of three points: the review station, the inline result, or an offline image export.
  • Image access decides feasibility. A machine that saves defect images and a result file per board or wafer can usually be retrofitted.
  • A retrofit does not fix optics. AI cannot classify a defect the camera never resolved, such as a hidden BGA joint.
  • Standards such as IPC-2591 (CFX) and SEMI E30 (GEM) define how inspection machines report results to other systems.

What Is an AI Retrofit for AOI?

An AI retrofit for AOI is a software layer that adds AI defect classification to an installed automated optical inspection machine, using the images and results the machine already produces. The term “AOI retrofit” can also mean a hardware upgrade, such as new cameras, lighting or compute cards. This guide covers the AI software retrofit, also called an AOI overlay because it runs on top of the machine’s output.

The AOI machine stays where it is and runs the same inspection program. What changes is who makes the final call on the defects it flags. On a rule-based machine, an operator decides at the review station. After a retrofit, a trained model makes the first decision and the operator handles what the model is not sure about.

What an AI Retrofit Changes What It Leaves Alone
Who makes the first call on flagged defects Cameras, optics and lighting
Operator review workload Board or wafer handling
Defect class labels on each call The AOI program or recipe
Trend data by defect class Golden board and thresholds
Line position and inspection cycle time

A retrofit acts on the AOI’s output, not on its inspection. That is why it can be added to a qualified line and run in parallel before it makes a single call. For what AI adds to optical inspection in general, see the guide to AI AOI.

Diagram of an AI retrofit for AOI showing defect images and results leaving the AOI machine, AI models classifying them, and calls returning to the review station and MES

The diagram makes one point: the AI sits between the AOI machine and the person reviewing its calls, and nothing inside the machine changes.

Why Retrofit an AOI Machine Instead of Replacing It?

Retrofitting an AOI machine keeps the capital already spent on optics and handling and changes only the part that causes most review work: the decision logic. An AOI machine that captures a clear image of every joint or die is not the problem. The rules that judge that image are.

Rule-based AOI compares each image with a golden board or a set of thresholds. Normal variation in solder shape, component color or surface texture falls outside those rules, so the machine flags good product. Operators then re-inspect every flagged unit. When the queue grows, thresholds get loosened to cope, and loosened thresholds let real defects through. The guide to AOI false calls covers the causes, and the comparison of AI vs rule-based machine vision explains why learned models tolerate that variation.

The cost of false calls is mostly labor and lost trust in the machine. Each false call takes operator time, lowers the reported first pass yield, and trains people to dismiss alarms. Before comparing options, estimate what AOI false calls cost on your own line.

A new machine does not automatically solve this. A new rule-based AOI brings better optics and the same decision logic. Current AOI machine price ranges make replacement a capital project, while a retrofit is a software project on a machine that already works. The balance between missed defects and false rejects is covered under escapes vs false rejects.

How Does an AI Retrofit Connect to an AOI Machine?

An AI retrofit connects to an AOI machine at one of three points: after inspection at the review station, inline on the machine’s result, or offline on exported images. The right point depends on what the machine can share and how fast the answer has to come back. The same choice between live and after-the-fact inspection is covered in inline vs offline AOI.

AOI retrofit integration paths

Path Where AI Attaches What It Needs From the Machine Effect on the Line Best For
Review station After AOI, before the operator Flagged defect images, result file None on cycle time Cutting false call review
Inline On the pass or fail result Result interface, timing budget Must meet line timing Stopping false rejects at the machine
Offline On exported image batches Image export only None Audits, model building, first trials
Diagram of an SMT line showing three places an AI retrofit can attach to an AOI machine: at the review station, inline on the result, and offline on exported images

The three paths differ in one thing: how soon the AI’s answer is needed. A review station retrofit has seconds to minutes, an inline retrofit has the line’s handover time, and an offline retrofit has no deadline.

1. Review Station Retrofit

A review station retrofit is an AI retrofit in which models re-check only the defects the AOI machine flagged, before an operator sees them. On SMT lines this station is also called the verification station or repair station. The AOI sends its flagged images and result file to the AI. The AI labels each call as a real defect or a false call, with a defect class.

Calls the model is confident about are cleared or confirmed. The rest go to the operator as before. Nothing has to return to the AOI machine, and the line does not wait for the AI, so this is the lowest-risk place to start. It is also where AOI review automation pays back first, because the work removed is manual review. In semiconductor fabs the same step is the job of automatic defect classification.

2. Inline Retrofit

An inline retrofit is an AI retrofit in which the AI’s call returns in time to change the pass or fail result before the board or wafer moves on. It prevents a false reject from ever leaving the machine as a reject. It also asks the most of the integration.

Two things are required. The first is a result interface the line respects. On SMT lines, IPC-2591, the Connected Factory Exchange (CFX) standard, defines the messages machines use to report inspection results, and IPC-HERMES-9852 governs how a board is handed from one machine to the next. On semiconductor tools, SECS/GEM (SEMI E5 and SEMI E30) plays the same role. The second is a timing budget: the AI has to answer inside the handover window. In fabs, this kind of integration is part of wider fab automation on existing tools.

3. Offline Retrofit

An offline retrofit is an AI retrofit in which images are exported from the AOI machine in batches and classified away from the line. It needs only image export, so it works on machines with no live interface at all. It changes nothing on the line, and it gives no live benefit either.

Offline classification is useful for three jobs: auditing how many of last month’s calls were false, building and testing models before a live trial, and checking a machine whose data path is still unknown. It is a sensible first step before moving to the review station.

All three paths leave the AOI’s own detection untouched. A review station retrofit classifies only what the AOI flagged, so it reduces false calls but cannot recover defects the AOI missed. Catching those requires sending full images, not only flagged ones, to an AI defect detection model.

The models can run on a server inside the plant network or in the cloud. Plants with strict data rules keep both training and inference on site, as covered in the guide to on-premise AI inspection.

What Must an AOI Machine Expose for an AI Retrofit?

An AOI machine can be retrofitted with AI when it exposes its defect images, its inspection results and a unit identifier to an outside system. The first thing that decides a retrofit is access to the data, not model accuracy. Run this checklist against the machine before talking to any vendor.

AOI retrofit readiness checklist

Requirement Why It Matters How to Check on Your Machine
Defect image export The AI classifies images, not coordinates Does the machine save an image per flagged defect, and in what format and resolution?
Result file or message Ties each image to a defect type, location and pass or fail Look for a per-unit result file or a results message to the MES
Unit ID Links image, result and product Is a barcode, serial number or wafer ID stored with each result?
Network access The AI has to reach the images Can the machine or its server share a folder or send data on the plant network?
Timing budget (inline only) The call must return before handover What is the handover time to the next machine?
Image retention Training needs past examples How many days of images does the machine keep?
Permission Data may be covered by OEM terms or IT policy Check the service agreement and the plant’s IT rules

Some machines report results in a standard way. IPC-2591 (CFX), at Version 2.0 as of February 2025, includes test and inspection messages that AOI machines use to publish what they inspected and found. Semiconductor tools commonly report through SECS/GEM, defined in SEMI E5 and SEMI E30, alongside vendor result files. Many installed machines support neither, which is why the checklist starts with plain file export. A machine that saves a defect image and a result file per unit can usually be retrofitted.

Keep Your AOI, Lose the False Calls

Check whether your AOI machine can take an AI retrofit

 

How to Retrofit an AOI Machine With AI, Step by Step

An AI retrofit runs in 6 steps, from mapping the data path to monitoring the live models. The AOI machine keeps running production through all of them.

1. Map the Data Path

Mapping the data path is the step that confirms how images and results will leave the AOI machine. Work through the readiness checklist, then pick the integration path the machine can support. If the path is unclear, start offline with an exported batch.

2. Collect and Label Images

Image collection is the step that builds the training set from the machine’s own output. The Averroes.ai platform trains models from 20 to 40 labeled images per defect class. Include the false call classes, not only real defects, because the model has to learn both. Use the plant’s existing defect names, and keep defect labeling consistent between the people doing it.

3. Train the Models

Model training is the step that turns the labeled images into classifiers for each defect class. On a no-code platform this needs no programming. Whether a class needs classification, anomaly detection or segmentation depends on how the defect looks and how many examples exist.

4. Run in Shadow Mode

Shadow mode is a parallel trial in which the AI classifies every flagged defect while the AOI and the operators keep making the real calls. The AI’s calls are compared with the operators’ calls on the same units, class by class. Disagreements are reviewed, and they can expose inconsistent operator decisions as well as model errors.

The method has a published precedent outside electronics. An AI retrofit of a pharmaceutical inspection machine, reported in ISPE’s Pharmaceutical Engineering in late 2022, ran its AI system in parallel with a qualified production machine and collected images for the first three weeks before benchmarking the two.

Timeline of an AI retrofit in shadow mode, with AI calls compared against operator calls before each defect class goes live

The timeline shows the rule that keeps a retrofit safe: the AI earns each defect class separately, on evidence from the plant’s own product.

5. Go Live on the Review Queue

Go-live is the step where the AI starts clearing the false call classes it has proven in shadow mode. No class is auto-cleared until the shadow results on that class are agreed. Uncertain calls and unproven classes still go to an operator.

6. Monitor and Retrain

Monitoring is the step that keeps the models accurate as products and processes change. Track false calls and escapes by class with defect monitoring. Operator corrections feed back into training through active learning, so a new product variant becomes a model update, not a new AOI program.

How long the six steps take depends on how quickly image access is granted and how many defect classes are in scope.

AI Retrofit vs OEM AI Upgrade vs a New AOI Machine

An installed AOI machine can gain AI in three ways: a third-party AI retrofit, an AI software upgrade from the machine’s own vendor, or replacement with a new AI-equipped machine. Each is the right choice in a different situation.

Criterion AI Retrofit OEM AI Software Upgrade New AOI Machine
New inspection hardware No Sometimes a new controller Yes
Works across machine brands Yes No, one vendor No, one vendor
Changes the AOI program No Often Yes, new programs
Who trains the models The plant, on its own images Vendor or plant, by product Vendor or plant, by product
Where data stays On premise or cloud, by choice Depends on the vendor Depends on the vendor
Type of cost Software and compute Vendor license Capital purchase
Fixes optical limits No No Yes

An OEM AOI upgrade fits a line that runs one brand and whose vendor offers an AI option for that model. It keeps a single supplier and a single support contract. Availability varies by vendor and machine age, so ask the vendor directly. A new machine fits when the optics are the limit: the resolution, lighting or 3D capability cannot show the defect at all.

An AI retrofit fits a mixed fleet. Many plants run more than one brand, and a retrofit applies one set of models, one defect naming scheme and one review workflow across machines from different AOI machine manufacturers. For the full budget picture, see visual inspection system cost and ROI.

When Does an AI Retrofit Not Help?

An AI retrofit does not help when the defect is not visible in the AOI image, or when the machine cannot share its images. Four cases come up most often.

  1. The optics cannot see the defect. Joints hidden under a BGA or inside a package never appear in an optical image. Those need automated X-ray inspection, not a better classifier.
  2. The image never captured the feature. If resolution or lighting is too low to show a lifted lead or a coplanarity problem, AI has nothing to work with. That is a case for 3D AOI or new optics.
  3. The machine cannot export images. Some older or locked machines keep images in a closed format or do not save them. Without image access there is no retrofit.
  4. The escapes come from defects the AOI never flags. A review station retrofit only sees flagged defects. If the AOI passes bad product without a flag, the fix is full-image detection or an inspection program change.

A retrofit improves decisions on images. It does not improve the images.

How Averroes.ai Retrofits AOI Machines

Averroes.ai is an AI visual inspection platform that runs as an AOI overlay: it classifies the images an installed inspection machine already produces, with no new inspection hardware. Models train from 20 to 40 labeled images per defect class, with no code. The platform deploys on premise or in the cloud, and operator feedback improves the models through active learning.

The platform is hardware agnostic. Averroes.ai states that it works on the output of KLA and Onto inspection tools, AOI systems, e-beam tools and line-scan cameras.

The strongest published proof comes from photomask inspection. In the Tekscend Photomask deployment, Averroes.ai reached 99.993 percent accuracy and 8x faster review on 1.4 million images over 13 months of photomask inspection. That result is from photomask inspection, not SMT AOI, and accuracy on any other line depends on its images and defect classes.

The same approach applies in both of AOI’s main settings. For board assembly, see AOI for PCB and SMT lines and PCB defect detection with AI. For chips and packages, see AOI in semiconductor manufacturing, wafer AOI and nuisance defects in semiconductor AOI. The product overview is on the AI for AOI systems page.

Frequently Asked Questions

Can AI be added to an existing AOI machine?

Yes. AI can be added to an existing AOI machine when the machine exports its defect images and inspection results. The AI attaches at the review station, inline on the pass or fail result, or offline on exported image batches. The AOI’s cameras, lighting and inspection program stay as they are.

How long does an AI retrofit for AOI take?

The time an AI retrofit takes depends mainly on how fast image access is granted and how many defect classes are in scope. As one published reference from pharma, an AI retrofit of a qualified inspection machine reported by ISPE in 2022 was implemented within three months.

Does an AI retrofit change the AOI program or recipe?

No. An AI retrofit does not change the AOI program, recipe, golden board or thresholds. The AOI inspects exactly as before, and the AI acts on its output. This is why a retrofit can run in shadow mode on a qualified line. For how programs are built, see AOI programming.

Is an AOI upgrade the same as an AOI retrofit?

Not quite. An AOI upgrade usually means new software or hardware from the machine’s own vendor, for that vendor’s machines. An AOI retrofit adds a third-party layer on top of the machine’s output. A retrofit works across brands, while an upgrade keeps everything with one supplier.

Does an AI retrofit slow down the line?

A review station retrofit or an offline retrofit adds no time to inspection, because the AI works after the board or wafer has left the AOI machine. An inline retrofit must return its call within the line’s handover time, so its timing has to be measured during the trial.

Does AOI image data leave the plant in an AI retrofit?

Not with on-premise deployment. In an on-premise AI retrofit, images are stored, models are trained and calls are made on servers inside the plant network. Cloud deployment is an option for plants that allow it. The data path should be agreed with IT before any images are collected.

What Is an AI Retrofit for AOI?
Why Retrofit an AOI Machine Instead of Replacing It?
How Does an AI Retrofit Connect to an AOI Machine?
What Must an AOI Machine Expose for an AI Retrofit?
How to Retrofit an AOI Machine With AI, Step by Step
AI Retrofit vs OEM AI Upgrade vs a New AOI Machine
When Does an AI Retrofit Not Help?
How Averroes.ai Retrofits AOI Machines
Frequently Asked Questions

Related Blogs

Cold Solder Joints: How to Identify and Detect Them
Automated Optical Inspection
Cold Solder Joints: How to Identify and Detect Them
Learn more
Hybrid Bonding Inspection: Defects, Methods and What Each One Can See
Automated Optical Inspection
Hybrid Bonding Inspection: Defects, Methods and What Each One Can See
Learn more
Solder Paste Inspection (SPI): How It Works and How It Differs From AOI
Automated Optical Inspection
Solder Paste Inspection (SPI): How It Works and How It Differs From AOI
Learn more
Incoming Component Inspection at OEMs: Methods, Standards and Automation Best Practices
Automated Optical Inspection
Incoming Component Inspection at OEMs: Methods, Standards and Automation Best Practices
Learn more
AI AOI: How Deep Learning Improves Automated Optical Inspection
Automated Optical Inspection
AI AOI: How Deep Learning Improves Automated Optical Inspection
Learn more
Omron Inspection Systems Explained
Automated Optical Inspection
Omron Inspection Systems Explained
Learn more
See all blogs

Experience the Averroes AI Advantage

Elevate Your Visual Inspection Capabilities

Request a Demo Now

Averroes Ai Automated Visual inspection software
demo@averroes.ai
415.361.9253
55 E 3rd Ave, San Mateo, CA 94401, US

Products

  • Defect Classification
  • Defect Review
  • Defect Segmentation
  • Defect Monitoring
  • Defect Detection
  • Advanced Process Control
  • Virtual Metrology
  • Labeling

Industries

  • Oil and Gas
  • Pharma
  • Electronics
  • Semiconductor
  • Photomask
  • Food and Beverage
  • Solar

Resources

  • Blog
  • Webinars
  • Whitepaper
  • Help center
  • Barcode Generator

Company

  • About
  • Our Mission
  • Our Vision

Partners

  • Become a partner

© 2026 Averroes. All rights reserved

    Terms and Conditions | Privacy Policy | Data Processing Agreement