Inspection device, inspection method, and program

The inspection device uses a machine learning model to determine defect types and reliability scores, reducing unnecessary visual inspection steps by dynamically updating a defect list based on accuracy, enhancing efficiency and accuracy.

JP2024124719AInactive Publication Date: 2024-09-13SEIKO EPSON CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023032596
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing inspection methods require unnecessary visual inspection even when defects are not critical, increasing the number of steps required for workers.

Method used

An inspection device and method utilizing a machine learning model to determine defect types and reliability scores, selectively notifying visual inspection when necessary, and dynamically updating a defect list based on accuracy.

Benefits of technology

Reduces the number of steps required for visual inspection by operators by only performing it when necessary, improving efficiency and accuracy through adaptive defect list updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124719000001
    Figure 2024124719000001
Patent Text Reader

Abstract

To reduce man-hours required for visual inspections by a worker.SOLUTION: An inspection device includes: a preprocessing unit that determines the type of a defect present in an inspection target, by using an input image formed by imaging the inspection target; a determination unit that determines whether the inspection target has a defect using a machine learning model on the basis of the input image and outputs a determination result including a confidence score indicating the reliability of the determination result; an inspection processing unit that notifies whether the execution of a visual inspection by a worker is required and accepts results of the visual inspection by the worker; an output unit that outputs inspection results; and a storage unit that stores a list in which information indicating the types of defects for which the inspection results based on a machine learning model can be adopted is registered. (i) When the confidence score indicates that the execution of visual inspection is not required and the type of the defect present in the inspection target is registered in the list, the inspection processing unit does not notify that the execution of visual inspection is required, and the output unit outputs the determination result as the inspection result.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an inspection apparatus, an inspection method, and a program. [Background technology]

[0002] Patent Document 1 describes a technique for performing visual inspection using an image of an object to be inspected. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2015-137919 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the technology described in Patent Document 1, when a defect candidate extracted from an image by a quality determination processing unit is determined to be defective, the defect candidate determined to be defective is uniformly subject to visual inspection by an operator. Therefore, visual inspection is performed even when it is not necessary. Therefore, a technology that can reduce the man-hours of visual inspection by an operator has been desired. [Means for solving the problem]

[0005] The present disclosure can be realized in the following forms.

[0006] According to a first aspect of the present disclosure, there is provided an inspection device, which includes a pre-processing unit that uses an input image of an inspection object to determine the type of defect of the inspection object, a discrimination unit that uses a machine learning model to determine the presence or absence of the defect of the inspection object based on the input image and outputs a discrimination result including a reliability score representing the reliability of the discrimination result, an inspection processing unit that notifies an operator of the necessity of performing a visual inspection and receives the result of the visual inspection, an output unit that outputs the inspection result, and a storage unit that stores a list in which information representing the types of the defect for which the discrimination result by the machine learning model can be adopted as the inspection result is registered, and (i) when the reliability score indicates that the visual inspection is not required, and if the type of defect in the object to be inspected is registered in the list, the inspection processing unit does not notify that the visual inspection is necessary, and the output unit outputs the discrimination result as the inspection result; and if (ii) the reliability score indicates that the visual inspection is necessary, or (iii) the reliability score indicates that the visual inspection is not necessary and the type of defect in the object to be inspected is not registered in the list, the inspection processing unit notifies that the visual inspection is necessary, accepts the result of the visual inspection, and the output unit outputs the result of the visual inspection as the inspection result.

[0007] According to a second aspect of the present disclosure, there is provided an inspection method. This inspection method includes the steps of: determining the type of defect of an object to be inspected using an input image of the object to be inspected; determining whether or not the object to be inspected has a defect based on the input image using a machine learning model, and outputting a determination result including a reliability score indicating the reliability of the determination result; reading out a list from a storage unit that stores a list in which information indicating the types of defects for which the determination result by the machine learning model can be adopted as an inspection result; (i) outputting the determination result as the inspection result when the reliability score indicates that a visual inspection by an operator is not required and the type of the defect of the object to be inspected is registered in the list; (ii) notifying that the visual inspection is required and accepting a result of the visual inspection when the reliability score indicates that the visual inspection is not required or when the reliability score indicates that the visual inspection is not required and the type of the defect of the object to be inspected is not registered in the list; and outputting the result of the visual inspection as the inspection result.

[0008] According to a third aspect of the present disclosure, a program is provided. The program includes a function of, in a computer functioning as an inspection device, determining the type of defect of an object to be inspected by using an input image of the object to be inspected, a function of determining the presence or absence of the defect of the object to be inspected based on the input image by using a machine learning model, and outputting a determination result including a reliability score indicating the reliability of the determination result, a function of reading out a list from a storage unit storing a list in which information indicating the types of defects for which the determination result by the machine learning model can be adopted as an inspection result is registered, and a function of (i) reading out information indicating that the reliability score indicates that visual inspection by an operator is not required and the reliability score indicates that the type of defect of the object to be inspected is not required. The system realizes the following functions: a function of not notifying that the visual inspection is necessary if the type of defect in the object is registered in the list, a function of outputting the discrimination result as the inspection result; a function of notifying that the visual inspection is necessary and accepting the result of the visual inspection if (ii) the reliability score indicates that the visual inspection is necessary, or (iii) the reliability score indicates that the visual inspection is not necessary and the type of defect in the object to be inspected is not registered in the list, and a function of outputting the result of the visual inspection as the inspection result. [Brief description of the drawings]

