LeeteLeeteAI · IoT
← Back to cases
Smart ManufacturingAn electronic components factory (≈90 employees) · Dongguan

Electronics surface inspection: 20 subtle defect types, machine eyes that never blink

+300%
Detection efficiency
-80%
Missed-defect rate
-45%
Rework rate
20
Defect types covered

Client Profile

Industry
Electronic components
Scale
≈90 staff · 300k units/day
Current
8 inspectors across three shifts
Goal
Stable detection, fewer complaints

Pain Points

1

Defects are tiny

Scratches, stains and chips are nearly impossible to catch on a fast line.

2

Standards vary

Different inspectors apply different standards, so batch quality fluctuates.

3

Rework and scrap are costly

Missed defects that ship out come back as returns or full scrap.

Live Demo

Live demo · Surface inspection
Ready
Input
High-speed line images of components (30,000 units)
Consolelogs · stdout
$ 初始化演示管线…

How We Built It

01

High-precision vision

Custom lighting and lenses plus a model trained on 20 defect types for small parts.

02

Auto-archived results

Every part's image and verdict are archived for traceability and audit.

03

Line integration

Consecutive anomalies auto-stop the line and push alarms to prevent batch defects.

Not betting on one AI — combining the right few

For a real business scenario, we don't lock in a single technical path up front. We evaluate candidate paths on the same benchmark, then design a hybrid so each path does what it's best at.

General LLM API

Public-cloud models such as GPT-4o / Qwen / DeepSeek

  • ✓Out-of-the-box, minimal integration cost, cheap to start
  • ✕Limited generalization to vertical domains, unstable field-level accuracy, separate compliance design
Best for cold start and quick validation

Industry fine-tuned model

Domain fine-tuning of open-source models on industry data

  • ✓Grasps industry semantics, much higher accuracy, private deployment
  • ✕Needs labeled data plus ongoing training and upkeep
Best as the primary path for high-frequency traffic

RAG + rule engine

Retrieval-augmented knowledge plus business rule checks

  • ✓Highly targeted, explainable, best latency and cost
  • ✕Requires continuous data-loop investment
Best for fallback and high-certainty scenarios

Fusion, not selection

What we deliver is not a single model but a fused pipeline of primary path + semantic correction + graceful fallback: routine cases are handled by the industry model in seconds; low-confidence fields are re-understood by an LLM; on service anomalies the system degrades to a general API and flags manual review — achieving accuracy, cost, latency and controllability at once.

An explainable, degradable, evolvable AI pipeline

We treat AI engineering as a pipeline, not a black box: every step has clear responsibilities, inputs/outputs and fallbacks. The five-step pipeline plus four-layer architecture below is the technical skeleton.

L1

Ingestion & access layer

Multi-channel access with unified auth, idempotency and masking

Business APIsMobile / mini-programsFile upload / scanningAPI gateway · masking
L2

AI inference layer

Multi-path inference plus a confidence router switching by features

Industry fine-tuned modelMultimodal LLMRAG retrievalConfidence routing
L3

Business orchestration layer

Connecting results to real business flows with rule checks and closure

Business rule checksEntity / master-data matchingAmount / logic closureManual review tickets
L4

Data loop layer

Every online error flows back; models iterate monthly

Sample warehouseOnline labeling & error recallMonthly incremental fine-tuningDrift monitoring & alerts

Tech Stack

FastAPIvLLMLangChainRAGQwenGPT-4oTritonKubernetesPostgreSQLRedisMilvusDocker

Delivery Process

1

Diagnosis

Evaluated line speed, materials and defect types to set inspection stations.

2

Data collection

Collected 12,000 defect samples with unified labeling.

3

Training

Trained the detection model and validated offline.

4

On-site integration

Linked with PLC for auto-rejection and alarms.

5

Go-live & iteration

Monthly re-collection of mis-detections for continuous tuning.

Before vs After

MetricBeforeAfter
Detection speed6s/pc manual0.6s/pc AI
Missed-defect rate≈2.5%0.5%
Complaint batches9/month2/month

“Three shifts of inspectors still couldn't keep up. Now machines watch 24/7 and complaints dropped by more than half.”

— Mr. Chen · Quality Manager · electronics factory

Where It Fits

Surface inspection for precision parts
In-line quality inspection for fast lines
Traceable inspection archives

Related Cases