Program, method, information processing device, and system

The system generates abnormal image data through user-optimized hyperparameters, addressing the lack of training data for unknown abnormalities and enhancing deep learning models for product inspection.

JP2024143998AInactive Publication Date: 2024-10-11AI INSIDE INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023135970
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There is a lack of abnormality image data for products with unknown abnormalities, making it difficult to create effective training data for deep learning models used in product inspection.

Method used

A system and method that generates abnormal image data by applying image processing models to normal image data using hyperparameters, with user input to determine the abnormality and optimize hyperparameters based on Bayesian optimization.

Benefits of technology

Enables the creation of new abnormal image data even when no such data exists, improving the performance of deep learning models for anomaly detection in product inspection without requiring prior knowledge of specific abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143998000001_ABST
    Figure 2024143998000001_ABST
Patent Text Reader

Abstract

To provide a program for newly creating abnormal image data in the case that there is no abnormal image data about a product or even to unknown abnormality.SOLUTION: In a program to be executed by a computer including a processor and a storage part, the processor executes an image acquisition step (S101) for acquiring a first image including a prescribed product image, an image generation step (S103) for generating a second image by applying an image processing model based on a prescribed hyper parameter to the first image, a determination reception step (S105) for receiving a determination instruction as to whether the prescribed product image included in the second image is an abnormal image from a user, and a condition change step (S106) for changing the prescribed hyper parameter so as to make the second image to be an abnormal image in the image generation step on the basis of the determination instruction received in the determination reception step.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a program, a method, an information processing device, and a system. [Background technology]

[0002] There is known a technique for inspecting products, etc. based on image data obtained by photographing a product image using a deep learning model, etc. Patent Document 1 discloses an automatic inspection device that implements deep learning technology in the image processing process, which makes it possible to create an inference program that can distinguish between defects and noise even with a small number of samples. [Prior art documents] [Patent documents]

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

[0004] There is a problem in that there is no abnormality image data for the product, or abnormality image data cannot be created for unknown abnormalities. Therefore, the present disclosure has been made to solve the above problem, and its purpose is to generate new or padded abnormal image data for products where there is no abnormal image data or for unknown abnormalities. [Means for solving the problem]

[0005] A program to be executed by a computer having a processor and a memory unit, the program executing the following steps: an image acquisition step in which the processor acquires a first image including a specified product image; an image generation step in which the processor generates a second image by applying an image processing model based on specified hyperparameters to the first image; a judgment reception step in which the processor receives a judgment instruction from a user regarding whether or not the specified product image included in the second image is an abnormal image; and a condition change step in which the processor changes the specified hyperparameters in the image generation step based on the judgment instruction received in the judgment reception step so that the second image becomes an abnormal image of the specified product. Effect of the Invention

[0006] According to the present disclosure, even when there is no abnormal image data for a product or an unknown abnormality exists, it is possible to newly generate or pad the abnormal image data. [Brief description of the drawings]

[0007] [Figure 1] FIG. 2 is a block diagram showing the functional configuration of the system 1. [Diagram 2] FIG. 2 is a block diagram showing the functional configuration of the server 10. [Diagram 3] 2 is a block diagram showing a functional configuration of an administrator terminal 30. FIG. [Figure 4] FIG. 13 is a diagram showing the data structure of a user table 1012. [Diagram 5] FIG. 13 is a diagram showing the data structure of an image table 1013. [Figure 6] FIG. 13 is a diagram showing the data structure of a generation table 1014. [Figure 7] 13 is a flowchart showing an operation of an abnormal image generation model creation process. [Figure 8] 11 is a screen example showing the operation of the abnormal image generation model creation process. [Figure 9] 13 is a screen example showing a determination process in the abnormal image generation model creation process. [Figure 10]FIG. 2 is a block diagram showing the basic hardware configuration of a computer 90. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. In all the drawings explaining the embodiment, the same reference numerals are given to common components, and repeated explanations are omitted. Note that the following embodiment does not unduly limit the contents of the present disclosure described in the claims. In addition, not all of the components shown in the embodiment are essential components of the present disclosure. In addition, each figure is a schematic diagram and is not necessarily illustrated strictly.

[0009] <System 1 Configuration> The system 1 in the present disclosure is an information processing system for generating an image (abnormal image) of the appearance of a given product that has a defect or defect during a production process, etc., from image data (normal image) of the appearance of the product when the product is free of defects or defects. Note that the present disclosure is not limited to image data of the product's appearance, etc., but can be applied to image data of the internal state of a product obtained by non-destructive testing, etc., or any other image data related to a product. The system 1 includes an information processing device, a server 10, and a user terminal 20, which are connected via a network N. FIG. 1 is a block diagram showing the functional configuration of the system 1. FIG. 2 is a block diagram showing the functional configuration of the server 10. As shown in FIG. FIG. 3 is a block diagram showing the functional configuration of the administrator terminal 30. As shown in FIG.

[0010] Each information processing device is configured by a computer equipped with a calculation device and a storage device. The basic hardware configuration of the computer and the basic functional configuration of the computer realized by the hardware configuration will be described later. For the server 10 and the user terminal 20, descriptions that overlap with the basic hardware configuration and basic functional configuration of the computer described later will be omitted.

[0011] <Server 10 Configuration> The server 10 is an information processing device that provides an information processing service that generates abnormal image data by applying an image processing model 1021 to normal image data related to a specified product. The information processing service according to the present disclosure makes it possible to newly generate or pad abnormal image data for a specified product for which there is no abnormal image data or for an unknown abnormality. The generated abnormal image data can be used as training data when creating a deep learning model for anomaly detection such as appearance inspection in the production line of the product. In other words, the performance of the deep learning model for anomaly detection can be improved by padding the training data. The server 10 includes a storage unit 101, a control unit 104, an input device 106, and an output device 108.

[0012] <Configuration of the storage unit 101 of the server 10> The storage unit 101 of the server 10 includes an application program 1011 , a user ID 2011 , an application program 2012 , a user table 1012 , an image table 1013 , a generation table 1014 , an image processing model 1021 , and a classification model 1022 .

[0013] The application program 1011 is a program for causing the control unit 104 of the server 10 to function as each functional unit. Application programs 1011 include applications such as a web browser application.

[0014] The user ID 2011 is an account ID of the user. The user transmits the user ID 2011 from the user terminal 20 to the server 10. The server 10 identifies the user based on the user ID 2011 and provides the user with the service according to the present disclosure. The user ID 2011 includes information such as a session ID temporarily assigned by the server 10 when identifying the user who is using the user terminal 20.

[0015] The application program 2012 may be stored in advance in the storage unit 201, or may be configured to be downloaded from a web server operated by a service provider via a communication IF. The application programs 2012 include applications such as a web browser application. The application program 2012 includes an interpreted programming language such as JavaScript™ that runs on a web browser application stored on the user terminal 20 .

[0016] User table 1012 is a table that stores and manages information about member users (hereinafter, users) who use the service. When a user registers to use the service, the user's information is stored in a new record in user table 1012. This allows the user to use the service according to the present disclosure. The user table 1012 is a table having columns of user ID and user name, with the user ID as the primary key. FIG. 4 is a diagram showing the data structure of the user table 1012. As shown in FIG.

[0017] The user ID is an item for storing user identification information for identifying a user. The user identification information is an item for which a unique value is set for each user. The user name is an item for storing the name of the user. The user name may be set to any character string such as a nickname instead of a name.

[0018] The image table 1013 is a table for storing and managing image data (normal image data) of a predetermined product, the image of the appearance of the product when the product is free of defects or imperfections. The image table 1013 is a table having columns for an image ID, a user ID, image data, and an image label. FIG. 5 is a diagram showing the data structure of the image table 1013. As shown in FIG.

[0019] The image ID is an item for storing image identification information for identifying normal image data. The user ID is an item for storing user identification information of the user who has stored the normal image data. Image data is an item that stores normal image data captured by a camera or the like. It may also store reference information (path) for image data files located in other locations. The image data may be in any format, such as jpeg, png, bmp, tiff, gif, eps, or svg. The image label is an item that stores label information related to normal image data. Specifically, the image label can include information indicating the state or degree (good or bad) of the product included in the image data, product category information indicating the type or classification of the product, and other arbitrary label information.