[0009] [Figure 1] 1 is a block diagram showing a schematic configuration of an inspection system according to an embodiment of the present invention. [Diagram 2] 4 is a flowchart showing a process executed by the inspection device. [Diagram 3] 10 is a flowchart showing detailed processing of an inspection process. [Figure 4] 11 is a flowchart illustrating detailed processing of a first update process. [Diagram 5] 13 is a flowchart illustrating detailed processing of a second update process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] A. Embodiment: 1 is a block diagram showing a schematic configuration of an inspection system 10 according to the present embodiment. The inspection system 10 includes a camera 50 and an inspection device 100. The inspection system 10 inspects a workpiece WK using an image captured by the camera 50 during an inspection process in a production line, for example. The workpiece WK is a part such as a bolt or nut, or a work in progress. The workpiece WK is also called an inspection target.

[0011] The camera 50 captures an image of the workpiece WK and supplies the captured image to the inspection device 100. The camera 50 is capable of communicating with the inspection device 100 via wireless communication or wired communication.

[0012] The inspection device 100 is a computer that includes a memory 110 , an interface unit 120 , an input device 130 , a display device 140 , and a processor 150 .

[0013] The memory 110 stores various programs and data used for various processes executed by the inspection device 100. The memory 110 stores data representing a learning model M1. When an image of the workpiece WK is input, the learning model M1 determines whether or not the workpiece WK has a defect. The learning model M1 is, for example, a convolutional neural network (CNN). The learning model M1 is a machine learning model generated by machine learning using a learning data set. The learning data set includes a set of learning data and target data associated with the learning data. An image of the workpiece WK is used as the learning data. As the target data, either a label value indicating that the workpiece WK included in the image does not have a defect, i.e., that the workpiece WK is a non-defective product, or a label value indicating that the workpiece WK included in the image has a defect, i.e., that the workpiece WK is a defective product, is used.

[0014] A list L1 is stored in the memory 110. Information indicating the types of defects for which the discrimination results obtained by the learning model M1 can be used as the inspection results is registered in the list L1. The memory 110 is also referred to as a storage unit.

[0015] A camera 50, an input device 130, and a display device 140 are connected to the interface unit 120. The input device 130 is, for example, a keyboard or a mouse. The display device 140 is, for example, a liquid crystal display or an organic EL (Electro Luminescence) display.

[0016] The processor 150 realizes various functions by executing the programs stored in the memory 110. By executing the programs stored in the memory 110, the processor 150 functions as a preprocessing unit 210, a discrimination unit 220, an inspection processing unit 230, an output unit 240, an evaluation unit 250, and an update unit 260.

[0017] The pre-processing unit 210 compares an image of the workpiece WK with a reference image to determine the type of defect in the workpiece WK. The processing of the pre-processing unit 210 will be described in detail later.

[0018] The discrimination unit 220 uses the learning model M1 to discriminate the presence or absence of defects in the workpiece WK based on an image of the workpiece WK, and outputs a discrimination result. The discrimination result includes a reliability score that indicates the reliability of the discrimination result. The details of the processing of the discrimination unit 220 will be described later. The image of the workpiece WK is also called an input image.

[0019] The inspection processing unit 230 accepts the results of the visual inspection by the operator. However, in this embodiment, the visual inspection by the operator is not performed in the following cases. (i) If the confidence score indicates that visual inspection is not required and the type of defect present in the inspected object is registered in List L1;

[0020] A visual inspection by an operator is to be carried out in any of the following cases: (ii) If the confidence score indicates that a visual inspection should be performed. (iii) If the confidence score indicates that visual inspection is not required and the type of defect present in the inspected object is not registered in List L1.

[0021] In the above case of (ii) or (iii), i.e., when visual inspection is required, the inspection processing unit 230 notifies that visual inspection is required. In the above case of (i), i.e., when visual inspection is not required, the inspection processing unit 230 does not notify whether visual inspection is required. Alternatively, the inspection processing unit 230 may notify that visual inspection is not required. Details of the processing by the inspection processing unit 230 will be described later.

[0022] In the above case (i), the output unit 240 outputs the discrimination result by the learning model M1 as the inspection result. In the above case (ii) or (iii), the output unit 240 outputs the result of the visual inspection by the operator as the inspection result. Details of the processing by the output unit 240 will be described later.

[0023] The evaluation unit 250 evaluates the discrimination result by the discrimination unit 220. The process of the evaluation unit 250 will be described in detail later.

[0024] The update unit 260 updates the list L1 using the evaluation result by the evaluation unit 250. The process of the update unit 260 will be described in detail later.

[0025] Fig. 2 is a flowchart showing the processing executed by inspection device 100. The processing shown in Fig. 2 includes an inspection processing in step S10, a first update processing in step S20, and a second update processing in step S30. For example, when a user instructs the start of processing via input device 130, processor 150 starts the processing shown in Fig. 2.

