선정목록으로
Wafer Defect Classification Algorithm with Label Embedding Using Contrastive Learning
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.1109/access.2025.3527491
- 저널
- IEEE Access
- 발행년도
- 2025
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/access.2025.3527491
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4406202075
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Classifying wafer defects in the wafer manufacturing process is increasingly critical for ensuring high-quality production, optimizing processes, and reducing costs. Most existing methods for wafer map defect classification primarily rely on images alone for model training and prediction. However, these approaches often lack interpretability, which can hinder process improvement and problem-solving efforts. In other words, existing methods only calculate the probability of a specific image belonging to each class, making it difficult to visually judge why the image belongs to a particular class. Additionally, these methods make it challenging to assess the distance of new images from each class. Furthermore, it is difficult to obtain representative images of each class. To address these limitations, we propose a novel approach for wafer defect classification using contrastive learning with label embedding. The proposed method aims to map label information and wafer defect images into a shared latent space through contrastive learning using label embedding. This not only facilitates defect class prediction from images but also enhances interpretability by visualizing relationships between images and defects (labels) and providing representative defect images. Moreover, compared to previous methods, our approach demonstrates better classification performance and computational efficiency, even in situations with imbalanced labels. This method also shows significant potential in identifying unseen defects not defined in the original classification tasks. Consequently, the proposed approach extends its applicability beyond wafer map defect patterns, showing promising potential for use in various domains.
본문 48,946자
본문 펼치기
Received 7 November 2024, accepted 31 December 2024, date of publication 9 January 2025, date of current version 15 January 2025.
_Digital Object Identifier 10.1109/ACCESS.2025.3527491_
# Wafer Defect Classification Algorithm With Label Embedding Using Contrastive Learning
JEONGJOON HWANG, SOMI HA, AND DOHYUN KIM
Department of Industrial and Management Engineering, Myongji University, Yongin, Gyeonggi-do 17058, Republic of Korea
Corresponding author: Dohyun Kim (ftgog@mju.ac.kr)
This work was supported by the National Research Foundation of Korea (NRF) grant funded by Korean Government (MSIT)
(No. 2022R1F1A1071421).
ABSTRACT Classifying wafer defects in the wafer manufacturing process is increasingly critical for
ensuring high-quality production, optimizing processes, and reducing costs. Most existing methods for wafer
map defect classification primarily rely on images alone for model training and prediction. However, these
approaches often lack interpretability, which can hinder process improvement and problem-solving efforts.
In other words, existing methods only calculate the probability of a specific image belonging to each class,
making it difficult to visually judge why the image belongs to a particular class. Additionally, these methods
make it challenging to assess the distance of new images from each class. Furthermore, it is difficult to obtain
representative images of each class. To address these limitations, we propose a novel approach for wafer
defect classification using contrastive learning with label embedding. The proposed method aims to map
label information and wafer defect images into a shared latent space through contrastive learning using label
embedding. This not only facilitates defect class prediction from images but also enhances interpretability
by visualizing relationships between images and defects (labels) and providing representative defect images.
Moreover, compared to previous methods, our approach demonstrates better classification performance and
computational efficiency, even in situations with imbalanced labels. This method also shows significant
potential in identifying unseen defects not defined in the original classification tasks. Consequently, the
proposed approach extends its applicability beyond wafer map defect patterns, showing promising potential
for use in various domains.
INDEX TERMS Deep learning, image classification, wafer defect classification, contrastive learning, label
embedding.
I. INTRODUCTION
Recently, the global semiconductor industry has experienced
rapid growth due to advancements in IT and AI technologies.
As the technology gap between companies in the semiconductor industry narrows, competition to improve yields and
maintain competitiveness is becoming increasingly fierce.
Increasing semiconductor yield requires minimizing defects
in wafer production. Wafer defects can be caused by various
factors such as human error, particles in equipment, and
chemical stains [1]. The defect patterns on wafer maps are
not random but have specific patterns depending on the
abnormalities occurring at each stage of the manufacturing
The associate editor coordinating the review of this manuscript and
approving it for publication was Mohammad J. Abdel-Rahman .
process. For example, ‘‘Scratch’’ on wafers are typically
caused by mechanical manipulation, while defects known as
‘‘Center’’ and ‘‘Edge-ring’’ are caused by thin film deposition
and etching issues, respectively [2], [3]. Identifying these
defect patterns provides critical information for pinpointing
defective processes and assessing their state. To address these
issues, electrical die sorting (EDS) and failure analysis (FA)
procedures are routinely performed at the final stage of the
manufacturing process. The EDS process uses the electrical
properties of individual chips to detect and classify defective
chips, creating a wafer map indicating defect locations.
Experienced process engineers participate in the FA process
to monitor defects identified on the wafer map and classify
patterns associated with these defects. However, relying
solely on engineers to check all wafer maps is inefficient in
terms of time and cost, and the defect pattern recognition
rate by experts is less than 45% accurate [4]. Therefore,
automating defect pattern classification using wafer map
images is often employed to improve efficiency and accuracy
while reducing resource consumption.
With advancements in AI and the emergence of vision
models such as Convolutional Neural Networks (CNNs) [5]
and Vision Transformers (ViT) [6], automating processes
with higher accuracy than humans have become feasible.
However, despite these advancements, domain knowledge
remains essential, and interpretability of model results is
often lacking. For example, while the model correctly
classifies defect images in the wafer map, it does not offer
interpretability of the results, potentially limiting insights for
engineers. This lack of interpretability can be challenging
when engineers lack domain knowledge or when dealing
with data containing outliers, potentially impacting the
process. Therefore, enhancing interpretability for engineers
can aid in their domain understanding and facilitate problem comprehension and resolution. One potential solution
to enhance interpretability is integrating Explainable AI
(XAI) techniques [7], [8], which utilize attention scores
from attention-based models or highlight image regions
that contribute most to classification decisions. However,
applying separate XAI or attention methods, which demand
computational resources, can be impractical in real-world
settings. Additionally, existing XAI methods are designed to
identify parts of an image related to a given label, but they
do not provide a representative image for a specific label.
Therefore, there is a need for a user-friendly model that not
only accurately identifies defects but also offers clear insights
and interpretability of the labels themselves, simultaneously.
In this study, we propose a novel wafer map defect classification algorithm using label embedding and contrastive
learning. Our goal is to enhance the understanding of the
relationship between images and labels, while improving
the interpretability of model classification results to enhance
classification performance. Fig. 1 depicts a defect image
classification task with two labeled defects. In a typical
image classification scenario, individual images would be
categorized only into one of the two colors. However, this
provides little assistance to engineers beyond presenting the
model’s classification results. We explicitly want to identify
each representing label point to better reflect common
features of defect images for each label via contrastive
learning. The label representative points generated by the
proposed approach are clearly distinguished from simply
representing the average of images with the same label
(e.g., black triangles). Through this approach, we explore a
representative point that includes the characteristics of each
defect (e.g., red triangles), and by finding the closest actual
image, we also obtain a representative image of each defect.
We also propose this approach to intuitively visualize wafer
map images and labels by embedding them into the same
latent space, thereby closely examining their relationships.
FIGURE 1. Visualization of classification results for image with two
labels. Conventional image classification only considers image data
points, while label embedding approach identifies label points as well.
The black triangles indicate the average images for each label, showing a
distinct difference from our approach (red stars).
This method not only allows the classification of new images
based on the relationships between existing images and labels
but also provides insights into the relationships between
existing labels for previously unseen images. In summary,
this paper contributes in the following ways:
- We propose a novel algorithm that integrates contrastive
learning and label embedding methods to improve the
accuracy and interpretability of classification.
- The interpretability of the relationship between images
and labels learned by our approach can be demonstrated
through visualizing the results in the latent space.
- The common features frequently identified in each
defect are represented as label vectors, and we provide a
representative image of the defect that contains the most
such features.
- Despite the presence of class imbalance, our approach
demonstrates superior quantitative performance compared to previous methods and effectively captures the
features of the minority class.
- Since pre-defined defect images and unseen defect
images can be distinguished in the latent space, new
defects or outliers can be effectively identified.
This paper is structured as follows. Section II reviews
previous studies related to the proposed research and
identifies their limitations. Section III proposes a novel wafer
defect classification algorithm with label embedding using
contrastive learning. Section IV conducts various quantitative
and qualitative experiments to evaluate the classification
performance of the proposed method. Finally, Section V
summarizes the research, discusses future directions, and
addresses the method’s limitations and implementation
challenges.
FIGURE 2. Overall process of the proposed method.
II. RELATED WORK
Various studies are currently being conducted to effectively
classify wafer map defect patterns using machine learning and deep learning algorithms that have demonstrated
outstanding performance in image classification problems.
CNN [5] is a deep learning architecture designed to mimic
the human visual system, and it is useful for recognizing the
features of two-dimensional images through convolutional
layers. ViT [6] uses the self-attention mechanism of Transformers instead of convolutional layers to recognize features
of images. It divides the image into small patches, converts
these patches into a sequence of tokens, and then uses them
as input to the Transformer model.
In Nakazawa and Kulkarni [9], CNN is used to classify
wafer defect patterns and perform wafer search operations
in a historical wafer map library. The objective is to aid in
the identification of causes by searching for past wafer maps
generated by known causes when investigating the unknown
causes of new wafer map images. In addition, Du and Shi [10]
use a deep convolutional neural network (DCNN) for defect
pattern classification and recognition and systematically
organize the characteristics of wafer map defect patterns.
As wafer map defect patterns are typically imbalanced
datasets, there is a risk of overfitting, and therefore the paper
proposes the use of appropriate parameter reduction methods
to prevent overfitting in DCNN. Moreover, Shinde et al. [11]
focuses on using various YOLO models [12], [13] that
have achieved outstanding performance in object detection
to classify wafer map defects and localize defect regions.
As previously mentioned, the majority of methods for
classifying wafer map defects focus primarily on training
models exclusively with collected defect images. However,
these approaches frequently encounter difficulties in interpreting the predictions generated by the models. Thus, it is
essential to consider incorporating additional information,
such as non-image data labels, into the training process.
Until now, there has been limited research on leveraging label information in image classification tasks to
enhance classification performance or offer interpretability.
Akata et al. [14] propose considering the label inclusion
problem to overcome the limitations of Direct Attribute
Prediction (DAP) [15], which classifies images based on
attributes such as color, texture, shape, and size. DAP is
structured with a two-step approach: first learning attributespecific classifiers, and then combining attribute scores
into class-level scores. However, the first step encounters
issues that are independent of the final classification task.
To address this issue, Akata et al. [14] propose approaches
such as attribute label embedding (ALE) and hierarchical
label embedding (HLE) to effectively utilize side information
such as class hierarchies, textual descriptions, and label
information. ALE integrates labels into the attribute space
by leveraging relationships between attributes and labels,
while HLE organize information using a hierarchical label
structure. However, their approach focuses on enhancing
image classification by integrating label information with
image attributes. In contrast, our objective is to directly
use label information for image classification tasks, as well
as for the embedding and visualization of labels, without
considering the attributes of the images themselves.
In addition, some studies have focused on matching
images with text descriptions instead of labels. Specifically,
the studies have aimed to embed image data into the
semantic space of text, enabling the joint consideration of
both image and text information [16], [17]. These methods
of semantic embedding are primarily utilized as zero-shot
models, which classify instances belonging to classes that
lack labeled instances. Recently, CLIP [18] has successfully
performed multi-modal tasks such as image captioning by
utilizing contrastive learning for both image and text data.
Contrastive learning has recently been employed in semantic
embedding to learn representations that capture semantic
relationships between different types of data (such as images
and text). Contrastive learning handles heterogeneous data
by comparing their features and organizing similar instances
closer together in the embedding space while pushing
dissimilar instances farther apart [19]. To achieve this,
contrastive learning commonly employs various augmentations on reference images to generate positive images. The
remaining images are considered negative, training the model
to distinguish them in the embedding space [20]. The core
idea of contrastive learning is to train the model using both
positive and negative samples. Positive images are generated
by applying various augmentations to the same object or
instance, enabling the model to learn similarities among
them. Conversely, negative images come from different
objects or instances, training the model to distinguish these
from the positive ones. This approach encourages the model
to keep positive images close together in the embedding space
while pushing negative images further apart. Consequently,
the model enhances its ability to cluster images of the same
class and separate images of different classes effectively.
However, the application of contrastive learning in wafer map
defect pattern classification tasks is still limited, as these
methods have mainly been utilized for image representation
rather than image classification. Moreover, most contrastive
learning embeddings involve mapping two different types
of data (e.g., images and text) into the same semantic
space. In contrast, our approach maps input images and
labels into the same semantic space directly, rather than
contrasting different types of data. This method enables us to
perform label embedding effectively, capturing the semantic
relationship between images and their corresponding labels.
III. PROPOSED METHOD
In this section, we propose an image classification algorithm
with label embedding that can classify the defective patterns
in the wafer maps generated during the semiconductor
manufacturing process. Fig. 2 illustrates the overall process
of the proposed model, which consists of three stages. The
proposed method is structured into three primary stages:
(a) the embedding stage, (b) the contrastive learning stage,
and (c) the image classification stage. Each stage contributes
to mapping images and labels into a shared feature space for
more effective classification.
(a) Embedding Stage: In this stage, the goal is to independently embed wafer map images and their corresponding
labels into separate vector spaces. This is achieved through
two parallel embedding processes. The first process uses a
convolutional layer to extract features from the wafer map
images, generating image embedding vectors that capture
the spatial and structural characteristics of each image.
In parallel, the second process employs a fully connected
layer to embed labels, which provides label embedding
vectors that reflect the semantic attributes of the labels. As a
result, we obtain two distinct sets of embedding vectors—one
for images and one for labels—each representing the unique
properties of its respective input.
(b) Contrastive Learning Stage: With the embedding
vectors from both the image and label embeddings, this
stage projects them into a common latent space. Using
contrastive learning, the image and label embedding vectors
are optimized to align in such a way that they exhibit
high similarity when representing corresponding image-label
pairs. In this shared latent space, the similarity between
an image’s feature vector and a label’s feature vector is
calculated. The objective of this contrastive learning process
is to update the embedding vectors so that images and
their true labels have similar representations in the latent
space, while unrelated pairs are positioned farther apart.
This mapping establishes a unified feature space where both
images and labels are effectively aligned.
(c) Image Classification Stage: In the final stage, the classification of an image is determined based on the similarity
between its feature vector and the label feature vectors within
the shared latent space. After the contrastive alignment,
each image is assigned to the label that exhibits the highest
similarity value in the latent space, corresponding to the
closest vector representation. This nearest-neighbor approach
in the common space allows for effective classification by
associating each image with the label that best matches its
features.
_A._ _EMBEDDING STAGE_
Before diving into the training, we perform embedding of
both image and label data from the training data to enable
the model to learn. To perform image embedding, we use the
embedding part of ResNet101 [21], which is a highly accurate
classification model that effectively captures local features
of images using convolutional layers. In most image classification algorithms, image embedding vectors are obtained by
utilizing convolution layers, followed by image classification
using a fully connected layer. Although this approach enables
achieving high classification accuracy through a relatively
simple process, interpreting the final classification results
predicted by the model and explaining the relationship
between input observations and the corresponding labels
is challenging. To the end, we propose embedding the
labels into the same latent space as images to enable joint
updates of both labels and images during training. Most
image classification methods do not directly utilize label
information, except for its use to evaluate the accuracy of the
model or compute the loss function. Unlike previous attempts
to utilize semantic features of labels as auxiliary information,
the proposed method uses labels directly by embedding
them into the same latent space as images, allowing for
the learning of similarity between images and labels during
training. This approach enables capturing the relationships
between all labels and input images and interpreting the
model’s classification results. To perform label embedding
in this study, we first generate pseudo-labels that correspond
to the number of labels defined in the dataset. For example,
in the case of a wafer map defect pattern dataset with four
FIGURE 3. Overview of the procedure that computes the similarities
between the image embedding vectors and the label embedding vectors
generated in the embedding process. The resulting similarities are
subsequently used to predict the most appropriate label for each image.
labels (i.e., ‘Center’, ‘Donut’, ‘Edge-Loc’, and ‘Edge-Ring’),
we generate four pseudo-labels using one-hot vectors. The
generated one-hot vectors are embedded via a fully connected
layer and are updated throughout the entire learning process.
_B._ _CONTRASTIVE LEARNING STAGE_
The contrastive learning stage maps the image embedding
vector and the label embedding vector generated in the
preceding embedding stage onto the identical latent space,
allowing the model to learn the relationship between
two vectors. Our approach was inspired by established
methodologies in the domains of deep metric learning
and contrastive representation learning. More precisely,
we derived insights from the multiclass N-pair loss [22],
a frequently used loss function in deep metric learning and
the InfoNCE loss [23], a widely employed loss function for
contrastive representation learning. Moreover, we integrated
the contrastive concept from the CLIP [18], which has
demonstrated successful application in learning image-text
pairs for generating image captions. The primary objective
of contrastive learning in this study is to train the model
to accurately predict the labels of images, yielding a high
similarity score between the image and its corresponding
true label. To achieve this, we convert images and labels
into embedding vectors during the embedding step. Then,
we calculate the similarity score between the two vectors
using Equation (1) to measure their similarity score. If a pair
of vectors is correctly matched, the similarity value is set
to a high value; otherwise, it is measured as a low value.
These scores are represented in a matrix format as shown
in Fig. 3, where the red marks indicate the pairs with the
highest similarity scores. The similarity score is formulated
as follows.
<u>I</u> - <u>L</u> <sup>_T_</sup>
Z = (1)
∥ I ∥∥ L ∥
where, I and L represent the image and label embedding
vectors, respectively. Then, the model using the InfoNCE
loss [23] is trained, aiming to maximize the similarity
between each image and its corresponding true label, while
considering the similarities between each image and all
labels. The InfoNCE loss, as described in Equation (2), uses
the image-label pairs with the highest similarity scores as
positive pairs, while considering all other pairs as negative.
In other words, the algorithm is trained to map image
embedding vectors in the latent space to be close to the
label embedding vectors of their true labels. Furthermore,
the training process aims to position images with the same
label close together and those with different labels far apart.
Through this approach, the model can capture the distinctive
characteristics of each label and enhance the accuracy of
image classification based on these learned features. The
efficacy of the InfoNCE loss has been demonstrated in
various contrastive learning tasks. The InfoNCE loss is
formulated as follows.
_L_ = − _log_ <sup><u>1</u></sup>
_N_
_N_
_i_ =1
_exp_ ( _zij_ + _/τ_ )
<u>�</u> _Mj_ =1 <sup>1</sup> <sup>_i_</sup> <sup≯=</sup> <sup>_jexp_</sup> <sup>(</sup> <sup>_zij/τ_</sup> <sup>)</sup>
(2)
where, _N_ and _M_ represent the number of images and the
number of label types, respectively. The similarity between
the _i_ -th image embedding vector and the _j_ -th label embedding
vector is denoted as _Zij_, and the temperature parameter is
denoted by _τ_ . _j_ <sup>+</sup> refers to the label embedding vector with the
highest similarity score for a given image embedding vector.
The objective is to minimize the loss _L_ by maximizing the
expression inside the logarithm in Equation (2). This means
that the similarity between negative pairs should decrease
while the similarity between positive pairs (represented by
_Zij_ +) should increase during the training process.
Similar to how CLIP maps images and text into a
shared semantic space through contrastive learning, the
proposed method performs contrastive learning embedding
to map both images and labels into the same space. In the
embedding stage, label vectors initially serve as one-hot
pseudo-labels to distinguish between different labels. During
contrastive learning, these vectors are treated as learnable
parameters. Through training, they adapt to become similar
to image vectors associated with their labels. Image vectors
are generated from a ResNet101-based convolutional layer
and encode defect information. Thus, learned label vectors
represent a common abstraction for all images of each label.
The image vector closest to a label vector in the latent space
is considered the representative defect image for that label.
_C._ _IMAGE CLASSIFICATION STAGE_
The image classification stage can be seen as a process
of finding the most similar label vector for each image in
contrastive learning. As shown in Equation (3), for each
image vector, we calculate similarity scores with all label
vectors and select the label vector with the highest score as
the predicted label _y_ ˆ _i_ . The overall training process of the
proposed algorithm is described in Algorithm 1.
_y_ ˆ _i_ = _argmax_
_j_
( _zij_ ) _for_ _i_ - _th image_ (3)
TABLE 1. The performance of the proposed method for each label.
<u>Algorithm 1</u> <u>Proposed Method’s Learning Algorithm</u>
Input: _N_ : number of images, _M_ : number of labels, _i_ : _i_ -th image,
_j_ : _j_ -th label, _f_ : ResNet101 model, _g_ : fully connected layers
A. Embedding Stage
_M_ <sup>′</sup> = one-hot encoding( _M_ ) # generate pseudo labels
B. Contrastive Learning Stage
for sampled minibatch { _xi_ } <sup>_N_</sup> _i_ =1 <sup>do</sup>
_L_ = _g_ ( _M_ <sup>′</sup> ) # embed pseudo labels
_I_ = _f_ ( _xi_ ) # embed images
_<u>I</u>_ <u>·</u> _<u>L</u>_ <sup>_T_</sup>
_Z_ = ∥ _I_ ∥∥ _L_ ∥ # calculate similarity
FIGURE 4. Sample images for each of the eight labels extracted from the
WM-811K dataset used in this study.
FIGURE 5. The distribution of the dataset used for training. The dataset is
imbalanced, with ‘‘Edge-Ring’’ comprising approximately 38% of the total
data, the largest portion, while ‘‘Near-full’’ makes up only about 1%, the
smallest portion. A detailed description of this dataset is provided in
Section IV-A.
image and label vectors that are embedded in the same latent
space. This allows us to investigate the visual semantics
of each label and provide perspectives on the model’s
classification outcomes, thus demonstrating the contributions
of the proposed algorithm.
_A._ _DATASETS_
The WM-811K dataset [24], consisting of wafer map defect
patterns produced during the semiconductor manufacturing
process, was used for the experiments. Among the entire
dataset, a total of 25,519 observations with clear defect
patterns and corresponding labels were selected for the
analysis. The dataset comprises eight categories of labels, and
examples of each category can be seen in Fig. 4. Additionally,
Fig. 5 illustrates the significant imbalance in the number of
wafers across the different labels. The training and evaluation
_exp_ ( _zij_ + _/τ_ )
<u>�</u> _Mj_ =1 <sup>1</sup> <sup>_i_</sup> <sup≯=</sup> <sup>_jexp_</sup> <sup>(</sup> <sup>_zij/τ_</sup> <sup>)</sup> # InfoNCE loss
_L_ = − _log_ <sup><u>1</u></sup>
_N_
- _N_
_i_ =1
update networks _f_ and _g_ to minimize _L_
end for
return _Z_ = [ _zij_ ]
C. Image Classification Stage
_y_ ˆ _i_ = _argmax_
_j_
( _zij_ ) _for_ _i_ - _th image_
IV. EXPERIMENTS
In this section, we perform several experiments to validate
the proposed algorithm. The experiments conducted in this
study can be broadly categorized into two main parts. Firstly,
we evaluate the quantitative performance of the proposed
model to classify the wafer map defect patterns. Secondly,
we visualize the latent space of the trained model in a
two-dimensional space to observe the relationship between
FIGURE 6. (a) The latent space is trained by the proposed algorithm, where the images are distinguished by eight different colors (i.e.,
labels), and each color has its representative point, indicated by a red star. (b) The latent space is trained by the ResNet101, where the
images are distinguished only by eight different colors. In ResNet101, it is not possible to find the representative point for each color.
(c) The latent space is trained by the ViT, where the images are distinguished only by eight different colors. it is also not possible to find the
representative point for each color.
data were split in an 8:2 ratio, ensuring equal distribution of
each label by performing stratified splitting. The distribution
of the training data is depicted in Fig. 5, and the actual
counts of labels in the evaluation data are presented in
Table 1. Minority classes, including ‘‘Donut’’, ‘‘Random’’,
‘‘Scratch’’ and ‘‘Near-full’’ constitute less than 5% of the
total data, while the remaining classes are majority classes,
each comprising approximately 15% or more of the total data.
_B._ _QUANTITATIVE RESULTS_
First, we evaluated the proposed model’s classification
performance by comparing it with other recent methods,
including ResNet101 [21] with multiple convolution layers
and fully connected layers, and Vision Transformer (ViT) [6]
based on Transformer architecture. ResNet101, a deep
convolutional neural network widely employed for image
classification tasks, distinguishes itself with its use of residual
blocks that not only enable deep network training but also
effectively mitigate the vanishing gradient problem, contributing to its exceptional performance in various computer
vision tasks. ViT, on the other hand, is a versatile deep
learning model for image tasks, adapting the successful
Transformer architecture from NLP to computer vision.
By replacing CNNs with Transformer, ViT captures global
image information effectively and performs well in diverse
vision tasks. All experiments were conducted under the
same conditions, and accuracy, f1 score, precision, recall
and AUROC were used as performance metrics to compare
the classification performance of three models. Accuracy
is a performance metric that represents the proportion of
correctly classified observations among all the observations
in a dataset. It is calculated by dividing the total number of
correct predictions by the total number of predictions made.
F1 score, on the other hand, is a harmonic mean of precision
and recall. It is used to evaluate the balance between the
precision (the proportion of true positives among all positive
TABLE 2. Classification performance.
predictions) and recall (the proportion of true positives among
all actual positive instances) of a classifier. A higher F1
score indicates better performance in terms of both precision
and recall [25]. In addition to traditional evaluation metrics
like accuracy, F1 score, precision, and recall, we assessed
AUROC (Area Under the Receiver Operating Characteristic
Curve) to provide a more comprehensive view of model
performance. AUROC captures how effectively the model
distinguishes between classes across various thresholds, with
higher values indicating stronger classification capability.
The performance results of the three models are summarized in Table 2. The proposed model demonstrates
superior or slightly better performance in classification
metrics compared to the others. Note that the results provide
a more comprehensive evaluation, showing that the proposed
approach achieved a higher AUROC compared to existing
methods, thereby strengthening the overall approach and
demonstrating improved classification performance. The
experimental results suggest that the proposed method,
which integrates both image and label information through
contrastive learning, enhances classification performance in
wafer map defect pattern classification compared to existing
methods that rely solely on image information. Moreover,
the proposed method not only rivals the performance of
the latest image classification technique, ViT, but also
provides label embedding that conventional methods cannot
offer. The presented experimental results show that the
proposed model efficiently extracts valuable features from
the embedded label information and jointly updates the
image vectors and their corresponding label vectors during
training, leading to improved classification performance.
These results indicate that contrastive learning can be
effectively utilized not only for data embedding but also
for image classification. Furthermore, the proposed model
demonstrated robustness against class imbalance, which is
crucial when dealing with imbalanced datasets with skewed
class distributions. Table 1 details the classification results for
each class across the three models, highlighting differences
in the classification outcomes. The results in Table 1 reveal
that the proposed model achieves comparable or superior
classification performance over other models regardless of
class size in class imbalance situations. Additionally, the
proposed method has shown superior performance across a
larger number of classes compared to ResNet101, regardless
of the metrics.
The experiments for the three models were set up in the
same environment to consider the training time(sec), the
number of parameters, and computational costs required for
each model. Firstly, all model training and experiments were
independently conducted on a single NVIDIA Tesla V100Q
GPU. The proposed approach and ResNet101 each took
approximately 10 seconds per epoch for 64 batches of size
128, whereas the ViT took about 200 seconds per epoch.
Table 3 shows the number of parameters and computational
costs required for training each model. To compare computational costs, MACs (Multiply-ACcumulate) were used.
MACs utilize the FMA (Floating Point Multiply and Add)
operation to combine multiplication and addition into a
single step. The term MACs refer to the number of times
such combined operations are executed. As shown in the
table, the number of parameters and computational costs for
the proposed approach are similar to those of ResNet101.
However, compared to the latest approach, ViT, these values
are approximately 0.5× and 0.01×, respectively, indicating
significantly lower computational costs.
TABLE 3. Computational cost.
_C._ _QUALITATIVE RESULTS_
In this section, the relationship between images and labels
is visually explored. We embedded images and labels
into the same latent space to jointly train and perform
classification in this study. Fig. 6 shows the resulting 2D
visualization of the latent spaces of three trained models
(i.e., the proposed method, ResNet101, ViT). For such
visualization, we efficiently reduced the dimensionality
of the high-dimensional data and projected it onto a
lower-dimensional space using the widely used UMAP [26],
which is commonly employed for data analysis and visualization tasks. Each point in the figure represents a wafer
map image, with each color corresponding to one of the eight
labels.
Upon comparing the latent spaces of the trained models
depicted in Fig. 6, the proposed method outperforms the
conventional ResNet101 in distinguishing labels with limited
data observations.ViT also excels in isolating minority classes
compared to ResNet101. However, when compared with the
proposed model, we observe that in ViT, there is more overlap
among classes, resulting in a less distinct grouping and
separation of images from the same class. It is believed due to
that the proposed model achieves better discrimination of the
unique features of each label by using contrastive learning to
separate images with dissimilar features in the latent space.
This suggests that contrastive learning can be more effective
in training the latent space to differentiate between labels.
Unlike the latent space of ResNet101 (Fig. 6(b)) and
ViT (Fig. 6(c)), in the latent space of the proposed model
(Fig. 6(a)), each label has its representative point, indicated by
a red star. These red stars, derived through label embedding,
serve as representative label points for images with the same
label. It should be noted that the conventional classification
models cannot capture representative points for labels;
they can only depict classification outcomes based on the
colors of points. Furthermore, their ability to explain or
interpret predicted results is limited due to the absence of
representative points. In contrast, the proposed method allows
us to ascertain whether an image is related to a specific label
or not by using the distance in the latent space.
FIGURE 7. Representative images with the highest similarity scores for
each label point.
On the other hand, the proposed model can also represent
the representative label images. The representative label
images are the images that best encapsulate the characteristics
of each label. That is, each image with high similarity scores
to each label embedding vector can be considered as a
‘‘representative image’’ that exhibits common characteristics
frequently observed in images of each label. Therefore,
the proposed method enables a more comprehensive interpretation of the relationship between images and their
corresponding labels. Fig. 7 shows the representative label
FIGURE 8. Misclassified images illustrating incorrect label predictions by
the model.
FIGURE 9. (a) The latent space of the proposed model with outlier images
that do not belong to any label. The outlier images are denoted as gray
dots and far from the label point(red star). (b) Outlier wafer map images.
These wafer map images do not match any characteristics of the
pre-defined labels in the dataset.
images, which are essentially the nearest wafer map image
to each label point in the latent space. It is noted that the
presented images accurately reflect the important features
of each label and effectively capture the core shape of each
defect pattern. In addition, Fig. 8 displays the misclassified
images where the actual and predicted labels differ. The
results shows that the misclassified wafer map images exhibit
the characteristics of the predicted label by the model. For
instance, when the true label is ‘Center’, but the model
predicts ‘Random’, the wafer map image reveals some of
the characteristics associated with ‘Random’. This could be
due to the possibility of an incorrect label assigned to the
image, or it could be an outlier or a novel pattern that exhibits
characteristics of multiple labels simultaneously. Therefore,
by considering the distance between the image and the labels
in the latent space, we can determine whether the image is an
outlier, exhibits multiple patterns simultaneously, or the label
is incorrect.
In semiconductor manufacturing processes, the yield is
highly sensitive to various factors, which is why process
conditions are strictly controlled and managed. However,
even with stringent process controls, unexpected defects may
occur due to user error or equipment malfunction. While it
is possible to detect predefined defects through the trained
model, detecting undefined defects can be challenging. The
proposed model can identify images that are estimated as
undefined labels during classification. Fig. 9(a) displays the
latent space of the proposed model, which includes unlabeled
data from the WM-811K dataset. Here, we can observe
clusters of gray image points that are located far from the
pre-defined eight label points. Upon inspecting the wafer map
images belonging to these clusters, it becomes evident that
there are images that do not fall into any of the pre-defined
eight labels, as depicted in Fig. 9(b). It should be noted that
the images shown in Fig. 9(b) represent normal wafer map
images without any defects, which are not suitable for defect
classification. Therefore, when a cluster of points is detected
without nearby label points or is far away from label points,
a new type of defect should be suspected.
V. CONCLUSION
Most methods for classifying wafer map defect patterns rely
solely on image information for model training. However,
incorporating even a small amount of label information can
enhance both classification performance and interpretability,
necessitating the integration of both image and label information. To this end, we proposed a novel wafer map defect
pattern classification algorithm that uses label embedding
through contrastive learning. Similarity-based contrastive
learning was employed to jointly learn embedded image
and label vectors. This approach allows the embedded label
vectors to capture common characteristics among images
with the same label, which can be visualized in the trained
latent space. Unlike previous methods that rely solely on
images, this method provides interpretability of classification
results based on the distance between specific images
and each label in the latent space, offering representative
images for each label without requiring separate explainable
techniques. Moreover, we have identified several benefits
of integrating label information using the proposed method.
First, it slightly improves performance over methods that rely
solely on images, even in cases with imbalanced classification
problems. Second, it can also distinguish previously unseen
labels in the latent space. Lastly, it is computationally
more efficient compared to the latest approaches. In the
future, we plan to explore various applications to identify
representative information shared by the same label, not only
in image data but also in natural language processing tasks.
The proposed model has several limitations. Firstly, the
approach relies on a pre-defined set of labels determined
by domain knowledge. Therefore, it is effective when the
labels for the classification task are well-defined, but may
face challenges when label definitions are ambiguous or when
new labels continuously emerge. Additionally, the proposed
approach assumes single-label classification tasks for each
image, while real-world scenarios often involve images with
multiple defects or multiple labels. This suggests the need for
extension to multi-label tasks. Overall, while the proposed
model enables image classification through label embedding
and facilitates understanding the relationship between images
and labels via learned label embedding, enhancing the
robustness and applicability of the proposed model could be
achieved by eliminating the requirement for predefined labels
or expanding it to multi-label image classification tasks.
ACKNOWLEDGMENT
_(Jeongjoon Hwang and Somi Ha are co-first authors.)_
REFERENCES
[1] R. Wang and N. Chen, ‘‘Defect pattern recognition on wafers using
convolutional neural networks,’’ _Qual._ _Rel._ _Eng._ _Int._, vol. 36, no. 4,
pp. 1245–1257, Jun. 2020.
[2] M. Piao, C. H. Jin, J. Y. Lee, and J.-Y. Byun, ‘‘Decision tree
ensemble-based wafer map failure pattern recognition based on radon
transform-based features,’’ _IEEE_ _Trans._ _Semiconductor_ _Manuf._, vol. 31,
no. 2, pp. 250–257, May 2018.
[3] C. H. Jin, H. J. Na, M. Piao, G. Pok, and K. H. Ryu, ‘‘A novel
DBSCAN-based defect pattern detection and classification framework
for wafer bin map,’’ _IEEE_ _Trans._ _Semiconductor_ _Manuf._, vol. 32, no. 3,
pp. 286–292, Aug. 2019.
[4] A. Drozda-Freeman, M. McIntyre, M. Retersdorf, C. Wooten, X. Song,
and A. Hesse, ‘‘The application and use of an automated spatial pattern
recognition (SPR) system in the identification and solving of yield issues in
semiconductor manufacturing,’’ in _Proc. IEEE/SEMI Adv. Semiconductor_
_Manuf. Conf._, Jun. 2007, pp. 302–305.
[5] A. Krizhevsky, I. Sutskever, and G. E. Hinton, ‘‘ImageNet classification
with deep convolutional neural networks,’’ _Commun. ACM_, vol. 60, no. 6,
pp. 84–90, May 2017.
[6] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai,
T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby, ‘‘An image is worth 16×16 words: Transformers for
image recognition at scale,’’ 2020, _arXiv:2010.11929_ .
[7] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and
D. Batra, ‘‘Grad-CAM: Visual explanations from deep networks via
gradient-based localization,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._
_(ICCV)_, Oct. 2017, pp. 618–626.
[8] M. Sudhakar, S. Sattarzadeh, K. N. Plataniotis, J. Jang, Y. Jeong, and
H. Kim, ‘‘Ada-sise: Adaptive semantic input sampling for efficient
explanation of convolutional neural networks,’’ in _Proc._ _IEEE_ _Int._ _Conf._
_Acoust., Speech Signal Process. (ICASSP)_, Jun. 2021, pp. 1715–1719.
[9] T. Nakazawa and D. V. Kulkarni, ‘‘Wafer map defect pattern classification
and image retrieval using convolutional neural network,’’ _IEEE_ _Trans._
_Semiconductor Manuf._, vol. 31, no. 2, pp. 309–314, May 2018.
[10] D.-Y. Du and Z. Shi, ‘‘A wafer map defect pattern classification model
based on deep convolutional neural network,’’ in _Proc. IEEE 15th Int. Conf._
_Solid-State Integr. Circuit Technol. (ICSICT)_, Nov. 2020, pp. 1–3.
[11] P. P. Shinde, P. P. Pai, and S. P. Adiga, ‘‘Wafer defect localization and
classification using deep learning techniques,’’ _IEEE_ _Access_, vol. 10,
pp. 39969–39974, 2022.
[12] J. Redmon and A. Farhadi, ‘‘YOLOv3: An incremental improvement,’’
2018, _arXiv:1804.02767_ .
[13] A. Bochkovskiy, C.-Y. Wang, and H.-Y. Mark Liao, ‘‘YOLOv4: Optimal
speed and accuracy of object detection,’’ 2020, _arXiv:2004.10934_ .
[14] Z. Akata, F. Perronnin, Z. Harchaoui, and C. Schmid, ‘‘Label-embedding
for image classification,’’ _IEEE Trans. Pattern Anal. Mach. Intell._, vol. 38,
no. 7, pp. 1425–1438, Jul. 2016.
[15] C. H. Lampert, H. Nickisch, and S. Harmeling, ‘‘Learning to detect unseen
object classes by between-class attribute transfer,’’ in _Proc._ _IEEE_ _Conf._
_Comput. Vis. Pattern Recognit._, Jun. 2009, pp. 951–958.
[16] R. Socher, M. Ganjoo, C. D. Manning, and A. Y. Ng, ‘‘Zero-shot learning
through cross-modal transfer,’’ in _Proc._ _Adv._ _Neural_ _Inf._ _Process._ _Syst._,
vol. 26, Dec. 2013, pp. 935–943.
[17] A. Frome, G. S. Corrado, J. Shlens, S. Bengio, J. Dean, M. Ranzato,
and T. Mikolov, ‘‘DeViSE: A deep visual-semantic embedding model,’’ in
_Proc. Adv. Neural Inf. Process. Syst._, vol. 26, Dec. 2013, pp. 2121–2129.
[18] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal,
G. Sastry, A. Askell, P. Mishkin, J. Clark, G. Krueger, and I. Sutskever,
‘‘Learning transferable visual models from natural language supervision,’’
in _Proc. Int. Conf. Mach. Learn._, Jan. 2021, pp. 8748–8763.
[19] P. H. Le-Khac, G. Healy, and A. F. Smeaton, ‘‘Contrastive repre
sentation learning: A framework and review,’’ _IEEE_ _Access_, vol. 8,
pp. 193907–193934, 2020.
[20] T. Chen, S. Kornblith, M. Norouzi, and G. E. Hinton, ‘‘A simple framework
for contrastive learning of visual representations,’’ in _Proc. Int. Conf. Mach._
_Learn._, Jan. 2020, pp. 1597–1607.
[21] K. He, X. Zhang, S. Ren, and J. Sun, ‘‘Deep residual learning for image
recognition,’’ in _Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR)_,
Jun. 2016, pp. 770–778.
[22] K. Sohn, ‘‘Improved deep metric learning with multi-class N-pair loss
objective,’’ in _Proc._ _Adv._ _Neural_ _Inf._ _Process._ _Syst._, vol. 29, Dec. 2016,
pp. 1857–1865.
[23] A. van den Oord, Y. Li, and O. Vinyals, ‘‘Representation learning with
contrastive predictive coding,’’ 2018, _arXiv:1807.03748_ .
[24] M.-J. Wu, J. R. Jang, and J.-L. Chen, ‘‘Wafer map failure pattern
recognition and similarity ranking for large-scale data sets,’’ _IEEE Trans._
_Semiconductor Manuf._, vol. 28, no. 1, pp. 1–12, Feb. 2015.
[25] Y. Anzai, _Pattern_ _Recognition_ _and_ _Machine_ _Learning_ . San Mateo, CA,
USA: Morgan Kaufmann, 1992.
[26] L. McInnes, J. Healy, and J. Melville, ‘‘UMAP: Uniform manifold approx
imation and projection for dimension reduction,’’ 2018, _arXiv:1802.03426_ .
JEONGJOON HWANG received the B.S. and
M.S. degrees from the Department of Industrial
and Management Engineering, Myongji University, South Korea, in 2019 and 2024, respectively.
His research interests include statistical data
mining, deep learning, language model, and graph
data analysis.
SOMI HA received the B.S. and M.S. degrees
from the Department of Industrial and Management Engineering, Myongji University,
South Korea, in 2021 and 2023, respectively.
Her research interests include data mining, deep
learning, time series forecasting, and language
model.
DOHYUN KIM received the M.S. and Ph.D.
degrees from the Department of Industrial Engineering, KAIST, South Korea, in 2002 and 2007,
respectively. Currently, he is a Professor with
the Department of Industrial and Management
Engineering, Myongji University. His research
interests include statistical data mining, deep
learning, and its applications.
섹션 본문
섹션 본문이 없습니다.
참고문헌 17건
- Defect pattern recognition on wafers using convolutional neural networks Quality and Reliability Engineering International · Wiley · 2020 10.1002/qre.2627
- Decision Tree Ensemble-Based Wafer Map Failure Pattern Recognition Based on Radon Transform-Based Features IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2018 10.1109/tsm.2018.2806931
- A Novel DBSCAN-Based Defect Pattern Detection and Classification Framework for Wafer Bin Map IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2019 10.1109/tsm.2019.2916835
- The Application and Use of an Automated Spatial Pattern Recognition (SPR) System in the Identification and Solving of Yield Issues in Semiconductor Manufacturing 2007 10.1109/asmc.2007.375121
- ImageNet classification with deep convolutional neural networks Communications of the ACM · Association for Computing Machinery · 2017 10.1145/3065386
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization 2017 10.1109/iccv.2017.74
- Ada-Sise: Adaptive Semantic Input Sampling for Efficient Explanation of Convolutional Neural Networks ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2021 10.1109/icassp39728.2021.9414942
- Wafer Map Defect Pattern Classification and Image Retrieval Using Convolutional Neural Network IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2018 10.1109/tsm.2018.2795466
- A Wafer Map Defect Pattern Classification Model Based on Deep Convolutional Neural Network 2022 IEEE 16th International Conference on Solid-State & Integrated Circuit Technology (ICSICT) · 2020 10.1109/icsict49897.2020.9278021
- Wafer Defect Localization and Classification Using Deep Learning Techniques IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3166512
- YOLOv4: Optimal Speed and Accuracy of Object Detection arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.10934
- Label-Embedding for Image Classification IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2015 10.1109/tpami.2015.2487986
- Learning to detect unseen object classes by between-class attribute transfer 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2009 10.1109/cvpr.2009.5206594
- Contrastive Representation Learning: A Framework and Review IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3031549
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Representation Learning with Contrastive Predictive Coding arXiv (Cornell University) · Cornell University · 2018
- Wafer Map Failure Pattern Recognition and Similarity Ranking for Large-Scale Data Sets IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2014 10.1109/tsm.2014.2364237