A one-to-one code online detection and terminal detection two-way calibration method

CN123155535APending Publication Date: 2026-11-24BEIJING DAHENG IMAGE VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611361472.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the packaging and printing production process lacks online detection and terminal detection correlation and comparison for each product, each defect, and each location. It also lacks differentiated calibration strategies, relies on one-way terminal detection calibration, does not utilize manual review results, and lacks intelligent arbitration for detection conflicts, resulting in insufficient detection accuracy.

Method used

A two-way calibration method for online and terminal detection is adopted, which binds detection data through one-item-one-code identification, adopts differentiated calibration strategies according to defect type classification, performs two-way calibration based on manual review results, and uses credibility scoring to arbitrate detection conflicts, thus forming a closed-loop optimization of the detection system.

Benefits of technology

It achieves precise calibration for each product, each defect, and each location, improving detection accuracy, preventing the systematic amplification of terminal detection errors, and increasing the calibration hit rate and processing efficiency of the detection system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123155535A_ABST
    Figure CN123155535A_ABST
Patent Text Reader

Abstract

This invention discloses a bidirectional calibration method for online and terminal inspection based on a unique item code, comprising the following steps: Step S1: Establishing a correlation comparison between online and terminal inspection for each process based on the unique item code, and obtaining the comparison results; Step S2: Classifying by defect type and adopting a differentiated calibration strategy; Step S3: Forward calibration of online inspection based on manually confirmed terminal inspection; Step S4: Reverse calibration of terminal inspection based on manually reviewed and confirmed online inspection; Step S5: Arbitrating detection conflicts in the comparison results based on bidirectional reliability scoring; Step S6: Continuously achieving preset accuracy requirements through arbitration and fine-tuning, and realizing a closed loop of inspection, arbitration, and fine-tuning. This invention relies on a unique item code to achieve precise calibration per product, per defect, and per location, refining inspection calibration from the traditional "batch statistics level" to the "single product, single defect, single location" level, significantly improving calibration accuracy and specificity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of industrial visual inspection, packaging and printing quality management, and intelligent manufacturing process control, specifically to a bidirectional calibration method for online inspection and terminal inspection oriented towards one item, one code. Background Technology

[0002] In the packaging printing production process, online inspection equipment is typically deployed at multiple key stages, such as gravure printing, offset printing, hot stamping, inkjet printing, and die-cutting. This online visual inspection equipment is used to detect defects in real time, including printing smudges, registration errors, color differences, hot stamping peeling, blurry inkjet printing, and die-cutting misalignment. Additionally, after die-cutting, small sheet or small carton inspection stages usually involve final visual inspection equipment to check the final printing and coding quality of the finished product.

[0003] However, conventional online detection in existing technologies still has the following shortcomings:

[0004] 1. There is no basis for product-by-product and location-by-location comparison based on one item, one code; existing inspection systems usually count defects at the work order batch or time period granularity, which cannot be accurate to individual products. When terminal inspection finds a defect in a product, it is impossible to match it with the online inspection results of the product in each process, so the inspection calibration can only stay at the "statistical level" and cannot achieve accurate comparison "product-by-product, defect-by-defect, and location-by-location".

[0005] 2. All types of defects are calibrated using the same strategy without distinguishing their source characteristics; in actual production, the source characteristics of different defects vary greatly, including:

[0006] Process-specific defects: Some defects only occur in specific processes. For example, misregistration mainly originates from gravure / offset printing, hot stamping peeling originates from the hot stamping process, and die-cutting misalignment originates from the die-cutting process. These types of defects can be clearly identified by the inspection parameters of the processes that produce them.

[0007] Cross-process defects: Some defects may occur at any stage of the process or during the transfer of goods or services. Examples include dirt spots, ink spots, scratches, and foreign objects. These defects may originate from multiple stages such as printing, handling, stacking, and transfer. These types of defects cannot be matched to the inspection parameters of a single process.

[0008] 3. Relying solely on terminal testing to evaluate online testing results in a one-dimensional calibration approach. Current technologies generally consider terminal testing to be located at the end of the production chain and closer to final quality judgment, thus using terminal testing results to evaluate and adjust online testing in a unidirectional manner. However, terminal testing itself may also have false positives and false negatives. Unidirectional calibration will amplify the systematic errors of terminal testing and cannot use manually verified online testing results to correct terminal testing in reverse.

[0009] 4. The results of manual review are not used to drive the calibration of the testing system; the manual review in the existing quality control center is only used to confirm whether a certain defect is real and to serve the handling of a single defect. The review results are not statistically analyzed or indexed, and are not used as a unified benchmark to drive the adjustment of online testing and terminal testing parameters.

[0010] 5. Lack of intelligent arbitration mechanism for detection conflicts: When online detection results are inconsistent with terminal detection results, existing technologies either default to trusting terminal detection or rely on manual review of each result, lacking an automatic arbitration mechanism based on the credibility of the detection process, resulting in low efficiency and insufficient accuracy. Summary of the Invention

[0011] The technical problems to be solved by this invention are: how to use product-by-product-one-code as the basis for traceability to achieve correlation and comparison between online detection and terminal detection for each product, each defect, and each location; how to adopt differentiated calibration strategies according to defect types; and how to achieve mutual calibration between online detection and terminal detection through manual review results from the quality control center and two-way reliability scoring, thereby improving the overall detection accuracy.

[0012] This invention discloses a bidirectional calibration method for online detection and terminal detection based on a unique code for each item. The method includes the following steps:

[0013] Step S1: Establish a comparison between online detection and terminal detection for each process based on one item, one code, and obtain the comparison results;

[0014] Step S2: Classify defects by type and adopt a differentiated calibration strategy;

[0015] Step S3: Forward calibration of online detection based on manually verified terminal detection;

[0016] Step S4: Reverse calibration of terminal detection based on online detection confirmed by manual review;

[0017] Step S5: Arbitrate conflicts based on the comparison results of the two-way credibility scores;

[0018] Step S6: Continue fine-tuning through arbitration, forward calibration, and reverse calibration in steps S3-S5 until the preset accuracy requirements are met, thus achieving a closed loop of detection, arbitration, and fine-tuning.

[0019] Furthermore, step S1 includes the following steps:

[0020] Step S11: Assign a unique code to each product and link it to the testing data of each production process;

[0021] Step S12: Using one item, one code as the primary key, link the online inspection results of the product at each process stage with the terminal inspection results;

[0022] Step S13: For each product with a unique code, the defect association comparison yields the following results:

[0023] Both online detection and terminal detection detected the same defect, which was of the same type and location.

[0024] Both online and terminal detection detected problems, but the subdivision of the defect type or the severity level of the defect differed.

[0025] The terminal detection detected it, but the corresponding online detection did not.