[0026] Fig. 3 is a flowchart showing detailed processing of the inspection process (see step S10 in Fig. 2). The process shown in Fig. 3 is executed by the processor 150 functioning as the pre-processing unit 210, the discrimination unit 220, the inspection processing unit 230, and the output unit 240. Before the process shown in Fig. 3 is started, an input image of the workpiece WK captured by the camera 50 is stored in the memory 110. The input image used for the inspection may be multiple images captured from different directions of the same workpiece WK to be inspected, or multiple images captured of multiple workpieces WK to be inspected.

[0027] In step S101, the processor 150 reads out an input image stored in the memory 110, and compares the input image with a reference image to determine whether the target workpiece WK is a defect candidate. The reference image is, for example, an image of a defect-free part of the same type as the workpiece WK. Furthermore, if the target workpiece WK is a defect candidate, the processor 150 determines the type of defect. The types of defects are, for example, "scratch," "chipped," and "foreign matter." A "scratch" is a defect in which the missing portion is linear. A "chipped" is a defect in which the missing portion has a certain area. A "foreign matter" is a defect in which a foreign matter is attached to the workpiece WK. Note that the learning model M1 is not used in the processing of step S101.

[0028] In step S102, if the workpiece WK included in the input image is a defect candidate (step S102; YES), the processor 150 executes the process of step S103. On the other hand, if the workpiece WK included in the input image is not a defect candidate (step S102; NO), the processor 150 executes the process of outputting the inspection results in step S107. For workpieces WK that are not defect candidates, discrimination using the learning model M1 described below and visual inspection are not performed. This makes it possible to reduce the amount of work required for inspection.

[0029] In step S103, the processor 150 uses the learning model M1 to determine whether or not the defect candidate has a defect. When an input image is input to the learning model M1, a determination result is output. As the determination result, a reliability score is output, which includes a defective product score representing the reliability that the target work WK has a defect, and a non-defective product score representing the reliability that the target work WK does not have a defect. The defective product score is also referred to as a first value. The non-defective product score is also referred to as a second value.

[0030] The defective product score is expressed as a probability that indicates the likelihood that the target work WK has a defect. The good product score is expressed as a probability that indicates the likelihood that the target work WK does not have a defect. For example, the defective product score is 20% and the good product score is 80%. In this case, the confidence score is expressed as "no defect: 0.2, defective: 0.8".

[0031] In step S104, the processor 150 determines whether the defective product score satisfies a first condition. The first condition is that the defective product score is less than a predetermined first threshold. For example, the first threshold is set to "15%". If the defective product score is less than the first threshold (step S104; YES), the processor 150 determines that the target workpiece WK does not have a defect, and executes the process of step S105. The defective product score being less than the first threshold means that the result of the learning model M1 determining that there is no defect is sufficiently reliable. In this case, in principle, visual inspection by an operator is not required. The defective product score being equal to or greater than the first threshold means that the result of the learning model M1 determining that there is no defect is not sufficiently reliable. In this case, visual inspection by an operator is required. If the defective product score is equal to or greater than the first threshold (step S104; NO), the processor 150 determines that the quality of the target workpiece WK is unknown, and executes the process of step S106.

[0032] In step S105, the processor 150 determines whether the type of defect determined in step S101 for the target workpiece WK is registered in the list L1.

[0033] The fact that the type of defect in question is registered in list L1 means that the discrimination result by learning model M1 can be adopted as the inspection result. In this case, visual inspection by an operator is not required. Since no visual inspection is performed, the man-hours required for visual inspection by an operator can be reduced.

[0034] In addition, if the type of defect in the target workpiece WK is not registered in the list L1, it means that the discrimination result by the learning model M1 cannot be adopted as the inspection result. In this case, a visual inspection by an operator is required.

[0035] In step S105, if the type of the target defect is registered in list L1 (step S105; YES), processor 150 executes the process of step S107. On the other hand, if the type of the target defect is not registered in list L1 (step S105; NO), processor 150 executes the process of step S106.

[0036] In step S106, a visual inspection is performed by an operator. In an embodiment, if the reliability of the result determined by the learning model M1 is insufficient, a visual inspection is performed. Also, even if the reliability of the result determined by the learning model M1 is sufficient, if the type of the target defect is such that the result determined by the learning model M1 cannot be adopted as the inspection result, a visual inspection is performed. First, the processor 150 displays an image notifying the operator that a visual inspection is necessary together with the input image on the display device 140. The operator visually checks the displayed input image and determines whether the target workpiece WK has a defect. Furthermore, if the target workpiece WK has a defect, the operator determines the type of the defect. The operator inputs the result of the visual inspection using the input device 130. Thus, the processor 150 accepts the result of the visual inspection.

[0037] In step S107, the processor 150 outputs the test result.

[0038] Processor 150 outputs the discrimination result obtained in step S103 as the confirmed inspection result in the following cases. (i) In step S104, the defective score is determined to be less than the first threshold value, that is, the defective score indicates that visual inspection is not required, and in step S105, it is determined that the type of defect of the workpiece WK is registered in the list L1.

