Defective chip sorting method, device and equipment and storage medium

By performing edge feature enhancement and defect detection model detection on the X-ray machine scanned image of the BGA package, the defect score is obtained, which solves the problem of low manual interpretation efficiency in the existing technology and achieves efficient chip defect detection and sorting.

CN118628464AInactive Publication Date: 2024-09-10YITONG TECH (SHENZHEN) CO LTD

Patent Information

Application Number
CN202410806695.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, defect detection of BGA packages relies on manual interpretation, which has low efficiency and reliability, making it difficult to effectively ensure detection quality.

Method used

By obtaining the X-ray machine scanned image of the chip to be inspected, perform edge feature enhancement processing, call the defect detection model for detection, obtain the defect area, type and quantity, perform weighting processing based on the defect area and weight, obtain the defect score, and determine the chip classification Picking instructions.

Benefits of technology

It improves the efficiency and accuracy of defect detection of chips to be inspected, can effectively evaluate the integrity and working status of chips, and improves the production efficiency and sorting accuracy of chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628464A
    Figure CN118628464A
Patent Text Reader

Abstract

The embodiment of the invention provides a defective chip sorting method, device and equipment and a storage medium, and the method comprises the steps that a chip scanning image of a to-be-detected chip is obtained, and the chip scanning image is obtained by scanning the to-be-detected chip through an X-ray machine; performing enhancement processing on edge features in the chip scanning image to obtain a target scanning image; calling a defect detection model to detect the target scanning image to obtain a defect area, defect types and a defect number corresponding to each defect type; defect weights are obtained, weighting processing is carried out on the defect number based on the defect areas and the defect weights, defect scores are obtained, and sorting instructions of the to-be-detected chips are determined according to the defect scores; according to the defective chip sorting method provided by the invention, the defect detection efficiency of the to-be-detected chip can be improved, and the accurate sorting instruction can be determined for the to-be-detected chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of image processing technology, and in particular to a defective chip sorting method, device, equipment and storage medium. Background Art

[0002] The electronic device manufacturing industry has high requirements for product quality and reliability, especially for BGA (Ball Grid Array) electronic devices. The entire bottom of the BGA package can be used for electrical interconnection, while wire bonding or quad flat packaging can only be used for electrical connection on the four sides of the chip. The emergence of BGA packages makes it possible to use printed circuit boards with high density and high efficiency. In addition, solder balls shorten the path of electrical interconnection, thereby reducing signal inductance and voltage noise, and improving chip performance. BGA packages have high packaging density and complex structures, and are prone to various defects, such as welding problems and structural fractures. Problems such as holes or poor solder balls will occur during the production process of BGA packages, so these defects need to be discovered and isolated.

[0003] In the prior art, X-ray inspection uses the transmission principle to perform X-ray imaging of the BGA package, and the image can reflect the internal defects of the BGA package. Then the inspection personnel browse the X-ray image and perform manual interpretation and analysis according to the inspection standards. This manual interpretation and analysis method is affected by subjective factors such as workers' experience and physical condition, and the inspection efficiency and reliability are low, and the inspection quality of BGA packages is difficult to effectively guarantee. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The embodiments of the present application provide a defective chip sorting method, device, equipment and storage medium, which can improve the efficiency of defect detection of chips to be inspected and determine accurate sorting instructions for the chips to be inspected.

[0006] To achieve the above-mentioned purpose, the first aspect of an embodiment of the present application proposes a defective chip sorting method, comprising: obtaining a chip scanning image of the chip to be inspected, wherein the chip scanning image is obtained by scanning the chip to be inspected with an X-ray machine; enhancing the edge features in the chip scanning image to obtain a target scanning image; calling a defect detection model to detect the target scanning image to obtain a defect area, a defect type, and the number of defects corresponding to each defect type; obtaining a defect weight, weighting the number of defects based on the defect area and the defect weight to obtain a defect score, and determining a sorting instruction for the chip to be inspected according to the defect score.

[0007] In some embodiments, the defect quantity is weighted based on the defect area and the defect weight to obtain a defect score, and the sorting instructions of the chip to be inspected are determined according to the defect score, including: obtaining the chip type and production target of the chip to be inspected, and determining the defect weight and score threshold according to the chip type and the production target; weighting the defect quantity based on the defect area and the defect weight to obtain a defect score; and determining the sorting instructions of the chip to be inspected according to the defect score and the score threshold.

