Deep Learning Driven Silicon Wafer Defect Segmentation and Classification
필름·전자재료 · (14) 드라이 필름(포토레지스트)
기본 정보
- 저자
- DOI
- 10.1016/j.mex.2025.103158
- 저널
- MethodsX
- 발행년도
- 2025
- 발행기관
- Elsevier BV
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.mex.2025.103158
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W4406092350
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (14) 드라이 필름(포토레지스트)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 30,496자
본문 펼치기
섹션 본문 64문단 · 17,883자
Silicon wafers Integrated circuit Defect segmentation Deep learning Wafer defects
2Quality management Image segmentation a b s t r a c t Integrated Circuits are made of various transistors that are embedded on a silicon wafer, these wafers are difficult to process and hence are prone to defects.Defecting these defects manually is a time consuming and labour-intensive task and hence automation is necessary.Deep Learning approach is better suited in this case as it is able to generalize defects if trained properly and can be a solution to segmentation and classification of defects automatically.The segmentation model mentioned in this study achieved a Mean Absolute Error (MAE) of 0.0036, a Root Mean Squared Error (RMSE) of 0.0576, a Dice Index (DSC) of 0.7731, and an Intersection over Union (IoU) of 0.6590.The classification model achieved 0.9705 Accuracy, 0.9678 Precision, 0.9705 Recall, and 0.9676 F1 Score.In order to make this process a more interactive, an LLM with Q&A capabilities was integrated to solve any doubts and answer any questions regarding defects in wafers.This approach helps automate the detection process thus improving quality of end product.
3• Successful and precise defect segmentation and classification using Deep Learning was achieved.• High-intensity regions after post-processing.
4• An LLM offering defect analysis and guidance was streamlined.
Specifications table Subject area:
5Computer Science More specific subject area:
6Deep Learning Name of your method:
7Wafer Defect Segmentation and classification using Deep Learning Name and reference of original method: None Resource availability: WM-811k Dataset (Kaggle) https://www.kaggle.com/datasets/qingyi/wm811k-wafer-map
Background
8The modern world is always evolving and hence in order to improve efficiency and automate repetitive tasks a solution is required.For this, various machines are developed [1][2][3].A computer in one of the machines that play a vital role in improving productivity in various fields.However, building a computer is a very difficult and challenging task, the processor is one of the most difficult components to manufacture and it is one of the most important components in a computer [ 3 , 4 ].
9Processors are made up of millions or even billions of transistors embedded on a silicon wafer and is called a "die " [ 4 ].This die is the most critical and hardest to produce part of the processor.These dies are created in batches on silicon wafers which are prone to defects at different stages of production [ 1 , 3 ].These defects can affect the quality and reliability of the processors made from them.Hence, making it very important to address and mitigate them effectively to ensure high-quality processors are made [ 1 , 3 , 5 ].
10Manual inspection for each silicon wafer is both time consuming and labour intensive.Hence, to improve efficiency we need ways to automate the process [ 3 , 5 ].Defects on wafers can also point to issues with the manufacturing process [ 3 ].Detecting and addressing these defects is important for improving individual chips and also for maintaining consistent quality over time [ 3 , 5 ].
11Implementing large language models (LLMs) in the process helps in establishing interactive systems that can help detect, understand, and mitigate these defects in the wafers [ 2 , 6 , 7 ].This can significantly improve efficiency and maintain the high standards required for modern processors [ 2 , 6 , 7 ].
Method details
12In this section we will discuss about the dataset, annotation generation, model architecture of segmentation model and classification model and training process.
Dataset
13The WM-811K dataset is a classification dataset comprising wafer maps without any pixel-level defect annotations [ 8 ].Each wafer map represents a silicon wafer with various potential defects.The dataset lacks ground truth annotations for defects, necessitating the generation of pixel-wise annotations for subsequent analysis [ 8 ].The dataset consists of wafer maps where defected areas are marked with an intensity value of "1."However, these defect signals are often scattered across the maps, introducing significant noise that complicates accurate detection and analysis [ 3 ].
14Table 1 , which summarizes defect labels and their corresponding descriptions: Below is Table 2 , which provides an overview of the number of wafer map entries: Below is Fig. 1 , which illustrates the visualization of defects included in the WM-811K dataset:
Annotation Generation, Sharpening and Balancing
15First, we will start by applying conditional filling to the wafer maps using a 3 × 3 window and logic to consolidate defect signals where if at least 3 surrounding pixels also had defect intensity.This will help us remove major noise from the dataset as preprocessing step.
16Next, we will use a type of autoencoders called "Robust Deep Autoencoder " to remove any remaining noise, but we will only use "Huber loss " as loss function [ 9 ].The autoencoder was trained to reconstruct defect-free wafer maps, highlighting discrepancies between the input and reconstructed maps.These differences isolated defect regions, transforming pre-processed maps into representations where clusters of defects became more distinct.
17Huber Loss is Given as: The dataset has been balanced to ensure equitable representation of defect types, resulting in a total of 30,519 samples across nine classes.The most common defect, Edge-Ring, has 9680 samples, while the majority class, No Defect, was down sampled to 6000 samples.Other defects, including Edge-Loc (5189), Center (4294), and Loc (3593), are well represented, whereas rarer defects like Scratch (1193), Random (866), Donut (555), and Near-Full (149) are included in smaller proportions.This balanced sampling strategy improves fairness and allows the model to effectively learn distinguishing features, even for less frequent defect types.
18After autoencoder reconstruction, additional post-processing was applied using a noise-removal filter to further refine defect maps by eliminating residual isolated noise.This combination of conditional filling, autoencoder processing, and post-processing yielded well-defined defect clusters, enhancing annotation quality and reducing the impact of noise.By employing resizing with "IN-TER_AREA " interpolation and refining defect maps through this pipeline, the dataset was optimally prepared for robust segmentation and classification.This Fig. 2 highlights the preprocessing steps, with the "Post-Processed Defect Map" serving as the final pixel-level annotation.
Deep Learning Segmentation Model using PyTorch
19A custom deep learning segmentation model was developed using the PyTorch framework [ 10 , 11 ] to accurately identify and segment defects in wafer maps.The architecture comprises two main components: an encoder and a segmentation decoder, designed to efficiently extract and reconstruct feature representations necessary for precise defect localization [ 1 , 3 , 5 ].
Model Architecture Segmentation Model
20This Fig. 3 depicts the architecture of the deep learning model used for defect segmentation.Encoder: The encoder consists of a sequential stack of convolutional and pooling layers aimed at progressively reducing the spatial dimensions of the input while increasing feature abstraction ( [ 3 , 11 ]).Specifically, the encoder includes three convolutional blocks as mentioned in Table 3 :
21This structure enables the encoder to capture hierarchical features from the wafer maps, effectively condensing spatial information into a compact representation suitable for defect segmentation ( [ 3 , 5 ]).
22Segmentation Decoder: The segmentation decoder mirrors the encoder's architecture through a series of transposed convolutional layers, which serve to upsample the encoded feature maps back to the original input resolution ( 3 , 11 ]).The decoder comprises three transposed convolutional blocks as represented in Table 4 :
23The final transposed convolutional layer employs a sigmoid activation function to generate a binary segmentation mask, delineating defect regions within the wafer maps ([ 1 , 3 ]).Training Procedure: The model was trained using pre-processed wafer maps and their corresponding post-processed defect masks.The dataset was partitioned into training and testing subsets with an 80:20 split to facilitate robust evaluation.The training parameters were as follows:
24• Loss Function: Binary Cross-Entropy Loss (BCELoss)
25• Optimizer: The Adam optimizer was selected with a learning rate of 0.001 to efficiently navigate the loss landscape.
26• Batch Size: A batch size of 32 was employed to balance computational efficiency and gradient estimation accuracy.
27• Epochs: 20.
28• Early Stopping: Implemented with patience = 5 to prevent overfitting.
Deep Learning Classification Model using PyTorch
29The classification model based on deep learning was developed with the help of PyTorch library in Python [ 11 ] to automate the classification of defects in silicon wafers.The model consists of various layers including convolutional encoder with fully connected layers in order to extract various latent features and classify the wafer map [ 1 , 3 , 5 ].Encoder: The encoder is responsible for extracting hierarchical features from the input wafer maps.It comprises a sequence of convolutional and pooling layers organized into three convolutional blocks mentioned in Table 5 :
Model Architecture Classification Model
30Fully Connected Classifier: the extracted features from the encoder is passed through the hidden layer/fully connected layer that performs the classification task:
311. Flattening Layer: I. Converts the 2D feature maps into a 1D feature vector, enabling input to fully connected layers [ 11 ]. 2. First Fully Connected Layer: I. Linear Layer: Transforms the flattened feature vector into 256 neurons.II.Activation Function: ReLU, selected for its efficiency in propagating gradients and preventing vanishing gradient issues [ 10 , 12 ].III.Dropout Layer: Dropout probability of 0.5 to reduce overfitting, promoting generalization during training [ 10 ].
Second Fully Connected Layer:
32I. Linear Layer: Maps the 256 neurons to the number of defect classes (9 classes), where each neuron corresponds to one class [ 1 , 3 ].The final layer outputs logits corresponding to each defect class, which are processed by a softmax function during inference to calculate class probabilities [ 11 ].
33Training Procedure: The classification model was trained using the pre-processed and balanced wafer maps dataset.The dataset is divided into training and testing subsets with an 80% and 20% size respectively.To evaluate model on unseen data i.e. testing data to check accuracy of the model in real life cases.
LLM for Question and Answering
34A chatbot is implemented with the help of advanced Natural Language Processing techniques to serve the purpose of Q&A related to the defects in silicon wafers.This method uses the classification model to interpret the kind of defect in the wafer and implements Retrieval Augmented Generation as a source data to generate relevant answers to the questions [13][14][15].
Dataset Creation
35The dataset used for Q&A chatbot is scraped using ChatGPT's web search abilities.The scraped dataset along with data available in public domain is augmented and structured in format suitable for Retrieval Augmented Generation with the help of LLMs [ 2 , 3 , 7 , 13 ].
Model Architecture
36LLaMA 3.2:1b model integrated with Retrieval Augmented Generation is used to make the chatbot ( [3,11]).The chatbot uses the classification model to interpret the type of defect withing a given wafer and uses it to give relevant answers [ 7 , 15 ].
Classification Integration
37I. If a wafer map is passed to the model the classification model is used to classify the defect.II.This defect type is the passed to the model as context which is used to give relevant answers to the asked questions.
Retrieval Augmented Generation (RAG) using LangChain
38I. LangChain Framework: The LangChain library was employed to facilitate the integration of RAG, providing a seamless pipeline for retrieval and generation tasks [ [14] , [6] ]. II.Retrieval System: A vector-based retrieval system is implemented using Chroma [ [14] ].III.Embedding Generation: OllamaEmbeddings is used.IV.RAG Mechanism: When suerr provides the chatbot with a wafer map, it is classified using the classification model and the defect type is passed as context to the model, then the model accepts user query and uses Retrieval Augmented Generation to answer questions with relevant information [ [13] , [14] , [6] ].
Robust Deep Autoencoder
39The progression of loss during the autoencoder training from the 1st to the 11th epoch demonstrates a clear learning trend.Initially, the loss exhibits a rapid decrease, dropping from 0.237 in the first epoch to 0.0918 by the fifth epoch.This sharp decline
Segmentation Model
40Table 6 presents the evaluation metrics used for assessing the performance of the Deep Learning Segmentation Model, including quantitative measures that ensure a comprehensive analysis of segmentation accuracy and effectiveness.
41The segmentation model is evaluated on various metrics given below:
Mean Absolute Error (MAE)
42MAE is calculated by flattening the target image and segmented image, then the average deviation between them is calculated.The MAE for our model is 0.0036 which signifies that the predicted images are very close to the ground truth.
43Root Mean Squared Error (RMSE) RMSE captures the standard deviation of the prediction errors.An RMSE value of 0.0576 indicates minimal discrepancies between the model's forecasts and the true values, reflecting high accuracy in the segmentation task.
44Signal-to-Noise Ratio (SNR) SNR, expressed in decibels (dB), provides a ratio of signal intensity (correct predictions) to noise level (errors).The observed SNR of 2.6914 dB suggests there is room for reducing noise.Generally, higher SNR values correspond to stronger alignment between predicted and actual values.
Dice Index (DSC)
45The DSC measures the overlap between segmented predictions and the actual ground truth.With a Dice index of 0.7731, the model demonstrates good segmentation quality.As the DSC approaches 1, the overlap increases, indicating superior segmentation performance.
Intersection over Union (IoU)
46Also known as the Jaccard Index, IoU compares the union area of the predicted segmentation and the ground truth to their intersection area.A value of 0.6590 represents a reasonably good match, but higher IoU values would reflect further improvement in segmentation accuracy.
Classification Model comparative results
47Table 7 outlines the evaluation metrics utilized for the Deep Learning Classification Model, providing key measures to analyze its performance in accurately predicting class labels.Fig. 6 displays the confusion matrix, showcasing the model's prediction accuracy and error distribution.Fig. 7 illustrates the AUC-ROC curve, highlighting the model's ability to distinguish between classes.To evaluate the effectiveness of the proposed classification model, four key performance metrics were employed: Accuracy, Precision, Recall , and F1 Score .Each metric provides a unique perspective on the model's ability to correctly identify and classify wafer defects [ 1,5,16,17 ].Accuracy (0.9705) Accuracy measures the proportion of total predictions that are correct, indicating how often the model produces the right classification overall.A high Accuracy of 0.9705 signifies that the model correctly classifies most samples.Precision (0.9678) Precision quantifies the fraction of positively predicted cases that are actually positive.In defect detection, a Precision of 0.9678 means the model has a strong ability to pinpoint true defects, minimizing false alarms.Recall (0.9705) Recall represents the ratio of correctly identified positive cases to all actual positive cases in the dataset.A Recall of 0.9705 confirms that the model identifies most real defects, ensuring few defects remain undetected.
48F1 Score (0.9676) The F1 Score is the harmonic mean of Precision and Recall, offering a balanced assessment of the model's overall detection performance.An F1 Score of 0.9676 illustrates the model's consistent reliability in classifying defects with both accuracy and coverage.
Limitations
49Resizing is not lossless, so some information may be lost in the process.In addition, high computation power is required, which can be challenging for systems with limited resources.More data is needed to achieve better results; however, even with extensive datasets, noise reduction is not perfect.Moreover, using a generalized loss reduction method (such as an autoencoder with conditional filling) on resized images of different sizes can cause fine details like very thin scratches in high-resolution wafer maps to be mistaken for noise.Also, this method cannot classify multiple defects within a single wafer map.
Fig. 1 .
50Fig. 1.Visualization of Defects included in WM-811K Dataset.
Fig. 2 .
51Fig. 2. Pre-processing Progress and Final Processed Defect Map.
Fig. 3 .
52Fig. 3. Model architecture of Deep Learning Segmentation Model.
Fig. 4
53Fig. 4 illustrates the model architecture of the Deep Learning Classification Model, showcasing a multi-layered network structure designed to effectively classify input data through hierarchical feature extraction and reconstruction.Encoder: The encoder is responsible for extracting hierarchical features from the input wafer maps.It comprises a sequence of convolutional and pooling layers organized into three convolutional blocks mentioned in Table5:Fully Connected Classifier: the extracted features from the encoder is passed through the hidden layer/fully connected layer that performs the classification task:
Fig. 4 .
54Fig. 4. Model architecture of Deep Learning based Classification Model.
RFig. 5 .
55Fig. 5. Graph denoting change in Loss over number of epochs while training Robust Deep Autoencoder.
56and substantial improvement in the model's ability to reconstruct input data during the early stages of training.Beyond the fifth epoch, the loss stabilizes at 0.0918, signifying that the model has reached a point of convergence Fig. 5 .
Fig. 6 .
57Fig. 6.Confusion Matrix for Classification Model.
10 ⋅ log 10 ()Fig. 7 .
58Fig. 7. AUC-ROC for Classification Model.
Table 1
59Defect Labels and Descriptions.
Table 2
60Overview of Wafer Map Entries.
Table 3
61Encoder Architecture -Convolutional Blocks (Segmentation Model).
Table 4
62Decoder Architecture -Transposed Convolutional Blocks.
Table 5
63Encoder Architecture -Convolutional Blocks (Classification Model).
Table 6
64Evaluation Metrics for Deep Learning based Segmentation Model.
Table 7
65Evaluation Metrics for Deep Learning Classification Model.
참고문헌 13건
- A Review on Evaluation Metrics for Data Classification Evaluations International Journal of Data Mining & Knowledge Management Process · Academy and Industry Research Collaboration Center · 2015 10.5121/ijdkp.2015.5201
- Classification of Image using Convolutional Neural Network (CNN) Global Journal of Computer Science and Technology · Global Journals · 2019 10.34257/gjcstdvol19is2pg13
- The Influence of the Activation Function in a Convolution Neural Network Model of Facial Expression Recognition Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10051897
- Contextual Personal Intelligence: A New Paradigm for AI That Evolves With You arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2005.11401
- 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
- Applying Data Augmentation and Mask R-CNN-Based Instance Segmentation Method for Mixed-Type Wafer Maps Defect Patterns Classification IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2021 10.1109/tsm.2021.3118922
- A Deep Convolutional Neural Network-Based Multi-Class Image Classification for Automatic Wafer Map Failure Recognition in Semiconductor Manufacturing Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app11209769
- Towards a guideline for evaluation metrics in medical image segmentation BMC Research Notes · BioMed Central · 2022 10.1186/s13104-022-06096-y
- Activation functions in deep learning: A comprehensive survey and benchmark Neurocomputing · Elsevier BV · 2022 10.1016/j.neucom.2022.06.111
- LLaMA: Open and Efficient Foundation Language Models arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2302.13971
- Active Retrieval Augmented Generation 2023 10.18653/v1/2023.emnlp-main.495
- Investigating the performance of Retrieval-Augmented Generation and fine-tuning for the development of AI-driven knowledge-based systems arXiv (Cornell University) · Cornell University · 2024 10.48550/arxiv.2403.09727
- Large Language Models for Manufacturing arXiv (Cornell University) · Cornell University · 2024 10.48550/arxiv.2410.21418