[0039] Processor 150 outputs the result of the visual inspection obtained in step S106 as the inspection result in any of the following cases. (ii) In step S104, it is determined that the reliability score of the defective product is equal to or greater than the first threshold value, i.e., the defective product score indicates that a visual inspection is required. (iii) In step S104, it is determined that the defective product score of the reliability score is less than the first threshold value, and in step S105, it is determined that the type of defect of the workpiece WK is not registered in the list L1.

[0040] Furthermore, the processor 150 outputs a confirmed inspection result that the workpieces WK included in the input image that were not selected as defect candidates in the processing in step S101 do not have any defects.

[0041] For example, processor 150 stores data representing the inspection results in memory 110. The data representing the inspection results includes the date and time when the inspection was performed, information representing the input image, information representing the type of defect, a confidence score, a defective product score, information representing which of the above (i) to (iii) applies, etc. Additionally, processor 150 may display an image representing the inspection results on display device 140.

[0042] In step S108, processor 150 determines whether to continue the process. For example, if there are still unprocessed images remaining in memory 110, processor 150 determines to continue the process. If the process is to be continued (step S108; YES), processor 150 executes the process of step S101 again. If the process is not to be continued (step S108; NO), processor 150 ends the process shown in FIG. 3.

[0043] As described above, in the inspection process according to this embodiment, the necessity of visual inspection is determined based on the reliability score that indicates the reliability of the discrimination result using the learning model M1, and if the type of defect in the workpiece WK is registered in the list L1, visual inspection is not performed regardless of the type of defect. Therefore, the man-hours of visual inspection by the operator can be reduced compared to a mode that does not consider the reliability of the discrimination result using the machine learning model.

[0044] 4 is a flowchart showing detailed processing of the first update process (see step S20 in FIG. 2). In the first update process, a new defect type is added to the list L1 based on the result of evaluating the discrimination result by the learning model M1. The processing shown in FIG. 4 is executed by the processor 150 functioning as the evaluation unit 250 and the update unit 260.

[0045] In step S201, the processor 150 determines whether or not it is necessary to evaluate the discrimination result by the learning model M1. The processor 150 reads the data representing the test result stored in the memory 110, and executes the following process using the data representing the test result. Here, the processor 150 determines that evaluation is necessary when the condition (iii) is met in the test process shown in FIG. 3. (iii) In step S104, it is determined that the defective product score of the reliability score is less than the first threshold value, and in step S105, it is determined that the type of defect of the workpiece WK is not registered in the list L1.

[0046] If the evaluation needs to be performed (step S201; YES), the processor 150 executes the process of step S202. On the other hand, if the evaluation does not need to be performed, the processor 150 executes the process of step S205.

[0047] In step S202, processor 150 evaluates the discrimination result by learning model M1 for the target inspection result. The discrimination result by learning model M1 in the case where the above condition (iii) is met is the subject of evaluation here. Specifically, processor 150 determines whether the discrimination result by learning model M1 matches the result of visual inspection. If the discrimination result by learning model M1 matches the result of visual inspection, processor 150 adds 1 to the first number of cases, and stores the value of the first number after the increment in memory 110 in association with information identifying the type of defect in the target inspection result.

[0048] In step S203, the processor 150 determines whether an additional condition for adding the type of defect related to the target inspection result to the list L1 is satisfied. The additional condition is that the accuracy with which the discrimination result by the learning model M1 matches the result of visual inspection for the type of defect related to the target inspection result is equal to or higher than a first evaluation threshold determined in advance. The first evaluation threshold is, for example, 80 percent. For example, it is assumed that discrimination using the learning model M1 for the defect type "chipping" is performed 100 times in the inspection process. It is assumed that the first number of times for "chipping" has reached 80 by executing the process of step S202. In this case, the accuracy of the discrimination result by the learning model M1 is equal to or higher than the first evaluation threshold. If the additional condition is satisfied (step S203; YES), the processor 150 executes the process of step S204. On the other hand, if the additional condition is not satisfied (step S203; NO), the process of step S205 is executed.

[0049] In step S204, the processor 150 registers the corresponding defect type together with the registration date in the list L1.

[0050] In step S205, processor 150 determines whether to continue the process. For example, processor 150 determines to continue the process when unevaluated test results still remain in memory 110. If the process is to be continued (step S205; YES), processor 150 executes the process of step S201 again. If the process is not to be continued (step S205; NO), processor 150 ends the process shown in FIG. 4.

[0051] As described above, the inspection device 100 adds defect types to the list L1 based on the results of evaluating the discrimination results by the learning model M1. In response to changes in the discrimination accuracy of the learning model M1, the list L1, which indicates whether or not the discrimination results by the learning model M1 can be adopted as the inspection result, is dynamically updated. This makes it possible to suppress the occurrence of discrimination errors using the learning model M1.

[0052] Fig. 5 is a flowchart showing detailed processing of the second update process (see step S30 in Fig. 2). In the second update process, defect types registered in list L1 are deleted based on the result of evaluating the discrimination result by learning model M1. The processing shown in Fig. 5 is executed by processor 150 functioning as evaluation unit 250 and update unit 260.