[0020] The generated table 1014 is a table for storing and managing generated image data (generated data) generated by applying the image processing model 1021 to normal image data. A generation table 1014 is a table having columns of a generation ID, generation data, generation conditions, and judgment instructions. FIG. 6 is a diagram showing the data structure of the generated table 1014. As shown in FIG.

[0021] The generation ID is an item for storing image identification information for identifying the generated data. The generated data is an item that stores generated data. It may also store reference information (path) for image data files located in other locations. The image data may be in any data format, such as jpeg, png, bmp, tiff, gif, eps, or svg. The generating condition is an item for storing information on the generating condition when generating the generated data. The generating condition includes all information required when generating the generated data from the normal image data. The generating conditions include image identification information of normal image data input to the image processing model 1021 when generating generated data. The generation conditions include values ​​of hyperparameters to be input to the image processing model 1021 when generating the generation data. Additionally, when there are multiple image processing models 1021, the generation conditions include information for identifying the image processing model 1021 used when generating the generated data among the multiple image processing models 1021, and information regarding hyperparameters. The determination instruction includes information indicating a determination result as to whether the generated data is abnormal image data or not. The determination instruction may include either information indicating that the abnormal image data is "abnormal" or information indicating that it is "not abnormal." The determination instruction may include information regarding the type of abnormality in the abnormal image data, such as "paint peeling," "corrosion," or "color abnormality."

[0022] The image processing model 1021 is a model that can apply image processing that adds at least one abnormality such as chipping, distortion, and scratches to input image data. The image processing model can include one or more hyperparameters as input variables. The hyperparameters include parameters related to the size, rotation angle, inversion angle, and color change of the abnormal area. The hyperparameters include hyperparameters according to the image processing model 1021, such as the filter size and number of layers in the image processing model 1021. The image processing model can generate different generated data depending on the input 1 or the value of the hyperparameter. In addition, by applying an image processing model based on the hyperparameters optimized by the abnormal image generation model creation process to input image data including a normal image of a product, it is possible to output output image data including an abnormal image of the product. The hyperparameters applied to the image processing model may include a group of multiple hyperparameters that can cover the variable space corresponding to each image processing depending on the content of the image processing, such as “chips,” “distortion,” and “scratches.” For example, a hyperparameter set related to "chipping" that corresponds to an image processing model related to "chipping" is defined as a first hyperparameter set. A hyperparameter set related to "distortion" that corresponds to an image processing model related to "distortion" is defined as a second hyperparameter set. A hyperparameter set related to "scratches" that corresponds to an image processing model related to "scratches" is defined as a third hyperparameter set. Each of the first hyperparameter set, the second hyperparameter set, and the third hyperparameter set can cover a different variable space. Specifically, if the hyperparameter group is a vector consisting of 10 components (hyperparameters), the first hyperparameter group can be a vector consisting of the 0th to 3rd components, the second hyperparameter group can be a vector consisting of the 4th to 6th components, and the third hyperparameter group can be a vector consisting of the 7th to 10th components. Note that the multiple hyperparameter sets do not necessarily need to be independent, and some or all of the hyperparameters included in each hyperparameter set may be included in or overlap with the other hyperparameter sets. For example, the first hyperparameter set may be a vector consisting of the 0th to 3rd and 6th components, the second hyperparameter set may be a vector consisting of the 4th to 6th, 8th and 9th components, and the third hyperparameter set may be a vector consisting of the 7th to 10th components. Note that the image processing model according to the present disclosure does not need to be a rule-based image processing model, and may include any generative model such as a Generative Adversarial Network (GAN) in a deep learning model. Specifically, it includes any image processing model capable of probabilistically outputting output image data based on normal image data and any hyperparameters, etc.

[0023] The classification model 1022 is a learning model that receives image data as input information and outputs information (specifically, a classification label such as 0 or 1) indicating whether the input image data is an abnormal image or not.

[0024] <Configuration of the control unit 104 of the server 10> The control unit 104 of the server 10 includes a user registration control unit 1041, a learning unit 1051, an input control unit 2041, and an output control unit 2042. The control unit 104 executes an application program 1011 stored in the storage unit 101 to realize each functional unit.

[0025] The user registration control unit 1041 performs processing to store, in the user table 1012, information on users who wish to use the service according to the present disclosure. The information stored in the user table 1012 is generated when a user opens a web page operated by a service provider from any information processing terminal, enters information into a specific input form, and transmits the information to the server 10. The user registration control unit 1041 stores the received information in a new record in the user table 1012, completing the user registration. This allows the user stored in the user table 1012 to use the service. Before the user registration control unit 1041 registers user information in the user table 1012, the service provider may carry out a predetermined examination to restrict whether or not the user is permitted to use the service. The user ID may be any character string or number that can identify the user, any character string or number desired by the user, or an arbitrary character string or number may be automatically set by the user registration control unit 1041.

[0026] The learning unit 1051 executes a learning process for learning hyperparameters to be applied to the image processing model 1021. The learning process will be described later. The learning unit 1051 also executes a learning process for learning a classification model.

[0027] <Configuration of the input device 106 of the server 10> The input device 106 of the server 10 includes a camera 2061 , a microphone 2062 , a position information sensor 2063 , a motion sensor 2064 , and a touch device 2065 .

[0028] <Configuration of the output device 108 of the server 10> The output device 108 of the server 10 includes a display 2081 and a speaker 2082 .

[0029] <Configuration of User Terminal 20> The user terminal 20 is an information processing device operated by a user who uses a service. The user terminal 20 may be, for example, a mobile terminal such as a smartphone or a tablet, a stationary PC (Personal Computer), or a laptop PC. It may also be a wearable terminal such as an HMD (Head Mount Display) or a wristwatch-type terminal. The user terminal 20 includes a storage unit 201 , a control unit 204 , an input device 206 , and an output device 208 .

[0030] <Configuration of the storage unit 201 of the user terminal 20> The storage unit 201 of the user terminal 20 includes a user ID 2011 and an application program 2012 .

[0031] The user ID 2011 is an account ID of the user. The user transmits the user ID 2011 from the user terminal 20 to the server 10. The server 10 identifies the user based on the user ID 2011 and provides the user with the service according to the present disclosure. The user ID 2011 includes information such as a session ID temporarily assigned by the server 10 when identifying the user who is using the user terminal 20.

[0032] The application program 2012 may be stored in advance in the storage unit 201, or may be configured to be downloaded from a web server operated by a service provider via a communication IF. The application programs 2012 include applications such as a web browser application. The application program 2012 includes an interpreted programming language such as JavaScript™ that runs on a web browser application stored on the user terminal 20 .

[0033] <Configuration of the control unit 204 of the user terminal 20> The control unit 204 of the user terminal 20 includes an input control unit 2041 and an output control unit 2042. The control unit 204 executes an application program 2012 stored in the storage unit 201, thereby realizing each functional unit.

[0034] <Configuration of the input device 206 of the user terminal 20> The input device 206 of the user terminal 20 includes a camera 2061 , a microphone 2062 , a position information sensor 2063 , a motion sensor 2064 , and a touch device 2065 .

[0035] <Configuration of the output device 208 of the user terminal 20> The output device 208 of the user terminal 20 includes a display 2081 and a speaker 2082 .

[0036] <System 1 Operation> Each process of the system 1 will be described below. FIG. 7 is a flowchart showing the operation of the abnormal image generation model creation process. FIG. 8 is a screen example showing the operation of the abnormal image generation model creation process. FIG. 9 is a screen example showing the determination process in the abnormal image generation model creation process.

[0037] <Abnormal image generation model creation process> The abnormal image generation model creation process is a process for creating an abnormal image generation model for generating an abnormal image based on a user's judgment instruction for generated data generated based on a normal image. The abnormal image generation model creation process (first embodiment) and the abnormal image generation model creation process (second embodiment) will be described below.