[0026] It was detected online, but not by the terminal.

[0027] Furthermore, step S2 includes the following steps:

[0028] Step S21: Based on the comparison results of process-specific defects, perform corresponding calibration of the online detection of each process;

[0029] Step S22: Perform overall calibration of online inspection for all processes based on the comparison results of cross-process defects;

[0030] Step S23: By maintaining a defect type classification table, record whether each defect type belongs to a process-specific defect or a cross-process defect, as well as the process that generated the process-specific defect.

[0031] Furthermore, step S3 includes the following steps:

[0032] Step S31: For a specific defect in the process, adjust the detection parameters of the process based on the comparison results between the terminal detection and the corresponding online detection of the process.

[0033] Step S32: For cross-process defects, adjust the general detection parameters for this type of defect based on the overall comparison results between terminal detection and online detection of all processes.

[0034] Step S33: Calculate the online missed detection rate for various types of defects:

[0035] ;

[0036] The online missed detection rate for a certain type of defect This represents the number of actual defects in the terminal that were not detected by online inspection. This represents the total number of defects detected at the terminal and confirmed manually.

[0037] Step S34: Calculate the online false alarm rate for various types of defects:

[0038] ;

[0039] The online false alarm rate for a certain type of defect. This refers to the number of online error reports that have been manually reviewed and confirmed as false alarms. This refers to the number of online error reports that have been submitted for manual review.

[0040] Step S35: When the online missed detection rate or online false alarm rate of a certain defect type is higher than the threshold, adjust the online detection judgment threshold corresponding to the defect.

[0041] Furthermore, step S4 includes the following steps:

[0042] S41 receives online and terminal detection results, performs manual review on key samples, and records the manual confirmation results: real defects, false alarms, missed detections, defect type corrections, and severity corrections.

[0043] S42, when an online inspection detects a defect, and the quality control center confirms the existence of the defect through manual review, but the terminal inspection fails to detect the defect, the sample is marked as "terminal missed detection";

[0044] S43, Calculate the terminal false detection rate:

[0045] ;

[0046] This refers to the terminal false negative rate. This represents the number of online defects that have been manually confirmed but not detected by the terminal. This represents the total number of online defects that have been manually confirmed.

[0047] S44, Calculate the terminal false alarm rate:

[0048] ;

[0049] For terminal false alarm rate, This refers to the number of terminal-detected errors that have been manually verified as false alarms. The number of terminal detection errors that have entered manual review;

[0050] S45, when the terminal false alarm rate or terminal false alarm rate is higher than the threshold, adjust the detection threshold, detection area or detection model of the terminal detection equipment to achieve reverse calibration of terminal detection by online detection results.

[0051] Furthermore, step S5 includes the following steps:

[0052] S51. Establish dynamic reliability scoring based on two-dimensional granularity of inspection links and defect types, and calculate a reliability score for each inspection link for each type of defect.

[0053] S52, when a conflict occurs between online detection and terminal detection results in a certain area based on one item one code comparison, the conflict is first classified according to the conflict type, and then the priority re-judgment and calibration direction are determined based on the credibility scores of both parties.

[0054] S53, continuously update the reliability score of each testing step based on the results of manual review.

[0055] Furthermore, in step S51, the credibility score is based on the following statistical features:

[0056] Reverse false negative rate The historical missed detection rate for this type of defect is inverted based on this step to reflect the underreporting situation;

[0057] Inverse false alarm rate The false alarm rate for this type of defect is inverted based on the historical false alarm rate of this step to reflect the false alarm situation;

[0058] Confidence Reliability This step involves identifying the proportion of defects exceeding a set threshold that are confirmed as genuine through manual review.

[0059] Consistency rate of manual review This step represents the percentage of defects whose judgments are confirmed by manual review; the consistency rate of manual review is activated when the system records defect type or severity corrections. Otherwise, its weight is set to zero;

[0060] Reliability of missed detection The proportion of the inspection area that is judged as normal in this step, and which is indeed normal, is calculated using the following formula:

[0061] ;

[0062] To determine the total number of normal areas, This represents the confirmed number of missed detections.

[0063] Two-dimensional statistics are performed based on the detection process and defect type, with the defect location area as the statistical unit. The confirmed actual missed detections are the number of defects detected by the terminal detection and confirmed by manual inspection in the area that is judged to be normal in that process.

[0064] Equipment health score The health score is obtained by normalizing equipment and environmental factors such as camera calibration residuals, light source attenuation, temperature and humidity, vibration, time since last maintenance, and model version age.

[0065] The formula for aggregated credibility scores is:

[0066] ;

[0067] in, To score credibility, For the testing process, For each defect type, the weights are... The sum is 1. It can be calibrated by regression from historical data.

[0068] Furthermore, in step S51, when the sample size for manual review of a certain "detection step × defect type" combination is insufficient, Bayesian smoothing is used with the step-level mean of that step as a priori and weighted by sample size to avoid drastic fluctuations in scores caused by small samples. This ensures statistical stability while maintaining two-dimensional granularity. The processed feature statistical expression is as follows:

[0069] ;

[0070] Scoring of Bayesian smoothing for the "stage × type" combination. This represents the sample statistics for the "step × type" combination, where n is the number of manually reviewed samples for this combination. Let be the mean of all types in this stage, and k be the prior strength.

[0071] Furthermore, in step S52, the conflict patterns include:

[0072] Type A: Both online and terminal inspections detect defects, but the types or severity of the defects are inconsistent;

[0073] Type B: When one of the online detection and terminal detection methods detects a defect, the other method determines that the area is normal.

[0074] Arbitration scheme A includes: both parties acting as the party reporting the error, participating in arbitration based on the reliability of their respective error reports.

[0075] ;

[0076] Arbitration for Form A, To score credibility, The confidence level of the current defect; the priority of the retrial will be determined according to the arbitration scores of both parties;

[0077] Arbitration schemes in Form B include: the party reporting the error citing the reliability of the error report. Participating in arbitration, the court determined the reliability of the missed detection to be that of the normal party. Participate in arbitration, and add the false negative rate to the judgment of the normal party. As a background check for macro-level underreporting; specifically, it also includes the following situations:

[0078] Scenario B1: Terminal detection reports an error, online detection is normal.

[0079] ;

[0080] ;

[0081] Arbitration score for terminal error reporting. Score the reliability of the terminal. The current confidence level of the terminal defect. The reverse of the terminal false alarm rate, For terminal confidence reliability, For normal online arbitration, For online credibility rating, The current normal confidence level is online. To ensure the reliability of online missed detection, To reverse the online false negative rate, This is the background adjustment factor for underreporting.

[0082] Scenario B2: Online detection reports an error, while terminal detection is normal.

