Appearance inspection system and appearance inspection method
The visual inspection system addresses the issue of undetermined model output changes by using a trained model and processing device history to identify and attribute deviations to processing device changes, thereby reducing false positives.
Patent Information
- Application Number
- JP2024134382
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2026-02-24
AI Technical Summary
Existing visual inspection systems using deep learning fail to determine the cause of changes in model output, leading to false positives due to drift.
A visual inspection system that includes a trained model, deviation calculation unit, and cause determination unit to analyze the deviation between training and inspection image features, and utilizes a processing device history management unit to identify the cause of deviations exceeding a standard, specifically attributing them to changes in the processing device.
Enables determination of the cause of changes in model output, reducing false positives by identifying whether deviations are due to processing device changes.
Smart Images

Figure 2026031075000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to an appearance inspection system and an appearance inspection method. [Background technology]
[0002] In visual inspections using deep learning, drift of an inspection object can sometimes result in false positives. There are techniques for detecting drift and relearning. Patent Document 1 discloses a management device for managing updates to a trained model in a classification device that receives input state data indicating the state of an object and outputs a class into which the state of the object is classified and a confidence level for the classified class according to a trained model that classifies the state of the object into multiple classes. The management device includes: a derivation unit that derives a distribution of confidence levels for classification results of a group of state data in a first time period and a second time period for each class; and a determination unit that determines whether to update the trained model based on a first comparison result based on a first index between a group of state data in the first time period whose confidence level for the classification result is equal to or greater than a threshold and a group of state data in the second time period whose confidence level for the classification result is equal to or greater than the threshold; and a second comparison result based on a second index different from the first index between a group of state data in the first time period whose confidence level for the classification result is less than the threshold and a group of state data in the second time period whose confidence level for the classification result is less than the threshold. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Publication No. 2023-073140 Summary of the Invention [Problem to be solved by the invention]
[0004] The invention described in Patent Document 1 cannot determine the cause of a change in the output of a trained model. [Means for solving the problem]
[0005] The visual inspection system according to a first aspect of the present invention comprises a trained model created using training images, which are appearance images of workpieces without visual defects, and which outputs training image features corresponding to the training images and outputs inspection image features corresponding to inspection images, which are appearance images of the workpieces to be inspected; a deviation calculation unit that calculates a deviation indicating the degree of deviation between the training image features and the inspection image features; a processing device history management unit that manages the history of the processing device that processes the workpieces to be inspected; and a cause determination unit that determines, based on the history of the processing device, whether the cause of the deviation exceeding a predetermined standard is due to a change related to the processing device. An appearance inspection method according to a second aspect of the present invention is an appearance inspection method executed by a computing device having a trained model that is created using training images, which are appearance images of workpieces that have no visual defects, and that outputs features corresponding to input images, and includes a feature calculation step that outputs training image features corresponding to the training images and output inspection image features corresponding to inspection images, which are appearance images of the workpieces to be inspected, a deviation calculation step that calculates a deviation indicating the degree of deviation between the training image features and the inspection image features, a processing device history management step that manages the history of the processing device that processes the workpieces to be inspected, and a cause determination step that determines, based on the history of the processing device, whether the cause of the deviation exceeding a predetermined standard is due to a change related to the processing device. [Effects of the Invention]
[0006] According to the present invention, it is possible to determine the cause of a change in the output of a trained model. [Brief explanation of the drawings]
[0007] [Figure 1] Functional configuration diagram of a visual inspection system according to a first embodiment [Figure 2] Overview of the piston being inspected [Figure 3] FIG. 1 is a diagram showing a process flow in the first embodiment; [Figure 4] Visual inspection system hardware configuration diagram [Figure 5] Functional configuration diagram of a visual inspection system according to a second embodiment [Figure 6] 10 is a flowchart showing the operation of the cause determination unit in the second embodiment. [Figure 7] Functional configuration diagram of a visual inspection system according to a third embodiment [Figure 8] 10 is a flowchart showing the process of the cause determination unit in the third embodiment. [Figure 9] Functional configuration diagram of a visual inspection system according to a fourth embodiment [Figure 10] A diagram showing the area where the processing conditions for the crown surface are the same [Figure 11] Functional configuration diagram of a visual inspection system according to a fifth embodiment [Figure 12] 10 is a flowchart showing the process of the deviation calculation unit in the fifth embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0008] -First embodiment- A first embodiment of the visual inspection system will be described below with reference to FIGS.
[0009] FIG. 1 is a functional configuration diagram of an appearance inspection system 10. In this embodiment, an engine piston is shown as an example of an inspection object, but the inspection object is not limited thereto. The appearance inspection system 10 includes a trained model 11, a deviation calculation unit 12, a cause determination unit 13, and a processing device history management unit 14. The trained model 11 reads a training image 21 and outputs a training image feature 23. The trained model 11 reads an inspection image 22 and outputs an inspection image feature 24. The deviation calculation unit 12 calculates a deviation 25 indicating the degree of deviation between the training image feature 23 and the inspection image feature 24. The cause determination unit 13 determines whether a large deviation 25 is caused by a change in processing.
[0010] FIG. 2 is a schematic diagram of a piston 201, which is the object to be inspected. The piston 201 is used, for example, in an automobile engine. The piston 201 is roughly cylindrical and is a cast material that has been subjected to multiple processes. The circular end portion at the top of the piston 201 in the figure is called the crown surface 202. The crown surface 202 includes a casting surface portion 203, which is the bare surface of the casting, a flat portion 204 that has been flattened by processing the casting, a bored portion 205 that has been bored by processing the casting, and an engraved portion 206 where letters or the like are engraved on the flat portion 204.
[0011] Fig. 3 is a diagram showing the processing progress. Fig. 3(a) is a diagram showing an example of a learning image 21 and an inspection image 22. The learning image 21 and the inspection image 22 are images obtained by photographing the piston 201 shown in Fig. 2 from directly above. Hereinafter, the learning image 21 and the inspection image 22 are also collectively referred to as appearance image 20. Returning to Fig. 1, the explanation will continue.
[0012] The input of the trained model 11 is an appearance image 20, and the output is a feature. As shown in FIG. 3(a), the training image 21 and the inspection image 22 are the same type of image. The image used to train the trained model 11 is called the training image 21, and the image to be inspected or evaluated using the trained model 11 is called the inspection image 22. However, the training image 21 is an image of a workpiece that has no defects in appearance, and the presence or absence of defects in the inspection image 22 is unknown. The features are the training image feature 23 and the inspection image feature 24. The output of the trained model 11 corresponding to the training image 21 is the training image feature 23. The output of the trained model 11 corresponding to the inspection image 22 is the inspection image feature 24. The trained model 11 is a machine learning model trained using the training image 21, for example, a deep neural network such as a U-net.
[0013] The training images 21 are preferably all images used in training the trained model 11, and the test images 22 are preferably multiple samples, for example, 100 or more samples. In other words, it is preferable to calculate multiple training image features 23 and multiple test image features 24. Using these multiple features makes it possible to grasp the overall trend of the set of training images 21 and the set of test images 22.
[0014] The training image feature 23 and the test image feature 24 are each a collection of values indicating the features of each region obtained by dividing the training image 21 and the test image 22. The division of the regions is the same for the training image 21 and the test image 22. For example, if the resolution of the training image 21 and the test image 22 is 1980x1080, the feature is calculated for each 10x10 region, and the training image feature 23 and the test image feature 24 contain 198x108 values. Figure 3(b) shows an example in which the training image 21 and the test image 22 are divided into 9x9 regions.
[0015] The deviation calculation unit 12 calculates a deviation 25 that indicates the degree of deviation between the training image feature 23 and the inspection image feature 24. However, the deviation 25 also includes identification data that indicates the workpiece shown in the inspection image 22. This identification data indicates the type of the workpiece, so to speak, and is not a product unique number or serial number that distinguishes each workpiece.
[0016] The deviation calculation unit 12 compares the training image feature amounts 23 with the test image feature amounts 24 to calculate the deviation amount 25. For example, the deviation calculation unit 12 calculates the average value for each region of the plurality of training image feature amounts 23 and the plurality of test image feature amounts 24, and calculates the ratio of the average values as the deviation amount 25. That is, the deviation amount 25 in this case is the ratio of the average values of the feature amounts for each region, and the cause determination unit 13 determines that an abnormality exists if there is even one region where this ratio is greater than a predetermined threshold. In the example shown in FIG. 3(c), one region W shown by hatching is greater than the threshold and is determined to have an abnormality.
[0017] The cause determination unit 13 outputs an evaluation of the inspection image 22 based on the deviation 25 and the output of the machining device history management unit 14. The machining device history management unit 14 manages the machining device history 902 of the machining device 900 that machines the piston 201. The machining device history 902 in this embodiment includes whether or not the machining process for each workpiece has been changed. A change in the machining process includes a change in the machining shape, a change in the tool used for machining, etc.
[0018] The cause determination unit 13 determines that an abnormality exists when the deviation 25 is equal to or greater than a predetermined threshold, and determines that no abnormality exists when the deviation 25 is less than the predetermined threshold. If the deviation 25 is equal to or greater than the predetermined threshold, the cause determination unit 13 further performs the following determination. If it is determined from the output of the processing device history management unit 14 that there is a change in processing, the cause determination unit 13 determines that the abnormality was detected due to the change in processing. If it is determined from the output of the processing device history management unit 14 that there is no change in processing, the cause determination unit 13 determines that there is no change in processing and that an abnormality was detected. The processing device history management unit 14 may output a combination of the identification data of the workpiece and whether or not there has been a change to the cause determination unit 13, or may receive the identification data of the workpiece from the cause determination unit 13 and output whether or not there has been a change in the processing process for that workpiece to the cause determination unit 13.
[0019] FIG. 4 is a hardware configuration diagram of the visual inspection system 10. The visual inspection system 10 includes a CPU 41, which is a central processing unit, a ROM 42, which is a read-only storage device, a RAM 43, which is a read / write storage device, and an input / output device 44, which is a user interface. The CPU 41 loads a program stored in the ROM 42 into the RAM 43 and executes it to perform the various calculations described above. The visual inspection system 10 may be realized by a field programmable gate array (FPGA), which is a rewritable logic circuit, or an application specific integrated circuit (ASIC), which is an application specific integrated circuit, instead of the combination of the CPU 41, ROM 42, and RAM 43. Furthermore, the visual inspection system 10 may be realized by a different combination of configurations, for example, a combination of the CPU 41, ROM 42, RAM 43, and an FPGA, instead of the combination of the CPU 41, ROM 42, and RAM 43.
[0020] The appearance inspection system 10 may be realized by one hardware device as shown in Fig. 4, or may be realized by two or more hardware devices. When the appearance inspection system 10 is realized by two or more hardware devices, a communication device 45 is provided to enable the hardware devices to communicate with each other. The communication device 45 is, for example, a network interface card. The input / output device 44 is, for example, a display that presents information to the user, a mouse or keyboard that accepts input from the user, etc.
[0021] According to the first embodiment described above, the following advantageous effects can be obtained. (1) The visual inspection system 10 includes a trained model 11 that is created using training images 21, which are appearance images 20 of a workpiece having no visual defects, and that outputs training image features 23 corresponding to the training images 21 and inspection image features 24 corresponding to inspection images 22, which are appearance images 20 of the workpiece to be inspected, a deviation calculation unit 12 that calculates a deviation 25 indicating the degree of deviation between the training image features 23 and the inspection image features 24, a processing device history management unit 14 that manages the history of a processing device 900 that processes the workpiece to be inspected, and a cause determination unit 13 that determines, based on the history of the processing device 900, whether the deviation 25 has exceeded a predetermined standard because of a change to the processing device 900. Therefore, the visual inspection system 10 can determine the cause of the deviation between the inspection image 22 and the learning image 21.
[0022] --Second embodiment-- A second embodiment of the visual inspection system will be described with reference to Figures 5 and 6. In the following description, the same components as those in the first embodiment are denoted by the same reference numerals, and differences will be mainly described. Points that are not particularly described are the same as those in the first embodiment. This embodiment differs from the first embodiment mainly in that the date and time of changes related to processing are taken into consideration.
[0023] 5 is a functional configuration diagram of an appearance inspection system 10A in the second embodiment. The differences from the first embodiment and the like are that the cause determination unit 13 is replaced with a cause determination unit 13A, the processing device history 902 is replaced with a processing device history 902A, and the processing device history management unit 14 is replaced with a processing device history management unit 14A. The processing of the trained model 11 and the deviation calculation unit 12 is the same as in the first embodiment.
[0024] The processing device history 902A includes data indicating the date and time of a change in the processing process for each workpiece. The deviation degree 25 includes not only identification data indicating the workpiece, but also data on the date and time when the workpiece related to the inspection image 22 was processed. Data on the date and time when the inspection image 22 was processed may be included in each inspection image 22, or the date and time when the processing was performed may be managed independently of the inspection image 22, and the data on that date and time may be added to the deviation degree 25.
[0025] In addition to the operations of the first embodiment, when there is an area where the deviation 25 is equal to or greater than a predetermined threshold and when it is determined that there has been a change in the workpiece, the cause determination unit 13A determines whether the change occurred before the workpiece was processed. If the cause determination unit 13A determines that the change occurred before the workpiece was processed, it determines that the abnormality was caused by a change in the processing process, and if it determines that the change occurred after the workpiece was processed, it determines that the abnormality was caused by some other cause, or at least was not caused by a change in the processing process.
[0026] 6 is a flowchart showing the operation of the cause determination unit 13A in the second embodiment. First, in step S301, the cause determination unit 13A determines whether the ratio of the feature amounts in all regions is less than the threshold. If the cause determination unit 13A determines that the ratio of the feature amounts in all regions is less than the threshold, the process proceeds to step S302. If the cause determination unit 13A determines that there is at least one region where the ratio of the feature amounts is equal to or greater than the threshold, the process proceeds to step S303. In step S302, the cause determination unit 13A notifies the user using the input / output device 44 that no abnormality is found, and the process shown in FIG. 6 ends.
[0027] In step S303, the cause determination unit 13A determines whether a change in the processing process is recorded in the processing device history 902A, using the identification data of the processed product included in the deviation degree 25. If the cause determination unit 13A determines that a change in the processing process is recorded, the process proceeds to step S304, and if the cause determination unit 13A determines that a change in the processing process is not recorded, the process proceeds to step S306. In step S304, the cause determination unit 13A determines whether the date and time of the change recorded in the processing device history 902A is earlier than the date and time included in the deviation degree 25. If the cause determination unit 13A determines that the change in the processing process precedes the processing, the process proceeds to step S305, and if the cause determination unit 13A determines that the change in the processing process follows the processing, the process proceeds to step S306.
[0028] In step S305, the cause determination unit 13A notifies the user using the input / output device 44 that an abnormality has been detected and that the cause is a change in the machining process, and then ends the processing shown in Fig. 6. In step S306, the cause determination unit 13A notifies the user using the input / output device 44 that an abnormality has been detected and that the cause is something other than a change in the machining process, and then ends the processing shown in Fig. 6.
[0029] According to the second embodiment described above, the following advantageous effects can be obtained. (2) If the date and time when the workpiece captured in the inspection image 22, in which the deviation 25 exceeds the predetermined standard, was processed is after the date and time when a change occurred to the processing device 900, the cause determination unit 13A determines that the reason why the deviation 25 exceeds the predetermined standard is due to the change to the processing device 900. Therefore, the cause determination unit 13A can determine the cause of a large deviation 25 for each period.
[0030] (Modification 1 of the second embodiment) In the second embodiment described above, the cause determination unit 13A determines the cause of the deviation 25 exceeding the predetermined standard only once. However, the cause determination unit 13A may determine the cause multiple times. For example, the cause determination unit 13A may determine the cause each time a predetermined time has elapsed since the date and time of a change in the machining process included in the machining device history 902A of the target workpiece, or may determine the cause each time a predetermined time has elapsed since the date and time the workpiece was machined.
[0031] (Modification 2 of the second embodiment) In the second embodiment described above, if the date and time when the workpiece captured in the inspection image 22, in which the deviation 25 exceeds the predetermined standard, was processed is after the date and time when a change to the processing apparatus 900 occurred, the cause determination unit 13A determines that the deviation 25 exceeds the predetermined standard due to the change to the processing apparatus 900. However, instead of comparing the dates and times, the cause determination unit 13A may determine whether the date and time is after the date and time when the change occurred and within a predetermined period of time. This predetermined period may be, for example, one day or one month.
[0032] -Third embodiment- A third embodiment of the visual inspection system will be described with reference to FIGS. 7 and 8. In the following description, the same components as those in the second embodiment are designated by the same reference numerals, and differences will be mainly described. Points that are not particularly described are the same as those in the second embodiment. This embodiment differs from the second embodiment mainly in that re-learning of the trained model 11 is performed when the cause of the abnormality is not a change in the machining process.
[0033] FIG. 7 is a functional configuration diagram of an appearance inspection system 10B in the third embodiment. The difference from the second embodiment is that the cause determination unit 13A is replaced with a cause determination unit 13B, and a learning execution unit 15 is added. The processing of the trained model 11, deviation calculation unit 12, and processing device history management unit 14A is the same as in the second embodiment. If the cause of the abnormality is not a change in the processing process, the cause determination unit 13B causes the learning execution unit 15 to re-train the trained model 11. The learning execution unit 15 may use not only the training images 21 used in previous training, but also inspection images 22 captured after the training images 21 were captured, for re-training the trained model 11.
[0034] 8 is a flowchart showing the processing of the cause determination unit 13B in the third embodiment. The difference from the flowchart shown in the second embodiment is that step S307 is added after step S306, and step S308 is added after step S305. In step S307, the cause determination unit 13B causes the learning execution unit 15 to re-learn the trained model 11, thereby ending the processing shown in FIG. 8. In step S308, the cause determination unit 13B notifies the user, using the input / output device 44, that threshold adjustment is required, and ends the processing shown in FIG. 8.
[0035] According to the above-described third embodiment, the following advantageous effects can be obtained. (3) The appearance inspection system 10B includes a learning execution unit 15 that updates the parameters of the trained model 11. If the date and time when the workpiece captured in the inspection image 22, in which the deviation 25 exceeds a predetermined standard, was processed is before the date and time when a change occurred to the processing device 900 (S304: NO in FIG. 8), the cause determination unit 13B causes the learning execution unit 15 to update the parameters of the trained model 11. Therefore, re-learning is performed only when necessary, thereby appropriately suppressing the cost of re-learning.
[0036] --Fourth embodiment-- A fourth embodiment of the visual inspection system will be described with reference to Figures 9 and 10. In the following description, the same components as those in the first embodiment are denoted by the same reference numerals, and differences will be mainly described. Points that are not particularly described are the same as those in the first embodiment. This embodiment differs from the first embodiment mainly in that the deviation 25 is calculated for each region with different processing conditions.
[0037] Fig. 9 is a functional configuration diagram of an appearance inspection system 10C according to the fourth embodiment. The difference from the first embodiment is that the deviation calculation unit 12 is replaced with a deviation calculation unit 12C. Fig. 10 will be explained first, and then the operation of the deviation calculation unit 12C will be explained.
[0038] FIG. 10 is a diagram showing regions (hereinafter also referred to as "blocks") on the crown surface 202 that are subjected to the same machining conditions. In FIG. 10, blocks subjected to the same machining conditions are indicated by the same hatching. There are four blocks in total in FIG. 10, and the cast surface portion block 601 is indicated by diagonal hatching, the flat portion block 602 by cross hatching, the bored portion block 603 by vertical hatching, and the engraved portion block 604 by horizontal hatching. The regions may be divided along the boundaries of each processed portion on the image, in addition to being divided into a grid pattern. In this embodiment, differences in "machining conditions" can also be rephrased as differences in the machining method, type of machining, machines used for machining, etc.
[0039] The deviation calculation unit 12C aggregates and compares the training image features 23 and the test image features 24 for each block shown in Fig. 10. That is, in the first three embodiments, the ratio was calculated for each grid area such as 198x108 or 9x9, but in this embodiment, the ratios are summed for each block, so in the example of Fig. 10, the ratio is calculated for each of four blocks. The processing of the cause determination unit 13C is the same as in the third embodiment, except that the total number of blocks is reduced.
[0040] According to the above-described fourth embodiment, the following advantageous effects can be obtained. (4) The deviation calculation unit 12C calculates the deviation 25 for each area where the processing conditions for the workpiece are different, so that the cause of the deviation can be determined for each processing condition.
[0041] --Fifth embodiment-- A fifth embodiment of the visual inspection system will be described with reference to Figs. 11 and 12. In the following description, the same components as those in the fourth embodiment are denoted by the same reference numerals, and differences will be mainly described. Points that are not particularly described are the same as those in the fourth embodiment. This embodiment differs from the fourth embodiment mainly in that the histograms of feature amounts are compared to calculate the deviation 25.
[0042] 11 is a functional configuration diagram of an appearance inspection system 10D according to the fifth embodiment. The difference from the fourth embodiment is that the deviation calculation unit 12C is replaced with a deviation calculation unit 12D. The processing of the trained model 11 and the cause determination unit 13B is the same as in the fourth embodiment.
[0043] FIG. 12 is a flowchart showing the processing of deviation calculation unit 12D. In the description of this flowchart, "n" represents an integer. In step S321, deviation calculation unit 12D obtains all feature values of each block in training image 21 to create a first histogram H1. In the following step S322, deviation calculation unit 12D obtains all feature values of each block in test image 22 to create a second histogram H2. In the following step S323, deviation calculation unit 12D accumulates and tabulates first histogram H1 using a predetermined bin width. Specifically, variable H1_1 is the sum of the number of data items contained in bins 0 to 1 of first histogram H1, variable H1_2 is the sum of the number of data items contained in bins 0 to 2 of first histogram H1, and variable H1_3 is the sum of the number of data items contained in bins 0 to 3 of first histogram H1. This calculation is repeated up to the maximum bin value. H1_n is a cumulative value, so for example, H1_8 is a value greater than or equal to H_7.
[0044] In the following step S324, the deviation calculation unit 12D accumulates and tabulates the second histogram H2 over a predetermined bin width. This bin width is the same as in step S323, and the calculation method is also the same as in step S323, so details will be omitted. In the following step S325, the deviation calculation unit 12D calculates the absolute value of the difference between the accumulated values in steps S323 and S324. Specifically, D1 is calculated as the absolute value of the difference between H1_1 and H2_1, and D2 is calculated as the absolute value of the difference between H1_2 and H2_2. Similarly, calculations are made up to Dn.
[0045] In the following step S326, the deviation calculation unit 12D sets the maximum value of D1, D2, . . . , Dn as the cumulative maximum difference D. In the following step S327, the deviation calculation unit 12D calculates the test statistic K using the following equation 1.
[0046] K = D*{Na*Nb / (Na+Nb)}^0.5 (Equation 1)
[0047] In Equation 1, Na is the number of samples in the training images 21, and Nb is the number of samples in the test images 22. In Equation 1, the product of D and the square root of the value obtained by dividing the product of Na and Nb by the sum of Na and Nb is set to be the test statistic K. In the following step S328, the deviation calculation unit 12D refers to the test table for the Kolmogorov-Smirnov test and identifies the significance level α corresponding to the limit value equal to the test statistic K. In the following step S329, the deviation calculation unit 12D calculates the deviation 25 using Equation 2 shown below.
[0048] Dev=1-α (Equation 2)
[0049] In Equation 2, Dev represents the deviation 25. The above is the process of the deviation calculation unit 12D in the fifth embodiment.
[0050] According to the above-described fifth embodiment, the following advantageous effects can be obtained. (5) Deviation calculation unit 12D calculates deviation 25 by comparing histograms obtained based on training image feature amount 23 and test image feature amount 24. Therefore, deviation 25 can be calculated with high accuracy.
[0051] In each of the above-described embodiments and modifications, the functional block configurations are merely examples. Some functional configurations shown as separate functional blocks may be configured as an integrated unit, or a configuration shown in a single functional block diagram may be divided into two or more functions. Furthermore, some of the functions of each functional block may be provided by other functional blocks.
[0052] In the above-described embodiments and modifications, the program is stored in ROM 42. However, the program may be stored in a rewritable nonvolatile storage device (not shown). The visual inspection system may also include an input / output interface (not shown), and the program may be loaded from another device as needed via the input / output interface and a medium available to the visual inspection system. Here, the medium refers to, for example, a storage medium detachable from the input / output interface, or a communication medium, i.e., a wired, wireless, or optical network, or a carrier wave or digital signal propagating through the network. Some or all of the functions implemented by the program may be implemented by a hardware circuit or FPGA.
[0053] The above-described embodiments and modifications may be combined with each other. In particular, the learning execution unit 15 may be removed from the configurations of the fourth and fifth embodiments, and the cause determination unit 13 in the first and second embodiments may be provided. Although various embodiments and modifications have been described above, the present invention is not limited to these. Other aspects conceivable within the scope of the technical concept of the present invention are also included within the scope of the present invention. [Explanation of symbols]
[0054] 10, 10A, 10B, 10D: Visual inspection system 11: Trained model 12, 12B, 12C, 12D: Deviation degree calculation section 13, 13A, 13B, 13C: Cause determination section 14, 14A: Processing equipment history management section 15: Learning execution department 20:Exterior image 21: Training image 22: Inspection image 23: Learning image features 24: Inspection image features 25: Deviation
Claims
1. a trained model that is created using training images that are appearance images of workpieces without defects in appearance, and that outputs training image feature values corresponding to the training images, and outputs inspection image feature values corresponding to inspection images that are appearance images of the workpieces to be inspected; a deviation calculation unit that calculates a deviation indicating a degree of deviation between the training image feature amount and the test image feature amount; a processing device history management unit that manages the history of a processing device that processes the workpiece to be inspected; and a cause determination unit that determines, based on the history of the processing device, whether the cause of the deviation exceeding a predetermined standard is due to a change in the processing device.
2. The visual inspection system according to claim 1, The cause determination unit determines that the cause of the deviation exceeding the predetermined standard is due to a change related to the processing device if the date and time when the processed product captured in the inspection image in which the deviation exceeds the predetermined standard is after the date and time when a change related to the processing device occurred.
3. 3. The visual inspection system according to claim 2, After a predetermined time has elapsed since the date and time when the change in the processing device occurred, the visual inspection system again determines whether the cause of the deviation exceeding the predetermined standard is due to the change in the processing device.
4. The visual inspection system according to claim 1, The cause determination unit determines that the cause of the deviation exceeding the predetermined standard is due to a change related to the processing device if the date and time when the processed product captured in the inspection image in which the deviation exceeds the predetermined standard was processed is within a predetermined period after the date and time when the change related to the processing device occurred.
5. The visual inspection system according to claim 1, Further comprising a learning execution unit that updates parameters of the trained model, The cause determination unit causes the learning execution unit to update the parameters of the trained model if the date and time when the workpiece captured in the inspection image in which the deviation exceeds a predetermined standard was processed is before the date and time when a change related to the processing device occurred.
6. The visual inspection system according to claim 1, The deviation calculation unit calculates the deviation for each area of the workpiece where processing conditions are different.
7. The visual inspection system according to claim 1, The deviation calculation unit calculates the deviation by comparing a histogram obtained based on the training image feature amount and the inspection image feature amount.
8. A visual inspection method executed by a computing device having a trained model that is created using training images that are visual images of workpieces without visual defects and that outputs feature quantities corresponding to input images, a feature calculation step of outputting training image feature values corresponding to the training images and outputting inspection image feature values corresponding to inspection images which are appearance images of the workpiece to be inspected; a deviation calculation step of calculating a deviation indicating a degree of deviation between the training image feature amount and the test image feature amount; a processing device history management step for managing a history of a processing device that processes the workpiece to be inspected; and a cause determining step of determining, based on the history of the processing device, whether the cause of the deviation exceeding a predetermined standard is due to a change in the processing device.
9. 9. The visual inspection method according to claim 8, In the cause determination step, if the date and time when the workpiece photographed in the inspection image in which the deviation degree exceeds a predetermined standard was processed is after the date and time when a change occurred to the processing device, it is determined that the cause of the deviation degree exceeding the predetermined standard is due to a change to the processing device.
10. 9. The visual inspection method according to claim 8, In the cause determination step, after a predetermined time has elapsed from the date and time when the change regarding the processing device occurred, it is determined again whether the cause of the deviation degree exceeding the predetermined standard is due to the change regarding the processing device.
11. 9. The visual inspection method according to claim 8, In the cause determination step, if the date and time when the workpiece photographed in the inspection image in which the deviation degree exceeds a predetermined standard was processed is within a predetermined period after the date and time when a change to the processing device occurred, it is determined that the cause of the deviation degree exceeding the predetermined standard is due to a change to the processing device.
12. 9. The visual inspection method according to claim 8, In the cause determination step, if the date and time when the workpiece captured in the inspection image in which the deviation exceeds a predetermined standard was processed is before the date and time when a change occurred to the processing device, this is an appearance inspection method, and the parameters of the trained model are updated.
13. 9. The visual inspection method according to claim 8, In the deviation calculation step, the deviation is calculated for each area where processing conditions for the workpiece are different.
14. 9. The visual inspection method according to claim 8, In the deviation calculation step, the deviation is calculated by comparing a histogram obtained based on the training image feature amount and the inspection image feature amount.
Citation Information
Patent Citations
Management apparatus, inspection system, management method, and program
JP2023073140A