Abnormality determination system, abnormality determination method and program

The abnormality determination system enhances image inspection reliability by learning defect relationships and selecting feature axes for accurate defect detection, addressing data scarcity and reliability issues in existing systems.

JP2024140750APending Publication Date: 2024-10-10SEIKO FUTURE CREATION KK +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023052065
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

Existing image inspection systems face challenges in automating visual inspection due to the scarcity of diverse defect examples, difficulty in distinguishing between similar textures, and the lack of reliability in deep learning-based methods, leading to unreliable defect detection.

Method used

An abnormality determination system that learns the relationship between inspection images and defect determination using a trained model, selects axes in a feature space that better express formal intellectual features, and sets thresholds for reliable defect identification.

Benefits of technology

Improves the reliability of image inspection by enabling accurate and reliable detection of defects through controlled threshold settings and feature axis selection, even with limited training data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024140750000001_ABST
    Figure 2024140750000001_ABST
Patent Text Reader

Abstract

To increase the reliability of image inspection.SOLUTION: An abnormality determination system includes: a learned model acquisition unit which acquires a learned model being a model of expression learning; an inspection image acquisition unit which acquires multiple inspection images containing at least one of a non-defective product image being an image of a non-defective inspection object and a defective product image being an image of the inspection object and generated by continuously or gradually changing a formal intelligent feature amount being a quantifiable feature amount for the appearance of a defect; a potential feature amount calculation unit which calculates the coordinates of a potential feature amount extracted from the inspection image in a feature space by inputting the multiple inspection images into the learned model; and an axis selection unit which selects one or more first axes which are axes selected from among the axes of the feature space on the basis of the coordinates of the potential feature amount and an axis selection index being a prescribed index and in which the formal intelligent feature amount is further expressed.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an abnormality determination system, an abnormality determination method, and a program. [Background technology]

[0002] There is known an image inspection system that automates visual inspection of the appearance of an object to be inspected (such as a workpiece or a raw material) by image inspection (see, for example, Patent Documents 1 and 2). In this image inspection system, image data obtained by photographing the surface of the object to be inspected is analyzed to detect scratches, defects, and other imperfections present on the surface of the object to be inspected. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-205163 A [Patent Document 2] JP 2020-144626 A [Patent Document 3] JP 2018-205123 A Summary of the Invention [Problem to be solved by the invention]

[0004] In order to automate visual inspection using an image inspection system, a large number of examples of defects with a wide variety are required. However, in the industrial world, it is often difficult to obtain a large number of actual defective products or images of actual defective products. Therefore, it is difficult to develop methods to identify defects themselves, such as deep learning classification or segmentation. Therefore, there is a method to detect defects by learning from a group of good products instead of defective products. However, this method has difficulty in distinguishing between good and defective products when the good products contain textures similar to defects.

[0005] In order to improve the accuracy of determining whether a product is good or defective, the visual inspection device described in Patent Document 1 uses a denoising autoencoder technology using pseudo-defect images. In this denoising autoencoder technology, pseudo-defect images are prepared in advance, and the device is trained to remove the defective parts and restore the image to a good product (denoising). In the visual inspection device described in Patent Document 1, the setting of the determination boundary to be regarded as a defect requires control of the learning itself by re-learning using the pseudo-defect images so that the expected results can be obtained. However, it is difficult to control the learning using the pseudo-defect images when textures similar to defects are mixed in the good products.

[0006] In the anomaly detection system described in Patent Document 2, dimensionality reduction is used in the latent space to improve the accuracy of judgment of the generative model. In the dimensionality reduction, various methods are used to select clusters so that the learning data itself is grouped together as a cluster. However, defect judgment in visual inspection cannot be performed based on a single feature, and judgment criteria in which multiple features are intricately intertwined are often required. In the anomaly detection system described in Patent Document 2, there is a risk that information useful for pass / fail judgment may be lost during dimensionality reduction.

[0007] When automating visual inspections using image inspections that use deep learning, the learning results become a black box, and so the reliability of image inspections in conventional image inspection systems is insufficient. There is a demand to improve the reliability of image inspections.

[0008] The present invention has been made in consideration of the above-mentioned points, and provides an abnormality determination system, an abnormality determination method, and a program that can improve the reliability of image inspection. [Means for solving the problem]

[0009] The present invention has been made to solve the above problems, and one aspect of the present invention is an anomaly determination system including: a trained model acquisition unit that acquires a trained model, which is a model of expression learning in which a relationship between an image of an object to be inspected and a determination result as to whether or not the object to be inspected has a defect is learned; an inspection image acquisition unit that acquires a plurality of inspection images including at least one of a good product image, which is an image of the object to be inspected that is a good product, and a defective product image, which is an image of the object to be inspected that is a good product and is generated by continuously or stepwise changing a formal intellectual feature, which is a quantifiable feature for the appearance of a defect; a latent feature calculation unit that calculates coordinates of the latent feature extracted from the inspection image in a feature space, which is a space of latent feature extracted from an image by the trained model, by inputting each of the plurality of inspection images acquired by the inspection image acquisition unit into the trained model acquired by the trained model acquisition unit; and an axis selection unit that selects one or more first axes, which are selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation unit and an axis selection index, which is a predetermined index, and which better express the formal intellectual feature.

[0010] In addition, one aspect of the present invention is that, in the above-mentioned anomaly judgment system, the inspection image includes the defective product image, and the axis selection index has a positive or negative correlation between the latent feature indicated by the axis of the feature space and the formal intellectual feature.

[0011] Another aspect of the present invention is that, in the above-mentioned anomaly determination system, the plurality of inspection images include a plurality of good product images, and the axis selection index is such that there is little variation in distribution of the latent features for the good product images in the feature space.

[0012] In addition, in one aspect of the present invention, in the above-mentioned anomaly determination system, the axis selection unit selects one or more first axes from among the axes of the feature space based on coordinates of the latent feature calculated by the latent feature calculation unit and the axis selection index.

[0013] In addition, in one aspect of the present invention, in the above-mentioned anomaly determination system, the system further includes an operation receiving unit that receives an operation from a user to select one or more first axes from among the axes of the feature space based on coordinates of the latent feature calculated by the latent feature calculation unit and the axis selection index, and the axis selection unit selects one or more first axes from among the axes of the feature space based on the operation received by the operation receiving unit.

[0014] In addition, in one aspect of the present invention, in the above-mentioned anomaly determination system, the system further includes a determination unit that determines a level of the formal intelligent feature of the inspection object to be determined based on one or more of the first axes.

[0015] Moreover, in one aspect of the present invention, in the above-mentioned anomaly judgment system, the judgment unit sets a threshold value based on one or more selected first axes, and judges whether the inspection object to be judged is a good product or a defective product based on the set threshold value.

[0016] In addition, one aspect of the present invention, in the above-mentioned anomaly judgment system, further includes a trained model evaluation unit that inputs an image of the inspection object to the trained model and evaluates the trained model based on one or more selected first axes.

[0017] In addition, in one aspect of the present invention, in the above-mentioned anomaly determination system, the system further includes a learning image evaluation unit that evaluates the distribution of the latent features for a set of images of the inspection object used to train a model for expression learning based on one or more selected first axes.

[0018] In addition, one aspect of the present invention, in the above-mentioned anomaly judgment system, further includes a learning image generation unit that generates an image of the inspection object for learning a model of expression learning based on the selected one or more first axes.

[0019] In addition, one aspect of the present invention is an anomaly detection method including: a trained model acquisition step of acquiring a trained model, which is a model of expression learning in which the relationship between an image of an inspection object and a determination result of whether or not the inspection object has a defect is learned; an inspection image acquisition step of acquiring a plurality of inspection images including at least one of a good product image, which is an image of the inspection object that is a good product, and a defective product image, which is an image of the inspection object that is a quantifiable feature for the appearance of a defect and is generated by continuously or stepwise changing a formal intellectual feature, which is an image of the inspection object, and a latent feature calculation step of calculating coordinates of the latent feature extracted from the inspection image in a feature space, which is a space of latent features extracted from an image by the trained model, by inputting each of the plurality of inspection images acquired by the inspection image acquisition step into the trained model acquired by the trained model acquisition step; and an axis selection step of selecting one or more first axes, which are selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation step and an axis selection index, which is a predetermined index, and which better express the formal intellectual feature.

[0020] In addition, one aspect of the present invention is a program for causing a computer to execute a learned model acquisition step of acquiring a learned model, which is a model of expression learning in which the relationship between an image of an object to be inspected and a determination result of whether or not the object to be inspected has a defect is learned; an inspection image acquisition step of acquiring a plurality of inspection images including at least one of a good product image, which is an image of the object to be inspected that is a good product, and a defective product image, which is an image of the object to be inspected that is a quantifiable feature for the appearance of a defect, generated by continuously or stepwise changing a formal intellectual feature, and a latent feature calculation step of calculating the coordinates of the latent feature extracted from the inspection image in a feature space, which is a space of latent features extracted from an image by the learned model, by inputting each of the plurality of inspection images acquired by the inspection image acquisition step into the learned model acquired by the learned model acquisition step; and an axis selection step of selecting one or more first axes, which are axes selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation step and an axis selection index, which is a predetermined index, and which better express the formal intellectual feature. Effect of the Invention

[0021] According to the present invention, the reliability of image inspection can be improved. [Brief description of the drawings]