[0038] <Outline of abnormal image generation model creation process (first embodiment)> The abnormal image generation model creation process (first embodiment) is a series of processes that accepts registration of normal image data related to a product, identifies hyperparameters to be optimized, creates generated data by applying an image processing model using the hyperparameters to the normal image data, presents the generated data to a user, accepts judgment instructions from the user regarding the generated data, and optimizes the hyperparameters based on the judgment instructions.

[0039] <Details of the abnormal image generation model creation process (first embodiment)> The abnormal image generation model creation process (first embodiment) will be described in detail below.

[0040] In step S101, the control unit 104 of the server 10 executes an image acquisition step of acquiring a first image including a predetermined product image. Specifically, the user operates the input device 206 of the user terminal 20 to input the URL of a page for executing image registration processing (image registration processing page) into a web browser or the like, and opens the image registration processing page. The control unit 204 of the user terminal 20 sends a request to open the image registration processing page to the server 10. The control unit 104 of the server 10 generates an image registration processing page based on the received request, and sends it to the user terminal 20. The control unit 204 of the user terminal 20 displays the received image registration processing page on the display 2081 of the user terminal 20.

[0041] The user operates the input device 206 of the user terminal 20 to perform input operations on a predetermined input form or the like on the image registration processing page, thereby selecting image data that the user has previously stored in the storage unit 201 of the user terminal 20. Specifically, the image data is image data (normal image data) that captures the appearance, etc. of a predetermined product in a state where there are no defects, flaws, etc., related to the product. The user operates the input device 206 of the user terminal 20 to transmit the selected image data to the server 10. The control unit 204 of the user terminal 20 transmits the user ID 2011 and the selected image data to the server 10. The control unit 104 of the server 10 receives and accepts the user ID 2011 and image data from the user terminal 20. The control unit 104 of the server 10 stores and registers the user ID 2011 and image data in the user ID and image data items of the image table 1013, respectively. The user may operate the input device 206 of the user terminal 20 to edit a predetermined input field or the like provided on the image registration processing page, thereby inputting an image label that can be stored in association with the transmitted image data. The image label input by the user is stored in the image label item of the image table 1013 in association with the image data. In step S101, the user can register multiple normal image data in the server 10. In order to improve the performance of the image processing model, it is desirable to register in the server 10 image data of a specific product photographed under different photographing conditions, such as from various angles or under different lighting conditions.

[0042] In step S102, the control unit 104 of the server 10 identifies a plurality of hyperparameters to be applied to the image processing model 1021. The plurality of hyperparameters applicable to the image processing model 1021 are as described in the description of the image processing model 1021. The control unit 104 of the server 10 sets initial values ​​to the identified multiple hyperparameters. The control unit 104 of the server 10 sets random values ​​to each hyperparameter as an initial value. The value set to each hyperparameter is a random value within a predetermined hyperparameter space determined according to the image processing model.

[0043] In step S102, the control unit 104 of the server 10 may execute an initial value selection step of selecting initial values ​​of predetermined hyperparameters according to a predetermined product. The initial values ​​of the predetermined hyperparameters may be set according to a selection operation by the user. For example, the user may set the predetermined initial values ​​according to the type, name, etc. of the product included in the normal image data registered in step S101. The initial values ​​of the specified hyperparameters may be automatically set by the control unit 104 of the server 10 according to the type of product to which the image processing model 1021 is applied (automotive parts such as screws, plates, bumpers, etc.) and the product name (model number, product name). The predetermined initial values ​​of the hyperparameters may be automatically set by the control unit 104 of the server 10 in accordance with the image data of the product to which the image processing model 1021 is applied. For example, the control unit 104 of the server 10 may set the initial values ​​of multiple hyperparameters by referring to a table or the like in which the initial values ​​of multiple hyperparameters are stored according to the type of product (not shown). The control unit 104 of the server 10 may set the initial values ​​of only some of the multiple hyperparameters, and set the initial values ​​of the other hyperparameters randomly. The initial value of the hyperparameter may be the value of the hyperparameter optimized in the past by the abnormal image generation model creation process according to the present disclosure for a given product type, etc. For example, if another user has executed the abnormal image generation model creation process for a given product in the past, the optimized hyperparameter value may be selected as the initial value. In addition, the initial value of a certain hyperparameter does not need to be a predetermined value, and may be a random value within a hyperparameter space defined for a certain product type, etc. The control unit 104 of the server 10 may select any initial value included in a range of the hyperparameter space narrowed based on the product type, etc. This allows for efficient search for suitable hyperparameters by setting the initial values ​​of the hyperparameters according to the type of a given product, etc. For example, if there are already hyperparameters optimized in advance for each type of given product, the hyperparameters can be set as initial values, allowing for efficient search for hyperparameters.

[0044] The initial value of the hyperparameter does not have to be one, and multiple initial values ​​of hyperparameters distributed around a predetermined initial value can be set. The control unit of the server 10 may not only set initial values ​​for one set of multiple hyperparameters in one batch, but may also set initial values ​​in different hyperparameter spaces for multiple sets of multiple hyperparameters collectively. For example, different initial values ​​may be set for 100 sets of multiple hyperparameters in one batch.

[0045] In step S103, the control unit 104 of the server 10 executes an image generating step of generating a second image by applying an image processing model based on predetermined hyper-parameters to the first image. Specifically, the control unit 104 of the server 10 searches the image table 1013 and acquires one or more normal image data registered in step S101. The control unit 104 of the server 10 applies the image processing model 1021 based on the multiple hyperparameters whose initial values ​​were set in step S102 to the acquired one or more normal image data, thereby generating one or more image data (generated data).

[0046] In step S103, the image generation step includes a step of extracting a region of a specified product image contained in the first image, and a step of generating a second image by applying an image processing model based on specified hyperparameters to the extracted region of the specified product image. Specifically, the control unit 104 of the server 10 may execute a process of extracting a region of a product image included in the normal image data before applying the image processing model 1021 to the normal image data. The region of the product image included in the normal image data may be extracted by calculating the difference between the normal image data to be input and image data obtained by performing a smoothing process (average process) on the multiple normal image data registered in step S101. In addition, the region of the product image may be extracted by applying the normal image data to a deep learning model capable of extracting any object. When the control unit 104 of the server 10 is able to extract a product image area from the normal image data, it generates generated data by applying an image processing model 1021 based on a plurality of hyperparameters whose initial values ​​were set in step S102 to the product image area. This makes it possible to apply an image processing model for generating an abnormal image only to a specific product image when the first image includes a specific product image.

[0047] In step S103, if it is not possible to extract a specified product image area contained in the first image, the image generation step executes a step of generating a second image by applying an image processing model based on specified hyperparameters to the entire first image. If the control unit 104 of the server 10 is unable to extract a product image area from the normal image data, it generates generated data by applying an image processing model 1021 based on a plurality of hyperparameters whose initial values ​​were set in step S102 to the entire normal image data. The control unit 104 of the server 10 determines that the product image area has not been extracted if the extracted product image area covers the entire image or if there is no product image area. Specifically, the control unit 104 of the server 10 can determine whether or not the product image area has been extracted based on the pixel values ​​of the image data of the extracted product image, etc.

[0048] In step S103, the control unit 104 of the server 10 may apply the image processing model 1021 collectively to the plurality of normal image data registered in step S101 to generate generated data. In step S103, the control unit 104 of the server 10 may create a large number of generated data (the product of the number of sets of hyperparameters and the number of normal image data) by applying an image processing model 1021 based on multiple sets of hyperparameters set in one batch in step S102 to multiple normal image data.

[0049] The control unit 104 of the server 10 stores the generated generation data and the generation conditions, including image identification information of the normal image data used to generate the generation data, the values ​​of the hyperparameters, and information specifying the applied image processing model 1021, in the generation data and generation condition items of the generation table 1014, respectively.

[0050] In step S104, the control unit 104 of the server 10 generates a determination processing page including one or more pieces of generated data and transmits it to the user terminal 20. The control unit 204 of the user terminal 20 displays the received determination processing page (determination processing screen) on the display 2081 of the user terminal 20. 9 is an example of a judgment processing screen showing the judgment processing in the abnormal image generation model creation processing. The judgment processing screen D20 includes received generated data D201, D202, D203, judgment buttons D211, D212, D213 that can accept judgment instructions for each generated data, and input fields D221, D222, D223.

