A method and system for defect detection of phemts

By combining gradient response images, adaptive threshold segmentation, Gaussian difference, and deep residual convolutional networks, the problem of identifying complex shapes and tiny defects in PHEMT defect detection is solved, achieving high-precision defect region segmentation and classification, and improving the accuracy and reliability of detection.

CN120852411BActive Publication Date: 2025-12-30ZHONGKE (SHENZHEN) WIRELESS SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511349728.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-22
Publication Date
2025-12-30
Estimated Expiration
2045-09-22

AI Technical Summary

Technical Problem

Existing PHEMT defect detection methods are ill-suited for complex defect morphologies and minute defects, have low classification accuracy, and are easily affected by uneven lighting and background noise, resulting in poor detection performance.

Method used

By combining gradient response images, adaptive thresholding, Gaussian difference, and deep residual convolutional networks, and through image processing techniques and deep learning models, accurate segmentation and classification of defect regions can be achieved.

Benefits of technology

It improves the accuracy and reliability of defect detection, effectively distinguishes complex defect categories, reduces background noise interference, and achieves automated high-precision detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120852411B_ABST
    Figure CN120852411B_ABST
Patent Text Reader

Abstract

The application discloses a kind of defect detection method and system of PHEMT, it is related to electronic device detection technical field, method includes: obtaining the surface image of PHEMT;The surface image is preprocessed, and target image is determined;The gradient response image of the target image is calculated;The gradient response image is iteratively thresholded, and final mask gradient image is determined;According to the target image, by Gaussian difference and fixed threshold segmentation, Gaussian segmentation image is determined;The Gaussian segmentation image and the final mask gradient image are merged, and defect region is determined;The defect feature of the defect region is extracted;According to the defect feature, by deep residual convolution network, defect classification is carried out, and the defect category of the PHEMT is output.The application can more accurately determine defect region, avoid the problem that defect region is not complete, improve the accuracy of defect region identification, ensure the integrity and accuracy of defect region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic device testing technology, and in particular to a defect detection method and system for PHEMT. Background Technology

[0002] PHEMTs are semiconductor devices based on high electron mobility technology, widely used in high-frequency, high-power electronic devices such as radar, communication, and satellite technologies. Due to their complex manufacturing processes and harsh operating environments, PHEMTs are prone to various defects during production or use, such as cracks, surface scratches, material inhomogeneities, bubbles, or inclusions. These defects can lead to performance degradation or even device failure; therefore, efficient defect detection technology is crucial to ensuring the quality and reliability of PHEMTs. Currently, PHEMT defect detection methods typically combine modern image processing techniques and deep learning models, such as hyperspectral image analysis, gradient response image processing, differential Gaussian image processing, and deep residual convolutional networks (DFFNs), to achieve automated defect identification and classification. However, traditional defect detection methods still have many shortcomings. First, traditional methods often rely on manually designed features, making it difficult to fully extract effective features for complex defect morphologies or minute defects, resulting in low detection accuracy and difficulty adapting to diverse defect types and complex detection environments. Second, traditional defect classification methods are usually based on simple rules, unable to handle complex defect categories, often resulting in low classification accuracy and affecting the overall reliability and accuracy of the detection. Furthermore, traditional methods are susceptible to interference from uneven illumination, background noise, and complex textures during image segmentation, leading to incomplete defect region extraction or blurred boundaries, further reducing detection accuracy. To address these issues, a technical solution is urgently needed that can accurately extract defect regions, effectively distinguish complex defect categories, and improve detection precision. This invention combines gradient response images, adaptive thresholding, Gaussian difference, and deep residual convolutional networks to achieve more accurate defect region localization and classification, thereby overcoming the limitations of existing technologies and improving the overall performance and reliability of PHEMT defect detection. Summary of the Invention

[0003] This invention addresses the shortcomings of existing PHEMT defect detection methods, such as reliance on manually designed features, difficulty in adapting to complex defect morphologies or minute defects, and low classification accuracy. Therefore, this invention adopts the following technical solution:

[0004] This invention provides a defect detection method for PHEMT (Problem Detection Technology), aiming to achieve accurate segmentation and classification of defect regions by combining image processing techniques and deep learning models. The method includes the following steps:

[0005] S1: Obtain the surface image of PHEMT.

[0006] High-resolution imaging equipment is used to acquire images of the surface of the PHEMT device to ensure image clarity and detail integrity. The high-resolution imaging equipment features uniform illumination compensation to reduce image quality fluctuations caused by changes in ambient light.

[0007] S2: Preprocess the surface image to determine the target image.

[0008] Furthermore, the preprocessing includes normalization and flattening. The normalization process performs a linear transformation on the image pixel values, adjusting the pixel value range to the [0,1] interval to eliminate the influence of uneven illumination. The flattening process uses a background modeling algorithm to remove background inhomogeneities in the image, highlighting the feature information of defective areas.

[0009] S3: Calculate the gradient response image of the target image.

[0010] The Sobel operator is used to perform convolution operations on the target image to extract regions with significant brightness variations. The Sobel operator calculates the gradient magnitude in both the horizontal and vertical directions, and obtains the gradient intensity for each pixel by summing the squares and taking the square root. This gradient response image is used to locate defect edges, providing foundational data for subsequent thresholding.

[0011] S4: Perform iterative threshold segmentation on the gradient response image to determine the final mask gradient image.

[0012] Furthermore, the iterative thresholding segmentation includes adaptive thresholding segmentation and mask optimization. The adaptive thresholding segmentation dynamically adjusts the segmentation threshold based on local grayscale information, specifically by constructing a Gaussian weight matrix to perform a weighted average of the gradient response image, generating a binary image. The kernel function of the Gaussian weight matrix is ​​defined as... Where σ is the standard deviation of the Gaussian kernel, and x and y are the spatial coordinates of the convolution kernel center. The mask optimization removes strong gradient regions from the gradient response image and retains low-contrast regions related to defects by inverting the binary image and using it as a mask. The above steps are repeated until the iteration termination condition is met, generating the final mask gradient image. The iteration termination condition is that the change in mask gradient information between two iterations is less than a preset threshold δori, and the number of iterations does not exceed the maximum number of iterations N.

[0013] S5: Based on the target image, determine the Gaussian segmented image by using Gaussian difference and fixed threshold segmentation.

[0014] Furthermore, the Gaussian difference method obtains multi-scale feature information by constructing a scale-space image. The formula for generating the scale-space image is as follows: The Gaussian difference formula is as follows: The Gaussian difference result is then subjected to fixed threshold segmentation to generate a Gaussian segmented image. This fixed threshold segmentation uses a global threshold Tg to mark pixels in the Gaussian difference image larger than Tg as defect regions, and the remaining pixels as background regions.

[0015] S6: Merge the Gaussian segmentation image and the final mask gradient image to determine the defect region.

[0016] Further, it is determined whether the Gaussian segmentation image and the final mask gradient image can be merged. This is done by calculating the spatial distance d between them and determining if it is less than a preset spatial distance threshold ds. The spatial distance formula is as follows: , where p x and p y These are the corresponding pixel coordinates of the Gaussian segmentation image and the final mask gradient image, respectively. If the merging condition is met, the two images are fused using a logical AND operation to generate the complete defect region.

[0017] S7: Extract the defect features of the defect region.

[0018] Furthermore, texture, shape, and color features are extracted from the defect area. The texture features are calculated using a gray-level co-occurrence matrix (GLCM) and include contrast, correlation, and energy indices. The shape features are obtained using a boundary contour fitting algorithm and include area, perimeter, and roundness. The color features are obtained through statistical analysis of the RGB channels of the defect area, including mean, variance, and skewness.

[0019] S8: Based on the defect characteristics, perform defect classification using a deep residual convolutional network.

