Chip defect visual inspection method
Through multi-angle shooting and adaptive optical adjustment combined with deep learning technology, the microscopic characteristics of the chip solder joint area are extracted, which solves the problem that traditional detection methods are difficult to identify the fatigue degradation defects of the solder joint, and achieves high-precision defect detection and visualization results.
Patent Information
- Application Number
- CN202411937952.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-12-26
AI Technical Summary
Traditional chip defect detection methods are difficult to identify fatigue degradation defects in solder joint areas, and are easily disturbed by environmental conditions and detection equipment noise, resulting in limited detection effect.
Image acquisition is performed using a multi-angle shooting strategy and an adaptive optical adjustment mechanism. Combining a deep denoising network based on a convolutional autoencoder and a multi-scale convolutional network, the microscopic characteristics of the solder joint area are extracted through the attention mechanism, and defect classification and discrimination are used for use of classification models.
It significantly improves the accuracy and efficiency of defect detection in solder joint area, enhances the visual clarity and feature visibility of the image, reduces the impact of noise, and provides higher accuracy defect classification and visual inspection results.
Smart Images

Figure CN119515875A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip defect detection, and in particular to a chip defect visual detection method. Background Art
[0002] In the manufacturing and packaging process of semiconductor chips, defect detection is an important link to ensure product quality and reliability. The traditional method uses optical microscopy technology combined with automated detection based on machine vision to identify obvious defects on the chip surface through high-resolution imaging and feature extraction technology, thereby reducing the defect rate.
[0003] With the improvement of chip integration and the complexity of manufacturing processes, many hidden defects have gradually become key factors affecting chip performance and life. Among them, fatigue degradation in the solder joint area is a typical minor defect, which manifests as fine cracks or material degradation. Such defects are difficult to identify through traditional rule matching algorithms and are easily affected by environmental conditions and detection equipment noise. Existing methods address these problems by optimizing hardware resolution or strengthening image preprocessing to improve detection effects. However, this approach is highly dependent on resources and equipment. For defects in low-contrast areas such as solder joints, the detection effect is still limited, and it is easy to miss detection because the signal is masked by noise, which has become a technical bottleneck that urgently needs to be solved in chip defect detection. Summary of the invention
[0004] In view of the above existing problems, the present invention is proposed.
[0005] The present invention provides a chip defect visual detection method to solve the problem that fatigue degradation in the solder joint area is difficult to identify through traditional rule matching algorithms, and is easily interfered by environmental conditions and detection equipment noise. Traditional solutions have limited defect detection effects on low-contrast areas such as solder joint areas.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] An embodiment of the present invention provides a chip defect visual detection method, which includes:
[0008] Step S1, collecting image information of the chip surface and interior by an imaging device;
[0009] During the acquisition process, a multi-angle shooting strategy is used to capture image data, and an adaptive optical adjustment mechanism is combined to correct the optical path deviation;
[0010] Step S2, denoising and enhancing the collected image information to generate a feature map;
[0011] In the denoising stage, a deep denoising network based on convolutional autoencoder (CAE) is introduced to learn the feature distribution of noise-free images, remove noise and retain the details of the solder joint area.
[0012] In the enhancement stage, adaptive enhancement technology is used to process low-contrast areas to improve the visibility of characteristics at the edge of the solder joint;
[0013] Step S3, extracting microscopic characteristics of the solder joint area from the feature map using a deep learning model;
[0014] In step S3, a multi-scale convolutional network is used to capture the edge changes of the solder joint cracks and the texture characteristics of material degradation to form the microscopic features of the solder joints. At the same time, the attention mechanism is combined to focus on the detailed changes in the solder joint area and concentrate the computing resources on the potential defective parts.
[0015] Step S4, classifying and distinguishing the extracted microscopic characteristics through the classification model, determining whether the solder joint has fatigue degradation or other problems, and generating the detection results.
[0016] As a preferred solution of the chip defect visual detection method of the present invention, the step of collecting image information of the chip surface and interior is:
[0017] During the acquisition process, the shooting angle set is defined as θ = {θ1, θ2, …, θ n}, the image corresponding to each shooting angle is I(θ i ), the complete collection of images is I set :
[0018] I set = {I(θ1),I(θ2),…,I(θ n )},
[0019] Among them, θ i represents the i-th shooting angle, n represents the total number of shooting angles,
[0020] Construct an optical path deviation correction model, define the distortion function of the optical path deviation as D(x, y, t), and describe the pixel offset introduced by the optical path deviation during the acquisition process. The model formula is:
[0021] D(x,y,t)=α1x 2 +α2y 2 +βt,
[0022] Among them, x and y are the horizontal and vertical coordinates of the pixel point, t is the acquisition time step, α1 and α2 represent the horizontal and vertical optical distortion coefficients respectively, and β represents the time-related distortion correction coefficient.
[0023] As a preferred embodiment of the chip defect visual detection method of the present invention, the step of collecting image information of the chip surface and interior also includes:
[0024] Perform image correction, the correction formula is:
[0025] I c (x,y,θ i ) = f c (I(x′,y′,θ i )),
[0026] Among them, I(x′,y′,θ i ) is the original image, I c (x,y,θ i ) is the corrected image, f c (·) is the correction function, and the coordinates of the corrected position (x′, y′) are:
[0027]
[0028] in,
[0029] and are the partial derivatives of the distortion function D(x,y,t) with respect to the x and y coordinates, respectively, used to describe the correction amount of the optical path deviation in the x and y directions.
[0030] The corrected multi-angle image set is denoted as I set,c :
[0031] I set,c = {I c (x,y,θ1),I c (x,y,θ2),…,I c (x,y,θ n )},
[0032] Among them, I c (x,y,θ i ) is the angle θ i The corrected image below.
[0033] As a preferred solution of the chip defect visual detection method described in the present invention, wherein: in the denoising stage of the step of denoising and enhancing the collected image information to generate a feature map:
[0034] The convolutional autoencoder is introduced to establish a denoising network, and the mapping relationship is:
[0035]
[0036] Where I is the input image, I dis the denoised image, Represents the nonlinear mapping function of the network, parameter W is the network weight matrix, b is the bias vector,
[0037] The encoder is used to extract features. The CAE encoder converts the input image I into feature F e , the formula is:
[0038] F e =σ(W e I+b e ),
[0039] Among them, F e represents the encoding feature, W e represents the convolution weight of the encoder, b e is the bias of the encoder, σ represents the activation function, using the ReLU function,
[0040] The decoder passes F e Reconstruct denoised image I d , the reconstruction formula is:
[0041] I d =σ(W d ·F e +b d ),
[0042] Among them, W d is the deconvolution weight of the decoder, b d is the bias,
[0043] The loss function is introduced for optimization, and the loss function L is:
[0044] L=|I d -I clean | 2 +λ|F e -F e,clean | 2 ,
[0045] Among them, I clean is a noise-free image, F e,clean is the ideal feature distribution, and λ is the feature retention weight.
[0046] As a preferred solution of the chip defect visual detection method described in the present invention, in the enhancement stage of the step of denoising and enhancing the collected image information to generate a feature map:
[0047] For the denoised image I d Adaptive enhancement technology is used for optimization, and the enhanced image is I e , the enhancement formula is:
[0048] Ie (x,y)=I d (x,y)·(1+γ(x,y)),
[0049] Among them, γ(x,y) is the enhancement coefficient, describing the local contrast, and is defined as:
[0050]
[0051] Where k is the enhancement factor,
[0052] Histogram equalization is used to optimize low-contrast areas, and the enhancement formula is:
[0053]
[0054] Among them, H c (I e ) is the input image I e After histogram equalization, the mapping value P(I) represents the normalized probability distribution of the image pixel intensity, and the calculation formula is:
[0055]
[0056] I e is the input enhanced image, and dI represents the integral variable.
[0057] As a preferred embodiment of the chip defect visual detection method of the present invention, the step of extracting the microscopic characteristics of the solder joint area from the feature map using the deep learning model is as follows:
[0058] The features of the solder joint area are extracted through a multi-scale convolutional network, and the feature mapping formula is:
[0059]
[0060] Among them, F s represents the multi-scale feature map, W k is the kth convolution kernel, K represents the total number of convolution kernels, * represents the convolution operation, and I e is the input enhanced image,
[0061] Calculate the edge gradient strength and capture the edge change characteristics. The calculation formula is:
[0062]
[0063] in, represents the gradient strength of edge changes,
[0064] and They are feature maps F sThe partial derivatives in the x and y coordinate directions,
[0065] The local texture descriptor is used to extract the texture characteristics of material degradation. The formula is:
[0066]
[0067] Among them, T(x,y) represents the texture feature value, N represents the number of directions of texture calculation, i is the index of the direction of current calculation, G i is the weighting factor of the i-th direction, φ(F s ,x,y) means the coordinate (x,y) is based on the feature F s Nonlinear texture transformation function.
[0068] As a preferred solution of the chip defect visual detection method described in the present invention, in step S3, an attention mechanism is introduced:
[0069] By focusing on the detail changes in the solder joint area through the attention mechanism, the adjusted feature mapping formula is:
[0070] F a (x,y)=A(x,y)·F s (x,y),
[0071] Among them, F a (x, y) represents the feature map after attention mechanism adjustment, A(x, y) is the attention weight, W a is the weight parameter of the attention mechanism, F s (x,y) is the multi-scale eigenvalue at (x,y),
[0072] ∑ (x′,y′) exp(W a ·F s (x′, y′)) is a normalization factor, which is used to perform weighted summation of the features at all positions (x′, y′) on the entire feature map;
[0073] Combining multi-scale features, edge gradient features and texture features, the final comprehensive feature F is obtained. out (x,y):
[0074]
[0075] Among them, F out (x, y) is the comprehensive feature of the final output, λ1, λ2, λ3 are weighting coefficients, which measure the importance of multi-scale features, edge gradients and texture features respectively.
[0076] As a preferred solution of the chip defect visual detection method described in the present invention, in the process of defect classification and discrimination, solder joint defect comparison samples are introduced into the classification model, and the solder joint area is visually annotated, and the annotation content includes the defect location and its severity.
[0077] As a preferred embodiment of the chip defect visual detection method of the present invention, the step of classifying and distinguishing the extracted microscopic characteristics by using the classification model is as follows:
[0078] Define the classification model, and input the comprehensive feature F into the model out , the defect category C is predicted by the classification model, the formula is:
[0079] C = argmax(σ(W c ·F out +b c )),
[0080] Among them, C is the classification result, W c is the weight matrix of the classification model, b c is the classification bias, σ is the activation function,
[0081] In the process of classification model training, comparative samples of solder joint defects are introduced to optimize the loss function L c , the formula is:
[0082]
[0083] Among them, L c is the classification loss, N is the number of samples, y i represents the true label of sample i, p i is the defect probability predicted by the model.
[0084] As a preferred solution of the chip defect visual detection method of the present invention, the step of generating the detection result is:
[0085] The solder joint defects are displayed by generating a visual annotation diagram. The annotation formula is:
[0086] I v (x,y)=I(x,y)+α·M(x,y),
[0087] Among them, I v (x, y) represents the visualized image after superimposition and annotation, I(x, y) is the original image, M(x, y) is the defect mask, α is the transparency factor,
[0088] The annotation content includes the defect location and its severity. The defect location is calculated through the mask:
[0089] If (x, y) belongs to the defect area, then M(x, y) = 1, otherwise M(x, y) = 0,
[0090] The severity level S is defined as the ratio of the defect area to the total area of the solder joint:
[0091]
[0092] The beneficial effects of the present invention are as follows: the present invention, through a multi-angle shooting strategy and an adaptive optical adjustment mechanism, realizes real-time correction of optical path deviation in the image acquisition stage, eliminates pixel offset problems caused by equipment errors or optical distortions, and enhances the comprehensiveness and consistency of image data. In the denoising stage, a deep denoising network based on a convolutional autoencoder CAE is introduced to learn the characteristic distribution of noise-free images, and specifically remove random noise in the acquired images, while retaining important detail features in the solder joint area, avoiding the problem of detail loss that may be caused by noise processing in traditional methods.
[0093] The present invention combines adaptive enhancement technology and histogram equalization to optimize low-contrast areas in the enhancement stage, making the edge characteristics of the solder joint more prominent and significantly improving the visual clarity and feature visibility of the image; in the feature extraction stage, a multi-scale convolutional network is used to capture the edge changes of solder joint cracks and the texture characteristics of material degradation, while focusing on the detail changes in potential defect areas through an attention mechanism, concentrating computing resources on key parts, and improving the accuracy and efficiency of feature extraction; making up for the limitations of traditional methods in dealing with subtle solder joint characteristics; in the defect classification stage, the classification model is optimized in combination with solder joint defect comparison samples, and high-precision defect classification is achieved through the classification and discrimination of microscopic features, and the defect location and severity are intuitively displayed through visual annotation, providing users with clearer detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0095] Figure 1 It is a schematic diagram of the process of the chip defect visual detection method of the present invention. DETAILED DESCRIPTION
[0096] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0097] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0098] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0099] Example 1, reference Figure 1 , this embodiment provides a chip defect visual detection method, comprising the following steps:
[0100] Step S1, collecting image information of the chip surface and interior by an imaging device;
[0101] During the acquisition process, a multi-angle shooting strategy is used to capture image data, and an adaptive optical adjustment mechanism is combined to correct the optical path deviation;
[0102] The steps to collect image information on the chip surface and inside are:
[0103] During the acquisition process, the shooting angle set is defined as θ = {θ1, θ2, …, θ n}, the image corresponding to each shooting angle is I(θ i ), the complete collection of images is I set :
[0104] I set = {I(θ1),I(θ2),…,I(θ n )},
[0105] Among them, θ i represents the i-th shooting angle, n represents the total number of shooting angles,
[0106] Construct an optical path deviation correction model, define the distortion function of the optical path deviation as D(x, y, t), and describe the pixel offset introduced by the optical path deviation during the acquisition process. The model formula is:
[0107] D(x,y,t)=α1x 2 +α2y 2 +βt,
[0108] Among them, x, y are the horizontal and vertical coordinates of the pixel point, t is the acquisition time step, α1, α2 represent the horizontal and vertical optical distortion coefficients respectively, and β represents the time-related distortion correction coefficient.
[0109] The step of collecting image information on the surface and inside of the chip also includes,
[0110] Perform image correction, the correction formula is:
[0111] I c (x,y,θ i ) = f c (I(x′,y′,θ i )),
[0112] Among them, I(x′,y′,θ i ) is the original image, I c (x,y,θ i ) is the corrected image, f c (·) is the correction function, and the coordinates of the corrected position (x′, y′) are:
[0113]
[0114] in,
[0115] and are the partial derivatives of the distortion function D(x,y,t) with respect to the x and y coordinates, respectively, used to describe the correction amount of the optical path deviation in the x and y directions.
[0116] The corrected multi-angle image set is denoted as I set,c :
[0117] I set,c = {I c (x,y,θ1),I c (x,y,θ2),…,I c (x,y,θ n )},
[0118] Among them, I c (x,y,θ i ) is the angle θ i The corrected image below;
[0119] Specifically, a multi-angle shooting strategy is used to cover detailed information on the chip surface and inside at different angles. Combined with optical path correction technology, the pixel offset problem introduced by optical deviation or equipment error during the acquisition process is effectively solved. The correction process is based on the partial derivative mathematical model to quantitatively compensate for the distortion, so that multi-angle images can maintain spatial consistency, improve data accuracy and completeness, and significantly reduce the impact of the external environment on detection accuracy.
[0120] Step S2, denoising and enhancing the collected image information to generate a feature map;
[0121] In the denoising stage, a deep denoising network based on convolutional autoencoder (CAE) is introduced to learn the feature distribution of noise-free images, remove noise and retain the details of the solder joint area.
[0122] In the enhancement stage, adaptive enhancement technology is used to process low-contrast areas to improve the visibility of characteristics at the edge of the solder joint;
[0123] The collected image information is denoised and enhanced to generate the feature map in the denoising stage:
[0124] The convolutional autoencoder is introduced to establish a denoising network, and the mapping relationship is:
[0125]
[0126] Where I is the input image, I d is the denoised image, Represents the nonlinear mapping function of the network, parameter W is the network weight matrix, b is the bias vector,
[0127] The encoder is used to extract features. The CAE encoder converts the input image I into feature F e , the formula is:
[0128] F e =σ(W e I+b e ),
[0129] Among them, F e represents the encoding feature, W e represents the convolution weight of the encoder, b e is the bias of the encoder, σ represents the activation function, using the ReLU function,
[0130] The decoder passes F e Reconstruct denoised image I d , the reconstruction formula is:
[0131] I d =σ(W d ·F e +b d ),
[0132] Among them, W d is the deconvolution weight of the decoder, b d is the bias,
[0133] The loss function is introduced for optimization, and the loss function L is:
[0134] L=|I d -I clean | 2 +λ|F e -Fe,clean | 2 ,
[0135] Among them, I clean is a noise-free image, F e,clean is the ideal feature distribution, λ is the feature retention weight;
[0136] The collected image information is denoised and enhanced to generate the feature map in the enhancement stage:
[0137] For the denoised image I d Adaptive enhancement technology is used for optimization, and the enhanced image is I e , the enhancement formula is:
[0138] I e (x,y)=I d (x,y)·(1+γ(x,y)),
[0139] Among them, γ(x,y) is the enhancement coefficient, describing the local contrast, and is defined as:
[0140]
[0141] Where k is the enhancement factor,
[0142] Histogram equalization is used to optimize low-contrast areas, and the enhancement formula is:
[0143]
[0144] Among them, H c (I e ) is the input image I e After histogram equalization, the mapping value P(I) represents the normalized probability distribution of the image pixel intensity, and the calculation formula is:
[0145]
[0146] I e is the input enhanced image, dI represents the integral variable;
[0147] Specifically, in the denoising stage, a convolutional autoencoder is used to remove random noise in the captured image while retaining the key detail features of the solder joint area. In the enhancement stage, adaptive enhancement technology is used to improve the overall clarity of the image.
[0148] Step S3, extracting microscopic characteristics of the solder joint area from the feature map using a deep learning model;
[0149] In step S3, a multi-scale convolutional network is used to capture the edge changes of the solder joint cracks and the texture characteristics of material degradation to form the microscopic features of the solder joints. At the same time, the attention mechanism is combined to focus on the detailed changes in the solder joint area and concentrate the computing resources on the potential defective parts.
[0150] The steps of extracting the microscopic characteristics of the solder joint area from the feature map using the deep learning model are as follows:
[0151] The features of the solder joint area are extracted through a multi-scale convolutional network, and the feature mapping formula is:
[0152]
[0153] Among them, F s represents the multi-scale feature map, W k is the kth convolution kernel, K represents the total number of convolution kernels, * represents the convolution operation, and I e is the input enhanced image,
[0154] Calculate the edge gradient strength and capture the edge change characteristics. The calculation formula is:
[0155]
[0156] in, represents the gradient strength of edge changes,
[0157] and They are feature maps F s The partial derivatives in the x and y coordinate directions,
[0158] The local texture descriptor is used to extract the texture characteristics of material degradation. The formula is:
[0159]
[0160] Among them, T(x,y) represents the texture feature value, N represents the number of directions of texture calculation, i is the index of the direction of current calculation, G i is the weighting factor of the i-th direction, φ(F s ,x,y) means the coordinate (x,y) is based on the feature F s Nonlinear texture transformation function;
[0161] In step S3, the attention mechanism is introduced:
[0162] By focusing on the detail changes in the solder joint area through the attention mechanism, the adjusted feature mapping formula is:
[0163] F a (x,y)=A(x,y)·F s (x,y),
[0164] Among them, F a (x, y) represents the feature map after attention mechanism adjustment, A(x, y) is the attention weight, W a is the weight parameter of the attention mechanism, F s (x,y) is the multi-scale eigenvalue at (x,y),
[0165] ∑ (x′,y′) exp(W a ·F s (x′, y′)) is a normalization factor, which is used to perform weighted summation of the features at all positions (x′, y′) on the entire feature map;
[0166] Combining multi-scale features, edge gradient features and texture features, the final comprehensive feature F is obtained. out (x,y):
[0167]
[0168] Among them, F out (x, y) is the comprehensive feature of the final output, λ1, λ2, λ3 are weighting coefficients, which measure the importance of multi-scale features, edge gradients and texture features respectively;
[0169] Specifically, a multi-scale convolutional network is used to capture the microscopic characteristics of the solder joint area, edge gradient calculation is used to extract crack changes, local texture descriptors are used to model material degradation characteristics, and an attention mechanism is used to focus on key details of potential defective areas. Finally, multi-scale characteristics, edge information, and texture features are fully integrated to construct comprehensive features.
[0170] Step S4, classifying and distinguishing the extracted microscopic characteristics through the classification model, determining whether the solder joint has fatigue degradation or other problems, and generating the detection results;
[0171] In the process of defect classification and identification, solder joint defect comparison samples are introduced into the classification model, and the solder joint area is visually annotated, including the defect location and its severity;
[0172] The steps of defect classification and identification of extracted microscopic characteristics through classification model are as follows:
[0173] Define the classification model, and input the comprehensive feature F into the model out , the defect category C is predicted by the classification model, the formula is:
[0174] C = argmax(σ(W c ·F out +b c )),
[0175] Among them, C is the classification result, W c is the weight matrix of the classification model, b c is the classification bias, σ is the activation function,
[0176] In the process of classification model training, comparative samples of solder joint defects are introduced to optimize the loss function L c , the formula is:
[0177]
[0178] Among them, L c is the classification loss, N is the number of samples, y i represents the true label of sample i, p i The defect probability predicted by the model;
[0179] The steps to generate the test results are:
[0180] The solder joint defects are displayed by generating a visual annotation diagram. The annotation formula is:
[0181] I v (x,y)=I(x,y)+α·M(x,y),
[0182] Among them, I v (x, y) represents the visualized image after superimposition and annotation, I(x, y) is the original image, M(x, y) is the defect mask, α is the transparency factor,
[0183] The annotation content includes the defect location and its severity. The defect location is calculated through the mask:
[0184] If (x, y) belongs to the defect area, then M(x, y) = 1, otherwise M(x, y) = 0,
[0185] The severity level S is defined as the ratio of the defect area to the total area of the solder joint:
[0186]
[0187] Specifically, the classification model analyzes the microscopic features of the solder joints and optimizes the training based on comparative samples to achieve the classification of solder joint defects. At the same time, it uses visualization technology to intuitively display the detection results, including the defect location and severity. Combined with the deep fusion of data-driven and image features, it not only improves the accuracy of defect classification, but also provides users with detection results.
[0188] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A chip defect visual detection method, characterized in that: include, Step S1, collecting image information of the chip surface and interior by an imaging device; During the acquisition process, a multi-angle shooting strategy is used to capture image data, and an adaptive optical adjustment mechanism is combined to correct the optical path deviation; Step S2, denoising and enhancing the collected image information to generate a feature map; In the denoising stage, a deep denoising network based on convolutional autoencoder (CAE) is introduced to learn the feature distribution of noise-free images, remove noise and retain the details of the solder joint area. In the enhancement stage, adaptive enhancement technology is used to process low-contrast areas to improve the visibility of characteristics at the edge of the solder joint; Step S3, extracting microscopic characteristics of the solder joint area from the feature map using a deep learning model; In step S3, a multi-scale convolutional network is used to capture the edge changes of the solder joint cracks and the texture characteristics of material degradation to form the microscopic features of the solder joints. At the same time, the attention mechanism is combined to focus on the detailed changes in the solder joint area and concentrate the computing resources on the potential defective parts. Step S4, classifying and distinguishing the extracted microscopic characteristics through the classification model, determining whether the solder joint has fatigue degradation or other problems, and generating the detection results.
2. A chip defect visual detection method as claimed in claim 1, characterized in that: The step of collecting image information on the surface and inside of the chip is: During the acquisition process, the shooting angle set is defined as θ = {θ1, θ2, …, θ n }, the image corresponding to each shooting angle is I(θ i ), the complete collection of images is I set : I set ={I(θ1),I(θ2),…,I(θ n )}, Among them, θ i represents the i-th shooting angle, n represents the total number of shooting angles, Construct an optical path deviation correction model, define the distortion function of the optical path deviation as D(x, y, t), and describe the pixel offset introduced by the optical path deviation during the acquisition process. The model formula is: D(x,y,t)=α1x 2 +α2y 2 +βt, Among them, x and y are the horizontal and vertical coordinates of the pixel point, y is the acquisition time step, α1 and α2 represent the horizontal and vertical optical distortion coefficients respectively, and β represents the time-related distortion correction coefficient.
3. A chip defect visual detection method as claimed in claim 2, characterized in that: The step of collecting image information on the surface and inside of the chip also includes: Perform image correction, the correction formula is: I c (x,y,θ i )=f c (I(x′,y′,θ i )), Among them, I(x′,y′,θ i ) is the original image, I c (x,y,θ i ) is the corrected image, f c (·) is the correction function, and the coordinates of the corrected position (x′, y′) are: in, and are the partial derivatives of the distortion function D(x,y,t) with respect to the x and y coordinates, respectively, used to describe the correction amount of the optical path deviation in the x and y directions. The corrected multi-angle image set is denoted as I set,c : I set,c ={I c (x,y,θ1),I c (x,y,θ2),…,I c (x,y,θ n )}, Among them, I c (x,y,θ i ) is the angle θ i The corrected image below.
4. A chip defect visual detection method as claimed in claim 3, characterized in that: In the denoising stage of the step of denoising and enhancing the collected image information to generate a feature map: The convolutional autoencoder is introduced to establish a denoising network, and the mapping relationship is: Where I is the input image, I d is the denoised image, Represents the nonlinear mapping function of the network, parameter W is the network weight matrix, b is the bias vector, The encoder is used to extract features. The CAE encoder converts the input image I into feature F e , the formula is: F e =σ(W e ·I+b e ), Among them, F e represents the encoding feature, W e represents the convolution weight of the encoder, b e is the bias of the encoder, σ represents the activation function, using the ReLU function, The decoder passes F e Reconstruct denoised image I d , the reconstruction formula is: I d =σ(W d ·F e +b d ), Among them, W d is the deconvolution weight of the decoder, b d is the bias, The loss function is introduced for optimization, and the loss function L is: L=|I d -I clean | 2 +λ|F e -F e,clean | 2 , Among them, I clean is a noise-free image, F e,clean is the ideal feature distribution, and λ is the feature retention weight.
5. A chip defect visual detection method as claimed in claim 4, characterized in that: In the enhancement stage of the step of performing denoising and enhancement processing on the collected image information to generate a feature map: For the denoised image I d Adaptive enhancement technology is used for optimization, and the enhanced image is I e , the enhancement formula is: I e (x,y)=I d (x,y)·(1+γ(x,y)), Among them, γ(x,y) is the enhancement coefficient, describing the local contrast, and is defined as: Where k is the enhancement factor, Histogram equalization is used to optimize low-contrast areas, and the enhancement formula is: Among them, H c (I e ) is the input image I e After the histogram equalization, the mapping value P(I) represents the normalized probability distribution of the image pixel intensity, and the calculation formula is: I e is the input enhanced image, and dI represents the integral variable.
6. A chip defect visual detection method as claimed in claim 5, characterized in that: The step of extracting the microscopic characteristics of the solder joint area from the feature map using the deep learning model is: The features of the solder joint area are extracted through a multi-scale convolutional network, and the feature mapping formula is: Among them, F s represents the multi-scale feature map, W k is the kth convolution kernel, K represents the total number of convolution kernels, * represents the convolution operation, and I e is the input enhanced image, Calculate the edge gradient strength and capture the edge change characteristics. The calculation formula is: in, represents the gradient strength of edge changes, and They are feature maps F s The partial derivatives in the x and y coordinate directions, The local texture descriptor is used to extract the texture characteristics of material degradation. The formula is: Among them, T(x,y) represents the texture feature value, N represents the number of directions of texture calculation, i is the index of the direction of current calculation, G i is the weighting factor of the i-th direction, φ(F s ,x,y) means the coordinate (x,y) is based on the feature F s Nonlinear texture transformation function.
7. A chip defect visual detection method as claimed in claim 6, characterized in that: In step S3, the attention mechanism is introduced: By focusing on the detail changes in the solder joint area through the attention mechanism, the adjusted feature mapping formula is: Among them, F a (x, y) represents the feature map after attention mechanism adjustment, A(x, y) is the attention weight, W a is the weight parameter of the attention mechanism, F s (x,y) is the multi-scale eigenvalue at (x,y), ∑ (x′,y′) exp(W a ·F s (x′, y′)) is a normalization factor, which is used to perform weighted summation of the features at all positions (x′, y′) on the entire feature map; Combining multi-scale features, edge gradient features and texture features, the final comprehensive feature F is obtained. out (x,y): Among them, F out (x, y) is the comprehensive feature of the final output, λ1, λ2, λ3 are weighting coefficients, which measure the importance of multi-scale features, edge gradients and texture features respectively.
8. A chip defect visual detection method as claimed in claim 7, characterized in that: In the process of defect classification and identification, solder joint defect comparison samples are introduced into the classification model, and the solder joint area is visually annotated, and the annotation content includes the defect location and its severity.
9. A chip defect visual detection method as claimed in claim 8, characterized in that: The step of classifying and distinguishing the extracted microscopic characteristics by using the classification model is as follows: Define the classification model, and input the comprehensive feature F into the model out , the defect category C is predicted by the classification model, the formula is: C=argmax(σ(W c ·F out +b c )), Among them, C is the classification result, W c is the weight matrix of the classification model, b c is the classification bias, σ is the activation function, In the process of classification model training, comparative samples of solder joint defects are introduced to optimize the loss function L c , the formula is: Among them, L c is the classification loss, N is the number of samples, y i represents the true label of sample i, p i is the defect probability predicted by the model.
10. A chip defect visual inspection method according to claim 9, characterized in that: The steps of generating the detection result are: The solder joint defects are displayed by generating a visual annotation diagram. The annotation formula is: I v (x,y)=I(x,y)+α·M(x,y), Among them, I v (x, y) represents the visualized image after superimposition and annotation, I(x, y) is the original image, M(x, y) is the defect mask, α is the transparency factor, The annotation includes the defect location and its severity. The defect location is calculated using the mask: If (x, y) belongs to the defect area, then M(x, y) = 1, otherwise M(x, y) = 0, The severity level S is defined as the ratio of the defect area to the total area of the solder joint:
Citation Information
Patent Citations
Real image denoising method based on multi-scale fusion and edge enhancement
CN112233038A
Electronic component defect identification method and device based on multi-task multi-size network
CN116228637A
Part detection method, device and equipment based on visual identification and storage medium
CN117953312A
Mask plate defect positioning and classifying method and system based on machine vision
CN118071734A
Automobile gear production defect detection method
CN118212240A
Cited By
Feedback driving chip defect classification method and system based on visual analysis
CN119888381A
Feedback-driven Chip Defect Classification Method and System Based on Visual Analysis
CN119888381B
Chip packaging quality detection optimization method based on 2D and 3D composite imaging
CN120088256A
Welding defect detection method and system based on visual mixed attention mechanism
CN120259280A
Method and system for detecting surface defects of display chip
CN120495244A