Papers
Topics
Authors
Recent
Assistant
AI Research Assistant
Well-researched responses based on relevant abstracts and paper content.
Custom Instructions Pro
Preferences or requirements that you'd like Emergent Mind to consider when generating responses.
Gemini 2.5 Flash
Gemini 2.5 Flash 65 tok/s
Gemini 2.5 Pro 53 tok/s Pro
GPT-5 Medium 35 tok/s Pro
GPT-5 High 34 tok/s Pro
GPT-4o 99 tok/s Pro
Kimi K2 182 tok/s Pro
GPT OSS 120B 458 tok/s Pro
Claude Sonnet 4.5 38 tok/s Pro
2000 character limit reached

Automated Defect Detection System

Updated 4 October 2025
  • Automated defect detection systems are specialized architectures that use computational, algorithmic, and embedded techniques to identify and localize defects in real time.
  • They leverage statistical texture analysis via the GLCM method and a sliding window approach to quantify texture energy deviations and flag anomalies.
  • Real-time embedded implementations on DSP platforms balance computational efficiency and high throughput, with careful tuning of parameters like window size and threshold.

Automated defect detection systems are specialized architectures employing computational, algorithmic, and embedded hardware techniques to identify and localize anomalies or deviations from expected quality in real time across diverse industrial domains. Their core utility lies in rapidly capturing, quantifying, and visually flagging product defects—serving sectors such as textiles, manufacturing, civil infrastructure, and food processing—where high-throughput, objective quality assessment is essential.

1. Foundations: Statistical Texture Analysis via GLCM

A fundamental approach to automated defect detection, as exemplified in early industrial systems, involves leveraging the gray level co-occurrence matrix (GLCM) to exploit second-order texture statistics. The GLCM P(i,jd,θ)P(i, j \mid d, \theta) quantifies the frequency of co-occurring pixel intensities at a defined pixel separation dd and angle θ\theta for an M×NM \times N grayscale image. Typically, parameter choices include d=1d=1, θ=0\theta=0^\circ, G=256G=256 (for 8-bit images), and a 50×5050 \times 50 sliding window.

From the GLCM, the feature "energy" is computed as: ENG=i,j[p(i,jd,θ)]2ENG = \sum_{i, j} \left[ p(i, j \mid d, \theta) \right]^2 where p(i,jd,θ)p(i, j \mid d, \theta) is the normalized co-occurrence probability. ENG serves as a robust, shift-invariant metric for texture regularity; uniform fabric regions yield near-constant ENGENG, while localized defects trigger significant deviations.

This textural energy-based analysis provides a computational foundation for defect detection pipelines targeting periodic or structured materials (Raheja et al., 2014).

2. Defect Localization via Sliding Window Processing

Spatial localization of defects is achieved via a non-overlapping (or optionally overlapping) sliding window over the entire image domain. Each window of size w×ww \times w is processed sequentially:

  • Extract a w×ww \times w patch; compute its GLCM and associated ENGENG.
  • Reference energy ENGrefENG_{ref} is precomputed from defect-free samples.
  • Deviations exceeding a fixed threshold indicate candidate defects:

ENGwindowENGref>T    defect|ENG_{window} - ENG_{ref}| > T \implies \text{defect}

  • Detected regions are visually flagged (e.g., overlayed by a white bounding box).

For an R×CR \times C image, the total number of steps is R/wC/w\left\lfloor R/w \right\rfloor \cdot \left\lfloor C/w \right\rfloor; at each step, computation of the full GLCM (G×GG \times G) incurs a per-window computational complexity of O(G2)O(G^2). For G=256G=256: Total Computations=R×C×G2\text{Total Computations} = R \times C \times G^2

This method is fundamental to real-time detection in uniform or repetitive surfaces, balancing computational tractability with spatial granularity (Raheja et al., 2014).

3. Real-Time Embedded System Implementation