[0008] In some embodiments, the method further includes: generating a defect display image of the chip to be inspected according to the defect type and the defect area.

[0009] In some embodiments, the enhancing process of edge features in the chip scanning image to obtain a target scanning image includes: enhancing the edge features in the chip scanning image to obtain a first enhanced image; performing noise reduction on the first enhanced image to obtain a second enhanced image; determining a first feature map and a scale attention weight based on the second enhanced image, and adjusting the first feature map according to the scale attention weight to obtain a target scanning image.

[0010] In one embodiment, the defect detection model is called to detect the target scanned image to obtain defect areas, defect types corresponding to each of the defect areas, and the number of defects corresponding to each of the defect types, including: semantic segmentation of the target scanned image to obtain multiple candidate areas; feature extraction processing is performed on each of the candidate areas through a pre-trained convolutional layer to obtain a second feature map corresponding to each of the candidate areas; each of the second feature maps is activated through a preset activation function to obtain a region type of each of the candidate areas, wherein the region type is a normal type or at least one of a plurality of defect types; for each of the candidate areas, when the region state of the candidate area is any of the defect types, the candidate area is determined as a defect area; the number of defect areas corresponding to each of the defect types is counted to obtain the number of defects corresponding to each of the defect types.

[0011] In one embodiment, before calling the defect detection model to detect the target scan image, it also includes: obtaining a sample scan image of a sample chip, wherein the sample scan image includes a sample defect label; calling the defect detection model to detect the sample scan image to obtain a defect detection result, determining a target loss based on the defect detection result and the sample defect label, and training the defect detection model according to the target loss; obtaining a test scan image of a test chip, wherein the test scan image includes a test defect label; calling the defect detection model to detect the test scan image to obtain a test detection result, and determining a detection score based on the test detection result and the test defect label; and re-training the defect detection model until the detection score is greater than a preset target score.

[0012] In one embodiment, calling the defect detection model to detect the sample scanned image to obtain a defect detection result includes: randomly rotating and flipping the sample scanned image to obtain a sample expanded image; calling the defect detection model to detect the sample expanded image to obtain a defect detection result.

[0013] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a defective chip sorting device, comprising: an image acquisition module for obtaining a chip scanning image of the chip to be inspected, wherein the chip scanning image is obtained by scanning the chip to be inspected with an X-ray machine; a preprocessing module for enhancing the edge features in the chip scanning image to obtain a target scanning image; a first processing module for calling a defect detection model to detect the target scanning image to obtain a defect area, a defect type, and the number of defects corresponding to each defect type; a second processing module for obtaining a defect weight, performing weighted processing on the number of defects based on the defect area and the defect weight to obtain a defect score, and determining a sorting instruction for the chip to be inspected according to the defect score.

[0014] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the defective chip sorting method described in the first aspect.

[0015] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the defective chip sorting method described in the first aspect above.

[0016] The embodiments of the present application include at least the following beneficial effects: after the chip to be inspected is scanned by an X-ray machine, various texture information on the chip to be inspected can be clearly displayed on the chip scan image; by enhancing the edge features on the chip scan image, the clarity of the chip scan image can be enhanced while retaining the original texture information, making the texture information more prominent and the defect information on the chip scan image easier to identify; by calling the defect detection model to detect the target scan image, the defect area, defect type, and defect number corresponding to each defect type on the chip to be inspected are obtained; the defect type can indicate what kind of defect exists on the chip to be inspected, and the defect detection model can be used to detect the defect area, defect type, and defect number corresponding to each defect type on the chip to be inspected. Defects of the same type and different positions represent different integrity of the chip to be inspected. Defects of different types and positions have different effects on the working status of the chip to be inspected during use. Different types of chips have different requirements for integrity. By obtaining the defect weight, the number of defects is weighted based on the defect area and defect weight to obtain the defect score. The defect score can be used to evaluate the integrity and working status of the chip to be inspected. Based on the defect score, it can be determined whether the chip to be inspected can be used normally, and the sorting instructions of the chip to be inspected can be determined. The complete chips to be inspected are retained, and the defective chips to be inspected are discarded, thereby improving the production efficiency and sorting accuracy of the chips.

[0017] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0019] Figure 1 A schematic diagram of an optional flow chart of a defective chip sorting method provided in an embodiment of the present application;