[0083] ;

[0084] ;

[0085] For online error reporting arbitration points, For online credibility rating, The online current defect confidence level, Inversely to the online false alarm rate, For online confidence reliability, For normal arbitration at the terminal, Score the reliability of the terminal. This represents the current normal confidence level of the terminal. To ensure the reliability of terminal missed detections, The reverse of the terminal false negative rate;

[0086] Arbitration decision:

[0087] When the online arbitration score is significantly higher than that of the terminal, priority should be given to checking whether the terminal detection has missed detections or made false alarms.

[0088] When the terminal arbitration score is significantly higher than the online score, priority should be given to checking whether the online detection has missed detections or made false alarms.

[0089] When the arbitration scores of both parties are close and fall below the preset arbitration score threshold, they are placed in the manual review queue.

[0090] When both parties have high arbitration scores but conflicting results, the quality control center will conduct a key review and mark the sample as an anomaly.

[0091] Furthermore, step S6 includes the following steps:

[0092] S61. After parameter adjustment, the system continues to perform product-by-product comparison based on one item, one code in subsequent production, and recalculates the missed detection rate and false alarm rate.

[0093] S62, compare the indicators before and after adjustment to verify the calibration effect; if the standard is not met, continue fine-tuning;

[0094] S63 forms a closed loop of one item, one code traceability, defect type classification, differentiated calibration, two-way comparison, credibility arbitration, parameter adjustment, and effect verification.

[0095] The beneficial effects achieved by this invention are:

[0096] This invention relies on a unique code for each item to achieve precise calibration for each product, each defect, and each location. It refines the testing and calibration from the traditional "batch statistics level" to the "single product, single defect, single location" level, significantly improving calibration accuracy and specificity.

[0097] This invention generates process parameters by accurately calibrating specific defects in a process and adjusts general detection parameters for defects across processes, avoiding the calibration direction errors caused by the crude uniform standards in the prior art, and improving the calibration hit rate.

[0098] This invention breaks the inherent assumption that terminal detection is always correct. By simultaneously optimizing online detection and terminal detection through bidirectional calibration, it avoids the systematic amplification of terminal detection errors.

[0099] This invention statistically and indexes the results of manual review, using them as a unified benchmark to drive two testing systems simultaneously, thus transforming quality inspection experience into a driving force for continuous calibration.

[0100] This invention automatically determines the priority calibration direction based on credibility scoring, reducing manual review and significantly improving the efficiency of conflict handling. Attached Figure Description

[0101] Figure 1 This is a flowchart illustrating a two-way calibration method for online detection and terminal detection, oriented towards one item, one code.

[0102] Figure 2 This is a flowchart of the two-way reliability scoring and conflict arbitration process in a two-way calibration method for online detection and terminal detection oriented towards one item, one code. Detailed Implementation

[0103] The present invention will be further described below with reference to specific embodiments, and the advantages and features of the present invention will become clearer as a result. However, these embodiments are merely exemplary and do not constitute any limitation on the scope of the present invention. Those skilled in the art should understand that modifications or substitutions can be made to the details and form of the technical solutions of the present invention without departing from the spirit and scope of the present invention, but all such modifications and substitutions fall within the protection scope of the present invention.

[0104] like Figure 1 As shown, this invention provides a bidirectional calibration method for online detection and terminal detection for one item, one code. This method is divided into two levels in operation, and steps S3 and S4 are not executed every time there is a conflict.

[0105] Real-time layer (triggered one by one): Step S1 (correlation comparison), Step S5 (conflict arbitration) and manual review are used to process each conflict of each product in real time; among them, S5 arbitration determines the priority calibration direction and whether to push to manual review in real time when a conflict occurs, but does not directly modify the detection parameters;

[0106] Batch layer (threshold trigger, periodic): The false negative rate and false positive rate mentioned in steps S3 and S4 are cumulative statistical indicators. The detection parameter adjustment (S35, S45) is threshold triggering rather than individual triggering. The corresponding parameters are only adjusted when the cumulative false negative rate or false positive rate of a certain type of defect exceeds the set threshold, thereby ensuring the stability of the detection system and avoiding parameter fluctuations.

[0107] Therefore, S5 arbitration comes first (determining the direction of conflict resolution in real time), followed by S3 / S4 parameter tuning (triggered based on cumulative indicators and thresholds); the historical statistics such as false negative rate and false positive rate on which the S5 credibility score is based are cumulatively calculated and continuously updated by S33, S34, S43, and S44.

[0108] Specifically, the following steps are included:

[0109] Step S1: Establish a product-by-product defect traceability and correlation comparison model based on one item, one code;

[0110] S11, one item, one code identification and full-process binding;

[0111] Each product (or each smallest inspection unit) is assigned a unique QR code identifier (one item, one code), which remains consistent throughout the entire production process of the product. At each production step, the one item, one code is linked to the inspection data of that step, including:

[0112] Online inspection data includes: one item, one code, process name, machine number, work group, inspection time, defect type, defect location coordinates, defect image, defect severity, online inspection judgment result, and online inspection confidence level.

[0113] Terminal detection data includes: one item, one code; terminal detection time; terminal detection defect type; terminal detection defect location coordinates; terminal detection image; terminal detection judgment result; and terminal detection confidence level.

[0114] Detection confidence: The degree of certainty that the detection algorithm (AI / machine vision model) is about the current judgment result, represented by a value between 0 and 1. Since any judgment may simultaneously result in two opposing conclusions, "a defect exists" and "a defect does not exist," the detection confidence in this invention is divided into two complementary quantities according to the judgment direction: defect confidence Cd (the algorithm's degree of certainty that "this type of defect exists in the region") and normal confidence Cn (the algorithm's degree of certainty that "this type of defect does not exist in the region, and it is judged as normal"). Its sources include: the category probability output by the classification model, the detection box score output by the object detection model, and the significance of the deviation compared with the standard template, etc. When the detection result is an error (defect detected), the main confidence involved in the evaluation is Cd; when the detection result is judged as normal (no error), the main confidence involved in the evaluation is Cn, not Cd of this judgment. In this invention, the detection confidence level is used for two purposes: ① as a screening criterion for manual review, detection results with a confidence level below the threshold are pushed to manual review, while those with a high confidence level are directly accepted, in order to reduce the workload of manual review; ② as one of the input factors for detection credibility scoring.

[0115] S12, product-by-product, defect-by-defect, location-by-location correlation comparison;

[0116] The system uses a unique code for each product as the primary key to associate the online inspection results of the product with the terminal inspection results at each process stage. For each defect, it further determines whether the defect detected online and the defect detected at the terminal are the same defect based on the defect location coordinates and defect image feature similarity. This achieves precise comparison on a product-by-product, defect-by-defect-type, and location-by-location basis, rather than a large-scale statistical comparison.