[0051] In step S105, the control unit 104 of the server 10 executes a determination receiving step of receiving, from the user, an instruction to determine whether or not a predetermined product image included in the second image is an abnormal image. Specifically, the user visually checks the generated data D201, D202, and D203 displayed on the display 2081 of the user terminal 20 and determines whether or not the generated data corresponds to an abnormal image having a defect or flaw in the product. The user operates the input device 206 of the user terminal 20 to press the determination button D213 corresponding to the generated data D203 determined to be an abnormal image, thereby transmitting the generation ID corresponding to the generated data D203 and information indicating the determination result to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and the information indicating the determination result.

[0052] In step S105, the determination receiving step is a step of receiving an input operation of an abnormal image type related to the type of an abnormal image of a predetermined product image included in the second image from the user. Specifically, the user may operate the input device 206 of the user terminal 20 to input information (paint peeling, corrosion, color abnormality, etc.) on the type and content of the product abnormality shown in the abnormality image data included in the generated data D203 into the input fields D221, D222, D223. Specifically, instead of or in addition to the judgment buttons D211, D212, D213, input fields D221, D222, D223 such as a text input field or a selection field such as a drop-down that allows the type of abnormality to be selected may be provided. In this case, the information indicating the judgment result includes information on the type and content of the product abnormality.

[0053] The control unit 104 of the server 10 searches the generation ID field of the generation table 1014 based on the received generation ID, and stores information indicating the received judgment result in the judgment instruction field of the identified record.

[0054] The judgment instruction in step S105 does not need to be made by one specific user, and may be made by a plurality of different users for each generated data. Any method may be used as long as it is possible to associate and store information indicating the judgment result for each generated data. Also, it may be possible to make a judgment instruction by a plurality of different users for each set of hyperparameters.

[0055] In step S106, the control unit 104 of the server 10 executes a condition changing step of changing a predetermined hyperparameter based on the judgment instruction received in the judgment receiving step, so that the second image in the image generating step becomes an abnormal image of a predetermined product. Specifically, the control unit 104 of the server 10 changes the value of the hyperparameter set in step S102 based on the determination instruction received in step S105. Specifically, the control unit 104 of the server 10 specifies the search range of the hyperparameter according to the generation condition stored in the generation table 1014 and the value of the determination instruction. In the present disclosure, any search method such as grid search, Bayesian optimization, etc. can be applied as a method for searching hyperparameters. In particular, when searching a wide hyperparameter space as in the present disclosure, a hyperparameter search method using Bayesian optimization is suitable.

[0056] In step S106, the condition changing step executes a step of changing the predetermined hyperparameter by applying Bayesian optimization based on the predetermined hyperparameter and the determination instruction.

[0057] In step S106, the condition changing step executes a step of applying Bayesian optimization based on the accuracy of a classification model that determines whether or not an image is abnormal, which is learned based on the second image generated by the image processing model. The accuracy of the classification model 1022 (including the accuracy rate, the precision rate, the recall rate, the f-measure, the F1 score, etc.) may be fed back to the search for hyperparameters of the image processing model 1021. Specifically, the accuracy of the classification model 1022 is calculated as the prediction accuracy for the validation data by dividing the generated data into learning data and validation data. Specifically, in step S103, the control unit 104 of the server 10 divides the generated multiple pieces of generated data into a data set of learning data and verification data. The control unit 104 of the server 10 applies the classification model 1022 to the learning data, thereby outputting a classification label indicating whether each piece of generated data is an abnormal image or not. In step S105, the control unit 104 of the server 10 acquires a judgment result regarding whether each piece of generated data (learning data and verification data) is an abnormal image or not (teacher data, correct answer data). The learning unit 1051 of the server 10 executes a learning process to train the classification model 1022 based on the learning data. The control unit 104 of the server 10 evaluates the prediction accuracy of the classification model 1022 based on the verification data. Specifically, the control unit 104 of the server 10 compares the predicted value output by the classification model 1022 with the judgment result for the verification data (data, correct answer data) and calculates the accuracy of the classification model 1022. The control unit 104 of the server 10 specifies the search range of the hyperparameters in the Bayesian optimization in step S106 based on the accuracy calculated for the classification model 1022. For example, the higher the accuracy, the narrower the search range of the hyperparameters (the narrower the search range is from the vicinity of the hyperparameters), and the lower the accuracy, the wider the search range of the hyperparameters (the wider the search range is from the vicinity of the hyperparameters). This allows efficient search of the hyperparameter space while minimizing the hassle of the user giving judgment instructions, even in a vast hyperparameter space.

[0058] In step S107, the control unit 104 of the server 10 determines whether the optimization of the hyperparameters is complete. Specifically, the control unit 104 may determine whether the optimization is complete by accepting an input operation from a user. Alternatively, the control unit 104 of the server 10 may verify the quality of the hyperparameters and automatically determine whether the optimization of the hyperparameters is complete. Alternatively, the optimization of the hyperparameters may be determined to be complete when certain conditions, such as the convergence condition of the hyperparameters or the number of trials, are satisfied. If the control unit 104 of the server 10 determines that the optimization is completed, the process proceeds to step S108. When the control unit 104 of the server 10 does not determine that the optimization is complete, the control unit 104 executes the processes from step S103 to step S106 again based on the changed hyperparameters. Specifically, the process is the same except that the hyperparameters changed in step S106 are applied in step S103 instead of the initial values ​​of the hyperparameters specified in step S102, and therefore a detailed description thereof will be omitted.

[0059] The control unit 104 of the server 10 executes a search process for hyperparameters based on an algorithm such as Bayesian optimization until it is determined in step S107 that the optimization is completed. As a result, the values ​​of the hyperparameters are changed and updated so that the generated data generated by the image processing model 1021 becomes abnormal image data of a predetermined product. In the present disclosure, the control unit 104 of the server 10 can efficiently search the vast hyperparameter space by preferentially searching areas with high evaluation values ​​based on Bayesian optimization (areas of hyperparameters determined to be more likely to generate abnormal images based on a judgment instruction).

[0060] In step S108, the control unit 104 of the server 10 stores the changed hyperparameters in the storage unit 101 of the server 10. Specifically, the hyperparameters may be stored in association with the type, name, etc. of the product included in the normal image data. This allows the user to create abnormal image data by applying the image processing model 1021 based on the hyperparameters to the normal image data. This completes the creation of the abnormal image generation model.

[0061] <Outline of abnormal image generation model creation process (second embodiment)> The abnormal image generation model creation process (second embodiment) is a series of processes that accepts registration of normal image data related to a product, performs optimization of the hyperparameter groups using the abnormal image generation model creation process (first embodiment) for each of a plurality of hyperparameter groups that constitute hyperparameters applicable to an image processing model, and, after optimization of each hyperparameter group is completed, performs optimization of the hyperparameters using the abnormal image generation model creation process (first embodiment) for combinations of the plurality of hyperparameter groups.

[0062] <Details of the abnormal image generation model creation process (second embodiment)> The abnormal image generation model creation process (second embodiment) will be described in detail below.

[0063] Step S301 is similar to the abnormal image generation model creation process (first embodiment), and therefore a description thereof will be omitted.

[0064] In step S302, the control unit 104 of the server 10 executes an independent processing step in which an image generation step, a judgment reception step, and a condition change step are executed independently for each of a plurality of different hyperparameter groups included in a plurality of hyperparameters applicable to the image processing model. Specifically, the control unit 104 of the server 10 selects and identifies a predetermined set of hyperparameters from a plurality of hyperparameter sets applicable to the image processing model 1021 .