[0020] Figure 2 An optional specific flow chart of the defective chip sorting method provided in the embodiment of the present application;

[0021] Figure 3 A schematic diagram of another optional flow chart of the defective chip sorting method provided in the embodiment of the present application;

[0022] Figure 4 A schematic diagram of an optional process for preprocessing a chip scan image provided in an embodiment of the present application;

[0023] Figure 5A schematic diagram of an optional process for target scanning image detection provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of an alternative flow chart of a defective chip sorting method provided in an embodiment of the present application;

[0025] Figure 7 An optional specific flow chart of the defective chip sorting method provided in the embodiment of the present application;

[0026] Figure 8 An optional structural diagram of a model training device provided in an embodiment of the present application;

[0027] Fig. 9 This is an optional structural schematic diagram of a defective chip sorting device provided in this embodiment;

[0028] Fig.10 An optional structural diagram of a defective chip production system provided in this embodiment;

[0029] Fig.11 A schematic diagram of an optional hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] In the description of this application, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood to exclude the number, and “above”, “below”, “within”, etc. are understood to include the number.

[0032] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0033] It should be noted that in each specific embodiment of the present application, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present application needs to obtain the target object attribute information, the target object's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page, etc., and after the separate permission or separate consent of the target object is clearly obtained, the necessary target object-related data for enabling the normal operation of the embodiment of the present application will be obtained.

[0034] To facilitate understanding of the technical solutions provided in the embodiments of the present application, some key terms used in the embodiments of the present application are explained here:

[0035] Ball Grid Array (BGA) packaging technology is a surface mount technology used on integrated circuits. This technology is often used to permanently fix devices such as microprocessors. BGA packaging can provide more pins than other packages such as Dual in-line package or Quad Flat Package. The entire bottom surface of the device can be used as pins instead of only the periphery. It can also have a shorter average wire length than the periphery-limited package type, so as to have better high-speed performance.

[0036] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction system, mechatronics, etc. Among them, the pre-trained model is also called the large model or basic model. After fine-tuning, it can be widely used in downstream tasks in various major directions of artificial intelligence. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0037] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0038] In the prior art, X-ray inspection uses the transmission principle to perform X-ray imaging of the BGA package, and the image can reflect the internal defects of the BGA package. Then the inspection personnel browse the X-ray image and perform manual interpretation and analysis according to the inspection standards. This manual interpretation and analysis method is affected by subjective factors such as workers' experience and physical condition, and the inspection efficiency and reliability are low, and the inspection quality of BGA packages is difficult to effectively guarantee.

[0039] Based on this, the embodiments of the present application provide a defective chip sorting method, device, equipment and storage medium, which can improve the efficiency of defect detection of chips to be inspected and determine accurate sorting instructions for the chips to be inspected.

[0040] The defective chip sorting method, device, equipment and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the defective chip sorting method in the embodiments of the present application is described.

[0041] The defective chip sorting method provided in the embodiment of the present application relates to the field of computer technology. The defective chip sorting method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the defective chip sorting method, etc., but is not limited to the above forms.

[0042] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0043] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0044] like Figure 1 As shown, Figure 1 An optional flow chart of a defective chip sorting method provided in an embodiment of the present application is provided. The defective chip sorting method can be executed by a server, or by a terminal, or by a server in cooperation with a terminal. The defective chip sorting method includes but is not limited to the following steps S110 to S140:

[0045] Step S110, obtaining a chip scanning image of the chip to be inspected, wherein the chip scanning image is obtained by scanning the chip to be inspected by an X-ray machine;

[0046] Step S120, enhancing the edge features in the chip scan image to obtain a target scan image;

[0047] Step S130, calling the defect detection model to detect the target scan image, and obtaining the defect area, defect type, and the number of defects corresponding to each defect type;

[0048] Step S140, obtaining defect weights, weighting the number of defects based on the defect areas and defect weights to obtain defect scores, and determining sorting instructions for the chips to be inspected based on the defect scores.

