Semiconductor

How Embedded AI Chips Enable Real-Time Industrial Defect Detection

Industry Inspire Editorial Team Published Oct 24, 2026 Updated Oct 24, 2026 6 min read

Industrial quality inspection is moving from fixed vision rules toward embedded AI.

Traditional machine-vision systems often rely on thresholds, edge detection, template matching and manually engineered features. These methods work well for predictable defects, but they can struggle when products vary in texture, lighting, orientation or surface appearance.

Embedded AI chips allow inspection systems to run neural-network models directly beside the production line.

This enables:

  • lower latency,
  • less network dependence,
  • immediate reject decisions,
  • local processing of sensitive production images.

Fundamentals and Technology Overview

What Is Real-Time Defect Detection?

Real-time defect detection means analyzing each product quickly enough that the inspection result can affect the production process before the part moves too far downstream.

Examples include:

  • rejecting a bad part,
  • stopping a conveyor,
  • flagging rework,
  • adjusting a process.

The full timing path is:

image capture → preprocessing → AI inference → decision → actuator

The AI inference time is only one part of the total deadline.

Typical Embedded Vision Architecture

A modern inspection node may contain:

  • industrial camera,
  • image sensor,
  • image signal processor,
  • MCU or MPU,
  • NPU,
  • local SRAM or DRAM,
  • Ethernet or fieldbus.

A typical data path is:

Camera → ISP → DMA → Memory → NPU → CPU Decision → PLC/Actuator

Why Embedded AI Chips Matter

If every image is sent to a remote cloud service, the inspection system depends on:

  • network bandwidth,
  • connectivity,
  • remote inference latency.

Local AI removes those dependencies from the real-time decision loop.

NPU Acceleration

Object detection and segmentation use many convolution and tensor operations.

An NPU can process these efficiently using:

  • parallel MAC arrays,
  • INT8 arithmetic,
  • optimized dataflow.

This can make real-time defect detection practical inside compact embedded hardware.

STM32N6 Example

ST's STM32N6 combines:

  • Cortex-M55 CPU,
  • Neural-ART NPU,
  • up to 600 GOPS,
  • 4.2 MB contiguous RAM,
  • MIPI CSI-2,
  • dedicated image-processing pipeline.

ST positions it for real-time computer-vision and audio inference.

This shows how workloads that once required a larger MPU can increasingly move into MCU-class systems.

Types of Defects AI Can Detect

Embedded vision can identify:

  • scratches,
  • missing components,
  • wrong orientation,
  • surface contamination,
  • assembly errors,
  • shape defects,
  • printing defects.

Classification

Classification answers:

Is this product good or defective?

This is the simplest architecture.

Object Detection

Object detection answers:

Where is the defect?

It returns bounding boxes or object positions.

Segmentation

Segmentation identifies defect pixels or regions.

It is useful for:

  • cracks,
  • scratches,
  • coating defects.

Segmentation is more compute-intensive than simple classification.

Anomaly Detection

Anomaly detection learns normal product appearance and flags unusual patterns.

This is useful when defective examples are rare or not well categorized.

Lighting Is Part of the AI System

A powerful model cannot fully compensate for unstable imaging.

Industrial vision requires controlled:

  • illumination,
  • exposure,
  • camera position,
  • optics.

AI accuracy begins with image quality.

Image Sensor Selection

Choose based on:

  • resolution,
  • frame rate,
  • shutter type,
  • dynamic range.

A rolling-shutter sensor may be unsuitable for fast-moving parts if distortion matters.

Architecture and Operating Principles

Resolution vs Compute

Higher resolution provides more detail but increases:

  • frame-buffer size,
  • preprocessing,
  • inference cost.

Use the lowest resolution that still captures the defect reliably.

Region of Interest

Cropping to a region of interest can reduce:

  • pixel count,
  • memory,
  • NPU workload.

This can improve throughput significantly.

Quantization

INT8 is common for embedded defect-detection models.

Benefits include:

  • smaller weights,
  • lower memory traffic,
  • faster NPU execution.

Always validate the quantized model on real production images.

Model Architecture

Compact models are often better than very large networks at the edge.

Useful qualities include:

  • small backbone,
  • efficient convolution,
  • accelerator-supported operators.

Operator Compatibility

A model may look efficient in the training framework but contain operators the NPU does not support.

Those layers may fall back to CPU and destroy expected latency.

Frame Rate

If a production line requires 30 inspections per second, the complete pipeline must sustain at least 30 FPS with margin.

Pipeline Overlap

High-performance systems overlap stages.

While the NPU processes frame N:

  • camera captures frame N+1,
  • CPU postprocesses frame N-1.

This creates a continuous pipeline.

DMA

DMA transfers image data without continuous CPU copying.

This reduces:

  • CPU load,
  • latency.

Double Buffering

Two frame buffers allow:

  • one to be filled,
  • one to be processed.

This improves throughput.

Local Decision Making

The inspection result can directly drive:

  • GPIO,
  • PLC message,
  • fieldbus command,
  • reject actuator.

This avoids cloud round trips.

Applications and Practical Examples

Deterministic Industrial Response

For line control, worst-case latency matters more than average latency.

