JP7344501B1 - Program, method, information processing device, system - Google Patents

Program, method, information processing device, system Download PDF

Info

Publication number
JP7344501B1
JP7344501B1 JP2023054190A JP2023054190A JP7344501B1 JP 7344501 B1 JP7344501 B1 JP 7344501B1 JP 2023054190 A JP2023054190 A JP 2023054190A JP 2023054190 A JP2023054190 A JP 2023054190A JP 7344501 B1 JP7344501 B1 JP 7344501B1
Authority
JP
Japan
Prior art keywords
image
hyperparameter
determination
hyperparameters
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2023054190A
Other languages
Japanese (ja)
Inventor
康仁 渡辺
祐介 柚口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AI Inside Inc
Original Assignee
AI Inside Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AI Inside Inc filed Critical AI Inside Inc
Priority to JP2023054190A priority Critical patent/JP7344501B1/en
Application granted granted Critical
Publication of JP7344501B1 publication Critical patent/JP7344501B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

【課題】製品について異常画像データがない、または、未知の異常に対して異常画像データを作成することができていないという課題がある。【解決手段】プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、プロセッサが、所定の製品画像を含む第1画像を取得する画像取得ステップと、第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、ユーザから、第2画像に含まれる所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、判定受付ステップにおいて受け付けた判定指示に基づき、画像生成ステップにおいて第2画像が所定の製品の異常画像となるように所定のハイパーパラメータを変更する条件変更ステップと、を実行するプログラム。【選択図】 図9There is a problem in that there is no abnormal image data for a product, or abnormal image data cannot be created for unknown abnormalities. A program for causing a computer including a processor and a storage unit to execute an image acquisition step in which the processor acquires a first image including a predetermined product image; an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters; and an instruction from the user to determine whether a predetermined product image included in the second image is an abnormal image. and a condition changing step of changing predetermined hyperparameters so that the second image becomes an abnormal image of a predetermined product in the image generation step based on the judgment instruction received in the judgment reception step. program to do. [Selection diagram] Figure 9

Description

本開示は、プログラム、方法、情報処理装置、システムに関する。 The present disclosure relates to a program, a method, an information processing device, and a system.

深層学習モデル等を用いて製品画像を撮影した画像データに基づき、製品等を検査する技術が知られている。
特許文献1には、少ないサンプル数でも不良/ノイズを判別する推論プログラムの作成が可能な深層学習技術を画像処理工程に実装した自動検査装置が開示されている。
2. Description of the Related Art Techniques for inspecting products, etc. based on image data obtained by capturing product images using deep learning models and the like are known.
Patent Document 1 discloses an automatic inspection device in which a deep learning technique is implemented in an image processing process, which allows creation of an inference program for determining defects/noise even with a small number of samples.

特開2023-8379号公報JP 2023-8379 Publication

製品について異常画像データがない、または、未知の異常に対して異常画像データを作成することができていないという課題がある。
そこで、本開示は、上記課題を解決すべくなされたものであって、その目的は、製品について異常画像データがない、または、未知の異常に対しても、異常画像データを新たに生成したり、水増しすることである。
There is a problem in that there is no abnormal image data for the product, or abnormal image data cannot be created for unknown abnormalities.
Therefore, the present disclosure has been made to solve the above-mentioned problems, and its purpose is to generate new abnormal image data for products for which there is no abnormal image data or for unknown abnormalities. , is to inflate the amount.

プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、プロセッサが、所定の製品画像を含む第1画像を取得する画像取得ステップと、第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、ユーザから、第2画像に含まれる所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、判定受付ステップにおいて受け付けた判定指示に基づき、画像生成ステップにおいて第2画像が所定の製品の異常画像となるように所定のハイパーパラメータを変更する条件変更ステップと、を実行するプログラム。 A program to be executed by a computer including a processor and a storage unit, the program comprising: an image acquisition step in which the processor acquires a first image including a predetermined product image; and a predetermined hyperparameter for the first image. an image generation step of generating a second image by applying an image processing model based on , and a determination reception for receiving a determination instruction from a user regarding whether or not a predetermined product image included in the second image is an abnormal image. and a condition changing step of changing predetermined hyperparameters so that the second image becomes an abnormal image of a predetermined product in the image generation step based on the determination instruction received in the determination receiving step.

本開示によれば、製品について異常画像データがない、または、未知の異常に対しても、異常画像データを新たに生成したり、水増しすることができる。 According to the present disclosure, it is possible to newly generate or inflate abnormal image data even when there is no abnormal image data for a product or for an unknown abnormality.

システム1の機能構成を示すブロック図である。1 is a block diagram showing the functional configuration of system 1. FIG. サーバ10の機能構成を示すブロック図である。1 is a block diagram showing the functional configuration of a server 10. FIG. 管理者端末30の機能構成を示すブロック図である。3 is a block diagram showing the functional configuration of an administrator terminal 30. FIG. ユーザテーブル1012のデータ構造を示す図である。3 is a diagram showing a data structure of a user table 1012. FIG. 画像テーブル1013のデータ構造を示す図である。3 is a diagram showing the data structure of an image table 1013. FIG. 生成テーブル1014のデータ構造を示す図である。3 is a diagram showing a data structure of a generation table 1014. FIG. 異常画像生成モデル作成処理の動作を示すフローチャートである。3 is a flowchart showing the operation of abnormal image generation model creation processing. 異常画像生成モデル作成処理の動作を示す画面例である。It is an example of a screen showing the operation of abnormal image generation model creation processing. 異常画像生成モデル作成処理における判定処理を示す画面例である。It is an example of a screen showing the determination process in the abnormal image generation model creation process. コンピュータ90の基本的なハードウェア構成を示すブロック図である。2 is a block diagram showing the basic hardware configuration of a computer 90. FIG.

以下、本開示の実施形態について図面を参照して説明する。実施形態を説明する全図において、共通の構成要素には同一の符号を付し、繰り返しの説明を省略する。なお、以下の実施形態は、特許請求の範囲に記載された本開示の内容を不当に限定するものではない。また、実施形態に示される構成要素のすべてが、本開示の必須の構成要素であるとは限らない。また、各図は模式図であり、必ずしも厳密に図示されたものではない。 Embodiments of the present disclosure will be described below with reference to the drawings. In all the figures explaining the embodiments, common components are given the same reference numerals and repeated explanations will be omitted. Note that the following embodiments do not unduly limit the content of the present disclosure described in the claims. Furthermore, not all components shown in the embodiments are essential components of the present disclosure. Furthermore, each figure is a schematic diagram and is not necessarily strictly illustrated.

<システム1の構成>
本開示におけるシステム1は、所定の製品について製品に関する不具合や欠陥等がない状態の当該製品の外観等を撮影した画像データ(正常画像)から、生産工程等において不具合や欠陥等を有する当該製品の外観等を撮影した画像(異常画像)を生成するための情報処理システムである。なお、本開示は、製品の外観等の画像データに限らず、非破壊検査等により得られる製品の内部状態に関する画像データ、その他、製品に関する任意の画像データに対して適用することが可能である。
システム1は、ネットワークNを介して接続された、サーバ10、ユーザ端末20の情報処理装置を備える。
図1は、システム1の機能構成を示すブロック図である。
図2は、サーバ10の機能構成を示すブロック図である。
図3は、管理者端末30の機能構成を示すブロック図である。
<System 1 configuration>
System 1 in the present disclosure uses image data (normal images) of the external appearance of a predetermined product in a state where there are no defects or defects related to the product, to determine whether the product has defects or defects in the production process, etc. This is an information processing system for generating images (abnormal images) of external appearance, etc. Note that the present disclosure is not limited to image data such as the external appearance of a product, but can be applied to image data related to the internal state of a product obtained by non-destructive testing, etc., and any other image data related to the product. .
The system 1 includes information processing devices such as 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. As shown in FIG.
FIG. 2 is a block diagram showing the functional configuration of the server 10.
FIG. 3 is a block diagram showing the functional configuration of the administrator terminal 30.

各情報処理装置は演算装置と記憶装置とを備えたコンピュータにより構成されている。コンピュータの基本ハードウェア構成および、当該ハードウェア構成により実現されるコンピュータの基本機能構成は後述する。サーバ10、ユーザ端末20のそれぞれについて、後述するコンピュータの基本ハードウェア構成およびコンピュータの基本機能構成と重複する説明は省略する。 Each information processing device is composed of a computer including an arithmetic unit 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. Regarding each of the server 10 and the user terminal 20, explanations that overlap with the basic hardware configuration of the computer and the basic functional configuration of the computer, which will be described later, will be omitted.

<サーバ10の構成>
サーバ10は、所定の製品に関する正常画像データに対して、画像処理モデル1021を適用することにより異常画像データを生成する情報処理サービスを提供する情報処理装置である。本開示にかかる情報処理サービスにより、所定の製品について異常画像データがない、または、未知の異常に対しても、異常画像データを新たに生成したり、水増しすることができる。生成された異常画像データは、当該製品の生産ライン等における外観検査等の異常検知のための深層学習モデル等を作成する際の教師データとして用いることができる。つまり、教師データを水増しすることにより、異常検知のための深層学習モデルの性能を向上させることができる。
サーバ10は、記憶部101、制御部104、入力装置106、出力装置108を備える。
<Configuration of server 10>
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 regarding a predetermined product. With the information processing service according to the present disclosure, it is possible to newly generate or inflate abnormal image data even when there is no abnormal image data for a predetermined product or for an unknown abnormality. The generated abnormal image data can be used as training data when creating a deep learning model or the like for abnormality detection such as visual inspection on the production line of the product. In other words, by inflating the training data, the performance of the deep learning model for anomaly detection can be improved.
The server 10 includes a storage section 101, a control section 104, an input device 106, and an output device 108.

<サーバ10の記憶部101の構成>
サーバ10の記憶部101は、アプリケーションプログラム1011、ユーザID2011、アプリケーションプログラム2012、ユーザテーブル1012、画像テーブル1013、生成テーブル1014、画像処理モデル1021、分類モデル1022を備える。
<Configuration of storage unit 101 of 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.

アプリケーションプログラム1011は、サーバ10の制御部104を各機能ユニットとして機能させるためのプログラムである。
アプリケーションプログラム1011は、ウェブブラウザアプリケーションなどのアプリケーションを含む。
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 web browser applications.

ユーザID2011はユーザのアカウントIDである。ユーザは、ユーザ端末20からユーザID2011を、サーバ10へ送信する。サーバ10は、ユーザID2011に基づきユーザを識別し、本開示にかかるサービスをユーザに対して提供する。なお、ユーザID2011には、ユーザ端末20を利用しているユーザを識別するにあたりサーバ10から一時的に付与されるセッションIDなどの情報を含む。 User ID 2011 is the user's account ID. 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 service according to the present disclosure to the user. Note that the user ID 2011 includes information such as a session ID temporarily given by the server 10 to identify the user using the user terminal 20.

アプリケーションプログラム2012は、記憶部201に予め記憶されていても良いし、通信IFを介してサービス提供者が運営するウェブサーバ等からダウンロードする構成としても良い。
アプリケーションプログラム2012は、ウェブブラウザアプリケーションなどのアプリケーションを含む。
アプリケーションプログラム2012は、ユーザ端末20に記憶されているウェブブラウザアプリケーション上で実行されるJavaScript(登録商標)などのインタープリター型プログラミング言語を含む。
The application program 2012 may be stored in advance in the storage unit 201, or may be downloaded from a web server operated by a service provider via a communication IF.
Application programs 2012 include applications such as web browser applications.
Application program 2012 includes an interpreted programming language such as JavaScript® that is executed on a web browser application stored on user terminal 20.

ユーザテーブル1012は、サービスを利用する会員ユーザ(以下、ユーザ)の情報を記憶し管理するテーブルである。ユーザは、サービスの利用登録を行うことで、当該ユーザの情報がユーザテーブル1012の新しいレコードに記憶される。これにより、ユーザは本開示にかかるサービスを利用できるようになる。
ユーザテーブル1012は、ユーザIDを主キーとして、ユーザID、ユーザ名のカラムを有するテーブルである。
図4は、ユーザテーブル1012のデータ構造を示す図である。
The user table 1012 is a table that stores and manages information about member users (hereinafter referred to as users) who use the service. When a user registers to use a service, the user's information is stored in a new record in the user table 1012. This allows the user to use the service according to the present disclosure.
The user table 1012 is a table that uses the user ID as a primary key and has columns of user ID and user name.
FIG. 4 is a diagram showing the data structure of the user table 1012.

ユーザIDは、ユーザを識別するためのユーザ識別情報を記憶する項目である。ユーザ識別情報は、ユーザごとにユニークな値が設定されている項目である。
ユーザ名は、ユーザの氏名を記憶する項目である。ユーザ名は、氏名ではなく、ニックネームなど任意の文字列を設定しても良い。
The user ID is an item that stores user identification information for identifying a user. The user identification information is an item in which a unique value is set for each user.
The user name is an item that stores the user's name. The user name may be any character string such as a nickname instead of a full name.

画像テーブル1013には、所定の製品について製品に関する不具合や欠陥等がない状態の当該製品の外観等を撮影した画像データ(正常画像データ)を記憶し管理するテーブルである。
画像テーブル1013は、画像ID、ユーザID、画像データ、画像ラベルのカラムを有するテーブルである。
図5は、画像テーブル1013のデータ構造を示す図である。
The image table 1013 is a table for storing and managing image data (normal image data) obtained by photographing the external appearance of a predetermined product in a state where there are no defects or defects related to the product.
The image table 1013 is a table having columns of image ID, user ID, image data, and image label.
FIG. 5 is a diagram showing the data structure of the image table 1013.

画像IDは、正常画像データを識別するための画像識別情報を記憶する項目である。
ユーザIDは、正常画像データを記憶したユーザのユーザ識別情報を記憶する項目である。
画像データは、カメラ等により撮影された正常画像データを記憶する項目である。他の場所に配置された画像データファイルに対する参照情報(パス)を記憶するものとしても良い。画像データのフォーマットは、jpeg、png、bmp、tiff、gif、eps、svgなど任意のデータフォーマットで良い。
画像ラベルは、正常画像データに関するラベル情報を記憶する項目である。具体的に、画像ラベルは、画像データに含まれる製品の状態や程度(良、不良)を示す情報、製品の種類や分類を示す製品カテゴリ情報、その他、任意のラベル情報を含むことができる。
The image ID is an item that stores image identification information for identifying normal image data.
The user ID is an item that stores user identification information of a user who has stored normal image data.
Image data is an item that stores normal image data taken by a camera or the like. Reference information (paths) for image data files located elsewhere may also be stored. The format of the image data may be any data format such as jpeg, png, bmp, tiff, gif, eps, and svg.
The image label is an item that stores label information regarding normal image data. Specifically, the image label can include information indicating the condition and grade (good, defective) of the product included in the image data, product category information indicating the type and classification of the product, and other arbitrary label information.

生成テーブル1014は、正常画像データに画像処理モデル1021を適用することにより生成された生成画像データ(生成データ)を記憶し管理するためのテーブルである。
生成テーブル1014は、生成ID、生成データ、生成条件、判定指示のカラムを有するテーブルである。
図6は、生成テーブル1014のデータ構造を示す図である。
The generation 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.
The generation table 1014 is a table having columns of generation ID, generation data, generation condition, and determination instruction.
FIG. 6 is a diagram showing the data structure of the generation table 1014.

生成IDは、生成データを識別するための画像識別情報を記憶する項目である。
生成データは、生成データを記憶する項目である。他の場所に配置された画像データファイルに対する参照情報(パス)を記憶するものとしても良い。画像データのフォーマットは、jpeg、png、bmp、tiff、gif、eps、svgなど任意のデータフォーマットで良い。
生成条件は、生成データを生成する際の生成条件に関する情報を記憶する項目である。生成条件は、正常画像データから、生成データを生成する際に必要な情報をすべて含む。
生成条件は、生成データを生成する際の画像処理モデル1021に対して入力される正常画像データの画像識別情報を含む。
生成条件は、生成データを生成する際の画像処理モデル1021に対して入力されるハイパーパラメータの値を含む。
その他、生成条件は、複数の画像処理モデル1021がある場合には、複数の画像処理モデル1021のうち生成データを生成する際に用いられた画像処理モデル1021を特定する情報、ハイパーパラメータに関する情報を含む。
判定指示は、生成データが、異常画像データか否かに関する判定結果を示す情報を含む。
判定指示は、異常画像データが「異常」である事を示す情報、「異常ではない」ことを示す情報のいずれかを含んでも良い。
判定指示は、異常画像データが「塗装剥がれ」、「腐食」、「色異常」等の異常の種類に関する情報を含んでも良い。
The generation ID is an item that stores image identification information for identifying generated data.
Generated data is an item that stores generated data. Reference information (paths) for image data files located elsewhere may also be stored. The format of the image data may be any data format such as jpeg, png, bmp, tiff, gif, eps, and svg.
The generation condition is an item that stores information regarding generation conditions when generating generated data. The generation conditions include all information necessary for generating generation data from normal image data.
The generation conditions include image identification information of normal image data that is input to the image processing model 1021 when generating generated data.
The generation conditions include hyperparameter values that are input to the image processing model 1021 when generating generation data.
In addition, if there are multiple image processing models 1021, the generation conditions include information that identifies the image processing model 1021 used to generate the generated data among the multiple image processing models 1021, and information regarding hyperparameters. include.
The determination instruction includes information indicating a determination result regarding whether or not the generated data is abnormal image data.
The determination instruction may include either information indicating that the abnormal image data is "abnormal" or information indicating that the abnormal image data is "not abnormal."
The determination instruction may include information regarding the type of abnormality in the abnormal image data, such as "paint peeling", "corrosion", and "color abnormality".