[0049] Based on this, after the chip to be inspected is scanned by an X-ray machine, various texture information on the chip to be inspected can be clearly displayed on the chip scan image. By enhancing the edge features on the chip scan image, the clarity of the chip scan image can be enhanced while retaining the original texture information, making the texture information more prominent and the defect information on the chip scan image easier to identify; by calling the defect detection model to detect the target scan image, the defect area, defect type, and the number of defects corresponding to each defect type on the chip to be inspected are obtained. The defect type can indicate what kind of defects exist on the chip to be inspected. Defects of different types and positions represent different integrity of the chip to be inspected. Defects of different types and positions have different effects on the working state of the chip to be inspected when it is used. Different types of chips have different requirements for integrity. By obtaining the defect weight, the defect number is weighted based on the defect area and the defect weight to obtain the defect score. The defect score can evaluate the integrity and working state of the chip to be inspected. Based on the defect score, it is determined whether the chip to be inspected can be used normally, and the sorting instructions of the chip to be inspected are determined. The complete chip to be inspected is retained, and the defective chip to be inspected is discarded, thereby improving the production efficiency and sorting accuracy of the chip.

[0050] Specifically, the chip to be tested is a microprocessor that has been processed by ball grid array (BGA) packaging technology. The ball grid array packaging is achieved by arranging a group of tiny solder balls at the bottom of the internal chip. The solder balls are arranged in a grid shape and connected to the pads on the bottom printed circuit board. Compared with the traditional pin-type packaging, the ball grid array packaging enables more pins to be connected between the internal chip and the printed circuit board in a limited space, thereby achieving a higher degree of integration. Moreover, in the ball grid array packaging, the internal chip is directly connected to the pads on the printed circuit board through the solder balls. The contact area between the internal chip and the solder balls, and the contact area between the solder balls and the pads are larger than those of the traditional packaging method. Therefore, it can provide better electrical connection effects and also has better heat dissipation performance.

[0051] In addition, refer to Figure 2 , in one embodiment, Figure 1 Step S140 in the illustrated embodiment includes but is not limited to the following steps:

[0052] Step S210, obtaining the chip type and production target of the chip to be inspected, and determining the defect weight and score threshold according to the chip type and production target;

[0053] Step S220, weighting the number of defects based on the defect area and the defect weight to obtain a defect score;

[0054] Step S230: determining a sorting instruction for the chip to be inspected according to the defect score and the score threshold.

[0055] It is understandable that different types of chips to be tested have different tolerances for defect problems. For chips to be tested with simple designs, a slight offset of the solder balls is allowed, while for chips to be tested with complex designs and powerful functions, no defect problems are allowed to occur. Therefore, by obtaining the chip type and production goals of the chip to be tested, that is, obtaining the tolerance of the current chip to be tested for defect problems, the defect weights of different defect problems in the chip to be tested and the score thresholds for all defect problems are determined. Different types of defect problems have different degrees of influence on the chip to be tested during operation. For problems such as slight offset of the solder balls, inability to fully bond the solder balls to the internal chip, or slight deformation of the solder ball shape, the impact on the chip to be tested is small and a lower weight value can be assigned. However, for problems such as broken solder balls, poor soldering between the solder balls and the internal chip, or bridging of multiple connection points between the solder balls and the internal chip, the chip to be tested will be unable to work normally, so a larger weight value needs to be assigned.

[0056] It is understandable that defects in different positions will have different impacts on the chip to be inspected. When the defect occurs at the pin position that exchanges important data, the defect will cause poor contact, signal interruption or severe heat generation in the chip to be inspected. However, when the defect occurs at the pin position with less data interaction, the defect will have little impact on the normal operation of the chip to be inspected.

[0057] Based on this, by obtaining the chip type and production target of the chip to be inspected, the defect weight is determined according to the chip type and production target. The defect weight represents the tolerance of the chip to be inspected for various defect types. The number of defects is weighted by the defect weight and defect type to obtain a defect score. When the defect score is lower, it indicates that the integrity of the chip to be inspected is good, and the chip to be inspected should be retained. When the defect score is higher, it indicates that the quality of the chip to be inspected is worse, and the chip to be inspected should be discarded.

[0058] In addition, refer to Figure 3 , in one embodiment, Figure 1 After step S140 in the illustrated embodiment, the following steps are also included but not limited to:

[0059] Step S310: generating a defect display image of the chip to be inspected according to the defect type and defect area.

[0060] In a specific embodiment, the defect area is anchored by a bounding box method, and a bounding box for displaying the defect is marked on the defect display image. Next to the bounding box are described the defect type, the coordinates of the defect area on the defect display image, and the defect weight used for the defect type.

