Computer system, appearance inspection method, and appearance inspection program

The computer system optimizes defect detection parameters by emphasizing low overdetection and high defect detection rates, addressing the limitations of conventional methods and improving the performance of automatic visual inspection systems.

WO2024224890A1PCT designated stage expired Publication Date: 2024-10-31HITACHI LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/011054
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2024-03-21
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Conventional methods for optimizing defect detection parameters in automatic visual inspection systems based on AUROC values do not adequately account for actual operational requirements, leading to suboptimal performance due to differences in overdetection and defect detection rates.

Method used

A computer system that optimizes defect detection parameters using a function that emphasizes areas with low overdetection rates and high defect detection rates, allowing for the calculation of evaluation values that maximize performance, thereby obtaining parameters suitable for actual operation.

Benefits of technology

The system effectively optimizes defect detection parameters to improve the accuracy and efficiency of automatic visual inspection by prioritizing areas with low overdetection rates and high defect detection rates, enhancing the overall performance of the inspection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024011054_31102024_PF_FP_ABST
    Figure JP2024011054_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention optimizes a defect detection parameter on the basis of an over-detection rate and a defect detection rate. A computer system executes an image acquisition step for acquiring an image of an object, and a parameter optimization step for optimizing a parameter for detecting a defective part in the image. The parameter optimization step includes: a defective part acquisition step for acquiring defective part information indicating the defective part in the image; a first function acquisition step for acquiring a first function for calculating, from an over-detection rate and / or a defect detection rate, an evaluation value for evaluating the performance of detecting the defective part; a defect detection step for detecting the defective part of the object by using the image of the object and the parameter; an evaluation value calculation step for calculating the evaluation value obtained by the first function with respect to the over-detection rate and / or the defect detection rate; and a parameter updating step for updating the parameter so that the evaluation value is maximized.
Need to check novelty before this filing date? Find Prior Art

Description

Computer system, visual inspection method, and visual inspection program

[0001] The present invention relates to a computer system, an appearance inspection method, and an appearance inspection program. This invention claims priority to Japanese Patent Application No. 2023-070747, filed on April 24, 2023, and the contents of that application are incorporated by reference into this application in designated states where incorporation by reference of documents is permitted.

[0002] In industrial products including machinery, metals, chemicals, food, and textiles, visual inspection is widely performed to check whether a product is good or bad based on the image obtained by capturing an image of the product to be inspected. In visual inspection, for example, defects in shape, assembly defects, adhesion of foreign matter, internal defects and criticality, scratches, spots, and dirt on the surface are inspected.

[0003] Many of these appearance inspections are performed by inspectors through visual judgment. However, with the increasing demand for mass production and improved quality, inspection costs and the workload of inspectors are increasing. Furthermore, sensory inspections based on human senses require particularly high levels of experience and skill. Issues include subjectivity and reproducibility, with evaluation values ​​varying depending on the inspector and results varying with each inspection. To address these issues of inspection cost, skill, and subjectivity, there is a strong demand for automation of inspections.

[0004] Automated visual inspection automatically determines whether an object is defective (positive) or non-defective (negative) based on the image obtained by capturing the object, and the performance of automated visual inspection is mainly defined by the overdetection rate and the defect detection rate. The overdetection rate is the rate at which non-defective items are mistakenly identified as defective, and is also known as the false positive rate. The defect detection rate is the rate at which defective items are correctly identified as defective, and is also known as the true positive rate.

[0005] The overdetection rate and the defect detection rate are calculated for each pass / fail threshold used to distinguish between defective and non-defective objects. The overdetection rate is plotted on the horizontal axis (x-axis) and the defect detection rate on the vertical axis (y-axis), resulting in a receiver operating characteristic (ROC) curve. The area enclosed by this ROC curve, the x-axis, and the line at x = 1.0 is the area under ROC (AUROC). The closer the AUROC is to 1, the higher the performance of the automated visual inspection. Therefore, technologies for automatically optimizing defect detection parameters used in automated visual inspection based on the AUROC have been studied. For example, Patent Document 1 discloses a method for calculating the area enclosed by the ROC curve as an ROC evaluation value and saving the algorithm that optimizes this ROC evaluation value. In practical applications, emphasis is placed on a high defect detection rate in areas where the overdetection rate is low (approximately 0.0 to 0.1) and a low overdetection rate in areas where the defect detection rate is high (approximately 0.9 to 1.0).

[0006] Japanese Patent Application Laid-Open No. 2006-260410

[0007] However, even if the AUROC value is the same, the defect detection rate in a region where the overdetection rate is low and the overdetection rate in a region where the defect detection rate is high may differ, and even if the defect detection parameters are optimized based on the AUROC, the defect detection parameters suitable for practical use may not be obtained. This will be explained with reference to Figures 12A and 12B.

[0008] 12A and 12B show an example of a conventional ROC curve obtained using the first and second defect detection parameters, respectively.

[0009] 12A, for an ROC curve 1201 obtained using the first defect detection parameter, the area under the shaded region 1202 (AUROC) is 0.8. Also, for an ROC curve 1203 obtained using the second defect detection parameter, as shown in FIG. 12B, the AUROC of a shaded region 1204 is also 0.8.

[0010] However, in the region where the overdetection rate is low, especially in the region where the overdetection rate is 0.0 to 0.1, the ROC curve with the first defect detection parameter has a higher defect detection rate, and in the region where the defect detection rate is even higher, especially in the region where the defect detection rate is 0.9 to 1.0, the ROC curve with the first defect detection parameter has a lower overdetection rate. Therefore, although the first defect detection parameter is considered more suitable for practical use, optimization based on AUROC cannot determine which of the first and second defect detection parameters is optimal, and so defect detection parameters suitable for practical use may not be obtained.

[0011] As described above, in conventional methods, the evaluation values ​​used when optimizing defect detection parameters do not take into account the high defect detection rate in areas where the overdetection rate is low, or the low overdetection rate in areas where the defect detection rate is high, and therefore it is not possible to optimize defect detection parameters to suit actual operation.

[0012] The present invention has been made in view of the above circumstances, and has as its object to optimize defect detection parameters based on the overdetection rate and the defect detection rate.