画像処理モデル1021は、入力画像データに対して欠け、歪み、擦り傷等の少なくともいずれか1つに関する異常箇所を付加する画像処理を適用可能なモデルである。画像処理モデルは、1または複数のハイパーパラメータを入力変数に含めることが可能である。
ハイパーパラメータは、異常箇所の大きさ、回転角度、反転角度および色彩変更に関するパラメータを含む。ハイパーパラメータは、画像処理モデル1021におけるフィルタサイズや層数などの画像処理モデル1021に応じたハイパーパラメータを含む。入力される1またはハイパーパラメータの値に応じて、画像処理モデルは異なる生成データを生成することができる。また、製品の正常画像を含む入力画像データに対して、異常画像生成モデル作成処理により最適化されたハイパーパラメータに基づく画像処理モデルを適用することにより、当該製品の異常画像を含む出力画像データを出力させることができる。
画像処理モデルに適用されるハイパーパラメータは、「欠け」、「歪み」、「擦り傷」等の画像処理の内容に応じて、それぞれの画像処理に対応する変数空間を被覆可能な複数のハイパーパラメータ群を含んでも良い。
例えば、「欠け」に関する画像処理モデルに応じた、「欠け」に関するハイパーパラメータ群を第1のハイパーパラメータ群とする。「歪み」に関する画像処理モデルに応じた、「歪み」に関するハイパーパラメータ群を第2のハイパーパラメータ群とする。「擦り傷」に関する画像処理モデルに応じた、「擦り傷」に関するハイパーパラメータ群を第3のハイパーパラメータ群とする。それぞれの、第1ハイパーパラメータ群、第2ハイパーパラメータ群、第3ハイパーパラメータ群は異なる変数空間を被覆可能である。
具体的に、ハイパーパラメータ群が10個の成分(ハイパーパラメータ)からなるベクトルである場合に、第1ハイパーパラメータ群が0~3番目の成分からなるベクトル、第2ハイパーパラメータ群が4~6番目の成分からなるベクトル、第3ハイパーパラメータ群が7~10番目の成分からなるベクトルとすることができる。
なお、複数のハイパーパラメータ群は必ずしも独立している必要はなく、それぞれのハイパーパラメータ群に含まれるハイパーパラメータの一部または全部が、他のハイパーパラメータ群に含まれたり重複していても構わない。例えば、第1ハイパーパラメータ群が0~3、6番目の成分からなるベクトル、第2ハイパーパラメータ群が4~6、8、9番目の成分からなるベクトル、第3ハイパーパラメータ群が7~10番目の成分からなるベクトルとしても良い。
なお、本開示にかかる画像処理モデルはルールベースの画像処理モデルである必要はなく、深層学習モデルにおけるGAN(Generative Adversarial Network)等の任意の生成モデルを含んでも良い。具体的に、正常画像データと、任意のハイパーパラメータ等に基づき、確率的に出力画像データを出力可能な任意の画像処理モデルを含む。
The image processing model 1021 is a model to which image processing can be applied that adds an abnormality related to at least one of a chip, a distortion, a scratch, etc. to input image data. An image processing model can include one or more hyperparameters as input variables.
The hyperparameters include parameters regarding the size of the abnormal location, rotation angle, inversion angle, and color change. The hyperparameters include hyperparameters that correspond to the image processing model 1021, such as the filter size and the number of layers in the image processing model 1021. Depending on the value of one or the hyperparameters input, the image processing model can generate different generated data. In addition, by applying an image processing model based on hyperparameters optimized by abnormal image generation model creation processing to input image data containing normal images of the product, output image data containing abnormal images of the product can be generated. It can be output.
The hyperparameters applied to the image processing model are multiple hyperparameter groups that can cover the variable space corresponding to each image processing, depending on the content of the image processing such as "chip", "distortion", "scratch", etc. may also be included.
For example, a group of hyperparameters related to "chip" that corresponds to an image processing model related to "chip" is set as a first hyperparameter group. A hyperparameter group related to "distortion" corresponding to an image processing model related to "distortion" is defined as a second hyperparameter group. A hyperparameter group related to "abrasions" corresponding to an image processing model related to "abrasions" is defined as a third hyperparameter group. Each of the first hyperparameter group, second hyperparameter group, and third hyperparameter group can cover different variable spaces.
Specifically, when the hyperparameter group is a vector consisting of 10 components (hyperparameters), the first hyperparameter group is a vector consisting of the 0th to 3rd components, and the second hyperparameter group is a vector consisting of the 4th to 6th components. The third hyperparameter group can be a vector consisting of the 7th to 10th components.
Note that multiple hyperparameter groups do not necessarily have to be independent; some or all of the hyperparameters included in each hyperparameter group may be included in or overlap with other hyperparameter groups. . For example, the first hyperparameter group is a vector consisting of 0 to 3 and 6th components, the second hyperparameter group is a vector consisting of 4th to 6th, 8th, and 9th components, and the third hyperparameter group is a vector consisting of 7th to 10th components. It may also be a vector consisting of 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 GAN (Generative Adversarial Network) in a deep learning model. Specifically, it includes any image processing model that can stochastically output image data based on normal image data and arbitrary hyperparameters.

分類モデル1022は、画像データを入力情報として、入力された画像データが異常画像か否かを示す情報(具体的に0、1などの分類ラベル)を出力する学習モデルである。 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.

<サーバ10の制御部104の構成>
サーバ10の制御部104は、ユーザ登録制御部1041、学習部1051、入力制御部2041、出力制御部2042を備える。制御部104は、記憶部101に記憶されたアプリケーションプログラム1011を実行することにより、各機能ユニットが実現される。
<Configuration of control unit 104 of 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 realizes each functional unit by executing the application program 1011 stored in the storage unit 101.

ユーザ登録制御部1041は、本開示に係るサービスの利用を希望するユーザの情報をユーザテーブル1012に記憶する処理を行う。
ユーザテーブル1012に記憶される情報は、ユーザが任意の情報処理端末からサービス提供者が運営するウェブページなどを開き、所定の入力フォームに情報を入力しサーバ10へ送信する。ユーザ登録制御部1041は、受信した情報をユーザテーブル1012の新しいレコードに記憶し、ユーザ登録が完了する。これにより、ユーザテーブル1012に記憶されたユーザはサービスを利用することができるようになる。
ユーザ登録制御部1041によるユーザ情報のユーザテーブル1012への登録に先立ち、サービス提供者は所定の審査を行いユーザによるサービス利用可否を制限しても良い。
ユーザIDは、ユーザを識別できる任意の文字列または数字で良く、ユーザが希望する任意の文字列または数字、もしくはユーザ登録制御部1041が自動的に任意の文字列または数字を設定しても良い。
The user registration control unit 1041 performs a process of storing information of users who wish to use the service according to the present disclosure in the user table 1012.
Information stored in the user table 1012 is transmitted to the server 10 by a user opening a web page operated by a service provider from any information processing terminal, inputting information into a predetermined input form, and transmitting the information to the server 10 . The user registration control unit 1041 stores the received information in a new record of the user table 1012, and the user registration is completed. This allows the users stored in the user table 1012 to use the service.
Prior to the registration of user information in the user table 1012 by the user registration control unit 1041, the service provider may perform a predetermined examination to restrict whether or not the user can use the service.
The user ID may be any character string or number that can identify the user, and may be any character string or number desired by the user, or may be automatically set by the user registration control unit 1041. .

学習部1051は、画像処理モデル1021に適用するハイパーパラメータを学習するための学習処理を実行する。学習処理については後述する。また、学習部1051は、分類モデルを学習するための学習処理を実行する。 The learning unit 1051 executes learning processing for learning hyperparameters to be applied to the image processing model 1021. The learning process will be described later. Further, the learning unit 1051 executes a learning process for learning a classification model.

<サーバ10の入力装置106の構成>
サーバ10の入力装置106は、カメラ2061、マイク2062、位置情報センサ2063、モーションセンサ2064、タッチデバイス2065を備える。
<Configuration of input device 106 of 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.

<サーバ10の出力装置108の構成>
サーバ10の出力装置108は、ディスプレイ2081、スピーカ2082を備える。
<Configuration of output device 108 of server 10>
The output device 108 of the server 10 includes a display 2081 and a speaker 2082.

<ユーザ端末20の構成>
ユーザ端末20は、サービスを利用するユーザが操作する情報処理装置である。ユーザ端末20は、例えば、スマートフォン、タブレット等の携帯端末でもよいし、据え置き型のPC(Personal Computer)、ラップトップPCであってもよい。また、HMD(Head Mount Display)、腕時計型端末等のウェアラブル端末であってもよい。
ユーザ端末20は、記憶部201、制御部204、入力装置206、出力装置208を備える。
<Configuration of user terminal 20>
The user terminal 20 is an information processing device operated by a user who uses the 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. Further, it may be a wearable terminal such as an HMD (Head Mount Display) or a wristwatch type terminal.
The user terminal 20 includes a storage section 201, a control section 204, an input device 206, and an output device 208.

<ユーザ端末20の記憶部201の構成>
ユーザ端末20の記憶部201は、ユーザID2011、アプリケーションプログラム2012を備える。
<Configuration of storage unit 201 of user terminal 20>
The storage unit 201 of the user terminal 20 includes a user ID 2011 and an application program 2012.

ユーザID2011はユーザのアカウントIDである。ユーザは、ユーザ端末20からユーザID2011を、サーバ10へ送信する。サーバ10は、ユーザID2011に基づきユーザを識別し、本開示にかかるサービスをユーザに対して提供する。なお、ユーザID2011には、ユーザ端末20を利用しているユーザを識別するにあたりサーバ10から一時的に付与されるセッションIDなどの情報を含む。 User ID 2011 is the user's account ID. 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 service according to the present disclosure to the user. Note that the user ID 2011 includes information such as a session ID temporarily given by the server 10 to identify the user using the user terminal 20.

アプリケーションプログラム2012は、記憶部201に予め記憶されていても良いし、通信IFを介してサービス提供者が運営するウェブサーバ等からダウンロードする構成としても良い。
アプリケーションプログラム2012は、ウェブブラウザアプリケーションなどのアプリケーションを含む。
アプリケーションプログラム2012は、ユーザ端末20に記憶されているウェブブラウザアプリケーション上で実行されるJavaScript(登録商標)などのインタープリター型プログラミング言語を含む。
The application program 2012 may be stored in advance in the storage unit 201, or may be downloaded from a web server operated by a service provider via a communication IF.
Application programs 2012 include applications such as web browser applications.
Application program 2012 includes an interpreted programming language such as JavaScript® that is executed on a web browser application stored on user terminal 20.

<ユーザ端末20の制御部204の構成>
ユーザ端末20の制御部204は、入力制御部2041、出力制御部2042を備える。制御部204は、記憶部201に記憶されたアプリケーションプログラム2012を実行することにより、各機能ユニットが実現される。
<Configuration of control unit 204 of 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 realizes each functional unit by executing the application program 2012 stored in the storage unit 201.

<ユーザ端末20の入力装置206の構成>
ユーザ端末20の入力装置206は、カメラ2061、マイク2062、位置情報センサ2063、モーションセンサ2064、タッチデバイス2065を備える。
<Configuration of input device 206 of 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.

<ユーザ端末20の出力装置208の構成>
ユーザ端末20の出力装置208は、ディスプレイ2081、スピーカ2082を備える。
<Configuration of output device 208 of user terminal 20>
The output device 208 of the user terminal 20 includes a display 2081 and a speaker 2082.

<システム1の動作>
以下、システム1の各処理について説明する。
図7は、異常画像生成モデル作成処理の動作を示すフローチャートである。
図8は、異常画像生成モデル作成処理の動作を示す画面例である。
図9は、異常画像生成モデル作成処理における判定処理を示す画面例である。
<Operation of system 1>
Each process of the system 1 will be explained 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 an example of a screen showing the determination process in the abnormal image generation model creation process.

<異常画像生成モデル作成処理>
異常画像生成モデル作成処理は、正常画像に基づき生成された生成データに対するユーザからの判定指示に基づき、異常画像を生成するための異常画像生成モデルを作成する処理である。以下に、異常画像生成モデル作成処理(第一実施形態)、異常画像生成モデル作成処理(第二実施形態)について説明する。
<Abnormal image generation model creation process>
The abnormal image generation model creation process is a process of creating an abnormal image generation model for generating an abnormal image based on a user's determination instruction for generated data generated based on a normal image. Below, abnormal image generation model creation processing (first embodiment) and abnormal image generation model creation processing (second embodiment) will be described.

<異常画像生成モデル作成処理(第一実施形態)の概要>
異常画像生成モデル作成処理(第一実施形態)は、製品に関する正常画像データの登録を受け付け、最適化対象となるハイパーパラメータを特定し、正常画像データに対して当該ハイパーパラメータを用いた画像処理モデルを適用することにより生成データを作成し、生成データをユーザに提示し、当該生成データに対するユーザからの判定指示を受け付け、当該判定指示に基づきハイパーパラメータを最適化する一連の処理である。
<Overview of abnormal image generation model creation process (first embodiment)>
The abnormal image generation model creation process (first embodiment) accepts registration of normal image data related to a product, identifies hyperparameters to be optimized, and creates an image processing model using the hyperparameters for the normal image data. This is a series of processes in which generated data is created by applying , the generated data is presented to the user, a judgment instruction from the user regarding the generated data is received, and hyperparameters are optimized based on the judgment instruction.

<異常画像生成モデル作成処理(第一実施形態)の詳細>
以下に、異常画像生成モデル作成処理(第一実施形態)の詳細を説明する。
<Details of abnormal image generation model creation process (first embodiment)>
Details of the abnormal image generation model creation process (first embodiment) will be described below.

ステップS101において、サーバ10の制御部104は、所定の製品画像を含む第1画像を取得する画像取得ステップを実行する。
具体的に、ユーザは、ユーザ端末20の入力装置206を操作することにより、ウェブブラウザ等に画像登録処理を実行するためのページ(画像登録処理ページ)のURLを入力し、画像登録処理ページを開く。ユーザ端末20の制御部204は、画像登録処理ページを開くためのリクエストを、サーバ10へ送信する。サーバ10の制御部104は、受信したリクエストに基づき、画像登録処理ページを生成しユーザ端末20へ送信する。ユーザ端末20の制御部204は、受信した画像登録処理ページをユーザ端末20のディスプレイ2081に表示する。
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, by operating the input device 206 of the user terminal 20, the user inputs the URL of the page (image registration processing page) for executing the image registration processing into a web browser, etc., and executes the image registration processing page. open. The control unit 204 of the user terminal 20 transmits a request to the server 10 to open an image registration processing page. The control unit 104 of the server 10 generates an image registration processing page based on the received request and transmits 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.

ユーザは、ユーザ端末20の入力装置206を操作することにより、画像登録処理ページにおいて所定の入力フォーム等に対する入力操作を行うことにより、予めユーザがユーザ端末20の記憶部201に記憶された画像データを選択する。具体的に、画像データは、所定の製品について製品に関する不具合や欠陥等がない状態の当該製品の外観等を撮影した画像データ(正常画像データ)である。
ユーザは、ユーザ端末20の入力装置206を操作することにより、選択された画像データをサーバ10へ送信する操作を行う。ユーザ端末20の制御部204は、ユーザID2011、選択された画像データをサーバ10へ送信する。
サーバ10の制御部104は、ユーザ端末20からユーザID2011、画像データを受信し受け付ける。サーバ10の制御部104は、ユーザID2011、画像データをそれぞれ画像テーブル1013のユーザID、画像データの項目に記憶し登録する。なお、ユーザは、ユーザ端末20の入力装置206を操作することにより、画像登録処理ページに設けられた所定の入力欄等を編集することにより、送信した画像データに関連付けて記憶することが可能な画像ラベルを入力しても良い。ユーザにより入力された画像ラベルは、画像データと関連付けられて画像テーブル1013の画像ラベルの項目に記憶される。
ステップS101において、ユーザは複数の正常画像データをサーバ10に登録することができる。なお、画像処理モデルの性能を向上させるには、所定の製品について様々な角度や、異なる照明条件の下など、異なる撮影条件により撮影がなされた画像データをサーバ10へ登録しておくことが望ましい。
By operating the input device 206 of the user terminal 20, the user performs an input operation on a predetermined input form, etc. on the image registration processing page, thereby inputting image data stored in advance in the storage unit 201 of the user terminal 20. Select. Specifically, the image data is image data (normal image data) obtained by photographing the external appearance of a predetermined product in a state where there are no defects or defects related to the product.
The user performs an operation to transmit the selected image data to the server 10 by operating the input device 206 of the user terminal 20 . 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 fields of the image table 1013, respectively. Note that by operating the input device 206 of the user terminal 20 and editing a predetermined input field provided on the image registration processing page, the user can store the image data in association with the transmitted image data. You may also enter an image label. The image label input by the user is stored in the image label field of the image table 1013 in association with the image data.
In step S101, the user can register a plurality of normal image data in the server 10. Note that in order to improve the performance of the image processing model, it is desirable to register in the server 10 image data of a predetermined product that has been photographed under different photographing conditions, such as from various angles and under different lighting conditions. .