[0065] The control unit 104 of the server 10 executes a selection receiving step of receiving a selection of a part of hyperparameter groups from among a plurality of different hyperparameter groups. Specifically, the user may specify a hyperparameter group by operating the input device 206 of the user terminal 20 to select or exclude a predetermined hyperparameter group from among a plurality of hyperparameter groups. This allows the spatial dimension of the hyperparameters to be reduced by eliminating one or more groups of hyperparameters related to image processing that are not suitable for generating abnormal images of a specific product, thereby reducing the search time for suitable hyperparameters. By utilizing prior knowledge (e.g., there are no abnormal images related to "scratches") related to a specific product (product type, product name), the search space of the hyperparameters can be narrowed, allowing efficient search for suitable hyperparameters.

[0066] The selection receiving step includes a step of receiving a selection of a part of a plurality of different hyperparameter groups according to a predetermined product. The control unit 104 of the server 10 may identify a hyperparameter group by selecting or excluding a predetermined hyperparameter group from among multiple hyperparameter groups, depending on the type and name of the product included in the normal image data registered in step S301. This makes it possible to efficiently search for suitable hyperparameters by utilizing prior knowledge about a given product (product type, product name) (for example, there are no abnormal images related to "scratches") and narrowing the search space of hyperparameters.

[0067] The control unit 104 of the server 10 executes a generation determination independent process for each of the identified hyperparameter groups. The generation determination independent process is the same as the abnormal image generation model creation process (first embodiment) except that one or more hyperparameters are replaced with the identified hyperparameter group in steps S102 to S106, and therefore a description of the overlapping processes will be omitted. The generation determination independent process is executed independently for each of the multiple hyperparameter groups. For example, the generation determination independent process may be executed in parallel for each hyperparameter group, or may be executed sequentially for each hyperparameter group. Moreover, similarly to the abnormal image generation model creation process (first embodiment), the process may be executed collectively for a plurality of sets of hyperparameters for each batch.

[0068] The predetermined hyperparameter group may be selected in response to a selection operation by a user. For example, the user may operate the input device 206 of the user terminal 20 to appropriately select the predetermined hyperparameter group in response to the type of product included in the normal image data registered in step S101. The predetermined hyperparameter group may be automatically selected by the control unit 104 of the server 10 according to the type of product (automobile parts such as screws, plates, bumpers, etc.) to which the image processing model 1021 is applied. Specifically, the predetermined hyperparameter group may be automatically selected by the control unit 104 of the server 10 based on the analysis results of analyzing image data of the product to which the image processing model 1021 is applied. For example, the control unit 104 of the server 10 can identify a predetermined set of hyperparameters by referring to a table (not shown) or by using any deep learning model, machine learning model, artificial intelligence model, or the like.

[0069] In step S302, the image generating step includes a step of generating a third image by applying an image processing model based on one or more hyperparameters included in a third hyperparameter group among a plurality of hyperparameters applicable to the image processing model; and generating a fourth image by applying an image processing model based on one or more hyperparameters included in a fourth hyperparameter group among a plurality of hyperparameters applicable to the image processing model. Specifically, the identified multiple hyperparameter groups are a third hyperparameter group (hyperparameters related to "chipping") and a fourth hyperparameter group (hyperparameters related to "distortion"). In this case, in the independent generation determination process (the generated data creation process of step S103), the image processing model 1021 based on the third hyperparameter group and the fourth hyperparameter group is applied to the normal image data to generate third generated data and fourth generated data, respectively. Note that the third generated data and the fourth generated data each include multiple generated data.

[0070] In step S302, the judgment receiving step includes a step of receiving a third judgment instruction from the user regarding whether or not a specified product image included in the third image is an abnormal image, and a step of receiving a fourth judgment instruction from the user regarding whether or not a specified product image included in the fourth image is an abnormal image. Specifically, in the independent generation judgment process (receiving a judgment instruction in step S105), the user visually checks the third generated data and the fourth generated data displayed on the display 2081 of the user terminal 20, and judges whether or not the third generated data and the fourth generated data correspond to abnormal images having a defect or flaw in the product. The user operates the input device 206 of the user terminal 20 to press a judgment button corresponding to the third generated data and the fourth generated data judged to be abnormal images, thereby transmitting a generation ID corresponding to the third generated data and the fourth generated data and information indicating the judgment result to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and the information indicating the judgment result. The control unit 104 of the server 10 searches the generation ID field of the generation table 1014 based on the received generation ID, and stores information indicating the received judgment result in the judgment instruction field of the identified record.

[0071] In step S302, the condition changing step includes a step of changing a third set of hyper-parameters based on a third determination instruction, and a step of changing a fourth set of hyper-parameters based on a fourth determination instruction. Specifically, the control unit 104 of the server 10 changes the values ​​of the third and fourth hyperparameter sets based on the judgment instructions received for the third and fourth generation data, respectively. Specifically, the control unit 104 of the server 10 specifies the search ranges of the third and fourth hyperparameter sets according to the generation conditions and the judgment instruction values ​​stored in the generation table 1014.

[0072] In step S303, the control unit 104 of the server 10 executes a completion receiving step of receiving an instruction indicating that the independent processing step has been completed. Specifically, an input operation from a user may be accepted to determine whether or not the optimization of each set of hyperparameters has been completed. In addition, for each of the multiple hyperparameter groups, it may be determined whether or not optimization has been completed in step S107 of the abnormal image generation model creation process (first embodiment), and if it is determined that optimization has been completed for all hyperparameter groups, it may be determined that the independent generation determination process has been completed.

[0073] In step S303, the control unit 104 of the server 10 executes a selection receiving step of receiving a selection of a part of the multiple different hyperparameter groups. The selection receiving step executes a step of receiving a selection of a part of the multiple different hyperparameter groups according to a predetermined product. Specifically, in step S303, the user may select or exclude a predetermined hyperparameter group from among the multiple hyperparameter groups by operating the input device 206 of the user terminal 20. Furthermore, the control unit 104 of the server 10 may select or exclude a predetermined hyperparameter group from among the multiple hyperparameter groups in accordance with the content of the determination instruction. For example, the optimization process may be completed by excluding a hyperparameter group that was not able to generate sufficient abnormal image data in the independent generation determination process. Hyperparameters included in the excluded hyperparameter group are excluded from the processing targets in step S304 and thereafter. By selecting or excluding a specific hyperparameter group from multiple hyperparameter groups, the search space of hyperparameters can be narrowed, and suitable hyperparameters can be efficiently searched for.

[0074] In step S304, the control unit 104 of the server 10 executes the independent processing step, and then executes a combination processing step in which an image generation step, a judgment reception step, and a condition change step are executed for each hyper-parameter group that is a combination of multiple different hyper-parameter groups. Specifically, the control unit 104 of the server 10 executes a generation determination combination process for hyperparameters obtained by combining multiple hyperparameter groups after completing optimization of multiple hyperparameter groups in the generation determination independent process in step S302. The generation determination combination process is the same as the abnormal image generation model creation process (first embodiment) except that the hyperparameters are replaced with hyperparameters obtained by combining multiple hyperparameter groups in steps S102 to S106, and therefore a description of the overlapping processes will be omitted.

[0075] In step S304, the combination processing step executes the step that is executed in response to the instruction accepted in the completion acceptance step. Specifically, the generation determination combination process may start upon receiving an input operation from the user indicating that the optimization of each hyper-parameter group has been completed in step S303.

[0076] In step S304, the combination processing step executes an image generation step, a judgment reception step, and a condition change step for each hyper-parameter group associated with a combination excluding some of the multiple different hyper-parameter groups. Specifically, in step S303, when a specific hyperparameter group is selected or excluded from among a plurality of hyperparameter groups, hyperparameter search and optimization are performed on the hyperparameters included in the hyperparameter group selected in the generation determination combination process, or on the hyperparameters excluding the excluded hyperparameter group. This can reduce the search time for suitable hyperparameters.

[0077] In step S304, the control unit 104 of the server 10 executes a second image generation step of generating a fifth image by applying to the first image an image processing model based on one or more hyperparameters included in a fifth hyperparameter group consisting of the third hyperparameter group and the fourth hyperparameter group. Specifically, in the generation judgment combination process (the generated data creation process of step S103), the image processing model 1021 based on a fifth hyperparameter group (a hyperparameter group related to "chipping" and "distortion") obtained by combining the third hyperparameter group and the fourth hyperparameter group is applied to the normal image data to generate fifth generated data. Note that each of the fifth generated data includes a plurality of generated data.