[0053] In step S301, processor 150 determines whether or not it is necessary to evaluate the discrimination result by learning model M1. Processor 150 reads data representing the inspection results stored in memory 110, and executes the following processing using the data representing the inspection results. Here, processor 150 determines that evaluation is necessary when condition (i) is met in the inspection processing shown in Fig. 3 and a predetermined period of time has passed since the type of defect related to the target inspection result was registered in list L1. (i) In step S104, the defective score is determined to be less than the first threshold value, that is, the defective score indicates that visual inspection is not required, and in step S105, it is determined that the type of defect of the workpiece WK is registered in the list L1.

[0054] When the evaluation needs to be performed (step S301; YES), the processor 150 executes the process of step S302. On the other hand, when the evaluation needs not to be performed, the processor 150 executes the process of step S305.

[0055] In step S302, the processor 150 evaluates the discrimination result by the learning model M1 for the target test result. The discrimination result by the learning model M1 in the case where the above condition (i) is met is the subject of evaluation here.

[0056] In step S302, the worker performs a visual inspection based on the input image related to the target inspection result. For this purpose, first, the processor 150 displays on the display device 140 an image notifying the user that a visual inspection is required together with the input image. The worker visually checks the displayed input image to determine whether the target workpiece WK has a defect. Furthermore, if the target workpiece WK has a defect, the worker determines the type of the defect. The worker inputs the visual inspection result using the input device 130. Thus, the processor 150 accepts the visual inspection result. Thereafter, the processor 150 determines whether the discrimination result by the learning model M1 related to the target inspection result matches the visual inspection result. If the discrimination result by the learning model M1 matches the visual inspection result, the processor 150 adds 1 to the second number of cases, and stores the value of the second number of cases after the addition in the memory 110 in association with information identifying the type of defect related to the target inspection result. If the discrimination result by learning model M1 does not match the result of visual inspection, processor 150 adds 1 to the third count, and stores the value of the third count after the increment in memory 110 in correspondence with information that identifies the type of defect related to the target inspection result.

[0057] In step S303, the processor 150 determines whether or not a maintenance condition for maintaining the type of defect related to the target inspection result in the list L1 is satisfied. The maintenance condition is that the accuracy with which the discrimination result by the learning model M1 matches the result of visual inspection for the type of defect related to the target inspection result is equal to or higher than a second evaluation threshold determined in advance. The second evaluation threshold is, for example, 80 percent. For example, in the inspection process, it is assumed that discrimination using the learning model M1 for the type of defect "scratch" is performed 100 times. It is assumed that the second number of times for "scratch" has reached 80 times by executing the process of step S302. In this case, the accuracy of the discrimination result by the learning model M1 is equal to or higher than the second evaluation threshold. If the maintenance condition is satisfied (step S303; YES), the list L1 is not updated, and the process of step S305 is executed.

[0058] On the other hand, if the maintenance condition is not satisfied (step S303; NO), the processor 150 executes the process of step S304. In step S304, the processor 150 deletes the corresponding defect type from the list L1.

[0059] In step S305, processor 150 determines whether to continue the process. For example, processor 150 determines to continue the process when unevaluated test results still remain in memory 110. If the process is to be continued (step S305; YES), processor 150 executes the process of step S301 again. If the process is not to be continued (step S305; NO), processor 150 ends the process shown in FIG. 5.

[0060] As described above, the inspection device 100 deletes defect types from the list L1 based on the results of evaluating the discrimination results using the learning model M1. In response to changes in the discrimination accuracy of the learning model M1, the list L1 indicating whether or not the discrimination results using the learning model M1 can be adopted as the inspection result is dynamically updated. This makes it possible to suppress the occurrence of discrimination errors using the learning model M1. Note that whether or not the maintenance condition is satisfied may be determined based on whether or not a third number, which indicates the number of cases in which the discrimination results using the learning model M1 and the results of visual inspection do not match, is equal to or less than a predetermined threshold.

[0061] B. Other embodiments: B1. Alternative embodiment 1: In the embodiment, the inspection device 100 determines that the target workpiece WK does not have a defect when the defective product score satisfies the first condition that the defective product score is less than the first threshold (see step S104 in FIG. 3). Alternatively, in addition to determining that the target workpiece WK does not have a defect when the defective product score satisfies the first condition, the inspection device 100 may determine that the target workpiece WK has a defect when the defective product score satisfies the second condition. The second condition is that the defective product score is equal to or greater than a predetermined second threshold. For example, the first threshold is set to "15%". The second threshold is set to "90%". The second threshold is a value different from the first threshold. The second threshold is a value greater than the first threshold. Moreover, the inspection device 100 determines that the quality of the target workpiece WK is unknown when the defective product score is equal to or greater than the first threshold and less than the second threshold.

[0062] The inspection device 100 outputs the discrimination result by the learning model M1 as the confirmed inspection result if the first condition or the second condition is satisfied, provided that the type of defect in question is registered in the list L1.

