A method for attributing appearance detection defects to a preceding process and machine positioning
By constructing a defect type-responsible process mapping table and calculating the attribution-based machine process defect rate, the problem of the inability to automatically locate upstream machines in existing technologies has been solved. This enables rapid and accurate machine location and defect cause analysis, improving production efficiency and the timeliness of problem detection.
Patent Information
- Application Number
- CN202611405506.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot automatically, quickly, and with sufficient differentiation locate specific upstream machines from end-of-line appearance inspection data and identify the main cause of defects, resulting in low production efficiency and delayed discovery of defective products.
By constructing a defect type-responsible process mapping table and combining it with end-of-line appearance inspection data, the total number of inspections and defect counts for each batch of products are collected and attributed. The defect rate of the attribution-based machine process is calculated, enabling automatic location of abnormal machines and output of the main cause of defects.
Without adding front-end inspection equipment, it can quickly and accurately locate the front-end machine causing the defect and give the main cause of the defect. This solves the problems of diluted total defect rate statistics and insufficient differentiation of machine abnormalities in traditional methods, and improves production efficiency and the timeliness of problem detection.
Smart Images

Figure CN123160101A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial visual inspection technology, specifically to a method for attributing defects in the front-end process and positioning the machine. Background Technology
[0002] In the electronic component manufacturing industry, products undergo multiple parallel processing steps before being transferred to the final appearance inspection station. Machine vision inspection equipment is used to inspect each product for defects. Taking aluminum electrolytic capacitor production as an example, the front-end includes multiple processes such as winding, aging, and die marking, with multiple production machines operating in parallel for each process. The final appearance inspection machine can output the total number of products inspected and the total number of defects for each batch, and can also break down the defects into dozens to hundreds of different types of defects.
[0003] End-of-line appearance inspection equipment can only detect defects, telling process engineers how many defects are present in a batch and what those defects are. However, it cannot directly identify the source process of the defects, let alone pinpoint the specific upstream machine that caused them. Many appearance defects originate in upstream processing steps. For example, malfunctions in the aging process can lead to defects such as bulging and leakage; malfunctions in the sleeve-making machine can cause defects such as polarity deviation, sleeve warping, and poor printing; scratches and dirt may originate from the transfer or inspection stages.
[0004] The existing technologies for dealing with this type of problem mainly include the following methods.
[0005] The appearance inspection system itself can only perform batch-level defect statistics. The system is not connected with the front-end machine data and has no ability to attribute process causes or locate machines.
[0006] Manufacturing Execution System (MES) and Statistical Process Control System (SPC) can only collect yield data at the production line and process level. The statistical granularity is coarse and cannot be drilled down to a single production machine. When there are multiple parallel machines in the same process, it is impossible to distinguish which machine has a quality abnormality.
[0007] The manual inspection method involves process engineers relying on their personal experience to guess the suspicious machines, and then stopping the machine to sample and compare the products produced by the suspicious machines for verification. This method is highly dependent on personnel experience, and it is difficult to cover a large number of machines. The inspection often takes several hours or even days. At the same time, stopping the machine for sampling will interrupt the production process, resulting in capacity loss. Problems are discovered late, and a large number of defective products have already been produced and transferred.
[0008] The rudimentary method of machine statistics, even if the production line has recorded the machine numbers that each batch of products has passed through, directly calculates the total defect rate of each batch produced by each machine and sorts them. This approach has inherent flaws: the total defect rate is mixed with defects from other processes, as well as common background defects from end-of-line inspection and transfer processes. These background defects exist for all machines, which dilutes the true quality differences between different machines, causing abnormal machines to be masked. It is difficult to identify abnormal machines from the total defect rate ranking results. This is the core technical obstacle to directly using end-of-line appearance inspection data for front-end machine positioning.
[0009] In summary, the existing technology lacks a technical solution that can automatically attribute defects to processes and locate abnormal machines with high discrimination based solely on existing data from end-stage appearance inspection without adding new hardware inspection equipment in the front-end processes, while simultaneously outputting the main cause of the machine's defect. Summary of the Invention
[0010] To address the problems in the prior art, this invention provides a method for attributing the causes of defects in the front-end process and locating the machine, which can automatically, quickly and with sufficient discrimination, locate the specific front-end machine causing the defect, starting from the existing data of the end-end appearance inspection, without adding any front-end inspection devices, and further give the main cause of the defect of the machine. This solves the technical problems that traditional total defect rate statistics are diluted by common background defects and the machine anomaly discrimination is insufficient.
[0011] This invention provides a method for attributing defects in the front-end process and positioning the machine for visual inspection, comprising: Step 1: Pre-determine the mapping relationship between defect type and responsible process, and construct a mapping table M. The mapping table M uses the defect type name as the key and the responsible process identifier as the value. The set of responsible process identifiers contains at least two front-end process identifiers and one end-end other category. All defect types that can be output by appearance inspection are assigned to their corresponding responsible processes. All defect types belong to exactly one responsible process, so that the complete set of defect types is not missed and the defect sets corresponding to each responsible process are mutually exclusive. Step 2: Collect batch data, obtain the total number of inspections for each batch of products, the defect count by defect type, and the machine identification corresponding to each upstream process through which the batch of products flowed. Step 3, process attribution processing: Iterate through each defect type and its corresponding defect count in a single batch, perform normalization processing on the defect type name, query the mapping table M to obtain the corresponding responsible process, add the defect count to the process defect count of the corresponding responsible process, and verify that the sum of the process defect counts of all responsible processes equals the total defect count of the batch. Step 4, machine positioning: Select the target front-end process, and group all batches according to the machine identifier corresponding to the target process. Batches corresponding to the same machine identifier are grouped into the same group G_j. Calculate the attribution machine process defect rate R_j corresponding to each group G_j, R_j=(Σ_{b∈G_j} process defect number_w(b))÷(Σ_{b∈G_j} total number of inspections(b)), where w is the target front-end process, process defect number_w(b) is the process defect number of batch b belonging to the target front-end process w, and total number of inspections(b) is the total number of product inspections of batch b, where b is a positive integer; Step 5, Sorting Output and Anomaly Judgment: Based on the attribution rate R_j of each group, sort the machine process defects in descending order, identify and output abnormal machines, and for the group corresponding to the located abnormal machine, select only the defect counts of the defect type belonging to the target upstream process w and accumulate them, sort the defect results from largest to smallest, and take the top few items as the main cause defects of the machine.
[0012] The present invention is further improved in that, in step 2, the batch data collection includes an automatic identification step of multiple camera model summary detail tables, reading the metadata of the local database of the appearance inspection equipment, comparing the number of columns of each individual detail table, and selecting the detail table with the most columns as the summary detail table; reading the final judgment result of the product and the defect type from the summary result column and summary classification column of the summary detail table; using only the summary column set, and prohibiting the mixing of single camera judgment column and summary judgment column.
[0013] The present invention is further improved by including a statistical elimination step in step 2, in which records that match the preset non-product keywords in the summary classification field are judged as non-products and are not included in the total number of tests or the defect count; re-inspection batches whose batch numbers match the re-inspection mark are directly eliminated and are not included in the subsequent attribution and machine positioning calculations.
[0014] The present invention is further improved by including an incremental acquisition and idempotent reporting step in step 2. The last write time of each batch record is read periodically, and the batch data is re-counted and reported only when the last write time of a batch changes. The update or insertion operation is performed using the device identifier and batch number as idempotent keys, and duplicate reporting will not generate duplicate data. The machine identifier comes from at least one of the following: report field, file name parsing, MES scheduling record, work order, RFID, or product traceability code.
[0015] The present invention is further improved in that, in step 3, the standardization of defect type names includes removing the severity prefix from the defect type name, merging different defect spellings with the same semantics, using the standardized defect type name lookup mapping table M; traversing all output defect types of the appearance inspection equipment to perform completeness verification, and classifying defect types that do not match any previous process into other categories at the end, and entering them into a list to be manually confirmed.
[0016] The present invention is further improved by including a first-level process ranking step in step 5, which uses the sum of the total number of batch inspections as the denominator and the sum of the number of process defects of each responsible process as the numerator to calculate the process defect rate of each process, sorts them according to the process defect rate, and selects the target front-end process w based on the sorting result.
[0017] The present invention is further improved in that, in step 5, the abnormal machine is identified by calculating the mean μ and standard deviation σ of the attribution rate R_j of all machines in the target process group; when R_j corresponding to the group is greater than μ + k・σ, the machine is determined to be an abnormal machine, where k is a preset multiple.
[0018] The present invention is further improved by using P control charts, Lane P' charts, box plots for outlier detection, and statistical tests to identify abnormal machines in step 5.
[0019] The present invention is further improved in that, in step 1, the mapping relationship of the mapping table M is obtained in two ways: the first is to manually configure it according to the process mechanism; the second is to automatically generate the defect-responsible process mapping relationship based on historical production line data and the correlation strength between defect type and machine number through statistical learning.
[0020] In a further improvement to this invention, in step 4, when the same batch of products flows through multiple front-end processes simultaneously, the batch will be added to the machine group corresponding to each of the multiple front-end processes; when calculating the attribution machine process defect rate in different process groups, only the process defect number corresponding to the target process is used, and the calculations between different processes do not interfere with each other.
[0021] Compared with the prior art, the beneficial effects of the present invention are as follows: The present invention provides a method for attributing defects in the front-end processes and locating machines in the final stage of appearance inspection. By pre-constructing a defect type-responsibility process mapping table, various defects output by appearance inspection are assigned to their corresponding front-end processing processes or other end-stage categories. The total number of products inspected in each batch, the defect count by defect type, and the machine identifiers corresponding to each batch of products flowing through each front-end process are collected from the final appearance inspection equipment. Based on the mapping table, the defect count for each batch is broken down and accumulated to obtain the process defect count for each process corresponding to each batch. After selecting the target process, the batches are grouped according to the machine identifier. The attribution-based machine process defect rate is calculated. The numerator of this defect rate is the sum of the number of defects in all batches within the group that belong to the target process, and the denominator is the sum of the total number of inspections in all batches within the group. Based on the attribution-based machine process defect rate, machine sorting and abnormal machine identification are completed. Furthermore, the main cause defect corresponding to the abnormal machine can be output. Starting from the existing data of the end appearance inspection, without adding any front-end inspection equipment, it can automatically, quickly and with sufficient discrimination locate the specific front-end machine that caused the defect, and further give the main cause defect of the machine. This solves the technical problems of traditional total defect rate statistics being diluted by common background defects and insufficient discrimination of machine abnormalities. Attached Figure Description
[0022] Figure 1 This is a flowchart of the method for attributing defects in the front-end process and positioning the machine in the appearance inspection according to the present invention. Detailed Implementation
[0023] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0024] like Figure 1 As shown, the present invention provides a method for attributing defects in the front-end process and positioning the machine for appearance inspection, comprising: Step 1: Pre-determine the defect type-responsible process mapping relationship and construct a mapping table M. Mapping table M uses the defect type name as the key and the responsible process identifier as the value. The set of responsible process identifiers includes at least two upstream process identifiers and one downstream "other" category. All output defect types from appearance inspection are assigned to their corresponding responsible processes, ensuring that all defect types belong to exactly one responsible process, achieving a complete set of defect types without omissions and that the defect sets corresponding to each responsible process are pairwise non-overlapping. The mapping relationship in mapping table M is obtained in two ways: the first is manual configuration based on the process mechanism; the second is automatic generation of the defect-responsible process mapping relationship based on historical production line data and the correlation strength between defect types and machine numbers through statistical learning.
[0025] Step 2 involves collecting batch data, obtaining the total number of inspections for each batch of products, the defect count by defect type, and the machine identifiers corresponding to each upstream process through which the batch of products passed. This batch data collection includes an automatic identification step for multiple camera model summary detail tables. It reads metadata from the local database of the appearance inspection equipment, compares the number of columns in each detail table, and selects the detail table with the most columns as the summary detail table. The final product judgment result and defect type are read from the summary result column and summary category column of the summary detail table. Only the summary column set is used; mixing single-camera judgment columns and summary judgment columns is prohibited. Step 2 also includes a statistical caliber elimination step, where records whose summary category field matches preset non-product keywords are judged as non-products and are not included in the total number of inspections or defect count. Re-inspection batches with batch numbers matching the re-inspection identifier are directly eliminated and not included in subsequent attribution and machine positioning calculations. It also includes incremental data collection and idempotent reporting steps, periodically reading the last write time of each batch record, and only re-collecting and reporting batch data when the last write time of a batch changes; using the device identifier and batch number as idempotent keys to perform update or insert operations, and repeated reporting will not generate duplicate data; the machine identifier comes from at least one of the following: report fields, file name parsing, MES scheduling records, work orders, RFID, or product traceability codes.
[0026] Step 3, process attribution: Iterate through each defect type and its corresponding defect count in a single batch. After normalizing the defect type name, query the mapping table M to obtain the corresponding responsible process. Add the defect count to the process defect count of the corresponding responsible process, and verify that the sum of the process defect counts of all responsible processes equals the total defect count of the batch. The normalization of defect type names includes removing severity prefixes from defect type names, merging different defect spellings with the same meaning, and querying the mapping table M using the normalized defect type name. Iterate through all output defect types from the appearance inspection equipment to perform a completeness check. Defect types that do not match any preceding process are classified into other categories at the end and entered into a list awaiting manual confirmation.
[0027] Step 4: Machine Positioning. Select the target upstream process and group all batches according to the machine identifier corresponding to the target process. Batches corresponding to the same machine identifier are grouped into the same group G_j. Calculate the attribution-based machine process defect rate R_j for each group G_j: R_j = (Σ_{b∈G_j} Number of Defects_w(b)) ÷ (Σ_{b∈G_j} Total Number of Inspections(b)), where w is the target upstream process, number of defects_w(b) is the number of defects in batch b belonging to the target upstream process w, and total number of inspections(b) is the total number of product inspections in batch b, where b is a positive integer. When the same batch of products flows through multiple upstream processes simultaneously, the batch will be added to the machine groups corresponding to each of the multiple upstream processes. When calculating the attribution-based machine process defect rate for different process groups, only the number of defects corresponding to the target process is used, and the calculations between different processes do not interfere with each other.
[0028] Step 5, Sorting Output and Anomaly Judgment: Based on the attribution-based machine process defect rate R_j of each group, sort them in descending order, identify and output abnormal machines. For the group corresponding to the located abnormal machine, only select and accumulate the defect counts of the defect type belonging to the target upstream process w, sort the defect counts from largest to smallest, and take the top few items as the main cause defects of the machine. This also includes a first-level process ranking step, using the sum of the total number of batch inspections as the denominator and the sum of the process defects of each responsible process as the numerator to calculate the process defect rate of each process, sort them according to the process defect rate, and select the target upstream process w based on the sorting results. The method for identifying abnormal machines is to calculate the mean μ and standard deviation σ of the attribution-based machine process defect rate R_j of all machine groups under the target process; if the R_j corresponding to the group is greater than μ + k・σ, then the machine is determined to be an abnormal machine, where k is a preset multiple. P control charts, Lane P′ plots, box plots for outlier detection, and statistical tests can also be used to identify abnormal machines.
[0029] In this embodiment, defect types are used as a bridge connecting end-of-line inspection and front-end processes. Each defect type has a definite process cause and can therefore be attributed to a certain front-end process. By recording the machine numbers of each batch of products that it passes through, the defects detected at the end of the process can be "returned" to the responsible process and machine.
[0030] In this embodiment, the specific steps are as follows.
[0031] Step 1, Preset Defect Types - Responsible Process Mapping 1.1 Data Structure: Establish a mapping table M with "Defect Type Name" as the key and "Responsible Process Identifier" as the value; the process identifier set contains at least two upstream processes ("Aging Machine" and "Casing Machine" in this embodiment) and one downstream other category. The mapping table is stored in an independent configuration (database table or JSON), decoupled from the algorithm.
[0032] 1.2 Attribution Basis (Based on Process Mechanism): Each type of defect is assigned to its causative process, as shown in Table 1 below (this can be adjusted according to specific production lines): Table 1. Defect Type - Responsible Process Mapping Table Responsible process Defect types of attribution (examples, not exhaustive) Sleeving / printing process (sleeving machine) Misalignment, reverse polarity, sleeve warping, sleeve short / long, exposed material, sleeve notches / rolled edges / holes, poor shrinkage, expansion, sleeve reversed, deformed rubber stopper, unsealed, illegible lettering, poor printing, etc. Enhancing the aging process (aging machine) Side drum, bottom drum, explosion-proof valve drum / crack, rubber stopper leakage, leakage, terminal root burn / arc, mixed materials, etc. End / Other Scratches, dirt, bumps, aluminum shell dents, imaging / algorithm anomalies (such as NG1), and other defect types that cannot be clearly categorized into a previous process. 1.3 Name standardization: Before looking up the table, the defect type name is standardized by removing severity prefixes (such as "minor / serious") and merging synonyms (such as "blackening and yellowing" and "yellowing and blackening"). Then, the standardized name is used to look up the mapping table M to avoid the same defect being missed or duplicated due to different spellings.
[0033] 1.4 Completeness Verification (No Omissions, No Repetitions): Traverse all defect types that the appearance inspection equipment can output, verifying that each type exactly matches one process category; those that do not match any preceding process are included in the final other categories and recorded in the list awaiting manual confirmation. This ensures that the union of all process sets equals the complete set of all defect types, and that the intersection of any pair of process sets is empty.
[0034] 1.5 Maintainability and alternative implementation: adding new defect types or different production lines only requires modifying the configuration, not the algorithm; the mapping relationship can be obtained by learning from historical data statistics, in addition to manual configuration according to the process mechanism (automatically assigned according to the correlation strength between defect type and machine number).
[0035] Step 2, collect data for each batch 2.1 Data source location: read the local database of the appearance inspection equipment; for multi-camera models, the details of each item in the same batch are stored in multiple databases, with each database corresponding to a camera view.
[0036] 2.2 Summary Table Identification (Judgment Rules): Query the local database metadata and compare the number of columns in each detailed table of this batch. Select the table with the most columns as the summary detailed table. The summary table contains not only the judgment column for this camera but also the result columns for each camera and the summary column, hence it has the most columns. This criterion can universally locate the summary table without reading the camera configuration of the detection software, avoiding the mistaken selection of a single camera table that could lead to missed defects or inflated yield rates.
[0037] 2.3 Read and count each product individually. Read the final judgment and defect type of each product from the "Summary Result Column / Summary Category Column" of the summary details table; based on this, count the total number of products inspected in the batch and the "Defect Count by Defect Type". The summary table contains two sets of columns: "This Camera Judgment Column" and "Summary Judgment Column". The entire summary column must be used and cannot be mixed (otherwise, errors such as the defect name being rolled back to "OK" will occur).
[0038] 2.4 Statistical Scope Exclusion (Judgment Rules): (a) Exclude non-products: If the summary classification value contains preset non-product keywords (such as "empty space", indicating that the tray is empty), it will not be included in the total number of inspections or the defect count; (b) Exclude re-inspection batches: Batch numbers with preset re-inspection marks are naturally high in defects and must be excluded to avoid interference.
[0039] 2.5 Machine identification data collection: Read the machine numbers that this batch has passed through in each upstream process (in this example, the aging machine number and the sleeve machine number); the machine identification data source can be a report field, parsing of each detailed file name, or MES production scheduling record, work order, RFID, or product traceability code.
[0040] 2.6 Incremental data acquisition and idempotent reporting: The "last write time" of each batch is read periodically, and the data is re-accounted and reported only when it changes relative to the last read. The report is performed to update or insert (upsert) with (device identifier, batch number) as the idempotent key. Repeated reporting will not generate duplicate data.
[0041] 2.7 Output: Each batch yields one batch data record = {total number of inspections, defect count by defect type (dictionary), aging machine number, sleeve machine number, ...}.
[0042] Step 3, Process Attribution (How to determine process attribution) 3.1 For any batch, initialize the number of defects in each process to 0 (including other categories at the end).
[0043] 3.2 Traverse each entry (defect type, count) in the dictionary of "defect count by defect type" for this batch: first normalize the defect type according to 1.3, then look up the mapping table M to get its responsible process w, perform accumulation, and the number of defects in the process [w] += the count.
[0044] 3.3 Identity Verification: Σ_(Number of defects in all processes, including other end-stage categories) = Total number of defects in the batch. If they are not equal, it indicates the presence of unclassified defect types, and we return to 1.4 to complete the mapping. This identity ensures that the original yield rate is not changed and can be directly verified against the production line reports.
[0045] 3.4 Pseudocode: for all batches in batch bin: seg={aging machine:0, casing machine:0, other terminal components:0} for(defect type d, count n) in b.defect count: w=M[normalize(d)]#Responsible Process seg[w]+=n assertsum(seg.values()) == b. Total number of defects b. Number of defects in a process = seg Step 4, Machine positioning 4.1 Select the target upstream process w (e.g., "sleeving machine"; can be selected from the ranking results of the first-level processes).
[0046] 4.2 Grouping: Based on the machine number of each batch in process w, group all batches together. Batches with the same machine number are grouped into the same group G_j. Note: The same batch will simultaneously enter its "Aging Machine Number Group" and "Sleeve Machine Number Group", but each group only takes the number of defects in "this process w" for that batch, and the two processes do not interfere with each other.
[0047] 4.3 Attribution-based machine tool process defect rate (critical asymmetric structure): R_j=(Σ_{b∈G_j}number of defective processes_w(b))÷(Σ_{b∈G_j}total number of inspections(b)) That is, the numerator only includes the defect count that is determined to be the responsibility of process w based on the mapping, while the denominator is still the total number of inspections of the batch processed by that machine.
[0048] 4.4 Explanation of function: If the numerator is changed to "total defect count", the background defects (approximately 2.5%) common to all machines in other categories at the end will dilute the differences between machines; after this asymmetric structure limits the numerator to the defects responsible for this process, the real differences between machines are amplified (for example, the ratio of No. 30 and No. 35 sleeve machines is restored from approximately 1.4 times under "total defect rate" to 7.7 times), and abnormal machines are clearly visible.
[0049] Step 5: Sorting Output and Exception Handling 5.1 First-level process ranking: The process defect rate of each process is calculated and ranked by using the sum of the total number of batches inspected as the denominator and the sum of the number of defects in each process as the numerator. Based on this, the problematic process is selected as the target process w.
[0050] 5.2 Secondary machine ranking: Sort and output the machine numbers of each process w in descending order according to R_j.
[0051] 5.3 Abnormal Machine Judgment: Calculate the mean μ and standard deviation σ of R_j for each machine in the target process. Machines satisfying R_j > μ + k·σ (where k is a preset multiple, such as 2 or 3) are judged as abnormal machines and an alarm is output. Abnormal judgment can also be achieved using control charts (P-charts / Laney P'-charts), box plots for outliers, or other statistical tests.
[0052] Step 6, Root Cause Defect 6.1 For the group corresponding to the located abnormal machine, only the defect count belonging to the defect type of process w is selected and accumulated according to the defect type.
[0053] 6.2 Sort the cumulative results from largest to smallest, and take the top few items as the main causes of defects (Pareto) for the machine, pointing to the specific steps in the process. Example: For the No. 30 casing machine, only the casing process defects are counted, and the main causes of defects are "slight deviation 26.9%, slight rubber plug exposure 14.7%, and severe deviation 12.1%", pointing to the positioning / pipe delivery steps of the machine.
[0054] As can be seen from the above, the present invention provides a method for attributing defects in the front-end processes and locating machines in the visual inspection process. This method pre-constructs a defect type-responsibility process mapping table to assign various defects output by the visual inspection process to their corresponding front-end processing processes or other end-stage categories. It collects the total number of products inspected in each batch from the end-stage visual inspection equipment, the defect count by defect type, and the machine identifiers corresponding to each batch of products flowing through each front-end process. Based on the mapping table, the defect count for each batch is broken down and accumulated to obtain the process defect count for each process corresponding to each batch. After selecting the target process, the batches are grouped according to the machine identifier, and the attribution-based machine identification is calculated. The process defect rate is calculated by dividing the numerator by the sum of the number of defects in all batches within the group that belong to the target process, and the denominator by the sum of the total number of inspections in all batches within the group. Based on the attribution-based process defect rate, the system sorts and identifies abnormal machines, and can further output the main cause defects corresponding to abnormal machines. It can automatically, quickly, and with sufficient discrimination locate the specific machine causing the defect from the front-end appearance inspection data without adding any front-end inspection devices, and further provide the main cause defects of that machine. This solves the technical problems of traditional total defect rate statistics being diluted by common background defects and insufficient discrimination of machine abnormalities.
[0055] The specific embodiments described above are preferred embodiments of the present invention and are not intended to limit the specific scope of the present invention. The scope of the present invention includes, but is not limited to, these specific embodiments. All equivalent changes made in accordance with the present invention are within the protection scope of the present invention.
Claims
1. A method for attributing defects in the front-end process and positioning the machine, characterized in that, Includes the following steps: Step 1: Pre-determine the mapping relationship between defect type and responsible process, and construct a mapping table M. The mapping table M uses the defect type name as the key and the responsible process identifier as the value. The set of responsible process identifiers contains at least two front-end process identifiers and one end-end other category. All defect types that can be output by appearance inspection are assigned to their corresponding responsible processes. All defect types belong to exactly one responsible process, so that the complete set of defect types is not missed and the defect sets corresponding to each responsible process are mutually exclusive. Step 2: Collect batch data, obtain the total number of inspections for each batch of products, the defect count by defect type, and the machine identification corresponding to each upstream process through which the batch of products flowed. Step 3, process attribution processing: Iterate through each defect type and its corresponding defect count in a single batch, perform normalization processing on the defect type name, query the mapping table M to obtain the corresponding responsible process, add the defect count to the process defect count of the corresponding responsible process, and verify that the sum of the process defect counts of all responsible processes equals the total defect count of the batch. Step 4, machine positioning: Select the target front-end process, and group all batches according to the machine identifier corresponding to the target process. Batches corresponding to the same machine identifier are grouped into the same group G_j. Calculate the attribution machine process defect rate R_j corresponding to each group G_j, R_j=(Σ_{b∈G_j} process defect number_w(b))÷(Σ_{b∈G_j} total number of inspections(b)), where w is the target front-end process, process defect number_w(b) is the process defect number of batch b belonging to the target front-end process w, and total number of inspections(b) is the total number of product inspections of batch b, where b is a positive integer; Step 5, Sorting Output and Anomaly Judgment: Based on the attribution rate R_j of each group, sort the machine process defects in descending order, identify and output abnormal machines, and for the group corresponding to the located abnormal machine, select only the defect counts of the defect type belonging to the target upstream process w and accumulate them, sort the defect results from largest to smallest, and take the top few items as the main cause defects of the machine.
2. The method for attributing defects in the front-end process and positioning the machine according to claim 1, characterized in that: In step 2, the batch data collection includes an automatic identification step for multiple camera model summary detail tables, reading the metadata of the local database of the appearance inspection equipment, comparing the number of columns in each detail table, and selecting the detail table with the most columns as the summary detail table. Read the final product judgment result and defect type from the summary result column and summary category column of the summary details table; only use the summary column set, and do not mix the single camera judgment column and the summary judgment column.
3. The method for attributing defects in the front-end process and positioning the machine according to claim 2, characterized in that: Step 2 also includes a statistical elimination step, in which records that match the preset non-product keywords in the summary classification field are judged as non-products and are not included in the total number of tests or the defect count; re-inspection batches whose batch numbers match the re-inspection mark are directly eliminated and are not included in the subsequent attribution and machine positioning calculations.
4. The method for attributing defects in the front-end process and positioning the machine according to claim 3, characterized in that: Step 2 also includes incremental acquisition and idempotent reporting steps, periodically reading the last write time of each batch of records, and only when the last write time of a batch changes, re-collecting and reporting the batch data; Update or insert operations are performed using the equipment identifier and batch number as idempotent keys, and duplicate reports will not generate duplicate data; the machine identifier comes from at least one of the following: report fields, file name parsing, MES scheduling records, work orders, RFID, or product traceability codes.
5. The method for attributing defects in the front-end process and positioning the machine according to claim 4, characterized in that: In step 3, the normalization process of defect type names includes removing the severity prefix from the defect type names, merging different defect spellings with the same semantics, and using the normalized defect type names to query the mapping table M. Perform a completeness check on all output defect types from the appearance inspection equipment. Defect types that do not match any previous process are classified into other categories at the end and entered into a list awaiting manual confirmation.
6. The method for attributing defects in the front-end process and positioning the machine according to claim 5, characterized in that: Step 5 also includes a first-level process ranking step, which uses the sum of the total number of batch inspections as the denominator and the sum of the number of process defects in each responsible process as the numerator to calculate the process defect rate of each process, sorts them according to the process defect rate, and selects the target front-end process w based on the ranking result.
7. The method for attributing defects in the front-end process and positioning the machine according to claim 6, characterized in that: In step 5, the abnormal machine is identified by calculating the mean μ and standard deviation σ of the attribution rate R_j of all machines in the target process group; when R_j corresponding to the group is greater than μ + k・σ, the machine is determined to be an abnormal machine, where k is a preset multiple.
8. The method for attributing defects in the front-end process and positioning the machine according to claim 7, characterized in that: In step 5, outlier machines can also be identified using P control charts, Lane P' plots, box plots for outlier detection, and statistical tests.
9. The method for attributing defects in the front-end process and positioning the machine according to claim 8, characterized in that: In step 1, the mapping relationship of the mapping table M is obtained in two ways: the first is to manually configure it based on the process mechanism; the second is to automatically generate the defect-responsible process mapping relationship based on historical production line data and the correlation strength between defect type and machine number through statistical learning.
10. The method for attributing defects in the front-end process and positioning the machine according to claim 9, characterized in that: In step 4, when the same batch of products flows through multiple front-end processes at the same time, the batch will be added to the machine group corresponding to each of the multiple front-end processes. When calculating the attribution machine process defect rate in different process groups, only the process defect number corresponding to the target process is used, and the calculation between different processes does not interfere with each other.
