An Attention-Augmented Convolutional Neural Network With Focal Loss for Mixed-Type Wafer Defect Classification
모빌리티 소재 · (2) 샤무드(인공피혁)
기본 정보
- 저자
- DOI
- 10.1109/access.2023.3321025
- 저널
- IEEE Access
- 발행년도
- 2023
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 12
- 라이선스
- public-domain
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/access.2023.3321025
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W4387247620
평가 내용
- 관련도
- 사업분야
- 모빌리티 소재 · (2) 샤무드(인공피혁)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 66,962자
본문 펼치기
섹션 본문 79문단 · 37,734자
(제목 없음)
1Silicon wafer defect classification is crucial for improving fabrication and chip production.Although deep learning methods have been successful in single-defect wafer classification, the increasing complexity of the fabrication process has introduced the challenge of multiple defects on wafers, which requires more robust feature learning and classification techniques.Attention mechanisms have been used to enhance feature learning for multiple wafer defects.However, they have limited use in a few mixed-type defect categories, and their performance declines as the number of mixed patterns increases.This work proposes an attention-augmented convolutional neural networks (A2CNN) model for enhanced discriminative feature learning of complex defects.The A2CNN model emphasizes the features in the channel and spatial dimensions.Additionally, the model adopts the focal loss function to reduce misclassification and a global average pooling layer to enhance the network's generalization by reducing overfitting.The A2CNN model is evaluated on the MixedWM38 wafer defect dataset using 10-fold cross-validation.It achieves impressive results, with accuracy, precision, recall, and F1-score reported as 98.66%, 99.0%, 98.55%, and 98.82% respectively.Compared to existing works, the A2CNN model performs better by effectively learning valuable information for complex mixed-type wafer defects.
I. INTRODUCTION
2The demand for silicon chips is increasing because of their use in various applications, including emerging technologies such as the Internet of Things (IoT), autonomous vehicles, and 5G/6G networks.To meet this demand, semiconductor companies target enhanced production by addressing yield-limiting factors, such as wafer defects.A significant
3The associate editor coordinating the review of this manuscript and approving it for publication was Byung-Gyu Kim.cause of wafer fabrication defects is flawed manufacturing equipment and processes [1], [2].In chip manufacturing, integrated circuits (ICs) are built on a single-crystal silicon wafer through hundreds of steps in front-end (wafer fabrication and probe) and back-end (assembly and test) operations [3].Front-end operations may cause wafer defects, risking circuit failure.Defective chips are discarded, reducing the overall chip production.Minimizing defects will prevent the waste of flawed chips, resulting in increased production [4], [5].
4Wafer defects are identified during the post-fabrication wafer probe or die-sorting phase.Integrated circuits undergo a circuit probe (CP) test to generate a wafer map highlighting the failed circuits [6].This map forms the foundation of wafer bin maps (WBMs) that are color-coded to distinguish faulty and intact dies/ICs.WBMs are used for defect monitoring, analysis, and root-cause assessment.
5Wafer defect monitoring approaches include manual inspection by domain experts [7] and automated visual inspection (AVI) using computer-aided methods [8].Manual inspections are costly, inefficient, and inaccurate, pushing for more suitable solutions for shrinking chip sizes.AVI, specifically through machine learning, is a preferred, efficient, and reliable choice.However, machine learning methods require feature engineering and struggle with largescale, low-quality, noisy data.With its automatic feature acquisition ability, deep learning methods, such as convolutional neural networks (CNNs), excel in AVI for large, noisy, and incomplete datasets.In industrial defect inspections [9], deep learning can be used for defect classification, localization, and segmentation [10]:
6A. DEFECT CLASSIFICATION Defect classification identifies image-level defects using supervised or unsupervised learning to determine defect presence (anomaly detection) [11] or specify the exact defect label.Classification ensures early defect detection for swift product quality assessment and is ideal when defect-type understanding suffices for further actions.However, it does not offer intricate defect orientation information and faces challenges with images containing multiple non-uniformly shaped defects.
B. DEFECT LOCALIZATION
7Defect localization determines the precise location of the defects within an image and marks the defect category.It is typically carried out by object detection methods [12] grouped into two-stage and one-stage object detectors: Two-stage detectors first generate candidate boxes through methods such as selective search or region proposal networks (RPNs) and then apply classification.Examples include R-CNN [13], Fast R-CNN [14], Faster R-CNN [15], and spatial pyramid pooling (SPP-net) [16].They offer high detection accuracy due to their refined two-step process, adeptly handling size variations and complex defect scenarios.However, they are slower, with more intricate architectures and resource-demanding training pipelines.One-stage detectors, exemplified by models such as You Only Look Once (YOLO) [17] and Single Shot MultiBox Detector (SSD) [18], perform simultaneous predictions of object bounding boxes and classification in a single step.This approach yields faster inference speeds and simpler architectures, making it suitable for speed-critical real-time applications.However, their localization accuracy might be lower than two-stage methods, particularly for smaller or densely packed defect instances.
8On the whole, defect localization furnishes precise spatial information for corrective measures.However, it necessitates annotated training data, which is labor-intensive and timeconsuming.Moreover, it is unsuitable for defects in close proximity or those that overlap without distinct boundaries.
C. DEFECT SEGMENTATION
9Defect segmentation [19], [20] provides intricate insights into defect attributes; size, shape, and precise extent via pixel-level outlining.It is effective for capturing irregular or non-uniform defects that lack predefined shapes.However, training and deploying segmentation models can impose substantial computational demands and require annotated pixel masks for training and assessment.Semantic segmentation and instance segmentation are prevalent strategies.In semantic segmentation, each pixel within an image is categorized as part of the defect class or background.FCN [21], U-Net [22], and SegNet [23] are commonly employed architectures for semantic segmentation.Instance segmentation identifies defect regions and distinguishes between distinct instances of the same defect class.Example architectures include Mask R-CNN [24] and Mask-refined R-CNN [25].
10Several studies have demonstrated the effectiveness of deep learning for silicon wafer defects [26], [27] with a focus on single-type defects [28], [29], [30], [31], [32].However, there is a need to investigate more mixed-type defects, which are becoming common with the increasing complexity of fabrication processes.The current deep networks perform well for wafers with few simple defects.However, their accuracy decreases with the defect intricacy and the number of defects, for example, three and four defects on a wafer.This is because the CNN-based models suffer spatial information loss and necessitate refinement mechanisms to improve their performance for closely located multiple smaller defects with similar features [33], [34].
D. CONTRIBUTIONS
11This work proposes a CNN-based model for mixed-type wafer defect classification, which maintains accuracy despite increasing defect complexity and count.To augment CNN's ability for minute defects and discriminative learning of similar classes, an attention module comprising spatial and channel attention is integrated, ensuring a more comprehensive feature set.The attention module emphasizes the most pertinent and informative features for enhanced detection accuracy.The focal loss function is employed instead of the cross-entropy function to minimize false negatives.The misclassification rate is reduced by emphasizing harder examples of each class.The global average pooling (GAP) layer is adopted as a regularization method, improving generalization and mitigating overfitting.All these measures ensure that the model is efficient and accurate in handling complex multi-pattern defects commonly found in wafer maps.The proposed model is thoroughly evaluated on the MixedWM38 dataset, which encompasses 38 different defect classes.Comparative analysis with previous models is conducted to showcase the efficacy of the proposed model in accurately detecting and classifying complex multi-defect patterns.The main contributions of this work are summarized as follows:
12• A novel CNN-based model is proposed that integrates a convolutional (Conv) module with an attention module to enhance the accuracy of mixed-type wafer defect classification.The Conv module extracts feature maps, which are further refined by incorporating channel and spatial information.This augmentation results in a more representative feature set, particularly beneficial for identifying small-sized defects that resemble one another.The model is named the attention-augmented convolutional neural network (A2CNN).
13• The focal loss function is used instead of categorical cross-entropy to reduce false negatives and enhance the model's ability to correctly classify challenging examples in each class.
14• A global average pooling layer is adopted as a regularization technique to enhance generalization capabilities, prevent overfitting, and reduce the model's parameters and training time.
15• An operative evaluation of the A2CNN on the MixedWM38 dataset is performed, and the performance is compared against notable existing models through accuracy, precision, and recall.The rest of the paper is arranged as follows.Section II reviews the related literature on mixed-type defects, attention mechanisms, focal loss function, and GAP.Section III describes the dataset, preprocessing and distribution procedures, proposed model architecture, and performance measures.Section IV presents the results, comparison, and analysis.Finally, Section V concludes the work and presents the findings.
II. RELATED WORK
16This section examines literature concerning deep learning for mixed-type wafer defect classification.Additionally, it delves into attention mechanisms, focal loss function, and GAP for advanced deep-learning models.
A. DEEP LEARNING FOR MIXED-TYPE WAFER MAP DEFECT CLASSIFICATION
17To identify mixed-type wafer defects, Tello et al. [35] applied a splitter to differentiate single and mixed patterns.Then, a randomized general regression network is used to classify single defects, and a CNN (Convolutional Neural Networks) for mixed patterns.Kyeong and Kim [36] proposed an ensemble of four CNNs trained on basic single defects to identify their appearance in mixed-type defects.However, training multiple CNNs is computationally expensive and time-consuming, particularly with many single defect types.Kong and Ni [37] focused on overlapped and non-overlapped multi-pattern wafers.A seed-filling method was employed for non-overlapped pattern segmentation followed by CNN classification.Overlapped patterns were classified through pattern-matching.The subsequent work [38] introduced pattern segmentation via a UNet-based boundary detection and pattern unwrapping before CNN-based classification.Further, quantitative analysis by pattern remapping and impact calculation is conducted.These approaches involve several intermediate steps, wherein the outcome of each step relies on the proper working of the previous ones.
18Byun and Baek [39] adopted pre-trained CNNs with convolutional auto-encoders as weight initializers.Separating the single and mixed-type defects first and then classifying the exact pattern.The model is trained on the single defect dataset and tested on a few synthetic mixed-type defects with only two patterns.The accuracy for the single patterns is sufficient but dissatisfactory for the mixed patterns.Lee and Kim [40] presented a semi-supervised convolutional generative model for labeled and non-labeled data.Zhuang et al. [41] employed a real and private dataset of six individual types to train an ensemble of deep belief networks.Shin et al. [42] produced mixed-type wafer maps through data augmentation, combining WM-811K single defect wafer maps for CNN training.These studies were based on limited data collected from own sources or generated synthetically, unavailable in the public domain for model benchmarking.
19Wang et al. [43] introduced MixedWM38, a mixed-type wafer defect dataset and employed a deformable convolutional network (DC-Net) for classification.DC-Net integrated positional information and displacement adjustment through a deformable convolutional kernel to improve CNNbased classification.In another study, a multi-scale information fusion transformer (MSF-Trans) [44] was proposed in which a multi-head self-attention mechanism assigned weights to feature values for an optimized feature set learning.Wei and Wang [45] proposed a multi-resolution waveletintegrated attention network (MRWA-Net) expanding the learning of frequency components from the wavelet domain.In [46], WaferSegClassNet (WSCN), an end-to-end encoderdecoder-based defect segmentation network, was proposed for MixedWM38.WSCN employed N-pair contrastive loss, BCE-Dice loss (binary cross-entropy + Dice loss), and categorical cross-entropy loss for encoding, segmentation, and classification, respectively.A U-Net with residual attention block was proposed for segmentation in [47].Segmentation masks were generated by the defect masking technique, but the model was evaluated only for a few classes of MixedWM38.These studies demonstrated good accuracy for single and a few simple multi-defect wafers but could not cater to many small defects with complex patterns.
20In summary, the previous deep learning methods for mixed-type wafer recognition are based on resource-intensive ensemble networks, methods with multiple intermediate steps, and pre-trained networks adopted from other domains through transfer learning.They have only been evaluated on smaller datasets with fewer defect types and exhibit good results for single and two mixed defects but need to be optimized for wafers with three and four mixed patterns.
21In contrast, the current work proposes A2CNN, a custommade CNN, which combines channel and spatial information into the feature maps for more comprehensive defect features.The focal loss function addresses the classification of challenging class samples, and a GAP layer prevents overfitting and increases generalization.The proposed model offers a one-shot solution for the diverse MixedWM38 patterns.
B. ATTENTION MECHANISM
22Attention mechanisms originally introduced for machine translation [48] have a transformative impact in various domains, enabling models to focus on specific elements within input data [49].The concept of attention is based on human perception.From the available information, human beings select the relevant part for processing, ignoring the remaining, thus greatly improving the efficiency and accuracy of perceptual information processing [50].Its application in disaster assessment is a difference-aware attention network (D2ANet) [51] for building localization and change detection using dual-temporal satellite imagery.The Difference-Aware Attention (D2A) block integrates the Dual-Temporal Aggregation (DTA) and Difference-Aware (DA) modules to investigate multi-level transformations within pre-and post-disaster features.The DTA module selectively amplifies change-sensitive channels to extract global change information, while the DA module is a localized attention block that captures correlations across positions and channels to discern various damage scales.
23Attention mechanisms have substantially shaped object classification and detection tasks, effectively merging with machine vision applications for enhanced defect identification.An edge and multi-scale reverse attention network (EMRA-Net) is proposed in [52] for tiny and low-contrast surface defect detection.For improved detection accuracy, global dynamic convolution features, global multi-scale fusion features, and local pyramid edge features were obtained and fused by self-learning weight and spatial and channel attention modules.The Defect-Aux-Net [53], built upon multi-task learning with an attention mechanism, undertakes the concurrent tasks of classification, segmentation, and detection of industrial surface defects.The feature pyramid network (FPN) and ResNet-50 inspired the network architecture.By incorporating positional and channel attention, the network enhances the learning of subtle defects, enriching feature maps with global context.The dynamic weighting of each task's loss collectively serves to refine the network's overall loss function.Subsequently boosting accuracy and efficiency across all tasks.
24Two renowned architectures which utilize channel-spatial attention mechanisms are the bottleneck attention module (BAM) [54] and the convolutional block attention module (CBAM) [55].BAM adopts a bottleneck structure, extracting channel and spatial attention maps via the global average pooling of feature maps.This enables the module to concentrate on fine-grained features and global context.
25In contrast, CBAM sequentially integrates channel and spatial attention, capturing inter-channel relationships and spatial dependencies.CBAM employs MaxPooling and AvgPooling to compute feature map statistics, leading to enriched feature representation and enhanced contextual comprehension.
C. FOCAL LOSS FUNCTION
26The focal loss function, first applied in RetinaNet [56], has proven valuable for object detection in dense scenes and several other studies [57], [58].Built upon the cross-entropy loss, it addresses foreground-background class imbalance and effectively boosts performance of minority classes for class imbalanced data.The model enhances object detection or classification tasks focusing on challenging cases by down-weighting easy instances and amplifying hard ones during training.
D. GLOBAL AVERAGE POOLING (GAP)
27GAP is a widely employed technique in deep learning to enhance feature extraction and boost classification accuracy [59].It serves as a means to mitigate overfitting by incorporating spatial information regularization.GAP replaces the spatial dimensions of feature maps with a single value per channel.It offers improved generalization, reduced overfitting, quicker convergence, and robustness to image translation and scaling.
III. MATERIALS AND METHODS
28This section provides the design and development details of the A2CNN model.The whole process is illustrated in Fig. 1 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.
29portions and evaluating its performance on the test set to produce an operational model for wafer map classification.3, and the distribution of class samples across sets is outlined in Table 1.
C. THE ATTENTION-AUGMENTED CONVOLUTIONAL NEURAL NETWORK (A2CNN)
30The A2CNN architecture is illustrated in Fig. 4 with an elaborated design of the modules and blocks inside the modules.The Conv module extracts feature maps from the input image, which are passed to the Attention module for more contextual information on salient, class-specific features.The attention blocks within this module blend feature maps across the channel and spatial dimensions.The refined features obtained from each attention block are aggregated and passed to the Classification module, where the final decision on the image label is made.The Conv module consists of three Conv blocks, each having a Conv layer with Batch Norm (batch normalization), and ReLU (Rectified Linear Unit).Batch Norm expedites training, mitigates internal covariate shifts, and aids in avoiding local minima [60], [61].Also, zero padding is employed in convolutions to retain information on defect patterns at the wafer edges.Maxpooling layers in the last two Conv blocks downsize the feature maps.
31The Attention module comprises eight Attention blocks, each having a Conv block with channel and spatial attention layers, added sequentially based on the CBAM architecture.This module enhances the significant features extracted by the Conv module, emphasizing the most pertinent ones.This enhancement is achieved by amalgamating channel and spatial attention maps in the feature maps, generating intermediate channel-refined and fully refined attention maps, as summarized in (1) and (2):
32Here, F and F ′ denote feature maps and intermediate channel refined attention maps, while F ′′ represents fully refined attention maps.M c , M s and ⊗ represent channel attention maps, spatial attention maps and element-wise multiplication.M c and M s can be expressed by ( 3) and ( 4) as: Here, MLP (Multi-Layer Perceptron) stands for multilayer perceptron, while AvgPool(F) and MaxPool(F) refer to the operations of average pooling and max pooling applied to the input feature maps F, respectively.
33Equation ( 4) illustrates that the feature maps obtained by concatenating average and maxpooled representations of F underwent a convolution operation before being subjected to a sigmoid function.
34The outputs of the Attention blocks were summed and forwarded to the Classification module, which includes a GAP and three dense layers.The GAP layer calculates the average of each feature map, reflecting in a global feature vector with reduced dimensionality that represents the entire input image.This operation is formally defined by (5):
35Here, C i represents the value of the i-th channel following the global average pooling, N denotes the total number of spatial locations within the feature map, x j represents the activation value at the j-th spatial location of the i-th channel.Averaging a feature map transforms it into a confidence map category, enhancing its resilience to spatial translations in the input data.This process, in turn, boosts the network's ability to generalize while concurrently reducing parameters to prevent overfitting.
36After the GAP layer, the Classification module contains three dense layers featuring 1024, 256, and 38 nodes.The 38 nodes in the output layer correspond to the 38 classes of the MixedWM38.The activation function employed here is Softmax, which yields class probabilities between 0 and 1, with the sum of all probabilities equating to 1.The optimization is performed by Adam [62] with a learning rate of 0.001.As for the loss function, categorical focal loss, with default settings, is employed, which can be expressed by (6):
37Here, α is the balancing factor that adjusts a class's contribution based on its frequency.P represents the predicted probability of the correct class, and γ acts as the focusing parameter, governing the rate at which the loss decreases with an increase in predicted probability.The (1 − p) γ is the modulation factor that amplifies the contribution of challenging or, conversely, the contribution of well-classified examples.
38During training, the network was presented with batches of normalized images augmented by horizontal and vertical flips for increased robustness.However, in validation and testing, only normalized images were provided.The model was subjected to ten tests following a 10-fold cross-validation.Each test involved training the model for 100 epochs using a batch training method with 32 images in each batch.At the end of each epoch, the model was validated and saved only if it performed better on the validation data than the previously saved model.The best-validated model was then evaluated on the test set.
D. PERFORMANCE EVALUATION METRICS
39The performance is assessed by accuracy ( 7) and ( 8), precision (9), recall (10), and F1-score (11), which depend on TP (true positive), TN (true negative), FP (false positive), and FN (false native): Accuracy = (TP + TN)/(TP + TN + FP + FN) (7) Equation (7) gives the model's overall accuracy.Here, TP+TN counts to the correct predictions for all classes, and TP+TN+FP+FN is the total prediction made by the classifier (total samples in all classes).Similarly, the accuracy of a single class is given by (8).
40Class Accuracy = TP/P (8)
41Here, P stands for the positive samples of a particular class, and TP represents the correctly predicted samples of that class.Precision = TP/(TP + FP) (9) Equation ( 9) defines precision, TP represents the correctly predicted class samples and TP+FP the total number of positive predictions for the class (including samples not belonging to the class).
42Recall or the True Positive Rate (TPR), is defined as:
43Here, TP is the correctly predicted sample, and TP+FN represents the total number of class instances (including samples predicted as belonging to another class).
44The F1-score or F1-measure combines precision and recall by the harmonic mean as given by (11).
45Here, coefficient β adjusts the relative importance of precision versus recall, and its value is 1.0 for the F1-measure.
IV. RESULTS AND DISCUSSION
46This section presents experimental results and a detailed analysis of the outcomes.The first part of this section focuses on the performance evaluation of A2CNN, including a comparison with previous studies.The findings are analyzed to determine the approach's effectiveness in achieving accurate classification results.Additionally, an in-depth examination of the model components is conducted to assess their role in improving the classification performance.
A. EXPERIMENTAL RESULTS
47The A2CNN's stability and robustness were ensured through ten repetitions of the experiment, varying training and validation sets while keeping the test set consistent.Comprehensive results of all repetitions in 10-fold across-validation can be seen in Appendix (Tables 4 and 5).Fig. 5 presents the aggregated values of the tests.Fig. 5(a) illustrates the average accuracy of the tests (training 99.59%, std.dev.0.12; validation 98.97%, std.dev.0.13; testing 98.81%, std.dev.0.1).Fig. 5(b) illustrates the average percentage of class accuracy (98.47%, std.dev.0.18), precision (98.77%, std.dev.0.14), recall (98.27%, std.dev.0.20), and F1 score (98.59%, std.dev.0.14) for the test set.The values were stable across the trest with minimal deviation, which underscores A2CNN's reliability, robustness, and generalization across diverse datasets and unseen data.Table 3 presents A2CNN's accuracy, precision, and recall, along with comparisons to WSCN [46], MSF-Trans [44], and DC-Net [43].A2CNN achieved an average classification accuracy of 98.66%, outperforming the other methods (98.34%, 97.17%, and 93.20%).Its average precision (99.00%) and recall (98.55%) also surpassed the others, with precision gains of 1.00%, 1.86%, and 5.00%, and recall gains of 0.37%, 1.84%, and 3.55% with lower standard deviations for these metrics.A2CNN's lower precision bound is 97%, compared to WSCN's 92%, MSF-Trans's 92.78%, and DC-Net's 60%, which suggests fewer false positives for A2CNN.Similarly, A2CNN's recall rate is significant, with only minor recognition errors.Specifically, it exhibits superior recall rates for defects like C14, C20, C27, C33, C37, and C38.C37's 99% recall rate surpasses WSCN by approximately 4%, MSF-Trans by 6.87%, and DC-Net by 10%.
48As for the defect groups, A2CNN excelled in single-pattern classes (C1-C8), achieving flawless classification for C1 and C6.However, performance on C9, with only 149 samples, showed room for improvement, possibly due to limited training data.A2CNN consistently outperformed in mixed patterns (C10-C38).Notably, it effectively classified three and four mixed-pattern classes (C23-C38), known for their complexity.For example, WSCN had 99%, MSF-Trans 95.65%, and DC-Net only a 92% precision for C38 compared to the 100% of A2CNN.WSCN, MSF-Trans, and DC-Net struggled more with such patterns, where A2CNN excelled, demonstrating its recognition strength.Fig. 7 displays a performance comparison among the models using bar graphs to present accuracy across the four class groups.In Fig. 7(a), A2CNN excels in recognizing singletype defects, except for C9, where it outperforms MSF-Trans but not the other models.Fig. 7(b) shows A2CNN's consistently high accuracy for most classes with two defect patterns, while other models exhibit varying accuracy levels.Fig. 7(c) and (d) highlight A2CNN's consistent superiority in recognizing three and four mixed-type defects, a notable achievement.[46], MSF-Trans [44], and DC-Net [43].
49The attention module within A2CNN contributes to this success by facilitating the extraction of class-specific features and reducing irrelevant noise.Combining local information from CNN feature maps with global features in the channel and spatial dimensions results in a more comprehensive and representative feature set.
50Further, the GAP computes an average representation of features, providing a more generalized and robust understanding of input features.Additionally, the loss function's focus on hard examples reduces misclassification.All this enhances the model's ability to distinguish between small defects in different classes and improves generalization.Please refer to the confusion matrix in Appendix for detailed class-wise results (Fig. 12).
51In the ablation study, removing the Attention module while keeping other parameters constant resulted in maximum validation accuracy of 95.89% and training accuracy of 98.73%.Evaluation measures on the test set; accuracy (95.33%), precision (95.74%), recall (95.08%), and F1-score (95.21%), were significantly lower compared to the model with the Attention module.Also, the overfitting was observed in the training and validation graphs as displayed in Fig. 8.
B. ANALYSIS AND DISCUSSION
52The overall remarks of this work based on the obtained results are as follows:
1) THE EFFECT OF THE ATTENTION MECHANISM ON FEATURE LEARNING
53To investigate the impact of attention on feature learning of complex defects, feature maps from the last convolutional layer of the attention module were extracted for defects in 108900 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.Group_4.These maps demonstrate the network's sensitivity to the defect area, with varying intensities of grey indicating the strength of the response for a particular defect type.Fig. 9 (a)-(d) displays the class images of C35-38, while Fig. 9 (e)-(h) shows the corresponding feature maps.The emphasis on the defect region in the feature maps demonstrates the role of the attention mechanism in highlighting meaningful features, thus improving the model's ability to distinguish between complex defect types.
2) THE EFFECT ON DEFECT PATTERNS ON WAFER MAP EDGES
54To evaluate A2CNN's performance for defect patterns on the wafer edges, some example images and feature maps from the network's last layer are in Fig. 10.Thirty defect types have such patterns, including three in single defects (C4-C6), 11 in two mixed types (C10-C12, C14-C16, C18-C22), and all three and four mixed types (C23-C38).Since these patterns comprise a large proportion of the dataset, achieving high precision for them indicates an overall good performance.A2CNN achieved relatively higher values for the three basic patterns and, consequently, for all types that appear in combination.A2CNN achieved good recognition rates for these patterns due to the zero-padding applied in convolutional layers, which retains information at the edges.
3) THE EFFECT OF FOCAL LOSS AND GLOBAL AVERAGE POOLING
55A2CNN has shown improved recognition rates for difficult class samples that resemble other classes.For instance, the defect patterns in Fig. 11 Difficult-to-classify samples contribute most to the misclassification rate.The focal loss function made the model focus on such samples while giving less weightage to wellclassified samples.Furthermore, the GAP layer improved the classification accuracy by regularizing the spatial information of the feature maps, which resulted in improved generalization.These results highlight that refinement mechanisms in the A2CNN architecture have effectively contributed to its overall performance in facilitating the recognition of complex multi-defect patterns.
4) LIMITATIONS AND POSSIBLE IMPROVEMENTS
56The proposed A2CNN model is designed to classify fabrication defects using only wafer map images, providing the class label as the classification result.However, it does not provide information on the attributes of the defect, such as the number of patterns on a wafer, their size, and spatial orientation.Additionally, it does not relate the defect patterns to their cause of generation, typically done by a defect inspection system.The model is evaluated on a single dataset, and its generalizability to other datasets needs further investigation.
V. CONCLUSION
57This study proposed the A2CNN model, an attentionaugmented CNN, for complex multi-pattern wafer map defect classification.The model maintains classification accuracy as the defect patterns increase on the wafer surface.The architecture leverages multiple channels and spatial attention layers to focus on critical areas of the defect image and extract fine discriminative features for improved defect classification.The focal loss function further refines the results, producing good precision for difficult class samples.Additionally, a GAP layer reduces the number of trainable parameters, improving network generalization and reducing overfitting.The experimental results demonstrate that A2CNN outperforms existing works, particularly in accuracy, precision, and recall.Specifically achieving 98.66%, 99.0%, and 98.55%, respectively, compared to lower values in existing works.The proposed model exhibits high performance on easy defect categories and effectively handles complex mixed-type defects, particularly those with three and four mixed-type defect patterns.This was accomplished by accurately capturing essential class features for predicting the class label.While the A2CNN has shown promising results in detecting multi-pattern defects in a single dataset, further investigations are required to evaluate its performance on more datasets.Additionally, the current model outputs only 108902 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.the defect label without further information regarding the root cause analysis, hindering its usefulness in real-world applications.Future work will focus on addressing these limitations.Efforts will be made to provide more comprehensive information with defect segmentation and faster response time for more effective root cause analysis and efficient problem-solving in real-world applications.
APPENDIX
58See Table 4, Table 5, and Fig. 12.
FIGURE 1 .
59FIGURE 1. Block diagram of the A2CNN development process; the model was trained and validated iteratively on the preprocessed data and evaluated on the test set for performance assessment.
60MixedWM38 is a public domain wafer map dataset of single and mixed-type defects.Comprised of real and artificially generated 38,015 wafer maps in 38 defect classes, divided into four groups: Group_1 consists of nine single-type defect classes, encompassing a normal class and eight distinct classes featuring a solitary defect pattern.The remaining three groups combine fundamental defect types in configurations of two, three, and four defect patterns.Group_2 comprises 13 classes with two mixed-type defects, Group_3 presents 12 classes with three mixed-type defects, and Group_4 entails four classes featuring four mixed-type defects.Class sizes vary; C7 with 866, C9 with 149, C24 with 2,000, and the remaining 35 classes have 1,000 wafer maps in each.Wafer maps have consistent dimensions of 52 × 52 pixels.A pixel is assigned a value of 0, 1, or 2; 0 signifies background/non-wafer pixels, 1 represents qualified/good dies, and 2 denotes flawed/defective dies.Image samples in the four class groups are illustrated in Fig.2.
FIGURE 2 .
61FIGURE 2. Data preprocessing steps: wafer maps were transformed into images and divided into training, validation, and test sets.
FIGURE 3 .
62FIGURE 3. MixedWM38 image samples in four class groups based on number of defect patterns on wafer surface.
FIGURE 4 .
63FIGURE 4. A2CNN architecture with the configuration of the sub-modules and blocks: (a) Three main modules, (b)-(c) Conv and attention blocks, (d)-(e) Channel and spatial attention.
FIGURE 5 .
64FIGURE 5. Aggregated results of the 10-fold cross-validation: (a) Average accuracy of the Training, Testing, and Validation in ten repetitions of the experiment, (b) Average Accuracy, Precision, Recall, and F1-Score for test set in ten repetitions.
FIGURE 6 .
65FIGURE 6.The training and validation graphs of the A2CNN: (a) Accuracy graphs, (b) Loss graphs.
VOLUME 11, 2023 108899
66Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.
FIGURE 7 .
67FIGURE 7. The comparison of A2CNN, WSCN, MFS-Trans, and DC-Net based on the percentage of class accuracy in four defect groups: (a) Single type defects, (b) Two mixed-type defects, (c) Three mixed-type defects, and (4) Four mixed-type defects.
FIGURE 8 .
68FIGURE 8.The ablation experiment training and validation graphs, removing the Attention module results in overfitting: (a) Accuracy graphs, (b) Loss graphs.
FIGURE 9 .
69FIGURE 9.The class samples from C35-38 and corresponding feature maps: (a) -(d) C35-C38 class samples, (e)-(h) Feature maps of C35-C38.
FIGURE 10 .
70FIGURE 10.The defect types with the pattern on wafer edges: (a) C4, (b) C5, (c) C6, (d) C12, (e) C4 Feature map, (f) C5 Feature map, (g) C6 Feature map, (h) C12 Feature map.
FIGURE 11 .
71FIGURE 11.The difficult class examples: (a) C10 (C+EL) resembles (b) C11 (C+ER), (c) C14 (D+EL) resembles (d) C15 (D+ER), and (e) C19 (EL+S) resembles (f) C21 (ER+S).
72(a), (c), and (e) resemble those in Fig. 11 (b), (d), and (f), respectively.A2CNN correctly classified them because of the focal loss function, which assigns more weight to the difficult class samples.
FIGURE 12 .
73FIGURE 12. Confusion matrix of test set illustrating the number of class samples.
TABLE 1 .
74Division of class samples into training, validation, and test sets.
Table 2
75conveniently encapsulates the configuration hyperparameters employed in the A2CNN model.
TABLE 2 .
76The hyperparameter values of the proposed A2CNN.
TABLE 3 .
77The test set results of the proposed A2CNN and a comparison with WSCN
TABLE 4 .
78The training, validation, and test accuracy and loss for 10-fold cross-validation.
TABLE 5 .
79The test performance of 10-fold cross-validation.
참고문헌 60건
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031
- Adam: A Method for Stochastic Optimization 2014
- Fast R-CNN 2015 10.1109/iccv.2015.169
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1502.03167
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Fully convolutional networks for semantic segmentation 2015 10.1109/cvpr.2015.7298965
- An intelligent system for wafer bin map defect diagnosis: An empirical study for semiconductor manufacturing Engineering Applications of Artificial Intelligence · Elsevier BV · 2012 10.1016/j.engappai.2012.11.009
- A Survey of Yield Modeling and Yield Enhancement Methods IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2013 10.1109/tsm.2013.2243766
- Automated visual inspection in the semiconductor industry: A survey Computers in Industry · Elsevier BV · 2014 10.1016/j.compind.2014.10.006
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation 2014 10.1109/cvpr.2014.81
- Detection of Spatial Defect Patterns Generated in Semiconductor Fabrication Processes IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2011 10.1109/tsm.2011.2154870
- Neural Machine Translation by Jointly Learning to Align and Translate arXiv (Cornell University) · Cornell University · 2014
- Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-10578-9_23
- Production Planning and Control for Semiconductor Wafer Fabrication Facilities: Modeling, Analysis, and Systems 2012
- A survey of semiconductor supply chain models part I: semiconductor supply chains, strategic network design, and supply chain simulation International Journal of Production Research · Taylor & Francis · 2017 10.1080/00207543.2017.1401233
- Object Detection Based on Multi-Layer Convolution Feature Fusion and Online Hard Example Mining IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2815149
- Deep-Structured Machine Learning Model for the Recognition of Mixed-Defect Patterns in Semiconductor Fabrication Processes IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2018 10.1109/tsm.2018.2825482
- Classification of Mixed-Type Defect Patterns in Wafer Bin Maps Using Convolutional Neural Networks IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2018 10.1109/tsm.2018.2841416
- CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
- A Productivity-Oriented Wafer Map Optimization Using Yield Model Based on Machine Learning IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2018 10.1109/tsm.2018.2870253
- You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
- Mask R-CNN 2017 10.1109/iccv.2017.322
- Focal Loss for Dense Object Detection 2017 10.1109/iccv.2017.324
- Recognition and Location of Mixed-type Patterns in Wafer Bin Maps 2019 10.1109/smile45626.2019.8965309
- Mask-Refined R-CNN: A Network for Refining Object Details in Instance Segmentation Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20041010
- Similarity matching of wafer bin maps for manufacturing intelligence to empower Industry 3.5 for semiconductor manufacturing Computers & Industrial Engineering · Elsevier BV · 2020 10.1016/j.cie.2020.106358
- Mixed Pattern Recognition Methodology on Wafer Maps with Pre-trained Convolutional Neural Networks Proceedings of the 14th International Conference on Agents and Artificial Intelligence · 2020 10.5220/0009177909740979
- A Deep Convolutional Neural Network for Wafer Defect Identification on an Imbalanced Dataset in Semiconductor Manufacturing Processes IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2020 10.1109/tsm.2020.2994357
- Electrocardiogram heartbeat classification based on a deep convolutional neural network and focal loss Computers in Biology and Medicine · Elsevier BV · 2020 10.1016/j.compbiomed.2020.103866
- Deformable Convolutional Networks for Efficient Mixed-Type Wafer Defect Pattern Recognition IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2020 10.1109/tsm.2020.3020985
- Qualitative and Quantitative Analysis of Multi-Pattern Wafer Bin Maps IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2020 10.1109/tsm.2020.3022431
- Semi-Supervised Multi-Label Learning for Classification of Wafer Bin Maps With Mixed-Type Defect Patterns IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2020 10.1109/tsm.2020.3027431
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- A Neural-Network Approach to Better Diagnosis of Defect Pattern in Wafer Bin Map 2022 China Semiconductor Technology International Conference (CSTIC) · 2020 10.1109/cstic49141.2020.9282438
- A Review on Industrial Surface Defect Detection Based on Deep Learning Technology 2020 10.1145/3426826.3426832
- Image-Based Surface Defect Detection Using Deep Learning: A Review Journal of Computing and Information Science in Engineering · ASM International · 2021 10.1115/1.4049535
- Recent advances in surface defect inspection of industrial products using deep learning techniques The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2021 10.1007/s00170-021-06592-8
- A review on the attention mechanism of deep learning Neurocomputing · Elsevier BV · 2021 10.1016/j.neucom.2021.03.091
- State of the Art in Defect Detection Based on Machine Vision International Journal of Precision Engineering and Manufacturing-Green Technology · Springer Science+Business Media · 2021 10.1007/s40684-021-00343-6
- Oversampling Based on Data Augmentation in Convolutional Neural Network for Silicon Wafer Defect Classification Frontiers in artificial intelligence and applications · 2020 10.3233/faia200547
- A Systematic Review of Deep Learning for Silicon Wafer Defect Recognition IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3106171
- An Attentive Survey of Attention Models ACM Transactions on Intelligent Systems and Technology · Association for Computing Machinery · 2021 10.1145/3465055
- Mixup-based classification of mixed-type defect patterns in wafer bin maps Computers & Industrial Engineering · Elsevier BV · 2022 10.1016/j.cie.2022.107996
- Wafer Bin Map Recognition With Autoencoder-Based Data Augmentation in Semiconductor Assembly Process IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2022 10.1109/tsm.2022.3146266
- Improved U-Net with Residual Attention Block for Mixed-Defect Wafer Maps Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12042209
- EMRA-Net: A Pixel-Wise Network Fusing Local and Global Features for Tiny and Low-Contrast Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3151926
- Mixed-Type Wafer Defect Recognition With Multi-Scale Information Fusion Transformer IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2022 10.1109/tsm.2022.3156583
- FDSNeT: An Accurate Real-Time Surface Defect Segmentation Network ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2022 10.1109/icassp43922.2022.9747311
- WaferSegClassNet - A light-weight network for classification and segmentation of semiconductor wafer defects Computers in Industry · Elsevier BV · 2022 10.1016/j.compind.2022.103720
- Wafer map failure pattern recognition based on deep convolutional neural network Expert Systems with Applications · Elsevier BV · 2022 10.1016/j.eswa.2022.118254
- Calibrating deep neural networks using focal loss Oxford University Research Archive (ORA) (University of Oxford) · University of Oxford · 2020
- Advances in machine learning and deep learning applications towards wafer map defect recognition and classification: a review Journal of Intelligent Manufacturing · Springer Science+Business Media · 2022 10.1007/s10845-022-01994-1
- Understanding Batch Normalization arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1806.02375
- A voting-based ensemble feature network for semiconductor wafer defect classification Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-20630-9
- A Review on Multiscale-Deep-Learning Applications Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22197384
- BAM: Bottleneck Attention Module arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1807.06514
- An Adaptive Image Segmentation Network for Surface Defect Detection IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tnnls.2022.3230426
- Attention-Guided Multitask Learning for Surface Defect Identification IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2023 10.1109/tii.2023.3234030
- Wavelet integrated attention network with multi-resolution frequency learning for mixed-type wafer defect recognition Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.105975
- D2ANet: Difference-aware attention network for multi-level change detection from satellite imagery Computational Visual Media · Springer Nature · 2023 10.1007/s41095-022-0325-1