[0022] [Figure 1] FIG. 11 is a schematic diagram showing how to input an artificially defective product image into deep learning when the feature amount of a defect is changed according to the first embodiment of the present invention, and observe the change in the coordinates of the feature distribution. [Diagram 2] FIG. 11 is a schematic diagram showing how to input an artificially defective product image into deep learning when the feature amount of a defect is changed according to the first embodiment of the present invention, and observe the change in the coordinates of the feature distribution. [Diagram 3] FIG. 2 is a diagram showing an example of a schematic diagram of a defective product image according to the first embodiment of the present invention. [Figure 4]FIG. 2 is a diagram illustrating an example of a model for expression learning according to the first embodiment of the present invention. [Diagram 5] 1 is a diagram showing an example of the configuration of an abnormality determination device according to a first embodiment of the present invention. [Figure 6] FIG. 4 is a diagram showing an example of a flow of an abnormality determination process according to the first embodiment of the present invention. [Figure 7] FIG. 2 is a diagram showing an example of a non-defective image selected as a base for an artificial inspection image according to the first embodiment of the present invention. [Figure 8] FIG. 2 is a diagram showing an example of a non-defective image selected as a base for an artificial inspection image according to the first embodiment of the present invention. [Figure 9] FIG. 2 is a diagram showing an example of an artificial inspection image in which the area of ​​a defect is changed stepwise according to the first embodiment of the present invention. [Figure 10] FIG. 2 is a diagram showing an example of an artificial inspection image in which the density of defects is changed stepwise according to the first embodiment of the present invention. [Figure 11] FIG. 2 is a diagram showing an example of a plot of latent variables according to the first embodiment of the present invention. [Figure 12] FIG. 2 is a diagram showing an example of a plot of latent variables according to the first embodiment of the present invention. [Figure 13] FIG. 2 is a diagram showing an example of a plot of latent variables according to the first embodiment of the present invention. [Figure 14] FIG. 2 is a diagram showing an example of a plot of latent variables according to the first embodiment of the present invention. [Figure 15] FIG. 2 is a diagram showing an example of fitting a straight line to a plot of latent variables according to the first embodiment of the present invention. [Figure 16] FIG. 2 is a diagram showing an example of fitting a straight line to a plot of latent variables according to the first embodiment of the present invention. [Figure 17] FIG. 2 is a diagram showing an example of fitting a straight line to a plot of latent variables according to the first embodiment of the present invention. [Figure 18] FIG. 2 is a diagram showing an example of fitting a straight line to a plot of latent variables according to the first embodiment of the present invention. [Figure 19] FIG. 2 is a diagram showing an example of a plot of latent variables for an axis selected by a user according to the first embodiment of the present invention. [Figure 20] FIG. 4 is a diagram showing an example of a graph illustrating an error in straight line fitting according to the first embodiment of the present invention. [Figure 21] FIG. 2 is a diagram showing an example of a schematic diagram of a latent space represented using selected axes according to the first embodiment of the present invention. [Figure 22] FIG. 2 shows an example of a schematic diagram of interpretation of a feature space according to the first embodiment of the present invention. [Diagram 23] FIG. 5 is a diagram showing an example of the configuration of an abnormality determination system according to a second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] (First embodiment) Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Conventionally, image inspection systems that automate visual inspection of the appearance of an object to be inspected by image inspection are known. In such image inspection systems, for example, anomalies in an object to be inspected are detected from an image of the object to be inspected based on deep learning (DNN: Deep Neural Network). In this embodiment, instead of using the output of the DNN for judgment, a feature distribution space composed of features extracted by the DNN from the image of the object to be inspected is used for judgment. In this embodiment, an axis that better expresses formal intellectual features, which are quantifiable features regarding the appearance of a defect, is selected in the feature distribution space, and judgment is made based on the selected axis.

[0024] In this embodiment, a defective product means an inspection object having a defect in appearance. Therefore, a defective product is also called a defective product. In the following description, an image of an inspection object that is a good product is called a good product image. Also, an image of an inspection object that is a defective product is called a defective product image. Note that in this embodiment, a good product image is an image of the actual inspection object. A defective product image may be an artificially generated image (artificial inspection image) or an image of an actual defective product.

[0025] In the industrial world, the application of DNNs has been attracting attention as one of the means to achieve the automation of visual inspection. DNNs have the advantages of being expected to have high classification accuracy and generalization performance, and of requiring less development effort and being able to be designed systematically compared to image processing logic. However, since the occurrence of defective products is extremely rare in manufacturing sites, it is difficult to collect the defective data necessary for learning, especially in small-lot, high-mix production, small-scale lines, and in the early to mid-stages of development. Therefore, the application of DNNs (visual inspection DNNs), which have been used to automate visual inspection, requires a framework for generating models under conditions where the number of data samples for good and defective products is unbalanced. Furthermore, in practical use, it is an important issue to clarify the types and levels of defects that the generated DNN model can determine.

[0026] In this embodiment, we propose a data augmentation method that can solve the problem of insufficient learning data, which is a problem of visual inspection DNN, and also solve the problem of clarifying the application limit. The basic idea is to introduce the idea of ​​"real image likeness", and the details are as follows.

[0027] Next, we will discuss the limitations of using DNNs when inspecting the appearance of objects. [Imbalance of training samples] As mentioned above, bias is likely to occur in the data collected at manufacturing sites. For example, when considering the defect type classification problem using supervised learning, in order to achieve the expected identification accuracy, data for each defect type is required in an amount at least equal to that of good product data, but it is difficult to secure such data. Even if sufficient data is available, the work of labeling each defect type data is a heavy burden. On the other hand, in anomaly detection using unsupervised learning, etc., a model can be generated without requiring defective data. However, since models using unsupervised learning, etc., are learning a single class, it is possible to judge whether a product is good or bad, but ingenuity is required to classify defect types.

[0028] [Limits of application of DNN for visual inspection] In inspections using image processing logic, features that are effective for pass / fail judgments are artificially designed. In this case, if it were possible to comprehensively generate features that are effective for inspection, DNNs would not be necessary. However, the features that are effective for inspection change depending on the inspection target and the type of defect to be detected. Therefore, it is necessary to either artificially design features each time, or to design new features that are robust to changes in defect types and inspection targets. Designing new features means a large amount of development man-hours, which can be difficult to achieve.

[0029] In contrast to image processing logic, DNNs automatically design features according to the task. As a result, DNNs can design features that are effective for inspection. However, it is difficult to explain the scope of application, such as the type and severity of defects that can be determined, from those features. For classification problems using supervised learning, DNNs learn to match the labels with the results. Inference involves classifying into one of the pre-prepared categories according to the likelihood. In other words, when applying DNNs to visual inspection, it is important to consider how to respond when an unexpected defect type occurs and to appropriately determine the number of output categories.

[0030] On the other hand, in anomaly detection, it is possible to design with uncertainty in mind, so a model can be generated even under conditions where the types of defects that may occur are unknown. However, it is still necessary to clarify the scope of application of the inspection using a large amount of defective product data. In other words, for visual inspection, it is essential to define specifications such as the types and severity of defects that the model can identify. The same conditions apply when applying DNN to visual inspection.

[0031] In addition, DNNs have the property that the quantity and quality of the sample population directly affect the accuracy of the system. Due to this property, in order to generate a DNN model that meets the testing specifications, data that contains them in advance is required, resulting in the problem of a lack of training data.

[0032] [Explainable AI] In DNN, it is desirable to be able to clarify the process that leads to the inference result and to be able to interpret the extracted features. In other words, designing explainable AI is an important challenge. Currently, methods that have been proposed include Grad-CAM, which reveals activation points from the network gradient, and a method for interpreting the network by dissecting it.

[0033] Applying the above method to visual inspection DNN makes it possible to check whether the model detects defects, which may improve the reliability of the classification results. However, it is difficult to guarantee specifications such as defect types and sizes that the model can handle for inspection. In visual inspection, the state and degree of defects are specified as much as possible. Therefore, it is difficult to say that conventional methods are effective as a means of solving the factors that hinder application.

[0034] Next, artificial test images and expression learning in this embodiment will be described. [Artificial inspection images that consider "realistic" images] As mentioned above, the quantity and quality of the sample population used for learning or evaluation are important for visual inspection DNN. Problems with insufficient data can sometimes be addressed by augmentation. For example, data may be augmented by performing density manipulation or geometric transformation on the training samples. However, such augmentation methods perform transformations without considering the variability of non-defective products or the characteristics of the defect signals to be detected. Therefore, such an augmentation method cannot necessarily guarantee the quality of the data, and may further complicate the basis for DNN decisions. On the other hand, if an augmentation method can guarantee the quality of the data, it will be possible to prepare a large amount of high-quality data.

[0035] "Quality" means having the features and appearance of defects that may actually occur, and is considered to be effective in interpreting the basis for DNN judgment, and a data expansion method that can satisfy these conditions has been proposed (see Patent Document 3). Specifically, the expansion method described in Patent Document 3 generates artificial defects by converting the features of the shape, position, density, texture, etc. of actual defects, and synthesizes them onto the base of a good product image. Therefore, the expansion method described in Patent Document 3 makes it possible to generate artificial defective product images with a wide variety. Furthermore, when it is difficult to obtain actual defects, it is possible to generate artificial defective product images based on the principle of defect occurrence.

[0036] The advantage of the above method is that the feature quantities of defects contained in the generated image are known. Therefore, rather than a qualitative evaluation of appearance, a quantitative evaluation of the similarity of the feature quantities of the actual inspection image is possible, and reproducibility can be guaranteed. In other words, it is possible to generate an image that matches the specifications of the defect to be detected based on the features of the actual inspection image. Experiments have confirmed the effectiveness of DNN in pass / fail judgment.