[0013] In order to solve the above problem, a computer system according to one aspect of the present invention is a computer system having one or more processors and one or more memory resources, wherein the one or more processors execute an image acquisition step of acquiring an image of an object, and a parameter optimization step of optimizing parameters for detecting defective portions in the image of the object, wherein the parameter optimization step includes: a defective portion acquisition step of acquiring defective portion information indicating the defective portions in the image of the object; a first function acquisition step of acquiring a first function that calculates an evaluation value for evaluating performance in detecting the defective portions from an overdetection rate and / or a defect detection rate; a defect detection step of detecting the defective portions of the object using the image of the object and the parameters; an evaluation value calculation step of calculating the evaluation value taken by the first function for at least one of the overdetection rate and / or the defect detection rate obtained based on the detection result in the defect detection step and the defective portion information; and a parameter update step of updating the parameters so that the evaluation value is maximized.

[0014] According to the present invention, the defect detection parameters can be optimized based on the overdetection rate and the defect detection rate.

[0015] Problems, configurations, and effects other than those described above will become apparent from the following description of the embodiments.

[0016] FIG. 1 is a diagram showing an example of the overall processing sequence of the visual inspection method according to the first embodiment. FIG. 2 is a schematic diagram showing an example of a table indicating the relationship between whether an object is actually defective (positive) or non-defective (negative) and whether it was determined to be defective or non-defective in the defect detection step of the first embodiment. FIG. 3 is a schematic diagram showing an example of a first function in the first embodiment. FIG. 4 is a schematic diagram showing an example of a GUI (Graphical User Interface) for acquiring a first function in the first function acquisition step of the first embodiment. FIG. 5 is a schematic diagram showing an example of a neural network used in the first embodiment. FIG. 6 is a diagram showing an example of a processing sequence of the parameter optimization phase in the second embodiment. FIG. 7 is a diagram showing an example of a processing sequence of the image comparison step in the second embodiment. FIG. 8 is a diagram showing an example of a processing sequence of the visual inspection method according to the third embodiment. FIG. 9 is a schematic diagram showing an example of a GUI for acquiring a second function in the second function acquisition step of the third embodiment. FIG. 10 is a schematic diagram showing an example of a GUI for classifying object images according to the level of fatality in the classification step S803 of the third embodiment. Fig. 11 is a diagram showing an example of the hardware configuration of a computer system that executes the visual inspection methods according to the first to third embodiments. Fig. 12A shows an example of an ROC curve according to a conventional example obtained using a first defect detection parameter. Fig. 12B shows an example of an ROC curve according to a conventional example obtained using a second defect detection parameter.

[0017] An embodiment of the present invention will be described below with reference to the drawings. In all drawings used to describe the embodiment, identical components are generally designated by the same reference numerals, and repeated description thereof will be omitted where appropriate. Furthermore, in the following embodiments, the components (including element steps, etc.) are not necessarily essential unless otherwise specified or considered to be clearly essential in principle. Furthermore, when the terms "consisting of A," "made of A," "having A," or "including A" are used, it goes without saying that they do not exclude other elements, unless otherwise specified to include only the relevant element. Similarly, in the following embodiments, when referring to the shape, positional relationship, etc. of components, etc., these terms include those that are substantially similar or similar to the shape, etc., unless otherwise specified or considered to be clearly not essential in principle. Furthermore, the embodiments do not limit the scope of the claimed invention, and not all of the elements and combinations thereof described in the embodiments are necessarily essential to the solution of the invention.

[0018] <First embodiment> [Overall processing sequence of visual inspection method] A visual inspection method according to the first embodiment will be described with reference to Figures 1 to 4. Figure 1 is a diagram showing an example of an overall processing sequence of the visual inspection method according to the first embodiment.

[0019] As shown in FIG. 1, the visual inspection method according to this embodiment includes an image acquisition step S102 for acquiring an image 103 of an object 101, and a parameter optimization step S104 for optimizing parameters (defect detection parameters 105) for detecting defective portions in the image 103 of the object. The parameter optimization step S104 includes a defective portion acquisition step S106 for acquiring defective portion information 107 indicating defective portions in an image 103 of the object; a first function acquisition step S108 for acquiring a first function w(109) for calculating an evaluation value e(113) for evaluating the performance of detecting defective portions from the overdetection rate x and / or the defect detection rate y; a defect detection step S110 for detecting defective portions of the object using the image 103 of the object and defect detection parameters 105; an evaluation value calculation step S112 for calculating an evaluation value e(113) taken by the first function w(109) for at least one or more overdetection rates x and / or defect detection rates y obtained from the detection result 111 in the defect detection step S110 and the defective portion information 107; and a parameter updating step S114 for updating the defect detection parameters 105 so as to maximize the evaluation value e(113).

[0020] In conventional methods, the evaluation values ​​used to optimize defect detection parameters do not take into account the high defect detection rate in areas with a low overdetection rate, or the low overdetection rate in areas with a high defect detection rate, and therefore it is not possible to optimize defect detection parameters to suit actual operation.

[0021] On the other hand, if the evaluation value used to optimize the defect detection parameters can be calculated by prioritizing the region with a low overdetection rate and the region with a high defect detection rate, it is expected that defect detection parameters suitable for practical use can be obtained by optimizing the evaluation value to maximize it. Therefore, in this embodiment, the degree of emphasis is changed depending on the values ​​of the overdetection rate and the defect detection rate using a first function w(x, y) for the overdetection rate x and the defect detection rate y, so that defect detection parameters suitable for practical use can be obtained.

[0022] As shown in FIG. 1, the processing sequence in this embodiment is divided into a parameter optimization phase 121 and an inspection phase 122 .

[0023] In the parameter optimization phase 121, first, an image of the object 101 is captured to obtain an optimization image 103 (step S102). The optimization image 103 can be obtained by capturing a digital image of the surface or interior of the learning object using an imaging device such as a CCD (Charge Coupled Device) camera, an optical microscope, a charged particle microscope, an ultrasonic inspection device, or an X-ray inspection device.

[0024] Next, the optimization image 103 is used to optimize the defect detection parameters 105 for detecting defective portions in the image of the object (step S104). The details of step S104 will be described later.

[0025] In the inspection phase 122, similar to the parameter optimization phase 121, an image of an object 115 such as an actual product is captured to obtain an inspection image 117 (step S116). Next, defective portions are detected in the inspection image 117 using the defect detection parameters 105 optimized in step S104, and a detection result 119 is obtained (step S118). Finally, an inspector checks the inspection image 117 in which defective portions have been detected (step S120), and if any defects are found, countermeasures are fed back to the manufacturing process.

[0026] Details of the defect detection parameter optimization step S104 will be described. In this step, defective portion information 107 indicating defective portions in the optimization image 103 is acquired in advance for each of the multiple optimization images 103 (step S106). A first function 109 is also acquired (step S108). Details of step S108 will be described later.