[0061] Based on this, a defect display image of the chip to be inspected is generated according to the defect type and defect area. The defects are anchored on the defect display image through the bounding box method. The corresponding defect type is written next to the bounding box, indicating the coordinates of the defect area and the defect weight used for the defect. This can facilitate the staff to make manual judgments on the chip to be inspected, thereby improving the accuracy of defect identification of the chip to be inspected. The staff can adjust the defect detection model to improve the accuracy of the defect detection model, and can also upgrade the production process of the chip to be inspected to improve the yield rate of the chip to be inspected.

[0062] It is understandable that the bounding box method belongs to the prior art and will not be described in detail here.

[0063] In addition, refer to Figure 4 , in one embodiment, Figure 1 Step S120 in the illustrated embodiment includes but is not limited to the following steps:

[0064] Step S410, enhancing the edge features in the chip scan image to obtain a first enhanced image;

[0065] Step S420, performing noise reduction processing on the first enhanced image to obtain a second enhanced image;

[0066] Step S430, determining the first feature map and the scale attention weight based on the second enhanced image, adjusting the first feature map according to the scale attention weight, and obtaining the target scanned image.

[0067] In a specific implementation, first, contrast enhancement is performed on the chip scan image to strengthen edge features in the chip scan image so that the boundary of the solder ball is more prominent above the background, thereby obtaining a first enhanced image;

[0068] Then, the noise points existing in the chip scanning image are also enhanced, so the grayscale enhancement is performed on the first enhanced image, the grayscale range of the pixels in the first enhanced image is expanded, and the first enhanced image after grayscale enhancement is subjected to multiple noise reduction processes to reduce the noise point information in the first enhanced image, thereby obtaining a second enhanced image;

[0069] Then, the second enhanced image is divided into multiple scales to obtain a first feature map, and the scale attention weight is obtained. The first feature map is adjusted based on the scale attention weight to obtain a target scanned image.

[0070] It is understandable that after the chip to be inspected is scanned by an X-ray machine, noise is generally present on the chip scan image, and the noise affects the recognition and interpretation of the texture used to characterize the defect information. By performing contrast enhancement processing on the edge features of the chip scan image, the texture in the chip scan image can be made more obvious, thereby highlighting the texture features. After the enhancement processing, the noise on the chip scan image is also enhanced into obvious bright spots. By performing denoising processing on the first enhanced image, the interference of the noise in the first enhanced image on the division of defect information can be eliminated, and the clarity of the texture information can be improved. By performing multi-scale attention weighted processing on the second enhanced image, the level of the second enhanced image can be adjusted to make the level of texture information richer and enhance the sense of hierarchy of the second enhanced image, thereby improving the perception of the defect information by the defect detection model and improving the accuracy of the defect detection model.

[0071] In addition, refer to Figure 5 , in one embodiment, Figure 1 Step S130 in the illustrated embodiment includes but is not limited to the following steps:

[0072] Step S510, performing semantic segmentation on the target scanned image to obtain multiple candidate regions;

[0073] Step S520, performing feature extraction processing on each candidate region through a pre-trained convolutional layer to obtain a second feature map corresponding to each candidate region;

[0074] Step S530, activating each second feature map by a preset activation function to obtain a region type of each candidate region, wherein the region type is a normal type or at least one of multiple defect types;

[0075] Step S540, for each candidate region, when the region state of the candidate region is any defect type, the candidate region is determined as a defect region;

[0076] Step S550 , counting the number of defect areas corresponding to each defect type, and obtaining the number of defects corresponding to each defect type.

[0077] In a specific embodiment, after semantic segmentation of the target scan image, the obtained candidate area includes texture information of at least one solder ball. By performing feature extraction processing on the candidate area, a second feature map for indicating the texture information can be obtained. The second feature map is activated by an activation function, and the texture information of the solder ball in the candidate area can be classified. When the second feature map indicates that the corresponding texture is normal, the corresponding candidate area is classified as a normal type. When the second feature map indicates that the corresponding texture information is missing, offset or cracked, the corresponding candidate area is classified as a corresponding defect type, and the corresponding candidate area is counted in the corresponding defect number.

[0078] Based on this, by performing semantic segmentation on the target scan image, the candidate area of ​​the texture information of the solder ball can be obtained, reducing the influence of the background texture information on defect detection.

[0079] It should be noted that semantic segmentation of target scanned images belongs to the existing algorithm, and its calculation principle will not be explained in detail here.

[0080] In addition, refer to Figure 6 , in one embodiment, Figure 1 Before step S130 in the illustrated embodiment, the following steps are included but are not limited to:

[0081] Step S610, obtaining a sample scan image of a sample chip, wherein the sample scan image includes a sample defect label;

[0082] Step S620, calling the defect detection model to detect the sample scanned image to obtain a defect detection result, determining a target loss based on the defect detection result and the sample defect label, and training the defect detection model according to the target loss;

[0083] Step S630, obtaining a test scan image of the test chip, wherein the test scan image includes a test defect label;

[0084] Step S640, calling the defect detection model to detect the test scan image, obtaining a test detection result, and determining a detection score based on the test detection result and the test defect label;

[0085] Step S650, retraining the defect detection model until the detection score is greater than a preset target score.

[0086] In a specific implementation, the test defect label includes the defect type actually included in the test chip, and the test detection result includes the defect type obtained after detecting the test scan image.

[0087] Specifically, the calculation formula of the detection score is:

[0088]

[0089] Where FS is the detection score, n is the number of defect types, and TP is i It indicates the number of defects correctly predicted by the defect detection model, including the i-th type, FP i FN represents the sum of the number of defects correctly predicted by the defect detection model including the i-th type and the number of defects incorrectly predicted including the i-th type. i It represents the number of defects of type i that are predicted not to include by the defect detection model but are actually included.

[0090] Understandably, P.S. i It can be understood as the current accuracy of the defect detection model, RS i It can be understood as the probability that the defect detection model recognizes defect information from the image. i and RS i When FS is less than the preset target score, a new sample scan image is obtained and the defect detection model is trained again, which can reduce the demand for sample scan images and effectively improve the accuracy of the defect detection model.

[0091] In addition, refer to Figure 7 , in one embodiment, Figure 6 Step S620 in the illustrated embodiment includes but is not limited to the following steps:

[0092] Step S710, randomly rotating and flipping the sample scanned image to obtain a sample expanded image;

[0093] Step S720, calling the defect detection model to detect the sample expanded image to obtain a defect detection result.

[0094] It can be understood that by randomly rotating and flipping the sample scan image, the sample scan image can be data enhanced, and by expanding the training sample data set of the defect detection model, the detection performance of the defect detection model can be improved. For example, by rotating one of the sample scan images 90 degrees, 180 degrees and 270 degrees in a clockwise direction, three sample expanded images can be obtained. By flipping the rotated sample expanded image, six sample images can be obtained. Secondly, by flipping and rotating the sample scan at different angles, it helps the defect detection model to obtain defect information of the chip to be inspected at different angles and directions, thereby improving the defect detection model's robustness in recognizing defect information.

[0095] In addition, the present application also provides a model training method, including:

[0096] First, a sample scan image of a sample chip is obtained, wherein the sample scan image includes a sample defect label;

[0097] Then, the defect detection model is called to detect the sample scanned image to obtain the defect detection result, the target loss is determined based on the defect detection result and the sample defect label, and the defect detection model is trained according to the target loss;

[0098] Then, a test scan image of the test chip is obtained, wherein the test scan image includes a test defect label;

[0099] Then, the defect detection model is called to detect the test scan image to obtain the test detection result, and the detection score is determined based on the test detection result and the test defect label;

[0100] Then, the defect detection model is retrained until the detection score is greater than the preset target score.

[0101] It is understandable that the specific implementation methods and beneficial effects of the model training method are similar to Figure 7 The embodiments shown are similar and will not be described again in detail.

[0102] In addition, refer to Figure 8 The present application also provides a model training device 800, comprising:

[0103] The sample image acquisition module 801 is used to acquire a sample scan image of a sample chip, wherein the sample scan image includes a sample defect label;

[0104] A training module 802 is used to call a defect detection model to detect a sample scanned image, obtain a defect detection result, determine a target loss based on the defect detection result and the sample defect label, and train the defect detection model according to the target loss;

[0105] A test image acquisition module 803 is used to acquire a test scan image of a test chip, wherein the test scan image includes a test defect label;

[0106] The third processing module 804 is used to call the defect detection model to detect the test scan image, obtain the test detection result, and determine the detection score based on the test detection result and the test defect label;

[0107] The fourth processing module 805 is used to retrain the defect detection model until the detection score is greater than a preset target score.

[0108] It is understood that the specific implementation and beneficial effects of the model training device are similar to Figure 7 The embodiments shown are similar and will not be described again in detail.