[0078] In step S304, the control unit 104 of the server 10 executes a second judgment receiving step of receiving, from the user, a fifth judgment instruction regarding whether or not a predetermined product image included in the fifth image is an abnormal image. Specifically, in the generation judgment combination process (processing for accepting a judgment instruction in step S105), the user visually checks the fifth generated data displayed on the display 2081 of the user terminal 20 and judges whether or not the fifth generated data corresponds to an abnormal image having a defect, flaw, or the like for the product. The user operates the input device 206 of the user terminal 20 to press a judgment button corresponding to the fifth generated data judged to be an abnormal image, thereby transmitting a generation ID corresponding to the fifth generated data and information indicating the judgment result to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and the information indicating the judgment result.

[0079] In step S304, the control unit 104 of the server 10 executes a second condition change step to change a fifth group of hyperparameters based on the fifth judgment instruction received in the second judgment reception step so that the fifth image in the second image generation step becomes an abnormal image of a specified product. Specifically, the control unit 104 of the server 10 changes the values ​​of the fifth set of hyperparameters based on the judgment instruction received for the fifth data. Specifically, the control unit 104 of the server 10 specifies the search range of the fifth set of hyperparameters according to the generation conditions stored in the generation table 1014 and the value of the judgment instruction.

[0080] In the present disclosure, as an example, a configuration is disclosed in which an independent generation determination process is performed for each of a group of hyperparameters constituting a plurality of hyperparameters, and then a combined generation determination process is performed for a hyperparameter obtained by combining each of the groups of hyperparameters. Note that the combined generation determination process may be performed in multiple stages for a combination of the groups of hyperparameters. For example, in the case where there are five types of hyperparameter groups consisting of 20 components (hyperparameters), namely, group A (vector consisting of the 0th to 3rd components), group B (vector consisting of the 4th to 8th components), group C (vector consisting of the 9th to 11th components), group D (vector consisting of the 12th to 15th components), and group E (vector consisting of the 16th to 20th components), a generation judgment independent process is executed for each of the hyperparameter groups A to E, and a search and optimization of hyperparameters for each of the hyperparameter groups A to E is executed. After that, a generation judgment combination process is executed for each of the hyperparameter groups (groups AB (vector consisting of the 0th to 8th components) and group CD (vector consisting of the 9th to 15th components)) formed by combining groups A and B, and groups C and D, and searching and optimization of hyperparameter groups for each of groups AB and CD is executed. Then, a generation judgment combination process may be performed on the hyperparameter group formed by combining groups AB, CD, and E (group ABCDE (vector consisting of the 0th to 20th components)), and a search and optimization may be performed on the entire hyperparameter space. This makes it possible to efficiently search for suitable hyperparameters by narrowing the search space for hyperparameters.

[0081] <Basic computer hardware configuration> 10 is a block diagram showing the basic hardware configuration of a computer 90. The computer 90 includes at least a processor 901, a main storage device 902, an auxiliary storage device 903, and a communication IF 991 (interface). These are electrically connected to each other by a communication bus 921.

[0082] The processor 901 is hardware for executing an instruction set described in a program, and is composed of an arithmetic unit, a register, a peripheral circuit, and the like.

[0083] The main memory device 902 is for temporarily storing programs, data to be processed by the programs, etc. For example, it is a volatile memory such as a DRAM (Dynamic Random Access Memory).

[0084] The auxiliary storage device 903 is a storage device for saving data and programs, such as a flash memory, a hard disk drive (HDD), a magneto-optical disk, a CD-ROM, a DVD-ROM, or a semiconductor memory.

[0085] The communication IF 991 is an interface for inputting and outputting signals for communicating with other computers via a network using a wired or wireless communication standard. The network is composed of the Internet, a LAN, various mobile communication systems constructed by wireless base stations, etc. For example, the network includes 3G, 4G, 5G mobile communication systems, LTE (Long Term Evolution), wireless networks that can connect to the Internet via a specified access point (e.g., Wi-Fi (registered trademark)), etc. In the case of wireless connection, communication protocols include, for example, Z-Wave (registered trademark), ZigBee (registered trademark), Bluetooth (registered trademark), etc. In the case of wired connection, the network also includes a network that is directly connected by a USB (Universal Serial Bus) cable or the like.

[0086] It should be noted that the computer 90 can be virtually realized by distributing all or part of each hardware configuration among multiple computers 90 and connecting them together via a network. In this way, the computer 90 is a concept that includes not only a computer 90 housed in a single housing or case, but also a virtualized computer system.

[0087] <Basic functional configuration of computer 90> A description will now be given of the functional configuration of a computer realized by the basic hardware configuration (FIG. 10) of a computer 90. The computer comprises at least the functional units of a control unit, a storage unit, and a communication unit.

[0088] The functional units of the computer 90 can also be realized by distributing all or part of the functional units among multiple computers 90 connected to each other via a network. The computer 90 is a concept that includes not only a single computer 90 but also a virtualized computer system.

[0089] The control unit is realized by the processor 901 reading out various programs stored in the auxiliary storage device 903, expanding the programs in the main storage device 902, and executing processes according to the programs. The control unit can realize functional units that perform various information processing depending on the type of program. In this way, the computer is realized as an information processing device that performs information processing.

[0090] The storage unit is realized by a main storage device 902 and an auxiliary storage device 903. The storage unit stores data, various programs, and various databases. Furthermore, the processor 901 can secure a storage area corresponding to the storage unit in the main storage device 902 or the auxiliary storage device 903 in accordance with a program. Furthermore, the control unit can cause the processor 901 to execute processes of adding, updating, and deleting data stored in the storage unit in accordance with the various programs.

[0091] The term database refers to a relational database, which is used to manage sets of data called masters and tables in a tabular format structurally defined by rows and columns, by associating them with each other. In a database, a table is called a table or master, a column in a table is called a column, and a row in a table is called a record. In a relational database, relationships between tables and masters can be set and associated. Usually, a column that serves as a primary key for uniquely identifying a record is set in each table and each master, but setting a primary key in a column is not essential. The control unit can cause the processor 901 to add, delete, or update records in a specific table or master stored in the storage unit according to various programs. Furthermore, by storing data, various programs, and various databases in the storage unit, it can be considered that the information processing device and information processing system according to the present disclosure have been manufactured.

[0092] In addition, the database and master in this disclosure may include any data structure (such as a list, a dictionary, an associative array, or an object) in which information is structurally defined. The data structure also includes data that can be considered as a data structure by combining data with a function, class, method, or the like written in any programming language.

[0093] The communication unit is realized by the communication IF 991. The communication unit realizes a function of communicating with other computers 90 via a network. The communication unit can receive information transmitted from other computers 90 and input the information to the control unit. The control unit can cause the processor 901 to execute information processing on the received information in accordance with various programs. In addition, the communication unit can transmit information output from the control unit to other computers 90.

[0094] <Additional Notes> The matters described in the above embodiments will be supplemented below.

[0095] (Appendix 1) A program to be executed by a computer having a processor and a memory unit, the program executing the following steps: an image acquisition step (S101) in which the processor acquires a first image including a predetermined product image; an image generation step (S103) in which a second image is generated by applying an image processing model based on predetermined hyperparameters to the first image; a judgment reception step (S105) in which a judgment instruction is received from a user as to whether or not the predetermined product image included in the second image is an abnormal image; and a condition change step (S106) in which, based on the judgment instruction received in the judgment reception step, the predetermined hyperparameters are changed in the image generation step so that the second image becomes an abnormal image of the predetermined product. As a result, even when there is no abnormal image data for a given product or there is an unknown abnormality, the operator's judgment instructions for the abnormal image can be used to generate new abnormal image data or pad the data. Also, without having to prepare prior knowledge about abnormalities for each product (it is not necessary to know in advance the product to be inspected for appearance and the type of abnormality (such as "chipped," "distorted," or "scratched")), the operator's judgment instructions can be used to generate new abnormal image data for various products. In other words, various abnormal image data can be generated generically for various products, not just for a specific product. The generated abnormality image data can be utilized as training data for an anomaly detection model used in product manufacturing.