[0063] In the first alternative embodiment, when the first condition or the second condition is satisfied and the type of defect is registered in the list L1, visual inspection is not performed, so that the man-hours for visual inspection by an operator can be reduced.

[0064] B2. Alternative embodiment 2: Alternatively, the inspection device 100 may use the pass score to determine that the target workpiece WK has no defects. Specifically, the inspection device 100 may determine that the target workpiece WK has no defects when the pass score is equal to or greater than a third threshold value determined in advance. For example, the third threshold value is set to "90%". The inspection device 100 may output an inspection result indicating that the target workpiece WK has no defects as a finalized inspection result when the pass score is equal to or greater than the third threshold value, on the condition that the type of defect in question is registered in the list L1. This can reduce the man-hours required for visual inspection by an operator.

[0065] B3. Alternative embodiment 3: Alternatively, the inspection device 100 may determine that the target workpiece WK has no defects when the pass score is equal to or greater than a predetermined third threshold and the fail score is less than a predetermined fourth threshold. For example, the third threshold is set to "90%". The fourth threshold is set to "10%". The fourth threshold is a value different from the third threshold. The third threshold is a value greater than the fourth threshold. The inspection device 100 may output an inspection result indicating that the target workpiece WK has no defects as a final inspection result when the pass score is equal to or greater than the third threshold and the fail score is less than the fourth threshold, on the condition that the type of defect in question is registered in the list L1. This reduces the man-hours required for visual inspection by an operator.

[0066] B4. Alternative embodiment 4: In the embodiment, an example has been described in which the inspection process, the first update process, and the second update process are executed sequentially as shown in FIG. 2, but the inspection process, the first update process, and the second update process do not necessarily have to be executed sequentially.

[0067] B5. Alternative embodiment 5: The inspection device 100 may not include the evaluation unit 250 and the update unit 260. For example, a computer different from the inspection device 100 may execute the process of evaluating the discrimination result by the learning model M1 and the process of updating the list L1.

[0068] B7. Alternative Embodiment 7: In the embodiment, an example has been described in which the pre-processing unit 210 selects an image to be processed by the learning model M1 by comparing an input image of the workpiece WK with a reference image. However, any method may be used for the pre-processing unit 210 to select an image to be processed by the learning model M1. For example, the pre-processing unit 210 may select an image to be processed by the learning model M1 using a machine learning model different from the learning model M1.

[0069] Furthermore, instead of the pre-processing unit 210 discriminating the type of defect, the discriminating unit 220 may discriminate the type of defect using, for example, a machine learning model different from the learning model M1.

[0070] In the embodiment, the inspection device 100 outputs a definite inspection result that the workpiece WK included in the image that was not selected as a defect candidate does not have a defect. However, the image that is determined to have no defect by the pre-processing unit 210 may also be subject to processing by the learning model M1. According to this embodiment, it is possible to suppress the occurrence of erroneous determination by the pre-processing unit 210.

[0071] Alternatively, the inspection device 100 may not include the pre-processing unit 210. In this case, the discrimination unit 220 discriminates the presence or absence of defects for all images using the learning model M1. The discrimination unit 220 also discriminates the type of defect using a machine learning model different from the learning model M1. According to this embodiment, it is possible to suppress the occurrence of erroneous discrimination by the pre-processing unit 210.

[0072] Furthermore, the means for realizing the functions of the inspection device 100 is not limited to software, and may be realized in part or in whole by dedicated hardware. For example, the dedicated hardware may be a circuit such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC).

[0073] C. Other forms: The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in each aspect described in the Summary of the Invention column can be appropriately replaced or combined to solve some or all of the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted.

[0074] (1) According to a first aspect of the present disclosure, there is provided an inspection device comprising: a preprocessing unit that uses an input image of an inspection object to determine the type of defect of the inspection object, a discrimination unit that uses a machine learning model to determine the presence or absence of the defect of the inspection object based on the input image and outputs a discrimination result including a reliability score representing a reliability of the discrimination result, an inspection processing unit that notifies an operator of the necessity of performing a visual inspection and receives the result of the visual inspection, an output unit that outputs the inspection result, and a storage unit that stores a list in which information representing the types of the defect for which the discrimination result by the machine learning model can be adopted as the inspection result is registered, and (i) when the reliability score indicates that the visual inspection is not required, and if the type of defect in the object to be inspected is registered in the list, the inspection processing unit does not notify that the visual inspection is necessary, and the output unit outputs the discrimination result as the inspection result; and if (ii) the reliability score indicates that the visual inspection is necessary, or (iii) the reliability score indicates that the visual inspection is not necessary and the type of defect in the object to be inspected is not registered in the list, the inspection processing unit notifies that the visual inspection is necessary, accepts the result of the visual inspection, and the output unit outputs the result of the visual inspection as the inspection result. According to the above embodiment, if it is determined that visual inspection is not required based on the reliability score indicating the reliability of the discrimination result using the machine learning model, and the type of defect in the inspection target is registered in the list, visual inspection is not performed regardless of the type of defect. Therefore, compared to an embodiment that does not consider the reliability of the discrimination result using the machine learning model, it is possible to reduce the man-hours of visual inspection by an operator.