[0020] Furthermore, the deep residual convolutional network includes an input layer, a residual layer, a feature fusion layer, a fully connected layer, a softmax classification layer, and an output layer. The residual layer consists of multiple convolutional units, batch normalization units, and a ReLU activation function. The feature fusion layer integrates multi-scale features through a concatenation operation to generate a fused feature vector. The fully connected layer maps the fused feature vector to a high-dimensional space to generate the feature representation required for classification. The output layer determines the final defect category label through an arg max operation.

[0021] S9: Optimize the deep residual convolutional network.

[0022] Furthermore, the Seagull Optimization Algorithm (SOA) is used to optimize the network weights. The positions of the seagull flock are initialized, with each position corresponding to a set of weight parameters for the network. The cross-entropy loss function is used as the fitness function to calculate the fitness value for each seagull. The positions of the seagulls are updated based on their fitness values, incorporating the motion behavior coefficient V and the global search performance U of the equilibrium algorithm. The optimization process is repeated until the maximum number of iterations is reached to determine the optimal weight parameters.

[0023] The beneficial effects of this invention are:

[0024] By combining gradient response images and iterative thresholding with Gaussian difference and fixed thresholding, defect regions can be effectively extracted, reducing background noise interference and improving segmentation accuracy. Deep residual convolutional networks automatically learn defect features, avoiding the limitations of manually designed features, and can distinguish complex defect categories, significantly improving classification accuracy. The Seagull optimization algorithm optimizes network weights, improving model training efficiency and generalization ability, ensuring system reliability in different application scenarios. The entire detection process, from image acquisition to defect classification, is fully automated, reducing manual intervention and improving detection efficiency.

[0025] The present invention also provides a defect detection system for PHEMT, including a processor and a memory. The memory stores programs or instructions that can run on the processor, which, when executed by the processor, implement all the steps of the defect detection method described above.

[0026] Specifically, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or an application-specific integrated circuit (ASIC), etc., and the memory may be volatile memory or non-volatile memory, including random access memory (RAM), read-only memory (ROM), or flash memory, etc.

[0027] The present invention also provides a readable storage medium having a program or instructions stored thereon that, when executed by a processor, implements all the steps of the above-described PHEMT defect detection method.

[0028] In summary, this invention, by combining image processing technology and deep learning models, achieves high-precision detection and classification of PHEMT defects, solves the technical problems existing in the prior art, and has significant application value and prospects for promotion. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the PHEMT defect detection method of the present invention;

[0030] Figure 2 This is a schematic diagram of the PHEMT defect detection system of the present invention.

[0031] The attached figures are labeled as follows:

[0032] 20. PHEMT defect detection system; 201. Processor; 202. Memory. Detailed Implementation

[0033] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. The illustrative embodiments and descriptions herein are used to explain the present invention, but are not intended to limit the present invention.

[0034] The defect detection method of PHEMT provided by the present invention will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0035] Reference manual attached Figure 1 The diagram shows a flowchart of a PHEMT defect detection method provided by an embodiment of the present invention.

[0036] This invention provides a defect detection method for PHEMTs, which may include the following steps:

[0037] S1: Obtain the surface image of PHEMT.

[0038] Among them, PHEMT is a semiconductor device based on high electron mobility technology. It is typically used in high-frequency, high-power electronic devices. By utilizing the high electron mobility characteristics of specific semiconductor materials, it achieves higher switching speeds and lower power consumption, and is widely used in wireless communication, radar systems and other fields.

[0039] It should be noted that capturing minute defects and details on the PHEMT surface through high-resolution images provides accurate basic data for subsequent defect detection and analysis.

[0040] S2: Preprocess the surface image to determine the target image.

[0041] It should be noted that normalization and flattening processes standardize the original surface image and remove background interference, thereby emphasizing the characteristics of the defect area. Normalization ensures consistency between different images and reduces the impact of illumination variations. Flattening eliminates background inhomogeneity, making the defect area more prominent.