[0027] The defective portion information 107 is information that indicates defective portions in the optimization image 103. For example, an inspector may visually check the defective portions in the optimization image 103 to generate the defective portion information 107. Alternatively, the optimization image 103 may be used as input, and defective portions may be automatically detected based on pre-set rules, and the detection results may be used as the defective portion information 107.

[0028] Thereafter, defect detection parameters 105 are used to detect defect portions from each of the optimization images 103, and detection results 111 are obtained for each of the optimization images 103 (step S110).

[0029] Furthermore, an evaluation value 113 is calculated based on the detection result 111, the defective portion information 107, and the first function 109 (step S112), and the defect detection parameters 105 are updated (step S114) so ​​as to maximize the evaluation value 113, and this process is repeated to optimize the defect detection parameters 105. Details of step S112 will be described later.

[0030] If a defective part is detected in the defect detection step S110, the object is judged to be a defective product, and otherwise (if no defective part is detected), the object is judged to be a good product, and the judgment result is set as the detection result 111.

[0031] In the evaluation value calculation step S112, first, an overdetection rate x and a defect detection rate y are calculated based on the detection result 111 and the defect portion information 107. A method for calculating the overdetection rate x and the defect detection rate y will be described with reference to FIG.

[0032] 2 is a schematic diagram showing an example of a table 201 showing the relationship between whether an object is actually a defective product (positive) or a non-defective product (negative) and whether it was determined to be a defective product or a non-defective product in the defect detection step S110 of this embodiment. Whether an object is actually a defective product (positive) or a non-defective product (negative) can be identified from the defect portion information 107.

[0033] Correctly identifying a defective product as a defective product is called a true positive, incorrectly identifying a good product as a defective product is called a false positive, incorrectly identifying a defective product as a good product is called a false negative, and correctly identifying a good product as a good product is called a true negative.In table 201 of Figure 2, the number of true positives is represented by TP, the number of false positives by FP, the number of false negatives by FN, and the number of true negatives by TN.

[0034] The number of true positives TP is the number of optimization images 103 for which the defective portion information 107 indicates a defective portion and the detection result 111 indicates that the image is defective.

[0035] The number of false positives FP is the number of optimization images 103 for which no defective portion is indicated in the defective portion information 107 and which are indicated to be defective in the detection result 111 .

[0036] The number of false negatives FN is the number of optimization images 103 for which a defective portion is indicated in the defective portion information 107 and which are not indicated as defective in the detection results 111 .

[0037] The number of true negatives TN is the number of optimization images 103 for which no defective portion is indicated in the defective portion information 107 and which are not indicated as defective in the detection results 111 .

[0038] The overdetection rate x calculated in evaluation value calculation step S112 is the rate at which good products are erroneously determined to be defective and is expressed as FP / (TN+FP). The defect detection rate y is the rate at which defective products are correctly determined to be defective and is expressed as TP / (TP+FN).

[0039] The value calculated in evaluation value calculation step S112 may be either the overdetection rate x or the defect detection rate y. When only the overdetection rate x is calculated, the first function is w(x), and when only the defect detection rate y is calculated, the first function is w(y). When both the overdetection rate x and the defect detection rate y are calculated in evaluation value calculation step S112, the first function is w(x, y).

[0040] Furthermore, index values ​​other than the overdetection rate x and the defect detection rate y may be calculated. For example, instead of the overdetection rate x, a precision rate (TP / (TP+FP)) or the like, which indicates the proportion of objects that are determined to be defective that are actually defective, may be calculated. Furthermore, instead of the defect detection rate y, a false negative rate (FN / (TP+FN)) or the like, which indicates the proportion of defective products that are erroneously determined to be good products (defects that are overlooked), may be calculated. The following explanation will be given regarding a method for calculating both the overdetection rate x and the defect detection rate y.

[0041] Returning to the explanation of evaluation value calculation step S112, after calculating the overdetection rate x and the defect detection rate y, an evaluation value e is calculated using the overdetection rate x, the defect detection rate y, and the first function w(x, y). The evaluation value e is a value that evaluates the performance of detecting defective portions from the overdetection rate x and / or the defect detection rate y, and is calculated, for example, by equation (1).

[0042]

[0043] In the defect detection step S110, different detection results may be output for each pass / fail judgment threshold {T_i (i is a positive integer from 1 to N; N is the number of thresholds)} that judges whether an object to be inspected is a defective product or a non-defective product. Here, {T_i} is a set of pass / fail judgment thresholds. Hereinafter, a set of elements will be expressed in parentheses "{}".

[0044] In this case, in the evaluation value calculation step S112, the overdetection rate {x_i} and the defect detection rate {y_i} may be calculated for each threshold value from the detection results for each threshold value, and the evaluation value e may be calculated using the overdetection rate {x_i}, the defect detection rate {y_i}, and the first function w(x, y). In this case, the evaluation value e may be calculated, for example, by equation (2).

[0045]

[0046] Alternatively, an ROC curve may be drawn using the overdetection rate {x_i} and the defective detection rate {y_i} calculated for each pass / fail threshold, and an evaluation value e may be calculated by weighting the ROC curve with a first function w(x, y). In this case, the evaluation value e is calculated, for example, using Equation (3).

[0047]

[0048] Here, ROC(x) in equation (3) is an ROC curve (a function representing the defect detection rate relative to the overdetection rate x).

[0049] [First Function w] The first function w will be described in detail. In this embodiment, the first function w has a larger value in an area where the overdetection rate x is lower and / or the defect detection rate y is higher.

[0050] As described above, the first function w is a function for calculating the evaluation value e that places emphasis on the region where the overdetection rate x is low and the region where the defect detection rate y is high. The first function w is an arbitrary function, but by placing emphasis on the region where the overdetection rate x is low and the region where the defect detection rate y is high and by increasing the value in the region where the overdetection rate x is low and the region where the defect detection rate y is high, defect detection parameters suitable for practical use can be obtained.

[0051] 3 is a schematic diagram showing an example of the first function w(x,y) (301) in this embodiment. In FIG. 3, the white area 302 (the area with a low overdetection rate x and a high defect detection rate y) is the area where w(x,y)=1.0, and the hatched area 303 is the area where w(x,y)=0.0.