ステップS102において、サーバ10の制御部104は、画像処理モデル1021に適用する複数のハイパーパラメータを特定する。画像処理モデル1021に適用可能な複数のハイパーパラメータについては、画像処理モデル1021の説明において述べた通りである。
サーバ10の制御部104は、特定した複数のハイパーパラメータに初期値を設定する。サーバ10の制御部104は、初期値として各ハイパーパラメータにランダムな値を設定する。なお、各ハイパーパラメータに設定される値は、画像処理モデルに応じて定められた所定のハイパーパラメータ空間内におけるランダムな値とする。
In step S102, the control unit 104 of the server 10 specifies 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 for the plurality of identified hyperparameters. The control unit 104 of the server 10 sets a random value to each hyperparameter as an initial value. Note that the value set for each hyperparameter is a random value within a predetermined hyperparameter space determined according to the image processing model.

ステップS102において、サーバ10の制御部104は、所定の製品に応じて、所定のハイパーパラメータの初期値を選択する初期値選択ステップを実行しても良い。
所定のハイパーパラメータの初期値は、ユーザによる選択操作に応じて設定される構成としても良い。例えば、ステップS101において登録した正常画像データに含まれる製品の種類、製品名等に応じユーザが所定の初期値を設定しても良い。
所定のハイパーパラメータの初期値は、画像処理モデル1021の適用対象となる製品の種類等(ねじ、板、バンパー等の自動車部品)、製品名(型番、商品名)に応じて、サーバ10の制御部104により自動的に設定されても良い。
所定のハイパーパラメータ初期値は、画像処理モデル1021の適用対象となる製品の画像データに応じて、サーバ10の制御部104により自動的に設定されても良い。
例えば、サーバ10の制御部104は、不図示の製品の種類に応じて複数のハイパーパラメータの初期値が記憶されたテーブル等を参照して、複数のハイパーパラメータの初期値を設定しても良い。サーバ10の制御部104は、複数のハイパーパラメータのうち、一部のハイパーパラメータの初期値のみを設定し、他のハイパーパラメータの初期値はランダムとしても良い。
ハイパーパラメータの初期値は、所定の製品の種類等において、本開示にかかる異常画像生成モデル作成処理により過去に最適化されたハイパーパラメータの値を初期値としても良い。例えば、他のユーザが過去に所定の製品について異常画像生成モデル作成処理を実行していた場合には、最適化されたハイパーパラメータの値を初期値として選択しても良い。
また、所定のハイパーパラメータの初期値は、予め決まった値である必要はなく、所定の製品の種類等に定められたハイパーパラメータ空間内におけるランダムな値も含む。サーバ10の制御部104は、製品の種類等に基づき狭められた範囲のハイパーパラメータ空間に含まれる任意の初期値を選択する場合も含む。
これにより、所定の製品の種類等に応じてハイパーパラメータの初期値を設定することにより、好適なハイパーパラメータを効率的に探索することができる。例えば、所定の製品の種類ごとに、予め最適化されたハイパーパラメータが既にある場合には当該ハイパーパラメータを初期値とすることにより、ハイパーパラメータを効率的に探索することができる。
In step S102, the control unit 104 of the server 10 may perform an initial value selection step of selecting an initial value of a predetermined hyperparameter depending on a predetermined product.
The initial value of the predetermined hyperparameter may be set in response to a selection operation by the user. For example, the user may set a predetermined initial value according to the type of product, product name, etc. included in the normal image data registered in step S101.
The initial values of the predetermined hyperparameters are determined by the control of the server 10 depending on the type of product to which the image processing model 1021 is applied (auto parts such as screws, plates, bumpers, etc.) and the product name (model number, product name). It may also be automatically set by the unit 104.
The predetermined hyperparameter initial values may be automatically set by the control unit 104 of the server 10 according to 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 a plurality of hyperparameters by referring to a table (not shown) in which initial values of a plurality of hyperparameters are stored according to the type of product. . The control unit 104 of the server 10 may set only the initial values of some hyperparameters among the plurality of hyperparameters, and may set the initial values of other hyperparameters at random.
The initial value of the hyperparameter may be a hyperparameter value that has been optimized in the past by the abnormal image generation model creation process according to the present disclosure for a predetermined product type or the like. For example, if another user has executed abnormal image generation model creation processing for a predetermined product in the past, the optimized hyperparameter value may be selected as the initial value.
Furthermore, the initial value of the predetermined hyperparameter does not need to be a predetermined value, and may also include a random value within a hyperparameter space defined for a predetermined product type or the like. The control unit 104 of the server 10 may also select arbitrary initial values included in a narrowed range of hyperparameter space based on the type of product or the like.
Thereby, by setting initial values of hyperparameters according to the type of a predetermined product, etc., it is possible to efficiently search for suitable hyperparameters. For example, if hyperparameters that have been optimized in advance already exist for each predetermined product type, the hyperparameters can be efficiently searched for by setting the hyperparameters as initial values.

なお、ハイパーパラメータの初期値は1つである必要はなく、所定の初期値を中心として分布する複数のハイパーパラメータの初期値を設定することができる。サーバ10の制御部は、1つのバッチにおいて1セットの複数のハイパーパラメータに初期値を設定するだけでなく、複数セットの複数のハイパーパラメータにまとめて異なるハイパーパラメータ空間内における初期値を設定しても良い。例えば、1つのバッチにおいて100セットの複数のハイパーパラメータに対してまとめて異なる初期値を設定しても良い。 Note that the initial value of the hyperparameter does not need to be one, and it is possible to set the initial value of a plurality of hyperparameters distributed around a predetermined initial value. The control unit of the server 10 not only sets initial values for one set of multiple hyperparameters in one batch, but also sets initial values in different hyperparameter spaces for multiple sets of multiple hyperparameters. Also good. For example, different initial values may be set for 100 sets of multiple hyperparameters in one batch.

ステップS103において、サーバ10の制御部104は、第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップを実行する。
具体的に、サーバ10の制御部104は、画像テーブル1013を検索しステップS101において登録された1または複数の正常画像データを取得する。サーバ10の制御部104は、取得した1または複数の正常画像データに対して、ステップS102において初期値が設定された複数のハイパーパラメータに基づく画像処理モデル1021を適用することにより、1または複数の画像データ(生成データ)を生成する。
In step S103, the control unit 104 of the server 10 executes an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image.
Specifically, the control unit 104 of the server 10 searches the image table 1013 and obtains one or more pieces of normal image data registered in step S101. The control unit 104 of the server 10 applies the image processing model 1021 based on the plurality of hyperparameters whose initial values were set in step S102 to the acquired one or plurality of normal image data. Generate image data (generated data).

ステップS103において、画像生成ステップは、第1画像に含まれる所定の製品画像の領域を抽出するステップと、抽出した所定の製品画像の領域に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成するステップと、を含む。
具体的に、サーバ10の制御部104は、正常画像データに対して画像処理モデル1021を適用する前に、正常画像データに含まれる製品画像の領域を抽出する処理を実行しても良い。正常画像データに含まれる製品画像の領域は、入力対象の正常画像データと、ステップS101において登録された複数の正常画像データに対して平滑化処理(平均処理)を行った画像データとの差分を算定することにより抽出することができる。また、製品画像の領域抽出は、任意のオブジェクト抽出可能な深層学習モデル等に正常画像データを適用することにより抽出しても良い。
サーバ10の制御部104は、正常画像データから、製品画像の領域を抽出できた場合は、当該製品画像の領域に対して、ステップS102において初期値が設定された複数のハイパーパラメータに基づく画像処理モデル1021を適用することにより、生成データを生成する。
これにより、第1画像の一部に所定の製品画像が含まれている場合に、当該所定の製品画像に対してのみ異常画像を生成するための画像処理モデルを適用することができる。
In step S103, the image generation step includes extracting a region of a predetermined product image included in the first image, and applying an image processing model based on predetermined hyperparameters to the extracted region of the predetermined product image. generating a second image by doing so.
Specifically, the control unit 104 of the server 10 may execute a process of extracting a region of the product image included in the normal image data before applying the image processing model 1021 to the normal image data. The area of the product image included in the normal image data is determined by calculating the difference between the normal image data to be input and the image data obtained by smoothing (averaging) the plurality of normal image data registered in step S101. It can be extracted by calculation. Further, the region of the product image may be extracted by applying normal image data to a deep learning model or the like that can extract any object.
If the control unit 104 of the server 10 is able to extract the product image region from the normal image data, the control unit 104 performs image processing on the product image region based on a plurality of hyperparameters whose initial values were set in step S102. By applying the model 1021, generated data is generated.
Thereby, when a predetermined product image is included in a part of the first image, it is possible to apply an image processing model for generating an abnormal image only to the predetermined product image.

ステップS103において、画像生成ステップは、第1画像に含まれる所定の製品画像の領域を抽出することができなかった場合に、第1画像の全体に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成するステップを実行する。
サーバ10の制御部104は、正常画像データから、製品画像の領域を抽出できなかった場合は、正常画像データの全体に対して、ステップS102において初期値が設定された複数のハイパーパラメータに基づく画像処理モデル1021を適用することにより、生成データを生成する。
サーバ10の制御部104は、抽出された製品画像の領域が画像全体に渡っている場合、または、製品画像の領域がない場合に、製品画像の領域を抽出できなかったと判定する。具体的に、サーバ10の制御部104は、抽出された製品画像の画像データの画素値等に基づき、製品画像の領域を抽出できたか否かを判定することができる。
In step S103, in the image generation step, if a region of a predetermined product image included in the first image cannot be extracted, an image processing model based on predetermined hyperparameters is applied to the entire first image. generating a second image by applying a second image;
If the area of the product image cannot be extracted from the normal image data, the control unit 104 of the server 10 extracts an image based on a plurality of hyperparameters whose initial values were set in step S102 for the entire normal image data. By applying the processing model 1021, generated data is generated.
The control unit 104 of the server 10 determines that the product image region could not be extracted if the extracted product image region spans the entire image or if there is no product image region. Specifically, the control unit 104 of the server 10 can determine whether or not the region of the product image has been extracted based on the pixel values of the image data of the extracted product image.

ステップS103において、サーバ10の制御部104は、ステップS101において登録された複数の正常画像データに対してまとめて画像処理モデル1021を適用し、生成データを作成しても良い。
ステップS103において、サーバ10の制御部104は、ステップS102の1つのバッチにおいて設定された複数セットのハイパーパラメータに基づく画像処理モデル1021を、複数の正常画像データに対して適用することにより、多数(ハイパーパラメータのセット数と正常画像データの枚数との積)の生成データを作成しても良い。
In step S103, the control unit 104 of the server 10 may collectively apply the image processing model 1021 to the plurality of normal image data registered in step S101 to create generated data.
In step S103, the control unit 104 of the server 10 applies the image processing model 1021 based on the plurality of sets of hyperparameters set in one batch in step S102 to the plurality of normal image data. The product of the number of hyperparameter sets and the number of normal image data) may be created.

サーバ10の制御部104は、生成された生成データと、当該生成データを生成する際の正常画像データの画像識別情報、ハイパーパラメータの値、および、適用した画像処理モデル1021を特定する情報等を含む生成条件と、をそれぞれ、生成テーブル1014の生成データ、生成条件の項目に記憶する。 The control unit 104 of the server 10 stores the generated data, image identification information of the normal image data when generating the generated data, hyperparameter values, information identifying the applied image processing model 1021, etc. and the generation conditions included in the generation data are stored in the generation data and generation condition fields of the generation table 1014, respectively.

ステップS104において、サーバ10の制御部104は、1または複数の生成データを含む判定処理ページを生成しユーザ端末20へ送信する。ユーザ端末20の制御部204は、受信した判定処理ページ(判定処理画面)をユーザ端末20のディスプレイ2081に表示する。
図9は、異常画像生成モデル作成処理における判定処理を示す判定処理画面の画面例である。判定処理画面D20は、受信した生成データD201、D202、D203、生成データのそれぞれに対する判定指示を受け付け可能な判定ボタンD211、D212、D213、入力フィールドD221、D222、D223を含む。
In step S104, the control unit 104 of the server 10 generates a determination processing page including one or more 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.
FIG. 9 is an example of a determination processing screen showing determination processing in the abnormal image generation model creation process. The determination processing screen D20 includes received generated data D201, D202, and D203, determination buttons D211, D212, and D213 that can accept determination instructions for each of the generated data, and input fields D221, D222, and D223.

ステップS105において、サーバ10の制御部104は、ユーザから、第2画像に含まれる所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップを実行する。
具体的に、ユーザは、ユーザ端末20のディスプレイ2081に表示された生成データD201、D202、D203を視覚的に確認し、製品について不具合や欠陥等を有する異常画像に該当するか否かの判定を行う。ユーザは、ユーザ端末20の入力装置206を操作することにより、異常画像であると判定された生成データD203に対応する判定ボタンD213を押下することにより、生成データD203に対応する生成ID、判定結果を示す情報をサーバ10へ送信する。サーバ10の制御部104は、生成ID、判定結果を示す情報を受信し、受け付ける。
In step S105, the control unit 104 of the server 10 executes a determination reception step in which a determination instruction regarding whether or not a predetermined product image included in the second image is an abnormal image is received from the user.
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 product corresponds to an abnormal image that has a defect or defect. conduct. By operating the input device 206 of the user terminal 20, the user presses the determination button D213 corresponding to the generated data D203 determined to be an abnormal image, thereby displaying the generated ID and determination result corresponding to the generated data D203. information indicating the information is sent to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and information indicating the determination result.

ステップS105において、判定受付ステップは、ユーザから、第2画像に含まれる所定の製品画像の異常画像の種類に関する異常画像種別の入力操作を受け付ける判定受付ステップと。
具体的に、ユーザは、ユーザ端末20の入力装置206を操作することにより、生成データD203に含まれる異常画像データで示される製品の異常の種類や内容に関する情報(塗装剥がれ、腐食、色異常等)を入力フィールドD221、D222、D223に入力可能な構成としても良い。具体的に、判定ボタンD211、D212、D213に代えて、または加えて、テキスト入力フィールド、異常の種類を選択可能なドロップダウン等の選択フィールド等の入力フィールドD221、D222、D223が設けられる構成としても良い。この場合、判定結果を示す情報は、製品の異常の種類や内容に関する情報を含む。
In step S105, the determination reception step is a determination reception step in which an input operation of an abnormal image type regarding the type of abnormal image of a predetermined product image included in the second image is received from the user.
Specifically, by operating the input device 206 of the user terminal 20, the user obtains information regarding the type and content of the product abnormality (paint peeling, corrosion, color abnormality, etc.) indicated by the abnormality image data included in the generated data D203. ) may be input into input fields D221, D222, and D223. Specifically, instead of or in addition to the determination buttons D211, D212, and D213, input fields D221, D222, and D223 are provided, such as a text input field and a selection field such as a dropdown that allows you to select the type of abnormality. Also good. In this case, the information indicating the determination result includes information regarding the type and content of the product abnormality.

サーバ10の制御部104は、受信した生成IDに基づき生成テーブル1014の生成IDの項目を検索し特定されるレコードの判定指示の項目に、受信した判定結果を示す情報を記憶する。 The control unit 104 of the server 10 searches the generation ID item of the generation table 1014 based on the received generation ID, and stores information indicating the received determination result in the determination instruction item of the identified record.

ステップS105における判定指示は、特定の1のユーザにより行われる必要はなく、生成データごとに複数の異なるユーザのそれぞれが判定指示を行う構成としても構わない。生成データごとに、判定結果を示す情報を関連付けて記憶することができればどのような手法を用いても構わない。また、ハイパーパラメータの複数のセットごとに複数の異なるユーザのそれぞれが判定指示を行う構成としても構わない。 The judgment instruction in step S105 does not need to be given by a specific user, and a configuration may be adopted in which a plurality of different users each give the judgment instruction for each generated data. Any method may be used as long as information indicating the determination result can be stored in association with each generated data. Alternatively, a configuration may be adopted in which a plurality of different users each issue a determination instruction for each of a plurality of sets of hyperparameters.