The design must account for:

  • camera exposure,
  • DMA,
  • inference,
  • postprocessing,
  • communication.

Network Bandwidth Savings

Instead of streaming every image, edge inspection may send only:

  • defect event,
  • count,
  • selected evidence image.

This reduces plant-network traffic.

Privacy and IP

Production images may reveal:

  • product design,
  • manufacturing process.

Local processing keeps those images inside the plant.

Offline Operation

An embedded inspection station should continue working if:

  • internet fails,
  • cloud service is unavailable.

That is a major advantage of local inference.

Model Update Strategy

Factories may need new models for new products or defect types.

Support:

  • signed model updates,
  • rollback,
  • version tracking.

Dataset Drift

Production changes over time because of:

  • tool wear,
  • new materials,
  • lighting changes,
  • camera replacement.

Monitor model confidence and false rejects.

False Reject Rate

A model that catches defects but rejects too many good parts can be expensive.

Track:

  • false positives,
  • false negatives,
  • precision,
  • recall.

Human-in-the-Loop Review

Uncertain predictions can be sent for manual review.

This can improve dataset quality for future retraining.

Industrial Example: PCB Inspection

AI can detect:

  • missing components,
  • polarity errors,
  • solder defects.

Industrial Example: Metal Surface Inspection

AI can classify:

  • scratches,
  • dents,
  • stains.

Industrial Example: Packaging

AI can detect:

  • missing labels,
  • incorrect print,
  • seal defects.

Industrial Example: Assembly Verification

AI can confirm:

  • part presence,
  • orientation,
  • count.

Implementation, Testing, and Optimization

Safety

Quality AI should not be confused with machine safety.

A defect-detection NPU may support production decisions, but emergency-stop safety should remain deterministic and independently validated.

Thermal Design

Continuous camera inference can generate significant heat.

Check:

  • NPU utilization,
  • memory power,
  • enclosure temperature.

Hardware Selection

Evaluate:

  • camera interface,
  • NPU performance,
  • SRAM,
  • external memory,
  • supported operators,
  • industrial temperature,
  • communication interfaces.

MCU vs MPU

Choose an AI MCU when:

  • model fits on-chip resources,
  • low latency and fast boot matter,
  • Linux is unnecessary.

Choose an MPU or SoC when:

  • multiple cameras,
  • larger models,
  • complex UI,
  • Linux services

are required.

Common Mistake: Training on Ideal Images

Production images include:

  • vibration blur,
  • dust,
  • reflections,
  • lighting variation.

Training data must reflect the real line.

Common Mistake: Measuring NPU Time Only

Total latency includes:

  • image acquisition,
  • preprocessing,
  • postprocessing,
  • actuator delay.

Common Mistake: No Margin

Production timing varies.

Leave performance headroom.

Common Mistake: Cloud Dependency

If reject timing depends on cloud connectivity, the architecture may be unsuitable for fast industrial control.

Development Workflow

  1. Define defect types.
  2. Stabilize imaging.
  3. Collect production data.
  4. Train baseline model.
  5. Quantize.
  6. Analyze NPU compatibility.
  7. Benchmark on target.
  8. Measure full pipeline latency.
  9. Validate false reject and escape rates.
  10. Deploy with model-version management.

Edge AI vs Traditional Vision

Factor Traditional Vision Embedded AI Vision
Simple geometric defects Excellent Excellent
Variable appearance Moderate Strong
Manual rules High Lower after training
Data requirement Low Higher
Adaptability Moderate Strong
Compute requirement Lower Higher

Conclusion

Embedded AI chips are making real-time industrial defect detection smaller, faster and more autonomous.

The core advantage is not simply faster inference.

It is the ability to combine:

  • camera input,
  • preprocessing,
  • NPU acceleration,
  • local decision making

inside one edge system.

The strongest designs optimize the complete inspection pipeline rather than only the neural network.

For production use, success depends on:

stable imaging + representative data + accelerator-compatible models + deterministic end-to-end timing.

Frequently Asked Questions

Local inference reduces latency, network bandwidth, cloud dependency, and exposure of production images.

Not always. Simple classification can run on a CPU, but object detection and segmentation often benefit strongly from NPU acceleration.

INT8 is common because it reduces memory and bandwidth while mapping efficiently to many embedded NPUs.

Both matter, but poor lighting, optics, or image capture can limit accuracy regardless of NPU performance.

Measure from image acquisition through preprocessing, inference, postprocessing, communication, and final actuator decision.

References

  1. STMicroelectronics — STM32N6 Series: https://www.st.com/en/microcontrollers-microprocessors/stm32n6-series.html
  2. STMicroelectronics — STM32N6 AI Ecosystem: https://www.st.com/en/development-tools/stm32n6-ai.html
  3. Arm — Edge AI on Cortex-M and Ethos-U: https://developer.arm.com/edge-ai/arm-cortex-m-and-ethos-u
  4. NVIDIA — Edge Computing: https://www.nvidia.com/en-us/edge-computing/
  5. Microchip — Edge AI Solutions: https://www.microchip.com/en-us/solutions/technologies/machine-learning

Author

Industry Inspire Editorial Team

Editorial team covering industrial automation, manufacturing growth, and B2B strategy.

Share This Article