Defect and Anomaly Detection
Industrial inspection systems need to identify known defects while also responding appropriately to conditions that were not represented in their training data. A scratch, crack, missing component, or surface irregularity may belong to a known defect class, while an unfamiliar pattern may indicate a new problem or harmless variation. Distinguishing these cases is important because a system that rejects too aggressively can create unnecessary rework, while a system that accepts unfamiliar defects may miss conditions that require investigation.
Aperture Equipment Diagnostics Labs studies methods for detecting and characterizing known defects and unfamiliar anomalies in industrial settings. The research focus includes classification, anomaly recognition, and localization, with attention to recall by defect class, false rejects, and localization error. The goal is to evaluate how a method behaves under defined conditions and to make its limitations clear, rather than assume that a model can identify every possible defect.
The Problem: Known Defects and Unfamiliar Variation
Known-defect classification uses examples of predefined defect categories to learn distinctions between classes. Its performance depends on the quality and coverage of the labeled examples and on whether evaluation conditions are sufficiently representative. Anomaly detection addresses a different question: whether an observation differs meaningfully from a reference pattern or expected operating condition. An anomaly is not necessarily a defect. It may reflect benign changes in lighting, material texture, product variation, sensor behavior, or operating state.
A practical inspection approach must therefore separate three questions: whether a known defect is present, whether an observation is unusual relative to the expected baseline, and whether the available evidence is sufficient to support a decision. The threshold for raising an alert affects the balance between missed defects and false rejects. That balance should be evaluated in the context of the application and the consequences of each type of error.
Research Questions
- Can a model identify known defect classes while flagging unfamiliar patterns for review?
- How can harmless variation be distinguished from a potentially important anomaly?
- How does the method’s recall vary across defect classes and severity levels?
- How often are conforming items falsely rejected, and how does that rate change with the alert threshold?
- How accurately can a method localize a defect within an image or inspected region?
Research Approach
The research process begins by defining the inspected asset or product, the known defect classes, the types of unfamiliar variation expected, and the decision that follows an alert. Data preparation should document the source of each example, labeling procedure, inspection conditions, and any known limitations. Training and evaluation splits should be designed to avoid leakage between highly related samples, such as multiple images of the same part or repeated observations from one production batch.
A baseline can classify known defect categories using labeled examples. An anomaly-oriented method can then be evaluated on held-out normal examples, known defects, and unfamiliar patterns. The comparison should consider whether the method can flag relevant unfamiliar cases without treating every unusual observation as a defect. Where localization is required, predicted regions should be compared with independently annotated reference regions using a predefined localization measure.
Evaluation should include variations in material appearance, lighting, camera position, production conditions, and other factors relevant to the specific use case. These conditions should be recorded rather than treated as interchangeable. Human review or an independent inspection process may be needed to establish ground truth for uncertain or previously unseen cases.
Evaluation and Metrics
- Recall by defect class: the proportion of reference defects in each class that the method correctly identifies.
- False rejects: conforming items incorrectly flagged as defective or sent for unnecessary review.
- Localization error: the difference between the predicted defect location and the independently annotated reference location.
- Unfamiliar-anomaly handling: how often relevant unfamiliar cases are flagged and how often harmless variation triggers an alert.
- Threshold sensitivity: how detection and false-reject behavior changes as the decision threshold is adjusted.
Numerical targets require technical approval. Results should report the evaluation sample, defect-class distribution, ground-truth process, operating conditions, uncertainty, and known limitations. A single aggregate score should not hide weak performance on rare or high-severity defect classes.
Proposed Experiment
A proposed experiment would evaluate a known-defect classifier and an anomaly-detection approach on a documented inspection dataset containing conforming examples, known defect categories, and held-out unfamiliar patterns. Ground truth should be established independently, with reference locations annotated when localization is evaluated. The evaluation should measure recall by class, false rejects, and localization error, then review representative false positives and missed defects to understand the conditions that caused them.
This experiment is a proposed evaluation design, not a claim of completed work or measured performance. Any published findings should identify whether the evidence comes from simulated data, recorded images, or physical inspection, and should be approved by the technical lead.
Limitations and Practical Considerations
Rare defects may be poorly represented in available datasets, and labels may be incomplete or inconsistent. A method can also respond to changes in lighting, surface finish, camera settings, or product type that are unrelated to defect status. Anomaly scores do not establish a root cause, and unfamiliar observations should not automatically be described as defects without suitable verification.
The operating threshold should reflect the cost and consequence of missed defects, false rejects, and additional inspection. Where decisions affect safety or product release, escalation and verification procedures should be defined with qualified personnel. Performance should be reassessed when products, sensors, or production conditions change materially.
Call to Action
Have an inspection challenge involving known defects, unfamiliar anomalies, or excessive false rejects? Discuss the inspection conditions, available labels, decision requirements, and evaluation evidence with Aperture Equipment Diagnostics Labs.