[0037] [Expression learning] Knowing the effectiveness of features extracted by DNNs is an important issue in achieving the target task. In unsupervised learning, a framework is required to quantitatively evaluate the multidimensional latent feature space extracted from data for pattern recognition. A method has been proposed to calculate features such as slope, thickness, width, and height of training data of handwritten digit characters (MNIST) and to obtain correlations with features of test data. Interpreting the abstracted DNN features described above is effective in ensuring the reliability of the model's judgment results, and is expected to contribute to resolving the obstacles to applying DNNs to visual inspection.

[0038] Here, we will explain a method that can clarify the application limit of the visual inspection DNN. To achieve this, artificial images are used. As mentioned above, there are known examples of using image generation to improve classification accuracy in order to compensate for lack of training data. In contrast, in this embodiment, images are artificially generated in order to compensate for gaps in the space of the feature distribution composed of the features extracted by the DNN. Since the input is an image, it is possible to know what kind of image is distributed at which coordinates in the feature distribution of the DNN.

[0039] If the input image changes, the coordinates distributed in the DNN feature space should also change. In inspection, it is thought that the coordinates distributed in the DNN feature space will change depending on the presence or absence of an abnormal signal and the level of that abnormal signal. The abnormal signal can be expressed as a defect feature distribution, which is explicit knowledge. In other words, it is thought that the feature distribution portion of the DNN can be interpreted by changing the defect feature amount. Below, we will explain the case where artificially defective product images are input into the DNN when the defect feature amount is changed, and the change in the coordinates of the feature distribution is observed.

[0040] Figures 1 and 2 show schematic diagrams of inputting artificial defective product images into the DNN when the defect feature amount is changed, and observing the change in the coordinates of the feature distribution. defect Generate an artificial image with known features and use pre-trained DNN features F dnn We attempt to interpret the basis for judgment by mapping the feature value F shown in Figure 1 onto the feature space. defectis a known feature of the defect contained in the generated defect image. On the other hand, the feature F in Fig. 2 dnn is the feature extracted by the trained DNN. defect is explicit knowledge and can be controlled. On the other hand, the feature F dnn is tacit knowledge and difficult to control. On the other hand, if we could artificially generate images distributed at any coordinate in the feature space of the DNN, it would be possible to interpret some of the tacit knowledge features extracted by the DNN.

[0041] Specifically, for an artificial inspection image, we use explicit knowledge, F defect When the implicit feature F is continuously changed, dnn We observe the trajectory of the coordinates that change in the feature space of F. defect and feature F dnn For example, the correspondence between the feature vector F defect1 , and feature quantity F defect2 The generated images G1 and G2, which are generated by continuously changing the feature amount F, are mapped to the feature distribution of the DNN. As shown in Figure 2, the relationship between the generated image G1 and the feature space of the DNN is unclear. On the other hand, in the generated image G2, the feature amount F dnn3 From the above, we can see the types and severity of defects that DNNs can identify.

[0042] If we can clarify the state of the DNN feature space, it will be possible to generate arbitrary images that have characteristics that can actually occur and are effective for constructing DNNs. As a result, the application limits will be clarified, which may lead to improved reliability of inspection results.

[0043] [Inspection object and imaging conditions] In this embodiment, an example of the inspection of a precision metal part will be described. In this inspection, an image of the metal surface is captured by an industrial camera. Figure 3 shows a schematic diagram of a defective part image.

[0044] The part was machined, and the image shows vertical stripes caused by machining. The defects on the part were roughly divided into uneven defects and defects caused by attached material. In particular, uneven defects tend to be dents, while defects caused by attached material tend to be stains.

[0045] [Artificial image generation] As described above, a defective product image having known defect features is artificially generated. As a method for artificially generating a defective product image, for example, the defective product image generation method described in Patent Document 3 is preferably used. The known features of the artificial defective product image are the shape, position, density, and texture of the defect. The artificial defective product image is generated based on actual defective product images and knowledge of the inspection target. When the actual defective product images are small in number, the features at the time of generation are determined by random numbers from the above-mentioned features. As data and knowledge are accumulated, the amplitude is optimized. By optimizing the amplitude, an artificial defective product image having features that may actually occur can be generated.

[0046] In this embodiment, blemishes are detected among the types of defects that occur in the inspection target. In the defective product image generation method described in the above-mentioned Patent Document 3, a simulated defect is generated and then synthesized with a good product, so that a defective product image can be generated with as few loss of features as possible for the good product. Furthermore, assuming a situation where it is difficult to obtain an actual defective product image, and taking into consideration the principle of defect occurrence and appearance, a defective product image is freely generated as an artificial inspection image. Furthermore, the shape, density, and texture at the time of generation are known, and can be arbitrarily improved according to the characteristics that may occur. Therefore, it is possible to generate an artificial inspection image as intended by the designer.

[0047] In this embodiment, defect size (area) and concentration are selected as defect features. Defective product images are generated in which the defect size (area) and concentration are each changed in stages (for example, 100 stages). For the non-defective product images into which defects are synthesized, a first base material used in learning and a second base material not used in learning are prepared. The shape of the defect is circular, and the position where the defect is synthesized is the center of the image. By mapping the generated defective product images into the feature space of the DNN, the transition of the coordinates of the feature amounts distributed in the feature space can be observed.

[0048] Figures 7 and 8 show examples of good product images (good product image P1 and good product image P2) used as the basis for artificial inspection images, respectively. Figure 9 shows examples of defective product images (defective product image Q1-1, ..., defective product image Q1-i, ..., defective product image Q1-d) which are artificial inspection images in which the area of ​​the defect is changed in stages. Figure 10 shows examples of defective product images (defective product image Q2-1, ..., defective product image Q2-i, ..., defective product image Q2-d) which are artificial inspection images in which the density of the defect is changed in stages. Note that the defective product images shown in Figures 9 and 10 use the good product image P1 shown in Figure 7 as the basis.

[0049] [Feature space interpretation of DNN] The generated artificial defective product image is input into a pre-trained DNN and converted into a feature vector. The feature values ​​of the generated artificial defective product image are continuously changed while observing the trajectory of change in the feature vector. By repeating the above process, if there are defect features that can control the DNN features, it is believed that the DNN feature space can be interpreted. In other words, this means that the generated image fills in the gaps in the DNN feature space that cannot be covered by the training data. If the gaps in the DNN feature space can be filled, it will be possible to generate artificial defective product images that have defect features that can actually occur and are effective for learning.

[0050] [Model of Representation Learning] In this embodiment, the model for expression learning is, for example, a Variational Auto Encoder (VAE). Fig. 4 is a diagram showing an example of the model for expression learning according to this embodiment.

[0051] Here, in the manufacturing site, it is relatively easy to obtain images of good products, and when only good products are used for learning, knowledge of defective product images is not required. Therefore, in this embodiment, a representation learning model that learns only good products is adopted. In addition, as the representation learning model, it is preferable that the feature amount in the feature space follows a statistical distribution so that the feature space of the DNN is easy to interpret. The representation learning model is designed based on the spatial feature amount of the image. Therefore, in this embodiment, VAE is adopted as the DNN.

[0052] The VAE includes an encoder and a decoder. The encoder encodes input data so that latent features follow a multivariate normal distribution in the latent space. The decoder decodes the latent space to produce data close to the input data.

[0053] In the VAE shown in FIG. 4, the encoder unit includes six convolution layers and two fully connected layers. The decoder unit includes six deconvolution layers and two fully connected layers. In this embodiment, the image of the object to be inspected, which is the input data, is composed of 256×256 pixels. In the VAE shown in FIG. 4, the dimension of the latent space is 32 dimensions.

[0054] Here, we have a training dataset X = {x1, x2, …, x n}, the reconstructed image x', the latent variable z, and the variational parameters θ and φ. VAE is a prior probability distribution p θ (x|z) and the variational posterior probability distribution q φ The error of (z|x) and Kullback-Leibler Divergence (KLD) are minimized. Furthermore, in this embodiment, the error between the input image and the reconstructed image is minimized as much as possible, and a model is designed from image features that are likely to be good quality. Therefore, in this embodiment, SSIMloss shown by equation (1) is added to the objective function.

[0055]

number

[0056] where μ x , μ x´ is the mean value, σ x , σ x´ is the variance of the output, σ xx´ is the covariance, and c1 and c2 are hyperparameters. The closer SSIM is to 1.0, the higher the similarity of the images is, so a value obtained by subtracting SSIM from 1 is used. Therefore, the objective function in this embodiment is expressed by equation (2).

[0057]

number

[0058] In this embodiment, learning is performed using 400 good product images. The batch size is 8, and the number of epochs is 100. 140 good product images are used for evaluation. 100 good product images and 156 defective product images are used for verification. The optimization method used is Adam (Adaptive moment estimation). The learning rate is 1e -4 The initial value is set as follows. The learning rate is decreased according to the slope of the validation error as the learning progresses. Furthermore, when the learning rate becomes small enough and the slope of the validation error converges, the learning is terminated.

[0059] In general, anomaly detection using an autoencoder often uses the loss value of input data and output data as the degree of anomaly to detect anomalies. However, an autoencoder suppresses errors in abnormal signals by decoding them. Therefore, there is a possibility that abnormal signals may be overlooked.

[0060] However, it is obvious that there is a difference in the distribution coordinates between normal data and abnormal data within the latent space. Therefore, in this embodiment, anomaly detection within the latent space is adopted. The latent space of VAE is a parametric space, and only good product images are used for learning. Therefore, data distributed closer to the origin of the latent space has a higher probability of being a good product. On the other hand, the further away from the origin the data is distributed on the coordinates, the higher the probability of it being a defective product. Also, data with a lower occurrence probability of the prior probability distribution is thought to contain more information, and anomalies can be detected by detecting such data.