[0042] In one possible implementation, S2 specifically includes:

[0043] S201: Normalize the surface image.

[0044] S202: Flatten the normalized surface image to determine the target image.

[0045] S3: Calculate the gradient response image of the target image.

[0046] Among them, the gradient response image is an image obtained by calculating the gradient information of pixels in the image. It is usually used to detect areas with large brightness changes in the image and to identify edges or defects.

[0047] In one possible implementation, S3 specifically refers to:

[0048] The gradient response image of the target image is calculated using the Sobel operator.

[0049] The Sobel operator is a commonly used edge detection operator, typically used to extract edges in the horizontal and vertical directions. The Sobel operator can calculate the gradient of an image through convolution operations.

[0050] It should be noted that calculating the gradient response map can effectively highlight the boundaries of defective regions and areas with significant changes in the image. By using the Sobel operator, areas with significant brightness changes in the image can be detected, which is crucial for discovering minute defects (such as cracks, scratches, etc.). The gradient response map can accurately capture the edge information of defects, reduce the influence of background noise, and provide a clear foundation for subsequent segmentation and defect localization.

[0051] S4: Perform iterative thresholding on the gradient response image to determine the final mask gradient image.

[0052] It should be noted that the defect region is accurately extracted through adaptive threshold segmentation. Through an iterative process, the segmentation threshold is gradually optimized and can be adaptively adjusted at different scales to cope with uneven lighting and complex backgrounds in the image. This ensures that the final mask gradient map retains only the defect-related region and removes irrelevant background noise, thus providing a more accurate region for subsequent defect localization and classification.

[0053] In one possible implementation, S4 specifically includes:

[0054] S401: Perform adaptive thresholding on the gradient response image to determine the binary image.

[0055] Specifically, by using adaptive threshold segmentation, the threshold can be dynamically adjusted according to the grayscale information of local areas of the image, overcoming the limitations of fixed threshold segmentation in cases of uneven lighting and complex backgrounds. The adaptive segmentation method can more accurately identify defective areas in the image and obtain a binary image that can clearly distinguish the defective areas from the background.

[0056] In one possible implementation, S401 specifically includes:

[0057] S4011: Construct the Gaussian weight matrix.

[0058] The Gaussian weight matrix is ​​as follows:

[0059]

[0060] Where G(x,y) represents the Gaussian weights at position (x,y), e represents the exponential function, σ represents the standard deviation of the Gaussian kernel, and x and y represent the spatial coordinates with the center of the convolution kernel as the origin.

[0061] S4012: Based on the Gaussian weight matrix, perform adaptive thresholding on the gradient response image to determine the binary image.

[0062] The binary image is specifically as follows:

[0063]

[0064] Among them, f bin (x,y) represents the binary image at position (x,y), f(x,y) represents the gradient response image at position (x,y), λ represents the weight factor, * represents the convolution operation, and σ g This represents the global standard deviation, where 1 indicates a potentially defective area and 0 indicates background.

[0065] S402: Determine the mask gradient image based on the binary image.

[0066] In one possible implementation, S402 specifically includes:

[0067] S402 specifically includes:

[0068] S4021: Use the binary image as a mask and invert the mask.

[0069] S4022: Based on the inverted mask, remove the strong gradient regions in the gradient response image and determine the mask gradient image.

[0070] It should be noted that by using the binary image as a mask and performing an inversion operation, the defect area in the image can be effectively highlighted. After inverting the mask, the strong gradient area in the gradient response map is removed, which can eliminate background noise or irrelevant high-contrast areas, retain the low-contrast areas related to the defect, and accurately locate the defect edge.

[0071] S403: Repeat steps S401 to S402 until the iteration termination condition is met, and determine the final mask gradient image.

[0072] The specific termination condition for the iteration is:

[0073]

[0074]