[0052] 3, when the first function w, which has a large value in the region where the overdetection rate x is low and the region where the defect detection rate y is high, is used to calculate the evaluation value e using the formula (3) for the ROC curves of the first defect detection parameter and the second defect detection parameter shown in FIGS. 12A and 12B, the evaluation value for the first defect detection parameter is 0.58, and the evaluation value for the second defect detection parameter is 0.45. This shows that the first defect detection parameter, which shows a large evaluation value, is suitable for practical use.

[0053] [Setting Screen for First Function w] A method for acquiring the first function w in the first function acquisition step S108 will be described. In this embodiment, in the first function acquisition step S108, a GUI (Graphical User Interface) for setting the first function w is displayed on a GUI device.

[0054] Basically, the first function w is an arbitrary function, but it is desirable that the first function w has a large value in the region where the overdetection rate is low and the region where the defect detection rate is high.

[0055] However, the ranges where the overdetection rate is low and the defect detection rate is high differ depending on the purpose of the inspection. For example, when an object is nearly complete, it is undesirable to ship defective products, so a defect detection rate of around 0.98 to 1.0 is likely to be emphasized. Also, when the impact of overlooking defects in the early stages of manufacturing is relatively small, a range where the overdetection rate is around 0.0 to 0.03 is likely to be emphasized in order to reduce the frequency of inspections by inspectors.

[0056] Therefore, in this embodiment, a GUI for setting the first function w is displayed, which allows the first function w to be changed depending on the purpose of the inspection, and the evaluation value e to be calculated based on the set first function w, thereby optimizing the defect detection parameters.

[0057] 4 is a schematic diagram of an example of a GUI for acquiring the first function w in the first function acquisition step S108 of this embodiment. Examples of GUI devices that display this GUI include a display and a projector. Examples of input devices that allow a user to perform input operations such as pressing buttons while viewing the GUI include a keyboard, a mouse, and a touch panel.

[0058] As shown in FIG. 4, the GUI has buttons 401 and 402 for selecting whether to set the first function w by selecting it from predefined presets or by inputting a mathematical expression, an area 403 for selecting a preset, an area 404 for inputting a mathematical expression, an area 405 showing the value of the first function w, a button 406 for completing the setting of the first function w, and a button 407 for canceling the setting of the first function w.

[0059] When a button 401 for selecting from presets is clicked and a preset is selected in an area 403, the value of the function displayed in the area 403 is displayed in an area 405. In the area 405, an area with a larger function value is displayed in a color closer to white, and an area with a smaller function value is displayed in a color closer to black.

[0060] When a user clicks button 402 for inputting a mathematical formula and inputs a mathematical formula in area 404, the value of the function displayed in area 404 is displayed in area 405. The user can set a first function w according to the purpose of the inspection while checking the value of the first function w displayed in area 405. The user can finish setting the first function w by pressing button 406, and can cancel setting the first function w by pressing button 407.

[0061] [Fault Detection Parameters] The fault detection parameters 105 will be described in detail. In this embodiment, the fault detection parameters 105 are hyperparameters related to the network structure of a fault location identification engine that identifies fault locations from an input image, and / or weighting coefficients of the network of the fault location identification engine. In this embodiment, the fault detection parameters 105 are optimized in a parameter optimization step S104 using the image 103 of the object 101 and fault location information 107.

[0062] In recent years, the performance of machine learning has improved dramatically thanks to the proposal of deep network models. In machine learning-based defect detection, an inspector visually instructs the system on defective parts in advance using images of the target object, and the system learns the correspondence between the target object image and the instruction results. However, even if the inspector instructs the system accurately, if the structure of the network model or the optimization of the network weighting coefficients is insufficient, the defective parts cannot be identified with high accuracy in the target object image.

[0063] Therefore, in this embodiment, hyperparameters relating to the network structure in a defective portion identification engine that identifies defective portions from an input image and network weighting coefficients are optimized as defect detection parameters 105. This makes it possible to obtain a defective portion identification engine that is suitable for practical use.

[0064] Fig. 5 is a schematic diagram showing an example of a neural network used in this embodiment. A neural network having a three-layer structure as shown in Fig. 5 may be used as the defective portion identification engine in this embodiment. Here, Y represents the input image, F1(Y) and F2(Y) represent intermediate data, and F(Y) represents the result of identifying the defective portion. The intermediate data and the estimation result are calculated using the following equations (4) to (6).

[0065]

[0066]

[0067]

[0068] where "*" represents a convolution operation. Here, U1 is A1 filters of size A0×f1×f1, A0 is the number of channels in the input image, and f1 is the size of the spatial filter. A1-dimensional feature map is obtained by convolving the input image with filters of size A0×f1×f1 A1 times. B1 is an A1-dimensional vector and is a bias component corresponding to the A1 filters. Similarly, U2 is A2 filters of size A1×f2×f2, B2 is an A2-dimensional vector, U3 is A0 filters of size A2×f3×f3, and B3 is an A0-dimensional vector. The aforementioned A0 is a value determined by the number of channels in the input image. Furthermore, f1, f2, A1, and A2 are hyperparameters related to the network structure of the defect location engine, and U1, U2, U3, B1, B2, and B3 are weight coefficients of the network of the defect location engine. These are the targets of optimization as defect detection parameters 105 in parameter optimization step S104 in this embodiment.

[0069] As the network structure of the defect portion identification engine, other than the structure shown in FIG. 5, for example, the network structure described in the following paper (Ronneberger et al.) may be used.

[0070] Olaf Ronneberger, Philipp Fischer, Thomas Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation”, arXiv preprint arXiv:1505.04597 (2015)

[0071] The number of layers in this network model, the number and size of convolution filters, and the type of activation function are hyperparameters related to the network structure of the defect portion identification engine, and the weight coefficients between nodes are weight coefficients of the network of the defect portion identification engine, and these are targets to be optimized as defect detection parameters 105 in parameter optimization step S104 in this embodiment.

[0072] The embodiment described above includes a parameter optimization phase 121 and an inspection phase 122, as shown in FIG. 1 . The same business operator may perform the parameter optimization phase 121 and the inspection phase 122. Alternatively, different businesses may perform the parameter optimization phase 121 and the inspection phase 122. In this case, for example, a business operator may perform the parameter optimization phase 121 to update the defect detection parameters so as to maximize the evaluation value e. Then, a business operator other than the one that performed the parameter optimization phase 121 may perform the inspection phase using the updated parameters. This makes it possible to inspect an object 115, such as an actual product, using defect detection parameters that have been optimized to be suitable for practical use.