[0109] In addition, refer to Fig. 9 The present application also provides a defective chip sorting device 900, comprising:

[0110] The inspection image acquisition module 901 is used to acquire a chip scanning image of the inspection chip, wherein the chip scanning image is obtained by scanning the inspection chip with an X-ray machine;

[0111] A preprocessing module 902 is used to enhance the edge features in the chip scan image to obtain a target scan image;

[0112] The first processing module 903 is used to call the defect detection model to detect the target scan image to obtain the defect area, defect type, and the number of defects corresponding to each defect type;

[0113] The second processing module 904 is used to obtain defect weights, perform weighted processing on the number of defects based on the defect areas and defect weights to obtain defect scores, and determine sorting instructions for the chips to be inspected according to the defect scores.

[0114] The defective chip sorting device 900 and the defective chip sorting method are based on the same inventive concept and will not be described in detail herein.

[0115] In addition, refer to Fig.10 , the present application also provides a defective chip production system, including a control module 1010, a production module 1020, a transmission module 1030, a sorting module 1040 and a detection module 1050;

[0116] The production module 1020, the transmission module 1030, the detection module 1050 and the sorting module 1040 are respectively electrically connected to the control module 1010. The production module 1020 is used to produce BGA chips and place the BGA chips on the transmission module 1030. One end of the transmission module 1030 is connected to the production module 1020, and the other end of the transmission module 1030 is connected to the sorting module 1040. The transmission module 1030 is used to transmit the BGA chips from the production module 1020 to the sorting module 1040.

[0117] The detection module 1050 scans the BGA chip to obtain a chip scan image. The control module 1010 obtains the chip scan image in the production target and the detection module 1050, and executes the defective chip sorting method in the above embodiment, determines the sorting instructions, and determines the working status of the production module 1020, the transmission module 1030 and the sorting module 1040 according to the sorting instructions.

[0118] Specifically, the detection module 1050 includes an X-ray machine, which is used to scan the BGA chip to obtain a chip scan image.

[0119] Specifically, the sorting module 1040 includes a robot arm, a container for good products and a container for bad products. The control module 1010 controls the detection module 1050 to obtain a chip scanning image of the chip to be inspected, executes the defective chip sorting method in the above embodiment, determines the sorting instruction corresponding to the current chip to be inspected, and the control module 1010 sends the sorting instruction to the sorting module 1040, thereby controlling the robot arm to sort the chips to be inspected.

[0120] In addition, refer to Fig.11 , Fig.11 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0121] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0122] The memory 1102 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 calls and executes the defective chip sorting method of the embodiment of the present application, for example, executing the above-described Figure 1 Steps S110 to S140 of the method, Figure 2 Steps S210 to S230 of the method, Figure 3 In method step S310, Figure 4 Steps S410 to S430 of the method, Figure 5 Steps S510 to S540 of the method, Figure 6 In method step S610, Figure 7 Alternatively, the model training method of the embodiment of the present application is executed, for example, the above-described Figure 8 Steps S810 to S850 of the method;

[0123] Input / output interface 1103, used to implement information input and output;

[0124] The communication interface 1104 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0125] A bus 1105 that transmits information between various components of the device (e.g., the processor 1101, the memory 1102, the input / output interface 1103, and the communication interface 1104);

[0126] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .

[0127] The embodiment of the present application also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned defective chip sorting method, for example, to execute the above-described Figure 1 Steps S110 to S140 of the method, Figure 2 Steps S210 to S230 of the method, Figure 3 In method step S310, Figure 4 Steps S410 to S430 of the method, Figure 5 Steps S510 to S540 of the method, Figure 6 In method step S610, Figure 7 Alternatively, the model training method of the embodiment of the present application is executed, for example, the above-described Figure 8 Method steps S810 to S850.

[0128] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0129] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0130] It can be understood by those skilled in the art that Figures 1 to 11 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0131] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0133] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0134] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0135] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0136] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on 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.

[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0139] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A defective chip sorting method, characterized in that: include: Acquire a chip scanning image of the chip to be inspected, wherein the chip scanning image is obtained by scanning the chip to be inspected with an X-ray machine; Performing enhancement processing on edge features in the chip scanning image to obtain a target scanning image; Calling a defect detection model to detect the target scanned image to obtain defect areas, defect types corresponding to each defect area, and the number of defects corresponding to each defect type; Obtain a defect weight, perform weighted processing on the defect quantity based on the defect area and the defect weight to obtain a defect score, and determine a sorting instruction for the chip to be inspected according to the defect score.

