Defect detection
What Is Defect Detection?
Defect detection is the use of sensing and detection algorithms to identify flaws in a material, component, or manufactured product, and usually to locate and classify them as well. A defect is any deviation from the specified condition that matters to function or appearance: a crack, void, inclusion, delamination, scratch, weld porosity, missing feature, or dimensional excursion. The task is framed statistically as a decision between a nominal and an anomalous hypothesis, so the design vocabulary is that of detection theory, with false alarm rate, missed detection rate, and the tradeoff between them expressed through a receiver operating characteristic curve. Because the cost of a missed structural flaw and the cost of scrapping a good part differ by orders of magnitude in most industries, choosing the operating point is part of the engineering problem rather than an afterthought.
The subject spans nondestructive evaluation, machine vision, signal processing, and statistical learning. Two properties make it harder than generic classification. Defects are rare, so training data is severely imbalanced and some defect classes may never appear in a historical dataset. Defects are also diverse in scale and appearance while the acceptable background varies with surface finish, illumination, and material batch, which means the detector must separate meaningful deviation from ordinary process variation.
Sensing Modalities
The choice of sensor determines what can be detected at all. Optical machine vision covers surface defects and dimensional checks and is the cheapest to deploy at line speed. Subsurface flaws require energy that penetrates the material: ultrasonic testing for cracks and delamination, eddy current testing for near-surface flaws in conductive parts, radiography and X-ray computed tomography for internal voids and inclusions, and infrared thermography for bonding defects revealed by heat flow. Acoustic emission monitoring listens for the transient elastic waves a growing crack releases while a structure is under load. A review of automated visual surface defect detection for industrial metal planar materials that surveyed more than 160 publications groups two-dimensional methods into statistical, spectral, model-based, and machine learning families, a taxonomy that generalizes well beyond metals.
Classical Detection Methods
Before learned features became standard, detectors were built from explicit image or signal models. Statistical approaches characterize local texture through histograms, co-occurrence matrices, or local binary patterns and flag regions whose statistics fall outside a reference distribution. Spectral approaches use Fourier, Gabor, or wavelet transforms to isolate the frequency signature of periodic backgrounds so that an aperiodic defect stands out. Model-based approaches fit a generative description of the defect-free surface, such as a Markov random field or a low-rank plus sparse decomposition, and treat the residual as the candidate defect map. These methods remain valuable where training examples are scarce, where the inspected surface is highly regular, or where a certifiable decision rule is required.
Learning-Based Detection
Convolutional networks and, more recently, vision transformers learn the discriminative features directly, and object detection and semantic segmentation architectures supply localization alongside classification. Data scarcity drives much of the methodology, as discussed in a survey of machine learning driven material defect detection: transfer learning from large natural image corpora, synthetic defect generation, and augmentation are all standard. Where labeled defects are effectively unavailable, unsupervised anomaly detection trains only on nominal samples and scores reconstruction or feature-space distance, and few-shot formulations such as one-shot recognition of manufacturing defects in steel surfaces learn a similarity metric that recognizes a new defect class from a single reference example.
Applications
Defect detection has applications in a range of fields, including:
- Semiconductor wafer and printed circuit board inspection
- Steel, glass, textile, and paper web production
- Weld and casting quality assurance
- Additive manufacturing process monitoring
- Aerospace and civil structural health monitoring
- Pipeline, rail, and pressure vessel in-service inspection