A wafer oxidation defect detection method, device, electronic device and storage medium
By preprocessing the RGB image of the wafer and reducing the dimensionality of the feature data, the problem of low accuracy of wafer oxidation defect detection in the existing technology is solved, and efficient oxidation defect detection is achieved.
Patent Information
- Application Number
- CN202210549503.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-20
AI Technical Summary
In the existing technology, the accuracy of wafer oxidation defect detection is low, manual detection efficiency is low, missed detections and false detections are prone to occur, and the ability to characterize oxidation defects is weak.
By obtaining the original RGB image of the wafer to be inspected, preprocessing is performed to obtain the grain area image, calculating its energy data, and performing dimensionality reduction and remapping of the feature data to obtain the first feature value for oxidation defect detection.
It improves the accuracy of wafer oxidation defect detection, reduces the influence of background noise, significantly reflects the difference in feature distribution in the grain area, overcomes the problem of continuous feature changes of oxidation defects, and achieves accurate measurement and discrimination of oxidation defects.
Smart Images

Figure CN114972235B
Abstract
Description
Technical Field
[0001] The present application relates to the field of semiconductor technology, and more specifically, to a method, device, electronic device, and storage medium for detecting wafer oxidation defects. Background Art
[0002] As of 2020, the total market size of wafers in my country has exceeded 260 billion yuan, and the domestic wafer inspection market is about 25.5 billion yuan. Among them, GPP wafers are one of the important inspection objects. GPP wafers are a type of wafer with a special passivation process. They are mainly used to manufacture chips with functions such as rectification, voltage stabilization and lightning protection.
[0003] There are many steps involved from wafer acquisition to GPP wafer processing. Defects generated in any step may lead to chip production failure or invalidation. GPP wafer surface defects are characterized by arbitrary size, random location, diverse forms of expression, and low recognition of some defect features.
[0004] Currently, oxidation defects in GPP wafers are mainly detected manually. Manual detection is inefficient and prone to missed detections and false detections. The consistency of detection results is poor, and oxidation defects have the characteristics of continuous characteristic changes. Therefore, the accuracy of oxidation defect detection results obtained through manual detection is low. Summary of the Invention
[0005] The main purpose of this application is to provide a wafer oxidation defect detection method, device, electronic device and storage medium, aiming to solve the problem of low accuracy of wafer oxidation defect detection results obtained by existing technology.
[0006] To solve the above technical problems, this application provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for detecting wafer oxidation defects, comprising:
[0008] Obtain the original RGB image of the wafer to be inspected;
[0009] Preprocessing the original RGB image to obtain a grain area image of the wafer to be inspected;
[0010] acquiring energy data of the grain region image;
[0011] Performing dimension reduction and remapping of characteristic data on the energy data of the grain region image to obtain a first characteristic value of the grain region image;
[0012] The oxidation defects of the wafer to be detected are detected according to the first characteristic value to obtain an oxidation defect detection result.
[0013] Optionally, acquiring energy data of the grain region image includes:
[0014] The energy data of the grain region image is obtained according to the following formula:
[0015]
[0016]
[0017]
[0018] Among them, E R,h∈[0,255] 、E G,h∈[0,255] and E B,h∈[0,255] are the energy data of different gray levels in the red channel, green channel and blue channel of the same wafer image, N R,h∈[0,255] 、N G,h∈[0,255] and N B,h∈[0,255] are the energy statistics of the red channel, green channel and blue channel in the same wafer image, respectively. R (x,y),H G (x,y) and H B (x, y) are the grayscale values of the red channel, green channel, and blue channel corresponding to the same wafer image obtained by loop traversal, rows is the number of rows of the wafer image, and cols is the number of columns of the wafer image.
[0019] Optionally, performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image includes:
[0020] According to a preset threshold, obtaining a preset number of gray levels corresponding to the grain area image;
[0021] Obtaining an average value of the energy attention concentration ranges of the red channel, the green channel, and the blue channel corresponding to the preset number of gray levels;
[0022] Obtaining coordinates of a red channel, a green channel, and a blue channel corresponding to the grain region image according to a mapping function;
[0023] Obtaining a first characteristic value of the grain region image according to the coordinates;
[0024] The first characteristic value includes the characteristic value of the wafer to be inspected in the horizontal axis direction.
[0025] Optionally, after performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image, the method further includes:
[0026] Obtaining a second characteristic value corresponding to the sample wafer;
[0027] The second characteristic value includes label data indicating whether the sample wafer is oxidized, and the label data includes a no-oxidation defect label, a moderate-oxidation defect label, and a severe-oxidation defect label;
[0028] Performing energy feature clustering on the second eigenvalues to obtain eigenvalues in the horizontal axis direction of samples corresponding to the no oxidation defect label and samples corresponding to the moderate oxidation defect label in the sample wafer;
[0029] Obtaining an absolute value of a difference between characteristic values of the sample corresponding to the no-oxidation-defect label and the sample corresponding to the moderate-oxidation-defect label in the horizontal axis direction to obtain a third characteristic value;
[0030] The step of performing oxidation defect detection on the wafer to be inspected according to the first characteristic value to obtain an oxidation defect detection result includes:
[0031] According to the first characteristic value and the third characteristic value, oxidation defect detection is performed on the wafer to be detected to obtain an oxidation defect detection result.
[0032] Optionally, performing oxidation defect detection on the wafer to be inspected according to the first characteristic value and the third characteristic value to obtain an oxidation defect detection result includes:
[0033] Obtaining an absolute value of a difference between the first characteristic value and a characteristic value of a sample corresponding to a label without oxidation defects in the sample wafer in the horizontal axis direction to obtain a fourth characteristic value;
[0034] If the product of the third eigenvalue and the preset weight coefficient is greater than the fourth eigenvalue, then the wafer to be inspected does not have oxidation defects;
[0035] If the product of the third eigenvalue and the preset weight coefficient is less than or equal to the fourth eigenvalue, then the wafer to be inspected has an oxidation defect.
[0036] Optionally, obtaining the second characteristic value corresponding to the sample wafer includes:
[0037] Acquiring an initial RGB image of the sample wafer;
[0038] Preprocessing the initial RGB image to obtain a target grain area image of the sample wafer;
[0039] Acquiring energy data of the target grain region image;
[0040] The energy data of the target grain region image is subjected to dimension reduction and remapping of feature data to obtain the second feature value corresponding to the target grain region image.
[0041] Optionally, preprocessing the original RGB image to obtain the die area image of the wafer to be inspected includes:
[0042] Performing grayscale processing on the red channel of the original RGB image to obtain a grayscale image;
[0043] performing binarization processing on the grayscale image to obtain a first grayscale image;
[0044] scaling the first grayscale image according to a region scaling algorithm to obtain a second grayscale image;
[0045] performing grayscale swapping on the second grayscale image to obtain a third grayscale image;
[0046] Obtaining a gradient value of the third grayscale image;
[0047] Obtaining the minimum outline enclosing rectangle corresponding to the grayscale image according to a minimum area criterion;
[0048] Obtaining the coordinates of the grain area corresponding to the minimum outline enclosing rectangle by using coordinate transformation;
[0049] A grain area image of the wafer to be inspected is acquired according to the coordinate mask.
[0050] In a second aspect, an embodiment of the present application provides a wafer oxidation defect detection device, comprising:
[0051] An acquisition module is used to acquire an original RGB image of the wafer to be inspected; wherein the original image includes red, green and blue channels;
[0052] A preprocessing module is used to preprocess the RGB original image to obtain a grain area image of the wafer to be inspected;
[0053] An image energy acquisition module, configured to acquire energy data of the grain region image;
[0054] a feature extraction module, configured to perform dimensionality reduction and remapping of feature data on the energy data of the grain region image to obtain a first eigenvalue of the grain region image;
[0055] The defect detection module is used to determine the oxidation defect of the wafer to be detected based on the first characteristic value and perform detection to obtain an oxidation defect detection result.
[0056] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor calls the program instructions to execute the method of the first aspect.
[0057] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and the computer program executes the method of the first aspect when executed by a processor.
[0058] Other features and advantages of the present application will be described in the following description and, in part, will become apparent from the description or be understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description, claims, and drawings.
[0059] The present application performs grayscale processing on the red channel of the original RGB image, which can make the contrast between the obtained grain area and the background image greater, avoid banding distortion, facilitate the subsequent extraction of the grain area image, and reduce the difficulty of extracting the grain area image; by binarizing the grayscale image, the amount of data in the grayscale image is greatly reduced, so that the outline of the target can be highlighted; by scaling the first grayscale image, the residual background noise can be removed and the interference of the noise on the grain area image can be reduced; by calculating the gradient value of the third grayscale image, the minimum contour enclosing rectangle is obtained, the coordinate transformation is used to obtain the grain area rectangle coordinates, and the grain area image of the wafer to be inspected is obtained based on the coordinate mask. It can accurately locate GPP wafers with arbitrary rotation direction, and segment the GPP wafer to obtain the grain area image, reducing the influence of background noise, thereby obtaining Accurate grain area image; the features of the grain area image are quantified in the form of energy data, which is represented as the specific reflection of the difference in the number of photoelectrons in the image, which can improve the characterization ability of the wafer image features, thereby making the features of the grain area image more intuitive; based on the image energy attention mechanism, the energy features of the grain area are reduced in dimension and remapped, which can effectively reduce the data dimension of high-dimensional wafer images, while retaining important feature data, reducing errors, reducing the impact of randomness, and more significantly reflecting the feature distribution differences of the grain area of each image; only a small number of sample wafers are needed to construct an accurate judgment decision boundary, and the non-oxidation defect is a state interval, which can overcome the problem of continuous feature changes of oxidation defects. The preset weight coefficient can be adjusted according to actual conditions, thereby achieving accurate measurement and judgment of wafer oxidation defects. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0061] Figure 1A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present application;
[0062] Figure 2 A schematic diagram of a process for detecting wafer oxidation defects provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram of data remapping in a two-dimensional feature space provided in an embodiment of the present application;
[0064] Figure 4 This is a schematic diagram of the structure of the wafer oxidation defect detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0066] The main solution of the embodiments of the present application is: to propose a wafer oxidation defect detection method, device, storage medium and electronic device, by obtaining the original RGB image of the wafer to be detected; preprocessing the original RGB image to obtain the grain area image of the wafer to be detected; obtaining the energy data of the grain area image; performing dimensionality reduction and remapping of the feature data of the energy data of the grain area image to obtain the first eigenvalue of the grain area image; detecting the oxidation defects of the wafer to be detected based on the first eigenvalue to obtain the oxidation defect detection result.
[0067] There are many steps involved from wafer acquisition to GPP wafer processing. Defects generated in any step may cause chip production failure or invalidation. In order to reduce the number of GPP wafers containing defects, each GPP wafer needs to be defect-detected. Wafer oxidation defects change continuously, and in practice it is impossible to obtain samples of any oxidation state. Therefore, the existing detection algorithm for GPP wafer oxidation defect detection has the problem of weak ability to characterize the characteristics of GPP wafer surface defects. Secondly, the oxidation defects of GPP wafers are detected manually. Manual detection is inefficient, costly, prone to missed detections and false detections, and the consistency of the detection results is poor, resulting in low accuracy of the oxidation defect detection results.
[0068] To this end, the present application provides a solution, which preprocesses the original RGB image to obtain the grain area image of the wafer to be inspected, obtains the energy data of the grain area image, and performs dimensionality reduction and remapping of the feature data of the energy data of the grain area image to obtain the first eigenvalue of the grain area image; detects the oxidation defects of the wafer to be inspected based on the first eigenvalue to obtain the oxidation defect detection result, thereby solving the problem of low accuracy of the wafer oxidation defect detection results obtained in the prior art.
[0069] Refer to the attached Figure 1 , attached Figure 1 This is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present application. The electronic device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as at least one disk memory. The processor 101 may be a general-purpose processor, including a central processing unit, a network processor, etc., or may be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0070] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0071] As attached Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program.
[0072] In the attached Figure 1 In the electronic device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the electronic device of the present application can be set in the electronic device, and the electronic device calls the wafer oxidation defect detection device stored in the memory 105 through the processor 101, and executes the wafer oxidation defect detection method provided in the embodiment of the present application.
[0073] Refer to the attached Figure 2 , attached Figure 2A flow chart of a wafer oxidation defect detection method provided in an embodiment of the present application is shown in the attached figure. Figure 2 As shown, the method can be applied to a terminal device and a server; the terminal device can be a smart phone, a tablet computer, a computer, a personal digital assistant (PDA), etc.; the server can be an application server or a web server. The method includes:
[0074] Step 201: Acquire an original RGB image of a wafer to be inspected.
[0075] The original RGB image is obtained by illuminating the wafer with high-brightness white annular coaxial light. The color space of the wafer to be inspected is RGB, and the background and light source colors are white. In specific implementations, the wafer to be inspected can also be illuminated by light sources of other colors, or by other image acquisition devices with image acquisition capabilities. The specific image acquisition method and light source color are not specifically limited in this embodiment of the application.
[0076] Step 202: pre-processing the original RGB image to obtain a die region image of the wafer to be inspected.
[0077] In an optional embodiment, preprocessing the original RGB image to obtain the die area image of the wafer to be inspected includes:
[0078] The original RGB image of the rectangular wafer is obtained by global scanning with a macro fixed-focus lens; the RGB image is subjected to median filtering and morphological filtering and combined with the OTSU algorithm to obtain a wafer binary image; the wafer binary image is used to obtain the outermost closed contour curve of the wafer based on the first-order derivative algorithm, and any position is locked; the tilt angle of the minimum rectangular area enclosed by the outermost closed contour curve of the wafer is taken as the wafer tilt angle, and the original color image is rotated according to the wafer tilt angle so that the upper and lower edges of the wafer are horizontal and the left and right edges are vertical; when the wafer tilt angle θ is greater than 45 degrees, the original color image of the wafer is rotated counterclockwise, and the corresponding rotation angle is (90-θ); when the wafer tilt angle θ is less than 45 degrees, the original color image of the wafer is rotated clockwise, and the corresponding rotation angle is θ; based on the four vertices of the minimum rectangular area of the rotated original color image, the four vertices of the rectangular grain area are locked, thereby obtaining an image of the grain area where low texture defects may occur.
[0079] In an optional embodiment, preprocessing the original RGB image to obtain the die area image of the wafer to be inspected includes:
[0080] Performing grayscale processing on the red channel of the original RGB image to obtain a grayscale image;
[0081] performing binarization processing on the grayscale image to obtain a first grayscale image;
[0082] scaling the first grayscale image according to a region scaling algorithm to obtain a second grayscale image;
[0083] performing grayscale swapping on the second grayscale image to obtain a third grayscale image;
[0084] Obtaining a gradient value of the third grayscale image;
[0085] Obtaining the minimum outline enclosing rectangle corresponding to the grayscale image according to a minimum area criterion;
[0086] Obtaining the coordinates of the grain area corresponding to the minimum outline enclosing rectangle by using coordinate transformation;
[0087] A grain area image of the wafer to be inspected is acquired according to the coordinate mask.
[0088] In the embodiment of the present application, it is found through analysis that the image contrast between the grain area and the background obtained by extracting the grayscale using the R channel is large. Therefore, the R channel of the original RGB image is first grayscale processed to obtain an R channel grayscale image.
[0089] The grayscale distribution of the R channel grayscale image between grayscale levels 0 and 255 is statistically analyzed, and the minimum value of the grayscale distribution pixel values in the middle distribution area 50-200 is calculated by traversal to obtain the corresponding threshold area. The R channel grayscale image is binarized by assigning a grayscale value of 1 to the grayscale value of the region where the number of pixels in the R channel grayscale image is less than the threshold value, and assigning a grayscale value of 0 to the grayscale value of the region where the number of pixels in the R channel grayscale image is greater than or equal to the threshold value, to obtain a first grayscale image.
[0090] The embodiment of the present application sets the scaling region kernel size to 5, and uses a 5*5 rectangular operator to achieve scaling of high grayscale difference regions to remove local noise, specifically including: an expansion step and a scaling step. The expansion step is specifically as follows: when the neighborhood grayscale value is greater than the center point grayscale value, the center grayscale value takes the maximum value of the neighborhood grayscale; when the neighborhood grayscale value is less than or equal to the center point grayscale value, the center grayscale value remains unchanged. The scaling step is specifically as follows: when the neighborhood grayscale value is greater than the center point grayscale value, the center grayscale value remains unchanged; when the neighborhood grayscale value is less than or equal to the center point grayscale value, the center grayscale value takes the minimum value of the neighborhood grayscale. For example, first scale the area with a grayscale value of 0, and then scale the area with a grayscale value of 1 to remove the background high grayscale area; secondly, scale the area with a grayscale value of 1, and then scale the area with a grayscale value of 0 to remove the background low grayscale area to obtain a second grayscale image.
[0091] In the embodiment of the present application, expansion and scaling are a set of operation steps. If the first step is expansion, the corresponding second step is scaling. If the first step is scaling, the corresponding second step is expansion. The present application does not specifically limit the order of expansion and scaling in a set of operation steps, and can be selected according to actual needs.
[0092] A grayscale swap process is performed on the second grayscale image after noise reduction, specifically: the grayscale value corresponding to the area with grayscale 0 is changed to 1, and the grayscale value corresponding to the area with grayscale 1 is changed to 0, so as to obtain a third grayscale image.
[0093] Calculate the global first-order gradient of the third grayscale image, connect the nearest neighbor points with the largest first-order gradient derivative, and use the closed contour line obtained from the point connection line to define the outermost contour line of the wafer. Use the minimum area criterion to calculate the minimum contour enclosing rectangle corresponding to the outermost contour line. The corner points of the minimum contour enclosing rectangle can be represented by ABCD. Analyze the distribution characteristics of each area of the wafer, and use coordinate transformation to obtain the coordinates of the grain area of any rotation direction. The corner points of the rectangular area can be represented by A'B'C'D'. The coordinates of A'B'C'D' can be calculated using the following formula:
[0094] Point A′: x A′ =x Amin +Lssin(α min -45°), y A′ =y Amin +Lssin(α min -45°);
[0095] Point B′: x B′ =x Bmin +Lssin(α min -45°), y B′ =y Bmin -Lssin(α min -45°);
[0096] Point C′: x C′ =x Cmin -Lssin(α min -45°), y C′ =y Cmin -Lssin(α min -45°);
[0097] Point D′: x D′ =x Dmin -Lssin(α min -45°), y D′ =y Dmin +Lssin(α min -45°);
[0098] Among them, x Amin with y Amin are the coordinate values of corner point A on the x-axis and y-axis, respectively. Bmin and y Bmin The coordinate values of corner point B on the x-axis and y-axis respectively, x Cmin with y Cmin are the coordinate values of the corner point C on the x-axis and y-axis, respectively. Dmin with y Dmin are the coordinate values of the corner point D on the x-axis and y-axis, α min is the wafer's tilt angle, and Ls is the offset from the wafer corner to the die area along the X-axis. In the embodiments of this application, Ls is measured counterclockwise with reference to the horizontal X-axis. The value of Ls is related to the wafer size, magnification, and image acquisition camera resolution. For example, at a resolution of 1920*1080 and a magnification of 230x, the offset from the corner of a 1mm GPP wafer with no tilt angle to the die area along the X-axis is 210 pixels, where pixel is the unit of measurement.
[0099] The grain area image of the wafer to be inspected is obtained according to the coordinate mask MASK. Specifically, the value of the corresponding pixel of MASK within the rectangular area A′B′C′D′ is 1, and the value of the corresponding pixel of MASK outside the rectangular area A′B′C′D′ is 0. The mask is multiplied by the original RGB image and combined with the A′B′C′D′ coordinate points to obtain the corresponding grain area image. In the embodiment of the present application, the size of MASK is consistent with the size of the original RGB image.
[0100] In an embodiment of the present application, by performing grayscale processing on the red channel of the original RGB image, the contrast between the obtained grain area and the background image can be made greater, thus avoiding banding distortion, facilitating the subsequent extraction of the grain area image, and reducing the difficulty of extracting the grain area image; by binarizing the grayscale image, the amount of data in the grayscale image is greatly reduced, thereby highlighting the outline of the target; by scaling the first grayscale image, the residual background noise can be removed, and the interference of the noise on the grain area image can be reduced; by calculating the gradient value of the third grayscale image, the minimum contour enclosing rectangle is obtained, and the coordinate transformation is used to obtain the grain area rectangle coordinates, and the grain area image of the wafer to be inspected is obtained based on the coordinate mask. It is possible to accurately locate GPP wafers with arbitrary rotation directions, and segment the GPP wafers to obtain grain area images, reducing the influence of background noise, and thus obtaining accurate grain area images.
[0101] Step 203: Acquire energy data of the grain region image.
[0102] In an optional embodiment, acquiring energy data of the grain region image includes:
[0103] The energy data of the grain area image is calculated using the regional energy algorithm. The energy algorithm calculates the energy of an image or a pixel area. Energy for an image is the grayscale value. The higher the grayscale value, the greater the energy, and the corresponding pixel is "whiter". The area is a single pixel and its neighborhood range. The specific method is: construct a weight matrix; take a 3*3 area of the image to multiply the weight matrix, and then add up the total as the regional energy of the center pixel. After traversing the entire grain area image, the regional energy matrix of the same size as the original grain area image can be obtained to obtain the energy data of the grain area image.
[0104] In an optional embodiment, acquiring energy data of the grain region image includes:
[0105] The energy data of the grain region image is obtained according to the following formula:
[0106]
[0107]
[0108]
[0109] Among them, E R,h∈[0,255] 、E G,h∈[0,255] and E B,h∈[0,255] are the energy data of different gray levels in the red channel, green channel and blue channel of the same wafer image, N R,h∈[0,255] 、N G,h∈[0,255] and N B,h∈[0,255] are the energy statistics of the red channel, green channel and blue channel in the same wafer image, respectively. R (x,y),H G (x,y) and H B (x, y) are the grayscale values of the red channel, green channel, and blue channel corresponding to the same wafer image obtained by loop traversal, rows is the number of rows of the wafer image, and cols is the number of columns of the wafer image.
[0110] The energy data is dimensionless and has no units. The embodiments of the present application use energy data to quantify the features of the grain region image. Energy data is the specific reflection of the difference in the number of photoelectrons in the image. The more photoelectrons there are, the stronger the energy. Under the same ambient light conditions, when the same energy is projected onto the wafer surface, the less oxidized the wafer surface, the fewer photons it absorbs, the more photons it reflects back into the environment and is captured by the camera, the stronger the energy captured by the camera's photosensitive chip, and the brighter the grain region image in the image. Conversely, the deeper the wafer oxidation, the fewer photons captured by the camera chip, and the darker the grain region image.
[0111] Under the same camera, lens, and environmental parameters, the color characteristics of an image of a grain without oxidation defects show that the energy of the red channel is lower than the energy of the green and blue channels, and as the degree of oxidation increases, the characteristic grayscale difference reflected at each channel pixel tends to gradually decrease. Oxidation defects have continuous characteristic changes. In the embodiments of the present application, the absence of oxidation defects is a state range, specifically a state between completely no oxidation defects and intermediate oxidation defects. The other state regions outside this state range are considered to contain oxidation defects.
[0112] The embodiment of the present application quantifies the characteristics of the grain area image using energy data, which is represented as the specific reflection of the difference in the number of photoelectrons in the image, which can improve the characterization capability of the wafer image characteristics, thereby making the characteristics of the grain area image more intuitive.
[0113] Step 204 : performing dimension reduction and remapping of characteristic data on the energy data of the grain region image to obtain a first characteristic value of the grain region image.
[0114] In an optional embodiment, performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image includes:
[0115] The dimensionality reduction of energy data is performed using the reverse feature elimination method. Specifically, the following steps are performed: first, training is performed using n energy data features. Each time the dimensionality reduction operation is performed, the classifier is trained n times using n-1 features, resulting in n new classifiers. The n-1-dimensional features used by the classifier with the smallest change in error rate are used as the feature set for dimensionality reduction. The k-th iteration results in an n-k-dimensional feature classifier. By continuously iterating this process, the dimensionality reduction result is obtained. By selecting the maximum error tolerance, the minimum number of features required to achieve the specified classification performance on the selected classifier can be determined, thus completing the dimensionality reduction of the energy data.
[0116] The feature data is remapped through a deep learning network, and the energy data is proportionally mapped to a unified feature distribution space using a trained data mapping network model, thereby significantly showing the feature distribution differences of each grain area image.
[0117] In an optional embodiment, performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image includes:
[0118] According to a preset threshold, obtaining a preset number of gray levels corresponding to the grain area image;
[0119] Obtaining an average value of the energy attention concentration ranges of the red channel, the green channel, and the blue channel corresponding to the preset number of gray levels;
[0120] Obtaining coordinates of a red channel, a green channel, and a blue channel corresponding to the grain region image according to a mapping function;
[0121] Obtaining a first characteristic value of the grain region image according to the coordinates;
[0122] The first characteristic value includes the characteristic value of the wafer to be inspected in the horizontal axis direction.
[0123] The embodiment of the present application reduces the dimension of the energy features of the grain area through the image energy attention mechanism. The image energy attention mechanism is based on the differences in the grain area image in multiple gray levels, and analyzes the energy concentration grayscale range of the grain area image. That is, the image energy attention mechanism focuses on the average grayscale number with the largest number of pixels corresponding to the characteristic grayscale of the grain area.
[0124] The mathematical model of the energy attention mechanism is as follows:
[0125]
[0126]
[0127]
[0128]
[0129] Among them, S h Indicates the pixel counts corresponding to different gray levels in the grain area image, f R (S h ) is the energy concentration mathematical model corresponding to the R channel in the grain area image, f G (S h ) is the energy concentration mathematical model corresponding to the G channel in the grain region image, f B (S h ) is the energy concentration mathematical model corresponding to the B channel in the grain area image, H R (x, y) is the grayscale value of the R channel corresponding to the pixel position (x, y), H G (x, y) is the grayscale value of the G channel corresponding to the pixel position (x, y), H B (x,y) is the grayscale value of the B channel corresponding to the pixel position (x,y), [T1,T2] is the minimum value area of the energy distribution, c (R, G, B) is the grayscale value corresponding to the energy concentration, n is the preset threshold, that is, the energy concentration deviation range, N ave (R) is the average value of the energy attention range of the R channel, Nave (G) is the average value of the energy attention range of the G channel, N ave (B) is the average value of the energy concentration range of channel B. For example, 5 gray levels are taken on each side of the maximum gray level corresponding to the number of pixels in the gray level, that is, n = 5, and a total of 11 gray levels are taken. Then, the gray level and statistical value corresponding to the energy concentration are obtained by averaging these 11 gray levels.
[0130] The data corresponding to the energy concentration areas of different wafer images are different. The embodiment of the present application maps the energy data proportionally to a unified feature distribution space, thereby significantly showing the feature distribution differences of each grain area image. The formula of the feature data remapping function is:
[0131] f(R)=H-int(N ave (R)*(s / S)*max(R) / max(R))
[0132] f(G)=H-int(N ave (G)*(s / S)*max(G) / max(G))
[0133] f(B)=H-int(N ave (B)*(s / S)*max(B) / max(B))
[0134] Among them, f(R) is the data remapping function of the eigenvalue point in the energy concentration of the R channel, f(G) is the data remapping function of the eigenvalue point in the energy concentration of the G channel, f(B) is the data remapping function of the eigenvalue point in the energy concentration of the B channel, int is the corresponding rounding function in the program, H, s and S are dimensionless constants, H = 800, s = 700, S = 25000.
[0135] The coordinates of the red channel, green channel, and blue channel corresponding to the grain area image are calculated according to the following formula:
[0136]
[0137]
[0138]
[0139]
[0140] Among them, max(R) is the number of pixels contained in the energy concentration grayscale value corresponding to the R channel, max(G) is the number of pixels contained in the energy concentration grayscale value corresponding to the G channel, max(B) is the number of pixels contained in the energy concentration grayscale value corresponding to the B channel, and x R and y Rare the horizontal and vertical coordinates of the R channel in the two-dimensional feature distribution space, x G and y R are the horizontal and vertical coordinates of the G channel in the two-dimensional feature distribution space, x B and y B are the horizontal and vertical coordinates of the B channel in the two-dimensional feature distribution space, respectively, satisfied is the corresponding satisfying relationship function in the program, and h is the grayscale level.
[0141] Refer to the attached Figure 3 , attached Figure 3 The data remapping diagram of the two-dimensional feature space provided in the embodiment of the present application is shown in the attached figure. Figure 3 As shown in the figure, the energy feature data of the red, green, and blue channels corresponding to the grain region image are mapped into a two-dimensional feature distribution space. The above formula can be used to obtain the coordinate points of the energy mapping of each channel in each grain region image in the two-dimensional feature distribution space, thereby more significantly reflecting the characteristic distribution differences of the grain region in each image. Compared with the high-dimensional original image features, this achieves data dimensionality reduction and simultaneously abstracts and extracts the grain region features.
[0142] In an embodiment of the present application, the energy features of the grain area are reduced in dimension and remapped based on the image energy attention mechanism. By taking a preset threshold number of gray levels around the maximum gray level of the corresponding number of pixel points in the gray level, and then averaging the gray levels and statistical values corresponding to the energy concentration, the high-dimensional wafer image can be effectively reduced in data dimension, while retaining important feature data, reducing errors, and reducing the impact of randomness. The energy of the grain area images of different wafer images is proportionally mapped to a unified feature distribution space through a mapping function, which can more significantly reflect the difference in feature distribution of the grain area of each image, and realize data transformation and data dimension reduction at the same time.
[0143] In an optional embodiment, after performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain the first feature value of the grain region image, the method further includes:
[0144] Obtaining a second characteristic value corresponding to the sample wafer;
[0145] The second characteristic value includes label data indicating whether the sample wafer is oxidized, and the label data includes a no-oxidation defect label, a moderate-oxidation defect label, and a severe-oxidation defect label;
[0146] Performing energy feature clustering on the second eigenvalues to obtain eigenvalues in the horizontal axis direction of samples corresponding to the no oxidation defect label and samples corresponding to the moderate oxidation defect label in the sample wafer;
[0147] Obtaining an absolute value of a difference between characteristic values of the sample corresponding to the no-oxidation-defect label and the sample corresponding to the moderate-oxidation-defect label in the horizontal axis direction to obtain a third characteristic value;
[0148] The step of performing oxidation defect detection on the wafer to be inspected according to the first characteristic value to obtain an oxidation defect detection result includes:
[0149] According to the first characteristic value and the third characteristic value, oxidation defect detection is performed on the wafer to be detected to obtain an oxidation defect detection result.
[0150] The second characteristic value is obtained by extracting the characteristics of the sample wafer, and the second characteristic value includes label data of whether the sample wafer is oxidized, that is, whether there is oxidation and the degree of oxidation.
[0151] In an embodiment of the present application, the second eigenvalue is used as analysis data, and supervised iterative clustering is performed on the extracted second eigenvalue of a single sample wafer to analyze the energy characteristic data distribution of all sample wafers. The specific steps are: extracting the second eigenvalue of each sample wafer; mapping the second eigenvalue to a two-dimensional feature space, and clustering the feature images of the same oxidation degree; according to the clustering results, obtaining the cluster centers of the sample wafers with different oxidation degrees, including the eigenvalues of the samples corresponding to the no oxidation defect label and the samples corresponding to the moderate oxidation defect label in the sample wafer in the horizontal axis direction.
[0152] Analysis of the characteristic data shows that as the degree of oxidation in the grain region increases, the Euclidean distance between the energy cluster centers on the three channels of sample wafers with different oxidation degrees gradually decreases. The distance difference between the projections of the cluster centers of the same color channel with different oxidation degrees on the X-axis also shows a decreasing trend as the degree of oxidation deepens.
[0153] In the embodiment of the present application, the projection distance L1 between the cluster centers of different color channels is:
[0154]
[0155] Among them, d S,R,(N,Mid) d S,G,(N,Mid) and d S,B,(N,Mid) are the absolute values of the characteristic value differences of the R, G, and B channels in the x-axis direction of the horizontal coordinate of the sample wafer corresponding to the sample with no oxidation defect label and the sample with moderate oxidation defect label, respectively. S,R,N (x), C S,G,N (x) and C S,B,N (x) are the characteristic values of the R, G and B channels of the sample with no oxidation defect label in the sample wafer in the x-axis direction, C S,R,Mid (x), C S,G,Mid(x) and C S,B,Mid (x) are the characteristic values of the R, G and B channels of the sample corresponding to the moderate oxidation defect label in the sample wafer in the x-axis direction, sum d is the third eigenvalue, that is, the absolute value of the difference between the eigenvalues of the sample corresponding to the no oxidation defect label and the sample corresponding to the moderate oxidation defect label in the horizontal axis direction.
[0156] In an embodiment of the present application, the second eigenvalues corresponding to the sample wafers are subjected to cluster statistical analysis. After the second eigenvalue data of each sample wafer are processed and remapped, they are plotted in a two-dimensional feature space to obtain a cluster image of the same oxidation degree. The characteristics of the wafer image can be represented intuitively and concisely through the two-dimensional space.
[0157] Step 105: Detect oxidation defects of the wafer to be detected according to the first characteristic value to obtain oxidation defect detection results.
[0158] As an optional embodiment, oxidation defect detection is performed on the wafer to be tested based on the Euclidean distance, and the specific decision function is:
[0159] Among them, α is the preset weight coefficient, none means there is no oxidation defect, defect means there is oxidation defect, sum S is the sum of the Euclidean distances between the R, G, and B channel energy cluster centers of the samples corresponding to the oxidation defect-free labels in the sample wafer, M It is the sum of the Euclidean distances between the energy cluster centers of the R, G, and B channels of the sample to be detected.
[0160] In the embodiments of this application, sum S Recorded as the first Euclidean distance, |sum S -sum M | is denoted as the second Euclidean distance. The specific judgment criteria for whether there are oxidation defects on the surface of the wafer to be inspected are: if the product of the first Euclidean distance and the preset weight coefficient is greater than the second Euclidean distance, then there are no oxidation defects on the wafer to be inspected; if the product of the first Euclidean distance and the preset weight coefficient is less than or equal to the second Euclidean distance, then there are oxidation defects on the wafer to be inspected, thereby achieving accurate detection of oxidation defects on the wafer to be inspected.
[0161] As an optional embodiment, performing oxidation defect detection on the wafer to be inspected based on the first characteristic value and the third characteristic value to obtain an oxidation defect detection result includes:
[0162] Obtaining an absolute value of a difference between the first characteristic value and a characteristic value of a sample corresponding to a label without oxidation defects in the sample wafer in the horizontal axis direction to obtain a fourth characteristic value;
[0163] If the product of the third eigenvalue and the preset weight coefficient is greater than the fourth eigenvalue, then the wafer to be inspected does not have oxidation defects;
[0164] If the product of the third eigenvalue and the preset weight coefficient is less than or equal to the fourth eigenvalue, then the wafer to be inspected has an oxidation defect.
[0165] In the embodiment of the present application, oxidation defect detection is performed on the wafer to be tested based on the projection distance L1, and the specific decision function is:
[0166] sum z =|C S,R,N (x)-C S,R,M (x)|+|C S,G,N (x)-C S,G,M (x)|+|C S,B,N (x)-C S,B,M (x)|
[0167]
[0168] Among them, C S,R,N (x), C S,G,N (x) and C S,B,N (x) are the characteristic values of the R, G, and B channels of the wafer to be tested in the x-axis direction, sum z is the fourth eigenvalue, that is, the absolute value of the difference between the first eigenvalue and the eigenvalue of the sample corresponding to the sample wafer without oxidation defect label in the horizontal coordinate x-axis direction, α is the preset weight coefficient, none means there is no oxidation defect, and defect means there is oxidation defect.
[0169] The judgment criteria for whether there are oxidation defects on the surface of the wafer to be inspected are: if the product of the third eigenvalue and the preset weight coefficient is greater than the fourth eigenvalue, then there are no oxidation defects on the wafer to be inspected; if the product of the third eigenvalue and the preset weight coefficient is less than or equal to the fourth eigenvalue, then there are oxidation defects on the wafer to be inspected, thereby achieving accurate detection of oxidation defects on the wafer to be inspected.
[0170] In an embodiment of the present application, the characteristic values of the R, G, and B channels of the samples corresponding to the no-oxidation defect label and the samples corresponding to the moderate-oxidation defect label in the sample wafer are analyzed in the x-axis direction of the horizontal coordinate. Only a small number of sample wafers are needed to construct an accurate judgment decision boundary. No-oxidation defect is a state interval, specifically the middle area state between completely no-oxidation defect and intermediate oxidation defect. This can overcome the problem that oxidation defects have continuous characteristic changes. The preset weight coefficient can be adjusted according to actual conditions, thereby realizing accurate measurement and judgment of wafer oxidation defects.
[0171] As an optional embodiment, obtaining the second characteristic value corresponding to the sample wafer includes:
[0172] Acquiring an initial RGB image of the sample wafer;
[0173] Preprocessing the initial RGB image to obtain a target grain area image of the sample wafer;
[0174] Acquiring energy data of the target grain region image;
[0175] The energy data of the target grain region image is subjected to dimension reduction and remapping of feature data to obtain the second feature value corresponding to the target grain region image.
[0176] The methods for obtaining the initial RGB image, preprocessing the initial RGB image, obtaining the energy data of the target grain area image, and performing dimensionality reduction and remapping of the feature data of the energy data of the target grain area image in the embodiment of the present application are respectively the same as the methods for obtaining the original RGB image, preprocessing the original RGB image, obtaining the energy data of the grain area image, and performing dimensionality reduction and remapping of the feature data of the energy data of the grain area image in the above-mentioned embodiments. Please refer to the aforementioned implementation methods and will not be repeated here.
[0177] Refer to the attached Figure 4 , attached Figure 4 This is a schematic diagram of the structure of the wafer oxidation defect detection device 300 provided in the embodiment of the present application. The device can be a module, program segment or code on an electronic device. It should be understood that the device is similar to the above-mentioned Figure 2 The method embodiment corresponds to the following Figure 2 The various steps involved in the method embodiment and the specific functions of the device can be found in the above description. To avoid repetition, detailed description is appropriately omitted here. Figure 4 As shown, the device includes: an acquisition module 301, a pre-processing module 302, an image energy acquisition module 303, a feature extraction module 304 and a defect detection module 305; wherein:
[0178] An acquisition module 301 is configured to acquire an original RGB image of the wafer to be inspected; wherein the original image includes red, green, and blue channels;
[0179] A preprocessing module 302 is used to preprocess the RGB original image to obtain a die area image of the wafer to be inspected;
[0180] An image energy acquisition module 303 is used to acquire energy data of the grain region image;
[0181] A feature extraction module 304 is configured to perform dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image;
[0182] The defect detection module 305 is configured to determine the oxidation defect of the wafer to be detected based on the first characteristic value and perform detection to obtain an oxidation defect detection result.
[0183] As an optional implementation manner, the image energy acquisition module 303 is specifically configured to:
[0184] The energy data of the grain region image is obtained according to the following formula:
[0185]
[0186]
[0187]
[0188] Among them, E R,h∈[0,255] 、E G,h∈[0,255] and E B,h∈[0,255] are the energy data of different gray levels in the red channel, green channel and blue channel of the same wafer image, N R,h∈[0,255] 、N G,h∈[0,255] and N B,h∈[0,255] are the energy statistics of the red channel, green channel and blue channel in the same wafer image, respectively. R (x,y),H G (x,y) and H B (x, y) are the grayscale values of the red channel, green channel, and blue channel corresponding to the same wafer image obtained by loop traversal, rows is the number of rows of the wafer image, and cols is the number of columns of the wafer image.
[0189] As an optional implementation, the feature extraction module 304 is specifically configured to:
[0190] According to a preset threshold, obtaining a preset number of gray levels corresponding to the grain area image;
[0191] Obtaining an average value of the energy attention concentration ranges of the red channel, the green channel, and the blue channel corresponding to the preset number of gray levels;
[0192] Obtaining coordinates of a red channel, a green channel, and a blue channel corresponding to the grain region image according to a mapping function;
[0193] Obtaining a first characteristic value of the grain region image according to the coordinates;
[0194] The first characteristic value includes the characteristic value of the wafer to be inspected in the horizontal axis direction.
[0195] As an optional implementation manner, the device further includes a judgment module, specifically configured to:
[0196] Obtaining a second characteristic value corresponding to the sample wafer;
[0197] The second characteristic value includes label data indicating whether the sample wafer is oxidized, and the label data includes a no-oxidation defect label, a moderate-oxidation defect label, and a severe-oxidation defect label;
[0198] Performing energy feature clustering on the second eigenvalues to obtain eigenvalues in the horizontal axis direction of samples corresponding to the no oxidation defect label and samples corresponding to the moderate oxidation defect label in the sample wafer;
[0199] Obtaining an absolute value of a difference between characteristic values of the sample corresponding to the no-oxidation-defect label and the sample corresponding to the moderate-oxidation-defect label in the horizontal axis direction to obtain a third characteristic value;
[0200] The step of performing oxidation defect detection on the wafer to be inspected according to the first characteristic value to obtain an oxidation defect detection result includes:
[0201] According to the first characteristic value and the third characteristic value, oxidation defect detection is performed on the wafer to be detected to obtain an oxidation defect detection result.
[0202] As an optional implementation manner, the judgment module is specifically configured to:
[0203] Obtaining an absolute value of a difference between the first characteristic value and a characteristic value of a sample corresponding to a label without oxidation defects in the sample wafer in the horizontal axis direction to obtain a fourth characteristic value;
[0204] If the product of the third eigenvalue and the preset weight coefficient is greater than the fourth eigenvalue, then the wafer to be inspected does not have oxidation defects;
[0205] If the product of the third eigenvalue and the preset weight coefficient is less than or equal to the fourth eigenvalue, then the wafer to be inspected has an oxidation defect.
[0206] As an optional implementation manner, the judgment module is specifically configured to:
[0207] Acquiring an initial RGB image of the sample wafer;
[0208] Preprocessing the initial RGB image to obtain a target grain area image of the sample wafer;
[0209] Acquiring energy data of the target grain region image;
[0210] The energy data of the target grain region image is subjected to dimension reduction and remapping of feature data to obtain the second feature value corresponding to the target grain region image.
[0211] As an optional implementation, the preprocessing module 302 is specifically configured to:
[0212] Performing grayscale processing on the red channel of the original RGB image to obtain a grayscale image;
[0213] performing binarization processing on the grayscale image to obtain a first grayscale image;
[0214] scaling the first grayscale image according to a region scaling algorithm to obtain a second grayscale image;
[0215] performing grayscale swapping on the second grayscale image to obtain a third grayscale image;
[0216] Obtaining a gradient value of the third grayscale image;
[0217] Obtaining the minimum outline enclosing rectangle corresponding to the grayscale image according to a minimum area criterion;
[0218] Obtaining the coordinates of the grain area corresponding to the minimum outline enclosing rectangle by using coordinate transformation;
[0219] A grain area image of the wafer to be inspected is acquired according to the coordinate mask.
[0220] In summary, the embodiment of the present application performs grayscale processing on the red channel of the original RGB image, which can make the contrast between the obtained grain area and the background image larger, avoid stripe distortion, facilitate the subsequent extraction of the grain area image, and reduce the difficulty of extracting the grain area image; by binarizing the grayscale image, the amount of data in the grayscale image is greatly reduced, so that the outline of the target can be highlighted; by scaling the first grayscale image, the residual background noise can be removed and the interference of the noise on the grain area image can be reduced; by calculating the gradient value of the third grayscale image, the minimum contour enclosing rectangle is obtained, the coordinate transformation is used to obtain the grain area rectangle coordinates, and the grain area image of the wafer to be inspected is obtained based on the coordinate mask. It can accurately locate the GPP wafer with any rotation direction, and segment the GPP wafer to obtain the grain area image, reducing the influence of background noise. Thus, an accurate grain area image is obtained; the features of the grain area image are quantified in the form of energy data, which is represented as the specific reflection of the difference in the number of photoelectrons in the image, which can improve the characterization ability of the wafer image features, thereby making the features of the grain area image more intuitive; based on the image energy attention mechanism, the energy features of the grain area are reduced in dimension and remapped, which can effectively reduce the data dimension of the high-dimensional wafer image, while retaining important feature data, reducing errors, reducing the impact of randomness, and more significantly reflecting the feature distribution differences of the grain area of each image; only a small number of sample wafers are needed to construct an accurate judgment decision boundary, and the absence of oxidation defects is a state interval, which can overcome the problem of continuous feature changes of oxidation defects. The preset weight coefficient can be adjusted according to actual conditions, thereby achieving accurate measurement and judgment of wafer oxidation defects.
[0221] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining an original RGB image of a wafer to be inspected; preprocessing the original RGB image to obtain a grain area image of the wafer to be inspected; obtaining energy data of the grain area image; performing dimensionality reduction and remapping of feature data on the energy data of the grain area image to obtain a first eigenvalue of the grain area image; and detecting oxidation defects of the wafer to be inspected based on the first eigenvalue to obtain an oxidation defect detection result.
[0222] This embodiment provides a storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining an original RGB image of a wafer to be inspected; preprocessing the original RGB image to obtain a grain area image of the wafer to be inspected; obtaining energy data of the grain area image; performing dimensionality reduction and remapping of feature data on the energy data of the grain area image to obtain a first eigenvalue of the grain area image; and detecting oxidation defects of the wafer to be inspected based on the first eigenvalue to obtain an oxidation defect detection result.
[0223] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0224] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0225] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0226] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.
[0227] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A wafer oxidation defect detection method, It is characterized in that include: Obtain the original RGB image of the wafer to be inspected; Preprocessing the original RGB image to obtain a grain area image of the wafer to be inspected; Acquiring energy data of the grain region image; According to a preset threshold, obtaining a preset number of gray levels corresponding to the grain area image; Obtain an average value of the energy attention concentration range of the red channel, the green channel, and the blue channel corresponding to the preset number of gray levels; wherein the average value of the energy attention concentration range is obtained by the following model: Among them, S h represents the pixel counts corresponding to different gray levels in the grain area image, f R (S h ) is the energy concentration mathematical model corresponding to the R channel in the grain region image, f G (S h ) is the energy concentration mathematical model corresponding to the G channel in the grain region image, f B (S h ) is the energy concentration mathematical model corresponding to the B channel in the grain area image, H R (x, y) is the gray value of the R channel corresponding to the pixel position (x, y), H G (x, y) is the gray value of the G channel corresponding to the pixel position (x, y), H B (x, y) is the gray value of the B channel corresponding to the pixel position (x, y), [T1, T2] is the minimum area of energy distribution, c (R, G, B) is the gray value corresponding to the energy concentration, n is the preset threshold, that is, the energy concentration deviation range, N ave (R) is the average value of the energy attention range of the R channel, N ave (G) is the average value of the energy attention range of the G channel, N ave (B) is the average value of the energy attention range of the B channel; n is the number of levels around the maximum gray level corresponding to the number of pixels in the gray level; The coordinates of the red channel, the green channel and the blue channel corresponding to the grain area image are obtained according to the mapping function; wherein the mapping function formula is as follows: f(R)=H-int(N ave (R)*(s / S)*max(R) / max(R)) f(G)=H-int(N ave (G)*(s / S)*max(G) / max(G)) f(B)=H-int(N ave (B)*(s / S)*max(B) / max(B)) Wherein, f(R) is the data remapping function of the eigenvalue point in the energy concentration of the R channel, f(G) is the data remapping function of the eigenvalue point in the energy concentration of the G channel, f(B) is the data remapping function of the eigenvalue point in the energy concentration of the B channel, int is the corresponding rounding function in the program, H, s and S are dimensionless constants respectively; Obtaining a first characteristic value of the grain area image according to the coordinates; wherein the first characteristic value includes a characteristic value of the wafer to be inspected in the horizontal coordinate direction; The oxidation defects of the wafer to be detected are detected according to the first characteristic value to obtain an oxidation defect detection result.
2. The method according to claim 1, It is characterized in that The step of acquiring energy data of the grain region image comprises: The energy data of the grain area image is obtained according to the following formula: Among them, E R,h∈[0,255] 、E G,h∈[0,255] and E B,h∈[0,255] are the energy data of different gray levels in the red channel, green channel and blue channel of the same wafer image, N R,h∈[0,255] 、N G,h∈[0,255] and N B,h∈[0,255] are the energy statistics of the red channel, green channel and blue channel in the same wafer image, respectively. R (x,y),H G (x,y) and H B (x, y) are the grayscale values of the red channel, green channel and blue channel corresponding to the same wafer image obtained by loop traversal, rows is the number of rows of the wafer image, and cols is the number of columns of the wafer image.
3. The method according to claim 1, It is characterized in that After performing dimension reduction and remapping of feature data on the energy data of the grain region image to obtain a first feature value of the grain region image, the method further includes: Obtaining a second characteristic value corresponding to the sample wafer; The second characteristic value includes label data of whether the sample wafer is oxidized, and the label data includes a no oxidation defect label, a moderate oxidation defect label, and a severe oxidation defect label; Performing energy feature clustering on the second eigenvalues to obtain eigenvalues of samples corresponding to the no oxidation defect label and samples corresponding to the moderate oxidation defect label in the sample wafer in the horizontal axis direction respectively; Obtaining an absolute value of a difference between the characteristic values of the sample corresponding to the no oxidation defect label and the sample corresponding to the moderate oxidation defect label in the horizontal axis direction to obtain a third characteristic value; The step of performing oxidation defect detection on the wafer to be detected according to the first characteristic value to obtain an oxidation defect detection result includes: According to the first characteristic value and the third characteristic value, oxidation defect detection is performed on the wafer to be detected to obtain an oxidation defect detection result.
4. The method according to claim 3, wherein the oxidation defect detection is performed on the wafer to be detected according to the first characteristic value and the third characteristic value to obtain an oxidation defect detection result, include: Obtaining an absolute value of a difference between the first characteristic value and the characteristic value of a sample corresponding to a label without oxidation defects in the sample wafer in the horizontal axis direction to obtain a fourth characteristic value; If the product of the third characteristic value and the preset weight coefficient is greater than the fourth characteristic value, then the wafer to be inspected does not have an oxidation defect; If the product of the third eigenvalue and the preset weight coefficient is less than or equal to the fourth eigenvalue, the wafer to be inspected has an oxidation defect.
5. The method according to claim 3, It is characterized in that The obtaining of the second characteristic value corresponding to the sample wafer includes: Acquire an initial RGB image of the sample wafer; Preprocessing the initial RGB image to obtain a target grain region image of the sample wafer; Acquiring energy data of the target grain region image; The energy data of the target grain region image is subjected to dimension reduction and remapping of feature data to obtain the second feature value corresponding to the target grain region image.
6. The method according to claim 1, It is characterized in that The preprocessing of the original RGB image to obtain the grain area image of the wafer to be inspected includes: Performing grayscale processing on the red channel of the original RGB image to obtain a grayscale image; Performing binarization processing on the grayscale image to obtain a first grayscale image; Scaling the first grayscale image according to a region scaling algorithm to obtain a second grayscale image; Performing grayscale swapping on the second grayscale image to obtain a third grayscale image; Obtaining a gradient value of the third grayscale image; Obtaining the minimum outline enclosing rectangle corresponding to the grayscale image according to a minimum area criterion; Obtaining the grain area coordinates corresponding to the minimum outline enclosing rectangle by using coordinate transformation; A grain area image of the wafer to be inspected is acquired according to the coordinate mask.
7. A wafer oxidation defect detection device, It is characterized in that include: A first acquisition module is used to acquire an original RGB image of the wafer to be inspected; wherein the original RGB image includes red, green and blue channels; A preprocessing module, used for preprocessing the original RGB image to obtain a grain area image of the wafer to be inspected; An image energy acquisition module, used for acquiring energy data of the grain region image; A second acquisition module, used for acquiring a preset number of gray levels corresponding to the grain area image according to a preset threshold; The third acquisition module is used to obtain the average value of the energy attention concentration range of the red channel, the green channel and the blue channel corresponding to the preset number of gray levels; wherein the average value of the energy attention concentration range is obtained by the following model: Among them, Sh represents the pixel counts corresponding to different gray levels in the grain area image, and f R (S h ) is the energy concentration mathematical model corresponding to the R channel in the grain region image, f G (S h ) is the energy concentration mathematical model corresponding to the G channel in the grain region image, f B (S h ) is the energy concentration mathematical model corresponding to the B channel in the grain area image, H R (x, y) is the gray value of the R channel corresponding to the pixel position (x, y), H G (x, y) is the gray value of the G channel corresponding to the pixel position (x, y), H B (x, y) is the gray value of the B channel corresponding to the pixel position (x, y), [T1, T2] is the minimum area of energy distribution, c (R, G, B) is the gray value corresponding to the energy concentration, n is the preset threshold, that is, the energy concentration deviation range, N ave (R) is the average value of the energy attention range of the R channel, N ave (G) is the average value of the energy attention range of the G channel, N ave (B) is the average value of the energy attention range of the B channel; n is the number of levels around the maximum gray level corresponding to the number of pixels in the gray level; The fourth acquisition module is used to obtain the coordinates of the red channel, the green channel and the blue channel corresponding to the grain area image according to the mapping function; wherein the mapping function formula is as follows: f(R)=H-int(N ave (R)*(s / S)*max(R) / max(R)) f(G)=H-int(N ave (G)*(s / S)*max(G) / max(G)) f(B)=H-int(N ave (B)*(s / S)*max(B) / max(B)) Wherein, f(R) is the data remapping function of the eigenvalue point in the energy concentration of the R channel, f(G) is the data remapping function of the eigenvalue point in the energy concentration of the G channel, f(B) is the data remapping function of the eigenvalue point in the energy concentration of the B channel, int is the corresponding rounding function in the program, H, s and S are dimensionless constants respectively; A fifth acquisition module, which obtains a first characteristic value of the grain area image according to the coordinates; wherein the first characteristic value includes a characteristic value of the wafer to be inspected in the horizontal coordinate direction; The defect detection module is used to determine the oxidation defect of the wafer to be detected according to the first characteristic value and obtain an oxidation defect detection result.
8. An electronic device, It is characterized in that include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is performed.
9. A storage medium, It is characterized in that The storage medium stores a computer program, which, when executed by a processor, executes the method according to any one of claims 1 to 6.
