Model usage evaluation method, model usage evaluation system, and model usage evaluation program
The model usage evaluation method assesses the appropriateness of inference models by comparing target and teacher image features, ensuring effective performance across varying image structures and enabling retraining when necessary, thus addressing the inconsistency in existing inference model effectiveness.
Patent Information
- Application Number
- PCT/JP2023/035211
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-09-27
- Publication Date
- 2024-08-29
AI Technical Summary
Existing inference models generated through machine learning training are not consistently effective across all image types, as their noise removal and other inference tasks depend on the similarity between the target image and the teacher image used for training, leading to suboptimal performance when structural differences exist.
A model usage evaluation method and system that compares the feature amounts of a target image with those of a teacher image to determine the appropriateness of using an inference model, allowing for appropriate model utilization and potential retraining when necessary, using feature acquisition models and techniques like one-class SVM to assess similarity and performance.
Enables the appropriate use of inference models for noise removal, anomaly detection, and focal position estimation by evaluating the structural similarity between target and teacher images, ensuring effective performance and allowing for model retraining when necessary.
Smart Images

Figure JP2023035211_29082024_PF_FP_ABST
Abstract
Description
Model utilization evaluation method, model utilization evaluation system, and model utilization evaluation program
[0001] The present invention relates to a model utilization evaluation method, a model utilization evaluation system, and a model utilization evaluation program for evaluating the utilization of an inference model that has been generated by machine learning training and that inputs image-based information.
[0002] It is known that noise removal from an image is performed using an inference model generated by machine learning training (see, for example, Patent Literature 1). That is, it is known that noise removal from an image is performed using AI (artificial intelligence).
[0003] International Publication No. 2022 / 172506
[0004] However, noise removal using an inference model is not necessarily effective for all images. If the structure of the image to be denoised is similar to the structure of the teacher image used in training to generate the inference model, the image noise can be removed appropriately. On the other hand, if these structures are significantly different, the image noise may not be removed appropriately. Similar problems can also occur with inference models used for purposes other than noise removal.
[0005] One embodiment of the present invention has been made in consideration of the above, and aims to provide a model utilization evaluation method, a model utilization evaluation system, and a model utilization evaluation program that enable appropriate use of an inference model generated by machine learning training.
[0006] In order to achieve the above-mentioned object, a model utilization evaluation method according to one embodiment of the present invention is a model utilization evaluation method for evaluating the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, and includes a target image feature acquisition step for acquiring features of a target image used as input to the inference model, a teacher image feature acquisition step for acquiring features of a teacher image used in training for generating the inference model, and an evaluation step for comparing the features of the target image acquired in the target image feature acquisition step with the features of the teacher image acquired in the teacher image feature acquisition step to evaluate the utilization of the inference model for the target image.
[0007] In a model utilization evaluation method according to an embodiment of the present invention, the feature values of a target image are compared with the feature values of a teacher image to evaluate the utilization of an inference model. This evaluation enables the appropriate utilization of the inference model for the target image. For example, the inference model can be utilized when it is believed that the inference model can appropriately remove noise from the target image.
[0008] In the target image feature acquisition step, a target image may be acquired, and information based on the acquired target image may be input to a feature acquisition model generated by machine learning training to acquire the feature of the target image. This configuration makes it possible to appropriately and reliably acquire the feature of the target image. As a result, it is possible to appropriately and reliably implement one embodiment of the present invention.
[0009] The feature acquisition model may be a model that outputs a feature vector, which is a feature of an image related to input information. With this configuration, feature comparison can be easily and appropriately performed. As a result, one embodiment of the present invention can be easily and reliably implemented.
[0010] In the evaluation step, the distance or angle between the feature of the target image and the feature of the teacher image may be calculated for the comparison of the feature. In the evaluation step, the feature comparison may be performed by determining whether the feature of the target image is included in a class of the teacher image generated from the feature of the teacher image. With these configurations, the feature of the target image and the feature of the teacher image can be appropriately compared, and as a result, an appropriate evaluation can be performed.
[0011] The inference model may be a model used to remove noise from an image related to the input information. With this configuration, noise can be removed appropriately from the target image.
[0012] The inference model may be a model used for detecting an anomaly in an image related to the input information. With this configuration, an anomaly in the target image can be appropriately detected.
[0013] The inference model may be a model used to estimate a focus position when in focus corresponding to an image related to input information. With this configuration, it is possible to appropriately estimate a focus position corresponding to a target image.
[0014] In the evaluation step, the evaluation of the use of the inference model for the target image may be performed by determining whether the use of the inference model for the target image is appropriate or whether the inference model should be retrained. With this configuration, the use of the inference model for the target image can be evaluated appropriately and reliably.
[0015] One embodiment of the present invention can be described as an invention of a model utilization evaluation method as described above, and can also be described as an invention of a model utilization evaluation system and a model utilization evaluation program as described below. These are essentially the same invention, just in different categories, and have similar functions and effects.
[0016] In other words, a model utilization evaluation system according to one embodiment of the present invention is a model utilization evaluation system that evaluates the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, and is equipped with a target image feature acquisition means that acquires the features of a target image used as input to the inference model, a teacher image feature acquisition means that acquires the features of a teacher image used in training for generating the inference model, and an evaluation means that compares the features of the target image acquired by the target image feature acquisition means with the features of the teacher image acquired by the teacher image feature acquisition means to evaluate the utilization of the inference model for the target image.
[0017] In addition, a model utilization evaluation program according to one embodiment of the present invention is a model utilization evaluation program that causes a computer to operate as a model utilization evaluation system that evaluates the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, and causes the computer to function as a target image feature acquisition means that acquires the features of a target image used as input to the inference model, a teacher image feature acquisition means that acquires the features of a teacher image used in training for generating the inference model, and an evaluation means that compares the features of the target image acquired by the target image feature acquisition means with the features of the teacher image acquired by the teacher image feature acquisition means to evaluate the utilization of the inference model for the target image.
[0018] According to one embodiment of the present invention, it is possible to appropriately utilize an inference model generated by machine learning training.
[0019] 1 is a diagram illustrating a configuration of a model utilization evaluation system according to an embodiment of the present invention. FIG. 1 is a diagram illustrating an example of an image structure. FIG. 2 is a diagram illustrating an example of noise removal using a teacher image and an inference model generated using the teacher image. FIG. 3 is a diagram illustrating another example of noise removal using a teacher image and an inference model generated using the teacher image. FIG. 4 is a diagram schematically illustrating an example of a feature acquisition model for acquiring a feature vector from an image. FIG. 5 is a diagram illustrating the feature vector of a target image and the feature vector of a teacher image. FIG. 6 is a diagram for explaining evaluation using a one-class SVM. FIG. 7 is a diagram illustrating teacher images, etc. used in verifying the evaluation of the embodiment. FIG. 8 is a diagram illustrating teacher images and verification images used in verifying the evaluation of the embodiment. FIG. 9 is a graph showing the distance between the feature vector of a teacher image and the feature vectors of the teacher image and the verification image. FIG. 10 is a diagram for explaining verification using verification images. FIG. 11 is a graph showing the PSNR of an image after noise removal based on the verification image, and the distance between the feature vectors. FIG. 11 is a diagram for explaining an example in which an inference model is used for anomaly detection. FIG. 12 is a diagram for explaining an example in which an inference model is used for estimating the focal position during focusing. FIG. 13 is a flowchart illustrating a model utilization evaluation method, which is a process executed in the model utilization evaluation system according to an embodiment of the present invention. 1 is a diagram showing the configuration of a model utilization evaluation program according to an embodiment of the present invention, together with a recording medium.
[0020] Hereinafter, embodiments of a model utilization evaluation method, a model utilization evaluation system, and a model utilization evaluation program according to the present invention will be described in detail with reference to the drawings. In the description of the drawings, the same elements are given the same reference numerals, and duplicated explanations will be omitted.
[0021] FIG. 1 shows a model utilization evaluation system 10 according to this embodiment. The model utilization evaluation system 10 is a system (device) that evaluates the utilization of an inference model (learning model, trained model). An inference model is a model that inputs image-based information and performs a predetermined inference. The inference model is generated in advance by machine learning training. However, as will be described later, the evaluation of the utilization of an inference model in this embodiment is performed based on the teacher image used to generate the inference model, and the inference model itself is not required. Therefore, after the evaluation in this embodiment, an inference model may be generated using the teacher image used for the evaluation.
[0022] For example, the inference model is a model used to remove noise (denoising, noise reduction) from an image related to input information. In this case, the inference model inputs, for example, an image containing noise and outputs an image after noise removal, or an image of the noise contained in the image. The inference model may also perform inferences other than those described above.
[0023] The inference model may include, for example, a neural network. The neural network may be multi-layered. That is, the inference model may be generated by deep learning. The neural network may also be a convolutional neural network (CNN).
[0024] The inference model has neurons in its input layer for inputting information based on an image. For example, the information input to the inference model is the pixel value (brightness value) of each pixel in the image. In this case, the input layer has neurons equal to the number of pixels in the image, and each neuron receives the pixel value of the corresponding pixel. Note that the information input to the inference model may be other than the pixel value of each pixel, as long as it is based on the image.
[0025] The inference model has neurons in its output layer for outputting the inference result. For example, the information output from the inference model is the pixel value of each pixel of the image after noise removal, or the noise (image) contained in the image related to the information input to the inference model. In this case, the output layer has neurons equal to the number of pixels in the image, and each neuron outputs the pixel value of the corresponding pixel. Note that the information output from the inference model may be something other than the pixel value of each pixel, as long as it indicates the inference result.
[0026] Furthermore, the inference model may be constructed using something other than a neural network, as long as it is generated through machine learning training and performs the input and output described above.
[0027] The inference model is expected to be used as a program module that is part of artificial intelligence software. The inference model is used, for example, in a computer having a processor and memory, and the computer's processor operates according to instructions from the model stored in the memory. For example, the computer's processor operates according to the instructions to input information to the model, perform calculations according to the model, and output results from the model. Specifically, the computer's processor operates according to the instructions to input information to the input layer of a neural network, perform calculations based on parameters such as learning weighting coefficients in the neural network, and output results from the output layer of the neural network.
[0028] A teacher image is used for training to generate an inference model. The teacher image may be generated by a conventional simulation for generating an image. For example, when generating an inference model for noise removal, a noise image is generated by artificially adding noise to a pre-prepared teacher image. Information based on the generated noise image is used as input to the inference model, and information based on the teacher image, i.e., an image without noise, is used as output from the inference model, and machine learning training is performed to generate the inference model. Alternatively, information based on the generated noise image is used as input to the inference model, and information based on an image containing only noise added to the teacher image is used as output from the inference model, and machine learning training is performed to generate the inference model. In addition, generation of an inference model using a teacher image may be performed by a method other than the above.
[0029] The inference model targeted in this embodiment may be a conventional inference model. Furthermore, the generation of the inference model by machine learning training may also be performed using a conventional method. The generation of the inference model and the use of the inference model may be performed independently of the model usage evaluation system 10 according to this embodiment. That is, the generation of the inference model and the use of the inference model may be performed in a device other than the model usage evaluation system 10 according to this embodiment. However, either or both of the generation of the inference model and the use of the inference model may be performed in the same device as the model usage evaluation system 10 according to this embodiment.
[0030] The performance of an inference model depends on the teacher image used to generate the inference model and the target image used for inference. For example, if an inference model is used for noise removal, the noise removal performance of the inference model depends on the teacher image and the target image from which noise is removed. More specifically, the noise removal performance depends on the structure of these images.
[0031] Examples of these image structures are shown in Figure 2. The example structure shown in Figure 2 is an example of a structure generated by simulation. Figure 2(a) shows a luminance change structure in which pixel values vary greatly depending on the position in the image region. Figure 2(b) shows the structure of a resolution chart. Figure 2(c) shows the structure of a chain chart.
[0032] If the structure of the teacher image and the structure of the target image are similar, appropriate noise removal is possible. When generating an inference model, varying the structure of the teacher image makes it possible to accommodate target images with various structures. However, it is difficult to use teacher images with all structures to generate an inference model.
[0033] 3 and 4 show examples in which an inference model is generated using a teacher image 20 (learning structure), and noise-removed images 22a and 22b are generated from target images 21a and 21b to be denoised. As shown in Fig. 3, when the structure of the teacher image 20 and the structure of the target image 21a are similar, i.e., when the inference model has learned the structure, appropriate noise removal is possible. As shown in Fig. 4, when the structure of the teacher image 20 and the structure of the target image 21a are not similar, i.e., when the inference model has not learned the structure, appropriate noise removal cannot be performed, and it can be seen that the structure of the denoised image 22b, particularly the elliptical black frame portion, is blurred and disappears.
[0034] The evaluation of the use of an inference model by the model usage evaluation system 10 is based on the above and evaluates the use of the inference model for a target image. The evaluation is, for example, an evaluation of whether the use of the inference model for the target image is appropriate, or whether the inference model should be retrained (retrained machine learning) using a teacher image for the target image. If it is considered that the performance of the inference model will be appropriately demonstrated when used for the target image, it is evaluated that the use of the inference model for the target image is appropriate, or that retraining of the inference model is not necessary. If it is considered that the performance of the inference model will not be appropriately demonstrated when used for the target image, it is evaluated that the use of the inference model for the target image is inappropriate, or that the inference model should be retrained.
[0035] The inference model can be used appropriately through evaluation by the model utilization evaluation system 10. For example, when noise removal is performed on a target image using the inference model, noise removal can be performed appropriately.
[0036] The model utilization evaluation system 10 is configured to include a conventional computer including hardware such as a processor such as a CPU (Central Processing Unit), a memory, and a communication module. Each function of the model utilization evaluation system 10, which will be described later, is performed by these components operating through programs or the like. The computer that constitutes the model utilization evaluation system 10 may be a computer system including multiple computers. The computer may also be configured using cloud computing or edge computing.
[0037] Next, we will explain the functions of the model utilization evaluation system 10 according to this embodiment. As shown in Figure 1, the model utilization evaluation system 10 is configured to include a target image feature amount acquisition unit 11, a teacher image feature amount acquisition unit 12, and an evaluation unit 13.
[0038] The target image feature acquisition unit 11 is a target image feature acquisition means that acquires feature amounts of a target image to be used as input to an inference model. The target image feature acquisition unit 11 may acquire a target image and input information based on the acquired target image into a feature acquisition model generated by machine learning training to acquire feature amounts of the target image. The feature acquisition model may be a model that outputs a feature vector that is a feature amount of an image related to the input information.
[0039] The feature of the target image acquired by the target image feature acquisition unit 11 is information indicating the feature of the target image. For example, the feature is a feature vector, which is a vector having a predetermined number of dimensions. The feature may be anything other than a feature vector as long as it allows comparison between feature amounts as described below.
[0040] For example, the target image feature amount acquisition unit 11 acquires the feature amounts of the target image as follows. The target image feature amount acquisition unit 11 acquires a target image related to the evaluation of an inference model. The target image may be acquired, for example, by accepting an input operation of the target image by a user of the model usage evaluation system 10, or by receiving a target image transmitted from another system such as a system that performs inference using an inference model. The target image may also be acquired by other methods.
[0041] The target image may be any image used for inference using an inference model. For example, the target image is an image that is the target of noise removal using an inference model as described above. The target image may be an X-ray image obtained by X-ray imaging of the object to be imaged (sample). When an X-ray image is used as the target image, the target image may be imaged under conditions of as high a dose and as low noise as possible so that the structure of the target image can be clarified and appropriate evaluation can be performed. Furthermore, the target image may be imaged using visible light or infrared light.
[0042] The target image feature amount acquisition unit 11 acquires feature amounts from the acquired target image. For example, in order to acquire feature amounts, the target image feature amount acquisition unit 11 stores a feature amount acquisition model in advance. The feature amount acquisition model is generated in advance by machine learning training. The feature amount acquisition model is a model for inputting image-based information and acquiring feature amounts of the input image.
[0043] The feature acquisition model includes, for example, a neural network. The neural network may be multi-layered. That is, the feature acquisition model may be generated by deep learning. The neural network may also be a convolutional neural network.
[0044] The feature acquisition model has neurons in its input layer for inputting information based on an image. For example, the information input to the feature acquisition model is the pixel value (brightness value) of each pixel in the image. In this case, the input layer has neurons equal to the number of pixels in the image, and each neuron receives the pixel value of the corresponding pixel. Note that the information input to the feature acquisition model may be other than the pixel value of each pixel as long as it is based on the image.
[0045] The feature acquisition model has neurons in its output layer for outputting features. For example, the information output from the feature acquisition model is a feature vector. In this case, the output layer has neurons equal to the number of dimensions of the feature vector, and each neuron outputs the value of each element of the corresponding feature vector. Note that the information output from the feature acquisition model may be something other than the value of each element of the feature vector, as long as it is a feature. Furthermore, the feature acquisition model does not have to output features, and may be any model capable of calculating features from the output from the feature acquisition model or information obtained by calculation using the feature acquisition model.
[0046] Furthermore, the feature acquisition model may be configured using something other than a neural network, as long as it is generated by machine learning training and performs the input and output described above.
[0047] The feature acquisition model is expected to be used as a program module that is part of artificial intelligence software. The feature acquisition model is used, for example, in a computer having a processor and memory, and the computer's processor operates according to instructions from the model stored in the memory. For example, the computer's processor operates in accordance with the instructions to input information to the model, perform calculations according to the model, and output results from the model. Specifically, the computer's processor operates in accordance with the instructions to input information to the input layer of a neural network, perform calculations based on parameters such as learning weighting coefficients in the neural network, and output results from the output layer of the neural network.
[0048] The feature acquisition model may be an existing model generated by a conventional machine learning method and used to acquire features of input information, or may use such a model. For example, the feature acquisition model may be a model such as ResNet50, ResNet101, or Efficient Net, or may be based on such a model. The feature acquisition model may be a model used to identify objects in images, or may use such a model. By using such a model as the feature acquisition model, it is possible to acquire features of the target image that are appropriate for evaluating the inference model.
[0049] FIG. 5 shows a schematic diagram of a feature vector 31 being acquired from a target image 30 using a feature acquisition model 40. In FIG. 5, the feature vector 31 indicates the value of each element as density (this also applies to the subsequent feature vectors). The feature acquisition model 40 shown in FIG. 5 uses an efficient net. The feature acquisition model 40 extracts the final layer of each level in the efficient net, and vectorizes it by taking the average for each channel using global pooling to generate the feature vector 31.
[0050] The target image feature amount acquisition unit 11 may acquire the feature amounts of the target image by a method other than the above. For example, the target image feature amount acquisition unit 11 may acquire the feature amounts from the target image by a predetermined method without using a feature amount acquisition model. Furthermore, the target image feature amount acquisition unit 11 may acquire the feature amounts of the target image without acquiring the target image. In this case, for example, the target image feature amount acquisition unit 11 may acquire the feature amounts of the target image generated in another system or the like by a method similar to the acquisition of the target image described above. The target image feature amount acquisition unit 11 outputs the acquired feature amounts of the target image to the evaluation unit 13.
[0051] The teacher image feature acquisition unit 12 is a teacher image feature acquisition means for acquiring the feature of a teacher image used in training for generating an inference model.
[0052] The features of the teacher image acquired by the teacher image feature acquisition unit 12 are information indicating the features of the teacher image. The features of the teacher image correspond to the features of the target image. For example, the features of the teacher image have the same format as the features of the target image and are generated in the same manner as the features of the target image. For example, if the features of the target image are feature vectors, the features of the teacher image are also feature vectors.
[0053] For example, the teacher image feature amount acquisition unit 12 acquires the feature amounts of the teacher image as follows: The teacher image feature amount acquisition unit 12 acquires a teacher image used for training to generate an inference model. The teacher image may be acquired, for example, by accepting an input operation of a teacher image from a user of the model usage evaluation system 10, or by receiving a teacher image transmitted from another system such as a system that generates an inference model. The teacher image may also be acquired by other methods. When there are multiple teacher images, the teacher image feature amount acquisition unit 12 may acquire multiple teacher images.
[0054] The teacher image may be indirectly used for training the generation of an inference model. For example, an image used directly for generating an inference model, such as the generation of the noise-removing inference model described above, may be an image in which artificial noise has been added to the teacher image.
[0055] The teacher image feature amount acquisition unit 12 acquires feature amounts from the acquired teacher image. The teacher image feature amount acquisition unit 12 acquires feature amounts of the teacher image in the same way as the target image feature amount acquisition unit 11 acquires feature amounts from the target image. For example, if a feature amount acquisition model is used to acquire the feature amounts of the target image, the same feature amount acquisition model is also used to acquire the feature amounts of the teacher image. If there are multiple teacher images, the teacher image feature amount acquisition unit 12 acquires feature amounts of each teacher image.
[0056] The teacher image feature amount acquisition unit 12 may acquire the feature amounts of the teacher image using a method other than the above. For example, the teacher image feature amount acquisition unit 12 may acquire the feature amounts from the teacher image using a predetermined method without using a feature amount acquisition model. Furthermore, the teacher image feature amount acquisition unit 12 may acquire the feature amounts of the teacher image without acquiring the teacher image. In this case, for example, the teacher image feature amount acquisition unit 12 may acquire the feature amounts of a teacher image generated in another system or the like using a method similar to the method used to acquire the teacher image. Furthermore, the model usage evaluation system 10 may store the feature amounts of the teacher image in advance, and the teacher image feature amount acquisition unit 12 may read and acquire the feature amounts of the stored teacher image. The teacher image feature amount acquisition unit 12 outputs the acquired feature amounts of the teacher image to the evaluation unit 13.
[0057] The evaluation unit 13 is an evaluation means that compares the feature amounts of the target image acquired by the target image feature amount acquisition unit 11 with the feature amounts of the teacher image acquired by the teacher image feature amount acquisition unit 12 to evaluate the use of the inference model for the target image. To compare the feature amounts, the evaluation unit 13 may calculate the distance or angle between the feature amounts of the target image and the feature amounts of the teacher image. To compare the feature amounts, the evaluation unit 13 may determine whether the feature amounts of the target image are included in a class of the teacher image generated from the feature amounts of the teacher image. To evaluate the use of the inference model for the target image, the evaluation unit 13 may determine whether the use of the inference model for the target image is appropriate or whether the inference model should be retrained.
[0058] The comparison of features by the evaluation unit 13 may correspond to the estimation of similarity between the structure of the target image and the structure of the teacher image described above. If the comparison of features by the evaluation unit 13 estimates that the structure of the target image and the structure of the teacher image are similar (in this case, it is considered that the performance of the inference model will be properly demonstrated), it is evaluated that use of the inference model for the target image is appropriate, or that re-learning of the inference model is not necessary. If the comparison of features by the evaluation unit 13 estimates that the structure of the target image and the structure of the teacher image are not similar (in this case, it is considered that the performance of the inference model will not be properly demonstrated), it is evaluated that use of the inference model for the target image is inappropriate, or that re-learning of the inference model is necessary.
[0059] For example, the evaluation unit 13 evaluates the use of an inference model for a target image as follows: The evaluation unit 13 inputs the feature amounts of the target image from the target image feature amount acquisition unit 11. The evaluation unit 13 inputs the feature amounts of the teacher image from the teacher image feature amount acquisition unit 12. The evaluation unit 13 calculates the distance or angle between the feature amounts of the target image and the feature amounts of the teacher image. As shown in FIG. 6 , for example, the evaluation unit 13 calculates the distance or angle between a feature vector 31, which is the feature amount of the target image 30, and each of feature vectors 51, which are the feature amounts of multiple teacher images. Specifically, the evaluation unit 13 calculates the Euclidean distance or Mahalanobis distance as the distance between the feature vectors 31 and 51. Alternatively, the evaluation unit 13 calculates the cosine similarity as the angle between the feature vectors 31 and 51. The evaluation unit 13 uses the shortest distance among the calculated distances as the distance used for evaluation. Alternatively, the evaluation unit 13 uses the smallest angle among the calculated angles as the angle used for evaluation.
[0060] An example of calculating the distance between feature vectors 31 between target images 30 shown in Figure 5 is shown below. The images 30 in the top, middle, and bottom rows are (1) a person, (2) pasta, and (3) a person, respectively. The distance between (1) person and (2) pasta is 1.22, the distance between (1) person and (3) person is 0.53, and the distance between (3) person and (2) pasta is 0.87. As such, there is a tendency for the distance between images of people to be close, and for the distance between images with different features to be farther.
[0061] The evaluation unit 13 compares the calculated distance or angle with a preset threshold. If the calculated distance or angle is equal to or less than the threshold, the evaluation unit 13 evaluates that the use of the inference model for the target image is appropriate, or that re-learning of the inference model is not necessary. In this case, the structure of the target image and the structure of the teacher image are similar, and it is considered that the performance of the inference model will be properly demonstrated. If the calculated distance or angle exceeds the threshold, the evaluation unit 13 evaluates that the use of the inference model for the target image is inappropriate, or that the inference model should be re-learned. In this case, it is considered that the structure of the target image and the structure of the teacher image are not similar, and it is considered that the performance of the inference model will not be properly demonstrated.
[0062] Alternatively, the evaluation unit 13 generates a class of the teacher image from the feature amounts of the teacher image, and determines whether the feature amounts of the target image are included in the generated class. For example, the evaluation unit 13 uses a one-class SVM (Support Vector Machine) for this determination. Specifically, the evaluation unit 13 generates a class of the teacher image from a feature vector, which is the feature amount of the teacher image, using the one-class SVM. The evaluation unit 13 determines whether the feature vector, which is the feature amount of the target image, is included in the class of the teacher image.
[0063] If the feature vector of the target image is included in the class of the teacher image, the evaluation unit 13 evaluates that the use of the inference model for the target image is appropriate, or that re-learning of the inference model is not necessary. In this case, the structure of the target image and the structure of the teacher image are similar, and it is considered that the performance of the inference model will be properly demonstrated. If the feature vector of the target image is not included in the class of the teacher image, the evaluation unit 13 evaluates that the use of the inference model for the target image is inappropriate, or that the inference model should be re-learned. In this case, the structure of the target image and the structure of the teacher image are not similar, and it is considered that the performance of the inference model will not be properly demonstrated.
[0064] FIG. 7 shows a graph in which the feature vectors of the teacher images are arranged in a two-dimensional space. iEach of these is a feature vector of the teacher image. The evaluation unit 13 calculates a class boundary (y = 0 in the example shown in FIG. 7) from the feature vector of the teacher image. If the feature vector of the target image is located closer to the class of the teacher image than the calculated boundary (in the example shown in FIG. 7, if the feature vector of the target image is in the range of y > 0), it is determined that the feature vector of the target image is included in the class of the teacher image. If the feature vector of the target image is not located closer to the class of the teacher image than the calculated boundary (in the example shown in FIG. 7, if the feature vector of the target image is in the range of y < 0), it is determined that the feature vector of the target image is not included in the class of the teacher image.
[0065] The evaluation unit 13 outputs information indicating the evaluation result. For example, the evaluation unit 13 outputs the information indicating the evaluation result in a format that can be recognized by the user of the model utilization evaluation system 10 (for example, display or audio output). The user of the model utilization evaluation system 10 refers to the output from the model utilization evaluation system 10 and determines the use of the inference model for the target image. For example, if the output indicates that the use of the inference model for the target image is appropriate, the user of the model utilization evaluation system 10 uses the inference model for the target image. Furthermore, if the output indicates that the inference model should be retrained, the user of the model utilization evaluation system 10 retrains the inference model for the target image.
[0066] The information indicating the evaluation result may be output by a method other than the above. For example, the information may be output (transmitted) to another system (device) or another module. If the evaluation unit 13 evaluates that the use of the inference model for the target image is appropriate, the evaluation unit 13 may control a system that performs inference using the inference model to perform inference for the target image.
[0067] The following describes the verification of evaluation using the model utilization evaluation system 10 according to this embodiment. The evaluation was verified using the image shown in FIG. 8. Machine learning training was performed using the teacher image 50 shown in FIG. 8 to generate an inference model for noise removal. FIG. 8 also shows an example in which noise removal was performed using the inference model on a noise image 52, in which noise was added to the teacher image 50, to obtain an inference image 53 after noise removal. The structure of the noise image 52 is the same as that of the teacher image 50 used to generate the inference model, so appropriate noise removal is possible, as shown in FIG. 8.
[0068] Additionally, various verification images 60 were prepared as shown in FIG. 9 . As shown in FIG. 9 , feature vectors 51, 61 according to this embodiment were calculated for the teacher image 50 and the verification images 60. FIG. 10 shows a graph of the distance according to this embodiment between the feature vector 51 of the teacher image 50 and the feature vectors 51, 61 of these images 50, 60. In FIG. 10 , the teacher image 50 is designated as image No. 1, and the verification images 60 are designated as images No. 2 to No. 10. As shown in FIG. 10 , the distance between portrait images similar to the teacher image 50 (images 60 of images No. 3 and No. 4) is small, while the distance between images of landscapes, charts, etc. that are significantly different from the teacher image 50 (images 60 of images No. 5, No. 6, and No. 8) is large. In this way, the distance in this embodiment corresponds to the similarity of the structures between the images.
[0069] 11, noise was added to each verification image 60 to generate a noise image 62, and noise removal was performed using an inference model to obtain a noise-removed inference image 63. In this noise removal, the degree to which the image structure was maintained while the noise removal was performed was evaluated using the PSNR (Peak Signal to Noise Ratio) of the inference image 63. The PSNR is an index value that indicates the degree of image degradation, with a higher value indicating less degradation. The PSNR is often used as an objective evaluation scale.
[0070] FIG. 12 shows a graph of the PSNR of inference images 53 and 63 after noise removal corresponding to the teacher image 50 and the verification image 60. In this graph, the verification image 60 is sorted in ascending order of the distance between the feature vectors 51 and 61 shown in FIG. 10 . As shown in the graph in FIG. 12 , a correlation is observed in which the shorter the distance between the feature vectors 51 and 61, the higher the PSNR. The longer the distance between the feature vectors 51 and 61, the lower the PSNR. This indicates that the noise removal performance of the inference model is poor for image 60 (noise image 62) in which the distance between the feature vectors 51 and 61 is long. In this case, as in the present embodiment, it is appropriate to consider that the use of the inference model is inappropriate or that the inference model should be retrained.
[0071] In the above-described embodiment, the inference model has been described as being used for noise removal. However, the inference model may be something other than that. For example, the inference model may be a model used for detecting anomalies in an image related to input information.
[0072] This inference model is used, for example, to capture an image of a manufactured product and detect abnormalities in the product from the captured image. The inference model, for example, inputs an image of a product that is the target of anomaly detection, and outputs information indicating whether the product is abnormal (e.g., the presence or absence of an abnormality or the degree of abnormality). In this case, an image of a non-defective product without abnormalities (a non-defective product image) may be used as the teacher image 50 to generate the inference model. The use of the inference model for a target image that is an image of a product may also be evaluated by the model utilization evaluation system 10, as in the above-described embodiment.
[0073] Alternatively, an inference model may be prepared in advance for each part of a product, and anomaly detection may be performed for each part using the inference model for each part. As shown in Fig. 13, good product images for each part (part A, part B, ...) are used for machine learning training to generate an inference model (anomaly detection model). For evaluation by the model usage evaluation system 10, feature vectors (good product feature vector group) obtained from good product images for each inference model (part type) are used.
[0074] Furthermore, for a type of part for which no inference model has been generated in advance, an existing inference model for another type of part may be used to perform anomaly detection. In this case, the inference model to be used for anomaly detection may be determined from multiple existing inference models based on evaluation by the model usage evaluation system 10. As in the above-described embodiment, the evaluation unit 13 evaluates the use of each inference model for a target image, which is an image of a part for which no corresponding inference model exists. The evaluation unit 13 determines the inference model that is evaluated as being appropriate for use with the target image as the inference model to be used for anomaly detection.
[0075] If there are multiple inference models that are evaluated as being appropriate for use, the evaluation unit 13 may determine, among those inference models, the inference model with the most desirable index value used in the evaluation (e.g., the distance or angle described above) as the inference model to be used for anomaly detection. For example, the evaluation unit 13 may determine the inference model with the smallest distance or angle as the inference model to be used for anomaly detection. If it is evaluated that none of the inference models are appropriate for use, the evaluation unit 13 outputs information to that effect. In that case, the evaluation unit 13 may output information to the effect that an inference model for that type of part needs to be generated.
[0076] The inference model may also be a model used to estimate the focal position at the time of focusing corresponding to an image related to input information. This inference model is used, for example, to estimate the focal position at the time of focusing from an (out-of-focus) image obtained by imaging. By knowing the focal position at the time of focusing, a focused image can be obtained by re-imaging at that focal position. Autofocus can be achieved by automatically capturing an image at the estimated focal position at the time of focusing. This estimation is used, for example, in an inspection device that captures an image of a product and inspects the product from the image, or an observation device that captures an image of a biological sample and observes the captured image of the biological sample.
[0077] The inference model, for example, inputs an (out-of-focus) image and outputs information indicating the focal position when the image is in focus (for example, the difference between the imaging position when the image is captured and the focal position when in focus, or the focal length when in focus). The use of the inference model for the target image, which is an (out-of-focus) image, may also be evaluated by the model utilization evaluation system 10 in the same manner as in the above-described embodiment.
[0078] In addition, an inference model may be prepared in advance for each imaging condition of an (out-of-focus) image, and the estimation of the focus position when in focus may be performed for each imaging condition using the inference model for each imaging condition. As shown in Figure 14(a), the imaging condition may be, for example, a combination of the detector (e.g., image sensor) and lens type of the imaging device. In addition, the imaging condition may be other than the above, for example, the magnification during imaging (low magnification, high magnification, etc.).
[0079] In this case, an image captured under the corresponding imaging conditions (a combination of the detector and lens type of the imaging device at the time of shipment) is used as a teacher image 50 for machine learning training, and an inference model is generated. For evaluation by the model usage evaluation system 10, a feature vector obtained from the teacher image 50 for each inference model (imaging condition) is used.
[0080] Furthermore, even for imaging conditions for which no inference model has been generated in advance, an existing inference model for another imaging condition may be used to estimate the focus position when focused. For example, as shown in FIG. 14( b), inference models corresponding to the combination of detectors 1 to 3 and lenses 1 and 3 are pre-prepared. On the other hand, for the combination of detector 1 and lens 2 for which no inference model is pre-prepared, an inference model to be used to estimate the focus position when focused may be determined from multiple existing inference models based on evaluation by the model utilization evaluation system 10. As shown in FIG. 14( b), an existing inference model exists for detector 1, so inference model 11 (an inference model corresponding to detector 1 and lens 1) and inference model 13 (an inference model corresponding to detector 1 and lens 3), which only differ in lens, are selected as candidates for the inference model to be used to estimate the focus position when focused.
[0081] The evaluation unit 13 evaluates the candidate inference models for use with the target image, as in the above-described embodiment. The evaluation unit 13 determines the inference model that is evaluated as being appropriate for use with the target image as the inference model to be used for estimating the focus position when focusing.
[0082] If there are multiple inference models evaluated as being appropriate for use, the evaluation unit 13 may determine the inference model with the most desirable index value (e.g., the distance or angle described above) used in the evaluation as the inference model to be used to estimate the focus position when focused. For example, the evaluation unit 13 determines the inference model with the smallest distance or angle as the inference model to be used to estimate the focus position when focused. For example, if inference model 11 has the smallest distance or angle, the evaluation unit 13 determines the inference model to be used to estimate the focus position when focused. If inference model 13 has the smallest distance or angle, the evaluation unit 13 determines the inference model to be used to estimate the focus position when focused. If it is evaluated that none of the inference models are appropriate for use, the evaluation unit 13 may output information to that effect. In that case, the evaluation unit 13 may output information to the effect that an inference model needs to be generated for that imaging condition. The above is the function of the model utilization evaluation system 10 according to this embodiment.
[0083] Next, a model utilization evaluation method, which is a process executed by the model utilization evaluation system 10 according to this embodiment (a method of operation performed by the model utilization evaluation system 10), will be described with reference to the flowchart of FIG.
[0084] In this process, a target image is acquired by the target image feature amount acquisition unit 11 (S01, target image feature amount acquisition step). Subsequently, feature amounts are acquired from the target image by the target image feature amount acquisition unit 11 (S02, target image feature amount acquisition step). The feature amounts of the target image are acquired, for example, by inputting information based on the target image into a feature amount acquisition model.
[0085] Further, the teacher image feature amount acquisition unit 12 acquires a teacher image (S03, teacher image feature amount acquisition step). Subsequently, the teacher image feature amount acquisition unit 12 acquires features from the teacher image (S04, teacher image feature amount acquisition step). The feature amounts of the teacher image are acquired, for example, by inputting information based on the teacher image into a feature amount acquisition model. Note that the process of acquiring the feature amounts of the target image (S01, S02) and the process of acquiring the feature amounts of the teacher image (S03, S04) can be performed independently of each other, and therefore do not necessarily have to be performed in the above order.
[0086] Next, the evaluation unit 13 compares the feature amounts of the target image with the feature amounts of the teacher image to evaluate the use of the inference model for the target image. Specifically, for example, the distance between the feature amounts of the target image and the feature amounts of the teacher image is calculated (S05, evaluation step). Next, the calculated distance is compared with a threshold (S06, evaluation step). If the distance exceeds the threshold (NO in S06), it is evaluated that the use of the inference model for the target image is inappropriate or that the inference model should be re-learned, and information to that effect is displayed (S07). In other words, it is evaluated that the use of the inference model for the target image is NG, and information to that effect is displayed.
[0087] If the distance is equal to or less than the threshold (YES in S06), it is evaluated that the use of the inference model for the target image is appropriate or that re-learning of the inference model is not necessary, and information to that effect is displayed (S08). That is, it is evaluated that the use of the inference model for the target image is OK, and information to that effect is displayed. The above is the processing executed by the model utilization evaluation system 10 according to this embodiment.
[0088] In this embodiment, the feature values of the target image and the feature values of the teacher image are compared to evaluate the use of the inference model. This evaluation enables the appropriate use of the inference model for the target image. For example, as described above, if it is considered that the inference model can appropriately remove noise from the target image, the inference model can be used. Alternatively, if it is considered that the inference model cannot appropriately remove noise from the target image, the inference model can be retrained.
[0089] Alternatively, features may be acquired using a feature acquisition model as in the present embodiment. This configuration allows for appropriate and reliable acquisition of feature values for a target image. As a result, the present embodiment can be implemented appropriately and reliably.
[0090] Furthermore, as in this embodiment, the feature acquisition model may output a feature vector. With this configuration, feature comparison can be easily and appropriately performed. As a result, the embodiment of the present invention can be easily and reliably implemented. However, the feature acquisition model may output a feature other than a feature vector. Furthermore, feature acquisition may be performed without using a feature acquisition model. Furthermore, feature acquisition of a target image and a teacher image may be performed without acquiring a target image and a teacher image.
[0091] Furthermore, as in the present embodiment, the distance or angle between the feature of the target image and the feature of the teacher image may be calculated to compare the feature amounts. Furthermore, to compare the feature amounts, it may be determined whether the feature of the target image is included in the class of the teacher image using a one-class SVM or the like. These configurations allow for an appropriate comparison between the feature of the target image and the feature of the teacher image, thereby enabling an appropriate evaluation.
[0092] As in the present embodiment, the inference model may be a model used to remove noise from an image. With this configuration, noise can be removed appropriately from the target image. Furthermore, as in the present embodiment, the inference model may be a model used to detect anomalies in an image. With this configuration, anomalies can be detected appropriately from the target image. Furthermore, as in the present embodiment, the inference model may be a model used to estimate a focal position corresponding to an image when in focus. With this configuration, a focal position corresponding to the target image can be estimated appropriately. However, the inference model is not limited to the above, and may be any model that is generated by machine learning training and inputs information based on an image.
[0093] As in this embodiment, the evaluation of the use of an inference model for a target image may be performed by determining whether the use of the inference model for the target image is appropriate or whether the inference model should be retrained. This configuration allows for an appropriate and reliable evaluation of the use of an inference model for a target image. However, the evaluation of the use of an inference model for a target image may be performed in a manner other than the above.
[0094] Next, we will explain a model utilization evaluation program for executing the above-mentioned series of processes by the model utilization evaluation system 10. As shown in Fig. 16, the model utilization evaluation program 100 is stored in a program storage area 111 formed on a computer-readable recording medium 110 that is inserted into a computer and accessed, or that is provided in the computer. The recording medium 110 may be a non-transitory recording medium.
[0095] The model usage evaluation program 100 is configured to include a target image feature amount acquisition module 101, a teacher image feature amount acquisition module 102, and an evaluation module 103. Functions realized by executing the target image feature amount acquisition module 101, the teacher image feature amount acquisition module 102, and the evaluation module 103 are similar to the functions of the target image feature amount acquisition unit 11, the teacher image feature amount acquisition unit 12, and the evaluation unit 13, respectively, of the model usage evaluation system 10 described above.
[0096] The model utilization evaluation program 100 may be configured so that a part or all of it is transmitted via a transmission medium such as a communication line, and is received and recorded (including installed) by another device. Furthermore, each module of the model utilization evaluation program 100 may be installed not on one computer but on one of multiple computers. In this case, the above-described series of processes is performed by a computer system consisting of the multiple computers.
[0097] The model utilization evaluation method, model utilization evaluation system, and model utilization evaluation program disclosed herein have the following configurations: [1] A model utilization evaluation method for evaluating the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, the model utilization evaluation method including: a target image feature acquisition step for acquiring feature quantities of a target image used for input to the inference model; a teacher image feature acquisition step for acquiring feature quantities of a teacher image used in training for generating the inference model; and an evaluation step for comparing the feature quantities of the target image acquired in the target image feature acquisition step with the feature quantities of the teacher image acquired in the teacher image feature acquisition step to evaluate the utilization of the inference model for the target image. [2] The model utilization evaluation method described in [1], in which the target image feature acquisition step acquires the target image and inputs information based on the acquired target image into a feature acquisition model generated by machine learning training to acquire feature quantities of the target image. [3] The model utilization evaluation method described in [2], in which the feature acquisition model outputs a feature vector that is a feature quantity of an image related to the input information. [4] The model-utilizing evaluation method according to any one of [1] to [3], wherein the evaluation step calculates a distance or angle between the feature of the target image and the feature of the teacher image for feature comparison. [5] The model-utilizing evaluation method according to any one of [1] to [4], wherein the evaluation step determines whether the feature of the target image is included in a class of teacher images generated from the feature of the teacher image for feature comparison. [6] The model-utilizing evaluation method according to any one of [1] to [5], wherein the inference model is a model used for noise removal of an image related to input information. [7] The model-utilizing evaluation method according to any one of [1] to [6], wherein the inference model is a model used for anomaly detection of an image related to input information. [8] The model-utilizing evaluation method according to any one of [1] to [7], wherein the inference model is a model used for estimating a focal position at the time of focusing corresponding to an image related to input information.[9] The model utilization evaluation method according to any one of [1] to [8], wherein in the evaluation step, the evaluation of the utilization of the inference model for the target image includes determining whether the utilization of the inference model for the target image is appropriate or whether the inference model should be retrained.
[10] A model utilization evaluation system for evaluating the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, the system comprising: a target image feature amount acquisition means for acquiring feature amounts of a target image used for input to the inference model, a teacher image feature amount acquisition means for acquiring feature amounts of a teacher image used in training for generating the inference model, and an evaluation means for comparing the feature amounts of the target image acquired by the target image feature amount acquisition means with the feature amounts of the teacher image acquired by the teacher image feature amount acquisition means to evaluate the utilization of the inference model for the target image.
[11] A model utilization evaluation program that causes a computer to operate as a model utilization evaluation system that evaluates the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, the model utilization evaluation program causing the computer to function as: a target image feature acquisition means that acquires features of a target image used for input to the inference model; a teacher image feature acquisition means that acquires features of a teacher image used for training to generate the inference model; and an evaluation means that compares the features of the target image acquired by the target image feature acquisition means with the features of the teacher image acquired by the teacher image feature acquisition means to evaluate the utilization of the inference model for the target image.
[0098] 10...Model utilization evaluation system, 11...Target image feature acquisition unit, 12...Teacher image feature acquisition unit, 13...Evaluation unit, 100...Model utilization evaluation program, 101...Target image feature acquisition module, 102...Teacher image feature acquisition module, 103...Evaluation module, 110...Recording medium, 111...Program storage area
Claims
1. A model utilization evaluation method for evaluating the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, comprising: a target image feature acquisition step for acquiring features of a target image used for input to the inference model; a teacher image feature acquisition step for acquiring features of a teacher image used for training for generating the inference model; and an evaluation step for comparing the features of the target image acquired in the target image feature acquisition step with the features of the teacher image acquired in the teacher image feature acquisition step to evaluate the utilization of the inference model for the target image.
2. A model utilization evaluation method as described in claim 1, wherein in the target image feature acquisition step, the target image is acquired, and information based on the acquired target image is input into a feature acquisition model generated by machine learning training to acquire the features of the target image.
3. A model utilization evaluation method according to claim 2, wherein the feature acquisition model is a model that outputs a feature vector that is a feature of an image related to input information.
4. A model utilization evaluation method according to claim 1 or 2, wherein in the evaluation step, a distance or angle between the feature amount of the target image and the feature amount of the teacher image is calculated for comparison of the feature amounts.
5. A model utilization evaluation method as described in claim 1 or 2, wherein in the evaluation step, for comparison of features, it is determined whether the features of the target image are included in the class of the teacher image generated from the features of the teacher image.
6. A model utilization evaluation method as described in claim 1 or 2, wherein the inference model is a model used to remove noise from an image related to input information.
7. A model utilization evaluation method as described in claim 1 or 2, wherein the inference model is a model used to detect anomalies in an image related to input information.
8. A model utilization evaluation method as described in claim 1 or 2, wherein the inference model is a model used to estimate the focus position at the time of focusing corresponding to the image related to the input information.
9. A model utilization evaluation method as described in claim 1 or 2, in which, in the evaluation step, the utilization of the inference model for the target image is evaluated by determining whether the utilization of the inference model for the target image is appropriate or whether the inference model should be re-learned.
10. A model utilization evaluation system that evaluates the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, comprising: a target image feature acquisition means for acquiring features of a target image used as input to the inference model; a teacher image feature acquisition means for acquiring features of a teacher image used in training for the generation of the inference model; and an evaluation means for comparing the features of the target image acquired by the target image feature acquisition means with the features of the teacher image acquired by the teacher image feature acquisition means to evaluate the utilization of the inference model for the target image.
11. A model utilization evaluation program that causes a computer to operate as a model utilization evaluation system that evaluates the utilization of an inference model that has been generated by machine learning training and that inputs image-based information, the program causing the computer to function as: a target image feature acquisition means that acquires features of a target image used for input to the inference model; a teacher image feature acquisition means that acquires features of a teacher image used in training for the generation of the inference model; and an evaluation means that compares the features of the target image acquired by the target image feature acquisition means with the features of the teacher image acquired by the teacher image feature acquisition means to evaluate the utilization of the inference model for the target image.
Citation Information
Patent Citations
Radiographic image processing method, machine-learning method, trained model, machine-learning preprocessing method, radiographic image processing module, radiographic image processing program, and radiographic image processing system
WO2022172506A1
Machine learning program, machine learning method, and information processor
JP2022147502A
Deep neural network hardener
US20220129712A1
Method, device, and computer program product for updating model
US20220245448A1
Cited By
Inspection system and program
WO2026186489A1