[0061] Therefore, the degree of anomaly a of the image x″ to be evaluated is the negative log-likelihood of the prior probability distribution p(x″|X). The degree of anomaly a of the image x″ to be evaluated is shown in Equation (3).

[0062]

number

[0063] Here, p(x"|X) is a normal distribution.

[0064] Note that the VAE network structure, number of dimensions of the latent space, pixel size of the image, objective function, optimization method, etc. described above are merely examples and are not limited to these.

[0065] [Configuration of abnormality determination device 1] 5 is a diagram showing an example of the configuration of the abnormality determination device 1 according to this embodiment. The abnormality determination device 1 determines whether an inspection object is a non-defective or defective item based on an image of the inspection object. The inspection object is a precision metal part, a workpiece, a raw material, or the like.

[0066] The abnormality determination device 1 is, for example, a personal computer (PC). The abnormality determination device 1 includes a control unit 10, a storage unit 11, a display unit 12, and an operation unit 13.

[0067] The control unit 10 includes a learning unit 100, a trained model acquisition unit 101, an artificial test image generation unit 102, a test image acquisition unit 103, a latent feature calculation unit 104, an axis selection unit 105, a determination unit 106, an output unit 107, and an operation reception unit 108. Each of these functional units is realized, for example, by a CPU loading a program read from a ROM (Read Only Memory) into a RAM (Random Access Memory) and executing processing according to the program. The ROM and the RAM are included in the storage unit 11.

[0068] The learning unit 100 generates a trained expression learning model A1 based on expression learning. The trained expression learning model A1 is a model of expression learning in which the relationship between an image of an inspection object and a determination result of whether or not the inspection object has a defect is learned. The trained expression learning model A1 is generated by performing learning using the VAE shown in FIG. 4. In this embodiment, the learning unit 100 generates the trained expression learning model A1 by performing expression learning using a non-defective product image, as an example. The learning unit 100 stores the generated trained expression learning model A1 in the storage unit 11. A specific example of the trained expression learning model A1 will be described later. Note that expression learning is learning to extract features from an image, for example, deep learning.

[0069] The trained model acquisition unit 101 acquires the trained expression learning model A1 from the memory unit 11.

[0070] Artificial inspection image generating unit 102 generates an artificial inspection image. In the present embodiment, the artificial inspection image is generated, for example, by combining an image of an artificial defect with an image of an actual non-defective product. Artificial inspection image generating unit 102 stores the generated artificial inspection image in storage unit 11 as part of inspection image group B1.

[0071] The inspection image acquisition unit 103 acquires the inspection image group B1 from the storage unit 11.

[0072] The latent feature calculation unit 104 calculates the coordinates of latent features (referred to as latent features) extracted from the inspection image in the latent space. The latent feature calculation unit 104 calculates the coordinates of the latent features in the latent space by inputting each of the multiple inspection images included in the inspection image group B1 acquired by the inspection image acquisition unit 103 to the trained expression learning model A1 acquired by the trained model acquisition unit 101.

[0073] The latent space is a space of latent features extracted from an image by the trained representation learning model A1. Here, the image of the inspection object includes formal intellectual features about the appearance of the inspection object. In this embodiment, the formal intellectual features are features that can be quantified about the appearance of the defect. For example, the formal intellectual features about the appearance of the inspection object are the size or concentration of the defect, the size or concentration of the stain, the size or depth of the scratch, the number per unit area, the density, the distance between points, the shape (complexity, circularity, etc.), etc. The formal intellectual features may also be an abnormality about the size or shape of the inspection object. The abnormality about the size or shape of the inspection object is the length, bend, chipping, etc. of the part. The formal intellectual features may also be features that can be interpreted by humans about the appearance of the defect.

[0074] The axis selection unit 105 selects one or more axes (referred to as selected axes X1) from the latent space. In this embodiment, the selected axis X1 may be automatically selected by the axis selection unit 105, or may be selected by a user. When the axis selection unit 105 automatically selects an axis (referred to as selected axis X1) from the latent space based on an axis selection index. The axis selection index is a predetermined index used by the axis selection unit 105 to select the selected axis X1. Specific examples of the axis selection index will be described later. The axis selection unit 105 selects one or more selected axes X1. The axis selection unit 105 stores selection axis information C1, which is information indicating the selected one or more selected axes X1, in the storage unit 11.

[0075] The judgment unit 106 judges the degree of the formal intellectual feature of the inspection object to be judged based on one or more selection axes X1 selected by the axis selection unit 105. In this embodiment, the judgment unit 106 judges whether the inspection object to be judged is a non-defective product or a defective product based on the selected one or more selection axes X1.

[0076] The output unit 107 outputs the result of the determination made by the determination unit 106 . The operation receiving unit 108 receives various operations from a user of the anomaly determination device 1 via the operation unit 13. The operations include an operation of selecting a selection axis X1 from among the axes of the latent space based on an axis selection index.

[0077] The storage unit 11 stores various information. The information stored in the storage unit 11 includes a trained expression learning model A1, a test image group B1, and selection axis information C1. The storage unit 11 is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device.

[0078] The display unit 12 displays various information, including plots of latent features in a latent space.

[0079] The operation unit 13 accepts various operations from a user of the abnormality determination device 1. The operation unit 13 includes, for example, a mouse, a keyboard, a touch panel, or an operation button.

[0080] The abnormality determination device 1 may be realized as a virtual server. The functional units of the abnormality determination device 1 may be distributed among a plurality of servers. The abnormality determination device 1 may be realized as a cloud server. In these cases, the abnormality determination device 1 may be called an abnormality determination system.

[0081] [Abnormality Judgment Processing] Next, the abnormality determination process performed by the abnormality determination device 1 will be described with reference to FIG. 6 is a diagram showing an example of the flow of the abnormality determination process according to the present embodiment. The abnormality determination process is executed by the control unit 10.

[0082] Step S10: The trained model acquisition unit 101 acquires the trained expression learning model A1. In this embodiment, the trained expression learning model A1 is stored in advance in the storage unit 11. The trained model acquisition unit 101 acquires the trained expression learning model A1 from the storage unit 11. As described above, the trained expression learning model A1 is generated by the learning unit 100 learning using the expression learning model, and is stored in the storage unit 11. In this embodiment, the expression learning model is a VAE. Only non-defective product images are used for training the VAE.

[0083] Step S20: The artificial inspection image generating unit 102 selects N (N is a natural number) good product image samples that will be the basis for the artificial inspection image. Here, the artificial inspection image generating unit 102 inputs good product images to the trained representation learning model A1 acquired by the trained model acquiring unit 101. The artificial inspection image generating unit 102 selects N good product image samples that will be the basis for the artificial inspection image from the distribution of features for good product images in the latent space of the trained representation learning model A1. In this embodiment, as an example, two good product image samples (see FIGS. 7 and 8) are selected.

[0084] As mentioned above, in the VAE, the input data is encoded so that the latent features follow a multivariate normal distribution in the latent space. Therefore, in the VAE where only good product images are used for training, the distribution of features for good product images in the latent space is normal.

[0085] Step S30: The artificial inspection image generating unit 102 changes the formal intelligent feature of the artificial defect (also called a dummy defect) continuously or stepwise to generate an artificial defect image. The formal intelligent feature is an area, a width or a length, a concentration, or a shape, and the formal intelligent feature can quantitatively represent the degree of the defect. The artificial inspection image generating unit 102 changes each of these formal intelligent features continuously or stepwise to generate the formal intelligent feature of the artificial defect. In this embodiment, as an example, the artificial inspection image generating unit 102 changes the area and the concentration in d steps (d is a natural number).

[0086] In addition, the formal intelligent feature of the artificial defect may be generated by combining a plurality of the formal intelligent features as described above and changing them continuously or stepwise. For example, the formal intelligent feature of the artificial defect may be generated by simultaneously changing the area and the concentration continuously or stepwise.

[0087] Step S40: The artificial inspection image generating unit 102 generates an artificial inspection image group by synthesizing each of the good image samples with an artificial defect image. The good image samples are the N good image samples selected in step S20. The artificial defect image group is an artificial defect image group in which the formal intelligent feature generated in step S30 changes continuously (d steps). Therefore, in this embodiment, the inspection images are a plurality of defective image generated by changing the formal intelligent feature continuously or stepwise. Here, N×d artificial inspection images are generated as the inspection image group B1.

[0088] The artificial inspection image generation unit 102 stores the generated inspection image group B1 in the storage unit 11. The inspection image acquisition unit 103 acquires the inspection image group B1 from the storage unit 11.

[0089] Step S50: The latent feature calculation unit 104 inputs the inspection images included in the inspection image group B1 into the representation learning model (i.e., the trained representation learning model A1), and calculates the change in the latent feature (also called latent variable) with respect to the change in the formal intellectual feature (i.e., the degree of defect) on each axis of the latent space of the VAE, or the transition of the distance of the latent feature from the non-defective product distribution in the latent space. The inspection images are defective product images as artificial inspection images generated in step S40.

[0090] Here, the latent feature calculation unit 104 calculates the coordinates of the latent feature in the latent space by inputting each of a plurality of test images, in which the formal intellectual feature changes stepwise, included in the test image group B1 acquired from the storage unit 11 by the test image acquisition unit 103, into the trained expression learning model A1 acquired by the trained model acquisition unit 101. The latent feature calculation unit 104 calculates the change in the latent feature with respect to the change in the formal intellectual feature. In the following description, a plot showing a change in latent feature quantity relative to a change in formal intellectual feature quantity may be referred to as a plot of latent variables.

[0091] 11, 12, 13, and 14 are diagrams showing examples of plots (plots of latent variables) showing changes in latent features with respect to changes in formal intellectual features according to this embodiment. In FIG. 11, FIG. 12, FIG. 13, and FIG. 14, as well as FIG. 15, FIG. 16, FIG. 17, FIG. 18, and FIG. 19 described later, the horizontal axis indicates the formal intellectual features, and the vertical axis indicates the coordinates of the latent features. The vertical axis corresponds to one of the axes of the 32-dimensional latent space of the VAE. In FIG. 11, FIG. 12, FIG. 13, and FIG. 14, the vertical axis corresponds to the 1st to 8th axes, the 9th to 16th axes, the 17th to 24th axes, and the 25th to 32nd axes of the 32-dimensional latent space, respectively.

[0092] Figures 11, 12, 13, and 14 respectively show plots of latent variables for artificial inspection images in which the defect area (see Figure 9) and concentration (see Figure 10) are gradually changed using the non-defective image P1 (Figure 7) and the non-defective image P2 (Figure 8), respectively, on each axis of the 32-dimensional latent space. 11, 12, 13, and 14, as well as FIG. 19 described later, coordinates in the latent space of non-defective image samples are plotted along with the artificial inspection images.

[0093] Step S60: A selection axis X1 is selected from the latent space based on the axis selection index. In this embodiment, the selection axis X1 may be automatically selected by the axis selection unit 105, or may be selected by the user. Whether the selection axis X1 is automatically selected or selected by the user is specified by the user via the operation unit 13. One or more selection axes X1 are selected based on the axis selection index. In other words, a combination of selection axes X1 is selected based on the axis selection index. When multiple selection axes X1 are selected, multiple selection axes X1 are selected based on the multiple axis selection indexes.

[0094] When the selection axis X1 is automatically selected, the axis selection unit 105 selects the selection axis X1 from the latent space based on the axis selection index. Here, the axis selection unit 105 selects the selection axis X1 that better expresses the formal intellectual feature from among the axes of the latent space based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and the axis selection index. The axis selection unit 105 stores the selection axis information C1, which is information indicating the one or more selected selection axes X1, in the storage unit 11.

[0095] In this embodiment, the axis selection index is, for example, that the change of the latent feature quantity indicated by the axis of the latent space with respect to the change of the formal intelligent feature quantity is close to a straight line. Close to a straight line is also called linear.

[0096] When the selection axis X1 is automatically selected, the axis selection unit 105 judges whether the plot of the latent variables is close to a straight line based on fitting the plot of the latent variables with a straight line. When the error of fitting with a straight line is small, the axis selection unit 105 judges that the plot of the latent variables is close to a straight line. Any method may be used to evaluate the error, and for example, Euclidean distance, Mahalanobis distance, cosine similarity, or k-Nearest Neighbor (kNN) is used.

[0097] 15, 16, 17, and 18 are diagrams showing an example of fitting a line to a plot of a latent variable according to the present embodiment. In FIG. 15, 16, 17, and 18, the latent variable plot is a plot of a latent variable for an artificial inspection image in which the defect area is gradually changed using a non-defective product image P1 (FIG. 7) and a non-defective product image P2 (FIG. 8) as the base material. In FIG. 15, 16, 17, and 18, the result of performing a line fitting to the plot of the latent variable is shown for each axis of a 32-dimensional latent space. FIG. 15, 16, 17, and 18 show the results for the 1st to 8th axes, the 9th to 16th axes, the 17th to 24th axes, and the 25th to 32nd axes of the 32-dimensional latent space, respectively.

[0098] The axis selection unit 105 selects one or more selection axes X1 based on the axis selection index. In other words, the axis selection unit 105 selects a combination of selection axes X1 based on the axis selection index. For example, the axis selection unit 105 selects a predetermined number of axes on which the plot of the latent variables is determined to be close to a straight line, in order of the smallest error of fitting with the straight line. The predetermined number is a number equal to or greater than 1 and smaller than the number of dimensions of the latent space. The predetermined number is, for example, 1, 2, or 3.

[0099] Note that the axis selection unit 105 may exclude from the selected axis X1 even if the error is relatively small and the axis is ranked high, if the error in fitting using a straight line is not less than a predetermined value. Also, if the axis selection unit 105 determines that there is no axis for which the error in fitting using a straight line is not less than a predetermined value, the control unit 10 may stop the abnormality determination process. The axis selection unit 105 may select one or more selection axes X1 based on a combinatorial optimization algorithm such as a genetic algorithm.

[0100] When the selection axis X1 is selected by the user, the latent feature calculation unit 104 displays the plot of the latent variables on the display unit 12. While checking the plot displayed on the display unit 12, the user selects an axis that better expresses the formal intellectual feature from among the axes of the latent space based on the axis selection index. For example, the user visually determines whether or not there is a positive or negative correlation between the latent feature and the formal intellectual feature from the plot of the latent variables for each axis. The user selects the axis determined by visual inspection as the selection axis X1. In addition, a pattern such as a straight line may be displayed on the display unit 12 to assist the user in making a judgment.

[0101] The operation reception unit 108 receives an operation to select a selection axis X1 based on the axis selection index from the user. The plot of the latent variables displayed on the display unit 12 is shown by the coordinates of the latent feature calculated by the latent feature calculation unit 104. Therefore, the operation reception unit 108 receives an operation from the user to select a selection axis X1 from among the axes of the latent space based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and the axis selection index.

[0102] The axis selecting unit 105 selects, as one or more selected axes X1, one or more axes indicated by the operation to select the selection axis X1 accepted by the operation accepting unit 108. In other words, the axis selecting unit 105 selects one or more selected axes X1 from among the axes of the latent space based on the operation to select the selection axis X1 accepted by the operation accepting unit 108. The axis selection unit 105 causes the storage unit 11 to store selected axis information C1, which is information indicating the one or more selected axes X1 that have been selected.

[0103] Here, a plot of latent variables for a selection axis X1 visually selected by a user will be described with reference to Fig. 19. Fig. 19 is a diagram showing an example of a plot of latent variables for a selection axis X1 selected by a user according to this embodiment.

[0104] Among the axes of the latent space, Figure 19(A) corresponds to the third axis, Figure 19(B) corresponds to the 21st axis, 12(C) corresponds to the 23rd axis, Figure 19(D) corresponds to the eighth axis, Figure 19(E) corresponds to the 27th axis, and Figure 19(F) corresponds to the 29th axis.

[0105] In the plot of latent variables on the 3rd, 21st, and 23rd axes of the latent space, there is a positive or negative correlation between the latent feature and the formal intellectual feature. On the other hand, in the plot of latent variables on the 8th, 27th, and 29th axes of the latent space, there is no positive or negative correlation between the latent feature and the formal intellectual feature.

[0106] Therefore, the user selects the 3rd axis, the 21st axis, and the 23rd axis as the selected axis X1. The user does not select the 8th axis, the 27th axis, and the 29th axis as the selected axis X1.

[0107] Here, referring to FIG. 20, the error of straight line fitting will be described. FIG. 20 is a diagram showing an example of a graph showing the error of straight line fitting according to this embodiment. In each graph shown in FIG. 20, the horizontal axis shows the data number, and the vertical axis shows the error of straight line fitting. FIG. 20 shows the error (average value for each axis) for each of the 32-dimensional axes of the latent space, the selected axis X1 (2nd, 20th, and 22nd axes) selected by the user, and the selected axis X1 (2nd, 9th, 10th, 11th, 20th, and 22nd axes) selected automatically. FIG. 20 also shows the error when Euclidean distance, Mahalanobis distance, cosine similarity, and k-nearest neighbor method are used as the error evaluation method.

[0108] It can be seen that compared to the 32-dimensional axes of the original latent space, the error of straight line fitting is smaller for both the selected axis X1 selected by the user and the selected axis X1 selected automatically.

[0109] In addition, various statistical methods other than linear fitting may be used to determine whether there is a positive or negative correlation between the latent feature and the formal intellectual feature.

[0110] In addition, in either case where the selection axis X1 is selected automatically or where the selection axis X1 is selected by the user, some of the selected multiple selection axes X1 may be integrated to newly create one or more selection axes X1. In addition, a combination of the selection axes X1 may be selected by weighting each selection axis X1. Weighting each axis refers to weighting the coordinates of the latent feature for each of the selected multiple selection axes X1. For the selected multiple axes X1, nonlinear axis reconstruction using a kernel may be performed.

[0111] Therefore, the axis that better expresses the formal intellectual feature, which is a feature that a human can interpret about the appearance of a defect, is the axis (selected axis X1) selected based on the axis of the latent space based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and the axis selection index. "Selected based on an axis of the latent space" includes a case where the selected axis X1 is selected from among the axes of the latent space and a case where the selected axis X1 is generated based on an axis of the latent space.

[0112] FIG. 21 shows an example of a schematic diagram of a latent space represented using the selected selection axis X1. In the example shown in FIG. 21, three axes are selected as the selection axis X1, and the latent space is represented as a three-dimensional space. The latent features of the good product images are distributed near the origin of the latent space. On the other hand, the latent features of the defective product images are distributed away from the distribution of the good product images according to the type of defect. In the latent space shown in FIG. 21, the formal intellectual features are more expressed than in the 32-dimensional latent space before selecting the selection axis X1.

[0113] FIG. 22 shows an example of a schematic diagram of the interpretation of a feature space. Since the latent space of a VAE is a parametric space, it is known that features indicating the likelihood of a product being good are distributed near the origin. This means that defective product images close to the origin of the latent space are difficult to identify using a VAE. According to the anomaly determination device 1, the defect features of such defective product images close to the origin of the latent space can be understood or visualized in a form that can be interpreted by humans.

[0114] It is considered that the coordinates distributed in the latent space will differ depending on the type and severity of the defect. Here, in image encoding, the feature values ​​of the DNN extracted from the training data are converted into occurrence probabilities. The reason that the coordinates distributed according to the type and severity of the defect differ is because the occurrence probability differs depending on the type and severity of the defect. In other words, if a defective product image is input to the DNN, the occurrence probability is considered to be low depending on the strength of the defect signal. This means that in the latent space of a parametric VAE, the features of defective images are distributed at coordinates far from the origin. By utilizing the properties of the latent space of a parametric VAE, it becomes possible to interpret the feature space of a DNN.

[0115] Step S70: The judgment unit 106 judges whether the inspection object to be judged is a good product or a defective product based on the selected selection axis X1. If the selection axis X1 is automatically selected, the judgment unit 106 judges whether the inspection object to be judged is a good product or a defective product based on the selection axis X1 selected by the axis selection unit 105 by inputting an image of the inspection object to be judged into the learned expression learning model A1. If the selection axis X1 is selected by a user, the judgment unit 106 judges whether the inspection object to be judged is a good product or a defective product based on the selection axis X1 selected by an operation accepted by the operation acceptance unit 108 by inputting an image of the inspection object to be judged into the learned expression learning model A1. The selected selection axis X1 is indicated by the selection axis information C1. The determination unit 106 acquires the selection axis information C1 from the storage unit 11 before making a determination.

[0116] The determination unit 106 sets a threshold value based on the selected axis, and determines whether the inspection target object is a non-defective product or a defective product based on the set threshold value.

[0117] For example, the determination unit 106 sets a threshold value for determination based on at least one of the distribution of non-defective product images and the distribution of defective product images in the latent space represented using the selected selection axis X1. The determination unit 106 sets, for example, a coordinate value corresponding to a boundary between the distribution of latent feature amounts of non-defective product images and the distribution of latent feature amounts of defective product images as the threshold value. The boundary is, for example, a position where the distribution of non-defective product images and the distribution of defective product images intersect.

[0118] In another example, the determination unit 106 may set the coordinates of a latent feature quantity that is closest to the origin of the latent space among the distribution of latent feature quantities of the defective product image used as a sample as the threshold. The determination unit 106 may set the coordinates of a latent feature quantity that is farthest from the origin of the latent space among the distribution of latent feature quantities of the non-defective product image used as a sample as the threshold. The determination unit 106 may set the value of the coordinates that corresponds to a constant multiple (1x, 2x, 3x, etc.) of the variance of the distribution of the latent feature quantities of the non-defective product image as the threshold.

[0119] Step S80: The output unit 107 outputs the determination result by the determination unit 106. The output unit 107 outputs the determination result to, for example, an external information processing device (such as a terminal device or a server) separate from the abnormality determination device 1, or to the display unit 12. The output unit 107 may also store the determination result in the storage unit 11. With this, the abnormality determination device 1 ends the abnormality determination process.

[0120] In this embodiment, an example of the axis selection index is that the change of the latent feature represented by the axis of the latent space with respect to the change of the formal intellectual feature is close to a straight line, but this is not limited to this. The axis selection index may be that there is a positive or negative correlation between the latent feature represented by the axis of the latent space and the formal intellectual feature. In this case, the plot of the latent variable may be fitted by a monotonic function in addition to fitting by a straight line.

[0121] Furthermore, when the inspection image group B1 includes multiple good product images, the axis selection index may be that the distribution of latent feature quantities for good product images in the latent space is small. Note that, when the axis selection index is that the distribution of latent feature quantities for good product images in the latent space is small, the inspection image group B1 does not need to include defective product images. In other words, defective product images do not need to be generated. In that case, the inspection image acquisition unit 103 acquires multiple inspection images that are good product images.

[0122] In addition, when the inspection image group B1 includes both a plurality of good product images and a plurality of defective product images, the axis selection index may be both that there is a positive or negative correlation between the latent feature indicated by the axis of the latent space and the formal intellectual feature (for example, as in this embodiment, the change in the latent feature indicated by the axis of the latent space relative to the change in the formal intellectual feature is close to a straight line) and that there is little variation in the distribution of the latent feature for good product images in the latent space.

[0123] In this embodiment, an example in which the representation learning model is a VAE and only good product images are used for learning has been described, but the present invention is not limited to this. The representation learning model may be a DNN other than a VAE, or a model other than a DNN, as long as it can calculate the coordinates of latent features extracted from an inspection image in a feature space. When the representation learning model is a DNN other than a VAE, for example, the coordinates of latent features in a feature space are calculated from an intermediate layer of the DNN.

[0124] When the model for learning the representation is a DNN other than VAE, the model for learning the representation may use defective product images together with good product images, or may use only defective product images. In this case, the defective product images used for learning may be artificially generated defective product images, or may be actual defective product images as long as a sufficient number of them can be prepared for learning.

[0125] When the model of the representation learning is a DNN other than VAE, for example, based on an axis selection index that there is a positive or negative correlation between the latent feature represented by the axis of the feature space and the formal intellectual feature, one or more axes that better express the formal intellectual feature are selected as the selection axis X1 from among the axes of the feature space.

[0126] In the present embodiment, the judgment unit 106 sets a threshold based on one or more selected selection axes X1, and judges whether the inspection object to be judged is a good product or a defective product. However, the present invention is not limited to this. The judgment unit 106 may judge the degree of the formal intellectual feature of the inspection object based on one or more selected selection axes X1 without setting a threshold. In other words, the judgment unit 106 judges how close the formal intellectual feature of the inspection object is to a good product or to a defective product based on one or more selection axes X1.

[0127] As described above, the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1) includes a trained model acquisition unit 101, an inspection image acquisition unit 103, a latent feature calculation unit 104, and an axis selection unit 105. The trained model acquisition unit 101 acquires a trained model (in this embodiment, a trained expression learning model A1), which is a model of expression learning in which the relationship between an image of an inspection object and a judgment result as to whether or not the inspection object has a defect is learned. The inspection image acquisition unit 103 acquires a plurality of inspection images including at least one of a good product image, which is an image of an inspection object that is a good product, and a defective product image, which is an image of the inspection object and is generated by continuously or stepwise changing a formal intellectual feature, which is a quantifiable feature of the appearance of a defect. The latent feature calculation unit 104 inputs each of the multiple inspection images acquired by the inspection image acquisition unit 103 into the trained model (in this embodiment, trained representation learning model A1) acquired by the trained model acquisition unit 101, and calculates the coordinates of latent features extracted from the inspection image in a feature space (in this embodiment, latent space), which is the space of latent features extracted from an image by the trained model (in this embodiment, trained representation learning model A1). The axis selection unit 105 selects one or more first axes (selected axis X1 in this embodiment) that better express the formal intellectual feature, from among the axes of the feature space (latent space) based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and a predetermined index, which is an axis selection index.