[0073] Second Embodiment A visual inspection method according to a second embodiment will be described with reference to Figures 6 and 7. In the first embodiment, a method for obtaining defect detection parameters suitable for practical use by optimizing the defect detection parameters using a first function for the overdetection rate and / or defect detection rate has been described. In particular, a method for optimizing hyperparameters and network weighting coefficients related to the network structure in a defect portion identification engine that identifies defect portions from an input image has been described.

[0074] In the second embodiment, a method is described in which a pseudo-good product image is estimated from an image of an object using a pseudo-good product image estimation engine that estimates a pseudo-good product image corresponding to an input image, and the parameters used when comparing the image of the object with the pseudo-good product image are optimized as defect detection parameters.

[0075] In the processing sequence of the visual inspection method in the second embodiment, the image acquisition step S102, the defective part acquisition step S106, and the first function acquisition step (S108) in the parameter optimization phase 121, and the inspection phase 122 are the same as those in Figure 1 of the first embodiment, so their explanation will be omitted.

[0076] The appearance inspection method according to the second embodiment further includes a pseudo-good image estimation engine learning step S602 in which a pseudo-good image estimation engine 603, which estimates a pseudo-good image from an input image, is trained using an optimization-use good image 601 of the object. The defect detection step S608 includes a pseudo-good image estimation step S604 in which a pseudo-good image 605 is estimated from the image 103 of the object using the pseudo-good image estimation engine 603, and an image comparison step S606 in which defective portions of the object are detected by comparing the image 103 of the object with the pseudo-good image 605. The parameters optimized in the parameter optimization step S104 are the parameters used in the image comparison step S606.

[0077] In defect detection based on machine learning, it is desirable to prepare a large number of images of both good and defective products during learning. However, while it is relatively easy to collect a small number of images of defective products on an industrial production line, it is often difficult or time-consuming to collect a large number of images of defective products. Therefore, in this embodiment, learning is performed using only images of good products, and when optimizing defect detection parameters, evaluation values ​​are calculated using images of good products and images of defective products. Defect detection parameters can be optimized using only images of good products without collecting a large number of images of defective products.

[0078] 6 is a diagram showing an example of a processing sequence of the parameter optimization phase in this embodiment. Note that in FIG. 6, the object 101 and steps S102, S106, and S108 that are common to FIG. 1 are omitted.

[0079] First, a plurality of optimization-purpose good product images 601, which are images of good products among the optimization-purpose images 103, are used to train the pseudo-good product image estimation engine 603 (step S702). Details of the pseudo-good product image estimation engine 603 will be described later. When an image of an object is input to the pseudo-good product image estimation engine 603, the pseudo-good product image estimation engine 603 estimates and outputs a pseudo-good product image corresponding to the input image. Images of defective products are not trained on the pseudo-good product image estimation engine 603. Therefore, when an image of a defective product is input to the pseudo-good product image estimation engine 603, an image different from the input image of the defective product is output. Therefore, by comparing the input image with the output image, it is possible to detect defective parts.

[0080] Next, a plurality of optimization images 103 are input to a pseudo-good image estimation engine 603, and a pseudo-good image 605 corresponding to each optimization image 103 is estimated for each optimization image 103 (step S604).

[0081] Thereafter, the optimization image 103 is compared with the corresponding pseudo-good image 605 using the defect detection parameters 607 (step S606). By performing this comparison for all optimization images 103, defective portions in each optimization image 103 are detected, and detection results 111 indicating the defective portions are obtained for each optimization image 103 (step S608).

[0082] Next, as in the first embodiment, the overdetection rate x and the defect detection rate y are obtained from the defective portion information 107, the detection result 111, and the first function 109, and an evaluation value 113 is calculated based on the overdetection rate x and the defect detection rate y (step S112).

[0083] Then, the defect detection parameters 607 are repeatedly updated so that the evaluation value 113 is maximized (step S114), thereby optimizing the defect detection parameters.

[0084] Details of the image comparison step S606 will be described with reference to Fig. 7. Fig. 7 is a diagram showing an example of the processing sequence of the image comparison step S606 in this embodiment.

[0085] In the image comparison step S606, for example, a difference image 702 having, as pixel values, difference values ​​for each pixel between the optimization image 103 and the pseudo-good product image 605 estimated therefrom is calculated (step S701).

[0086] Next, a portion (potential defect portion) 704 where the pixel value of the difference image 702 is greater than the difference threshold value 708 is detected (step S703), and an abnormality score 706 is calculated for the potential defect portion 704 (step S705).

[0087] Next, if the abnormality score 706 is greater than the pass / fail determination threshold 709, the object is determined to be a defective product, and a detection result 111 indicating whether the product is good or defective is obtained (step S707).

[0088] The difference threshold value 708 and the pass / fail determination threshold value 709 described above are targets to be optimized as the defect detection parameters 607 in the parameter optimization step S104 in this embodiment. As the abnormality score 706, for example, the sum of the pixel values ​​of the difference image in the defect candidate portion 704 may be used.

[0089] The pseudo-good image estimation engine 603 will now be described in detail. As the pseudo-good image estimation engine 603, for example, a neural network having a three-layer structure as shown in FIG. 5 or the network structure described in the aforementioned paper (Ronneberger et al.) may be used, similar to the defective portion identification engine.

[0090] In the learning step S602 of the pseudo-good product image estimation engine, the weighting coefficients between nodes in the pseudo-good product image estimation engine are optimized using an optimization-use good product image 601 as input so that the estimated image is identical to the input image. The network structure described in the paper (Ronneberger et al.) is called an encoder-decoder model, which compresses (encodes) high-dimensional features of an image into low-dimensional features and then restores (decodes) them back to high-dimensional features. By training the estimated image to match the input good product image, the original good product image is restored when a good product image is input, but the defective parts cannot be restored when a defective product image is input. Therefore, comparing the input image and the estimated image is expected to reveal larger differences in the defective parts.

[0091] Third Embodiment A visual inspection method according to a third embodiment will be described with reference to Fig. 8 to Fig. 10. Fig. 8 is a diagram showing an example of a processing sequence of the visual inspection method according to the third embodiment. Note that Fig. 8 omits the object 101 and steps S102 and S106 that are common to Fig. 1.

[0092] In the first and second embodiments, a method for obtaining defect detection parameters suitable for practical use by optimizing the defect detection parameters using a first function for the overdetection rate and / or the defect detection rate has been described. In the third embodiment, a method for obtaining defect detection parameters suitable for practical use by optimizing the defect detection parameters using a second function for the overdetection rate and / or the defect detection rate for each defect type (category) will be described.