[0075] Among them, g i The mean(MG) represents the amount of mask gradient information in the i-th iteration. i ) represents the mask gradient image MG in the i-th iteration. i The mean, std(MG) i ) represents the mask gradient image MG in the i-th iteration. i Standard deviation, I sover Indicates the termination judgment of the iteration, g i-1 δori represents the mask gradient information content in the (i-1)th iteration, N represents the maximum number of iterations, δori represents the threshold for information content change, turn indicates correct, and false indicates incorrect.

[0076] S5: Based on the target image, determine the Gaussian segmented image through Gaussian difference and fixed threshold segmentation.

[0077] It should be noted that by using Difference of Gaussians (DoG), detailed information at different scales can be highlighted, especially edge and texture information. By using fixed threshold segmentation to binarize the extracted Gaussian image, the defect area and background can be effectively distinguished, and important defect features in the image can be accurately detected, thus improving the accuracy and stability of defect detection.

[0078] In one possible implementation, S5 specifically includes:

[0079] S501: Construct scale space and determine scale space image.

[0080]

[0081] Where L(x,y,a) represents the scale-space image at position (x,y) at scale a, and G(x,y,a) represents the Gaussian kernel at position (x,y) at scale a.

[0082] S502: Determine the Gaussian image based on the scale-space image using Gaussian difference.

[0083]

[0084] Where D(x,y,a) represents the Gaussian image at position (x,y) at scale a, and k represents the constant multiplication factor.

[0085] S503: Perform fixed threshold segmentation on the Gaussian segmentation image to determine the Gaussian segmentation image.

[0086] In one possible implementation, after S5 and before S6, the following is also included:

[0087] Determine if the Gaussian segmentation image and the final mask gradient image can be merged. If yes, proceed to S6. Otherwise, return to S1.

[0088] It should be noted that by determining whether the Gaussian segmentation map and the final mask gradient map can be merged, more comprehensive information about the defect region can be extracted. By combining the two segmentation results, the advantages of Gaussian segmentation in multi-scale feature extraction and the accuracy of gradient map in edge detection can be fully utilized, thereby reducing false detections or missed detections and ensuring that the detected defect regions are more accurate and complete.

[0089] In one possible implementation, determining whether the Gaussian segmentation image and the final mask gradient image can be merged specifically includes:

[0090] Calculate the spatial distance between the Gaussian segmentation image and the final mask gradient image.

[0091] The spatial distance is specifically:

[0092]

[0093] Where d represents spatial distance, p x and p y q represents the spatial coordinates of the Gaussian segmented image. x and q y This represents the spatial coordinates of the final mask gradient image.

[0094] Determine if the spatial distance is less than a preset spatial distance. If so, the Gaussian segmentation image and the final mask gradient image can be merged. Otherwise, the Gaussian segmentation image and the final mask gradient image cannot be merged.

[0095] S6: Merge the Gaussian segmentation image and the final mask gradient image to determine the defect region.

[0096] Combining the advantages of Gaussian segmentation maps and mask gradient maps allows for more comprehensive and accurate localization of defect areas. Gaussian segmentation maps highlight multi-scale features, while mask gradient maps effectively capture edge information of the image. By merging these two types of images, background noise can be removed, false positives can be reduced, and the accuracy and integrity of defect areas can be improved.

[0097] S7: Extract defect features from the defect area.

[0098] It should be noted that by accurately extracting the features of the defect area (such as texture, shape, color, etc.), rich information can be provided for subsequent defect classification. These features can effectively distinguish different types of defects and improve the accuracy of classification.

[0099] S8: Based on the defect characteristics, perform defect classification through a deep residual convolutional network and output the defect category of PHEMT.

[0100] Among them, deep residual convolutional networks are a type of deep learning model that employs a residual learning mechanism. This mechanism can effectively train very deep convolutional neural networks (CNNs). By introducing residual blocks, this network avoids the gradient vanishing problem and enables information to be better transmitted within the network. The residual blocks directly add the input and output through skip connections, thereby simplifying the training of deep networks.