[0128] With this configuration, the abnormality determination system according to this embodiment (in this embodiment, the abnormality determination device 1) can find an axis in the feature space that indicates the degree of the defect to be controlled, thereby improving the reliability of the image inspection.

[0129] When automating visual inspection by image inspection, whether rule-based or deep learning is used, limit samples are necessary. In addition, a large number of defect images are required, and a wide variety of defect types are required to realize generalizable inspection.

[0130] However, in reality, it is often difficult to obtain actual defective products and images of defects. Therefore, if you try to use only real images, it is difficult to implement deep learning classification, which requires a large amount of data for each class. On the other hand, in rule-based methods, you need to increase the amount of data and check it, while adjusting the threshold and restructuring the algorithm. As mentioned above, automating visual inspection through image inspection using only real images has often been difficult, whether using rule-based or deep learning methods.

[0131] An anomaly detection method is known as a method to solve this problem. In an anomaly detection method, a representation learning model that has been trained on only images of good products is used to classify products into good and bad. However, in an anomaly detection method, it is difficult to adjust the threshold (boundary) for judgment. This is because, in order to avoid misjudging defective products as good products, only products that are in extremely good condition are used, otherwise misjudgments may occur. Even if there are minor stains or scratches that have been passed by visual inspection, if the method is trained to include these, there is a possibility that abnormal areas such as stains or scratches that should be judged as defects will be overlooked.

