LeeteLeeteAI · IoT
← Back to cases
Smart ManufacturingA hardware manufacturer (≈120 employees) · Foshan

Turning a hardware factory's inspection and scheduling from veteran know-how into a repeatable AI workflow

+200%
Inspection efficiency
-60%
Missed-defect rate
+50%
Scheduling efficiency
3 wks
Delivery time

Client Profile

Industry
Hardware manufacturing
Scale
≈120 staff · ¥80M revenue
Current
Manual inspection + experience-based scheduling
Goal
Cut costs and reduce reliance on veteran workers

Pain Points

1

Inspection relies on human eyes

Subtle surface defects are easy to miss when inspectors tire, risking full-batch returns.

2

Scheduling is all experience

Orders pile up and rush orders are coordinated verbally, so deadlines keep slipping.

3

No data accumulation

Production data is scattered across workstations with no basis for fine-grained management.

Live Demo

Live demo · Inspection & scheduling
Ready
Input
320 on-site photos of hardware parts + this week's 12 orders (3 rush)
Consolelogs · stdout
$ 初始化演示管线…

How We Built It

01

Lightweight vision inspection

Industrial cameras and edge boxes at key stations run defect-detection models with auto-stop alarms.

02

Order-driven scheduling

A scheduling model over order history, deadlines and capacity generates weekly plans and auto-reschedules.

03

Production dashboard

Output, yield and downtime stream to a real-time dashboard viewable on the owner's phone.

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

Two days on-site mapping the inspection and scheduling flow to pick 3 high-value changes.

2

Data prep

Collected and labeled 5,000 defect samples and built the first eval set.

3

Build

Trained the inspection model and built the scheduling algorithm and dashboard.

4

Pilot

Two weeks of dual-run on one line, reconciling AI and human results.

5

Rollout & iteration

Expanded to all lines with monthly incremental model updates.

Before vs After

MetricBeforeAfter
Inspection speed12s/pc manual1.5s/pc AI
Missed-defect rate≈3.2%0.8%
On-time delivery82%96%

“We used to fear rush orders because scheduling fell apart. Now the system reschedules in seconds and tells us when we can deliver.”

— Mr. Wang · Factory Director · hardware manufacturer

Where It Fits

Inspection for electronics, plastic and hardware factories
Scheduling for high-mix low-volume production
Real-time factory KPI dashboards

Related Cases