Project

Wafer Defect Classification

Classify known defects and flag unfamiliar anomalies—even when labeled examples are scarce.

SEM images of semiconductor wafers contain defects with very different appearances and frequencies. Some categories have few labeled examples; others vary greatly in size and shape. A conventional classifier may also assign an unfamiliar anomaly to a known class even when the match is poor.

Instead of treating classification as one prediction, we implemented separate stages for locating unusual regions → assessing their characteristics → classifying known defects → flagging unfamiliar patterns. Each stage addresses a different source of uncertainty, allowing the analysis to be tailored to the visual characteristics of the target defect.

Technical Challenges

Classifying Defects with Sparse and Uneven Training Data

  1. Class frequencies are highly imbalanced
    Rare defects may have too few labeled examples for a standard classification approach to perform reliably.
  2. Appearance varies within a defect category
    Size, shape and imaging differences can make examples from the same class look quite different.
  3. Unknown anomalies challenge closed-set classifiers
    A model trained only on predefined labels may still force an unfamiliar anomaly into one of those labels instead of identifying uncertainty.
Technical Approach

A Multi-Stage, Defect-Aware Analysis Method

  1. Locate candidate anomalous regions
    We identified image areas that differ from the expected normal appearance before attempting to name the defect type.
  2. Analyze geometry and regional characteristics
    We assessed the size, shape and other properties of extracted regions to support an initial distinction between broad anomaly types.
  3. Route classification by defect characteristics
    We used methods suited to each defect type, such as shape analysis for scratches and visual features for foreign particles.
  4. Flag low-fit anomalies as potentially unknown
    We treated regions that do not sufficiently match defined categories as candidates for further inspection instead of automatically assigning a known defect label.
Design Points

Key Engineering Decisions

  • Decompose the task before selecting models
    Localization, region characterization and class assignment solve different problems and can be optimized separately.
  • Design around limited labeled examples
    Anomaly-first processing makes greater use of the distinction from normal appearance when examples of every defect class are scarce.
  • Preserve an unknown category
    A system should indicate when the known classes are insufficient rather than imply certainty for every abnormal region.
Applications

Where a Multi-Stage Approach Is Useful

This method is relevant to SEM-based inspection of semiconductor wafers and electronic components where defect types are unevenly represented and previously unseen anomalies need to be flagged for expert review. Its accuracy and operating thresholds must be evaluated against the target images and inspection criteria.

Summary

Matching the Analysis Method to the Defect

We implemented anomaly localization, region-specific analysis and an explicit path for potentially unknown defects. Separating these tasks allowed the processing method to reflect the defect’s visual characteristics and the limits of the available training data.

Semiconductors & manufacturing Image recognition & measurement
All projects
SPECIALIZED VISION ENGINEERING

Discuss Your Inspection Challenge.

We can review your sample images, defect categories, available training data and inspection requirements to explore an appropriate technical approach.