[0096] (Appendix 2) The program of claim 1, wherein the processor executes an independent processing step (S302) that executes an image generation step, a judgment receiving step, and a condition change step independently for each of a plurality of different hyperparameter groups included in a plurality of hyperparameters applicable to the image processing model. In the present disclosure, the hyperparameters applicable to the image processing model applied to the product images include multiple different hyperparameter groups according to the content of the image processing, such as "chips," "distortion," and "scratches." By optimizing each hyperparameter group independently, the search space of the hyperparameters can be narrowed, thereby efficiently searching for suitable hyperparameters.

[0097] (Appendix 3) The program of claim 2, wherein the processor executes a combination processing step (S304) in which, after executing the independent processing step, the processor executes an image generation step, a judgment acceptance step, and a condition change step for each hyper-parameter group that combines multiple different hyper-parameter groups. As a result, by optimizing each of a plurality of independent hyperparameter groups and then searching for hyperparameters according to a combination of image processing such as "chips," "distortion," and "scratches," it is possible to efficiently search for suitable hyperparameters while appropriately generating abnormal images that combine a plurality of image processing such as "chips" and "scratches." In other words, it is possible to efficiently search for suitable hyperparameters for generating various abnormal image data for various products, not just a specific product.

[0098] (Appendix 4) The program described in Appendix 3, wherein the processor executes a completion reception step (S303) for receiving an instruction indicating that the independent processing step has been completed, and the combination processing step (S304) is a step that is executed in response to the instruction received in the completion reception step. As a result, after optimization of each of the multiple hyperparameter groups is completed, a search for hyperparameters is performed according to a combination of image processing such as "chips," "distortion," and "scratches," thereby narrowing the search space of hyperparameters and efficiently searching for suitable hyperparameters.

[0099] (Appendix 5) The program described in Appendix 3, wherein the combination processing step (S304) is a step of executing an image generation step, a judgment receiving step, and a condition change step for each hyper-parameter group associated with a combination excluding some of the multiple different hyper-parameter groups. This makes it possible to efficiently search for suitable hyperparameters by narrowing the search space of hyperparameters by excluding one or more hyperparameter groups related to image processing that are not suitable for generating abnormal images of a specified product from among the multiple hyperparameter groups.

[0100] (Appendix 6) The program described in Appendix 5, wherein the processor executes a selection receiving step (S303) of receiving a selection of a portion of a plurality of different hyper-parameter groups, and a combination processing step (S304) of executing an image generation step, a judgment receiving step, and a condition change step for each hyper-parameter group relating to a combination excluding the portion of the plurality of different hyper-parameter groups based on the hyper-parameter group selected in the selection receiving step. This makes it possible to reduce the time required to search for suitable hyperparameters by excluding one or more hyperparameter groups related to image processing that are not suitable for generating abnormal images of a specified product from among multiple hyperparameter groups, in response to selection instructions received from a user, etc., or automatically performed by a computer. By utilizing prior knowledge about a given product (e.g., there can be no abnormal images related to "scratches"), suitable hyperparameters can be efficiently searched for by narrowing the search space of hyperparameters.

[0101] (Appendix 7) The program according to claim 6, wherein the selection receiving step (S303) is a step of receiving a selection of a part of a plurality of different hyperparameter groups according to a predetermined product. By utilizing prior knowledge about a given product (e.g., there can be no abnormal images related to "scratches"), suitable hyperparameters can be efficiently searched for by narrowing the search space of hyperparameters.

[0102] (Appendix 8) The program described in Appendix 1, wherein the image generating step (S302) includes a step of generating a third image by applying an image processing model based on one or more hyperparameters included in a third hyperparameter group among a plurality of hyperparameters applicable to the image processing model, and a step of generating a fourth image by applying an image processing model based on one or more hyperparameters included in a fourth hyperparameter group among a plurality of hyperparameters applicable to the image processing model; the judgment receiving step (S302) includes a step of receiving a third judgment instruction from a user regarding whether or not a specific product image included in the third image is an abnormal image, and a step of receiving a fourth judgment instruction from the user regarding whether or not a specific product image included in the fourth image is an abnormal image; and the condition changing step (S302) includes a step of changing the third hyperparameter group based on the third judgment instruction, and a step of changing the fourth hyperparameter group based on the fourth judgment instruction. In the present disclosure, the hyperparameters applicable to the image processing model applied to the product images include multiple different hyperparameter groups according to the content of the image processing, such as "chips," "distortion," and "scratches." By optimizing each hyperparameter group independently, the search space of the hyperparameters can be narrowed, thereby efficiently searching for suitable hyperparameters.

[0103] (Appendix 9) The program described in Appendix 8, wherein the processor executes a second image generation step (S304) in which a fifth image is generated by applying to the first image an image processing model based on one or more hyperparameters included in a fifth hyperparameter group consisting of a third hyperparameter group and a fourth hyperparameter group, a second judgment reception step (S304) in which a fifth judgment instruction is received from a user regarding whether a specific product image included in the fifth image is an abnormal image, and a second condition change step (S304) in which, based on the fifth judgment instruction received in the second judgment reception step, the fifth hyperparameter group is changed in the second image generation step so that the fifth image is an abnormal image of the specific product. As a result, by optimizing each of the multiple hyperparameter groups and then searching for hyperparameters according to a combination of image processing such as "chipping," "distortion," and "scratches," it is possible to reduce the search time for suitable hyperparameters and appropriately generate abnormal images that combine multiple image processing such as "chipping" and "scratches." In other words, it is possible to efficiently search for hyperparameters that are suitable for generating various abnormal image data for various products, not just a specific product.

[0104] (Appendix 10) The program described in Appendix 1, wherein the image generation step (S103) includes a step of extracting a region of a predetermined product image contained in the first image, and a step of generating a second image by applying an image processing model based on predetermined hyperparameters to the extracted region of the predetermined product image. This makes it possible to apply an image processing model for generating an abnormal image only to a specific product image when the first image includes a specific product image.

[0105] (Appendix 11) The program described in Appendix 10, wherein the image generation step (S103) is a step of generating a second image by applying an image processing model based on predetermined hyperparameters to the entire first image when it is not possible to extract a predetermined product image area contained in the first image. This makes it possible, in a case where a predetermined product image is included in the entire first image, to apply an image processing model for generating an abnormal image to the entire predetermined product image.

[0106] (Appendix 12) The program according to claim 1, wherein the condition changing step (S106) is a step of changing a predetermined hyperparameter by applying Bayesian optimization based on the predetermined hyperparameter and a judgment instruction. This makes it possible to efficiently search for suitable hyperparameters even when the search space of hyperparameters is broad, such as when generating various abnormal image data for various products, not just a specific product, as in the present disclosure.

[0107] (Appendix 13) The program described in Appendix 12, wherein the condition changing step (S106) is a step of applying Bayesian optimization based on the accuracy of a classification model that determines whether or not an image is abnormal, which is learned based on a second image generated by an image processing model. This allows efficient searching for suitable hyperparameters.

[0108] (Appendix 14) The program according to claim 1, wherein the determination receiving step (S105) receives, from the user, an input operation of an abnormal image type regarding a type of an abnormal image of a predetermined product image included in the second image. This makes it possible to generate abnormal images according to the type of abnormality, such as "paint peeling," "corrosion," and "color abnormality," in addition to being able to give two types of judgment instructions for the generated abnormal images: "abnormal" or "not abnormal."

[0109] (Appendix 15) The program described in Appendix 1, wherein a processor executes an initial value selection step (S102) of selecting initial values ​​of predetermined hyperparameters according to a predetermined product, and an image generation step (S103) is a step of generating a second image by applying an image processing model based on the initial values ​​selected in the initial value selection step. This allows for efficient search for suitable hyperparameters by setting the initial values ​​of the hyperparameters according to the type of a given product, etc. For example, if there are already hyperparameters optimized in advance for each type of given product, the hyperparameters can be set as initial values, allowing for efficient search for hyperparameters.