ステップS106において、サーバ10の制御部104は、判定受付ステップにおいて受け付けた判定指示に基づき、画像生成ステップにおいて第2画像が所定の製品の異常画像となるように所定のハイパーパラメータを変更する条件変更ステップを実行する。
具体的に、サーバ10の制御部104は、ステップS105において受け付けた判定指示に基づき、ステップS102において設定されたハイパーパラメータの値を変更する。具体的に、サーバ10の制御部104は、生成テーブル1014に記憶された生成条件、判定指示の値に応じて、ハイパーパラメータの探索範囲を特定する。
本開示においては、ハイパーパラメータの探索方法は、グリッド探索、ベイズ最適化等の任意の探索方法を適用することが可能である。特に、本開示のように広範なハイパーパラメータ空間を探索する場合は、ベイズ最適化によるハイパーパラメータの探索方法が好適である。
In step S106, the control unit 104 of the server 10 changes conditions to change predetermined hyperparameters so that the second image becomes an abnormal image of a predetermined product in the image generation step, based on the determination instruction received in the determination reception step. Execute the steps.
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 hyperparameter search range according to the generation conditions and determination instruction values stored in the generation table 1014.
In the present disclosure, any search method such as grid search or Bayesian optimization can be applied to the hyperparameter search method. In particular, when searching a wide hyperparameter space as in the present disclosure, a hyperparameter search method using Bayesian optimization is suitable.

ステップS106において、条件変更ステップは、所定のハイパーパラメータおよび判定指示に基づき、ベイズ最適化を適用することにより所定のハイパーパラメータを変更するステップを実行する。 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.

ステップS106において、条件変更ステップは、画像処理モデルにより生成された第2画像に基づき学習される異常画像か否かを判定する分類モデルの精度に基づき、ベイズ最適化を適用するステップを実行する。
分類モデル1022の精度(正解率、適合率、再現率、f値、F1スコア等を含む)を、画像処理モデル1021のハイパーパラメータの探索にフィードバックしても良い。具体的に、分類モデル1022の精度は、生成データを、学習データと検証データに分割し、検証データに対する予測精度として算出される。
具体的に、ステップS103において、サーバ10の制御部104は、生成された複数の生成データを、学習データと、検証データのデータセットに分割する。サーバ10の制御部104は、学習データに対して分類モデル1022を適用することにより、生成データのそれぞれに対して異常画像か否かを示す分類ラベルを出力する。ステップS105において、サーバ10の制御部104は、生成された複数の生成データ(学習データおよび検証データ)に対して、生成データのそれぞれが異常画像であるか否かに関する判定結果を取得する(教師データ、正答データ)。サーバ10の学習部1051は、学習データに基づき、分類モデル1022を学習させる学習処理を実行する。サーバ10の制御部104は、検証データに基づき、分類モデル1022の予測精度を評価する。具体的に、サーバ10の制御部104は、分類モデル1022が出力する予測値と、検証用データに対する判定結果(データ、正答データ)を比較し、分類モデル1022の精度を算出する。
サーバ10の制御部104は、分類モデル1022に対して算出された精度に基づき、ステップS106におけるベイズ最適化におけるハイパーパラメータの探索範囲を特定する。例えば、精度が高いほど、ハイパーパラメータの探索範囲を狭め(探索範囲をハイパーパラメータ近傍からより狭い範囲とし)、精度が低いほど、ハイパーパラメータの探索範囲を広げる(探索範囲をハイパーパラメータ近傍からより広い範囲とする)。これにより、広大なハイパーパラメータ空間においても、ユーザによる判定指示の煩わしさを最小にしつつ、効率的にハイパーパラメータ空間の探索を行うことができる。
In step S106, the condition changing step executes the step of applying Bayesian optimization based on the accuracy of the classification model that determines whether or not the image is an abnormal image, which is learned based on the second image generated by the image processing model.
The accuracy (including accuracy rate, precision rate, recall rate, f value, F1 score, etc.) of the classification model 1022 may be fed back to the hyperparameter search of the image processing model 1021. Specifically, the accuracy of the classification model 1022 is calculated by dividing the generated data into learning data and verification data, and calculating the prediction accuracy for the verification data.
Specifically, in step S103, the control unit 104 of the server 10 divides the plurality of generated data into datasets of learning data and verification data. The control unit 104 of the server 10 applies the classification model 1022 to the learning data, and outputs a classification label indicating whether or not each piece of generated data is an abnormal image. In step S105, the control unit 104 of the server 10 obtains a determination result regarding whether each of the generated data (learning data and verification data) is an abnormal image. data, correct answer data). The learning unit 1051 of the server 10 executes a learning process for learning 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 determination result (data, correct answer data) for the verification data, and calculates the accuracy of the classification model 1022.
The control unit 104 of the server 10 specifies the hyperparameter search range 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 for the hyperparameter (the search range is narrower from the vicinity of the hyperparameter), and the lower the accuracy, the wider the search range for the hyperparameter (the search range is wider from the vicinity of the hyperparameter). range). Thereby, even in a vast hyperparameter space, it is possible to efficiently search the hyperparameter space while minimizing the troublesomeness of the user's determination instructions.

ステップS107において、サーバ10の制御部104は、ハイパーパラメータの最適化が完了したか否かを判定する。具体的に、ユーザからの入力操作を受け付けて、最適化が完了したか否かを判定しても良い。また、その他、サーバ10の制御部104が、ハイパーパラメータの品質を検証し、自動的にハイパーパラメータの最適化が完了したか否かを判定しても良い。その他、ハイパーパラメータの収束条件や試行回数などが一定の条件が満たされた場合に、ハイパーパラメータの最適化が完了したと判定しても良い。
サーバ10の制御部104は、最適化が完了したと判定した場合は、ステップS108に進む。
サーバ10の制御部104は、最適化が完了したと判定しなかった場合は、変更されたハイパーパラメータに基づきステップS103からステップS106までの処理を改めて実行する。具体的に、ステップS103においてステップS102において特定されたハイパーパラメータの初期値ではなく、ステップS106において変更されたハイパーパラメータが適用されるのみで処理内容は同一であるため、詳細な説明は省略する。
In step S107, the control unit 104 of the server 10 determines whether hyperparameter optimization is completed. Specifically, it may be determined whether the optimization is completed by accepting an input operation from the user. Alternatively, the control unit 104 of the server 10 may verify the quality of the hyperparameters and automatically determine whether hyperparameter optimization has been completed. Alternatively, it may be determined that hyperparameter optimization is completed when certain conditions such as hyperparameter convergence conditions and number of trials are satisfied.
If the control unit 104 of the server 10 determines that the optimization has been completed, the process proceeds to step S108.
If the control unit 104 of the server 10 does not determine that the optimization has been completed, it re-executes the processes from step S103 to step S106 based on the changed hyperparameters. Specifically, in step S103, the hyperparameters changed in step S106 are applied instead of the initial values of the hyperparameters specified in step S102, and the processing contents are the same, so a detailed explanation will be omitted.

サーバ10の制御部104は、ステップS107において最適化が完了したと判定されるまで、ベイズ最適化等のアルゴリズムに基づくハイパーパラメータの探索処理が実行される。これにより、画像処理モデル1021が生成する生成データが、所定の製品の異常画像データとなるようにハイパーパラメータの値が変更し、更新される。
本開示においては、サーバ10の制御部104は、広大なハイパーパラメータ空間において、ベイズ最適化に基づいて評価値が高い領域(判定指示により異常画像がより生成されると判定されたハイパーパラメータの領域)を優先的に探索することにより、ハイパーパラメータ空間を効率的に探索することができる。
The control unit 104 of the server 10 executes hyperparameter search processing based on an algorithm such as Bayesian optimization until it is determined in step S107 that the optimization has been 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 uses Bayesian optimization to control areas with high evaluation values (areas of hyperparameters that are determined to generate more abnormal images based on determination instructions) in a vast hyperparameter space. ), it is possible to efficiently search the hyperparameter space.

ステップS108において、サーバ10の制御部104は、変更されたハイパーパラメータをサーバ10の記憶部101に記憶する。具体的に、正常画像データに含まれる製品の種類、名称等と関連付けて記憶しても良い。これにより、ユーザは、正常画像データに対して、当該ハイパーパラメータに基づく画像処理モデル1021を適用することにより、異常画像データを作成することができる。これにより、異常画像生成モデルの作成が完了する。 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, it may be stored in association with the type, name, etc. of the product included in the normal image data. Thereby, the user can create abnormal image data by applying the image processing model 1021 based on the hyperparameters to normal image data. This completes the creation of the abnormal image generation model.

<異常画像生成モデル作成処理(第二実施形態)の概要>
異常画像生成モデル作成処理(第二実施形態)は、製品に関する正常画像データの登録を受け付け、画像処理モデルに適用可能なハイパーパラメータを構成する複数のハイパーパラメータ群のそれぞれに対して異常画像生成モデル作成処理(第一実施形態)によるハイパーパラメータ群の最適化を実行し、それぞれのハイパーパラメータ群の最適化が完了した後に、複数のハイパーパラメータ群の組み合わせに対して異常画像生成モデル作成処理(第一実施形態)によるハイパーパラメータの最適化を実行する一連の処理である。
<Overview of abnormal image generation model creation process (second embodiment)>
The abnormal image generation model creation process (second embodiment) accepts registration of normal image data regarding a product, and creates an abnormal image generation model for each of a plurality of hyperparameter groups that constitute hyperparameters applicable to the image processing model. Optimization of hyperparameter groups by the creation process (first embodiment) is performed, and after the optimization of each hyperparameter group is completed, the abnormal image generation model creation process (first embodiment) is performed for the combination of multiple hyperparameter groups. This is a series of processes for performing hyperparameter optimization according to one embodiment).

<異常画像生成モデル作成処理(第二実施形態)の詳細>
以下に、異常画像生成モデル作成処理(第二実施形態)の詳細を説明する。
<Details of abnormal image generation model creation process (second embodiment)>
Details of the abnormal image generation model creation process (second embodiment) will be described below.

ステップS301は、異常画像生成モデル作成処理(第一実施形態)と同様であるため説明を省略する。 Step S301 is the same as the abnormal image generation model creation process (first embodiment), so a description thereof will be omitted.

ステップS302において、サーバ10の制御部104は、画像処理モデルに適用可能な複数のハイパーパラメータに含まれる複数の異なるハイパーパラメータ群ごとに、独立して画像生成ステップと、判定受付ステップと、条件変更ステップとを実行する独立処理ステップを実行する。
具体的に、サーバ10の制御部104は、画像処理モデル1021に適用可能な複数のハイパーパラメータ群から所定のハイパーパラメータ群を選択し、特定する。
In step S302, the control unit 104 of the server 10 independently performs an image generation step, a determination reception step, and a condition change for each of a plurality of different hyperparameter groups included in a plurality of hyperparameters applicable to the image processing model. Execute an independent processing step that executes the step.
Specifically, the control unit 104 of the server 10 selects and specifies a predetermined hyperparameter group from a plurality of hyperparameter groups applicable to the image processing model 1021.

サーバ10の制御部104は、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付ける選択受付ステップを実行する。
具体的に、ユーザは、ユーザ端末20の入力装置206を操作することにより、複数のハイパーパラメータ群のうち、所定のハイパーパラメータ群を選択または除外して、ハイパーパラメータ群を特定しても良い。
これにより、所定の製品の異常画像生成に適さない1または複数の画像処理に関するハイパーパラメータ群を除外することにより、ハイパーパラメータの空間次元を減らすことができるため、好適なハイパーパラメータの探索時間を減らすことができる。所定の製品(製品の種類、製品名)に関する事前知識(例えば、「擦り傷」に関する異常画像は存在し得ないなど)を利用することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
The control unit 104 of the server 10 executes a selection acceptance step of accepting selection of some hyperparameter groups from among a plurality of different hyperparameter groups.
Specifically, by operating the input device 206 of the user terminal 20, the user may specify a hyperparameter group by selecting or excluding a predetermined hyperparameter group from among the plurality of hyperparameter groups.
As a result, the spatial dimension of hyperparameters can be reduced by excluding one or more hyperparameter groups related to image processing that are not suitable for abnormal image generation of a given product, thereby reducing the search time for suitable hyperparameters. be able to. By using prior knowledge about a given product (product type, product name) (for example, there can be no abnormal images related to "scratches"), suitable hyperparameters can be found by narrowing the hyperparameter search space. You can search efficiently.

選択受付ステップは、所定の製品に応じて、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付けるステップを実行する。
サーバ10の制御部104は、ステップS301において登録した正常画像データに含まれる製品の種類、製品名に応じて、複数のハイパーパラメータ群のうち、所定のハイパーパラメータ群を選択または除外して、ハイパーパラメータ群を特定しても良い。
これにより、所定の製品(製品の種類、製品名)に関する事前知識(例えば、「擦り傷」に関する異常画像は存在し得ないなど)を利用することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
The selection receiving step is a step of receiving a selection of some hyperparameter groups from among a plurality of different hyperparameter groups depending on a predetermined product.
The control unit 104 of the server 10 selects or excludes a predetermined hyperparameter group from a plurality of hyperparameter groups according to the product type and product name included in the normal image data registered in step S301. A group of parameters may also be specified.
This makes it possible to narrow the search space for hyperparameters by using prior knowledge (for example, there can be no abnormal images related to "scratches") regarding a given product (product type, product name). Hyperparameters can be searched efficiently.

サーバ10の制御部104は、特定したハイパーパラメータ群のそれぞれに対して生成判定独立処理を実行する。生成判定独立処理は、異常画像生成モデル作成処理(第一実施形態)のステップS102からS106において、1または複数のハイパーパラメータを、特定されたハイパーパラメータ群に置き換えたのみで処理の内容は同様であるため重複する処理についての説明は省略する。
生成判定独立処理は、複数のハイパーパラメータ群のそれぞれに対して独立して処理が実行される。例えば、生成判定独立処理はそれぞれのハイパーパラメータ群ごとに並列的に実行されても良いし、それぞれのハイパーパラメータ群ごとに順番に実行されても良い。
また、異常画像生成モデル作成処理(第一実施形態)と同様に、1つのバッチごとの複数セットのハイパーパラメータ群に対してまとめて処理を実行しても良い。
The control unit 104 of the server 10 executes generation determination independent processing for each of the identified hyperparameter groups. The generation determination independent process is the same as the one or more hyperparameters in steps S102 to S106 of the abnormal image generation model creation process (first embodiment), except that one or more hyperparameters are replaced with the identified hyperparameter group. Therefore, a description of the redundant processing will be omitted.
The generation determination independent process is performed independently for each of the plurality of 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.
Further, similar to the abnormal image generation model creation process (first embodiment), the process may be executed on multiple sets of hyperparameters for each batch at once.

所定のハイパーパラメータ群は、ユーザによる選択操作に応じて選択される構成としても良い。例えば、ステップS101において登録した正常画像データに含まれる製品の種類に応じ、ユーザがユーザ端末20の入力装置206を操作することにより所定のハイパーパラメータ群を適宜選択してもよい。
所定のハイパーパラメータ群は、画像処理モデル1021の適用対象となる製品の種類等(ねじ、板、バンパー等の自動車部品)に応じて、サーバ10の制御部104により自動的に選択される構成としても良い。具体的に、所定のハイパーパラメータ群は、画像処理モデル1021の適用対象となる製品の画像データを解析した解析結果に基づいて、サーバ10の制御部104により自動的に選択される構成としても良い。
例えば、サーバ10の制御部104は、不図示のテーブル等を参照して、または、任意の深層学習モデル、機械学習モデル、人工知能モデル等を用いて、所定のハイパーパラメータ群を特定することができる。
The predetermined hyperparameter group may be selected in response to a selection operation by the user. For example, the user may appropriately select a predetermined hyperparameter group by operating the input device 206 of the user terminal 20, depending on the type of product included in the normal image data registered in step S101.
The predetermined hyperparameter group is configured to be automatically selected by the control unit 104 of the server 10 depending on the type of product to which the image processing model 1021 is applied (auto parts such as screws, plates, bumpers, etc.). Also good. Specifically, the predetermined hyperparameter group may be automatically selected by the control unit 104 of the server 10 based on an analysis result of image data of a product to which the image processing model 1021 is applied. .
For example, the control unit 104 of the server 10 may specify a predetermined hyperparameter group by referring to a table (not shown) or by using an arbitrary deep learning model, machine learning model, artificial intelligence model, etc. can.