[0101] It should be noted that by automatically learning and optimizing defect features in images through Deep Residual Convolutional Networks (DFFN), different types of defects can be accurately distinguished. This not only avoids the limitations of manually designed features but also improves classification accuracy through multi-level feature extraction. By outputting the probability distribution of defect categories through a Softmax classifier, the network can achieve fast and high-precision multi-class defect classification. In addition, DFFN solves the gradient vanishing problem in deep network training through residual learning, enabling the network to handle more complex and diverse defect types, thereby improving the overall detection effect and reliability.

[0102] In one possible implementation, the deep residual convolutional network includes: an input layer, a residual layer, a feature fusion layer, a fully connected layer, a softmax classification layer, and an output layer.

[0103] The residual layer consists of convolutional units, batch normalization units, and the ReLU activation function.

[0104] S8 specifically includes:

[0105] S801: Accepts defect features through the input layer.

[0106] S802: Input the defect features into the residual layer and output the enhancement features.

[0107]

[0108]

[0109] Where F() represents the enhanced feature of the output, A() represents the feature obtained through the convolutional layer, X represents the defect feature, W1 and W2 both represent the convolutional kernel, b1 and b2 both represent the bias term, and ReLU represents the ReLU activation function.

[0110] S803: Input the enhanced features into the feature fusion layer, perform feature fusion, and output the fused features.

[0111] S804: Input the fused features into the fully connected layer and output the feature vector.

[0112] S805: Input the feature vector into the Softmax classification layer and output the probability distribution of each defect category.

[0113]

[0114] Where, p r Let z represent the predicted probability of the r-th type defect, e represent the exponential function, and z represent the predicted probability of the r-th type defect. r Let z represent the feature vector corresponding to the r-th type of defect. j Let r,j = 1, 2, ..., T, and T represent the feature vector corresponding to the j-th type of defect.

[0115] S806: Based on the probability distribution, output the defect category through the output layer.

[0116]

[0117] in, This represents the final predicted defect category label, and arg max indicates taking the maximum value.

[0118] In one possible implementation, the loss function of the deep residual convolutional network is specifically the cross-entropy loss function.

[0119] The specific defect categories are: cracks, scratches, and stains.

[0120] In one possible implementation, it also includes:

[0121] S9: Optimize deep residual convolutional networks using the Seagull optimization algorithm.

[0122] S9 specifically includes:

[0123] S901: Initialize the seagull population and determine the initial position of each seagull, where the initial position represents the weights of the deep residual convolutional network.

[0124] S902: Use the loss function of the deep residual convolutional network as the fitness function to calculate the fitness value of each individual seagull.

[0125] S903: Update the position of each individual seagull based on its fitness value.

[0126] S903 specifically includes:

[0127] S9031: Update the position of each individual seagull based on its fitness value:

[0128]

[0129] Among them, C s(t) represents the position of the individual seagull at the t-th iteration, V represents the seagull's movement behavior coefficient, and P s (t) represents the position of the seagull in the t-th iteration, t represents the current iteration number, e represents the exponential function, and D max ε represents the maximum number of iterations, ε represents the parameter that adjusts the convergence speed, and betarnd(1,1) represents a random number generated from the Beta distribution.

[0130] S9032: Determine the optimal direction for the seagulls based on the updated positions of each individual seagull.

[0131]

[0132] Among them, M s (t) represents the direction of the optimal seagull at the t-th iteration, U represents the global and local search performance of the equalization algorithm, and P bs (t) represents the position of the optimal seagull in the t-th iteration.

[0133] S9033: Update the position of each individual seagull relative to the best seagull based on its direction.

[0134]

[0135] Among them, D s (t) represents the position of each individual seagull relative to the best seagull after the update at the t-th iteration.

[0136] S904: Calculate the fitness value of each individual seagull after the update:

[0137] S905: When the fitness value of the updated seagull is greater than or equal to the fitness value of the current seagull, update the position of the current seagull. When the fitness value of the updated seagull is less than the fitness value of the current seagull, keep the position of the current seagull unchanged.

[0138] In this invention, the position of each individual seagull was updated in two stages.

[0139] S906: Repeat steps S901 to S905 until the maximum number of iterations is reached, and determine the optimal weights for the deep residual convolutional network.

[0140] It should be noted that the seagull optimization algorithm, by simulating the foraging and migration behavior of seagull flocks, can efficiently perform global search and local optimization in complex solution spaces, avoiding gradient vanishing and getting trapped in local optima, thus improving the training efficiency and accuracy of deep residual convolutional networks.

[0141] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following:

[0142] In this embodiment of the invention, by calculating the gradient response map of the image, regions with significant intensity changes in the image can be identified. Through adaptive threshold segmentation, defect regions can be effectively separated from the background. The results are gradually refined through iterative segmentation, avoiding over-segmentation or under-segmentation. It adapts to defects of different types and scales, accurately segmenting defect regions, reducing the influence of background noise, and improving the accuracy and precision of segmentation. By using Gaussian difference and fixed threshold segmentation, the segmentation effect of defect regions is optimized, effectively reducing background interference and noise, and improving the accuracy of defect segmentation. By merging the Gaussian segmentation map and the final mask gradient map, defect regions can be determined more accurately, avoiding the problem of incomplete defect regions, improving the accuracy of defect region identification, and ensuring the integrity and accuracy of defect regions. Defect classification based on deep residual convolutional networks can effectively distinguish complex defect categories and avoid the limitations of manual classification rules.

[0143] Reference manual attached Figure 2 The diagram shows a structural schematic of a PHEMT defect detection system provided in an embodiment of the present invention.

[0144] This invention provides a defect detection system 20 for PHEMT, including: a processor 201 and a memory 202;

[0145] The memory 202 stores programs or instructions that can run on the processor 201. When the program or instructions are executed by the processor 201, they implement the steps of the above-described PHEMT defect detection method and achieve the same technical effect. To avoid repetition, the present invention will not elaborate further.

[0146] It should be understood that the processor 201 in this embodiment of the invention may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0147] It should also be understood that the memory 202 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0148] The above embodiments can be implemented, in whole or in part, by software, hardware (such as circuits), firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.

[0149] It should be understood that, in various embodiments of the present invention, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0150] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0151] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0152] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0153] The units described as separate components may or may not be physically separate. 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 can be selected to achieve the purpose of this embodiment according to actual needs.

[0154] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0155] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0156] This invention provides a readable storage medium comprising: storing a program or instructions on the readable storage medium, wherein when the program or instructions are executed by a processor, the program or instructions implement the steps of the above-described PHEMT defect detection method and achieve the same technical effect. To avoid repetition, this invention will not elaborate further.

[0157] The technical solutions of the present invention are not limited to the specific embodiments described above. Any technical modifications made in accordance with the technical solutions of the present invention fall within the protection scope of the present invention.

Claims

1. A method of defect detection of a PHEMT, characterized by, The method comprises the following steps: S1: obtaining a surface image of a PHEMT; S2: preprocessing the surface image to determine a target image; S3: calculating a gradient response image of the target image; S4: performing iterative threshold segmentation on the gradient response image to determine a final mask gradient image; S5: determining a Gaussian segmentation image according to the target image through Gaussian difference and fixed threshold segmentation; S6: merging the Gaussian segmentation image and the final mask gradient image to determine a defect region; S7: extracting defect features of the defect region; S8: performing defect classification through a deep residual convolutional network according to the defect features to output a defect category of the PHEMT.

2. The method of defect detection of a PHEMT according to claim 1, wherein The preprocessing in the step S2 comprises normalization processing and flattening processing.