[0075] (2) In the above embodiment, the system may further include an evaluation unit that evaluates the discrimination result, and an update unit that adds the defect type related to the discrimination result to the list when the result of the evaluation by the evaluation unit of the discrimination result for the defect type not registered in the list indicates that the discrimination result can be adopted as the inspection result. According to the above aspect, the list is dynamically updated based on the result of evaluating the discrimination result using the machine learning model, so that the occurrence of errors in discrimination using the machine learning model can be suppressed.

[0076] (3) In the above embodiment, when the evaluation unit evaluates the discrimination result for the defect type registered in the list, the evaluation unit indicates that the discrimination result cannot be adopted as the inspection result, the update unit may delete the defect type related to the discrimination result from the list. According to the above aspect, the list is dynamically updated based on the result of evaluating the discrimination result using the machine learning model, so that the occurrence of errors in discrimination using the machine learning model can be suppressed.

[0077] (4) In the above embodiment, the reliability score includes a first value representing a reliability that the inspection object has the defect, and when a first condition including the first value being less than a first threshold is satisfied and the type of the defect possessed by the inspection object is registered in the list, or when a second condition including the first value being equal to or greater than a second threshold different from the first threshold is satisfied and the type of the defect possessed by the inspection object is registered in the list, the inspection processing unit does not notify that the visual inspection needs to be performed, and the output unit may output the discrimination result as the confirmed inspection result. According to the above aspect, when the first condition or the second condition is satisfied and the type of defect is registered in the list, visual inspection is not performed, so that the man-hours for visual inspection by an operator can be reduced.

[0078] (5) In the above embodiment, the pre-processing unit may select an image including the inspection object that is a defect candidate as the input image by comparing each of a plurality of images of the inspection object with a reference image, and use the input image to determine the type of defect possessed by the inspection object. The discrimination unit may not determine the presence or absence of a defect based on an image not selected by the pre-processing unit, and the output unit may output the inspection result in which it is determined that the inspection object included in the image not selected by the pre-processing unit does not have a defect. According to the above aspect, for inspection objects contained in images not selected by the pre-processing unit, discrimination using a machine learning model and visual inspection are not performed, thereby reducing the amount of work required for inspection.

[0079] (6) According to a second aspect of the present disclosure, there is provided an inspection method. This inspection method includes the steps of: determining the type of defect of an object to be inspected using an input image of the object to be inspected; determining whether or not the object to be inspected has a defect based on the input image using a machine learning model, and outputting a determination result including a reliability score indicating the reliability of the determination result; reading out a list from a storage unit that stores a list in which information indicating the types of defects for which the determination result by the machine learning model can be adopted as an inspection result; (i) outputting the determination result as the inspection result when the reliability score indicates that a visual inspection by an operator is not required and the type of the defect of the object to be inspected is registered in the list; (ii) notifying that the visual inspection is required and accepting a result of the visual inspection when the reliability score indicates that the visual inspection is not required or when the reliability score indicates that the visual inspection is not required and the type of the defect of the object to be inspected is not registered in the list; and outputting the result of the visual inspection as the inspection result. According to the above embodiment, if it is determined that visual inspection is not required based on the reliability score indicating the reliability of the discrimination result using the machine learning model, and the type of defect in the inspection target is registered in the list, visual inspection is not performed regardless of the type of defect. Therefore, compared to an embodiment that does not consider the reliability of the discrimination result using the machine learning model, it is possible to reduce the man-hours of visual inspection by an operator.

[0080] (7) According to a third aspect of the present disclosure, there is provided a program, which includes the following functions in a computer functioning as an inspection device: a function for discriminating the type of defect of an object to be inspected by using an input image of the object to be inspected, a function for discriminating the presence or absence of the defect of the object to be inspected based on the input image by using a machine learning model, and outputting a discrimination result including a reliability score indicating the reliability of the discrimination result, a function for reading out a list from a storage unit storing a list in which information indicating the types of defects for which the discrimination result by the machine learning model can be adopted as an inspection result is registered, and a function for (i) reading out information indicating that the reliability score indicates that visual inspection by an operator is not required and the reliability score indicates that the type of defect of the object to be inspected is not required. The system realizes the following functions: a function of not notifying that the visual inspection is necessary if the type of defect in the object is registered in the list, a function of outputting the discrimination result as the inspection result; a function of notifying that the visual inspection is necessary and accepting the result of the visual inspection if (ii) the reliability score indicates that the visual inspection is necessary, or (iii) the reliability score indicates that the visual inspection is not necessary and the type of defect in the object to be inspected is not registered in the list, and a function of outputting the result of the visual inspection as the inspection result. According to the above embodiment, if it is determined that visual inspection is not required based on the reliability score indicating the reliability of the discrimination result using the machine learning model, and the type of defect in the inspection target is registered in the list, visual inspection is not performed regardless of the type of defect. Therefore, compared to an embodiment that does not consider the reliability of the discrimination result using the machine learning model, it is possible to reduce the man-hours of visual inspection by an operator.