ステップS302において、画像生成ステップは、画像処理モデルに適用可能な複数のハイパーパラメータのうち、第3ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第3画像を生成するステップと、
画像処理モデルに適用可能な複数のハイパーパラメータのうち、第4ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第4画像を生成するステップと、を含む。
具体的に、特定された複数のハイパーパラメータ群を第3ハイパーパラメータ群(「欠け」に関するハイパーパラメータ)、第4ハイパーパラメータ群(「歪み」に関するハイパーパラメータ)とする。この場合に、生成判定独立処理(ステップS103の生成データ作成処理)において、正常画像データに対して、第3ハイパーパラメータ群、第4ハイパーパラメータ群のそれぞれに基づく画像処理モデル1021に適用することにより、それぞれ、第3生成データ、第4生成データが生成される。なお、第3生成データ、第4生成データは、それぞれ、複数の生成データを含む。
In step S302, the image generation step generates a third image by applying an image processing model based on one or more hyperparameters included in the third hyperparameter group among a plurality of hyperparameters applicable to the image processing model. a step of generating
The method includes the 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.
Specifically, the identified plurality of hyperparameter groups are defined as a third hyperparameter group (hyperparameters related to "missing") and a fourth hyperparameter group (hyperparameters related to "distortion"). In this case, in the generation determination independent process (generated data creation process in step S103), by applying the image processing model 1021 based on each of the third hyperparameter group and the fourth hyperparameter group to the normal image data. , third generated data and fourth generated data are generated, respectively. Note that the third generated data and the fourth generated data each include a plurality of generated data.

ステップS302において、判定受付ステップは、ユーザから、第3画像に含まれる所定の製品画像が、異常画像であるか否かに関する第3判定指示を受け付けるステップと、ユーザから、第4画像に含まれる所定の製品画像が、異常画像であるか否かに関する第4判定指示を受け付けるステップと、を含む。
具体的に、ユーザは、生成判定独立処理(ステップS105の判定指示の受付処理)において、ユーザ端末20のディスプレイ2081に表示された第3生成データ、第4生成データを視覚的に確認し、製品について不具合や欠陥等を有する異常画像に該当するか否かの判定を行う。ユーザは、ユーザ端末20の入力装置206を操作することにより、異常画像であると判定された第3生成データ、第4生成データに対応する判定ボタンを押下することにより、第3生成データ、第4生成データに対応する生成ID、判定結果を示す情報をサーバ10へ送信する。サーバ10の制御部104は、生成ID、判定結果を示す情報を受信し、受け付ける。
サーバ10の制御部104は、受信した生成IDに基づき生成テーブル1014の生成IDの項目を検索し特定されるレコードの判定指示の項目に、受信した判定結果を示す情報を記憶する。
In step S302, the determination receiving step includes receiving a third determination instruction from the user regarding whether or not a predetermined product image included in the third image is an abnormal image; The method includes the step of receiving a fourth determination instruction regarding whether or not a predetermined product image is an abnormal image.
Specifically, in the generation determination independent process (determination instruction acceptance process in step S105), the user visually checks the third generation data and fourth generation data displayed on the display 2081 of the user terminal 20, and determines the product. A determination is made as to whether or not the image corresponds to an abnormal image having defects, defects, etc. By operating the input device 206 of the user terminal 20, the user presses the determination button corresponding to the third generated data and the fourth generated data determined to be abnormal images. 4. The generation ID corresponding to the generated data and information indicating the determination result are transmitted to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and information indicating the determination result.
The control unit 104 of the server 10 searches the generation ID item of the generation table 1014 based on the received generation ID, and stores information indicating the received determination result in the determination instruction item of the specified record.

ステップS302において、条件変更ステップは、第3判定指示に基づき、第3ハイパーパラメータ群を変更するステップと、第4判定指示に基づき、第4ハイパーパラメータ群を変更するステップと、を含む。
具体的に、サーバ10の制御部104は、第3生成データ、第4生成データに対して受け付けた判定指示のそれぞれに基づき、第3ハイパーパラメータ群、第4ハイパーパラメータ群の値を変更する。具体的に、サーバ10の制御部104は、生成テーブル1014に記憶された生成条件、判定指示の値に応じて、第3ハイパーパラメータ群、第4ハイパーパラメータ群の探索範囲を特定する。
In step S302, the condition changing step includes changing the third hyperparameter group based on the third determination instruction, and changing the fourth hyperparameter group based on the fourth determination instruction.
Specifically, the control unit 104 of the server 10 changes the values of the third hyperparameter group and the fourth hyperparameter group based on the determination instructions received for the third generated data and the fourth generated data, respectively. Specifically, the control unit 104 of the server 10 specifies the search range of the third hyperparameter group and the fourth hyperparameter group according to the generation conditions and the values of the determination instructions stored in the generation table 1014.

ステップS303において、サーバ10の制御部104は、独立処理ステップが完了したことを示す指示を受け付ける完了受付ステップを実行する。
具体的に、ユーザからの入力操作を受け付けて、それぞれのハイパーパラメータ群の最適化が完了したか否かを判定しても良い。
なお、複数のハイパーパラメータ群のそれぞれに対して、異常画像生成モデル作成処理(第一実施形態)のステップS107における最適化が完了したか否かの判定を行い、すべてのハイパーパラメータ群に対する最適化が完了したと判定された場合に、生成判定独立処理が完了したと判定しても良い。
In step S303, the control unit 104 of the server 10 executes a completion reception step of receiving an instruction indicating that the independent processing step has been completed.
Specifically, it may be determined whether the optimization of each hyperparameter group is completed by receiving an input operation from the user.
Note that it is determined whether the optimization in step S107 of the abnormal image generation model creation process (first embodiment) is completed for each of the plurality of hyperparameter groups, and the optimization for all hyperparameter groups is performed. If it is determined that the generation determination independent process has been completed, it may be determined that the generation determination independent process has been completed.

ステップS303において、サーバ10の制御部104は、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付ける選択受付ステップを実行する。選択受付ステップは、所定の製品に応じて、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付けるステップを実行する。
具体的に、ステップS303において、ユーザは、ユーザ端末20の入力装置206を操作することにより、複数のハイパーパラメータ群のうち、所定のハイパーパラメータ群を選択または除外しても良い。また、サーバ10の制御部104は、複数のハイパーパラメータ群のうち、判定指示の内容に応じて、所定のハイパーパラメータ群を選択または除外しても良い。
例えば、生成判定独立処理において異常画像データを十分に生成することができなかったハイパーパラメータ群を除外して、最適化処理を完了しても良い。当該除外されたハイパーパラメータ群に含まれるハイパーパラメータについては、ステップS304以降の処理対象から除外する。複数のハイパーパラメータ群から、特定のハイパーパラメータ群を選択または除外することにより、ハイパーパラメータの探索空間を狭めることができるため好適なハイパーパラメータを効率的に探索することができる。
In step S303, the control unit 104 of the server 10 executes a selection reception step of accepting selection of some hyperparameter groups from among a plurality of different hyperparameter groups. The selection receiving step is a step of receiving a selection of some hyperparameter groups from among a plurality of different hyperparameter groups depending on a predetermined product.
Specifically, in step S303, the user may select or exclude a predetermined hyperparameter group from among the plurality of hyperparameter groups by operating the input device 206 of the user terminal 20. Further, the control unit 104 of the server 10 may select or exclude a predetermined hyperparameter group from among the plurality of hyperparameter groups according to the content of the determination instruction.
For example, the optimization process may be completed by excluding hyperparameter groups for which abnormal image data could not be sufficiently generated in the generation determination independent process. The hyperparameters included in the excluded hyperparameter group are excluded from the processing targets from step S304 onwards. By selecting or excluding a specific hyperparameter group from a plurality of hyperparameter groups, the search space for hyperparameters can be narrowed, so that suitable hyperparameters can be efficiently searched for.

ステップS304において、サーバ10の制御部104は、独立処理ステップを実行した後に、複数の異なるハイパーパラメータ群のそれぞれを組み合わせたハイパーパラメータ群ごとに、画像生成ステップと、判定受付ステップと、条件変更ステップとを実行する組合処理ステップを実行する。
具体的に、サーバ10の制御部104は、ステップS302の生成判定独立処理において複数のハイパーパラメータ群の最適化が完了した後に、複数のハイパーパラメータ群を組み合わせたハイパーパラメータに対して生成判定組合処理を実行する。生成判定組合処理は、異常画像生成モデル作成処理(第一実施形態)のステップS102からS106において、ハイパーパラメータを、複数のハイパーパラメータ群を組み合わせたハイパーパラメータに置き換えたのみで処理の内容は同様であるため重複する処理についての説明は省略する。
In step S304, after executing the independent processing step, the control unit 104 of the server 10 performs an image generation step, a determination reception step, and a condition change step for each hyperparameter group that is a combination of a plurality of different hyperparameter groups. Execute a combination processing step that executes
Specifically, after the optimization of a plurality of hyperparameter groups is completed in the generation determination independent process of step S302, the control unit 104 of the server 10 performs a generation determination combination process on hyperparameters that are a combination of multiple hyperparameter groups. Execute. The generation/judgment combination process is the same as in steps S102 to S106 of the abnormal image generation model creation process (first embodiment), except that the hyperparameters are replaced with hyperparameters that are a combination of a plurality of hyperparameter groups. Therefore, a description of the redundant processing will be omitted.

ステップS304において、組合処理ステップは、完了受付ステップにおいて受け付けた指示に応じて実行されるステップを実行する。
具体的に、生成判定組合処理は、ステップS303における、それぞれのハイパーパラメータ群の最適化が完了したことを示すユーザからの入力操作を受け付けて処理を開始しても良い。
In step S304, the combination processing step executes the steps executed in response to the instruction received in the completion reception step.
Specifically, the generation/judgment combination process may be started upon receiving an input operation from the user indicating that the optimization of each hyperparameter group has been completed in step S303.

ステップS304において、組合処理ステップは、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群を除外した組み合わせにかかるハイパーパラメータ群ごとに、画像生成ステップと、判定受付ステップと、条件変更ステップとを実行するステップを実行する。
具体的に、ステップS303において、複数のハイパーパラメータ群のうち、所定のハイパーパラメータ群を選択または除外された場合においては、生成判定組合処理において選択されたハイパーパラメータ群に含まれるハイパーパラメータ、または、除外されたハイパーパラメータ群を除いたハイパーパラメータに対して、ハイパーパラメータの探索および最適化が行われる。
これにより、好適なハイパーパラメータの探索時間を減らすことができる。
In step S304, the combination processing step performs an image generation step, a determination reception step, and a condition change step for each hyperparameter group related to a combination excluding some hyperparameter groups among a plurality of different hyperparameter groups. Execute the steps you want to perform.
Specifically, in step S303, when a predetermined hyperparameter group is selected or excluded from a plurality of hyperparameter groups, the hyperparameters included in the hyperparameter group selected in the generation determination combination process, or Hyperparameter search and optimization are performed on the hyperparameters excluding the excluded hyperparameter group.
This allows the search time for suitable hyperparameters to be reduced.

ステップS304において、サーバ10の制御部104は、第1画像に対して、第3ハイパーパラメータ群および第4ハイパーパラメータ群からなる第5ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第5画像を生成する第2画像生成ステップを実行する。
具体的に、生成判定組合処理(ステップS103の生成データ作成処理)において、正常画像データに対して、第3ハイパーパラメータ群および第4ハイパーパラメータ群を結合してなる第5ハイパーパラメータ群(「欠け」および「歪み」に関するハイパーパラメータ群)に基づく画像処理モデル1021に適用することにより、第5生成データが生成される。なお、第5生成データは、それぞれ、複数の生成データを含む。
In step S304, the control unit 104 of the server 10 performs image processing on the first image 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 image generation step is performed to generate a fifth image by applying the model.
Specifically, in the generation determination combination process (generated data creation process in step S103), a fifth hyperparameter group ("missing" ” and a group of hyperparameters related to “distortion”), fifth generation data is generated. Note that each of the fifth generated data includes a plurality of generated data.

ステップS304において、サーバ10の制御部104は、ユーザから、第5画像に含まれる所定の製品画像が、異常画像であるか否かに関する第5判定指示を受け付ける第2判定受付ステップを実行する。
具体的に、ユーザは、生成判定組合処理(ステップS105の判定指示の受付処理)において、ユーザ端末20のディスプレイ2081に表示された第5生成データを視覚的に確認し、製品について不具合や欠陥等を有する異常画像に該当するか否かの判定を行う。ユーザは、ユーザ端末20の入力装置206を操作することにより、異常画像であると判定された第5生成データに対応する判定ボタンを押下することにより、第5生成データに対応する生成ID、判定結果を示す情報をサーバ10へ送信する。サーバ10の制御部104は、生成ID、判定結果を示す情報を受信し、受け付ける。
In step S304, the control unit 104 of the server 10 executes a second determination reception step of receiving a fifth determination instruction regarding whether or not a predetermined product image included in the fifth image is an abnormal image from the user.
Specifically, in the generation determination combination process (judgment instruction reception process in step S105), the user visually confirms the fifth generation data displayed on the display 2081 of the user terminal 20, and detects any defects or defects in the product. It is determined whether the image corresponds to an abnormal image having By operating the input device 206 of the user terminal 20, the user presses the determination button corresponding to the fifth generated data determined to be an abnormal image, thereby displaying the generated ID and determination corresponding to the fifth generated data. Information indicating the result is transmitted to the server 10. The control unit 104 of the server 10 receives and accepts the generation ID and information indicating the determination result.

ステップS304において、サーバ10の制御部104は、第2判定受付ステップにおいて受け付けた第5判定指示に基づき、第2画像生成ステップにおいて第5画像が所定の製品の異常画像となるように第5ハイパーパラメータ群を変更する第2条件変更ステップを実行する。
具体的に、サーバ10の制御部104は、第5データに対して受け付けた判定指示に基づき、第5ハイパーパラメータ群の値を変更する。具体的に、サーバ10の制御部104は、生成テーブル1014に記憶された生成条件、判定指示の値に応じて、第5ハイパーパラメータ群の探索範囲を特定する。
In step S304, the control unit 104 of the server 10, based on the fifth judgment instruction received in the second judgment reception step, sets the fifth hyperlink so that the fifth image becomes an abnormal image of a predetermined product in the second image generation step. A second condition changing step for changing the parameter group is executed.
Specifically, the control unit 104 of the server 10 changes the values of the fifth hyperparameter group based on the determination instruction received for the fifth data. Specifically, the control unit 104 of the server 10 specifies the search range of the fifth hyperparameter group according to the generation conditions and the values of the determination instructions stored in the generation table 1014.

なお、本開示においては、一例として複数のハイパーパラメータを構成するハイパーパラメータ群のそれぞれに対して生成判定独立処理を実行し、その後、ハイパーパラメータ群のそれぞれを結合してなるハイパーパラメータに対して生成判定組合処理を実行する構成を一例として開示した。なお、ハイパーパラメータ群の組み合わせに対して多段階で生成判定組合処理を実行しても良い。
例えば、20個の成分(ハイパーパラメータ)からなるハイパーパラメータ群が、群A(0~3列番目の成分からなるベクトル)、群B(4~8番目の成分からなるベクトル)、群C(9~11番目の成分からなるベクトル)、群D(12~15番目の成分からなるベクトル)、群E(16~20番目の成分からなるベクトル)の5種類ある場合において、群A~群Eのそれぞれのハイパーパラメータ群に対して生成判定独立処理を実行し、群A~群Eのハイパーパラメータ群のそれぞれに対するハイパーパラメータの探索および最適化を実行する。その後、群Aおよび群B、群Cおよび群Dを結合してなるハイパーパラメータ群(群AB(0~8番目の成分からなるベクトル)、群CD(9~15番目の成分からなるベクトル)とする)のそれぞれに対して、生成判定組合処理を実行し、群AB、群CDのそれぞれに対するハイパーパラメータ群の探索および最適化を実行する。そして、その後、群AB、群CD、群Eを結合してなるハイパーパラメータ群(群ABCDE(0~20番目の成分からなるベクトル))に対して、生成判定組合処理を実行し、ハイパーパラメータ空間の全体に対する探索および最適化を実行しても良い。
これにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
Note that in the present disclosure, as an example, generation determination independent processing is executed for each of the hyperparameter groups that constitute a plurality of hyperparameters, and then generation determination processing is performed for the hyperparameters formed by combining each of the hyperparameter groups. The configuration for executing the judgment combination process has been disclosed as an example. Note that the generation/judgment combination process may be executed in multiple stages for combinations of hyperparameter groups.
For example, a hyperparameter group consisting of 20 components (hyperparameters) is group A (vector consisting of the 0th to 3rd column components), group B (vector consisting of the 4th to 8th components), group C (vector consisting of the 9th column components), and group C (vector consisting of the 4th to 8th components). In a case where there are five types of vectors, group A to E (vectors consisting of the 11th to 11th components), group D (vectors consisting of the 12th to 15th components), and group E (vectors consisting of the 16th to 20th components), Generation determination independent processing is executed for each hyperparameter group, and hyperparameter search and optimization are executed for each of the hyperparameter groups A to E. After that, hyperparameter groups formed by combining Group A and Group B, Group C and Group D (group AB (vector consisting of 0th to 8th components), group CD (vector consisting of 9th to 15th components)) The generation/decision combination processing is executed for each of the groups AB and CD, and the hyperparameter group search and optimization are executed for each of the groups AB and CD. After that, generation/judgment combination processing is performed on the hyperparameter group (group ABCDE (vector consisting of the 0th to 20th components)) formed by combining the groups AB, CD, and E, and the hyperparameter space Search and optimization may be performed for the entire .
Thereby, suitable hyperparameters can be efficiently searched for by narrowing the hyperparameter search space.