[0093] In the processing sequence of the visual inspection method in the third embodiment, the image acquisition step S102 and the defective part acquisition step S106 in the parameter optimization phase 121, and the inspection phase 122 are the same as those in FIG. 1 of the first embodiment, and therefore their explanation will be omitted.

[0094] In the appearance inspection method of the third embodiment, the parameter optimization step S104 includes a classification step S803 of classifying the image 103 of the object into defect categories c (c is a positive integer from 1 to M; M is the number of categories), and a second function acquisition step S801 of acquiring a second function v_c (802) that is an element for each defect category c of the first function, and that calculates an element evaluation value d_c that is an element of the evaluation value e (213) from the overdetection rate x and / or the defect detection rate y. In the evaluation value calculation step S805, the evaluation value e (213) is calculated based on the element evaluation value d_c obtained by the second function v_c (802) for at least one overdetection rate x and / or defect detection rate y obtained for each defect category c from the detection result 111 in the defect detection step S110.

[0095] Defects that occur on industrial product production lines are diverse, and because the impact of each defect type (category) on the target product varies, the required overdetection rate and defect detection rate generally differ for each defect category. For example, defects such as missing holes in places where holes should be drilled have a significant negative impact on the performance of the target product, so a very high defect detection rate (around 0.98 to 1.0) is required. On the other hand, minute scratches such as those caused by cutting processes often have a small impact on the performance of the target product, so a low overdetection rate is required.

[0096] However, in the past, when the items emphasized differ depending on the defect category, it was not possible to obtain appropriate defect detection parameters. Therefore, in this embodiment, a second function for each defect category is used as an element constituting the first function in the first and second embodiments. This makes it possible to obtain appropriate defect detection parameters even when the items emphasized differ depending on the defect category.

[0097] In this embodiment, first, the second function v_c (802) for each defect category c (c is a positive integer from 1 to M; M is the number of categories) is obtained (step S801).

[0098] Next, the optimization images 103 are classified into defect categories (S803), and a classification result 804 indicating the classification result is obtained.

[0099] Then, defect detection parameters 105 are used to detect defect portions in each of the optimization images 103, and detection results 111 are obtained for each optimization image 103 (step S110).

[0100] Next, an element evaluation value d_c (807) is calculated for each defect category c based on the detection result 111, the defect portion information 107, the classification result 804, and the second function v_c (802) (step S806). Details of step S806 will be described later.

[0101] Next, the evaluation value e(113) is calculated using the element evaluation value {d_c} (step S808), and the defect detection parameters 105 are updated so that the evaluation value e(113) is maximized (step S114). Then, steps S806, S808, and S114 are repeated to optimize the defect detection parameters.

[0102] In the element evaluation value calculation step S806, for each defect category c (c is a positive integer from 1 to M; M is the number of categories), the overdetection rate {x_(i, c) (i is a positive integer from 1 to N; N is the number of thresholds)} and the defect detection rate {y_(i, c)} are calculated based on the detection result 111 and the defect portion information 107, and the element evaluation value d_c is calculated using the formulas (1) to (3) of the first embodiment in which e is replaced with d_c.

[0103] When calculating the element evaluation value d_c using equation (2), x_i and y_i are replaced with x_(i, c) and y_(i, c), respectively. When calculating the element evaluation value d_c using equation (3), an ROC curve is drawn for each defect category c using the overdetection rate {x_(i, c)} and defect detection rate {y_(i, c)} calculated for each defect category c and pass / fail judgment threshold T_i, and the ROC curve is weighted by the second function v_c(x, y) to calculate the element evaluation value d_c.

[0104] [Importance p_c for each defect category c] A method for calculating an evaluation value using element evaluation values ​​in evaluation value calculation step S805 will be described in detail. In evaluation value calculation step S805 in this embodiment, an evaluation value e (113) is calculated based on the importance p_c (810) for each defect category c and the element evaluation value d_c.

[0105] As mentioned above, there are a wide variety of defects that occur on industrial production lines. In actual operation, the importance of each defect category varies, and it is important to detect and address defect categories with higher importance before those with lower importance. For example, by prioritizing measures for defect categories that occur frequently over those with lower importance, the defect rate can be reduced early.

[0106] However, in the past, it was difficult to give priority to detecting a defect category with a high importance. Therefore, in this embodiment, the evaluation value is calculated by weighting the element evaluation value d_c using the importance p_c of each defect category c. This increases the contribution rate of defect categories with a high importance in the calculation of the evaluation value, and as a result, it becomes possible to give priority to detecting a defect category with a high importance.

[0107] In the parameter optimization phase 121 of this embodiment, the importance p_c (810) for each defect category c is obtained (step S809), and an evaluation value e is calculated using the importance {p_c} and the element evaluation value {d_c} (step S808). The evaluation value e is calculated, for example, by equation (7).

[0108]

[0109] The importance p_c may be a value determined in advance for each defect category, or may be determined by user input using a GUI or the like.

[0110] 9 is a schematic diagram showing an example of a GUI for acquiring the second function v_c for each defect category c in the second function acquisition step S801 of this embodiment. Examples of GUI devices that display this GUI include a display and a projector. Examples of input devices that allow a user to perform operations such as pressing buttons while viewing the GUI include a keyboard, a mouse, and a touch panel.

[0111] The GUI has an area 901 for selecting a defect category, buttons 902 and 903 for selecting whether to set the second function for the defect category selected in area 901 by selecting it from predetermined presets or by inputting a mathematical expression, an area 904 for selecting a preset, an area 905 for inputting a mathematical expression, an area 906 showing the value of the second function, a button 907 for completing the setting of the second function, and a button 908 for canceling the setting of the second function.

[0112] When a defect category is selected in area 901, it becomes possible to set a second function for the selected defect category. When a select from presets button 902 is clicked and a preset is selected in area 904, the value of the function displayed in area 904 is displayed in area 906. In area 906, areas with larger function values ​​are displayed in a color closer to white, and areas with smaller function values ​​are displayed in a color closer to black.

[0113] When a formula input button 903 is clicked and a formula is input in area 905, the value of the function displayed in area 905 is displayed in area 906. The user can set the second function according to the defect category while checking the value of the second function displayed in area 906. The setting of the second function can be finished by pressing button 907, and can be canceled by pressing button 908.

[0114] In the example of FIG. 9, the second function is displayed with the label "v", but the second function may be represented with a different label "v_c" for each category c as described above.

