MANUFACTURING
PCB Defect Detection
PCB Defect Detection. What it takes to run it.
Opens, shorts and mouse bites boxed on the bare panel, each class carrying the severity that routes the board to reject, rework or pass.
// 01 · The question
“Is that mark on the bare panel an open or a short, or a mouse bite still within spec?”
// 02 · Why it is hard
A trace is a fraction of a millimetre wide, so the camera that can resolve a gap that size has to be the one actually mounted over the outfeed conveyor, at that resolution and that light, rather than a lab microscope; a model trained on microscope frames has weak evidence for the conveyor camera it will run on, and a hairline crack, a mould mark or a stray fibre on the laminate can sit on the same bright pixels as a true defect until the frame is built to tell them apart.
// 03 · What the labels have to be
Bounding box
Decided before the first frame
An open, a short, a mouse bite and a spur are each a yes-or-no call at a known place on the panel, the position the rework technician walks to and the one the reject log records. A box gives that position directly; the defect's exact outline past its class is not what the routing rule reads.
This is the decision that is expensive to reverse. The geometry has to match what the answer contains, and finding out it does not means labelling the set a second time.
// 03a · What it finds
An open or a short
boxed on the bare panel at the outfeed conveyor's own resolution, the two defect classes that kill a board on their own
A mouse bite, a spur or a pinhole
boxed and classed in the fab's own defect codes, each carrying the severity that decides whether the board is reworked or passed
A missing hole or spurious copper
boxed against the panel's own layout, so a drill that did not happen is a class rather than a shape left for a person to name
A mark the model doubts
a trace thinned to where open and intact both look plausible, or a mark on the laminate that could be copper or a fibre, held for the bench technician before anything trains
// 03b · What it checks
- 01
The class against the fab's own defect codes from the rework sheet, not a generic defect label, since the class is what carries the severity.
- 02
The severity against the rule that routes the board: any open or short rejected, a mouse bite outside the customer's acceptance class to rework with the frame, a spur or pinhole inside it passed with the box kept in the record.
- 03
A customer's tightened acceptance class against one line of the rule, so the model keeps finding the same defects across customers while only the threshold differs.
- 04
A doubted frame held for the bench technician with the box drawn on it, her call recorded against the frame rather than scored either way.
// 03c · What the line provides
- The camera already over the outfeed conveyor, at the resolution that already resolves a hairline trace; no microscope frames and no new station.
- The fab's own defect codes from the rework sheet, since the class list is what the routing rule reads.
- A labeled window of the first panels from a new board revision, before the run, since the model has strong evidence for the old layout and almost none for the new one.
- The rework queue's own history by shift, read daily, since a rising queue is the first sign of a changed defect rate, before any dashboard shows it.
// 04 · How we run it
Three parts of one loop, on this job.
LexAnnotate
Defect Annotation
Pixel-level defect annotation for surface scratches, cracks, dents, weld faults, and assembly misalignments. Multi-sensor alignment for multi-camera inspection systems.
LexInsight
Line Performance
Ask which shift or which line is producing the most of one defect class, and get an answer with the frames behind it, graded against the plant's own written standard.
LexAlert
Quality Alerts
Monitor defect detection accuracy across changing production conditions. Detect when lighting shifts, new materials, or equipment aging degrades model performance. Auto-retrain to maintain 99%+ accuracy.
// 05 · What breaks it after launch
A fab replaces an etch bath and the rate of mouse bites across every panel rises while the model is still right on each individual box. What breaks is the rework queue, filling with boards a review limit tuned to a quieter quarter now sends on; the fix is retuning the rule against the current rate, not retraining the model.
It is not the only one that can get this use case, it is the one that usually gets it first. All ten conditions.
// 06 · In manufacturing
Defect Detection at Scale
The Challenge
Vision models performed well in pilots but lost accuracy as factory conditions shifted.
Our Execution
Built pixel-level annotated datasets and multi-sensor alignment for reliable defect detection.
The Result
Maintained 99%+ defect detection accuracy across changing production environments. Reduced unplanned downtime.
99%+
Accuracy maintained in production
// 06a · Questions we get asked
Does this replace the operator with the loupe?
No. It watches every panel at the same resolution all night, where an operator finds fewer at the end of a shift than at the start. The borderline board, where open and intact both look plausible, still goes to a person with the box on the frame.
How does it tell a mouse bite from an open?
By class, not by severity. Both are boxed at the mark's own location; the fab's defect codes decide which class each is, and the rule reads the class to route the board. A trace thinned so far that the class itself is in doubt is held for the bench technician rather than guessed.
What happens when a customer sends a new board revision?
The layout and the trace widths may have changed, so the model's evidence for the old revision does not carry over. The first panels of the new revision are labeled before the run, not after the first rejects, and the old revision's evidence is kept rather than lost.
What if the defect rate itself changes, not the board?
A new etch bath can raise the rate of one defect class across every panel while the model is still right on each box. The rework queue rising against its own history by shift is the tell; the fix is retuning the rule's review limit against the current rate before anyone retrains the model.
// 07 · Also in manufacturing