Deep learning inspection built as a production pipeline — optics, dataset, model, edge deployment and validation — not a Jupyter demo that dies on the line.
Home › AI Defect Detection
A defect-detection model that scores well in a notebook is worth nothing on a line. What matters is whether it holds its escape rate across shifts, lighting drift, material lots and operators — and whether it runs fast enough on hardware you can afford.
NJCV Lab builds the whole pipeline, not a demo: image acquisition engineering, labelling strategy, model selection, quantization, deployment on edge hardware, and the validation report that tells you what the machine will and will not catch.
Honest triage saves months. These are the categories we see repeatedly on industrial parts.
| Defect type | AI suitability | Notes |
|---|---|---|
| Missing or misplaced component, wrong polarity | Excellent | Stable geometry, large visual signal, few samples needed |
| Surface scratches, contamination, stains, discoloration | Good | Works well with engineered illumination; sensitive to lighting drift, so the light source is part of the design |
| Print, code and label defects | Good | Combine learned features with OCR rules for auditability |
| Hairline cracks at low contrast | Fair | Usually a lighting problem first; may need angled dark-field or multi-shot fusion |
| Dimensional and geometric tolerance | Poor fit | Use calibrated metrology — more accurate, explainable and auditable |
| Sub-surface, void and BGA joint defects | Out of scope | Needs X-ray / AXI, not optical imaging |
| Unknown, unenumerated failure modes | Anomaly detection | Train on good parts only; catches novelty but needs human review of flagged parts |
Sample counts drive schedule and cost more than architecture choice does. These are working starting points, not guarantees — defect variety matters more than raw count.
| Approach | Typical starting dataset | What it buys you |
|---|---|---|
| Detection or classification (supervised) | 100–300 labelled examples per defect class, plus 300+ good parts | Robust detection across normal process variation |
| Segmentation (pixel-level) | 50–150 masked examples per class | Area, length and severity measurement of a defect |
| Anomaly detection (good-only) | 30–100 good images per lighting condition and view | Coverage of defects you have not seen yet |
| Rare defects (a handful of examples) | 5–20 examples | Demonstration only — validation confidence is limited until more are collected |
If you have fewer defective samples than this, the feasibility study is where we find out whether anomaly detection, synthetic augmentation or a rule-based approach can carry the task. We will not quote a production accuracy figure before imaging your parts.
Two numbers matter on a line, and they pull against each other:
Every project fixes both targets in writing before model training starts, then reports achieved performance against a held-out set at the agreed operating threshold. Gauge repeatability across re-runs and lighting states is measured too, because a model that flips its decision on the same part is unusable regardless of its average accuracy.
Sometimes. A few examples per class can be enough to prove feasibility with anomaly detection or heavy augmentation, but the confidence you can place in the result is low until more examples exist. We will tell you which of the two you are getting: a demonstration, or a validated production model.
Not automatically, and anyone who says otherwise is selling something. Options are a variant classifier with a retrain and re-validation step, a part-agnostic approach where the defect does not depend on design, or an operator-taught recipe per part. The cost of adding a variant is agreed up front.
No. Inference runs on the machine or on a local IPC. Nothing leaves your network unless you ask for a data-export feature, and retention is under your control.
We specify them as part of the project. Where existing hardware is adequate we reuse it — the feasibility study tests your current setup before recommending a purchase.
No honest supplier quotes an accuracy number before seeing the defect. What we commit to is a measured escape rate and false-call rate on a defined held-out set, validated on the machine you buy, with the test protocol agreed in advance.
The defect decides. Boxes for missing or displaced parts, masks when you need defect area or length, classifiers for surface grading, anomaly models when the failure modes are unknown. Model choice is an engineering decision we document, not a brand preference.
Send sample parts — good and bad. We build a test rig, capture real images, and deliver a written Go / No-Go report in 2–6 weeks.
Request a feasibility study See delivered systems