2. The defective chip sorting method according to claim 1, characterized in that: The step of weighting the defect quantity based on the defect area and the defect weight to obtain a defect score, and determining a sorting instruction for the chip to be inspected according to the defect score includes: Obtaining a chip type and a production target of the chip to be inspected, and determining a defect weight and a score threshold according to the chip type and the production target; Weighting the number of defects based on the defect area and the defect weight to obtain a defect score; A sorting instruction for the chip to be inspected is determined according to the defect score and the score threshold.

3. The defective chip sorting method according to claim 1, characterized in that: Also includes: A defect display image of the chip to be inspected is generated according to the defect type and the defect area.

4. The defective chip sorting method according to claim 1, characterized in that: The step of enhancing the edge features in the chip scan image to obtain a target scan image includes: Performing enhancement processing on edge features in the chip scan image to obtain a first enhanced image; Performing noise reduction processing on the first enhanced image to obtain a second enhanced image; A first feature map and a scale attention weight are determined based on the second enhanced image, and the first feature map is adjusted according to the scale attention weight to obtain a target scanned image.

5. The defective chip sorting method according to claim 1, characterized in that: The calling of the defect detection model to detect the target scanned image to obtain defect areas, defect types corresponding to each defect area, and the number of defects corresponding to each defect type includes: Performing semantic segmentation on the target scanned image to obtain multiple candidate regions; Performing feature extraction processing on each of the candidate regions through a pre-trained convolutional layer to obtain a second feature map corresponding to each of the candidate regions; Activating each of the second feature maps respectively through a preset activation function to obtain a region type of each of the candidate regions, wherein the region type is a normal type or at least one of multiple defect types; For each of the candidate regions, when the region state of the candidate region is any of the defect types, determining the candidate region as a defect region; The number of defect areas corresponding to each defect type is counted to obtain the number of defects corresponding to each defect type.

6. The defective chip sorting method according to claim 1, characterized in that: Before calling the defect detection model to detect the target scanned image, the method further includes: Acquire a sample scan image of a sample chip, wherein the sample scan image includes a sample defect label; Calling a defect detection model to detect the sample scanned image to obtain a defect detection result, determining a target loss based on the defect detection result and the sample defect label, and training the defect detection model according to the target loss; Acquire a test scan image of the test chip, wherein the test scan image includes a test defect label; Calling the defect detection model to detect the test scan image to obtain a test detection result, and determining a detection score based on the test detection result and the test defect label; The defect detection model is retrained until the detection score is greater than a preset target score.

7. The defective chip sorting method according to claim 6, characterized in that: The calling of the defect detection model to detect the sample scanned image to obtain a defect detection result includes: Randomly rotating and flipping the sample scanned image to obtain a sample expanded image; The defect detection model is called to detect the sample expanded image to obtain a defect detection result.

8. A defective chip sorting device, characterized in that: include: An image acquisition module for obtaining a chip to be inspected, used to obtain a chip scanning image of the chip to be inspected, wherein the chip scanning image is obtained by scanning the chip to be inspected with an X-ray machine; A preprocessing module, used for enhancing edge features in the chip scanning image to obtain a target scanning image; A first processing module is used to call a defect detection model to detect the target scan image to obtain a defect area, a defect type, and a defect quantity corresponding to each defect type; The second processing module is used to obtain the defect weight, perform weighted processing on the defect quantity based on the defect area and the defect weight to obtain a defect score, and determine the sorting instruction of the chip to be inspected according to the defect score.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the defective chip sorting method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the defective chip sorting method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Chip surface defect automatic detection method and system based on defect-oriented multi-point positioning neural network

    CN111598856A

  • Chip surface defect parallel detection method based on improved convolution variational auto-encoder

    CN114463280A

  • Printed circuit board production parameter acquisition method, optical detection equipment, electronic equipment and storage medium

    CN115272180A

  • Software and hardware collaborative packaged chip detection device and method and electronic equipment

    CN116840244A

  • Chip appearance defect automatic detection method, electronic equipment and storage medium

    CN117011260A

Cited By

  • Intelligent defect detection system and method for X-ray image of power grid equipment

    CN121526991A

  • Intelligent material sorting method, device and equipment and storage medium

    CN121776147A