[0117] S13, Four possible results of defect correlation comparison;

[0118] For each product with a unique code, the defect association comparison yields the following results:

[0119] Consistency: Both online detection and terminal detection detected the same defect, with consistent type and location;

[0120] Inconsistency: Both online detection and terminal detection detect problems, but the subdivision of defect types or the severity level of defects are different;

[0121] Online missed detection: The terminal detection detects the virus, but the corresponding online detection fails to detect it.

[0122] Online suspected false alarm: Detected by online detection, but not by terminal detection (further confirmation requires manual review).

[0123] Step S2: Classify defects by type and adopt a differentiated calibration strategy;

[0124] The system categorizes detected defects into two types based on their source characteristics and employs different calibration strategies for each type of defect:

[0125] S21, Process-Specific Defects and Their Calibration Strategies;

[0126] The process-specific defects refer to defects that occur only in a specific process and whose source process can be determined, including but not limited to: misregistration, misalignment, hot stamping peeling, hot stamping misalignment, blurry inkjet printing, misaligned inkjet printing, die-cutting misalignment, and abnormal indentation.

[0127] For process-specific defects, the system executes a precise process benchmarking and calibration strategy.

[0128] Based on the predefined mapping relationship between the defect type and the generating process (e.g., registration deviation corresponds to gravure / offset printing, hot stamping peeling corresponds to hot stamping, and die-cutting misalignment corresponds to die-cutting), determine the generating process corresponding to the defect.

[0129] The comparison results of the defect (missed detection, false alarm) are directly compared with the online detection parameters of the process that produced it, and the detection threshold, detection area or image preprocessing parameters of the online detection equipment for that defect type are adjusted.

[0130] With a clear direction and a single objective, calibration can accurately improve the testing capabilities of the production process.

[0131] S22, Cross-process defects and their calibration strategies;

[0132] The cross-process defects refer to defects that may occur in any process or during the transfer between processes, and whose origin process cannot be determined. These include, but are not limited to, dirt spots, ink spots, scratches, foreign objects, paper scraps, ink buildup, etc.

[0133] For defects that cross processes, the system implements an overall benchmarking and calibration strategy:

[0134] This defect is not mapped to the inspection parameters of any single process (because the source process cannot be determined);

[0135] Instead, it compares the online detection of all processes with the terminal detection for this type of defect to determine the overall detection capability of the online detection of each process for this type of cross-process defect;

[0136] Based on the overall comparison results, the general detection parameters for this type of cross-process defect in all online detection stages (such as the general threshold for dirt detection, general image segmentation parameters, and general filtering parameters) are adjusted to improve the overall detection rate of this type of defect in all online detection stages.

[0137] S23, Mapping rules between defect types and calibration strategies;

[0138] The system maintains a defect type classification table, recording whether each defect type belongs to a process-specific defect or a cross-process defect, as well as the corresponding process that generated the process-specific defect. This classification table can be dynamically updated based on production data.

[0139] Step S3: Forward calibration of online detection based on terminal detection (batch statistics and threshold triggering)

[0140] S31. For a specific defect in a process, adjust the detection parameters of that process based on the comparison results between the terminal detection and the corresponding online detection of the process.

[0141] S32. For defects that cross processes, adjust the general detection parameters for this type of defect based on the overall comparison results between the terminal inspection and the online inspection of all processes.

[0142] Step S33: Calculate the online missed detection rate for various types of defects:

[0143] ;

[0144] The online missed detection rate for a certain type of defect This represents the number of actual defects in the terminal that were not detected by online inspection. This represents the total number of defects detected at the terminal and confirmed manually.

[0145] Step S34: Calculate the online false alarm rate for various types of defects:

[0146] ;

[0147] The online false alarm rate for a certain type of defect. This refers to the number of online error reports that have been manually reviewed and confirmed as false alarms. This refers to the number of online error reports that have been submitted for manual review.

[0148] S35, when the online missed detection rate or online false alarm rate of a certain defect type is higher than the threshold, adjust the online detection judgment threshold corresponding to the defect.

[0149] Step S4: Reverse calibration of terminal detection based on online detection confirmed by manual review (batch statistics and threshold triggering).

[0150] S41, the quality control center receives online and terminal test results, performs manual review on key samples, and records the manual confirmation results: actual defects, false alarms, missed detections, defect type corrections, and severity corrections.

[0151] S42. When an online inspection detects a defect, and the quality control center confirms the defect's existence through manual review, but the terminal inspection fails to detect the defect, the system marks the sample as "terminal missed detection".

[0152] S43, Calculate the terminal false detection rate:

[0153] ;

[0154] This refers to the terminal false negative rate. This represents the number of online defects that have been manually confirmed but not detected by the terminal. This represents the total number of online defects that have been manually confirmed.

[0155] S44, Calculate the terminal false alarm rate:

[0156] ;

[0157] For terminal false alarm rate, This refers to the number of terminal-detected errors that have been manually verified as false alarms. The number of terminal detection errors that have entered manual review;

[0158] S45, when the terminal false alarm rate or terminal false alarm rate is higher than the threshold, adjust the detection threshold, detection area or detection model of the terminal detection equipment to achieve reverse calibration of terminal detection by online detection results.

[0159] Through steps S3 and S4, a bidirectional calibration relationship is established between online detection and terminal detection: terminal detection can calibrate online detection, and online detection that has been manually verified can also calibrate terminal detection in reverse, rather than a one-way master-slave relationship.

[0160] Step S5: Automatic arbitration of detection conflicts based on two-way credibility scoring;

[0161] S51, Credibility Scoring Model;

[0162] The system establishes a dynamic reliability score based on a two-dimensional granularity of inspection stages and defect types. Specifically, for each inspection stage (such as online gravure printing inspection, online offset printing inspection, online hot stamping inspection, and terminal inspection), a reliability score is calculated separately for each type of defect (such as misregistration, dirt spots, and unreadable inkjet printing). This reflects the stage's overall detection capability for that type of defect. The detection capability of the same inspection stage for different defect types may vary significantly; therefore, scoring must be done separately for each defect type, rather than simply taking an average for each stage.

[0163] Before statistical analysis of each feature, a sliding window is defined (e.g., "last 7 days" or "last 1000 manually reviewed samples"). All features are statistically analyzed using a two-dimensional granularity of "detection stage × defect type". The following is an explanation of each feature:

[0164] Reverse false negative rate (=1−Missed Detection Rate): Based on the inverse of the historical missed detection rate for this type of defect in this step, it reflects the situation of "not reported when it should have been reported"; the missed detection rate is calculated based on defects that have been confirmed by humans (see steps S33 and S43).