<コンピュータの基本ハードウェア構成>
図10は、コンピュータ90の基本的なハードウェア構成を示すブロック図である。コンピュータ90は、プロセッサ901、主記憶装置902、補助記憶装置903、通信IF991(インタフェース、Interface)を少なくとも備える。これらは通信バス921により相互に電気的に接続される。
<Basic hardware configuration of the computer>
FIG. 10 is a block diagram showing the basic hardware configuration of the 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.

プロセッサ901とは、プログラムに記述された命令セットを実行するためのハードウェアである。プロセッサ901は、演算装置、レジスタ、周辺回路等から構成される。 The processor 901 is hardware for executing an instruction set written in a program. The processor 901 includes an arithmetic unit, registers, peripheral circuits, and the like.

主記憶装置902とは、プログラム、及びプログラム等で処理されるデータ等を一時的に記憶するためのものである。例えば、DRAM(Dynamic Random Access Memory)等の揮発性のメモリである。 The main storage device 902 is for temporarily storing programs, data processed by the programs, and the like. For example, it is a volatile memory such as DRAM (Dynamic Random Access Memory).

補助記憶装置903とは、データ及びプログラムを保存するための記憶装置である。例えば、フラッシュメモリ、HDD(Hard Disc Drive)、光磁気ディスク、CD-ROM、DVD-ROM、半導体メモリ等である。 The auxiliary storage device 903 is a storage device for storing data and programs. Examples include flash memory, HDD (Hard Disc Drive), magneto-optical disk, CD-ROM, DVD-ROM, semiconductor memory, and the like.

通信IF991とは、有線又は無線の通信規格を用いて、他のコンピュータとネットワークを介して通信するための信号を入出力するためのインタフェースである。
ネットワークは、インターネット、LAN、無線基地局等によって構築される各種移動通信システム等で構成される。例えば、ネットワークには、3G、4G、5G移動通信システム、LTE(Long Term Evolution)、所定のアクセスポイントによってインターネットに接続可能な無線ネットワーク(例えばWi-Fi(登録商標))等が含まれる。無線で接続する場合、通信プロトコルとして例えば、Z-Wave(登録商標)、ZigBee(登録商標)、Bluetooth(登録商標)等が含まれる。有線で接続する場合は、ネットワークには、USB(Universal Serial Bus)ケーブル等により直接接続するものも含む。
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 various mobile communication systems constructed using the Internet, LAN, wireless base stations, and the like. For example, the network includes 3G, 4G, 5G mobile communication systems, LTE (Long Term Evolution), a wireless network (for example, Wi-Fi (registered trademark)) that can be connected to the Internet through a predetermined access point, and the like. When connecting wirelessly, communication protocols include, for example, Z-Wave (registered trademark), ZigBee (registered trademark), Bluetooth (registered trademark), and the like. In the case of a wired connection, the network includes a network that is directly connected using a USB (Universal Serial Bus) cable or the like.

なお、各ハードウェア構成の全部または一部を複数のコンピュータ90に分散して設け、ネットワークを介して相互に接続することによりコンピュータ90を仮想的に実現することができる。このように、コンピュータ90は、単一の筐体、ケースに収納されたコンピュータ90だけでなく、仮想化されたコンピュータシステムも含む概念である。 Note that the computers 90 can be virtually realized by distributing all or part of each hardware configuration to a plurality of computers 90 and interconnecting them via a network. In this way, the concept of the computer 90 includes not only the computer 90 housed in a single housing or case, but also a virtualized computer system.

<コンピュータ90の基本機能構成>
コンピュータ90の基本ハードウェア構成(図10)により実現されるコンピュータの機能構成を説明する。コンピュータは、制御部、記憶部、通信部の機能ユニットを少なくとも備える。
<Basic functional configuration of computer 90>
The functional configuration of the computer realized by the basic hardware configuration of the computer 90 (FIG. 10) will be described. The computer includes at least functional units of a control section, a storage section, and a communication section.

なお、コンピュータ90が備える機能ユニットは、それぞれの機能ユニットの全部または一部を、ネットワークで相互に接続された複数のコンピュータ90に分散して設けても実現することができる。コンピュータ90は、単一のコンピュータ90だけでなく、仮想化されたコンピュータシステムも含む概念である。 Note that the functional units included in the computer 90 can also be implemented by distributing all or part of each functional unit to a plurality of computers 90 interconnected via a network. The computer 90 is a concept that includes not only a single computer 90 but also a virtualized computer system.

制御部は、プロセッサ901が補助記憶装置903に記憶された各種プログラムを読み出して主記憶装置902に展開し、当該プログラムに従って処理を実行することにより実現される。制御部は、プログラムの種類に応じて様々な情報処理を行う機能ユニットを実現することができる。これにより、コンピュータは情報処理を行う情報処理装置として実現される。 The control unit is realized by the processor 901 reading various programs stored in the auxiliary storage device 903, loading them into the main storage device 902, and executing processing according to the programs. The control unit can implement a functional unit that performs various information processing depending on the type of program. Thereby, the computer is realized as an information processing device that performs information processing.

記憶部は、主記憶装置902、補助記憶装置903により実現される。記憶部は、データ、各種プログラム、各種データベースを記憶する。また、プロセッサ901は、プログラムに従って記憶部に対応する記憶領域を主記憶装置902または補助記憶装置903に確保することができる。また、制御部は、各種プログラムに従ってプロセッサ901に、記憶部に記憶されたデータの追加、更新、削除処理を実行させることができる。 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. Further, 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 according to the program. Further, the control unit can cause the processor 901 to execute processing for adding, updating, and deleting data stored in the storage unit according to various programs.

データベースは、リレーショナルデータベースを指し、行と列によって構造的に規定された表形式のテーブル、マスタと呼ばれるデータ集合を、互いに関連づけて管理するためのものである。データベースでは、表をテーブル、マスタ、表の列をカラム、表の行をレコードと呼ぶ。リレーショナルデータベースでは、テーブル、マスタ同士の関係を設定し、関連づけることができる。
通常、各テーブル、各マスタにはレコードを一意に特定するための主キーとなるカラムが設定されるが、カラムへの主キーの設定は必須ではない。制御部は、各種プログラムに従ってプロセッサ901に、記憶部に記憶された特定のテーブル、マスタにレコードを追加、削除、更新を実行させることができる。
また、記憶部に、データ、各種プログラム、各種データベースを記憶させることにより、本開示にかかる情報処理装置、情報処理システムが製造されたものとして捉えることができる。
A database refers to a relational database, which is used to manage a data set called a master, which is a tabular table whose structure is defined by rows and columns, in relation to each other. In a database, a table is called a table or a master, a table column is called a column, and a table row is called a record. In a relational database, you can set and associate relationships between tables and masters.
Usually, each table and each master is set with a column that serves as a primary key to uniquely identify a record, but it is not essential to set a primary key on a column. The control unit can cause the processor 901 to add, delete, or update records to a specific table or master stored in the storage unit according to various programs.
Further, by storing data, various programs, and various databases in the storage unit, the information processing device and the information processing system according to the present disclosure can be considered as manufactured.

なお、本開示におけるデータベース、マスタは、情報が構造的に規定された任意のデータ構造体(リスト、辞書、連想配列、オブジェクトなど)を含み得る。データ構造体には、データと、任意のプログラミング言語により記述された関数、クラス、メソッドなどを組み合わせることにより、データ構造体と見なし得るデータも含むものとする。 Note that the database and master in the present disclosure may include any data structure (list, dictionary, associative array, object, etc.) in which information is structurally defined. Data structures include data that can be considered as a data structure by combining data with functions, classes, methods, etc. written in any programming language.

通信部は、通信IF991により実現される。通信部は、ネットワークを介して他のコンピュータ90と通信を行う機能を実現する。通信部は、他のコンピュータ90から送信された情報を受信し、制御部へ入力することができる。制御部は、各種プログラムに従ってプロセッサ901に、受信した情報に対する情報処理を実行させることができる。また、通信部は、制御部から出力された情報を他のコンピュータ90へ送信することができる。 The communication unit is realized by a 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 it to the control unit. The control unit can cause the processor 901 to execute information processing on the received information according to various programs. Further, the communication unit can transmit information output from the control unit to another computer 90.

<付記>
以上の各実施形態で説明した事項を以下に付記する。
<Additional notes>
The matters explained in each of the above embodiments are additionally described below.

(付記1)
プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、プロセッサが、所定の製品画像を含む第1画像を取得する画像取得ステップ(S101)と、第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップ(S103)と、ユーザから、第2画像に含まれる所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップ(S105)と、判定受付ステップにおいて受け付けた判定指示に基づき、画像生成ステップにおいて第2画像が所定の製品の異常画像となるように所定のハイパーパラメータを変更する条件変更ステップ(S106)と、を実行するプログラム。
これにより、所定の製品について異常画像データがない、または、未知の異常に対しても、オペレータの異常画像に対する判定指示を利用することにより、異常画像データを新たに生成したり、水増しすることができる。また、製品ごとの異常に関する事前の予備知識を用意することなく(予め外観検査を行う対象品および、異常の種類(「欠け」、「歪み」、「擦り傷」等)が既知である必要がない)、オペレータの判定指示を利用して、様々な製品ごとの異常画像データを新たに生成できる。つまり、特定の製品だけではなく、様々な製品において様々な異常画像データを汎用的に生成することができる。
なお、生成した異常画像データは、製品製造の際に用いられる異常検知モデルの教師データ等として活用することができる。
(Additional note 1)
A program to be executed by a computer including a processor and a storage unit, the program includes an image acquisition step (S101) in which the processor acquires a first image including a predetermined product image; an image generation step (S103) of generating a second image by applying an image processing model based on hyperparameters; a determination reception step (S105) that receives a determination instruction; and a condition change that changes predetermined hyperparameters so that the second image becomes an abnormal image of a predetermined product in the image generation step based on the determination instruction received in the determination reception step. A program that executes step (S106).
As a result, even if there is no abnormal image data for a given product or there is an unknown abnormality, it is possible to newly generate or inflate abnormal image data by using the operator's judgment instructions for the abnormal image. can. In addition, there is no need to prepare prior knowledge regarding abnormalities for each product (the product to be visually inspected and the type of abnormality (chips, distortions, scratches, etc.) do not need to be known in advance. ), it is possible to newly generate abnormal image data for various products using the operator's judgment instructions. In other words, various abnormal image data can be generated not only for a specific product but also for various products.
Note that the generated abnormal image data can be used as training data for an abnormality detection model used during product manufacturing.

(付記2)
プロセッサが、画像処理モデルに適用可能な複数のハイパーパラメータに含まれる複数の異なるハイパーパラメータ群ごとに、独立して画像生成ステップと、判定受付ステップと、条件変更ステップとを実行する独立処理ステップ(S302)と、を実行する付記1記載のプログラム。
本開示においては、製品画像に対して適用される画像処理モデルに適用可能なハイパーパラメータは、「欠け」、「歪み」、「擦り傷」等の画像処理の内容に応じた複数の異なるハイパーパラメータ群を含んでおり、それぞれのハイパーパラメータ群をそれぞれ独立して最適化することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Additional note 2)
an independent processing step in which the processor independently executes an image generation step, a determination reception step, and a condition change 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 supplementary note 1 that executes S302).
In the present disclosure, the hyperparameters that can be applied to the image processing model applied to the product image are a plurality of different hyperparameter groups depending on the content of the image processing, such as "chip", "distortion", "scratch", etc. By optimizing each hyperparameter group independently, suitable hyperparameters can be efficiently searched for by narrowing the hyperparameter search space.

(付記3)
プロセッサが、独立処理ステップを実行した後に、複数の異なるハイパーパラメータ群のそれぞれを組み合わせたハイパーパラメータ群ごとに、画像生成ステップと、判定受付ステップと、条件変更ステップとを実行する組合処理ステップ(S304)と、を実行する付記2記載のプログラム。
これにより、独立した複数のハイパーパラメータ群のそれぞれを最適化した後に、「欠け」、「歪み」、「擦り傷」等の画像処理の組み合わせに応じてハイパーパラメータの探索を行うことにより、好適なハイパーパラメータを効率的に探索しつつ、「欠け」かつ「擦り傷」等の複数の画像処理を組み合わせた異常画像を適切に生成することができる。つまり、特定の製品だけではなく、様々な製品における様々な異常画像データの生成に好適なハイパーパラメータを効率的に探索することができる。
(Additional note 3)
After the processor executes the independent processing step, a combination processing step (S304 ) and the program described in Appendix 2 that executes.
As a result, after optimizing each of multiple independent hyperparameter groups, hyperparameters can be searched according to combinations of image processing such as "chips,""distortions," and "scratches." While efficiently searching for parameters, it is possible to appropriately generate abnormal images that combine multiple image processes such as "chips" and "scratches." In other words, it is possible to efficiently search for hyperparameters suitable for generating various abnormal image data not only for a specific product but also for various products.

(付記4)
プロセッサが、独立処理ステップが完了したことを示す指示を受け付ける完了受付ステップ(S303)と、を実行し、組合処理ステップ(S304)は、完了受付ステップにおいて受け付けた指示に応じて実行されるステップである、付記3記載のプログラム。
これにより、複数のハイパーパラメータ群のそれぞれを最適化が完了した後に、「欠け」、「歪み」、「擦り傷」等の画像処理の組み合わせに応じてハイパーパラメータの探索を行うことにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Additional note 4)
The processor executes a completion reception step (S303) in which the processor receives an instruction indicating that the independent processing step is completed, and the combination processing step (S304) is a step executed in response to the instruction received in the completion reception step. There is a program described in Appendix 3.
As a result, after optimizing each of multiple hyperparameter groups, hyperparameters can be searched according to combinations of image processing such as "chips,""distortions," and "scratches." By narrowing the search space, suitable hyperparameters can be efficiently searched.

(付記5)
組合処理ステップ(S304)は、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群を除外した組み合わせにかかるハイパーパラメータ群ごとに、画像生成ステップと、判定受付ステップと、条件変更ステップとを実行するステップである、付記3記載のプログラム。
これにより、複数のハイパーパラメータ群のうち、所定の製品の異常画像生成に適さない1または複数の画像処理に関するハイパーパラメータ群を除外することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Appendix 5)
The combination processing step (S304) executes an image generation step, a determination reception step, and a condition change step for each hyperparameter group related to a combination excluding some hyperparameter groups among a plurality of different hyperparameter groups. The program described in Appendix 3, which is the step of
As a result, by excluding one or more hyperparameter groups related to image processing that are not suitable for abnormal image generation of a predetermined product from among a plurality of hyperparameter groups, the search space for hyperparameters is narrowed, thereby selecting suitable hyperparameters. can be searched efficiently.

(付記6)
プロセッサが、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付ける選択受付ステップ(S303)と、を実行し、組合処理ステップ(S304)は、選択受付ステップにおいて選択されたハイパーパラメータ群に基づき、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群を除外した組み合わせにかかるハイパーパラメータ群ごとに、画像生成ステップと、判定受付ステップと、条件変更ステップとを実行するステップである、付記5記載のプログラム。
これにより、ユーザ等から受け付けたりまたはコンピュータにより自動的に行われる選択指示に応じて、複数のハイパーパラメータ群のうち、所定の製品の異常画像生成に適さない1または複数の画像処理に関するハイパーパラメータ群を除外することにより、好適なハイパーパラメータの探索時間を減らすことができる。
所定の製品に関する事前知識(例えば、「擦り傷」に関する異常画像は存在し得ないなど)を利用することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Appendix 6)
The processor executes a selection reception step (S303) in which the processor accepts the selection of some hyperparameter groups from a plurality of different hyperparameter groups, and the combination processing step (S304) includes selecting the hyperparameters selected in the selection reception step. A step of executing an image generation step, a determination reception step, and a condition change step for each hyperparameter group related to a combination excluding some hyperparameter groups among a plurality of different hyperparameter groups based on the group. , the program described in Appendix 5.
Thereby, in response to a selection instruction received from a user or automatically performed by a computer, one or more hyperparameter groups related to image processing that are not suitable for generating an abnormal image of a predetermined product are selected from a plurality of hyperparameter groups. By excluding , the search time for suitable hyperparameters can be reduced.
By using prior knowledge about a given product (for example, there can be no abnormal images related to "scratches"), it is possible to efficiently search for suitable hyperparameters by narrowing the hyperparameter search space. .