[0081] The present disclosure may be realized in various forms other than those described above. For example, the present disclosure may be realized in the form of a non-transitory storage medium having a computer program recorded thereon. [Explanation of symbols]

[0082] 10... inspection system, 50... camera, 100... inspection device, 110... memory, 120... interface unit, 130... input device, 140... display device, 150... processor, 210... preprocessing unit, 220... discrimination unit, 230... inspection processing unit, 240... output unit, 250... evaluation unit, 260... update unit, L1... list, M1... learning model, WK... work

Claims

1. An inspection device comprising: a pre-processing unit that uses an input image of an object to be inspected to determine a type of defect in the object to be inspected; a discrimination unit that discriminates the presence or absence of the defect in the inspection object based on the input image using a machine learning model and outputs a discrimination result including a reliability score that indicates the reliability of the discrimination result; an inspection processing unit that notifies an operator of whether or not a visual inspection is required and receives a result of the visual inspection; an output unit that outputs the inspection result; a storage unit that stores a list in which information indicating the types of the defects for which the discrimination result by the machine learning model can be adopted as the inspection result is registered; Equipped with (i) if the confidence score indicates that the visual inspection is not required and the type of defect of the inspection object is registered in the list, The inspection processing unit does not notify that the visual inspection needs to be performed, The output unit outputs the discrimination result as the inspection result, (ii) if the confidence score indicates that the visual inspection should be performed; or (iii) if the confidence score indicates that the visual inspection is not required and the type of defect of the inspection object is not registered in the list, The inspection processing unit notifies that the visual inspection needs to be performed and receives a result of the visual inspection; The output unit outputs the result of the visual inspection as the inspection result. Inspection equipment.

2. 2. The inspection device according to claim 1, an evaluation unit for evaluating the discrimination result; an update unit that adds to the list the defect type related to the discrimination result when a result of evaluation by the evaluation unit indicates that the discrimination result regarding the defect type not registered in the list can be adopted as the inspection result; and Further comprising: Inspection equipment.

3. 3. The inspection device according to claim 2, When a result of evaluation by the evaluation unit regarding the discrimination result for the defect type registered in the list indicates that the discrimination result cannot be adopted as the inspection result, the update unit deletes the defect type related to the discrimination result from the list. Inspection equipment.

4. 4. The inspection device according to claim 3, the confidence score includes a first value representing a confidence that the inspection object has the defect; If a first condition including the first value being less than a first threshold is satisfied and the type of the defect in the inspection object is registered in the list, or If a second condition is satisfied, the second condition including the first value being equal to or greater than a second threshold value different from the first threshold value, and the type of the defect in the inspection object is registered in the list, The inspection processing unit does not notify that the visual inspection needs to be performed, The output unit outputs the discrimination result as the confirmed inspection result. Inspection equipment.

5. The inspection device according to claim 4, The pre-treatment unit includes: selecting an image including the inspection object that is a defect candidate as the input image by comparing each of a plurality of images obtained by capturing the inspection object with a reference image; Using the input image, discriminating a type of the defect in the inspection object; The discrimination unit is The presence or absence of the defect is not determined based on the image not selected by the pre-processing unit, The output unit is outputting the inspection result that the inspection object included in the image not selected by the pre-processing unit does not have a defect; Inspection equipment.

6. 1. A testing method comprising: determining a type of defect in an object to be inspected by using an input image of the object to be inspected; determining whether the inspection object has the defect or not based on the input image using a machine learning model, and outputting a determination result including a reliability score indicating the reliability of the determination result; reading out a list from a storage unit that stores a list in which information representing the types of defects for which the discrimination result by the machine learning model can be adopted as an inspection result is registered; (i) if the reliability score indicates that visual inspection by an operator is not required and the type of defect of the inspection object is registered in the list, outputting the discrimination result as the inspection result; (ii) if the confidence score indicates that the visual inspection should be performed; or (iii) if the confidence score indicates that the visual inspection is not required and the type of defect of the inspection object is not registered in the list, notifying the user that a visual inspection needs to be performed and accepting results of the visual inspection; outputting the result of the visual inspection as the inspection result; The inspection method includes:

7. A program, The computer that functions as the inspection device A function of determining a type of defect in an object to be inspected by using an input image of the object to be inspected; a function of determining whether or not the inspection object has the defect based on the input image using a machine learning model, and outputting a determination result including a reliability score indicating the reliability of the determination result; a function of reading out a list from a storage unit that stores a list in which information representing the types of defects for which the discrimination result by the machine learning model can be adopted as an inspection result is registered; and (i) if the reliability score indicates that visual inspection by an operator is not required and the type of defect of the inspection object is registered in the list, A function of not notifying the user that the visual inspection needs to be performed; a function of outputting the discrimination result as the inspection result; (ii) if the confidence score indicates that the visual inspection should be performed; or (iii) if the confidence score indicates that the visual inspection is not required and the type of defect of the inspection object is not registered in the list, a function of notifying the user that the visual inspection needs to be performed and accepting the results of the visual inspection; a function of outputting the result of the visual inspection as an inspection result; A program to achieve this.

Citation Information

Patent Citations

  • Visual inspection device, visual inspection method, and program

    JP2015137919A