[0115] [Failure Category] The failure category used in the classification step will be described below. In the classification step S803 in this embodiment, the image 103 of the object is classified into different failure categories based on the degree of fatality of the failure.

[0116] As mentioned above, there are a wide variety of defects that occur on industrial product production lines. In actual operation, when a defect occurs, it is treated as a highly lethal defect if it has a significant adverse effect on the performance of the production line or the target product, and a high defect detection rate (around 0.98 to 1.0) is required for highly lethal defects. On the other hand, a low overdetection rate is required for less lethal defects.

[0117] However, conventional visual inspection methods cannot obtain defect detection parameters suitable for practical use when there is a mixture of highly fatal and less fatal defects. Therefore, in this embodiment, an image of an object is classified into different defect categories based on the degree of fatality, and an evaluation value is calculated using a different second function for each defect category, thereby optimizing the defect detection parameters. This makes it possible to obtain defect detection parameters that prioritize, for example, a high defect detection rate for highly fatal defects and a low overdetection rate for less fatal defects.

[0118] FIG. 10 is a schematic diagram showing an example of a GUI for classifying the images of objects according to the degree of fatality in the classification step S803 of this embodiment.

[0119] The GUI has areas 1005 to 1008 for classifying defect categories for each of the object images 1001 to 1004, a button 1012 for completing the classification, and a button 1013 for canceling the classification.

[0120] 10, image 1001 contains a chip defect 1009, image 1002 contains a scratch defect 1010, and image 1014 contains a foreign substance defect 1011. For each image of the object, classification is performed by selecting a defect category in areas 1005 to 1008, and classification of the defect category can be ended by pressing button 1012, and classification can be canceled by pressing button 1013.

[0121] 10, image 1001 is classified as a fatal defect, which indicates a defect with a high fatality, image 1002 is classified as a non-fatal defect, which indicates a defect with a low fatality, image 1003 is classified as a non-defective product, which indicates that the object is not a defective product, and image 1004 is unclassified, which indicates that the object is not classified into any of the defect categories or non-defective products.

[0122] In FIG. 10, an example has been described in which defects are classified into two categories, fatal defects and non-fatal defects. However, defect categories other than these, for example, defect categories different depending on the size of the defect, may also be used. Furthermore, classification into three or more defect categories may also be possible. While an example has been described in which an image of an object is classified using a GUI, a classification engine that automatically classifies input images using a convolutional neural network or the like may also be used. Furthermore, an image of an object may be used as input and automatically classified based on pre-set rules.

[0123] [Computer System] FIG. 11 is a diagram showing an example of the hardware configuration of a computer system that executes the visual inspection methods according to the first to third embodiments.

[0124] The computer system is composed of an imaging device 1101 and a computer 1102. As described in the first embodiment, examples of the imaging device 1101 include a CCD camera, an optical microscope, a charged particle microscope, an ultrasonic inspection device, and an X-ray inspection device.

[0125] The computer 1102 is a component that processes the appearance inspection method described in this embodiment, and includes the following:

[0126] Processor 1103: Examples of the processor 1103 include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), and an FPGA (Field Programmable Gate Array), but other components may be used as long as they can process the outer pipe inspection method. One or more processors 1103 may be included in the computer 1102.

[0127] Memory resource 1104: Examples of the memory resource 1104 include RAM (Random Access Memory), ROM (Read Only Memory), HDD (Hard Disk Drive), and non-volatile memory (flash memory, etc.). The memory resource may store a program (referred to as an appearance inspection program) that causes a processor to execute the appearance inspection method described in the first to third embodiments. One or more memory resources 1104 may be included in the computer 1102.

[0128] GUI device 1105: As mentioned above, examples of the GUI device 1105 include a display and a projector, but other devices may also be used as long as they are capable of displaying a GUI.

[0129] Input device 1106: As mentioned above, examples of the input device 1106 include a keyboard, a mouse, and a touch panel, but other devices that can accept operations from the user may also be used. Furthermore, the input device 1106 and the GUI device 1105 may be integrated into one device.

[0130] Communication interface 1107: Examples of the communication interface 1107 include USB (Universal Serial Bus), ETHERNET (registered trademark), and Wi-Fi, but other interface devices may also be used as long as they are interfaces that can directly receive images from the imaging device 1101 or that allow the user to transmit the images to the computer 1102. Furthermore, a portable non-volatile storage medium (such as a flash memory, a DVD (Digital Versatile Disc), a CD (Compact Disk)-ROM, or a Blu-ray disc) that stores the images may be connected to the communication interface 1107, and the images may be stored in the computer 1102.

[0131] The above is the hardware configuration of the computer. Note that the computer system may include a plurality of computers 1102 and a plurality of image capturing devices 1101.

[0132] The above-mentioned visual inspection program may be stored in the computer 1102 via the following route.

[0133] The appearance inspection program is stored in a nonvolatile portable nonvolatile storage medium, and the medium is connected to the communication interface 1107 to distribute the program to the computer 1102 .

[0134] The appearance inspection program is distributed to the computer 1102 by a program distribution server. The program distribution server has a memory resource that stores the appearance inspection program, a processor that performs distribution processing to distribute the appearance inspection program, and a communication interface that can communicate with the communication interface of the computer.

[0135] As mentioned above, the embodiments described above do not limit the scope of the invention as claimed, and not all of the elements and combinations thereof described in the embodiments are necessarily essential to the solution of the invention.

[0136] For example, some or all of the configurations, functions, processing means, and units of the computer system described above may be realized by executing an appearance inspection program in the processor 1103. However, some or all of these may be realized in hardware by designing an integrated circuit, etc. Furthermore, the computer system may be realized by a user (operator) performing some or all of the functions and processes realized by each program.

[0137] There are cases where the computer system does not have the GUI device 1105, and instead delegates output processing to the user and part of input processing from the user to a processor system (referred to as an external processor system) such as a smartphone or tablet external to the system. In such cases, the computer system (or the processor 1103, the visual inspection program) may perform the following in order to execute the processing described above and other parts of the program.

[0138] Instead of outputting to the user using the GUI device 1105 described above, data required for outputting to the user is transmitted to the external processor system via the communication interface 1107. Examples of the data include the data to be output itself and data for generating output data in another processor system, but it may also be a program or web data describing the process of outputting to the user in the external processor system.

[0139] Instead of receiving input or operations from a user using the input device 1106 as described above, data indicative of user input or operations is received from an external processor system via the communication interface 1107 .