[0110] (Appendix 16) The program of claim 1, wherein the image processing model is a model capable of applying image processing to add an abnormality related to at least one of chipping, distortion, and scratches to an input image, and the predetermined hyperparameters include parameters for the size, rotation angle, inversion angle, and color change of the abnormality. This makes it possible to efficiently generate various abnormality image data not only for a specific product but also for various products.

[0111] (Appendix 17) A method implemented on a computer having a processor and a memory, the processor performing all of the steps performed in the invention according to any one of claims 1 to 16. As a result, even when there is no abnormal image data for a given product or there is an unknown abnormality, the operator's judgment instructions for the abnormal image can be used to generate new abnormal image data or pad the data. Also, without having to prepare prior knowledge about abnormalities for each product (it is not necessary to know in advance the product to be inspected for appearance and the type of abnormality (such as "chipped," "distorted," or "scratched")), the operator's judgment instructions can be used to generate new abnormal image data for various products. In other words, various abnormal image data can be generated generically for various products, not just for a specific product. The generated abnormality image data can be utilized as training data for an anomaly detection model used in product manufacturing.

[0112] (Appendix 18) An information processing device comprising a control unit and a memory unit, wherein the control unit executes all of the steps executed in the invention according to any one of Supplementary Note 1 to Supplementary Note 16. As a result, even when there is no abnormal image data for a given product or there is an unknown abnormality, the operator's judgment instructions for the abnormal image can be used to generate new abnormal image data or pad the data. Also, without having to prepare prior knowledge about abnormalities for each product (it is not necessary to know in advance the product to be inspected for appearance and the type of abnormality (such as "chipped," "distorted," or "scratched")), the operator's judgment instructions can be used to generate new abnormal image data for various products. In other words, various abnormal image data can be generated generically for various products, not just for a specific product. The generated abnormality image data can be utilized as training data for an anomaly detection model used in product manufacturing.

[0113] (Appendix 19) A system comprising means for performing all the steps performed in any of the inventions according to appendix 1 to appendix 16. As a result, even when there is no abnormal image data for a given product or there is an unknown abnormality, the operator's judgment instructions for the abnormal image can be used to generate new abnormal image data or pad the data. Also, without having to prepare prior knowledge about abnormalities for each product (it is not necessary to know in advance the product to be inspected for appearance and the type of abnormality (such as "chipped," "distorted," or "scratched")), the operator's judgment instructions can be used to generate new abnormal image data for various products. In other words, various abnormal image data can be generated generically for various products, not just for a specific product. The generated abnormality image data can be utilized as training data for an anomaly detection model used in product manufacturing. [Explanation of symbols]

[0114] 1 system, 10 server, 101 storage unit, 104 control unit, 106 input device, 108 output device, 20 user terminal, 201 storage unit, 204 control unit, 206 input device, 208 output device

Claims

1. A program to be executed by a computer having a processor and a storage unit, The processor, An image acquisition step of acquiring a first image including a predetermined product image; an image generating step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image; a determination receiving step of receiving, from a user, a determination instruction as to whether or not the predetermined product image included in the second image is an abnormal image; a condition changing step of changing the predetermined hyperparameter so that the second image becomes an abnormal image of the predetermined product in the image generating step based on the judgment instruction received in the judgment receiving step; A program that executes.

2. The processor, an independent processing step of independently executing the image generating step, the judgment receiving step, and the condition changing step for each of a plurality of different hyperparameter groups included in a plurality of hyperparameters applicable to the image processing model; The program according to claim 1,

3. The processor, a combination processing step of executing the image generating step, the judgment receiving step, and the condition changing step for each hyper-parameter group obtained by combining each of the plurality of different hyper-parameter groups after executing the independent processing step; The program according to claim 2, which executes the above.

4. The processor, a completion receiving step of receiving an instruction indicating that the independent processing step has been completed; Run The combination processing step is a step executed in response to the instruction accepted in the completion accepting step. The program according to claim 3.

5. The combination processing step is a step of executing the image generating step, the judgment receiving step, and the condition changing step for each hyper-parameter group related to a combination excluding some hyper-parameter groups among the plurality of different hyper-parameter groups. The program according to claim 3.

6. The processor, a selection receiving step of receiving a selection of a part of the hyperparameter groups from the plurality of different hyperparameter groups; Run The combination processing step is a step of executing the image generating step, the judgment receiving step, and the condition changing step for each hyper-parameter group related to a combination excluding some hyper-parameter groups among the plurality of different hyper-parameter groups based on the hyper-parameter group selected in the selection receiving step. The program according to claim 5.

7. The selection receiving step is a step of receiving a selection of a part of the hyperparameter groups from the plurality of different hyperparameter groups according to the predetermined product. The program according to claim 6.

8. The image generating step includes: generating a third image by applying the image processing model based on one or more hyperparameters included in a third hyperparameter group among a plurality of hyperparameters applicable to the image processing model; generating a fourth image by applying the image processing model based on one or more hyperparameters included in a fourth hyperparameter group among a plurality of hyperparameters applicable to the image processing model; Including, The judgment acceptance step includes: receiving a third determination instruction from a user regarding whether or not the predetermined product image included in the third image is an abnormal image; receiving a fourth determination instruction from a user regarding whether the predetermined product image included in the fourth image is an abnormal image; Including, The condition changing step includes: changing the third set of hyper-parameters based on the third determination instruction; changing the fourth set of hyper-parameters based on the fourth determination instruction; Including, The program according to claim 1.

9. The processor, a second image generating step of generating a fifth image by applying the image processing model based on one or more hyperparameters included in a fifth hyperparameter group consisting of the third hyperparameter group and the fourth hyperparameter group to the first image; a second determination receiving step of receiving a fifth determination instruction from a user regarding whether or not the predetermined product image included in the fifth image is an abnormal image; a second condition changing step of changing the fifth hyperparameter group based on the fifth judgment instruction received in the second judgment receiving step so that the fifth image in the second image generating step becomes an abnormal image of the specified product; The program according to claim 8, which executes the steps of:

10. The image generating step includes: Extracting an area of ​​the predetermined product image included in the first image; generating the second image by applying the image processing model based on the predetermined hyperparameters to the extracted region of the predetermined product image; Including, The program according to claim 1.

11. the image generating step is a step of generating the second image by applying the image processing model based on the predetermined hyperparameters to the entire first image when the predetermined product image area included in the first image cannot be extracted; The program according to claim 10.

12. The condition change step is a step of changing the predetermined hyperparameter by applying Bayesian optimization based on the predetermined hyperparameter and the judgment instruction. The program according to claim 1.

13. The condition changing step is a step of applying the Bayesian optimization based on accuracy of a classification model that determines whether or not an image is an abnormal image and is trained based on the second image generated by the image processing model. The program according to claim 12.

14. The determination reception step includes a determination reception step of receiving, from the user, an input operation of an abnormal image type regarding a type of an abnormal image of the predetermined product image included in the second image; The program according to claim 1,

15. The processor, an initial value selection step of selecting initial values ​​of the predetermined hyperparameters according to the predetermined product; Run the image generating step is a step of generating the second image by applying the image processing model based on the initial value selected in the initial value selecting step. The program according to claim 1.

16. The image processing model is a model capable of applying image processing to add an abnormality regarding at least one of chipping, distortion, and scratches to an input image, and the predetermined hyperparameters include parameters of the size, rotation angle, inversion angle, and color change of the abnormality. The program according to claim 1.

17. A method implemented on a computer having a processor and a memory, the processor performing all of the steps performed in any of the inventions according to claims 1 to 16.

18. 17. An information processing apparatus comprising a control unit and a storage unit, the control unit executing all steps executed in the invention according to any one of claims 1 to 16.

19. A system comprising means for performing all the steps performed in any one of claims 1 to 16.

Citation Information

Patent Citations

  • Automatic inspection device, pipe inner surface automatic inspection device and appearance automatic inspection device of three-dimensional structure product

    JP2023008379A