[0165] Inverse false alarm rate (=1−False Alarm Rate): Based on the inverse of the historical false alarm rate for this type of defect in this step, it reflects the false alarm situation of "reporting when it should not have been reported"; the false alarm rate is calculated as the proportion of samples that are confirmed as false alarms by manual review to the samples entering the review (see steps S34 and S44).

[0166] Confidence Reliability This step determines the proportion of high-confidence (above a set threshold) defects that are confirmed as genuine by manual review. It is used to identify and detect cases where the confidence level is generally high but is often overturned by manual review.

[0167] Consistency rate of manual review The percentage of defects judged in this step that are confirmed by manual review (including correct defect type and correct severity) is broader than [the percentage of defects judged by manual review]. Enabled when the system records defect type corrections and severity corrections. Otherwise, its weight is set to zero;

[0168] Reliability of missed detection (Reliability of "Normal" Judgment): This step assesses the reliability of the "normal" judgment within the detection area that is indeed normal, specifically serving as a means of arbitration in cases where one party reports an error while the other judges it as normal. The formula is:

[0169] ;

[0170] To determine the total number of normal areas, This represents the confirmed number of missed detections.

[0171] The statistics are presented in two dimensions, categorized by inspection stage and defect type, with the defect location area as the statistical unit. The confirmed true missed detections are the number of defects detected by terminal inspection (or manual sampling) and manually confirmed as true defects within areas deemed normal at that stage. This feature utilizes the automatic verification of online normal-judgment areas by terminal inspection for statistical purposes, eliminating the need for full manual sampling of normal samples; manual confirmation is only required when the terminal reports an error. The prerequisite for using this feature is that the coverage areas of terminal inspection and online inspection are consistent. and The difference is: The total number of actual defects is used as the denominator to reflect the overall underreporting frequency of this type of defect in this process; The total number of areas judged as normal is used as the denominator to reflect the hit rate of the judgment behavior of "judging as normal". The two values ​​will deviate significantly when there are few defects, so they must be counted separately and used in combination.

[0172] Equipment health score The health score is obtained by normalizing equipment and environmental factors such as camera calibration residuals, light source attenuation, temperature and humidity, vibration, time since last maintenance, and model version age.

[0173] When the sample size for manual review of a combination of a certain detection step and defect type is insufficient, Bayesian smoothing is used with the step-level mean of that step as a priori and weighted by sample size to avoid drastic fluctuations in scores caused by small samples, thereby ensuring statistical stability while maintaining two-dimensional granularity.

[0174] ;

[0175] Scoring of Bayesian smoothing for the "stage × type" combination. This represents the sample statistics for the "step × type" combination, where n is the number of manually reviewed samples for this combination. Let be the mean of all types in this stage, and k be the prior strength, which is recommended to be 50.

[0176] The formula for aggregated credibility scores is:

[0177] ;

[0178] in, To score credibility, For the testing process, For each defect type, the weights are... The sum is 1. It can be calibrated by regression from historical data.

[0179] Characterizing the reliability of "judged as normal", and Verification is conducted to avoid inflated or distorted single indicators under sparse defects.

[0180] In conflict arbitration, the credibility score is multiplied and combined with the confidence level of the current detection to obtain the arbitration score, which reflects both the equipment's historical comprehensive ability to deal with this type of defect and the degree of certainty in the current judgment. The system continuously updates each feature and credibility score based on the results of manual review, enabling the detection system to have self-learning and self-calibration capabilities (see step S53).

[0181] S52, Conflict Arbitration Rules

[0182] When a conflict occurs between online detection and terminal detection results in a certain area based on one-item-one-code comparison, the system first classifies the conflict according to the conflict type, and then determines the priority for re-judgment and calibration direction based on the credibility scores of both parties.

[0183] Conflict forms include:

[0184] Type A (Error Report vs Error Report): Both online detection and terminal detection detect defects, but the defect types or severity are inconsistent;

[0185] Type B (Error Report vs. Normal Assessment): One side detects a defect (reports an error, primary confidence level Cd), while the other side assesses the same area as normal (no error report, primary confidence level Cn). Type B is the most common conflict type (e.g., the terminal detects a defect, but the corresponding process did not report it during online inspection).

[0186] ;

[0187] Arbitration for Form A, To score credibility, The confidence level of the current defect; the priority of the retrial will be determined according to the arbitration scores of both parties;

[0188] In Form A arbitration, the priority of the appeal is determined by the arbitration score of the two parties.

[0189] Type B Arbitration: The party reporting the error bases their decision on "error reliability". Participating in arbitration, the court determined the reliability of the missed detection to be that of the normal party. Participate in arbitration and add to the judgment of the normal party. As a background check for macro-level underreporting. Specifically:

[0190] Scenario B1 (Terminal error + online assessment normal):

[0191] ;

[0192] ;

[0193] Arbitration score for terminal error reporting. Score the reliability of the terminal. The current confidence level of the terminal defect. The reverse of the terminal false alarm rate, For terminal confidence reliability, For normal online arbitration, For online credibility rating, The current normal confidence level is online. To ensure the reliability of online missed detection, To reverse the online false negative rate, This is a background adjustment factor for underreporting (recommended value: 0.2~0.5), used to adjust for underreporting. If the score is too low (indicating a high number of historical underreporting of this type of defect in this process), the credibility of the online "normal judgment" should be lowered.

[0194] Scenario B2 (Online error report + Terminal determination is normal):

[0195] ;

[0196] ;

[0197] For online error reporting arbitration points, For online credibility rating, The online current defect confidence level, Inversely to the online false alarm rate, For online confidence reliability, For normal arbitration at the terminal, Score the reliability of the terminal. This represents the current normal confidence level of the terminal. To ensure the reliability of terminal missed detections, The reverse of the terminal false negative rate;

[0198] Arbitration decision (both forms A and B are applicable):

[0199] When the online arbitration score is significantly higher than that of the terminal, priority should be given to checking whether the terminal detection has missed detections or made false alarms.

[0200] When the terminal arbitration score is significantly higher than the online score, priority should be given to checking whether the online detection has missed detections or made false alarms.

[0201] When the arbitration scores of both parties are close (the difference is less than a set threshold), they are added to the manual review queue;

[0202] The fact that both parties received high arbitration scores but the results conflicted triggered a key review by the quality control center, which marked the sample as an anomaly.

[0203] In Form B, the principal confidence level of the "normal" side should be its normal confidence level Cn (not Cd), and its... (The credibility of being judged as normal) serves as the basis for reliability; this enables the system to correctly handle the high-frequency conflict scenario of "the terminal reports an error but the online system did not report it at the time".