3. The method of claim 1, wherein the PHEMT defect detection method is characterized by, The step S3 calculates the gradient response image of the target image through a Sobel operator.

4. The method of claim 1, wherein the PHEMT defect detection method is characterized by, The step S4 specifically comprises: S401: performing adaptive threshold segmentation on the gradient response image to determine a binary image; S402: determining a mask gradient image according to the binary image; S403: repeating the steps S401 to S402 until an iteration termination condition is reached to determine the final mask gradient image.

5. The method of defect detection of a PHEMT according to claim 4, wherein The step S401 specifically comprises: S4011: constructing a Gaussian weight matrix: wherein G(x, y) represents a Gaussian distribution weight at a position (x, y), e represents an exponential function, sigma represents a Gaussian kernel standard deviation, and x and y represent spatial coordinates with the center of the convolution kernel as the origin; S4012: performing the adaptive threshold segmentation on the gradient response image according to the Gaussian weight matrix to determine the binary image; the binary image is specifically: where f bin (x, y) denotes a binary image at location (x, y), f(x, y) denotes a gradient response image at location (x, y), λ denotes a weight factor, * denotes a convolution operation, σ g denotes a global standard deviation, 1 denotes a possible defect area, and 0 denotes a background.

6. The method of defect detection of a PHEMT according to claim 4, wherein The step S402 specifically comprises: S4021: taking the binary image as a mask and performing an inversion operation on the mask; S4022: removing a strong gradient region in the gradient response image according to the inverted mask to determine the mask gradient image.

7. The method of defect detection of a PHEMT according to claim 1, wherein The step S5 specifically comprises: S501: constructing a scale space to determine a scale space image: wherein L(x, y, a) represents a scale space image at a position (x, y) under a scale a, and G(x, y, a) represents a Gaussian kernel at a position (x, y) under a scale a; S502: determining a Gaussian image through the Gaussian difference according to the scale space image: wherein D(x, y, a) represents a Gaussian image at a position (x, y) under a scale a, and k represents a constant multiplication factor; S503: performing the fixed threshold segmentation on the Gaussian image to determine the Gaussian segmentation image.

8. The method of defect detection of a PHEMT according to claim 1, wherein After the step S5 and before the step S6, the following step is further included: determining whether the Gaussian segmentation image and the final mask gradient image can be merged; if yes, proceeding to S6; otherwise, returning to S1.

9. The method of claim 1, wherein the PHEMT defect detection method is characterized by, The deep residual convolutional network comprises an input layer, a residual layer, a feature fusion layer, a full connection layer, a Softmax classification layer, and an output layer; The residual layer comprises a convolution unit, a batch normalization unit, and a ReLU activation function; The step S8 specifically comprises: S801: accepting the defect features through the input layer; S802: input the defect feature into the residual layer, and output an enhanced feature; wherein F() represents the output enhanced feature, A() represents a feature obtained through a convolution layer, X represents a defect feature, W1 and W2 both represent convolution kernels, b1 and b2 both represent bias terms, and ReLU represents a ReLU activation function; S803: input the enhanced feature into the feature fusion layer, perform feature fusion, and output a fused feature; S804: input the fused feature into the full connection layer, and output a feature vector; S805: input the feature vector into the Softmax classification layer, and output a probability distribution of each defect category: where p r denotes the predicted probability of the rth defect type, e denotes the exponential function, z r denotes the feature vector corresponding to the rth defect type, z j denotes the feature vector corresponding to the jth defect type, r, j = 1, 2, …, T, T denotes the total number of defect types; S806: output the defect category through the output layer according to the probability distribution: wherein, denotes the final predicted defect class label, arg max denotes taking the maximum value.

10. A defect detection system for PHEMTs, characterized by comprising a processor and a memory; the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the defect detection method of the PHEMT according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Mould plate quality detection method and system based on machine vision

    CN118587226A

  • Part processing surface defect visual detection method and system based on image enhancement and binarization algorithm

    CN120563479A