[0140] From another perspective, the meaning of "outputting data to a user" may include not only the computer system itself outputting the data, but also having another entity other than the computer system output the data (using it). Furthermore, the meaning of "receiving input or operation from a user" may include not only the user directly inputting via the input device 1106 of the computer system, but also the computer system indirectly receiving input.

[0141] 101, 115...object, 103...image for optimization, 105...defect detection parameters, 107...defective portion information, 109...first function, 111, 119...detection result, 113...evaluation value, 117...inspection image, 121...parameter optimization phase, 122...inspection phase, 302, 303, 403 to 405, 901, 904 to 906, 1005 to 1008...areas, 401, 402, 406, 407, 902, 903, 907, 908, 1012, 1013...button, 601...good product image, 601...good product image for optimization, 603...pseudo-good product image estimation engine, 605 ...pseudo-good product image, 607...defect detection parameters, 702...difference image, 704...candidate defect area, 706...abnormality score, 708...difference threshold, 709...good / bad determination threshold, 804...classification result, 1001-1004, 1014...image, 1009...chipping defect, 1010...scratch defect, 1011...foreign substance defect, 1101...imaging device, 1102...computer, 1103...processor, 1104...memory resource, 1105...GUI device, 1106...input device, 1107...communication interface, 1201, 1203...ROC curve, 1202, 1204...area.

Claims

1. A computer system having one or more processors and one or more memory resources, wherein the one or more processors execute an image acquisition step of acquiring an image of an object, and a parameter optimization step of optimizing parameters for detecting defective portions in the image of the object, the parameter optimization step including: a defective portion acquisition step of acquiring defective portion information indicating the defective portions in the image of the object; a first function acquisition step of acquiring a first function that calculates an evaluation value evaluating performance for detecting the defective portions from an overdetection rate and / or a defect detection rate; a defect detection step of detecting the defective portions of the object using the image of the object and the parameters; an evaluation value calculation step of calculating the evaluation value taken by the first function for at least one of the overdetection rates and / or the defect detection rates obtained based on the detection result in the defect detection step and the defective portion information; and a parameter updating step of updating the parameters so that the evaluation value is maximized.

2. A computer system according to claim 1, wherein the evaluation value obtained from the first function is larger in an area where the overdetection rate is low and / or the defect detection rate is high.

3. A computer system according to claim 1, wherein the one or more processors display a GUI (Graphical User Interface) for setting the first function on a GUI device in the first function acquisition step.

4. A computer system as described in claim 1, wherein the parameters are hyperparameters relating to a network structure of a defect portion identification engine that identifies defect portions from an input image and / or weighting coefficients of the network of the defect portion identification engine, and the one or more processors optimize the parameters using the image of the object and the defect portion information in the parameter optimization step.

5. A computer system as described in claim 1, wherein the one or more processors further execute a pseudo-good image estimation engine learning step of training a pseudo-good image estimation engine that estimates a pseudo-good image from an input image using a good image of the object, and the defect detection step includes: a pseudo-good image estimation step of estimating the pseudo-good image from the image of the object using the pseudo-good image estimation engine; and an image comparison step of detecting the defective portion of the object by comparing the image of the object with the pseudo-good image, and the parameters optimized in the parameter optimization step are parameters used in the image comparison step.

6. A computer system as claimed in claim 1, wherein the parameter optimization step includes: a classification step of classifying the image of the object into defect categories; and a second function acquisition step of acquiring a second function which is an element of the first function for each defect category, the second function calculating an element evaluation value which is an element of the evaluation value from the overdetection rate and / or the defect detection rate, wherein the one or more processors, in the evaluation value calculation step, calculate the evaluation value based on the element evaluation value taken by the second function for at least one of the overdetection rates and / or the defect detection rates obtained for each defect category from the detection results in the defect detection step.

7. A computer system according to claim 6, wherein said one or more processors calculate said evaluation value based on the importance of each of said defect categories and said element evaluation value in said evaluation value calculation step.

8. A computer system according to claim 6, wherein the one or more processors, in the classifying step, classify the images of the object into different defect categories based on the degree of lethality of the defect.

9. The computer system of claim 1, wherein the one or more processors further perform the step of detecting defects in an image of the product using the updated parameters.

10. A visual inspection method executed by a computer system having one or more processors and one or more memory resources, comprising: an image acquisition step of acquiring an image of an object; and a parameter optimization step of optimizing parameters for detecting defective portions in the image of the object, the parameter optimization step comprising: a defective portion acquisition step of acquiring defective portion information indicating the defective portions in the image of the object; a first function acquisition step of acquiring a first function that calculates an evaluation value evaluating performance for detecting the defective portions from an overdetection rate and / or a defective detection rate; a defect detection step of detecting the defective portions of the object using the image of the object and the parameters; an evaluation value calculation step of calculating the evaluation value taken by the first function for at least one of the overdetection rates and / or the defective detection rates obtained based on the detection result in the defect detection step and the defective portion information; and a parameter updating step of updating the parameters so that the evaluation value is maximized.

11. The appearance inspection method according to claim 10, wherein the evaluation value obtained from the first function is larger in an area where the overdetection rate is lower and / or the defect detection rate is higher.

12. The appearance inspection method according to claim 10, wherein in said first function acquisition step, a GUI for setting said first function is displayed on a GUI device.

13. An appearance inspection method as described in claim 10, wherein the parameters are hyperparameters related to a network structure of a defect portion identification engine that identifies defective portions from an input image and / or weighting coefficients of the network of the defect portion identification engine, and in the parameter optimization step, the parameters are optimized using the image of the object and the defective portion information.

14. An appearance inspection method as described in claim 10, further comprising a pseudo-good image estimation engine learning step of learning a pseudo-good image estimation engine that estimates a pseudo-good image from an input image using a good image of the object, wherein the defect detection step comprises: a pseudo-good image estimation step of estimating the pseudo-good image from the image of the object using the pseudo-good image estimation engine; and an image comparison step of detecting the defective portion of the object by comparing the image of the object with the pseudo-good image, wherein the parameters are parameters used in the image comparison step.

15. A visual inspection program for causing a computer system to execute the visual inspection method according to any one of claims 10 to 14.

Citation Information

Patent Citations

  • Abnormality determination computer and abnormality determination method

    JP2022191966A

  • Computer and visual inspection method

    JP2023007260A

  • Hyperparameter search system and program thereof

    JP2023044465A

  • Multiple instance learning method

    US20210334994A1

  • Learning device, trained model generation method, classification device, classification method, and computer-readable recording medium

    WO2021214861A1