[0204] When a defect detected online and detected at the terminal conflict based on one-item-one-code comparison, the system determines the priority for re-judgment and calibration direction based on the credibility scores of both parties:

[0205] When the reliability of online detection is high but the reliability of terminal detection is low, priority should be given to checking whether the terminal detection has missed detections or made false alarms.

[0206] When the reliability of online detection is low and the reliability of terminal detection is high, priority should be given to checking whether online detection has missed detections or made false alarms.

[0207] When both parties have low credibility, they are placed in the manual review queue;

[0208] When both sides have high credibility but the results conflict, the quality control center will conduct a key review and mark the sample as an abnormal sample.

[0209] S53, credibility is dynamically updated;

[0210] The system continuously updates the reliability scores of each testing step based on the results of manual review, enabling the testing system to have self-learning and self-calibration capabilities.

[0211] Step S6: Verification and closed-loop control of calibration results;

[0212] S61. After parameter adjustment, the system continues to perform product-by-product comparison based on one item, one code in subsequent production, and recalculates the missed detection rate and false alarm rate.

[0213] S62, compare the indicators before and after adjustment to verify the calibration effect; if the standard is not met, continue fine-tuning.

[0214] S63 forms a closed loop of "one item, one code traceability, defect type classification, differentiated calibration, two-way comparison, credibility arbitration, parameter adjustment, and effect verification".

[0215] Example 1: Precise process benchmarking and calibration for process-specific defects

[0216] A certain product has a unique code PM-20260528-00123. Terminal inspection detected a "printing misalignment" defect in this product, with location coordinates (120, 85), and confirmed it to be a genuine defect.

[0217] 1. The system queries the defect type classification table and determines that "registration deviation" is a process-specific defect, and the process that caused it is gravure / offset printing.

[0218] 2. The system uses the unique code PM-20260528-00123 to query the online inspection results of the product in the offset printing process. It finds a misregistration at position (120, 85) that was not detected by the online offset printing inspection and marks it as an online missed inspection.

[0219] 3. The defect was confirmed to be genuine after manual review;

[0220] 4. The system directly correlates the missed detection results with the online detection parameters of the offset printing process, reducing the threshold for judging registration deviation;

[0221] 5. After adjustment, the online offset printing inspection system can detect this type of registration deviation.

[0222] Example 2: Overall benchmarking and calibration of defects across processes

[0223] Terminal inspection continuously detected "dirty spot" defects in multiple products. The system consulted the defect type classification table and determined that the "dirty spot" was a cross-process defect (it may have occurred in multiple stages such as gravure printing, offset printing, handling, and transfer, and the source process could not be determined).

[0224] 1. The system does not map dirt defects to any single process.

[0225] 2. The system compares the online inspection results of all processes (gravure printing, offset printing, hot stamping, inkjet printing, and die cutting) with the terminal inspection results to calculate the overall missed detection of dirt points by the online inspection of each process;

[0226] 3. The results show that the overall missed detection rate of dirt points by online inspection in each process is relatively high;

[0227] 4. The system adjusts the common detection parameters (common threshold, common image segmentation parameters, and common filtering parameters) for dirt detection in all online detection stages to improve the overall dirt detection capability of all processes;

[0228] 5. After the adjustment, the overall rate of missed detection of dirt in each process decreased.

[0229] Example 3: Online detection and reverse calibration terminal detection based on manual review

[0230] Online gravure printing inspection revealed a misregistration at position (200, 150) on product PM-20260528-00456, which was confirmed by manual review at the quality control center. However, the defect was not detected by terminal inspection.

[0231] 1. The system marks this sample as a missed detection at the terminal;

[0232] 2. Analysis of the terminal's detection coverage of the (200, 150) region revealed that the terminal's detection had a low weight for this region;

[0233] 3. The system adjusts the terminal detection parameters to expand the detection range of this area and lower the overprinting deviation judgment threshold;

[0234] 4. The online test results, which were manually verified, were used to reverse-calibrate the terminal test.

[0235] Example 4: Conflict arbitration based on credibility scoring (1)

[0236] For a certain area of ​​product PM-20260720-00088 (one item, one code), both online and terminal inspections detected defects in the intaglio printing, but the conclusions were different:

[0237] Online gravure printing inspection and judgment: Screen printing defects (defect confidence level Cd=0.93);

[0238] Terminal inspection judgment: screen printing misalignment (defect confidence level Cd=0.95).

[0239] When both parties report errors but differ only in the defect type conclusion, arbitration of type A (error report vs. error report) will be conducted. The arbitration will determine which standard prevails (affecting the benchmarking process and calibration direction).

[0240] 1) Read the two-dimensional features of both parties:

[0241] In Form A, both parties act as the "error reporting party," requiring only... , (Error reporting reliability):

[0242]

[0243] 2) Fusing the confidence level according to morphology A:

[0244] ;

[0245] = 0.92 × 0.93 × (0.93 × 0.90)

[0246] = 0.716

[0247]

[0248] = 0.90 × 0.95 × (0.80 × 0.82)

[0249] = 0.561

[0250] 3) Arbitration decision:

[0251] Online arbitration score: 0.716 > Terminal arbitration score: 0.561 (significant difference)

[0252] Therefore, online "screen printing defects" assessment is more reliable. The online conclusion should be taken as the standard, and the sample should be manually reviewed and confirmed.

[0253] It should be noted that the terminal's Cd=0.95 is slightly higher than the online setting, but the reliability of terminal error reporting is higher. =0.656 is significantly lower than the online score of 0.837 (high false alarm rate + inflated confidence level), hence the arbitration score is actually lower. This is precisely... The ability to "identify artificially high confidence levels" is not solely determined by the numerical value of the confidence level.

[0254] 4) Manual review conclusions and dynamic updates (S53):

[0255] Manual confirmation: The issue is actually a missing silkscreen print (online verification was correct, but the terminal type was incorrectly identified). Based on this, the system:

[0256] The number of false alarms for "overprinting deviation" at the terminal increased by 1 (misclassification of type), leading to further downgrades at the terminal. ;

[0257] The score for this type of defect in the terminal has been lowered.

[0258] The online arbitration ruling was accurate, upholding / slightly upgrading the online decision. ;

[0259] According to S21, screen printing is a process-specific defect, and the gravure printing process is benchmarked, the gravure printing online detection parameters are adjusted; the terminal detection model is retrained with this sample as a type of negative example correction (S45).

[0260] Example 5: Conflict Arbitration Based on Credibility Scoring (2)

[0261] For example: the gold foil stamping area R1 of the product with unique code `PM-20260721-00678`:

[0262] Terminal inspection report: Insufficient gold in hot stamping (defect confidence level Cd=0.96);

[0263] Hot stamping online inspection: The area has been inspected but judged to be normal (normal confidence level Cn=0.95), and no error was reported.