[0132] In addition, since the representation learning model learns so that each feature follows an assumed distribution, it is difficult to adjust the discrimination threshold according to the defect features. When adjusting the discrimination threshold according to the defect features, it is necessary to sufficiently adjust the distribution of the training data itself before training.

[0133] If it becomes possible to recognize at what level of defect image the representation learning model's judgment changes, or to control any defect image so that the desired judgment is made, then when visual inspection is automated through image inspection, it will be possible to make it closer to conventional visual inspection, thereby increasing the reliability of the image inspection.

[0134] The ability to recognize at what level of defect image the model decision of the representation learning changes is achieved by visualization using defect images or dummy defect images in the latent space. On the other hand, the ability to control any defect image to make the desired judgment can be achieved by finding an axis in the feature space that indicates the degree of the defect to be controlled and making it selectable, thereby adjusting the threshold value for judgment.

[0135] As described above, in the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), an axis indicating the degree of the defect to be controlled is found in the feature space, and by making it selectable, the threshold value for determination can be adjusted, so that any defect image can be controlled so as to be determined as desired. In the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), when automating visual inspection by image inspection, the image inspection can be made closer to conventional visual inspection, and the reliability of the image inspection can be improved.

[0136] In the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1), the pseudo defect image generated based on the formal intellectual feature can display (visualize) the defect level in terms of the tacit knowledge index targeted in the visual inspection.