The real-time requirements of industrial quality control necessitate efficient embedded deployments. In the referenced implementation, all processing is performed on a TI TMS320DM642 digital signal processing (DSP) platform, programmed in C using Code Composer Studio and TI's Chip Support Libraries (CSL):

  • The DSP directly acquires grayscale video input (from an NTSC camera) to SDRAM.
  • Direct Memory Access (DMA) is used to ferry image blocks efficiently, minimizing CPU intervention.
  • Video processing functions—window extraction, GLCM and ENGENG computation—are scheduled to exploit the DSP's parallelism.
  • Processed results (with defect windows annotated) are rendered to monitors at a throughput of 0.5 seconds per frame.

Design considerations include careful segmentation of memory for heap/code/storage, efficient use of the CSL APIs to offload boilerplate register/peripheral I/O, and optimization of sliding window/GLCM loops to remain within available on-chip resources.

This platform-level realization demonstrates the viability of algorithmic defect detection in embedded, production-grade environments where determinism and low-latency output are critical (Raheja et al., 2014).

4. Performance, Scalability, and Trade-Offs

The operational characteristics of this approach are governed by key hyperparameters:

  • Window size (ww): Smaller ww improves localization precision but increases the computational burden due to more windows; larger ww reduces computational load but risks missing small defects.
  • GLCM quantization (GG): While G=256G=256 suits 8-bit images, reducing GG can accelerate processing at the expense of quantization artifacts, particularly for subtle defect types.
  • Threshold (TT): Selection is domain-specific; a lower TT increases sensitivity but can trigger false positives.
  • Frame processing rate: With careful optimization, 0.5 seconds per image is achievable on mid-2000s DSP hardware given the sliding window and GLCM energy computation overhead.

Trade-offs must be managed between real-time throughput, spatial resolution of defect localization, sensitivity to minor anomalies, and hardware resource limitations. The design provides a template for customizing trade-offs according to product requirements (Raheja et al., 2014).

5. Broader Applications and Evolution

The described methodology generalizes to a class of defect detection problems where anomalies disrupt intrinsic textural regularity. Fabric inspection is a canonical use case, but principles extend to domains with periodic or quasi-periodic patterns (e.g., woven composites, screen printing).

This GLCM+sliding window approach represents a precursor to more recent advances employing deep learning architectures; however, its statistical grounding, transparency, and low hardware barrier remain relevant, especially in environments constrained by real-time requirements and limited access to large labeled datasets.

Application-specific implementation must consider:

  • Variability in background texture and illumination, particularly in non-controlled industrial settings.
  • The possibility of integrating alternative or additional texture features (contrast, correlation, homogeneity) suitable for the material under inspection.
  • Potential extension to multi-channel or color input for materials with complex chromatic signatures.

6. Critical Appraisal and Limitations

While robust for uniform, periodic textures and compatible with cost-sensitive, deterministic DSP hardware, GLCM-based systems are less effective for:

  • Defects manifesting as subtle color changes with minimal disturbance to intensity texture.
  • Highly heterogeneous or non-repetitive backgrounds where intra-class texture variation masks minor entropy changes.
  • Scenarios demanding sub-window granularity or where computational budgets are extremely tight.

The approach is susceptible to threshold tuning instability and may require adaptation when transferring between material types or when scaling to substantially higher image resolutions.


In summary, automated defect detection systems founded on GLCM-based texture feature extraction, sliding window localization, and real-time embedded implementation provide a robust, interpretable, and application-agnostic architecture for industrial quality assurance (Raheja et al., 2014). While contemporary techniques increasingly utilize deep learning, these statistical foundations continue to inform system design—especially where interpretability, low-cost deployment, and deterministic, real-time operation are paramount.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)
Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Automated Defect Detection System.

Don't miss out on important new AI/ML research

See which papers are being discussed right now on X, Reddit, and more:

“Emergent Mind helps me see which AI papers have caught fire online.”

Philip

Philip

Creator, AI Explained on YouTube