[0264] When one party reports an error and the other party determines it is normal, use mode B (scenario B1: terminal reports an error + online determination is normal). Defect type = missing gold in hot stamping.

[0265] 1) Read the two-dimensional features of both parties:

[0266]

[0267] 2) Fuse the current confidence level (λ=0.3) according to morphology B:

[0268] The terminal is the party reporting the error, while the online party is the party determining that everything is normal.

[0269]

[0270] = 0.90 × 0.96 × (0.88 × 0.85)

[0271] = 0.646

[0272]

[0273] = 0.92 × 0.95 × 0.78 × (1 + 0.3 × (1 − 0.80))

[0274] = 0.723

[0275] 3) Arbitration decision:

[0276] The online arbitration score is 0.723, while the terminal arbitration score is 0.646 (the difference is not significant, approximately 0.077). When the two scores are close (the difference is less than the threshold of 0.1), the score is included in the manual review queue.

[0277] Although the terminal's Cd=0.96 is certain, the reliability of error reporting is questionable. =0.748 (General; online judgment is normal) =0.78 is relatively low, and =0.80 indicates a high number of historical missed detections. The λ item increases the online arbitration score from 0.682 to 0.723 (the background of missed detections actually increases the weight of "requiring key verification"). Since the two are close, manual adjudication is requested.

[0278] 4) Manual review conclusions and dynamic updates (S53):

[0279] Manual confirmation: This area is indeed a genuine case of insufficient gold foil (missed during online detection). The system accordingly:

[0280] Mark as an online missed detection, and lower the hot stamping missing detection threshold in S31;

[0281] The normal area should be included. , Statistics show that hot stamping prices have also decreased online and offline. , In subsequent similar conflicts, there is a greater tendency to doubt the "normal judgment";

[0282] The terminal's judgment was accurate, and the adjustment was slightly upward. .

[0283] Example 6: Data sparsity handling when manual review sample size is insufficient

[0284] Terminal inspection data for manual review of three types of defects during a certain statistical period:

[0285] A new type of defect, "UV varnish dripping," has emerged in production. A reliability evaluation model is used to address this. The parameters are used as an example for explanation.

[0286]

[0287] 1) Calculate the prior knowledge at the stage level:

[0288] Total number of entries for review = 100 + 40 + 2 = 142

[0289] Total false alarms = 4 + 10 + 1 = 15

[0290] False alarm rate at the stage level = 15 / 142 = 10.56%

[0291] = 1 - 0.1056 = 0.8944

[0292] 2) Smoothing calculation (k=50):

[0293] Bayesian smoothing of UV varnish drips (k=50):

[0294]

[0295] = (2 · 0.50 + 50 · 0.8944) ÷ (2 + 50)

[0296] = (1.0 + 44.72) ÷ 52

[0297] = 45.72 ÷ 52

[0298] = 0.8792

[0299] use value replacement Record this in the reliability model parameters for the UV varnish drip defect category; others , , , All are smoothed out before replacement.

[0300] Compare the three categories

[0301]

[0302] Conclusion: UV varnish drip rate decreased from 0.50 to 0.8792 (close to the prior), avoiding the unfair misjudgment of 2 samples; overprinting bias (large sample) almost preserved the observed value; unreadable inkjet printing (medium sample) fell between the two. The fewer the samples, the closer it is to the prior; the more samples, the more reliable the observation. The discrimination (overprinting 0.94 vs inkjet printing 0.83) was preserved, and sparse UV varnish drip rate was not unfairly misjudged to 0.50.

[0303] Suggested values ​​for parameter k:

[0304] When the model is just starting out or there is very little data, k = 50~80;

[0305] When the data is of medium quality (10-50 re-judgments per type per day), k = 30-50;

[0306] When there is sufficient data, k = 20~30;

[0307] When defects are extremely rare (single-digit monthly occurrences), k = 80~100, or manual intervention can be used as a backup.

[0308] Alternatively, after accumulating data over a period of time, historical data can be used for cross-validation to calibrate the k value.

[0309] 1. Divide the historical review data into training and validation sets according to time.

[0310] 2. For each candidate k (e.g., 10, 20, 30, 50, 80, 100), calculate a smooth score using the training set;

[0311] 3. Measure the "deviation between the rating and the actual subsequent performance" on the validation set;

[0312] 4. Select the k with the smallest deviation.

[0313] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the scope of protection of the present invention; all technical solutions formed by equivalent transformations or equivalent substitutions fall within the scope of protection of the present invention; the parts of the present invention not described in detail are well-known technologies to those skilled in the art.

Claims

1. A one product one code online detection and terminal detection two-way calibration method, characterized in that, The online detection and terminal detection bidirectional calibration method for one item, one code includes the following steps: Step S1: Establish a comparison between online detection and terminal detection for each process based on one item, one code, and obtain the comparison results; Step S2: Classify defects by type and adopt a differentiated calibration strategy; Step S3: Forward calibration of online detection based on manually verified terminal detection; Step S4: Reverse calibration of terminal detection based on online detection confirmed by manual review; Step S5: Arbitrate conflicts based on the comparison results of the two-way credibility scores; Step S6: Continue fine-tuning through arbitration, forward calibration, and reverse calibration in steps S3-S5 until the preset accuracy requirements are met, thus achieving a closed loop of detection, arbitration, and fine-tuning.

2. The method of claim 1, wherein the method is characterized by: Step S1 includes the following steps: Step S11: Assign a unique code to each product and link it to the testing data of each production process; Step S12: Using one item, one code as the primary key, link the online inspection results of the product at each process stage with the terminal inspection results; Step S13: For each product with a unique code, the defect association comparison yields the following results: Both online detection and terminal detection detected the same defect, which was of the same type and location. Both online and terminal detection detected problems, but the subdivision of the defect type or the severity level of the defect differed. The terminal detection detected it, but the corresponding online detection did not. It was detected online, but not by the terminal.

3. The method of claim 1, wherein the method further comprises: Step S2 includes the following steps: Step S21: Based on the comparison results of process-specific defects, perform corresponding calibration of the online detection of each process; Step S22: Perform overall calibration of online inspection for all processes based on the comparison results of cross-process defects; Step S23: By maintaining a defect type classification table, record whether each defect type belongs to a process-specific defect or a cross-process defect, as well as the process that generated the process-specific defect.