(付記7)
選択受付ステップ(S303)は、所定の製品に応じて、複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付けるステップである、付記6記載のプログラム。
所定の製品に関する事前知識(例えば、「擦り傷」に関する異常画像は存在し得ないなど)を利用することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Appendix 7)
The program according to appendix 6, wherein the selection acceptance step (S303) is a step of accepting selection of some hyperparameter groups from among a plurality of different hyperparameter groups depending on a predetermined product.
By using prior knowledge about a given product (for example, there can be no abnormal images related to "scratches"), it is possible to efficiently search for suitable hyperparameters by narrowing the hyperparameter search space. .

(付記8)
画像生成ステップ(S302)は、画像処理モデルに適用可能な複数のハイパーパラメータのうち、第3ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第3画像を生成するステップと、画像処理モデルに適用可能な複数のハイパーパラメータのうち、第4ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第4画像を生成するステップと、を含み、判定受付ステップ(S302)は、ユーザから、第3画像に含まれる所定の製品画像が、異常画像であるか否かに関する第3判定指示を受け付けるステップと、ユーザから、第4画像に含まれる所定の製品画像が、異常画像であるか否かに関する第4判定指示を受け付けるステップと、を含み、条件変更ステップ(S302)は、第3判定指示に基づき、第3ハイパーパラメータ群を変更するステップと、第4判定指示に基づき、第4ハイパーパラメータ群を変更するステップと、を含む、付記1記載のプログラム。
本開示においては、製品画像に対して適用される画像処理モデルに適用可能なハイパーパラメータは、「欠け」、「歪み」、「擦り傷」等の画像処理の内容に応じた複数の異なるハイパーパラメータ群を含んでおり、それぞれのハイパーパラメータ群をそれぞれ独立して最適化することにより、ハイパーパラメータの探索空間を狭めることにより好適なハイパーパラメータを効率的に探索することができる。
(Appendix 8)
The image generation step (S302) generates the third image by applying an image processing model based on one or more hyperparameters included in the 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 the fourth hyperparameter group among the plurality of hyperparameters applicable to the image processing model. The determination receiving step (S302) includes a step of receiving a third determination instruction from the user regarding whether or not a predetermined product image included in the third image is an abnormal image; The step of accepting a fourth determination instruction regarding whether a predetermined product image included in the image is an abnormal image, and the condition changing step (S302) includes a step of accepting a fourth determination instruction regarding whether or not a predetermined product image included in the image is an abnormal image, and the condition changing step (S302) includes a step of accepting a fourth determination instruction regarding whether or not a predetermined product image included in the image is an abnormal image, and the condition changing step (S302) includes a step of accepting a fourth determination instruction regarding whether or not a predetermined product image included in the image is an abnormal image. and changing the fourth hyperparameter group based on the fourth determination instruction.
In the present disclosure, the hyperparameters that can be applied to the image processing model applied to the product image are a plurality of different hyperparameter groups depending on the content of the image processing, such as "chip", "distortion", "scratch", etc. By optimizing each hyperparameter group independently, suitable hyperparameters can be efficiently searched for by narrowing the hyperparameter search space.

(付記9)
プロセッサが、第1画像に対して、第3ハイパーパラメータ群および第4ハイパーパラメータ群からなる第5ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく画像処理モデルを適用することにより第5画像を生成する第2画像生成ステップ(S304)と、ユーザから、第5画像に含まれる所定の製品画像が、異常画像であるか否かに関する第5判定指示を受け付ける第2判定受付ステップ(S304)と、第2判定受付ステップにおいて受け付けた第5判定指示に基づき、第2画像生成ステップにおいて第5画像が所定の製品の異常画像となるように第5ハイパーパラメータ群を変更する第2条件変更ステップ(S304)と、を実行する付記8記載のプログラム。
これにより、複数のハイパーパラメータ群のそれぞれを最適化した後に、「欠け」、「歪み」、「擦り傷」等の画像処理の組み合わせに応じてハイパーパラメータの探索を行うことにより、好適なハイパーパラメータの探索時間を減らしつつ、「欠け」かつ「擦り傷」等の複数の画像処理を組み合わせた異常画像を適切に生成することができる。つまり、特定の製品だけではなく、様々な製品における様々な異常画像データの生成に好適なハイパーパラメータを効率的に探索することができる。
(Appendix 9)
The processor applies, 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, thereby generating a fifth image. a second image generation step (S304) that generates a second image, and a second determination reception step (S304) that receives a fifth determination instruction from the user regarding whether or not a predetermined product image included in the fifth image is an abnormal image. and a second condition changing step of changing the fifth hyperparameter group so that the fifth image becomes an abnormal image of a predetermined product in the second image generating step based on the fifth judgment instruction received in the second judgment receiving step. (S304) and the program according to supplementary note 8.
As a result, after optimizing each of multiple hyperparameter groups, hyperparameters can be searched according to combinations of image processing such as "chips,""distortions," and "scratches." It is possible to appropriately generate an abnormal image by combining multiple image processes such as "chips" and "scratches" while reducing the search time. In other words, it is possible to efficiently search for hyperparameters suitable for generating various abnormal image data not only for a specific product but also for various products.

(付記10)
画像生成ステップ(S103)は、第1画像に含まれる所定の製品画像の領域を抽出するステップと、抽出した所定の製品画像の領域に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成するステップと、を含む、付記1記載のプログラム。
これにより、第1画像の一部に所定の製品画像が含まれている場合に、当該所定の製品画像に対してのみ異常画像を生成するための画像処理モデルを適用することができる。
(Appendix 10)
The image generation step (S103) includes a step of extracting a region of a predetermined product image included in the first image, and applying an image processing model based on predetermined hyperparameters to the extracted region of the predetermined product image. The program according to supplementary note 1, comprising the step of generating a second image by:
Thereby, when a predetermined product image is included in a part of the first image, it is possible to apply an image processing model for generating an abnormal image only to the predetermined product image.

(付記11)
画像生成ステップ(S103)は、第1画像に含まれる所定の製品画像の領域を抽出することができなかった場合に、第1画像の全体に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成するステップである、付記10記載のプログラム。
これにより、第1画像の全体に所定の製品画像が含まれている場合に、当該所定の製品画像の全体に対して異常画像を生成するための画像処理モデルを適用することができる。
(Appendix 11)
In the image generation step (S103), if a region of a predetermined product image included in the first image cannot be extracted, an image processing model based on predetermined hyperparameters is applied to the entire first image. The program according to appendix 10, which is a step of generating a second image by applying the program.
Thereby, when the predetermined product image is included in the entire first image, the image processing model for generating the abnormal image can be applied to the entire predetermined product image.

(付記12)
条件変更ステップ(S106)は、所定のハイパーパラメータおよび判定指示に基づき、ベイズ最適化を適用することにより所定のハイパーパラメータを変更するステップである、付記1記載のプログラム。
これにより、本開示のように特定の製品だけではなく、様々な製品における様々な異常画像データを生成するように、ハイパーパラメータの探索空間が広範である場合においても、好適なハイパーパラメータを効率的に探索することができる。
(Appendix 12)
The program according to supplementary note 1, wherein the condition changing step (S106) is a step of changing the predetermined hyperparameter by applying Bayesian optimization based on the predetermined hyperparameter and the determination instruction.
As a result, even when the hyperparameter search space is wide, such as generating various abnormal image data not only for a specific product but also for various products as in the present disclosure, suitable hyperparameters can be efficiently determined. can be explored.

(付記13)
条件変更ステップ(S106)は、画像処理モデルにより生成された第2画像に基づき学習される異常画像か否かを判定する分類モデルの精度に基づき、ベイズ最適化を適用するステップである、付記12記載のプログラム。
これにより、好適なハイパーパラメータを効率的に探索することができる。
(Appendix 13)
Supplementary note 12, the condition changing step (S106) is a step of applying Bayesian optimization based on the accuracy of the classification model that determines whether or not an abnormal image is an abnormal image that is learned based on the second image generated by the image processing model. Programs listed.
This makes it possible to efficiently search for suitable hyperparameters.

(付記14)
判定受付ステップ(S105)は、ユーザから、第2画像に含まれる所定の製品画像の異常画像の種類に関する異常画像種別の入力操作を受け付ける判定受付ステップと、を実行する付記1記載のプログラム。
これにより、生成された異常画像について「異常」か、「異常ではない」か、の2種類の判定指示だけではなく、「塗装剥がれ」、「腐食」、「色異常」などの異常の種類に応じた異常画像を生成することができる。
(Appendix 14)
The program according to supplementary note 1, wherein the determination reception step (S105) receives an input operation of an abnormal image type regarding the type of abnormal image of a predetermined product image included in the second image from the user.
As a result, not only can the generated abnormal image be judged as ``abnormal'' or ``not abnormal'', but also the types of abnormalities such as ``paint peeling'', ``corrosion'', and ``color abnormality'' can be determined. An abnormal image can be generated accordingly.

(付記15)
プロセッサが、所定の製品に応じて、所定のハイパーパラメータの初期値を選択する初期値選択ステップ(S102)と、を実行し、画像生成ステップ(S103)は、初期値選択ステップにおいて選択された初期値に基づく画像処理モデルを適用することにより第2画像を生成するステップである、付記1記載のプログラム。
これにより、所定の製品の種類等に応じてハイパーパラメータの初期値を設定することにより、好適なハイパーパラメータを効率的に探索することができる。例えば、所定の製品の種類ごとに、予め最適化されたハイパーパラメータが既にある場合には当該ハイパーパラメータを初期値とすることにより、ハイパーパラメータを効率的に探索することができる。
(Appendix 15)
The processor executes an initial value selection step (S102) of selecting an initial value of a predetermined hyperparameter according to a predetermined product, and an image generation step (S103) executes an initial value selection step (S102) of selecting an initial value of a predetermined hyperparameter according to a predetermined product. The program according to appendix 1, the step of which is to generate the second image by applying a value-based image processing model.
Thereby, by setting initial values of hyperparameters according to the type of a predetermined product, etc., it is possible to efficiently search for suitable hyperparameters. For example, if hyperparameters that have been optimized in advance already exist for each predetermined product type, the hyperparameters can be efficiently searched for by setting the hyperparameters as initial values.

(付記16)
画像処理モデルは、入力画像に対して欠け、歪み、擦り傷の少なくともいずれか1つに関する異常箇所を付加する画像処理を適用可能なモデルであり、所定のハイパーパラメータは、異常箇所の大きさ、回転角度、反転角度および色彩変更のパラメータを含む、付記1記載のプログラム。
これにより、特定の製品だけではなく、様々な製品における様々な異常画像データの生成を効率的に行うことができる。
(Appendix 16)
The image processing model is a model that can apply image processing to an input image to add an abnormal part related to at least one of chipping, distortion, and scratches, and predetermined hyperparameters include the size and rotation of the abnormal part. The program according to appendix 1, including parameters for angle, inversion angle, and color change.
Thereby, it is possible to efficiently generate various abnormal image data not only for a specific product but also for various products.

(付記17)
プロセッサと、メモリとを備えるコンピュータに実行される方法であって、プロセッサが、付記1から付記16のいずれかに係る発明において実行される全てのステップを実行する方法。
これにより、所定の製品について異常画像データがない、または、未知の異常に対しても、オペレータの異常画像に対する判定指示を利用することにより、異常画像データを新たに生成したり、水増しすることができる。また、製品ごとの異常に関する事前の予備知識を用意することなく(予め外観検査を行う対象品および、異常の種類(「欠け」、「歪み」、「擦り傷」等)が既知である必要がない)、オペレータの判定指示を利用して、様々な製品ごとの異常画像データを新たに生成できる。つまり、特定の製品だけではなく、様々な製品において様々な異常画像データを汎用的に生成することができる。
なお、生成した異常画像データは、製品製造の際に用いられる異常検知モデルの教師データ等として活用することができる。
(Appendix 17)
A method executed by a computer comprising a processor and a memory, wherein the processor executes all steps performed in the invention according to any one of appendices 1 to 16.
As a result, even if there is no abnormal image data for a given product or there is an unknown abnormality, it is possible to newly generate or inflate abnormal image data by using the operator's judgment instructions for the abnormal image. can. In addition, there is no need to prepare prior knowledge regarding abnormalities for each product (the product to be visually inspected and the type of abnormality (chips, distortions, scratches, etc.) do not need to be known in advance. ), it is possible to newly generate abnormal image data for various products using the operator's judgment instructions. In other words, various abnormal image data can be generated not only for a specific product but also for various products.
Note that the generated abnormal image data can be used as training data for an abnormality detection model used during product manufacturing.

(付記18)
制御部と、記憶部とを備える情報処理装置であって、制御部が、付記1から付記16のいずれかに係る発明において実行される全てのステップを実行する情報処理装置。
これにより、所定の製品について異常画像データがない、または、未知の異常に対しても、オペレータの異常画像に対する判定指示を利用することにより、異常画像データを新たに生成したり、水増しすることができる。また、製品ごとの異常に関する事前の予備知識を用意することなく(予め外観検査を行う対象品および、異常の種類(「欠け」、「歪み」、「擦り傷」等)が既知である必要がない)、オペレータの判定指示を利用して、様々な製品ごとの異常画像データを新たに生成できる。つまり、特定の製品だけではなく、様々な製品において様々な異常画像データを汎用的に生成することができる。
なお、生成した異常画像データは、製品製造の際に用いられる異常検知モデルの教師データ等として活用することができる。
(Appendix 18)
An information processing device comprising a control unit and a storage unit, wherein the control unit executes all steps performed in the invention according to any one of Supplementary Notes 1 to 16.
As a result, even if there is no abnormal image data for a given product or there is an unknown abnormality, it is possible to newly generate or inflate abnormal image data by using the operator's judgment instructions for the abnormal image. can. In addition, there is no need to prepare prior knowledge regarding abnormalities for each product (the product to be visually inspected and the type of abnormality (chips, distortions, scratches, etc.) do not need to be known in advance. ), it is possible to newly generate abnormal image data for various products using the operator's judgment instructions. In other words, various abnormal image data can be generated not only for a specific product but also for various products.
Note that the generated abnormal image data can be used as training data for an abnormality detection model used during product manufacturing.

(付記19)
付記1から付記16のいずれかに係る発明において実行される全てのステップを実行する手段を備えるシステム。
これにより、所定の製品について異常画像データがない、または、未知の異常に対しても、オペレータの異常画像に対する判定指示を利用することにより、異常画像データを新たに生成したり、水増しすることができる。また、製品ごとの異常に関する事前の予備知識を用意することなく(予め外観検査を行う対象品および、異常の種類(「欠け」、「歪み」、「擦り傷」等)が既知である必要がない)、オペレータの判定指示を利用して、様々な製品ごとの異常画像データを新たに生成できる。つまり、特定の製品だけではなく、様々な製品において様々な異常画像データを汎用的に生成することができる。
なお、生成した異常画像データは、製品製造の際に用いられる異常検知モデルの教師データ等として活用することができる。
(Appendix 19)
A system comprising means for executing all steps performed in the invention according to any one of appendices 1 to 16.
As a result, even if there is no abnormal image data for a given product or there is an unknown abnormality, it is possible to newly generate or inflate abnormal image data by using the operator's judgment instructions for the abnormal image. can. In addition, there is no need to prepare prior knowledge regarding abnormalities for each product (the product to be visually inspected and the type of abnormality (chips, distortions, scratches, etc.) do not need to be known in advance. ), it is possible to newly generate abnormal image data for various products using the operator's judgment instructions. In other words, various abnormal image data can be generated not only for a specific product but also for various products.
Note that the generated abnormal image data can be used as training data for an abnormality detection model used during product manufacturing.

1 システム、10 サーバ、101 記憶部、104 制御部、106 入力装置、108 出力装置、20 ユーザ端末、201 記憶部、204 制御部、206 入力装置、208 出力装置


Reference Signs List 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 (17)

プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサが、
所定の製品画像を含む第1画像を取得する画像取得ステップと、
前記第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、
ユーザから、前記第2画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、
前記判定受付ステップにおいて受け付けた前記判定指示に基づき、前記画像生成ステップにおいて前記第2画像が前記所定の製品の異常画像となるように前記所定のハイパーパラメータを変更する条件変更ステップと、
前記画像処理モデルに適用可能な複数のハイパーパラメータに含まれる複数の異なるハイパーパラメータ群ごとに、独立して前記画像生成ステップと、前記判定受付ステップと、前記条件変更ステップとを実行する独立処理ステップと、
を実行するプログラム。
A program to be executed by a computer including a processor and a storage unit, the processor comprising:
an image acquisition step of acquiring a first image including a predetermined product image;
an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image;
a determination reception step of receiving a determination instruction from a user regarding whether or not the predetermined product image included in the second image is an abnormal image;
a condition changing step of changing the predetermined hyperparameters so that the second image becomes an abnormal image of the predetermined product in the image generation step, based on the determination instruction received in the determination receiving step;
an independent processing step of independently performing the image generation step, the determination reception step, and the condition change step for each of a plurality of different hyperparameter groups included in a plurality of hyperparameters applicable to the image processing model; and,
A program to run.
前記プロセッサが、
前記独立処理ステップを実行した後に、前記複数の異なるハイパーパラメータ群のそれぞれを組み合わせたハイパーパラメータ群ごとに、前記画像生成ステップと、前記判定受付ステップと、前記条件変更ステップとを実行する組合処理ステップと、を実行する請求項1記載のプログラム。
The processor,
After performing the independent processing step, a combination processing step of performing the image generation step, the determination reception step, and the condition change step for each hyperparameter group that is a combination of each of the plurality of different hyperparameter groups. The program according to claim 1 , which executes the following.
前記プロセッサが、
前記独立処理ステップが完了したことを示す指示を受け付ける完了受付ステップと、を実行し、
前記組合処理ステップは、前記完了受付ステップにおいて受け付けた前記指示に応じて実行されるステップである、請求項2記載のプログラム。
The processor,
a completion reception step of receiving an instruction indicating that the independent processing step is completed;
3. The program according to claim 2 , wherein the combination processing step is a step executed in response to the instruction received in the completion acceptance step.
前記組合処理ステップは、前記複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群を除外した組み合わせにかかるハイパーパラメータ群ごとに、前記画像生成ステップと、前記判定受付ステップと、前記条件変更ステップとを実行するステップである、請求項2記載のプログラム。 The combination processing step includes the image generation step, the determination reception step, and the condition change step for each hyperparameter group related to a combination excluding some hyperparameter groups among the plurality of different hyperparameter groups. The program according to claim 2 , which is a step of executing. 前記プロセッサが、
前記複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付ける選択受付ステップと、を実行し、
前記組合処理ステップは、前記選択受付ステップにおいて選択された前記ハイパーパラメータ群に基づき、前記複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群を除外した組み合わせにかかるハイパーパラメータ群ごとに、前記画像生成ステップと、前記判定受付ステップと、前記条件変更ステップとを実行するステップである、請求項4記載のプログラム。
The processor,
a selection reception step of accepting selection of some hyperparameter groups from the plurality of different hyperparameter groups;
The combination processing step includes processing the image for each hyperparameter group related to a combination excluding some hyperparameter groups among the plurality of different hyperparameter groups, based on the hyperparameter group selected in the selection reception step. 5. The program according to claim 4 , which is a step of executing a generating step, said determination accepting step, and said condition changing step.
前記選択受付ステップは、前記所定の製品に応じて、前記複数の異なるハイパーパラメータ群のうち一部のハイパーパラメータ群の選択を受け付けるステップである、請求項5記載のプログラム。 6. The program according to claim 5 , wherein the selection accepting step is a step of accepting selection of some of the plurality of different hyperparameter groups depending on the predetermined product. プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサが、
所定の製品画像を含む第1画像を取得する画像取得ステップと、
前記第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、
ユーザから、前記第2画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、
前記判定受付ステップにおいて受け付けた前記判定指示に基づき、前記画像生成ステップにおいて前記第2画像が前記所定の製品の異常画像となるように前記所定のハイパーパラメータを変更する条件変更ステップと、
を実行し、
前記画像生成ステップは、
前記画像処理モデルに適用可能な複数のハイパーパラメータのうち、第3ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく前記画像処理モデルを適用することにより第3画像を生成するステップと、
前記画像処理モデルに適用可能な複数のハイパーパラメータのうち、第4ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく前記画像処理モデルを適用することにより第4画像を生成するステップと、
を含み、
前記判定受付ステップは、
ユーザから、前記第3画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する第3判定指示を受け付けるステップと、
ユーザから、前記第4画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する第4判定指示を受け付けるステップと、
を含み、
前記条件変更ステップは、
前記第3判定指示に基づき、前記第3ハイパーパラメータ群を変更するステップと、
前記第4判定指示に基づき、前記第4ハイパーパラメータ群を変更するステップと、
を含むプログラム。
A program to be executed by a computer including a processor and a storage unit, the processor comprising:
an image acquisition step of acquiring a first image including a predetermined product image;
an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image;
a determination reception step of receiving a determination instruction from a user regarding whether or not the predetermined product image included in the second image is an abnormal image;
a condition changing step of changing the predetermined hyperparameters so that the second image becomes an abnormal image of the predetermined product in the image generation step, based on the determination instruction received in the determination receiving step;
Run
The image generation 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 the plurality of hyperparameters applicable to the image processing model;
including;
The determination reception step includes:
receiving from a user a third determination instruction regarding whether or not the predetermined product image included in the third image is an abnormal image;
receiving from a user a fourth determination instruction regarding whether or not the predetermined product image included in the fourth image is an abnormal image;
including;
The condition changing step includes:
changing the third hyperparameter group based on the third determination instruction;
changing the fourth hyperparameter group based on the fourth determination instruction;
programs containing.
前記プロセッサが、
前記第1画像に対して、前記第3ハイパーパラメータ群および前記第4ハイパーパラメータ群からなる第5ハイパーパラメータ群に含まれる1または複数のハイパーパラメータに基づく前記画像処理モデルを適用することにより第5画像を生成する第2画像生成ステップと、
ユーザから、前記第5画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する第5判定指示を受け付ける第2判定受付ステップと、
前記第2判定受付ステップにおいて受け付けた前記第5判定指示に基づき、前記第2画像生成ステップにおいて前記第5画像が前記所定の製品の異常画像となるように前記第5ハイパーパラメータ群を変更する第2条件変更ステップと、を実行する請求項7記載のプログラム。
The processor,
a fifth hyperparameter group 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 image generation step of generating an image;
a second determination reception 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;
changing the fifth hyperparameter group so that the fifth image becomes an abnormal image of the predetermined product in the second image generation step based on the fifth determination instruction received in the second determination receiving step; 8. The program according to claim 7 , which executes the step of changing two conditions.
プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサが、
所定の製品画像を含む第1画像を取得する画像取得ステップと、
前記第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、
ユーザから、前記第2画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、
前記判定受付ステップにおいて受け付けた前記判定指示に基づき、前記画像生成ステップにおいて前記第2画像が前記所定の製品の異常画像となるように前記所定のハイパーパラメータを変更する条件変更ステップと、
を実行し、
前記画像生成ステップは、前記第1画像に含まれる前記所定の製品画像の領域を抽出することができなかった場合に、前記第1画像の全体に対して、前記所定のハイパーパラメータに基づく前記画像処理モデルを適用することにより前記第2画像を生成するステップである、
プログラム。
A program to be executed by a computer including a processor and a storage unit, the processor comprising:
an image acquisition step of acquiring a first image including a predetermined product image;
an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image;
a determination reception step of receiving a determination instruction from a user regarding whether or not the predetermined product image included in the second image is an abnormal image;
a condition changing step of changing the predetermined hyperparameters so that the second image becomes an abnormal image of the predetermined product in the image generation step, based on the determination instruction received in the determination receiving step;
Run
In the image generation step, if a region of the predetermined product image included in the first image cannot be extracted, the image generation step includes generating the image based on the predetermined hyperparameters for the entire first image. generating the second image by applying a processing model;
program.
前記画像生成ステップは、
前記第1画像に含まれる前記所定の製品画像の領域を抽出するステップと、
前記第1画像に含まれる前記所定の製品画像の領域を抽出できた場合に、抽出した前記所定の製品画像の領域に対して、前記所定のハイパーパラメータに基づく前記画像処理モデルを適用することにより前記第2画像を生成するステップと、
を含む、請求項9記載のプログラム。
The image generation step includes:
extracting a region of the predetermined product image included in the first image;
By applying the image processing model based on the predetermined hyperparameter to the extracted region of the predetermined product image when the region of the predetermined product image included in the first image can be extracted. generating the second image;
The program according to claim 9 , comprising:
プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサが、
所定の製品画像を含む第1画像を取得する画像取得ステップと、
前記第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、
ユーザから、前記第2画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、
前記判定受付ステップにおいて受け付けた前記判定指示に基づき、前記画像生成ステップにおいて前記第2画像が前記所定の製品の異常画像となるように前記所定のハイパーパラメータを変更する条件変更ステップと、
を実行し、
前記条件変更ステップは、前記所定のハイパーパラメータおよび前記判定指示と、前記画像処理モデルにより生成された前記第2画像に基づき学習される異常画像か否かを判定する分類モデルの精度と、に基づき、ベイズ最適化を適用することにより前記所定のハイパーパラメータを変更するステップである、
プログラム。
A program to be executed by a computer including a processor and a storage unit, the processor comprising:
an image acquisition step of acquiring a first image including a predetermined product image;
an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image;
a determination reception step of receiving a determination instruction from a user regarding whether or not the predetermined product image included in the second image is an abnormal image;
a condition changing step of changing the predetermined hyperparameters so that the second image becomes an abnormal image of the predetermined product in the image generation step, based on the determination instruction received in the determination receiving step;
Run
The condition changing step is based on the predetermined hyperparameter, the determination instruction, and the accuracy of a classification model that determines whether the image is an abnormal image and is learned based on the second image generated by the image processing model. , changing the predetermined hyperparameters by applying Bayesian optimization;
program.
プロセッサと、記憶部とを備えるコンピュータに実行させるためのプログラムであって、前記プロセッサが、
所定の製品画像を含む第1画像を取得する画像取得ステップと、
前記第1画像に対して、所定のハイパーパラメータに基づく画像処理モデルを適用することにより第2画像を生成する画像生成ステップと、
ユーザから、前記第2画像に含まれる前記所定の製品画像が、異常画像であるか否かに関する判定指示を受け付ける判定受付ステップと、
前記判定受付ステップにおいて受け付けた前記判定指示に基づき、前記画像生成ステップにおいて前記第2画像が前記所定の製品の異常画像となるように前記所定のハイパーパラメータを変更する条件変更ステップと、
を実行し、
前記判定受付ステップは、前記ユーザから、前記第2画像に含まれる前記所定の製品画像の異常画像の種類に関する異常画像種別の入力操作を受け付けるステップである
プログラム。
A program to be executed by a computer including a processor and a storage unit, the processor comprising:
an image acquisition step of acquiring a first image including a predetermined product image;
an image generation step of generating a second image by applying an image processing model based on predetermined hyperparameters to the first image;
a determination reception step of receiving a determination instruction from a user regarding whether or not the predetermined product image included in the second image is an abnormal image;
a condition changing step of changing the predetermined hyperparameters so that the second image becomes an abnormal image of the predetermined product in the image generation step, based on the determination instruction received in the determination receiving step;
Run
The determination receiving step is a step of receiving an input operation for an abnormal image type regarding the type of abnormal image of the predetermined product image included in the second image from the user.
program.
前記プロセッサが、
前記所定の製品に応じて、前記所定のハイパーパラメータの初期値を選択する初期値選択ステップと、を実行し、
前記画像生成ステップは、前記初期値選択ステップにおいて選択された前記初期値に基づく前記画像処理モデルを適用することにより前記第2画像を生成するステップである、
請求項1から12のいずれか記載のプログラム。
The processor,
performing an initial value selection step of selecting an initial value of the predetermined hyperparameter according to the predetermined product;
The image generation 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 selection step.
The program according to any one of claims 1 to 12 .
前記画像処理モデルは、入力画像に対して欠け、歪み、擦り傷の少なくともいずれか1つに関する異常箇所を付加する画像処理を適用可能なモデルであり、前記所定のハイパーパラメータは、前記異常箇所の大きさ、回転角度、反転角度および色彩変更のパラメータを含む、
請求項1から12のいずれか記載のプログラム。
The image processing model is a model that can apply image processing to an input image to add an abnormal location related to at least one of a chip, a distortion, and a scratch, and the predetermined hyperparameter is a including parameters for rotation angle, flip angle and color change.
The program according to any one of claims 1 to 12 .
プロセッサと、メモリとを備えるコンピュータに実行される方法であって、前記プロセッサが、請求項1から請求項12のいずれかに係る発明において実行される全てのステップを実行する方法。 A method implemented in a computer comprising a processor and a memory, wherein the processor performs all the steps performed in the invention according to any of claims 1 to 12 . 制御部と、記憶部とを備える情報処理装置であって、前記制御部が、請求項1から請求項12のいずれかに係る発明において実行される全てのステップを実行する情報処理装置。 An information processing device comprising a control section and a storage section, wherein the control section executes all steps executed in the invention according to any one of claims 1 to 12. 請求項1から請求項12のいずれかに係る発明において実行される全てのステップを実行する手段を備えるシステム。 A system comprising means for performing all steps performed in the invention according to any of claims 1 to 12 .
JP2023054190A 2023-03-29 2023-03-29 Program, method, information processing device, system Active JP7344501B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023054190A JP7344501B1 (en) 2023-03-29 2023-03-29 Program, method, information processing device, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023054190A JP7344501B1 (en) 2023-03-29 2023-03-29 Program, method, information processing device, system

Publications (1)

Publication Number Publication Date
JP7344501B1 true JP7344501B1 (en) 2023-09-14

Family

ID=87934880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023054190A Active JP7344501B1 (en) 2023-03-29 2023-03-29 Program, method, information processing device, system

Country Status (1)

Country Link
JP (1) JP7344501B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020181392A (en) 2019-04-25 2020-11-05 ピクシーダストテクノロジーズ株式会社 Information processing device, method, and program
CN112488984A (en) 2019-09-11 2021-03-12 中信戴卡股份有限公司 Method and device for acquiring defect picture generation network and defect picture generation method
JP2021111232A (en) 2020-01-14 2021-08-02 富士通株式会社 Learning data generation program, device, and method
WO2022264461A1 (en) 2021-06-15 2022-12-22 ソニーグループ株式会社 Information processing system and information processing method
KR102490503B1 (en) 2022-07-12 2023-01-19 프로메디우스 주식회사 Method and apparatus for processing image using cycle generative adversarial network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020181392A (en) 2019-04-25 2020-11-05 ピクシーダストテクノロジーズ株式会社 Information processing device, method, and program
CN112488984A (en) 2019-09-11 2021-03-12 中信戴卡股份有限公司 Method and device for acquiring defect picture generation network and defect picture generation method
JP2021111232A (en) 2020-01-14 2021-08-02 富士通株式会社 Learning data generation program, device, and method
WO2022264461A1 (en) 2021-06-15 2022-12-22 ソニーグループ株式会社 Information processing system and information processing method
KR102490503B1 (en) 2022-07-12 2023-01-19 프로메디우스 주식회사 Method and apparatus for processing image using cycle generative adversarial network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FUJII, Kazuki et al.,HUMANGAN: GENERATIVE ADVERSARIAL NETWORK WITH HUMAN-BASED DISCRIMINATOR AND ITS EVALUATION IN SPEECH PERCEPTION MODELING,[online],2019年09月25日,https://arxiv.org/abs/1909.11391

Similar Documents

Publication Publication Date Title
JP6402265B2 (en) Method, computer device and storage device for building a decision model
CN110321958B (en) Training method of neural network model and video similarity determination method
US20200226133A1 (en) Knowledge map building system and method
US20200402221A1 (en) Inspection system, image discrimination system, discrimination system, discriminator generation system, and learning data generation device
US11593975B2 (en) Systems and methods of generating color palettes with a generative adversarial network
US20180137158A1 (en) Foreign key learner
US8275780B2 (en) Rule discovery program, rule discovery process, and rule discovery apparatus
JP7423998B2 (en) Visual analysis frameworks, methods, programs, devices, and systems for understanding missing links in bipartite networks
CN116049397A (en) Sensitive information discovery and automatic classification method based on multi-mode fusion
CN112037223A (en) Image defect detection method and device and electronic equipment
CN112420125A (en) Molecular attribute prediction method and device, intelligent equipment and terminal
CN117576108B (en) Visual optimization method and device for wafer defect detection and computer equipment
US10437947B2 (en) Method and system for providing virtual semiconductor product replicating real semiconductor product
JP7344501B1 (en) Program, method, information processing device, system
EP3745321A1 (en) An operating envelope recommendation system with guaranteed probabilistic coverage
Alqudah et al. A systemic comparison between using augmented data and synthetic data as means of enhancing wafermap defect classification
CN111222558A (en) Image processing method and storage medium
CN114817559A (en) Question answering method, device, computer equipment and storage medium
US20210365831A1 (en) Identifying claim complexity by integrating supervised and unsupervised learning
US11069447B2 (en) Systems and methods for topology-based clinical data mining
CN114925153A (en) Service-based geographic information data quality detection method, device and equipment
CN116612474B (en) Object detection method, device, computer equipment and computer readable storage medium
US11755572B1 (en) Systems, methods, and apparatus for natural language queries and data visualizations
US20210248206A1 (en) Systems and methods for generating data retrieval steps
CN117392477A (en) Training of object detection model, apparatus, computer device and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230330

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230330

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230704

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230810

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230816

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230824

R150 Certificate of patent or registration of utility model

Ref document number: 7344501

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150