[0137] In visual inspection, the level of abnormality or the boundary between pass / fail judgments may be set using limit samples, etc. However, the boundary between pass / fail judgments differs for each type of defect. Therefore, when automating visual inspections using image inspection, it is necessary to set the pass / fail judgment threshold for each item. When using deep learning to perform image inspection, adjusting the pass / fail judgment threshold is more difficult than with rule-based image processing. In the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), even in anomaly detection using a representation learning model, it is possible to set a threshold value for determination in the latent space.

[0138] In addition, in the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1), the inspection image includes a defective product image. The axis selection index is that there is a positive or negative correlation between the latent feature value indicated by the axis of the feature space (in this embodiment, the latent space) and the formal intellectual feature value.

[0139] With this configuration, in the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1), an axis indicating a latent feature quantity having a positive or negative correlation with the formal intelligent feature quantity can be selected as the first axis (in this embodiment, the selected axis X1), and therefore the threshold value for judgment can be adjusted for that axis.

[0140] In addition, in the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), the axis selection index is that the change in the latent feature quantity indicated by the axis of the feature space (in this embodiment, the latent space) relative to the change in the formal intelligent feature quantity is close to a straight line.

[0141] With this configuration, in the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1), an axis showing a latent feature whose change in response to a change in a formal intellectual feature is close to a straight line can be selected as the first axis (in this embodiment, the selected axis X1), and therefore the threshold value for judgment can be adjusted for that axis.

[0142] Furthermore, in the anomaly judgment system according to this embodiment (in this embodiment, the anomaly judgment device 1), the multiple inspection images may include multiple good product images, and the axis selection index may be that there is little variation in the distribution of latent feature quantities for the good product images in the feature space (in this embodiment, the latent space).

[0143] With this configuration, the anomaly determination system according to this embodiment (the anomaly determination device 1 in this embodiment) can select an axis with less variation in the distribution of latent features of non-defective images, and therefore can select an axis that better expresses the formal intelligent features of defects as the first axis (the selected axis X1 in this embodiment). Here, in the latent space, the axis that better expresses the formal intelligent features of defects is considered to be relatively difficult to express for the formal intelligent features of non-defective images.

[0144] Moreover, in the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), the axis selection unit 105 selects one or more first axes (in this embodiment, the selected axis X1) from among the axes of the feature space (in this embodiment, the latent space) based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and the axis selection index.

[0145] With this configuration, the abnormality judgment system according to this embodiment (in this embodiment, the abnormality judgment device 1) can automatically select the first axis (in this embodiment, the selected axis X1) based on the axis selection index, thereby eliminating the need for the user to select an axis.

[0146] Moreover, the abnormality determination system according to this embodiment (in this embodiment, the abnormality determination device 1) further includes an operation receiving unit . The operation receiving unit 108 receives an operation from a user to select one or more first axes (in this embodiment, selected axis X1) from among the axes of the feature space (in this embodiment, latent space) based on the coordinates of the latent feature calculated by the latent feature calculation unit 104 and the axis selection index. The axis selection unit 105 selects one or more first axes (selected axis X1 in this embodiment) from among the axes of the feature space (latent space in this embodiment) based on the operation received by the operation reception unit .

[0147] With this configuration, in the anomaly determination system according to this embodiment (in this embodiment, the anomaly determination device 1), the user can check the coordinates of the latent feature, and can select the first axis (in this embodiment, the selection axis X1) while checking the change in the formal intelligent feature in the feature space.

[0148] In addition, in the abnormality determination system according to this embodiment (in this embodiment, the abnormality determination device 1), the determination unit 106 determines the degree of the formal intelligent feature of the inspection object to be determined based on one or more first axes (in this embodiment, the selection axis X1).

[0149] With this configuration, the anomaly judgment system of this embodiment (in this embodiment, the anomaly judgment device 1) can judge the severity of the defect based on the axis indicating the severity of the defect to be controlled in the feature space, thereby improving the reliability of image inspection.

[0150] Moreover, in the abnormality judgment system according to this embodiment (in this embodiment, the abnormality judgment device 1), the judgment unit 106 sets a threshold value based on the selected first axis (in this embodiment, the selected axis X1), and judges whether the inspection object to be judged is a good product or a defective product based on the set threshold value.

[0151] With this configuration, the abnormality judgment system according to this embodiment (in this embodiment, the abnormality judgment device 1) can adjust the threshold value for judgment regarding the first axis (in this embodiment, the selected axis X1) indicating the degree of the defect to be controlled by itself, and therefore there is no need to obtain the threshold value from an external source.

[0152] Second Embodiment The second embodiment of the present invention will now be described in detail with reference to the drawings. In this embodiment, a case will be described in which a learned representation learning model and a learning image are evaluated or a learning image is generated based on a selected axis X1 selected from among the axes of the feature space (latent space). The same components as those in the first embodiment described above are denoted by the same reference numerals, and descriptions of the same components and operations may be omitted.

[0153] 23 is a diagram showing an example of the configuration of an abnormality determination system 2 according to this embodiment. The abnormality determination system 2 includes an abnormality determination device 1, an evaluation device 3, and a learning image generation device 4. The configuration of the abnormality determination device 1 is similar to the configuration of the abnormality determination device 1 according to the first embodiment, and therefore a description thereof will be omitted. The evaluation device 3 and the learning image generation device 4 are each a PC, a server, or the like.

[0154] The evaluation device 3 performs various evaluations based on one or more selection axes X1 selected by the anomaly determination device 1. The evaluation device 3 acquires a trained expression learning model A1 and selection axis information C1 from the anomaly determination device 1 and uses them for processing. The evaluation device 3 includes a trained model evaluation unit 30 and a learning image evaluation unit 31.

[0155] The trained model evaluation unit 30 evaluates (monitors) the trained expression learning model A1 based on one or more selection axes X1 indicated by the selection axis information C1. For example, the trained model evaluation unit 30 inputs a group of test images to the trained expression learning model A1 and evaluates the distribution of latent features for one or more selection axes X1 indicated by the selection axis information C1.

[0156] Here, the group of inspection images includes a plurality of good product images and a plurality of defective product images. For example, for a plurality of defective product images, the trained model evaluation unit 30 determines that expected learning is being performed when the greater the degree of defect of the latent feature value is, the greater the distance from the origin is for the one or more selection axes X1 indicated by the selection axis information C1. In addition, the trained model evaluation unit 30 may determine that the smaller the variation in distribution of the latent feature value for a plurality of good product images is, for example, for the one or more selection axes X1 indicated by the selection axis information C1.

[0157] In addition, the learned model evaluation unit 30 may input a group of test images to the learned expression learning model A1 and evaluate the judgment accuracy (performance) of the learned expression learning model A1 based on one or more selection axes X1 indicated by the selection axis information C1. In addition, the learned model evaluation unit 30 may visualize the progress of learning or performance of the learned expression learning model A1.

[0158] As described above, the learned model evaluation unit 30 inputs an image of the object to be inspected into the learned expression learning model A1 and evaluates the learned expression learning model A1 based on one or more selection axes X1 selected by the anomaly judgment device 1.

[0159] In the anomaly determination system 2, the expression learning model can be evaluated by providing the learned model evaluation unit 30. In addition, in the anomaly determination system 2, the learned model evaluation unit 30 can evaluate (monitor) the learning progress of the expression learning model so that the type and degree of the defect can be interpreted in the latent space.

[0160] In the above-described first embodiment, an example has been described in which the expression learning model (DNN) uses a feature distribution space composed of feature amounts extracted from an image of an object to be inspected for judgment in the anomaly judgment system 2. After evaluating (monitoring) the learning progress of the expression learning model, or while evaluating (monitoring) the learning progress, the anomaly judgment system 2 may use the output of the expression learning model for judgment.

[0161] The training image evaluation unit 31 evaluates training images based on one or more selection axes X1 indicated by the selection axis information C1. The training images may be artificial inspection images or images of actual objects to be inspected. The training images may be images of good products or images of defective products. The training images are prepared in advance. The training image evaluation unit 31 inputs the training images to the trained representation learning model A1 and evaluates the distribution of latent features for one or more selection axes X1 indicated by the selection axis information C1.

[0162] For example, for multiple defective product images, if the latent feature amount is greater the greater the distance from the origin as the degree of defect increases, the learning image evaluation unit 31 determines that the quality of the learning images is high. Also, for example, the learning image evaluation unit 31 determines that the quality of the learning images is higher the closer the distribution of the latent feature amount for multiple non-defective product images is to a normal distribution. Here, the quality of the learning images is high when the learning images are used to train a model for expression learning, and the judgment accuracy of the model for expression learning is high.

[0163] In addition, the training image evaluation unit 31 may display on a display device the distribution of latent features for one or more selection axes X1 indicated by the selection axis information C1, thereby visualizing the formal intellectual features possessed by the training images in a latent space.

[0164] As described above, the learning image evaluation unit 31 evaluates the distribution of latent features for a set of images of the object to be inspected used to train a model for expression learning, based on one or more selection axes X1 selected by the selected anomaly judgment device 1. In the abnormality determination system 2, by including the learning image evaluation unit 31, it is possible to confirm (visualize) whether the learning images have an intended distribution in which the latent features change depending on the degree of the desired type of defect. Furthermore, the abnormality determination system 2 includes the learning image evaluation unit 31, so that a group of learning images can be generated as samples in which the distribution of certain features is controlled for artificial inspection images. The generated group of learning images can be suitably used for class classification.