4. The method of claim 1, wherein the method further comprises: Step S3 includes the following steps: Step S31: For a specific defect in the process, adjust the detection parameters of the process based on the comparison results between the terminal detection and the corresponding online detection of the process. Step S32: For cross-process defects, adjust the general detection parameters for this type of defect based on the overall comparison results between terminal detection and online detection of all processes. Step S33: Calculate the online missed detection rate for various types of defects: ; the online missing detection rate of some defects, the number of defects that are real defects of the terminal but are not detected by the online detection, the total number of defects that are detected by the terminal and confirmed by the artificial confirmation to be real defects; Step S34: Calculate the online false alarm rate for various types of defects: ; the online false positive rate for a certain type of defect, the number of online detection errors that are confirmed as false positives by manual review, the number of online detection errors that enter manual review; Step S35: When the online missed detection rate or online false alarm rate of a certain defect type is higher than the threshold, adjust the online detection judgment threshold corresponding to the defect.

5. The method of claim 1, wherein the method further comprises: Step S4 includes the following steps: S41 receives online and terminal detection results, performs manual review on key samples, and records the manual confirmation results: real defects, false alarms, missed detections, defect type corrections, and severity corrections. S42, when an online inspection detects a defect, and the quality control center confirms the existence of the defect through manual review, but the terminal inspection fails to detect the defect, the sample is marked as "terminal missed detection"; S43, Calculate the terminal false detection rate: ; false negative rate of the terminal, the number of online defects confirmed to be real by manual confirmation but not detected by the terminal, total number of online defects confirmed to be real by manual confirmation; S44, Calculate the terminal false alarm rate: ; the false positive rate of the terminal, the number of false positives of the terminal detected by the terminal and confirmed by manual review, the number of false positives of the terminal detected by the terminal and entered into manual review; S45, when the terminal false alarm rate or terminal false alarm rate is higher than the threshold, adjust the detection threshold, detection area or detection model of the terminal detection equipment to achieve reverse calibration of terminal detection by online detection results.

6. The method of claim 1, wherein the method further comprises: Step S5 includes the following steps: S51. Establish dynamic reliability scoring based on two-dimensional granularity of inspection links and defect types, and calculate a reliability score for each inspection link for each type of defect. S52, when a conflict occurs between online detection and terminal detection results in a certain area based on one item one code comparison, the conflict is first classified according to the conflict type, and then the priority re-judgment and calibration direction are determined based on the credibility scores of both parties. S53, continuously update the reliability score of each testing step based on the results of manual review.

7. The method of claim 6, wherein the method further comprises: In step S51, the credibility score is based on the following statistical features: miss rate inverse : take inverse of historical miss rate of this type of defect for this step, reflect the miss report situation; False positive rate inverse : Inverse of historical false positive rate for this type of defect at this step, reflecting false positive situation; confidence reliability : the proportion of the links that are higher than the set threshold and confirmed as real by artificial re-trial for this type of defects; Artificial rejudication consistency rate : The proportion of the determination results of the defects of this type confirmed by artificial rejudication as a whole; Manual review concordance rate is enabled when the system records defect type revision, severity revision , otherwise its weight is zero; missed detection reliability : the proportion of the actually normal proportion in the detection area determined as normal by this link for this kind of defect, the calculation formula is: ; to determine the total number of normal regions, is the confirmed true false alarm number; Two-dimensional statistics are performed based on the detection process and defect type, with the defect location area as the statistical unit. The confirmed actual missed detections are the number of defects detected by the terminal detection and confirmed by manual inspection in the area that is judged to be normal in that process. Device health score : The health score is normalized by the device and environmental factors such as camera calibration residual, light source attenuation, temperature and humidity, vibration, time since last maintenance, model version age, etc. The formula for aggregated credibility scores is: ; wherein, is a confidence score, is a detection link, is a defect type, each weight sums to 1, may be calibrated from historical data regression.

8. The method of claim 6, wherein the method further comprises: In step S51, when the sample size for manual review of a certain "detection step × defect type" combination is insufficient, Bayesian smoothing is used with the step-level mean of that step as a priori and weighted by sample size to avoid drastic fluctuations in scores caused by small samples. This ensures statistical stability while maintaining two-dimensional granularity. The processed feature statistical expression is as follows: ; the Bayesian smoothing score for the "link x type" combination, the sample statistic for the "link x type" combination, and n is the number of manual review samples for the combination, the mean for all types of the link, and k is the prior strength.

9. The method of claim 6, wherein the method further comprises: In step S52, the conflict patterns include: Type A: Both online and terminal inspections detect defects, but the types or severity of the defects are inconsistent; Type B: When one of the online detection and terminal detection methods detects a defect, the other method determines that the area is normal. Arbitration scheme A includes: both parties acting as the party reporting the error, participating in arbitration based on the reliability of their respective error reports. ; for the form A arbitration points, for the credibility score, for the current defect confidence; the priority of the retest direction is determined by the arbitration points of both sides. The arbitration scheme of the form B includes: the error reporting party reports an error with an error reporting reliability Participates in arbitration to determine the normal party with a missed detection reliability Participates in arbitration and adds a missed detection rate to the determination of the normal party in reverse As a macro false alarm background check; specifically, the following cases are also included: Scenario B1: Terminal detection reports an error, online detection is normal. ; ; Arbitration score for terminal error reporting. Assess the credibility of the terminal. The current defect confidence level of the terminal. The reverse of the terminal false alarm rate, For terminal confidence reliability, For normal online arbitration, For online credibility rating, The current normal confidence level is online. To ensure the reliability of online missed detection, To reverse the online false negative rate, This is the background adjustment factor for underreporting. Scenario B2: Online detection reports an error, while terminal detection is normal. ; ; For online error reporting arbitration points, For online credibility rating, The online current defect confidence level, Inversely related to the online false alarm rate, For online confidence reliability, For normal arbitration at the terminal, Assess the credibility of the terminal. This represents the current normal confidence level of the terminal. To ensure the reliability of terminal missed detections, The reverse of the terminal false negative rate; Arbitration decision: When the online arbitration score is significantly higher than that of the terminal, priority should be given to checking whether the terminal detection has missed detections or made false alarms. When the terminal arbitration score is significantly higher than the online score, priority should be given to checking whether the online detection has missed detections or made false alarms. When the arbitration scores of both parties are close and fall below the preset arbitration score threshold, they are placed in the manual review queue. When both parties have high arbitration scores but conflicting results, the quality control center will conduct a key review and mark the sample as an anomaly.

10. The online detection and terminal detection bidirectional calibration method for one item, one code as described in claim 1, characterized in that, Step S6 includes the following steps: S61. After parameter adjustment, the system continues to perform product-by-product comparison based on one item, one code in subsequent production, and recalculates the missed detection rate and false alarm rate. S62, compare the indicators before and after adjustment to verify the calibration effect; if the standard is not met, continue fine-tuning; S63 forms a closed loop of one item, one code traceability, defect type classification, differentiated calibration, two-way comparison, credibility arbitration, parameter adjustment, and effect verification.