[0165] The learning image generation device 4 generates learning images based on one or more selection axes X1 selected by the anomaly determination device 1. The learning image generation device 4 acquires the trained expression learning model A1 and selection axis information C1 from the anomaly determination device 1 and uses them for processing.

[0166] For example, the learning image generating device 4 generates a plurality of defective product images by continuously or stepwise changing the degree of a desired type of defect from a previously prepared non-defective product image. The learning image generating device 4 inputs each of the generated defective product images to the trained representation learning model A1, and generates a plot of latent variables based on the selection axis X1 indicated by the selection axis information C1. The learning image generating device 4 judges whether the plot of latent variables has an intended distribution in which the latent feature changes according to the degree of a desired type of defect, which is a formal intellectual feature.

[0167] If the plot of the latent variables is in the intended distribution, the training image generating device 4 sets the generated defective product image as a training image. If the plot of the latent variables is not in the intended distribution, the training image generating device 4 changes, for example, a non-defective product image or the type of defect, and repeats the above-mentioned process until the plot of the latent variables is in the intended distribution.

[0168] In addition, the training image generation device 4 may display on a display device the distribution of latent features for one or more selection axes X1 indicated by the selection axis information C1, thereby visualizing the formal intellectual features possessed by the generated training images in a latent space.

[0169] The learning image generating device 4 may generate learning images by decoding the plot of the latent variables based on the selection axis X1 indicated by the selection axis information C1. Furthermore, the learning image generating device 4 may generate learning images based on the evaluation result of the learning image by the learning image evaluation unit 31 provided in the evaluation device 3.

[0170] As described above, the learning image generating device 4 generates an image of the object to be inspected for learning the model of expression learning based on the selected selection axis X1. In the abnormality determination system 2, by including the learning image generation device 4, it is possible to generate learning images that follow an intended distribution in which the latent feature amount changes according to the degree of a desired type of defect.

[0171] In the present embodiment, an example has been described in which the evaluation device 3 and the learning image generation device 4 are provided in the anomaly determination system 2 as devices separate from the anomaly determination device 1, but this is not limited to the above. The trained model evaluation unit 30 and the learning image evaluation unit 31 may be provided as functional units possessed by the control unit 10 of the anomaly determination device 1. Furthermore, the learning image generation device 4 may be provided as a functional unit possessed by the control unit 10 of the anomaly determination device 1 as a learning image generation unit. The learning image generation device 4 is an example of a learning image generation unit.

[0172] In addition, a part of the anomaly determination device 1, the evaluation device 3, and the learning image generation device 4 in the above-mentioned embodiment, for example, the learning unit 100, the trained model acquisition unit 101, the artificial inspection image generation unit 102, the inspection image acquisition unit 103, the latent feature amount calculation unit 104, the axis selection unit 105, the judgment unit 106, the output unit 107, the operation reception unit 108, the trained model evaluation unit 30, the learning image evaluation unit 31, and the learning image generation unit may be realized by a computer. In that case, a program for realizing this control function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into and executed by a computer system. In addition, the "computer system" referred to here is a computer system built into the anomaly determination device 1, the evaluation device 3, or the learning image generation device 4, and includes hardware such as an operating system (OS) and peripheral devices. In addition, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs (Read Only Memory), and CD-ROMs (Compact Disc-Read Only Memory), as well as storage devices such as hard disks built into computer systems. Furthermore, the term "computer-readable recording medium" may also include devices that dynamically hold a program for a short period of time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line, and devices that hold a program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or client in such cases. Furthermore, the above-mentioned program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system. In addition, the anomaly determination device 1, the evaluation device 3, and the learning image generation device 4 in the above-mentioned embodiments may be partly or entirely realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the anomaly determination device 1, the evaluation device 3, and the learning image generation device 4 may be individually processed, or partly or entirely integrated into a processor. The integrated circuit method is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Furthermore, when an integrated circuit technology that can replace LSI appears due to advances in semiconductor technology, an integrated circuit based on that technology may be used.

[0173] Although one embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes, etc. are possible within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]

[0174] 1... anomaly judgment device (anomaly judgment system), 101... a trained model acquisition unit, 103... an inspection image acquisition unit, 104... a latent feature amount calculation unit, 106... a judgment unit, A1... a trained expression learning model, X1... a selection axis (first axis)

Claims

1. a trained model acquisition unit that acquires a trained model, which is a model of expression learning in which a relationship between an image of an object to be inspected and a determination result of whether or not the object to be inspected has a defect is learned; an inspection image acquisition unit that acquires a plurality of inspection images including at least one of a non-defective product image, which is an image of the inspection object that is a non-defective product, and a defective product image, which is an image of the inspection object that is a quantifiable feature amount regarding the appearance of a defect, generated by continuously or stepwise changing a formal intellectual feature amount; a latent feature calculation unit that calculates coordinates of the latent feature extracted from the inspection image in a feature space that is a space of latent feature extracted from an image by the trained model by inputting each of the plurality of inspection images acquired by the inspection image acquisition unit into the trained model acquired by the trained model acquisition unit; an axis selection unit that selects one or more first axes that better express the formal intellectual feature, the first axes being selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation unit and an axis selection index that is a predetermined index; An abnormality determination system comprising:

2. the inspection image includes the defective product image, The axis selection index is that there is a positive or negative correlation between the latent feature quantity indicated by the axis of the feature space and the formal intellectual feature quantity. The abnormality determination system according to claim 1 .

3. The plurality of inspection images includes a plurality of non-defective product images, The axis selection index is that the distribution of the latent feature amount of the non-defective product image in the feature space has little variation. The abnormality determination system according to claim 1 .

4. The axis selection unit selects one or more first axes from among axes in the feature space based on the coordinates of the latent feature calculated by the latent feature calculation unit and the axis selection index. The abnormality determination system according to claim 1 .

5. an operation receiving unit configured to receive an operation from a user to select one or more first axes from among axes of the feature space based on coordinates of the latent feature calculated by the latent feature calculation unit and the axis selection index, The axis selection unit selects one or more first axes from among axes of the feature space based on the operation received by the operation reception unit. The abnormality determination system according to claim 1 .

6. A determination unit that determines the degree of the formal intellectual feature for the inspection object to be determined based on one or more of the first axes. The abnormality determination system according to claim 1 , further comprising:

7. The determination unit sets a threshold value based on the selected one or more of the first axes, and determines whether the inspection object to be determined is a non-defective product or a defective product based on the set threshold value. The abnormality determination system according to claim 6 .

8. a trained model evaluation unit that inputs an image of the inspection object into the trained model and evaluates the trained model based on the selected one or more first axes; The abnormality determination system according to claim 1 , further comprising:

9. a learning image evaluation unit that evaluates a distribution of the latent feature quantities for a set of images of the test object used to train a model of representation learning based on the selected one or more first axes; The abnormality determination system according to claim 1 , further comprising:

10. a learning image generating unit that generates an image of the test object for learning a model of representation learning based on the selected one or more of the first axes; The abnormality determination system according to claim 1 , further comprising:

11. a trained model acquisition step of acquiring a trained model, which is a model of expression learning in which a relationship between an image of an inspection object and a determination result of whether or not the inspection object has a defect is learned; an inspection image acquisition step of acquiring a plurality of inspection images including at least one of a non-defective image, which is an image of the inspection object that is a non-defective product, and a defective image, which is an image of the inspection object that is a quantifiable feature of the appearance of a defect and is generated by continuously or stepwise changing a formal intellectual feature, which is an image of the inspection object; a latent feature calculation step of inputting each of the plurality of inspection images acquired by the inspection image acquisition step into the trained model acquired by the trained model acquisition step, thereby calculating coordinates of the latent feature extracted from the inspection image in a feature space, which is a space of latent feature extracted from an image by the trained model; an axis selection step of selecting one or more first axes that better express the formal intellectual feature, the first axes being selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation step and an axis selection index that is a predetermined index; The abnormality determination method includes the steps of:

12. On the computer, a trained model acquisition step of acquiring a trained model which is a model of expression learning in which a relationship between an image of an inspection object and a determination result of whether or not the inspection object has a defect is learned; an inspection image acquisition step of acquiring a plurality of inspection images including at least one of a non-defective image, which is an image of the inspection object that is a non-defective product, and a defective image, which is an image of the inspection object that is a quantifiable feature of the appearance of a defect and is generated by continuously or stepwise changing a formal intellectual feature, which is an image of the inspection object; a latent feature calculation step of inputting each of the plurality of inspection images acquired by the inspection image acquisition step into the trained model acquired by the trained model acquisition step, thereby calculating coordinates of the latent feature extracted from the inspection image in a feature space, which is a space of latent feature extracted from an image by the trained model; an axis selection step of selecting one or more first axes that better express the formal intellectual feature, the first axes being selected from the axes of the feature space based on the coordinates of the latent feature calculated by the latent feature calculation step and an axis selection index that is a predetermined index; A program for executing the above.

Citation Information

Patent Citations

  • Abnormality determination method and abnormality determination device

    JP2021174456A

  • Learnable defect detection for semiconductor applications

    US20200327654A1

  • Image generation device and image generation method of generating an inspection-purpose image for making performance adjustment of image inspection system

    JP2018205123A

  • Visual inspection device, conversion data generator, and program

    JP2018205163A

  • System and program for detecting abnormality

    JP2020144626A