JP6995031B2 - Information processing equipment, information processing methods, and information processing programs - Google Patents

Information processing equipment, information processing methods, and information processing programs Download PDF

Info

Publication number
JP6995031B2
JP6995031B2 JP2018166402A JP2018166402A JP6995031B2 JP 6995031 B2 JP6995031 B2 JP 6995031B2 JP 2018166402 A JP2018166402 A JP 2018166402A JP 2018166402 A JP2018166402 A JP 2018166402A JP 6995031 B2 JP6995031 B2 JP 6995031B2
Authority
JP
Japan
Prior art keywords
classification
unit
information processing
determination
result
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
JP2018166402A
Other languages
Japanese (ja)
Other versions
JP2020038579A (en
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.)
Hitachi Zosen Corp
Original Assignee
Hitachi Zosen Corp
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 Hitachi Zosen Corp filed Critical Hitachi Zosen Corp
Priority to JP2018166402A priority Critical patent/JP6995031B2/en
Publication of JP2020038579A publication Critical patent/JP2020038579A/en
Application granted granted Critical
Publication of JP6995031B2 publication Critical patent/JP6995031B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像中の対象物を自動で分類した分類結果に基づいて当該対象物に関する判定を行う判定システムに関し、より詳細には当該判定システムにおける判定結果を管理する情報処理装置等に関する。 The present invention relates to a determination system that makes a determination regarding an object based on a classification result that automatically classifies an object in an image, and more particularly to an information processing device that manages the determination result in the determination system.

機械学習済みのアルゴリズムを用いて画像に写る対象物を自動で分類する技術が知られている。ただし、自動分類の精度は100%ではない。このため、人による目視判定を併用することにより、分類精度を担保することが行われている。例えば、下記の特許文献1には、コンテンツとそのコンテンツのカテゴリを表すラベルを表示し、利用者がラベルを修正した場合に、上記コンテンツのラベルを修正されたラベルで更新した上で教師データとする構成が記載されている。 A technique for automatically classifying an object in an image using a machine-learned algorithm is known. However, the accuracy of automatic classification is not 100%. For this reason, classification accuracy is ensured by using visual judgment by humans together. For example, in the following Patent Document 1, a label indicating the content and the category of the content is displayed, and when the user modifies the label, the label of the content is updated with the modified label and then the teacher data is used. The configuration to be used is described.

特許第6291844号公報Japanese Patent No. 6291844

上述のような従来技術では、目視判定の結果はラベルの更新に用いられるのみであり、それ以外の用途に活用することは想定されていない。本発明の一態様は、目視判定の結果の活用の範囲を広げることのできる情報処理装置等を提供することを目的とする。 In the above-mentioned conventional technique, the result of the visual determination is only used for updating the label, and it is not supposed to be used for other purposes. One aspect of the present invention is to provide an information processing apparatus or the like capable of expanding the range of utilization of the result of visual determination.

上記の課題を解決するために、本発明の一態様に係る情報処理装置は、画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置であって、上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類部による分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得部と、上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分部と、を備えている。 In order to solve the above problems, the information processing apparatus according to one aspect of the present invention classifies an object in an image by a machine-learned classification unit, and whether or not the object belongs to a predetermined classification. An information processing device that classifies the classification results of the classification unit in the determination system for determining, and in a visual determination performed on an object classified by the classification unit, (1) the predetermined classification of the object. The visual judgment result acquisition unit that acquires the visual judgment result, which is the result of determining whether or not the classification result belongs to, and (2) the correctness of the classification result by the classification unit, and the above (1) and (2) in the visual determination result. ) Is provided with a classification unit for classifying the classification results of the above classification unit.

上記の課題を解決するために、本発明の一態様に係る情報処理方法は、画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置による情報処理方法であって、上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得ステップと、上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分ステップと、を含む。 In order to solve the above problem, the information processing method according to one aspect of the present invention classifies an object in an image by a machine-learned classification unit, and whether or not the object belongs to a predetermined classification. It is an information processing method by an information processing apparatus that classifies the classification result of the above-mentioned classification unit in the determination system for determining, and in the visual determination performed on the object classified by the above-mentioned classification unit, (1) the above-mentioned object. The visual judgment result acquisition step for acquiring the visual judgment result which is the result of determining whether or not the classification belongs to the predetermined classification and (2) the correctness of the classification result, and the above (1) and (1) in the visual judgment result. 2) Includes a classification step for classifying the classification results of the classification unit according to the combination of 2).

本発明の一態様によれば、目視判定結果の活用の範囲を広げることができる。 According to one aspect of the present invention, the range of utilization of the visual determination result can be expanded.

本発明の実施形態1に係る情報処理装置の要部構成の一例を示すブロック図である。It is a block diagram which shows an example of the main part structure of the information processing apparatus which concerns on Embodiment 1 of this invention. 上記情報処理装置を含む情報処理システムの構成例を示す図である。It is a figure which shows the structural example of the information processing system including the said information processing apparatus. 食品生産工場において生産された食品を上記情報処理システムの判定対象物として撮影した例を示す図である。It is a figure which shows the example which photographed the food produced in the food production factory as the determination object of the said information processing system. 上記情報処理装置の判定結果のパターン区分を示す図である。It is a figure which shows the pattern classification of the determination result of the said information processing apparatus. 目視判定におけるUI画面例を示す図である。It is a figure which shows the UI screen example in the visual determination. 分類部による分類を行うことができなかった場合の判定結果のパターン区分を示す図である。It is a figure which shows the pattern classification of the determination result when the classification by the classification part could not be performed. 上記情報処理装置が製品の正否を判定すると共に、その判定結果のパターンを区分する処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process which the information processing apparatus determines the correctness of a product, and classifies the pattern of the determination result. 図7のS13で行われる区分処理の一例を示すフローチャートである。It is a flowchart which shows an example of the division processing performed in S13 of FIG. 上記情報処理装置が上記パターンの分類に基づいて訓練データを生成する処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process which the said information processing apparatus generates training data based on the classification of the said pattern. 本発明の実施形態2に係る情報処理装置が誤判定数を算出する処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process which the information processing apparatus which concerns on Embodiment 2 of this invention calculates the number of erroneous determinations. 本発明の実施形態3に係る情報処理装置が再学習のタイミングを決定する処理を説明する図である。It is a figure explaining the process which determines the timing of relearning by the information processing apparatus which concerns on Embodiment 3 of this invention. 本発明の実施形態4に係る情報処理装置の制御部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the control part of the information processing apparatus which concerns on Embodiment 4 of this invention. 上記情報処理装置が実行する処理を説明する図である。It is a figure explaining the process executed by the information processing apparatus.

実行する処理を説明する図である。
〔実施形態1〕
本発明の一実施形態について図1~図9に基づいて説明する。
It is a figure explaining the process to execute.
[Embodiment 1]
An embodiment of the present invention will be described with reference to FIGS. 1 to 9.

〔システム構成〕
まず、本実施形態に係る情報処理システム500の構成を図2に基づいて説明する。図2は、情報処理システム500の構成例を示す図である。情報処理システム500は、所定の対象物を撮影した画像から、その対象物の正否判定を行う機能を備えている。図示のように、情報処理システム500は、情報処理装置1と目視検査端末2と端末装置3を含む。
〔System configuration〕
First, the configuration of the information processing system 500 according to the present embodiment will be described with reference to FIG. FIG. 2 is a diagram showing a configuration example of the information processing system 500. The information processing system 500 has a function of determining the correctness of a predetermined object from an image of the object. As shown in the figure, the information processing system 500 includes an information processing device 1, a visual inspection terminal 2, and a terminal device 3.

情報処理装置1は、上記対象物を撮影した画像から、当該対象物を所定のアルゴリズムにより所定の複数の分類カテゴリの何れかに自動で分類する。そして、情報処理装置1は、その分類結果が所定の分類カテゴリと一致するか否かによって、当該対象物の正否判定を行う。つまり、情報処理装置1は、分類結果が所定の分類カテゴリと一致すれば正(対象物に問題なし)と判定し、一致しなければ否(対象物に問題あり)と判定する。 The information processing apparatus 1 automatically classifies the object into one of a plurality of predetermined classification categories by a predetermined algorithm from the captured image of the object. Then, the information processing apparatus 1 determines whether or not the object is correct or not depending on whether or not the classification result matches a predetermined classification category. That is, the information processing apparatus 1 determines that the classification result matches the predetermined classification category as positive (there is no problem with the object), and if the classification result does not match, it determines as negative (there is a problem with the object).

目視検査端末2は、情報処理装置1では良と判定されなかった対象物の目視判定を行うための装置である。また、目視検査端末2は、情報処理装置1での分類が困難であった画像も目視判定の対象とする。情報処理システム500は、情報処理装置1による自動判定と、目視検査端末2による目視判定を併用することにより、判定の効率化と判定の信頼性を両立させている。 The visual inspection terminal 2 is a device for visually determining an object that is not judged to be good by the information processing apparatus 1. Further, the visual inspection terminal 2 also targets images that were difficult to classify by the information processing apparatus 1 for visual determination. The information processing system 500 uses both the automatic determination by the information processing apparatus 1 and the visual determination by the visual inspection terminal 2 in combination to improve the efficiency of the determination and the reliability of the determination.

端末装置3は、対象物を撮影した画像を取得して情報処理装置1に送信し、その画像に基づく判定結果を情報処理装置から受信する。端末装置3は、判定結果を画像や音声等によって出力する機能を備えていてもよい。 The terminal device 3 acquires an image of an object and transmits it to the information processing device 1, and receives a determination result based on the image from the information processing device. The terminal device 3 may have a function of outputting a determination result by an image, voice, or the like.

図2では、製造工場で製造された製品Pの良否判定を、監視室に配置された情報処理システム500によって行う例を示している。このため、端末装置3は、製品Pを撮影した画像201を取得して情報処理装置1に送信している。そして、画像201を受信した情報処理装置1は、判定の対象物である製品Pの良否判定を行う。 FIG. 2 shows an example in which the quality determination of the product P manufactured in the manufacturing factory is performed by the information processing system 500 arranged in the monitoring room. Therefore, the terminal device 3 acquires the image 201 of the product P and transmits it to the information processing device 1. Then, the information processing apparatus 1 that has received the image 201 determines the quality of the product P, which is the object of the determination.

ここで良品と判定された場合には、その判定結果が情報処理装置1から端末装置3に通知され、これにより、製造工場において、製品Pが良品であることが認識される。一方、不良品と判定された場合には、判定結果がNG(不良)の画像201が情報処理装置1から目視検査端末2に送信される。 If it is determined to be a non-defective product, the information processing device 1 notifies the terminal device 3 of the determination result, whereby the manufacturing factory recognizes that the product P is a non-defective product. On the other hand, when it is determined that the product is defective, the image 201 whose determination result is NG (defective) is transmitted from the information processing apparatus 1 to the visual inspection terminal 2.

目視検査端末2は画像201を表示し、目視検査員は表示された画像201を目視して製品Pの良否判定を行い、その結果を目視検査端末2に入力する。そして、目視検査端末2は、入力された目視判定の結果を情報処理装置1に通知する。これにより、情報処理装置1は、自機の不良判定の結果が誤りであった場合にそれを検出することができる。 The visual inspection terminal 2 displays the image 201, and the visual inspector visually inspects the displayed image 201 to determine the quality of the product P, and inputs the result to the visual inspection terminal 2. Then, the visual inspection terminal 2 notifies the information processing apparatus 1 of the input visual determination result. As a result, the information processing apparatus 1 can detect when the result of the defect determination of the own machine is incorrect.

なお、情報処理装置1および目視検査端末2は、対象物がある施設(図示の例では製造工場内)に配置されていてもよい。この場合、情報処理システム500の構成要素から端末装置3を省略してもよいし、情報処理装置1が目視検査端末2と一体の装置として構成されていてもよい。また、情報処理システム500に含まれる各装置は、据え置き型の装置であってもよいし、携帯型の装置であってもよい。また、目視検査端末2の数、端末装置3の数、および目視検査員の数は、複数であってもよい。 The information processing device 1 and the visual inspection terminal 2 may be arranged in a facility (in the manufacturing factory in the illustrated example) where the object is located. In this case, the terminal device 3 may be omitted from the components of the information processing system 500, or the information processing device 1 may be configured as a device integrated with the visual inspection terminal 2. Further, each device included in the information processing system 500 may be a stationary device or a portable device. Further, the number of visual inspection terminals 2, the number of terminal devices 3, and the number of visual inspectors may be plural.

〔装置構成〕
情報処理装置1のより詳細な構成について図1に基づいて説明する。図1は、情報処理装置1の要部構成の一例を示すブロック図である。図示のように、情報処理装置1は、情報処理装置1の各部を統括して制御する制御部10と、情報処理装置1が使用する各種データを記憶する記憶部20を備えている。また、情報処理装置1は、情報処理装置1に対するデータの入力を受け付ける入力部30、情報処理装置1が他の装置と通信するための通信部40、および情報処理装置1がデータを出力するための出力部50を備えている。
〔Device configuration〕
A more detailed configuration of the information processing apparatus 1 will be described with reference to FIG. FIG. 1 is a block diagram showing an example of a main configuration of the information processing apparatus 1. As shown in the figure, the information processing apparatus 1 includes a control unit 10 that controls and controls each unit of the information processing apparatus 1, and a storage unit 20 that stores various data used by the information processing apparatus 1. Further, the information processing device 1 has an input unit 30 for receiving data input to the information processing device 1, a communication unit 40 for the information processing device 1 to communicate with another device, and the information processing device 1 for outputting data. The output unit 50 is provided.

また、制御部10には、画像取得部101、分類部102、分類成否判定部103、正否判定部(判定部)104、判定結果管理部(区分部)105、目視判定部(目視判定結果取得部)106、訓練データ生成部107、誤判定数算出部108、および再学習時期決定部109が含まれる。また、記憶部20には、画像201と訓練データ202が記憶されている。 Further, the control unit 10 includes an image acquisition unit 101, a classification unit 102, a classification success / failure determination unit 103, a correctness / rejection determination unit (judgment unit) 104, a determination result management unit (classification unit) 105, and a visual determination unit (visual determination result acquisition). Unit) 106, training data generation unit 107, erroneous determination number calculation unit 108, and re-learning time determination unit 109 are included. Further, the image 201 and the training data 202 are stored in the storage unit 20.

画像取得部101は、情報処理装置1による判定の対象物を撮影した画像を取得する。本実施形態では、対象物を撮影した画像は、入力部30を介して情報処理装置1に入力されて、記憶部20に画像201として記憶される。このため、画像取得部101は、記憶部20から画像201を取得する。無論、画像取得部101が画像201を取得する方法は特に限定されない。例えば、画像取得部101は、撮像装置を制御して対象物を撮像させ、当該撮像装置から画像201を取得してもよい。 The image acquisition unit 101 acquires an image of an object to be determined by the information processing apparatus 1. In the present embodiment, the image obtained by photographing the object is input to the information processing apparatus 1 via the input unit 30 and stored as the image 201 in the storage unit 20. Therefore, the image acquisition unit 101 acquires the image 201 from the storage unit 20. Of course, the method by which the image acquisition unit 101 acquires the image 201 is not particularly limited. For example, the image acquisition unit 101 may control the image pickup device to image an object and acquire the image 201 from the image pickup device.

分類部102は、上記対象物を複数の所定の分類カテゴリの何れかに分類する。この分類は、画像と該画像に写る対象物の分類カテゴリとの対応関係を機械学習した結果に基づいて行われる。分類部102として適用可能なアルゴリズムは特に限定されないが、高い判定精度が望まれる場合、ニューラルネットワーク等の機械学習アルゴリズムを利用することが好ましく、特に深層学習したニューラルネットワーク(例えばResNet:Residual Network等)により判定を行うものとすることがより好ましい。本実施形態では分類部102が、対象物を撮影した画像を入力データとして、所定の複数の分類カテゴリのそれぞれのスコアを出力するResNetである例を説明する。このスコアは、画像に写る対象物が各分類カテゴリに該当する確度(確からしさ)を示す数値であり、スコアが最も高い分類カテゴリが、対象物の分類カテゴリとして最も確からしいということになる。したがって、スコアが最も高い分類カテゴリが分類部102の分類結果ということになる。 The classification unit 102 classifies the object into any of a plurality of predetermined classification categories. This classification is performed based on the result of machine learning of the correspondence between the image and the classification category of the object appearing in the image. The algorithm applicable to the classification unit 102 is not particularly limited, but when high determination accuracy is desired, it is preferable to use a machine learning algorithm such as a neural network, and in particular, a deep-learned neural network (for example, ResNet: Residual Network or the like). It is more preferable that the determination is made by. In the present embodiment, an example will be described in which the classification unit 102 is a ResNet that outputs the scores of each of a plurality of predetermined classification categories by using an image of an object as input data. This score is a numerical value indicating the certainty (probability) that the object shown in the image corresponds to each classification category, and the classification category with the highest score is the most probable as the classification category of the object. Therefore, the classification category with the highest score is the classification result of the classification unit 102.

分類成否判定部103は、分類部102の分類結果が所定の評価基準を満たしているか否かを判定する。具体的には、分類成否判定部103は、分類部102が出力するスコアと閾値とを比較することで評価基準を満たしているか否かを判定する。そして、分類成否判定部103は、分類部102が各分類カテゴリについて出力したスコアの何れもが評価基準を満たしていなければ分類部102の分類は失敗と判定し、評価基準を満たしているスコアがあれば分類成功と判定する。 The classification success / failure determination unit 103 determines whether or not the classification result of the classification unit 102 satisfies a predetermined evaluation criterion. Specifically, the classification success / failure determination unit 103 determines whether or not the evaluation criteria are satisfied by comparing the score output by the classification unit 102 with the threshold value. Then, the classification success / failure determination unit 103 determines that the classification of the classification unit 102 fails if none of the scores output by the classification unit 102 for each classification category satisfy the evaluation criteria, and the score satisfying the evaluation criteria is If there is, it is judged that the classification is successful.

正否判定部104は、対象物が所定の分類カテゴリに属するか否かを判定する。具体的には、正否判定部104は、分類部102の分類結果と、画像201に本来写っているべき対象物の分類カテゴリを示す情報を照合して、画像201に写る対象物の正否を判定する。例えば、製品Aの製造ラインで製造された製品を撮影した画像201に基づく正否判定を行う場合、正否判定部104は、画像201に写る製品が製品Aに分類されていれば正しい製品であると判定し、他の製品に分類されていれば誤った製品であると判定する。 The correctness determination unit 104 determines whether or not the object belongs to a predetermined classification category. Specifically, the correctness determination unit 104 collates the classification result of the classification unit 102 with the information indicating the classification category of the object that should be originally shown in the image 201, and determines the correctness of the object shown in the image 201. do. For example, when performing a correctness determination based on an image 201 obtained by photographing a product manufactured on the production line of the product A, the correctness determination unit 104 determines that the product shown in the image 201 is a correct product if it is classified as the product A. Judgment is made, and if it is classified into another product, it is judged to be an erroneous product.

判定結果管理部105は、分類部102の分類結果を所定のパターンに区分して管理する。詳細は後述するが、分類部102による分類済みの対象物について行われた目視判定において、(1)対象物の所定の分類への属否、および(2)分類部102による分類結果の正否が判定される。判定結果管理部105は、目視判定結果における上記(1)(2)の組み合わせに応じて、分類部102の分類結果を所定のパターンに区分する。 The determination result management unit 105 divides the classification results of the classification unit 102 into predetermined patterns and manages them. Although the details will be described later, in the visual determination performed on the classified object by the classification unit 102, (1) whether or not the object belongs to a predetermined classification and (2) whether or not the classification result by the classification unit 102 is correct or not are determined. It is judged. The determination result management unit 105 classifies the classification results of the classification unit 102 into predetermined patterns according to the combination of the above (1) and (2) in the visual determination result.

目視判定部106は、目視検査端末2に画像201を表示させて、目視検査員による目視判定を行わせ、その目視判定結果を、目視検査端末2を介して取得する。詳細は後述するが、目視判定部106は、目視により、(1)対象物の所定の分類への属否、および(2)分類部102の分類結果の正否、が判定された結果である目視判定結果を取得する。上述のようにこれらの目視判定結果は、判定結果管理部105による上記区分に用いられる。 The visual determination unit 106 causes the visual inspection terminal 2 to display the image 201, causes the visual inspector to make a visual determination, and acquires the visual determination result via the visual inspection terminal 2. Although the details will be described later, the visual determination unit 106 is the result of visually determining (1) whether or not the object belongs to a predetermined classification and (2) whether or not the classification result of the classification unit 102 is correct or not. Acquire the judgment result. As described above, these visual determination results are used for the above classification by the determination result management unit 105.

訓練データ生成部107は、画像201に対して、その画像201に写る対象物の分類カテゴリを正解データとして対応付けて、分類部102の機械学習に用いる訓練データを生成する。詳細は後述するが、訓練データ生成部107は、判定結果管理部105による上記区分に応じて、画像201に応じた適切な正解データを用いることにより、自動で正しい訓練データを生成することができる。 The training data generation unit 107 associates the classification category of the object reflected in the image 201 with the image 201 as correct answer data, and generates training data to be used for machine learning of the classification unit 102. Although the details will be described later, the training data generation unit 107 can automatically generate correct training data by using appropriate correct answer data according to the image 201 according to the above classification by the determination result management unit 105. ..

誤判定数算出部108は、正否判定部104により所定の分類に属すると判定されたが、実際には対象物は所定の分類に属しておらず、分類部102が所定の分類に属すると誤分類した回数(誤判定数)を算出する。なお、誤判定数算出部108については、実施形態2で説明する。誤判定数の算出が不要であれば、誤判定数算出部108は省略してもよい。 The erroneous determination number calculation unit 108 is determined by the correctness determination unit 104 to belong to a predetermined classification, but the object does not actually belong to the predetermined classification, and the classification unit 102 is erroneously classified as belonging to the predetermined classification. Calculate the number of times (number of erroneous judgments). The erroneous determination number calculation unit 108 will be described in the second embodiment. If it is not necessary to calculate the number of erroneous determinations, the erroneous determination number calculation unit 108 may be omitted.

再学習時期決定部109は、分類部102の再学習を行う時期を決定する。なお、再学習時期決定部109については、実施形態3で説明する。再学習時期の決定が不要であれば、再学習時期決定部109は省略してもよい。 The re-learning time determination unit 109 determines the time for re-learning of the classification unit 102. The re-learning time determination unit 109 will be described in the third embodiment. If it is not necessary to determine the re-learning time, the re-learning time determination unit 109 may be omitted.

画像201は、上述のとおり、判定の対象物を撮影した画像であり、訓練データ202は、分類部102の機械学習に用いる訓練データである。情報処理装置1の判定の対象となった画像201から訓練データ生成部107が訓練データを生成し、その訓練データは訓練データ202として記憶され、分類部102の再学習に用いられる。なお、訓練データ202には、訓練データ生成部107が生成していない訓練データ(例えば訓練データ生成部107が生成した訓練データを加工した訓練データや、ユーザが手作業で作成した訓練データなど)が含まれていてもよい。 As described above, the image 201 is an image of an object to be determined, and the training data 202 is training data used for machine learning of the classification unit 102. The training data generation unit 107 generates training data from the image 201 that is the target of the determination of the information processing apparatus 1, and the training data is stored as the training data 202 and used for re-learning of the classification unit 102. The training data 202 includes training data not generated by the training data generation unit 107 (for example, training data obtained by processing the training data generated by the training data generation unit 107, training data manually created by the user, or the like). May be included.

なお、上述した情報処理装置1の構成要素のうち、少なくとも分類部102と正否判定部104により、画像中の対象物を分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムが構築されている。これらの構成要素は情報処理装置1とは別の装置に設けられていてもよい。この場合、判定結果管理部105は、分類部102の分類結果と正否判定部104の判定結果を取得して上述の区分を行う。 Among the components of the information processing apparatus 1 described above, at least the classification unit 102 and the correctness determination unit 104 classify the object in the image to determine whether or not the object belongs to a predetermined classification. A judgment system has been constructed. These components may be provided in a device different from the information processing device 1. In this case, the determination result management unit 105 acquires the classification result of the classification unit 102 and the determination result of the correctness determination unit 104, and performs the above-mentioned classification.

〔情報処理システムの用途一例〕
情報処理システム500の用途(判定対象)は特に限定されないが、例えば食品生産工場の品質管理に利用することができる。これについて図3に基づいて説明する。図3は、食品生産工場において生産された食品を情報処理システム500の判定対象物として撮影した例を示す図である。
[Example of application of information processing system]
The use (determination target) of the information processing system 500 is not particularly limited, but it can be used, for example, for quality control of a food production factory. This will be described with reference to FIG. FIG. 3 is a diagram showing an example in which a food product produced in a food production factory is photographed as a determination target of the information processing system 500.

図3の(a)には、食品の生産ライン600の一部を示している。生産ライン600には、食品601を同図の白抜き矢印の方向に搬送する搬送部602が含まれている。また、搬送部602には、搬送部602の上方に撮像装置603を保持する撮像台604が設けられている。これにより、搬送部602にて搬送されている食品601を真上から撮影することができる。 FIG. 3A shows a part of the food production line 600. The production line 600 includes a transport unit 602 that transports the food 601 in the direction of the white arrow in the figure. Further, the transport unit 602 is provided with an image pickup table 604 that holds the image pickup device 603 above the transport unit 602. As a result, the food 601 transported by the transport unit 602 can be photographed from directly above.

図3の(b)には、同図の(a)の撮像装置603で撮影された画像201の例を示している。この画像201には、パック詰めされた食肉である食品601が写っている。また、画像201には、食品601のパックに貼られたラベル6011と値札シール6012も写っている。 FIG. 3B shows an example of an image 201 taken by the image pickup apparatus 603 of FIG. 3A. This image 201 shows food 601 which is packed meat. Image 201 also shows the label 6011 and the price tag sticker 6012 affixed to the pack of food 601.

情報処理システム500により、生産ライン600上の食品601の分類カテゴリ(豚肉であるか牛肉であるか、焼き肉用であるか、こま切れであるか等)を判定することにより、生産ライン600にて正しい食品601が搬送されているかを確認することができる。食品生産工場の品質管理には高い精度が求められるため、極めて信頼性の高い判定結果を出力する情報処理システム500の適用が好適である。 The information processing system 500 determines the classification category of food 601 on the production line 600 (whether it is pork or beef, for roasted meat, chopped meat, etc.) on the production line 600. It is possible to confirm that the correct food 601 is being transported. Since high accuracy is required for quality control in food production factories, it is preferable to apply the information processing system 500 that outputs extremely reliable determination results.

〔判定結果のパターン〕
情報処理装置1の判定結果は、5つのパターンに区分できる。そして、判定結果管理部105は、情報処理装置1の判定結果が何れのパターンに該当するかを判定する。これについて、図4に基づいて説明する。図4は、情報処理装置1の判定結果のパターン区分を示す図である。なお、ここでは、情報処理装置1が、工場で製造された製品が正しい製品(製造すべき製品)であるか、正しくない製品(製造すべき製品とは異なる製品)であるかを判定する例を想定している。
[Judgment result pattern]
The determination result of the information processing apparatus 1 can be classified into five patterns. Then, the determination result management unit 105 determines which pattern the determination result of the information processing apparatus 1 corresponds to. This will be described with reference to FIG. FIG. 4 is a diagram showing pattern classification of the determination result of the information processing apparatus 1. Here, an example in which the information processing apparatus 1 determines whether the product manufactured at the factory is a correct product (a product to be manufactured) or an incorrect product (a product different from the product to be manufactured). Is assumed.

図4の例では、正しい製品の製品IDが「ID_A」である。工場では、「ID_A」の製品を製造することになっているが、異なる製品が誤って製造されることがある。誤って製造された製品の製品IDを「ID_B」としている。分類部102は、製造された製品の画像から、その製品の分類カテゴリ(製品ID)を判定する。そして、正否判定部104は、分類部102の分類結果が「ID_A」であればその製品が正しいと判定し、分類部102の分類結果が「ID_A」以外であればその製品は誤っていると判定する。 In the example of FIG. 4, the product ID of the correct product is "ID_A". The factory is supposed to manufacture products with "ID_A", but different products may be manufactured by mistake. The product ID of the product manufactured by mistake is "ID_B". The classification unit 102 determines the classification category (product ID) of the manufactured product from the image of the manufactured product. Then, the correctness determination unit 104 determines that the product is correct if the classification result of the classification unit 102 is "ID_A", and that the product is incorrect if the classification result of the classification unit 102 is other than "ID_A". judge.

したがって、図4の(a)の1行目のレコードに示すように、「ID_A」の製品が製造され、かつ分類部102の分類結果も「ID_A」の製品であれば、正しい製品が製造され、分類部102は正しく分類できたということになる。図4では、このパターンの名称を「T_OK」としている。「T_OK」のパターンでは、分類部102の分類結果が「ID_A」であるから、正否判定部104はその製品を正しいと判定する。 Therefore, as shown in the record in the first row of FIG. 4A, if the product of "ID_A" is manufactured and the classification result of the classification unit 102 is also the product of "ID_A", the correct product is manufactured. , It means that the classification unit 102 was able to classify correctly. In FIG. 4, the name of this pattern is "T_OK". In the pattern of "T_OK", since the classification result of the classification unit 102 is "ID_A", the correctness determination unit 104 determines that the product is correct.

一方、図4の(a)の2行目のレコードに示すように、「ID_B」の製品が製造され、かつ分類部102の分類結果も「ID_B」の製品であれば、誤った製品が製造されたが、分類部102は正しく分類できたということになる。図4では、このパターンの名称を「T_NG」としている。「T_NG」のパターンでは、分類部102の分類結果が「ID_B」であるから、正否判定部104はその製品を誤りであると判定する。 On the other hand, as shown in the record in the second row of FIG. 4A, if the product of "ID_B" is manufactured and the classification result of the classification unit 102 is also the product of "ID_B", an erroneous product is manufactured. However, it means that the classification unit 102 was able to classify correctly. In FIG. 4, the name of this pattern is "T_NG". In the pattern of "T_NG", since the classification result of the classification unit 102 is "ID_B", the correctness / rejection determination unit 104 determines that the product is incorrect.

ここで、図4の(a)の3行目のレコードに示すように、「ID_B」の製品が製造された場合に、分類部102の分類結果が「ID_A」の製品となることもあり得る。この場合、誤った製品が製造され、分類部102の分類も誤りであったが、分類結果が正しい製品と一致したことになる。図4では、このパターンの名称を「F_OK」としている。「F_OK」のパターンでは、分類部102の分類結果が「ID_A」であるから、正否判定部104はその製品を正しいと判定するが、実際には正しい製品は製造されていない。つまり、正否判定部104の判定結果は誤判定ということになる。 Here, as shown in the record on the third row of FIG. 4A, when the product of "ID_B" is manufactured, the classification result of the classification unit 102 may be the product of "ID_A". .. In this case, an erroneous product was manufactured, and the classification of the classification unit 102 was also erroneous, but the classification result matched the correct product. In FIG. 4, the name of this pattern is "F_OK". In the pattern of "F_OK", since the classification result of the classification unit 102 is "ID_A", the correctness / rejection determination unit 104 determines that the product is correct, but the correct product is not actually manufactured. That is, the determination result of the correctness determination unit 104 is an erroneous determination.

また、図4の(a)の4行目のレコードに示すように、「ID_A」の製品が製造され、かつ分類部102の分類結果が「ID_B」の製品であれば、正しい製品が製造されたが、分類部102の分類が誤りであったということになる。図4では、このパターンの名称を「F_NG1」としている。「F_NG1」のパターンでは、分類部102の分類結果が「ID_B」であるから、正否判定部104はその製品を誤りであると判定する。この場合、目視判定が行われるので、目視判定により正しい製品が製造されたことが確認される。 Further, as shown in the record on the fourth row of FIG. 4A, if the product of "ID_A" is manufactured and the classification result of the classification unit 102 is "ID_B", the correct product is manufactured. However, it means that the classification of the classification unit 102 was incorrect. In FIG. 4, the name of this pattern is "F_NG1". In the pattern of "F_NG1", since the classification result of the classification unit 102 is "ID_B", the correctness determination unit 104 determines that the product is incorrect. In this case, since the visual judgment is performed, it is confirmed by the visual judgment that the correct product is manufactured.

また、図4の(a)の5行目のレコードに示すように、「ID_B」の製品が製造され、かつ分類部102の分類結果が「ID_C」(「ID_A」以外)の製品であれば、誤った製品が製造され、分類部102の分類も誤りであり、分類結果は正しい製品と不一致となる。図4では、このパターンの名称を「F_NG2」としている。「F_NG2」のパターンでは、分類部102の分類結果が「ID_C」であるから、正否判定部104はその製品を誤りであると判定する。この場合、目視判定が行われるので、目視判定により誤った製品が製造されたことが確認される。 Further, as shown in the record on the fifth row of FIG. 4A, if the product of "ID_B" is manufactured and the classification result of the classification unit 102 is "ID_C" (other than "ID_A"). , The wrong product is manufactured, the classification of the classification unit 102 is also wrong, and the classification result does not match the correct product. In FIG. 4, the name of this pattern is "F_NG2". In the pattern of "F_NG2", since the classification result of the classification unit 102 is "ID_C", the correctness / rejection determination unit 104 determines that the product is incorrect. In this case, since the visual judgment is performed, it is confirmed by the visual judgment that an erroneous product is manufactured.

判定結果管理部105は、目視判定結果を利用して、分類部102の分類結果、あるいは当該分類に用いられた画像201を、上述のようなパターンに区分して管理する。具体的には、図4の(b)に示すように、目視判定では、正しい製品が製造されているか、および分類部102により正しい分類がなされているか、について目視検査員に判定させる。 The determination result management unit 105 manages the classification result of the classification unit 102 or the image 201 used for the classification by using the visual determination result by classifying them into the pattern as described above. Specifically, as shown in FIG. 4B, in the visual determination, a visual inspector is made to determine whether the correct product is manufactured and whether the classification unit 102 correctly classifies the product.

具体的には、目視判定により、正しい製品が製造され、分類部102の分類も正しいと判定された場合には、「T_OK」のパターンに該当する。また、目視判定により、正しい製品が製造されたが、分類部102の分類は誤りであったと判定された場合には、「F_NG1」のパターンに該当する。また、目視判定により、誤った製品が製造されたが、分類部102の分類は正しかったと判定された場合には「T_NG」のパターンに該当する。そして、目視判定により、誤った製品が製造され、分類部102の分類も誤りであったと判定された場合には「F_NG2」または「F_OK」のパターンに該当する。 Specifically, when the correct product is manufactured by the visual determination and the classification of the classification unit 102 is also determined to be correct, it corresponds to the pattern of "T_OK". Further, when it is determined by visual determination that the correct product is manufactured but the classification of the classification unit 102 is incorrect, it corresponds to the pattern of "F_NG1". Further, when it is determined by visual determination that an erroneous product is manufactured, but the classification of the classification unit 102 is correct, it corresponds to the pattern of "T_NG". Then, when it is determined by visual determination that an erroneous product is manufactured and the classification of the classification unit 102 is also erroneous, it corresponds to the pattern of "F_NG2" or "F_OK".

このように、判定結果管理部105は、目視判定結果を利用することにより、分類部102の分類結果、あるいは当該分類に用いられた画像201を、上述のようなパターンに区分して管理することができる。また、目視判定において、目視検査員は、正しい製品が製造されているか、および正しい分類がなされているかの2点について確認すればよいので、目視判定に係る負荷を最小限に抑えることができ、これにより迅速な目視判定が実現できる。 In this way, the determination result management unit 105 manages the classification result of the classification unit 102 or the image 201 used for the classification by using the visual determination result by classifying them into the pattern as described above. Can be done. Further, in the visual judgment, the visual inspector only needs to confirm two points, that is, whether the correct product is manufactured and whether the correct classification is made, so that the load related to the visual judgment can be minimized. As a result, quick visual determination can be realized.

〔目視判定におけるUI画面例〕
目視判定におけるUI(User Interface)画面例について図5に基づいて説明する。図5は、目視判定におけるUI画面例を示す図である。同図の(a)の画面例では、正しい製品の画像と、撮影された画像が表示されている。また、この画面例では、質問1として、上記2つの画像に写る製品が一致しているかを問う質問文と、その回答の選択肢(YES/NO)が表示されている。
[UI screen example in visual judgment]
An example of a UI (User Interface) screen in visual determination will be described with reference to FIG. FIG. 5 is a diagram showing an example of a UI screen in visual determination. In the screen example of (a) in the figure, the correct product image and the captured image are displayed. Further, in this screen example, as question 1, a question sentence asking whether the products shown in the above two images match, and the answer options (YES / NO) are displayed.

このような画面を目視検査端末2が表示した場合、目視検査員は、画面上の画像を見比べて、YESまたはNOの何れかを目視検査端末2に入力することができる。また、目視検査端末2は、目視検査員の入力内容を情報処理装置1に通知し、これにより情報処理装置1の判定結果管理部105は正しい製品が製造されたか否かを特定することができる。 When the visual inspection terminal 2 displays such a screen, the visual inspector can compare the images on the screen and input either YES or NO to the visual inspection terminal 2. Further, the visual inspection terminal 2 notifies the information processing apparatus 1 of the input contents of the visual inspector, whereby the determination result management unit 105 of the information processing apparatus 1 can specify whether or not the correct product is manufactured. ..

また、図5の(b)の画面例では、撮影された画像と、分類部102の分類結果が表示されている。また、この画面例では、質問2として、分類結果が正しいかを問う質問文と、その回答の選択肢(YES/NO)が表示されている。 Further, in the screen example of FIG. 5B, the captured image and the classification result of the classification unit 102 are displayed. Further, in this screen example, as question 2, a question sentence asking whether the classification result is correct and an answer option (YES / NO) are displayed.

このような画面を目視検査端末2が表示した場合、目視検査員は、画面上の画像と分類結果を見比べて、YESまたはNOの何れかを目視検査端末2に入力することができる。そして、目視検査端末2は、目視検査員の入力内容を情報処理装置1に通知し、これにより情報処理装置1の判定結果管理部105は分類結果の正否を特定することができる。 When such a screen is displayed by the visual inspection terminal 2, the visual inspector can compare the image on the screen with the classification result and input either YES or NO to the visual inspection terminal 2. Then, the visual inspection terminal 2 notifies the information processing apparatus 1 of the input contents of the visual inspector, whereby the determination result management unit 105 of the information processing apparatus 1 can specify the correctness of the classification result.

したがって、図5の(a)(b)のようなUI画面を目視検査端末2に順次表示させることにより、判定結果管理部105は、正しい製品が製造されたか否か、および分類結果の正否を特定することができる。これにより、判定結果管理部105は、図4の(b)に示したように、正しい製品が製造されたか否かと、分類の正否の組み合わせから、パターンを判定することができる。 Therefore, by sequentially displaying the UI screens as shown in FIGS. 5A and 5 on the visual inspection terminal 2, the determination result management unit 105 determines whether or not the correct product is manufactured and whether or not the classification result is correct or not. Can be identified. As a result, as shown in FIG. 4B, the determination result management unit 105 can determine the pattern from the combination of whether or not the correct product is manufactured and whether or not the classification is correct or not.

〔他のパターンについて〕
画像201に写る製品が、分類部102がその分類カテゴリを学習していない製品である場合等には、分類部102による分類を行うことができないため、目視判定が必要になる。そして、目視判定結果に基づくパターンの区分は、分類部102による分類ができていないことにより、図4の例よりも単純なものとなる。これについて、図6に基づいて説明する。図6は、分類部102による分類を行うことができなかった場合の判定結果のパターン区分を示す図である。
[About other patterns]
When the product shown in the image 201 is a product for which the classification unit 102 has not learned the classification category, the classification by the classification unit 102 cannot be performed, so that a visual determination is required. Then, the classification of the pattern based on the visual determination result is simpler than the example of FIG. 4 because the classification by the classification unit 102 has not been completed. This will be described with reference to FIG. FIG. 6 is a diagram showing a pattern classification of a determination result when the classification by the classification unit 102 could not be performed.

図6の(a)に示すように、分類部102による分類を行うことができなかった場合には、製造された製品が正しい製品であるパターン「OK」と、製造された製品が誤った製品であるパターン「NG」の2通りのパターンが存在する。 As shown in FIG. 6A, when the classification by the classification unit 102 cannot be performed, the pattern "OK" that the manufactured product is the correct product and the manufactured product is the wrong product. There are two patterns of the pattern "NG".

この場合、同図の(b)に示すように、目視判定においては、正しい製品が製造されているか否かが判定される。この目視判定では、例えば図5の(a)のようなUI画面を表示してもよい。正しい製品が製造されていればパターン「OK」となり、製造された製品が誤った製品であればパターン「NG」となる。 In this case, as shown in (b) of the figure, in the visual determination, it is determined whether or not the correct product is manufactured. In this visual determination, for example, a UI screen as shown in FIG. 5A may be displayed. If the correct product is manufactured, the pattern is "OK", and if the manufactured product is incorrect, the pattern is "NG".

〔処理の流れ(製品の正否判定とパターン区分)〕
情報処理装置1が実行する処理の流れを図7に基づいて説明する。図7は、情報処理装置1が実行する処理(情報処理方法)の一例を示すフローチャートである。なお、以下では、情報処理装置1が、製造された製品(具体的には図3の食品601)が正しいか否かの判定を行う例を説明する。
[Processing flow (product correctness judgment and pattern classification)]
The flow of processing executed by the information processing apparatus 1 will be described with reference to FIG. 7. FIG. 7 is a flowchart showing an example of a process (information processing method) executed by the information processing apparatus 1. In the following, an example in which the information processing apparatus 1 determines whether or not the manufactured product (specifically, the food product 601 in FIG. 3) is correct will be described.

S1では、画像取得部101が、記憶部20に記憶されている画像201を取得する。この画像201は、例えば撮像装置603で撮影した食品601の画像であってもよい(図3参照)。また、正否判定部104は、画像201に写る製品の製品IDを取得する。なお、図3のような生産ライン600では、所定の食品601を製造し、搬送するので、搬送されている食品601の製品IDを取得することができる。ただし、本来製造すべきではない食品601が誤って製造されて生産ライン600に乗ることがあり得るので、情報処理装置1による判定を行って、誤って生産ライン600に乗った食品601を検出する。 In S1, the image acquisition unit 101 acquires the image 201 stored in the storage unit 20. The image 201 may be, for example, an image of the food 601 taken by the image pickup apparatus 603 (see FIG. 3). Further, the correctness determination unit 104 acquires the product ID of the product shown in the image 201. In the production line 600 as shown in FIG. 3, since the predetermined food 601 is manufactured and transported, the product ID of the transported food 601 can be obtained. However, since it is possible that the food 601 that should not be originally produced is erroneously manufactured and enters the production line 600, the information processing apparatus 1 makes a determination and erroneously detects the food 601 that has entered the production line 600. ..

S2では、分類部102が、S1で取得された画像201に写っている製品を分類する。具体的には、分類部102は、予め設定された複数の分類カテゴリ(それぞれが異なる製品IDに対応)のそれぞれについて、当該分類カテゴリに該当する確度を示すスコアを算出する。なお、この判定における演算処理は、処理負荷が大きくなる場合がある。このため、分類部102は、この演算処理を外部のサーバに行わせて、演算結果であるスコアを当該サーバから取得してもよい。 In S2, the classification unit 102 classifies the products shown in the image 201 acquired in S1. Specifically, the classification unit 102 calculates a score indicating the certainty corresponding to the classification category for each of the plurality of preset classification categories (each corresponding to a different product ID). The arithmetic processing in this determination may increase the processing load. Therefore, the classification unit 102 may cause an external server to perform this calculation process and acquire the score as the calculation result from the server.

S3では、分類成否判定部103は、S2の判定結果に閾値以上のスコアが含まれているか否かを判定する。分類成否判定部103は、含まれていると判定した場合(S3でYES)、スコアが閾値を超えた分類カテゴリを正否判定部104に通知し、処理はS4に進む。一方、分類成否判定部103は、閾値以上のスコアが含まれていないと判定した場合(S3でNO)、判定結果を不明とし、S1で取得された画像201を目視判定部106に送信し、処理はS12に進む。なお、分類成否判定部103は、不明との判定結果を、出力部50等を介して出力してもよいし、その判定結果を端末装置3に通知して出力させてもよい。 In S3, the classification success / failure determination unit 103 determines whether or not the determination result of S2 includes a score equal to or greater than the threshold value. When the classification success / failure determination unit 103 determines that the category is included (YES in S3), the classification success / failure determination unit 103 is notified of the classification category whose score exceeds the threshold value, and the process proceeds to S4. On the other hand, when the classification success / failure determination unit 103 determines that the score equal to or higher than the threshold value is not included (NO in S3), the determination result is unknown, and the image 201 acquired in S1 is transmitted to the visual determination unit 106. The process proceeds to S12. The classification success / failure determination unit 103 may output the determination result of unknown via the output unit 50 or the like, or may notify the terminal device 3 of the determination result and output the determination result.

S4では、正否判定部104が、分類結果と製品IDが一致するか否かを判定する。具体的には、正否判定部104は、分類成否判定部103から通知された分類カテゴリと、S1で取得した製品IDの示す製品の分類カテゴリとが一致するか否かを判定する。また、正否判定部104は、判定結果を出力部50に出力させてもよいし、その判定結果を端末装置3に通知して出力させてもよい。ここで正否判定部104が一致すると判定した場合(S4でYES)には処理はS5に進む。一方、正否判定部104が一致しないと判定した場合(S4でNO)には処理はS6に進む。 In S4, the correctness / rejection determination unit 104 determines whether or not the classification result and the product ID match. Specifically, the correctness / rejection determination unit 104 determines whether or not the classification category notified from the classification success / failure determination unit 103 and the product classification category indicated by the product ID acquired in S1 match. Further, the correctness / rejection determination unit 104 may output the determination result to the output unit 50, or may notify the terminal device 3 of the determination result and output the determination result. If it is determined that the correctness / rejection determination unit 104 matches (YES in S4), the process proceeds to S5. On the other hand, when it is determined that the correctness / rejection determination unit 104 does not match (NO in S4), the process proceeds to S6.

なお、判定結果の出力の態様は任意である。例えば、製品の正否を示す画像を表示させてもよい。また、分類カテゴリのスコアを表示してもよい。また、表示以外の態様で出力を行ってもよい。例えば製品が誤りである場合には端末装置3にブザー等の音を出力させることにより、誤って生産ライン600に乗った食品601があることを報知してもよい。また、例えば生産ライン600に搬送中の食品601の搬送経路を分岐させる機構が設けられている場合には、端末装置3は、その機構を制御して、誤りであると判定された食品601を生産ライン600から除外してもよい。 The mode of output of the determination result is arbitrary. For example, an image showing the correctness of the product may be displayed. In addition, the score of the classification category may be displayed. Further, the output may be performed in a mode other than the display. For example, when the product is erroneous, the terminal device 3 may output a sound such as a buzzer to notify that there is food 601 erroneously on the production line 600. Further, for example, when the production line 600 is provided with a mechanism for branching the transport path of the food 601 being transported, the terminal device 3 controls the mechanism to obtain the food 601 determined to be erroneous. It may be excluded from the production line 600.

S5では、判定結果管理部105が、区分は「T_OK」であると判定する。そして、判定結果管理部105は、この判定結果をS1で取得された画像201と対応付けて記憶しておく。例えば、判定結果管理部105は、S1で取得された画像201の識別情報(ID)と判定結果とを対応付けて記憶してもよいし、画像201の付加情報として、例えば画像201のヘッダ等に判定結果を記憶してもよい。S5の処理の終了により、情報処理システム500の処理は終了する。 In S5, the determination result management unit 105 determines that the classification is "T_OK". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1. For example, the determination result management unit 105 may store the identification information (ID) of the image 201 acquired in S1 in association with the determination result, and may store the additional information of the image 201, for example, the header of the image 201 or the like. The determination result may be stored in. When the processing of S5 is completed, the processing of the information processing system 500 is completed.

S6(目視判定結果取得ステップ)では、目視判定部106が目視判定を行う。具体的には、目視判定部106は、S1で取得された画像201を目視検査端末2に送信すると共に、S1で取得された製品IDとS2の分類結果を目視検査端末2に通知する。そして、目視判定部106は、目視検査端末2から目視検査員による目視判定の結果を取得し、その結果を判定結果管理部105に通知する。そして、判定結果管理部105は、取得した目視判定結果に基づいて、以下説明するS7~S11の処理(区分ステップ)により、S2の分類結果を区分する。 In S6 (visual determination result acquisition step), the visual determination unit 106 makes a visual determination. Specifically, the visual determination unit 106 transmits the image 201 acquired in S1 to the visual inspection terminal 2, and notifies the visual inspection terminal 2 of the product ID acquired in S1 and the classification result of S2. Then, the visual determination unit 106 acquires the result of the visual determination by the visual inspector from the visual inspection terminal 2, and notifies the determination result management unit 105 of the result. Then, the determination result management unit 105 classifies the classification result of S2 by the processing (classification step) of S7 to S11 described below based on the acquired visual determination result.

なお、目視判定において、目視検査端末2は、例えば図5に示したような画面を表示させて目視判定結果の入力を受け付けてもよい。また、このような画面は、目視検査端末2が生成する構成としてもよいし、目視判定部106が生成して目視検査端末2に送信する構成としてもよい。 In the visual determination, the visual inspection terminal 2 may display a screen as shown in FIG. 5, for example, and accept the input of the visual determination result. Further, such a screen may be configured to be generated by the visual inspection terminal 2 or may be generated by the visual determination unit 106 and transmitted to the visual inspection terminal 2.

S7では、判定結果管理部105が、分類は正しいが製品が誤りであるか否かを判定する。ここで分類は正しいが製品が誤りであると判定された場合(S7でYES)にはS8に進む。一方、製品が正しいと判定されるか、または分類が誤りであると判定された場合(S7でNO)にはS9に進む。なお、製品が正しいとは、画像201に写る製品が正しい製品(S1で取得した製品IDの製品)であることを意味する。また、分類が正しいとは、分類部102が正しく分類している(S1で取得した画像に写る製品が、S3で閾値以上となったスコアの分類カテゴリに属する)ことを意味する。つまり、判定結果管理部105は、S6の目視判定における質問1(図5の(a)参照)の回答がNOであり、かつ、質問2(図5の(b)参照)の回答がYESであれば、S7でYESと判定する。一方、質問1の回答がYESであるか、質問2の回答がNOであれば、判定結果管理部105はS7でNOと判定する。 In S7, the determination result management unit 105 determines whether or not the classification is correct but the product is incorrect. If the classification is correct but the product is determined to be incorrect (YES in S7), the process proceeds to S8. On the other hand, if it is determined that the product is correct or the classification is incorrect (NO in S7), the process proceeds to S9. The fact that the product is correct means that the product shown in the image 201 is the correct product (the product with the product ID acquired in S1). Further, the correct classification means that the classification unit 102 correctly classifies (the product shown in the image acquired in S1 belongs to the classification category of the score that is equal to or higher than the threshold value in S3). That is, in the determination result management unit 105, the answer to question 1 (see (a) in FIG. 5) in the visual determination in S6 is NO, and the answer to question 2 (see (b) in FIG. 5) is YES. If there is, it is determined as YES in S7. On the other hand, if the answer to question 1 is YES or the answer to question 2 is NO, the determination result management unit 105 determines NO in S7.

S8では、判定結果管理部105が、区分は「T_NG」であると判定する。そして、判定結果管理部105は、この判定結果をS1で取得された画像201と対応付けて記憶しておく。S8の処理の終了により、情報処理システム500の処理は終了する。 In S8, the determination result management unit 105 determines that the classification is "T_NG". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1. When the processing of S8 is completed, the processing of the information processing system 500 is completed.

S9では、判定結果管理部105が、製品は正しいが分類が誤りであるか否かを判定する。ここで製品は正しいが分類が誤りであると判定された場合(S9でYES)にはS10に進む。一方、製品も分類も誤りであると判定された場合(S9でNO)にはS11に進む。具体的には、判定結果管理部105は、S6の目視判定における質問1の回答がYESであり、かつ質問2の回答がNOであればS9でYESと判定し、質問1、2の回答が何れもNOであればS9でNOと判定する。 In S9, the determination result management unit 105 determines whether or not the product is correct but the classification is incorrect. If it is determined that the product is correct but the classification is incorrect (YES in S9), the process proceeds to S10. On the other hand, if it is determined that both the product and the classification are incorrect (NO in S9), the process proceeds to S11. Specifically, if the answer to question 1 in the visual determination of S6 is YES and the answer to question 2 is NO, the determination result management unit 105 determines YES in S9, and the answers to questions 1 and 2 are answered. If both are NO, it is determined as NO in S9.

S10では、判定結果管理部105が、区分は「F_NG1」であると判定する。そして、判定結果管理部105は、この判定結果をS1で取得された画像201と対応付けて記憶しておく。S10の処理の終了により、情報処理システム500の処理は終了する。なお、「F_NG1」のパターンでは、分類が誤りであるために、正否判定部104の判定結果が誤りとなっているが、実際には製造された製品は正しい(図4参照)から、判定結果管理部105は、正否判定の結果を訂正してもよい。例えば、判定結果管理部105は、訂正後の判定結果を端末装置3に通知して出力させることにより、当該製品が良品扱いとなるようにしてもよい。 In S10, the determination result management unit 105 determines that the classification is "F_NG1". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1. When the processing of S10 is completed, the processing of the information processing system 500 is completed. In the pattern of "F_NG1", the judgment result of the correctness judgment unit 104 is wrong because the classification is wrong, but the actually manufactured product is correct (see FIG. 4), so the judgment result. The management unit 105 may correct the result of the correctness determination. For example, the determination result management unit 105 may notify the terminal device 3 of the corrected determination result and output the product so that the product is treated as a non-defective product.

S11では、判定結果管理部105が、区分は「F_NG2」であると判定する。そして、判定結果管理部105は、この判定結果をS1で取得された画像201と対応付けて記憶しておく。S11の処理の終了により、情報処理システム500の処理は終了する。 In S11, the determination result management unit 105 determines that the classification is "F_NG2". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1. When the processing of S11 is completed, the processing of the information processing system 500 is completed.

S12では、S6と同様に、目視判定部106が目視判定を行う。具体的には、目視判定部106は、S1で取得された画像201を目視検査端末2に送信すると共に、S1で取得された製品IDとS2の分類結果(最もスコアが高かった分類カテゴリ)を目視検査端末2に通知する。そして、目視判定部106は、目視検査端末2から目視検査員による目視判定の結果を取得し、その結果を判定結果管理部105に通知する。 In S12, as in S6, the visual determination unit 106 makes a visual determination. Specifically, the visual determination unit 106 transmits the image 201 acquired in S1 to the visual inspection terminal 2, and also transmits the product ID acquired in S1 and the classification result of S2 (the classification category having the highest score). Notify the visual inspection terminal 2. Then, the visual determination unit 106 acquires the result of the visual determination by the visual inspector from the visual inspection terminal 2, and notifies the determination result management unit 105 of the result.

S13では、判定結果管理部105が区分処理を行う。詳細は図8に基づいて後述するが、S13の処理により分類部102の分類結果が複数のパターンに区分され、S12の判定結果とS13の区分とがS1で取得された画像201と対応付けて記憶される。S13の処理の終了により、情報処理システム500の処理は終了する。また、判定結果管理部105は、S12の目視判定の判定結果を出力部50に出力させてもよいし、端末装置3に通知して出力させてもよい。 In S13, the determination result management unit 105 performs the classification process. The details will be described later based on FIG. 8, but the classification result of the classification unit 102 is divided into a plurality of patterns by the processing of S13, and the determination result of S12 and the classification of S13 are associated with the image 201 acquired in S1. It will be remembered. When the processing of S13 is completed, the processing of the information processing system 500 is completed. Further, the determination result management unit 105 may output the determination result of the visual determination of S12 to the output unit 50, or may notify the terminal device 3 to output the determination result.

以上のように、目視判定部106は、分類部102が分類済みの対象物についての目視判定(S6、S12)において、(1)対象物の上記分類カテゴリへの属否、および(2)分類部102の分類結果の正否、が判定された結果である目視判定結果を取得する。そして、判定結果管理部105は、目視判定結果における上記(1)(2)の組み合わせに応じて分類部102の分類結果を区分する(S7~S11、S13)。 As described above, the visual determination unit 106 determines (1) whether or not the object belongs to the above classification category and (2) classification in the visual determination (S6, S12) of the object that has been classified by the classification unit 102. The visual determination result, which is the result of determining whether the classification result of the unit 102 is correct or not, is acquired. Then, the determination result management unit 105 classifies the classification results of the classification unit 102 according to the combination of the above (1) and (2) in the visual determination result (S7 to S11, S13).

これにより、目視判定結果の活用の範囲を広げることができる。例えば、以下説明する訓練データの自動生成、実施形態2で説明するパターン「F_OK」の発生件数の予測値算出、あるいは実施形態3で説明する分類部102の適切な再学習時期の決定などに活用することができる。 This makes it possible to expand the range of utilization of the visual determination result. For example, it is used for automatic generation of training data described below, calculation of a predicted value of the number of occurrences of the pattern "F_OK" described in the second embodiment, or determination of an appropriate re-learning time of the classification unit 102 described in the third embodiment. can do.

〔処理の流れ(区分処理)〕
図7のS13で行われる区分処理の詳細を図8に基づいて説明する。図8は、判定結果区分処理の一例を示すフローチャートである。図8のS131~S137の処理では、図7のS4、S5、S7~S11と同様に、目視判定結果に基づいて分類部102の分類結果が複数のパターンに区分される。
[Processing flow (classification processing)]
The details of the classification process performed in S13 of FIG. 7 will be described with reference to FIG. FIG. 8 is a flowchart showing an example of the determination result classification process. In the processing of S131 to S137 of FIG. 8, the classification result of the classification unit 102 is classified into a plurality of patterns based on the visual determination result, as in the case of S4, S5, S7 to S11 of FIG.

S131では、正否判定部104が、図7のS12の目視判定結果に基づいて、分類と製品の何れもが正しいか否かを判定する。ここで正否判定部104が分類と製品の何れも正しいと判定した場合(S131でYES)には処理はS132に進む。一方、正否判定部104が分類および製品の少なくとも何れかが誤りであると判定した場合(S131でNO)には処理はS133に進む。 In S131, the correctness determination unit 104 determines whether or not both the classification and the product are correct based on the visual determination result in S12 of FIG. 7. If the correctness determination unit 104 determines that both the classification and the product are correct (YES in S131), the process proceeds to S132. On the other hand, when the correctness determination unit 104 determines that at least one of the classification and the product is incorrect (NO in S131), the process proceeds to S133.

S132では、判定結果管理部105が区分は「T_OK」であると判定する。そして、判定結果管理部105は、この判定結果を図7のS1で取得された画像201と対応付けて記憶し、区分処理は終了する。なお、ここで画像201を記憶する際には、図7のS5で「T_OK」に該当するとして記憶された画像201と区別できるように記憶しておくことが好ましい。図7のS5で「T_OK」に該当するとして記憶された画像201には、実際には「F_OK」であるものが含まれている可能性がゼロではないためである。 In S132, the determination result management unit 105 determines that the classification is "T_OK". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1 of FIG. 7, and the classification process ends. When storing the image 201 here, it is preferable to store the image 201 so that it can be distinguished from the image 201 stored as corresponding to "T_OK" in S5 of FIG. 7. This is because there is a possibility that the image 201 stored as corresponding to “T_OK” in S5 of FIG. 7 actually contains “F_OK” is not zero.

S133では、判定結果管理部105が、分類は正しいが製品が誤りであるか否かを判定する。ここで分類は正しいが製品が誤りであると判定された場合(S133でYES)にはS134に進む。一方、製品が正しいと判定されるか、または分類が誤りであると判定された場合(S134でNO)にはS135に進む。 In S133, the determination result management unit 105 determines whether or not the classification is correct but the product is incorrect. If it is determined that the classification is correct but the product is incorrect (YES in S133), the process proceeds to S134. On the other hand, if it is determined that the product is correct or the classification is incorrect (NO in S134), the process proceeds to S135.

S134では、判定結果管理部105が区分は「T_NG」であると判定する。そして、判定結果管理部105は、この判定結果を図7のS1で取得された画像201と対応付けて記憶し、区分処理は終了する。なお、ここで画像201を記憶する際には、図7のS8で「T_NG」に該当するとして記憶された画像201と区別できるように記憶しておくことが好ましい。以下で説明するS136、S137についても同様である。 In S134, the determination result management unit 105 determines that the classification is "T_NG". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1 of FIG. 7, and the classification process ends. When storing the image 201 here, it is preferable to store the image 201 so that it can be distinguished from the image 201 stored as corresponding to "T_NG" in S8 of FIG. 7. The same applies to S136 and S137 described below.

S135では、判定結果管理部105が、製品は正しいが分類が誤りであるか否かを判定する。ここで製品は正しいが分類が誤りであると判定された場合(S135でYES)にはS136に進む。一方、製品も分類も誤りであると判定された場合(S135でNO)にはS137に進む。 In S135, the determination result management unit 105 determines whether or not the product is correct but the classification is incorrect. If it is determined that the product is correct but the classification is incorrect (YES in S135), the process proceeds to S136. On the other hand, if it is determined that both the product and the classification are incorrect (NO in S135), the process proceeds to S137.

S136では、判定結果管理部105が区分は「F_NG1」であると判定する。そして、判定結果管理部105は、この判定結果を図7のS1で取得された画像201と対応付けて記憶し、区分処理は終了する。 In S136, the determination result management unit 105 determines that the category is "F_NG1". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1 of FIG. 7, and the classification process ends.

S137では、判定結果管理部105が区分は「F_NG2」であると判定する。そして、判定結果管理部105は、この判定結果を図7のS1で取得された画像201と対応付けて記憶し、区分処理は終了する。なお、S137において区分が「F_NG2」であると判定されたものの中には、実際には「F_OK」に該当するものも含まれ得る。 In S137, the determination result management unit 105 determines that the classification is "F_NG2". Then, the determination result management unit 105 stores the determination result in association with the image 201 acquired in S1 of FIG. 7, and the classification process ends. In addition, among those determined to be "F_NG2" in S137, those actually corresponding to "F_OK" may be included.

〔処理の流れ(訓練データ生成)〕
本実施形態の情報処理装置1は、上述のパターンの区分に基づいて訓練データを生成する。これについて図9に基づいて説明する。図9は、情報処理装置1がパターンの区分に基づいて訓練データを生成する処理(情報処理方法)の一例を示すフローチャートである。
[Processing flow (training data generation)]
The information processing apparatus 1 of the present embodiment generates training data based on the above-mentioned pattern classification. This will be described with reference to FIG. FIG. 9 is a flowchart showing an example of a process (information processing method) in which the information processing apparatus 1 generates training data based on the pattern classification.

S21では、訓練データ生成部107は、判定結果管理部105によるパターン判定済みの画像201を取得する。そして、S22では、訓練データ生成部107は、S21で取得した画像201のパターンが「T_OK」に該当するか否かを判定する。該当すると判定された場合(S22でYES)にはS23に進み、該当しないと判定された場合(S22でNO)にはS24に進む。 In S21, the training data generation unit 107 acquires the image 201 whose pattern has been determined by the determination result management unit 105. Then, in S22, the training data generation unit 107 determines whether or not the pattern of the image 201 acquired in S21 corresponds to "T_OK". If it is determined to be applicable (YES in S22), the process proceeds to S23, and if it is determined not to be applicable (NO in S22), the process proceeds to S24.

S23では、訓練データ生成部107は、S21で取得した画像201に対し、その画像201に対する分類部102の分類結果を正解データとして対応付けて訓練データとする。そして、訓練データ生成部107は、この訓練データを記憶部20に記憶し、処理を終了する。なお、この処理および後述のS26、S28で記憶されるデータが図1の訓練データ202である。 In S23, the training data generation unit 107 associates the classification result of the classification unit 102 with respect to the image 201 acquired in S21 with the image 201 as training data. Then, the training data generation unit 107 stores this training data in the storage unit 20, and ends the process. The data stored in this process and in S26 and S28 described later is the training data 202 in FIG.

S24では、訓練データ生成部107は、S21で取得した画像201のパターンが「T_NG」に該当するか否かを判定する。該当すると判定された場合(S24でYES)にはS23に進み、上述のようにして訓練データが生成され、記憶される。一方、S24で該当しないと判定された場合(S24でNO)にはS25に進む。 In S24, the training data generation unit 107 determines whether or not the pattern of the image 201 acquired in S21 corresponds to “T_NG”. If it is determined to be applicable (YES in S24), the process proceeds to S23, and training data is generated and stored as described above. On the other hand, if it is determined in S24 that it does not correspond (NO in S24), the process proceeds to S25.

S25では、訓練データ生成部107は、S21で取得した画像201のパターンが「F_NG1」に該当するか否かを判定する。該当すると判定された場合(S25でYES)にはS26に進み、該当しないと判定された場合、すなわち画像201のパターンが「F_NG2」または「F_OK」に該当する場合(S25でNO)にはS27に進む。 In S25, the training data generation unit 107 determines whether or not the pattern of the image 201 acquired in S21 corresponds to "F_NG1". If it is determined to be applicable (YES in S25), the process proceeds to S26, and if it is determined not to be applicable, that is, if the pattern of the image 201 corresponds to "F_NG2" or "F_OK" (NO in S25), S27. Proceed to.

S26では、訓練データ生成部107は、S21で取得した画像201に対し、図7のS1で取得された製品IDに対応する分類カテゴリを正解データとして対応付けて訓練データとする。そして、訓練データ生成部107は、この訓練データを記憶部20に記憶し、処理を終了する。 In S26, the training data generation unit 107 associates the image 201 acquired in S21 with the classification category corresponding to the product ID acquired in S1 of FIG. 7 as correct answer data to obtain training data. Then, the training data generation unit 107 stores this training data in the storage unit 20, and ends the process.

S27では、目視判定部106が目視判定を行う。目視判定部106は、S21で取得された画像201を目視検査端末2に送信して表示させ、この画像201に写る対象物の分類カテゴリを目視検査員に入力させる。そして、目視検査端末2から目視検査員による目視判定の結果を受信し、その結果を訓練データ生成部107に通知する。 In S27, the visual determination unit 106 makes a visual determination. The visual determination unit 106 transmits the image 201 acquired in S21 to the visual inspection terminal 2 to display it, and causes the visual inspector to input the classification category of the object shown in the image 201. Then, the result of the visual determination by the visual inspector is received from the visual inspection terminal 2, and the result is notified to the training data generation unit 107.

S28では、訓練データ生成部107は、S21で取得した画像201に対し、S28の目視判定で入力された分類カテゴリを正解データとして対応付けて訓練データとする。そして、訓練データ生成部107は、この訓練データを記憶部20に記憶し、処理を終了する。 In S28, the training data generation unit 107 associates the image 201 acquired in S21 with the classification category input by the visual determination in S28 as correct answer data and uses it as training data. Then, the training data generation unit 107 stores this training data in the storage unit 20, and ends the process.

以上のように、訓練データ生成部107は、パターン「T_OK」および「T_NG」の何れかに区分された判定に用いられた画像201に対して、分類部102の分類結果を正解データとして対応付けて訓練データとする(S23)。パターン「T_OK」は、正否判定部104が、対象物が正しい(所定の分類に属する)と判定したパターンである。また、パターン「T_NG」は、図4の(b)に示すように、分類部102の分類が正しいとの目視判定がなされたパターンである。よって、この構成によれば適切な訓練データを自動的に生成することができる。なお、パターン「T_OK」に区分された判定に用いられた画像201については、図7のS1で取得された製品IDの製品の分類カテゴリ(所定の分類)を正解データとして対応付けてもよい。 As described above, the training data generation unit 107 associates the classification result of the classification unit 102 with the image 201 used for the determination classified into any of the patterns “T_OK” and “T_NG” as correct answer data. And use it as training data (S23). The pattern "T_OK" is a pattern in which the correctness determination unit 104 determines that the object is correct (belongs to a predetermined classification). Further, the pattern "T_NG" is a pattern in which it is visually determined that the classification of the classification unit 102 is correct, as shown in FIG. 4B. Therefore, according to this configuration, appropriate training data can be automatically generated. For the image 201 used for the determination classified into the pattern "T_OK", the product classification category (predetermined classification) of the product ID acquired in S1 of FIG. 7 may be associated as correct answer data.

また、パターン「T_OK」および「T_NG」は、図7のS5およびS8で判定された区分であってもよいし、図8のS132およびS134で判定された区分であってもよい。特に図7のS5でパターン「T_OK」と区分されたものの中には、実際には「F_OK」であるものが含まれている可能性がゼロではない。このため、「F_OK」ではないことが目視検査によって確認されている、図8のS132で「T_OK」と判定されて記憶された画像201から訓練データを生成することが好ましい。 Further, the patterns "T_OK" and "T_NG" may be the categories determined by S5 and S8 in FIG. 7, or may be the categories determined by S132 and S134 in FIG. In particular, there is a possibility that some of the patterns classified as "T_OK" in S5 of FIG. 7 are actually "F_OK". Therefore, it is preferable to generate training data from the image 201 that is determined to be "T_OK" in S132 of FIG. 8 and stored, which is confirmed by visual inspection to be not "F_OK".

また、図8のS132およびS134の区分判定に基づいて記憶された画像201は、分類部102の分類結果の確度が閾値未満の画像、つまり、分類部102による分類が困難であった画像である。よって、このような画像201から訓練データを生成し、その訓練データを用いて分類部102を再学習させることにより、そのような分類困難な画像についても分類部102で分類できるようにすることができる。 Further, the image 201 stored based on the classification determination of S132 and S134 in FIG. 8 is an image in which the accuracy of the classification result of the classification unit 102 is less than the threshold value, that is, an image that is difficult to be classified by the classification unit 102. .. Therefore, by generating training data from such an image 201 and retraining the classification unit 102 using the training data, it is possible to classify such a difficult-to-classify image by the classification unit 102. can.

また、訓練データ生成部107は、パターン「F_NG1」に区分された判定に用いられた画像201に対して、製品IDに対応する分類カテゴリ(所定の分類)を正解データとして対応付けて訓練データとする(S26)。パターン「F_NG1」は、図4の(b)に示すように、正しい製品が製造されている(対象物が所定の分類に属する)との目視判定がなされたパターンであるから、この構成によれば適切な訓練データを自動的に生成することができる。特に、パターン「F_NG1」では、分類部102が誤分類しているので、そのような誤分類が繰り返されないようにするために、パターン「F_NG1」に区分された判定に用いられた画像201を訓練データとすることの意義が大きい。なお、パターン「F_NG1」および「F_NG2」は、図7のS10およびS11で判定された区分であってもよいし、図8のS136およびS137で判定された区分であってもよい。図8のS136およびS137の区分判定に基づいて記憶された画像201から訓練データを生成し、その訓練データを用いて分類部102を再学習させることにより、分類部102の分類結果が不明となるケースを減らすことができる。 Further, the training data generation unit 107 associates the image 201 used for the determination classified in the pattern “F_NG1” with the classification category (predetermined classification) corresponding to the product ID as correct answer data with the training data. (S26). As shown in FIG. 4 (b), the pattern "F_NG1" is a pattern in which it is visually determined that the correct product is manufactured (the object belongs to a predetermined classification), and therefore the pattern is based on this configuration. If this is the case, appropriate training data can be automatically generated. In particular, in the pattern "F_NG1", the classification unit 102 misclassifies the image 201. Therefore, in order to prevent such misclassification from being repeated, the image 201 used for the determination classified into the pattern "F_NG1" is used. The significance of using it as training data is great. The patterns "F_NG1" and "F_NG2" may be the categories determined by S10 and S11 in FIG. 7, or may be the categories determined by S136 and S137 in FIG. By generating training data from the image 201 stored based on the classification determination of S136 and S137 in FIG. 8 and retraining the classification unit 102 using the training data, the classification result of the classification unit 102 becomes unknown. The number of cases can be reduced.

なお、図7のS11および図8のS137でパターン「F_NG2」の区分が対応付けて記憶された画像201から訓練データを生成する際には、S27の目視判定が必要になるが、正否判定部104による判定が行われた件数のうちパターン「F_NG2」に該当する割合は少ない。このため、訓練データ生成部107によれば、目視判定にかかる労力を最小限に抑えつつ、多数の適切な訓練データを自動で生成することができる。 In addition, when the training data is generated from the image 201 stored in association with the division of the pattern "F_NG2" in S11 of FIG. 7 and S137 of FIG. 8, visual determination of S27 is required, but the correctness determination unit Of the number of cases judged by 104, the ratio corresponding to the pattern "F_NG2" is small. Therefore, according to the training data generation unit 107, it is possible to automatically generate a large number of appropriate training data while minimizing the labor required for visual determination.

〔実施形態2〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。実施形態3以降も同様である。
[Embodiment 2]
Other embodiments of the present invention will be described below. For convenience of explanation, the same reference numerals are given to the members having the same functions as the members described in the above-described embodiment, and the description thereof will not be repeated. The same applies to the third and subsequent embodiments.

本実施形態の情報処理装置1は、複数の異なる対象物を撮影した複数の画像201のそれぞれについて正否判定部104による判定結果が出された場合に、上述のパターンの区分に基づいて、その判定結果に含まれる誤判定の件数(予測値)を算出する。算出した件数は、例えば、正否判定部104の判定結果の信頼性を示す指標として利用することができる。なお、誤判定の件数(誤判定数)とは、正否判定部104が正しいとした判定が誤りであった件数、すなわちパターン「F_OK」に該当する判定が行われた件数である。 The information processing apparatus 1 of the present embodiment determines when a determination result is obtained by the correctness determination unit 104 for each of a plurality of images 201 obtained by photographing a plurality of different objects, based on the above-mentioned pattern classification. Calculate the number of false positives (predicted values) included in the results. The calculated number can be used, for example, as an index showing the reliability of the determination result of the correctness determination unit 104. The number of erroneous determinations (number of erroneous determinations) is the number of cases in which the determination by the correctness determination unit 104 is incorrect, that is, the number of cases in which the determination corresponding to the pattern "F_OK" is performed.

予測値の算出は、図1に示す誤判定数算出部108が行う。なお、予測値を算出する場合、判定結果管理部105は、下記(A)~(D)をカウントしておく。例えば、下記(A)~(D)の各値は、図7のS3でYESと判定された回数、S10の処理が行われた回数、S8の処理が行われた回数、S11の処理が行われた回数をそれぞれカウントしたものであってもよい。 The calculation of the predicted value is performed by the erroneous determination number calculation unit 108 shown in FIG. When calculating the predicted value, the determination result management unit 105 counts the following (A) to (D). For example, each of the following values (A) to (D) is the number of times that YES is determined in S3 of FIG. 7, the number of times that the processing of S10 is performed, the number of times that the processing of S8 is performed, and the processing of S11. It may be a count of the number of times it has been passed.

(A)分類部102が分類成功した画像201の総数(正否判定部104の総判定回数):N
(B)パターン「F_NG1」のカウント数:n_fng1
(C)パターン「T_NG」のカウント数:n_tng
(D)パターン「F_NG2」のカウント数:n_fng2
〔予測値の算出原理〕
本実施形態では、正しい製品が製造される確率pと、分類部102が正しく分類する確率qが何れも一定の値であると仮定して、パターン「F_OK」に該当する判定が行われた件数の予測値(計算値)n_fokを算出する。この算出原理について、図4の(b)を参照しながら以下説明する。
(A) Total number of images 201 successfully classified by the classification unit 102 (total number of determinations by the correctness determination unit 104): N
(B) Count number of pattern "F_NG1": n_fng1
(C) Count number of pattern "T_NG": n_tng
(D) Count number of pattern "F_NG2": n_fng2
[Principle of calculation of predicted value]
In the present embodiment, it is assumed that the probability p that the correct product is manufactured and the probability q that the classification unit 102 correctly classifies are both constant values, and the number of cases in which the determination corresponding to the pattern “F_OK” is made. Predicted value (calculated value) n_fok of is calculated. This calculation principle will be described below with reference to FIG. 4 (b).

正しい製品が製造される事象と、分類部102が正しく分類する事象とは、互いに独立した事象である。また、正しい製品が製造される確率がpであれば、誤った製品が製造される確率は(1-p)と表され、正しく分類される確率がqであれば、誤った分類がなされる確率は(1-q)と表される。 The event that the correct product is manufactured and the event that the classification unit 102 correctly classifies are independent events. Further, if the probability that the correct product is manufactured is p, the probability that the wrong product is manufactured is expressed as (1-p), and if the probability of being correctly classified is q, the wrong classification is made. The probability is expressed as (1-q).

したがって、正否判定部104が正否判定を行った場合に、その判定が図4の(b)に示される各パターンに該当する確率は下記のように表現できる。 Therefore, when the correctness determination unit 104 makes a correctness determination, the probability that the determination corresponds to each pattern shown in FIG. 4B can be expressed as follows.

(「T_OK」に該当する確率)=p×q
(「F_NG1」に該当する確率)=p×(1-q)
(「T_NG」に該当する確率)=(1-p)×q
(「F_NG2」または「F_OK」に該当する確率)=(1-p)×(1-q)
また、「F_NG1」に該当する確率はn_fng1/Nと表される。同様に、「T_NG」に該当する確率はn_tng/Nと表され、「F_NG2」に該当する確率はn_fng2/Nと表される。よって、下記の数式(1)、(2)が成り立つ。
p×(1-q)=n_fng1/N 数式(1)
(1-p)×q=n_tng/N 数式(2)
また、上記(「F_NG2」または「F_OK」に該当する確率)について、n_fng2とn_fokの和をNで除した値が(1-p)×(1-q)に等しくなるため、下記の数式(3)が成り立つ。
n_fok=N×(1-p)×(1-q)-n_fng2 数式(3)
したがって、上記数式(1)、(2)から確率p、qを算出し、算出した確率p、qを数式(3)に代入することにより、パターン「F_OK」に該当する判定が行われた件数の予測値n_fokを算出することができる。
(Probability corresponding to "T_OK") = p × q
(Probability corresponding to "F_NG1") = p × (1-q)
(Probability corresponding to "T_NG") = (1-p) × q
(Probability corresponding to "F_NG2" or "F_OK") = (1-p) x (1-q)
Further, the probability corresponding to "F_NG1" is expressed as n_fng1 / N. Similarly, the probability corresponding to "T_NG" is expressed as n_tng / N, and the probability corresponding to "F_NG2" is expressed as n_fng2 / N. Therefore, the following mathematical formulas (1) and (2) hold.
p × (1-q) = n_fng1 / N Formula (1)
(1-p) × q = n_tng / N Formula (2)
Further, for the above (probability corresponding to "F_NG2" or "F_OK"), the value obtained by dividing the sum of n_fng2 and n_fok by N is equal to (1-p) × (1-q), so the following formula ( 3) holds.
n_fok = N × (1-p) × (1-q) -n_fng2 Formula (3)
Therefore, by calculating the probabilities p and q from the above mathematical formulas (1) and (2) and substituting the calculated probabilities p and q into the mathematical formula (3), the number of cases in which the determination corresponding to the pattern "F_OK" is made. Predicted value n_fok can be calculated.

〔処理の流れ(誤判定数の算出)〕
情報処理装置1が誤判定数を算出する処理の流れを図10に基づいて説明する。図10は、情報処理装置1が誤判定数を算出する処理(情報処理方法)の一例を示すフローチャートである。
[Processing flow (calculation of the number of erroneous judgments)]
The flow of the process in which the information processing apparatus 1 calculates the number of erroneous determinations will be described with reference to FIG. FIG. 10 is a flowchart showing an example of a process (information processing method) in which the information processing apparatus 1 calculates the number of erroneous determinations.

S41では、誤判定数算出部108は、パターン「F_NG1」のカウント数n_fng1と、パターン「T_NG」のカウント数n_tngから、製品が正しい確率pと、分類部102の分類が正しい確率qを算出する。具体的には、誤判定数算出部108は、確率p、qを上述の数式(1)(2)を用いて算出する。 In S41, the erroneous determination number calculation unit 108 calculates the probability p that the product is correct and the probability q that the classification of the classification unit 102 is correct from the count number n_fng1 of the pattern “F_NG1” and the count number n_tng of the pattern “T_NG”. Specifically, the erroneous determination number calculation unit 108 calculates the probabilities p and q using the above-mentioned mathematical formulas (1) and (2).

S42では、誤判定数算出部108は、S41で算出した確率p、qとパターン「F_NG2」のカウント数n_fng2から、パターン「F_OK」の数の予測値であるn_fokを算出する。具体的には、誤判定数算出部108は、確率p、qを上述の数式(3)に代入することにより、n_fokを算出する。 In S42, the erroneous determination number calculation unit 108 calculates n_fok, which is a predicted value of the number of patterns “F_OK”, from the probabilities p and q calculated in S41 and the count number n_fng2 of the pattern “F_NG2”. Specifically, the erroneous determination number calculation unit 108 calculates n_fok by substituting the probabilities p and q into the above-mentioned mathematical formula (3).

S43では、誤判定数算出部108は、S42で算出したパターン「F_OK」の数、すなわち正否判定部104が正しいと判定したが、実際には製品が正しくなかった件数を出力部50に出力させ、これにより処理を終了する。なお、誤判定数算出部108は、S42で算出したパターン「F_OK」の数をNで除して、パターン「F_OK」の発生確率を算出することもできる。 In S43, the erroneous determination number calculation unit 108 determines that the number of patterns “F_OK” calculated in S42, that is, the correctness / rejection determination unit 104 is correct, but actually causes the output unit 50 to output the number of cases where the product is not correct. This ends the process. The erroneous determination number calculation unit 108 can also calculate the probability of occurrence of the pattern "F_OK" by dividing the number of the pattern "F_OK" calculated in S42 by N.

以上のように、本実施形態の判定結果管理部105は、複数の異なる製品(対象物)を撮影した複数の画像201のそれぞれについて正否判定部104による判定結果が出された場合(情報処理システム500による判定が行われた場合)に、その判定における分類部102の分類結果を上述のパターンの区分ごとにカウントする。そして、誤判定数算出部108は、正否判定部104が対象物は正しいとした判定のうち、実際には対象物が誤りであり、分類部102の誤分類により対象物が正しいとされた件数を、上記カウントの結果に基づいて算出する。 As described above, when the determination result management unit 105 of the present embodiment outputs a determination result by the correctness determination unit 104 for each of the plurality of images 201 obtained by photographing a plurality of different products (objects) (information processing system). When the determination by 500 is made), the classification result of the classification unit 102 in the determination is counted for each of the above-mentioned pattern categories. Then, the erroneous determination number calculation unit 108 determines the number of cases in which the correctness determination unit 104 determines that the object is correct, but the object is actually erroneous and the object is correct due to the erroneous classification of the classification unit 102. , Calculated based on the result of the above count.

ここで、上述のパターンには、「F_NG1」(製品は正しく、分類部102の分類が誤りのパターン)と、「T_NG」(製品が誤りであり、分類部102の分類は正しいパターン)が含まれている。このため、確率p、qが一定であると仮定すれば、これらのパターンの件数と正否判定部104の総判定回数から、上述の数式(1)(2)を用いて当該確率p、qを算出することができる。 Here, the above-mentioned patterns include "F_NG1" (the product is correct and the classification of the classification unit 102 is incorrect) and "T_NG" (the product is incorrect and the classification of the classification unit 102 is correct). It has been. Therefore, assuming that the probabilities p and q are constant, the probabilities p and q are calculated using the above equations (1) and (2) from the number of these patterns and the total number of judgments of the correctness determination unit 104. Can be calculated.

また、パターン「F_OK」は、「F_NG2」と同じく、製品は誤りであり、分類部102の分類も誤りのパターンに該当するから、パターン「F_OK」と「F_NG2」の合計件数は、N×(1-p)×(1-q)と表される。よって、この合計件数からパターン「F_NG2」のカウント数を減算することにより、パターン「F_OK」の件数を算出することができる(数式(3))。このように、誤判定数算出部108によれば、判定結果管理部105によるパターンの区分ごとのカウント数を利用して、パターン「F_OK」の件数を算出することができる。 In addition, the pattern "F_OK" is an error in the product as in "F_NG2", and the classification of the classification unit 102 also corresponds to the error pattern. Therefore, the total number of patterns "F_OK" and "F_NG2" is N × ( It is expressed as 1-p) × (1-q). Therefore, the number of patterns "F_OK" can be calculated by subtracting the count number of the pattern "F_NG2" from this total number (Formula (3)). As described above, according to the erroneous determination number calculation unit 108, the number of cases of the pattern "F_OK" can be calculated by using the count number for each category of the pattern by the determination result management unit 105.

なお、図8のS132、S134、S136、およびS137で判定された各区分のカウント数からパターン「F_OK」の件数を算出することもできる。この場合、上記数式(1)(2)の代わりに下記数式(1)’~(3)’のうち何れか2つを用いて確率p、qを算出し、下記数式(4)’を用いてパターン「F_OK」の件数を算出する。下記数式(1)’~(4)’において、N’は図7のS3でNOと判定された回数(図7のS3でNOと判定された画像201の数)である。また、下記数式(3)’において、n_tokは、パターン「T_OK」のカウント数である。
p×(1-q)=n_fng1/N’ 数式(1)’
(1-p)×q=n_tng/N’ 数式(2)’
p×q=n_tok/N’ 数式(3)’
n_fok=N’×(1-p)×(1-q)-n_fng2 数式(4)’
〔実施形態3〕
本実施形態の情報処理装置1は、実施形態1で説明したパターンの区分に基づいて、分類部102の再学習のタイミングを決定する。再学習のタイミングは、図1に示す再学習時期決定部109が決定する。なお、再学習のタイミングを決定する場合、判定結果管理部105は、下記(A)~(C)をカウントしておく。
The number of patterns "F_OK" can also be calculated from the count number of each category determined in S132, S134, S136, and S137 in FIG. In this case, the probabilities p and q are calculated using any two of the following formulas (1)'to (3)' instead of the above formulas (1) and (2), and the following formula (4)'is used. Calculate the number of patterns "F_OK". In the following mathematical formulas (1)'to (4)', N'is the number of times NO is determined in S3 of FIG. 7 (the number of images 201 determined to be NO in S3 of FIG. 7). Further, in the following mathematical formula (3)', n_tok is the count number of the pattern “T_OK”.
p × (1-q) = n_fng1 / N'Formula (1)'
(1-p) × q = n_tng / N'Formula (2)'
p × q = n_tok / N'Formula (3)'
n_fok = N'× (1-p) × (1-q) -n_fng2 Mathematical formula (4)'
[Embodiment 3]
The information processing apparatus 1 of the present embodiment determines the timing of re-learning of the classification unit 102 based on the classification of the pattern described in the first embodiment. The timing of re-learning is determined by the re-learning time determination unit 109 shown in FIG. When determining the timing of re-learning, the determination result management unit 105 counts the following (A) to (C).

(A)分類部102が分類成功した画像201の総数(正否判定部104の総判定回数):N
(B)パターン「F_NG1」のカウント数:n_fng1
(C)パターン「T_NG」のカウント数:n_tng
〔再学習のタイミングについて〕
上述の5つのパターン区分のうち「F_OK」は、実際には誤った製品が製造されているのに、正否判定部104が正しいと判定してしまうパターンであり、このようなパターンが発生することは極力避ける必要がある。例えば、正しい製品Xと類似した新製品Yが新たに追加されたが、分類部102は新製品Yについて未学習であったとする。この場合、新製品Yの画像201を分類部102に入力すると、製品Xの分類カテゴリのスコアが閾値以上となる可能性がある。そして、スコアが閾値以上となった場合には、分類部102の分類結果が正しい製品と一致するので、実際には誤って新製品Yが製造されているにもかかわらず、正否判定部104が正しいと判定してしまう。これにより、新製品Yが、製品Xとして出荷されてしまうといった事態も生じ得る。
(A) Total number of images 201 successfully classified by the classification unit 102 (total number of determinations by the correctness determination unit 104): N
(B) Count number of pattern "F_NG1": n_fng1
(C) Count number of pattern "T_NG": n_tng
[Timing of re-learning]
Of the above-mentioned five pattern categories, "F_OK" is a pattern in which the correctness / rejection determination unit 104 determines that the product is correct even though the wrong product is actually manufactured, and such a pattern occurs. Should be avoided as much as possible. For example, it is assumed that a new product Y similar to the correct product X is newly added, but the classification unit 102 has not learned about the new product Y. In this case, if the image 201 of the new product Y is input to the classification unit 102, the score of the classification category of the product X may be equal to or higher than the threshold value. When the score becomes equal to or higher than the threshold value, the classification result of the classification unit 102 matches the correct product, so that the correctness / rejection determination unit 104 determines that the new product Y is actually manufactured by mistake. It will be judged as correct. As a result, the new product Y may be shipped as the product X.

ここで、「F_OK」の発生リスクを減らす方法の一つとして、最新の訓練データ202を用いて分類部102の再学習を行うという方法がある。再学習を行うことにより、上述のような未学習の製品についても分類することが可能になり、分類部102が誤分類する確率を下げることができるので、その結果として「F_OK」の発生確率も下げることができる。ただし、再学習に要する労力、時間、費用などを考慮すれば、頻繁に再学習を行うことは必ずしも得策ではない。 Here, as one of the methods for reducing the risk of occurrence of "F_OK", there is a method of re-learning the classification unit 102 using the latest training data 202. By performing re-learning, it becomes possible to classify unlearned products as described above, and the probability of misclassification by the classification unit 102 can be reduced. As a result, the probability of occurrence of "F_OK" also increases. Can be lowered. However, considering the labor, time, and cost required for re-learning, frequent re-learning is not always a good idea.

そこで、再学習時期決定部109は、実施形態1で説明したパターンの区分に基づいて、分類部102の適切な再学習タイミング(分類部102の分類精度の劣化が許容できなくなる直前のタイミング)を決定する。 Therefore, the re-learning time determination unit 109 determines an appropriate re-learning timing of the classification unit 102 (timing immediately before the deterioration of the classification accuracy of the classification unit 102 becomes unacceptable) based on the pattern classification described in the first embodiment. decide.

例えば、再学習時期決定部109は、誤判定数算出部108が算出したパターン「F_OK」の件数が所定の閾値に達するまでの期間内で、分類部102の再学習の時期を決定してもよい。これにより、パターン「F_OK」が発生しない可能性を高めることができる。特に、上記閾値は1未満とすることが好ましい。これにより、パターン「F_OK」が1回以上発生する可能性を低減することができる。例えば、再学習時期決定部109は、正否判定部104による判定が所定回数行われる毎に、誤判定数算出部108にパターン「F_OK」の件数を算出させてもよい。そして、算出された件数が閾値以上となったときに、分類部102の再学習時期であると決定してもよい。 For example, the re-learning time determination unit 109 may determine the re-learning time of the classification unit 102 within the period until the number of patterns “F_OK” calculated by the erroneous determination number calculation unit 108 reaches a predetermined threshold value. .. This makes it possible to increase the possibility that the pattern "F_OK" does not occur. In particular, the threshold value is preferably less than 1. This makes it possible to reduce the possibility that the pattern "F_OK" will occur more than once. For example, the re-learning time determination unit 109 may have the erroneous determination number calculation unit 108 calculate the number of patterns “F_OK” every time the determination by the correctness determination unit 104 is performed a predetermined number of times. Then, when the calculated number exceeds the threshold value, it may be determined that it is the re-learning time of the classification unit 102.

〔「F_OK」の発生回数の予測について〕
再学習時期決定部109は、パターン「F_OK」の発生回数の予測値が閾値未満である範囲で再学習タイミングを決定してもよい。パターン「F_OK」の発生回数の予測値は、例えば下記の数式(4)で表すことができる。数式(4)において、mは製品の種類数であり、Nは成否判定の総回数である。なお、数式(4)におけるNは、上記(A)でカウントした数ではなく変数である。p、qの定義は実施形態2と同じである。
[Forecasting the number of occurrences of "F_OK"]
The re-learning time determination unit 109 may determine the re-learning timing within a range in which the predicted value of the number of occurrences of the pattern “F_OK” is less than the threshold value. The predicted value of the number of occurrences of the pattern "F_OK" can be expressed by, for example, the following mathematical formula (4). In the formula (4), m is the number of product types and N is the total number of success / failure determinations. Note that N in the formula (4) is not a number counted in the above (A) but a variable. The definitions of p and q are the same as those in the second embodiment.

(パターン「F_OK」の発生回数)=N×(1-p)×(1-q)/m 数式(4)
なお、上記数式(4)は、確率p、qが一定であり、かつm種類の製品の何れについても確率p、qが同一の値であるとの前提に基づいている。この前提において、上記数式(4)が成立する理由について以下説明する。
(Number of occurrences of pattern "F_OK") = N × (1-p) × (1-q) / m Formula (4)
The above mathematical formula (4) is based on the premise that the probabilities p and q are constant and the probabilities p and q are the same values for all m types of products. Under this premise, the reason why the above mathematical formula (4) holds will be described below.

図4の(b)に示すように、製品が誤りであり、かつ、分類も誤りであるという事象は、パターン「F_NG2」または「F_OK」に該当する。そして、このパターンが発生する確率は、(1-p)×(1-q)となる。よって、N回の判定が行われた場合、パターン「F_NG2」と「F_OK」の合計発生回数は、N×(1-p)×(1-q)と算出される。なお、上述のように、ここでは確率p、qが一定であることを前提としている。このため、正否判定部104による判定が所定回数行われるまでの期間(例えば図11の(b)のグラフにおける破線部分の期間)にカウントした上記(A)~(C)の値から算出した確率p、qは、それ以降の期間にも適用できる。 As shown in FIG. 4B, the phenomenon that the product is incorrect and the classification is also incorrect corresponds to the pattern “F_NG2” or “F_OK”. The probability that this pattern will occur is (1-p) × (1-q). Therefore, when the determination is performed N times, the total number of occurrences of the patterns “F_NG2” and “F_OK” is calculated as N × (1-p) × (1-q). As described above, it is assumed here that the probabilities p and q are constant. Therefore, the probability calculated from the above values (A) to (C) counted in the period until the determination by the correctness determination unit 104 is performed a predetermined number of times (for example, the period of the broken line portion in the graph of FIG. 11B). p and q can also be applied to the subsequent periods.

また、製品がm種類であり、何れの製品についても確率p、qが同一の値であるから、パターン「F_OK」の1回の発生に対し、パターン「F_NG2」は(m-1)回発生する。よって、n_fng2とn_fokの比は(m-1):1である。したがって、パターン「F_NG2」と「F_OK」の合計発生回数のうち、1/mが「F_OK」の発生回数ということになる。よって、N回の正否判定を行った場合のパターン「F_OK」の発生回数は、上記数式(4)で表すことができる。 In addition, since there are m types of products and the probabilities p and q are the same for all products, the pattern "F_NG2" occurs (m-1) times for each occurrence of the pattern "F_OK". do. Therefore, the ratio of n_fng2 to n_fok is (m-1): 1. Therefore, 1 / m of the total number of occurrences of the patterns "F_NG2" and "F_OK" is the number of occurrences of "F_OK". Therefore, the number of occurrences of the pattern "F_OK" when the correctness determination is performed N times can be expressed by the above mathematical formula (4).

〔処理の流れ〕
本実施形態の情報処理装置1が実行する処理の流れを図11に基づいて説明する。図11の(b)は、情報処理装置1がパターン「F_OK」の発生回数の予測値を算出する処理(情報処理方法)の一例を示すフローチャートである。また、図11の(b)には、パターン「F_OK」の発生回数とNとの関係を示すグラフを示している。
[Processing flow]
The flow of processing executed by the information processing apparatus 1 of the present embodiment will be described with reference to FIG. FIG. 11B is a flowchart showing an example of a process (information processing method) in which the information processing apparatus 1 calculates a predicted value of the number of occurrences of the pattern “F_OK”. Further, FIG. 11B shows a graph showing the relationship between the number of occurrences of the pattern “F_OK” and N.

S61では、再学習時期決定部109は、パターン「F_NG1」のカウント数n_fng1と、パターン「T_NG」のカウント数n_tngから、製品が正しい確率pと、分類部102の分類が正しい確率qを算出する。確率p、qの算出には、実施形態2に記載した数式(1)、(2)を用いる。 In S61, the re-learning time determination unit 109 calculates the probability p that the product is correct and the probability q that the classification of the classification unit 102 is correct from the count number n_fng1 of the pattern “F_NG1” and the count number n_tng of the pattern “T_NG”. .. The mathematical formulas (1) and (2) described in the second embodiment are used for calculating the probabilities p and q.

S62では、再学習時期決定部109は、S61で算出した確率p、qと製品の種類数mから、パターン「F_OK」の発生回数を算出する。具体的には、再学習時期決定部109は、上述の数式(4)を用いて上記発生回数を算出する。 In S62, the re-learning time determination unit 109 calculates the number of occurrences of the pattern “F_OK” from the probabilities p and q calculated in S61 and the number of product types m. Specifically, the re-learning time determination unit 109 calculates the number of occurrences using the above-mentioned mathematical formula (4).

S63では、再学習時期決定部109は、S62で算出したパターン「F_OK」の発生回数が閾値未満となる範囲で再学習のタイミングを決定する。具体的には、再学習時期決定部109は、パターン「F_OK」の発生回数が閾値付近(ただし閾値を超えない)となるNを算出する。そして、再学習時期決定部109は、正否判定部104の判定回数が該算出した判定回数Nに達する時期を、分類部102の再学習のタイミング(時期)と決定する。これにより、図11の処理は終了となる。 In S63, the re-learning time determination unit 109 determines the re-learning timing within a range in which the number of occurrences of the pattern “F_OK” calculated in S62 is less than the threshold value. Specifically, the re-learning time determination unit 109 calculates N in which the number of occurrences of the pattern "F_OK" is near the threshold value (however, the threshold value is not exceeded). Then, the re-learning time determination unit 109 determines the time when the number of determinations of the correctness determination unit 104 reaches the calculated determination number N as the timing (timing) of the re-learning of the classification unit 102. As a result, the process of FIG. 11 is completed.

なお、S62で算出される発生回数は、Nを変数とする一次関数で表される。よって、パターン「F_OK」の発生回数とNとの関係をグラフにすると同図の(b)のようになる。図示のように、分類部102が分類する画像201の総数Nが増加するのに比例して、縦軸の値である発生回数が増加する。再学習時期決定部109は、このグラフ上で閾値付近となるNを算出すればよい。 The number of occurrences calculated in S62 is represented by a linear function with N as a variable. Therefore, the graph of the relationship between the number of occurrences of the pattern "F_OK" and N is as shown in (b) of the figure. As shown in the figure, the number of occurrences, which is the value on the vertical axis, increases in proportion to the increase in the total number N of the images 201 classified by the classification unit 102. The re-learning time determination unit 109 may calculate N near the threshold value on this graph.

以上のように、再学習時期決定部109は、数式(4)の値が所定の閾値に達しないNの値を算出し、正否判定部104の判定回数が該算出したNの値に達する時期を、分類部102の再学習の時期と決定する。なお、数式(4)において、Nは正否判定部104の判定回数、すなわち分類部102の分類回数のうち、図7のS3でYESと判定された回数である。また、(1-p)×(1-q)は製品(対象物)が誤りであり(所定の分類に属しておらず)、かつ分類部102が誤分類する、という事象が発生する確率を表している。そして、1/mは、上記事象が発生する場合のうち分類部102の分類結果が正しい製品の分類カテゴリと一致する割合を表している。 As described above, the re-learning time determination unit 109 calculates the value of N in which the value of the mathematical formula (4) does not reach a predetermined threshold value, and the time when the number of determinations of the correctness determination unit 104 reaches the calculated N value. Is determined as the time for re-learning of the classification unit 102. In the mathematical formula (4), N is the number of determinations by the correctness determination unit 104, that is, the number of times the classification unit 102 is classified as YES in S3 of FIG. Further, (1-p) × (1-q) indicates the probability that an event occurs in which the product (object) is incorrect (does not belong to a predetermined classification) and the classification unit 102 misclassifies. Represents. And 1 / m represents the ratio that the classification result of the classification unit 102 matches the classification category of the correct product in the case where the above event occurs.

従って、再学習時期決定部109によれば、「F_OK」の発生回数が許容範囲を超えないような適切な再学習時期を決定することができる。例えば、図11の(b)の例では、閾値を0.75に設定している。この場合、再学習時期決定部109は、例えば上記数式(4)の値が0.75となるNの値を求め、その値から正否判定部104の判定回数の上限値を求めてもよい。この場合、再学習時期は、正否判定部104の判定回数が上記決定した上限に達するまでの時期となる。上記閾値は0.75に限られないが、1未満とすることが好ましい。これにより、「F_OK」が1回以上発生する可能性を低減することができる。 Therefore, according to the re-learning time determination unit 109, it is possible to determine an appropriate re-learning time so that the number of occurrences of "F_OK" does not exceed the permissible range. For example, in the example of FIG. 11B, the threshold value is set to 0.75. In this case, the re-learning time determination unit 109 may obtain, for example, the value of N at which the value of the above mathematical formula (4) is 0.75, and obtain the upper limit of the number of determinations of the correctness determination unit 104 from the value. In this case, the re-learning time is the time until the number of determinations of the correctness determination unit 104 reaches the upper limit determined above. The threshold value is not limited to 0.75, but is preferably less than 1. This makes it possible to reduce the possibility that "F_OK" will occur more than once.

なお、図8のS132、S134、S136、およびS137で判定された各区分のカウント数から再学習時期を決定することもできる。この場合、再学習時期決定部109は、下記数式(5)’の値が所定の閾値に達しないN’(分類部102の分類回数のうち、図7のS3でNOと判定された回数)を算出する。そして、図7のS3でNOと判定された回数が、上記算出したN’の値に達する時期を、分類部102の再学習の時期と決定する。 It should be noted that the re-learning time can also be determined from the count number of each category determined in S132, S134, S136, and S137 in FIG. In this case, the re-learning time determination unit 109 determines N'(the number of times the classification unit 102 is classified as NO in S3 of FIG. 7) in which the value of the following mathematical formula (5)'does not reach a predetermined threshold value). Is calculated. Then, the time when the number of times NO is determined in S3 of FIG. 7 reaches the value of N'calculated above is determined as the time of re-learning of the classification unit 102.

(パターン「F_OK」の発生回数)=N’×(1-p)×(1-q)/m 数式(5)’
また、上記の例では、確率p、qが何れも一定であるとして再学習時期を決定しているが、確率p、q、特に確率qの変動を考慮して再学習時期を決定してもよい。これにより、より適切な再学習時期を決定することが可能になる。例えば、N≦N<Nの区間ではq、N≦N<Nの区間ではqのように、Nの区間ごとに異なる値のqを用いて上記発生確率を算出してもよい(N>N>N)。
(Number of occurrences of pattern "F_OK") = N'× (1-p) × (1-q) / m Formula (5)'
Further, in the above example, the re-learning time is determined assuming that the probabilities p and q are both constant, but the re-learning time may be determined in consideration of the fluctuations of the probabilities p and q, especially the probability q. good. This makes it possible to determine a more appropriate re-learning time. For example, q 1 is used in the interval of N 0 ≤ N <N 1 , and q 2 is used in the interval of N 1 ≤ N <N 2 . It may be good (N 2 > N 1 > N 0 ).

また、上記の例では、製品が誤りであり、かつ分類部102が誤分類する、という事象が発生する場合のうち分類部102の分類結果が正しい製品の分類カテゴリと一致する割合を1/mとしているが、この例に限られない。例えば、製品ごとに異なる確率p、qを用いて上記割合を算出してもよい。 Further, in the above example, in the case where the product is incorrect and the classification unit 102 misclassifies, the ratio of the classification result of the classification unit 102 to the correct product classification category is 1 / m. However, it is not limited to this example. For example, the above ratio may be calculated using probabilities p and q that differ from product to product.

また、再学習時期決定部109は、分類部102の不明判定の回数(最後に学習を行ってから後の累積回数)、あるいは不明判定の頻度が上限値に達したときに、再学習時期であると決定してもよい。これにより、不明判定となる画像201の数を少なく抑えることができるので、目視判定が行われる回数も少なく抑えることができる。 Further, the re-learning time determination unit 109 determines the number of unknown determinations (cumulative number after the last learning) of the classification unit 102, or when the frequency of unknown determination reaches the upper limit, the re-learning time is set. You may decide that there is. As a result, the number of images 201 that are determined to be unknown can be suppressed to a small number, so that the number of times that a visual determination is performed can be suppressed to a small number.

〔実施形態4〕
本実施形態の情報処理装置1は、実施形態1で説明したパターンの区分に基づいて、分類部102の分類成否判定に用いる閾値を決定する。また、本実施形態の情報処理装置1は、実施形態3で説明した方法で決定した再学習タイミングに分類部102の再学習を行う。これについて、図12および図13に基づいて説明する。
[Embodiment 4]
The information processing apparatus 1 of the present embodiment determines the threshold value used for the classification success / failure determination of the classification unit 102 based on the classification of the pattern described in the first embodiment. Further, the information processing apparatus 1 of the present embodiment relearns the classification unit 102 at the relearning timing determined by the method described in the third embodiment. This will be described with reference to FIGS. 12 and 13.

図12は、本実施形態の情報処理装置1の制御部10の構成例を示すブロック図である。本実施形態の情報処理装置1の制御部10には、閾値決定部121と学習部122が含まれている点で、図1の情報処理装置1と相違している。閾値決定部121と学習部122の詳細は以下説明する。 FIG. 12 is a block diagram showing a configuration example of the control unit 10 of the information processing apparatus 1 of the present embodiment. The control unit 10 of the information processing apparatus 1 of the present embodiment is different from the information processing apparatus 1 of FIG. 1 in that the threshold value determination unit 121 and the learning unit 122 are included. Details of the threshold value determination unit 121 and the learning unit 122 will be described below.

図13は、本実施形態の情報処理装置1が実行する処理を説明する図である。同図の(a)には分類部102の分類結果のスコアScと、分類部102の分類が正しい確率qとの相関関係の一例を示すグラフを記載している。なお、確率qは、分類部102の分類結果のうち正しい分類結果の割合であり、分類成功率と表現することもできる。また、同図の(b)には、本実施形態の情報処理装置1が実行する処理の流れを示すフローチャートを記載している。 FIG. 13 is a diagram illustrating a process executed by the information processing apparatus 1 of the present embodiment. In (a) of the figure, a graph showing an example of the correlation between the score Sc of the classification result of the classification unit 102 and the probability q that the classification of the classification unit 102 is correct is shown. The probability q is the ratio of the correct classification results among the classification results of the classification unit 102, and can also be expressed as the classification success rate. Further, in (b) of the figure, a flowchart showing a flow of processing executed by the information processing apparatus 1 of the present embodiment is described.

図13の(a)に示すように、分類部102が分類結果と共に出力したスコアScが大きいほどその分類が正しい分類である確率qは高くなる。このため、閾値を大きく設定するほど分類部102の誤分類を減らすことができる。ただし、閾値Tが大きいほど不明判定となる場合が増える。また、スコアScの最大値付近(図13の例では100%付近)では、スコアScの増加率に対する確率qの増加率が低下する。このため、必要以上に閾値Tを大きく設定しても確率qの大幅な増加は期待できない上、不明判定が増えて情報処理システム500の処理効率が落ちてしまう。そこで、閾値決定部121は、以下説明するようにして妥当な閾値を決定する。 As shown in FIG. 13A, the larger the score Sc output by the classification unit 102 together with the classification result, the higher the probability q that the classification is correct. Therefore, the larger the threshold value is set, the less the misclassification of the classification unit 102 can be reduced. However, the larger the threshold value T, the more cases where an unknown determination is made. Further, in the vicinity of the maximum value of the score Sc (near 100% in the example of FIG. 13), the increase rate of the probability q with respect to the increase rate of the score Sc decreases. Therefore, even if the threshold value T is set larger than necessary, a large increase in the probability q cannot be expected, and the number of unknown determinations increases, resulting in a decrease in the processing efficiency of the information processing system 500. Therefore, the threshold value determination unit 121 determines an appropriate threshold value as described below.

図13の(b)に示すように、閾値決定部121は、まず閾値の初期値Tを決定する(S81)。Tをどのような値に設定するかは予め決めておいてもよいし、入力部30を介した操作等によりユーザが指定してもよい。この後、情報処理システム500は、S81で決定された閾値Tを用いて図7に示した処理を繰り返し実行する。そして、これにより、判定結果管理部105によってパターンの区分結果、すなわち各パターンのカウント数が記録・更新されていく。 As shown in FIG. 13B, the threshold value determination unit 121 first determines the initial value T 0 of the threshold value (S81). The value to be set for T 0 may be determined in advance, or may be specified by the user by an operation via the input unit 30 or the like. After that, the information processing system 500 repeatedly executes the process shown in FIG. 7 using the threshold value T 0 determined in S81. As a result, the determination result management unit 105 records and updates the pattern classification result, that is, the count number of each pattern.

パターンの区分結果がある程度蓄積された段階(例えば、区分結果の総数が所定数に達した段階)で、閾値決定部121は、確率qとスコアScの相関関係を示す関係式を求める(S82)。なお、上記関係式を求めるため、図7のS2で行われた分類において分類部102が出力したスコアを記憶しておく。 At the stage where the classification results of the pattern are accumulated to some extent (for example, the stage where the total number of classification results reaches a predetermined number), the threshold value determination unit 121 obtains a relational expression showing the correlation between the probability q and the score Sc (S82). .. In order to obtain the above relational expression, the score output by the classification unit 102 in the classification performed in S2 of FIG. 7 is stored.

関係式の導出は、(1)スコアを複数の数値範囲で区分し、(2)各区分について確率qを算出し、(3)区分ごとの確率qの値から、近似曲線すなわちスコアと確率qの関係式を求める、という手順で行ってもよい。なお、確率qの算出方法は、実施形態2、3で説明したとおりであるからここでは説明を繰り返さない。 To derive the relational expression, (1) the score is divided into a plurality of numerical ranges, (2) the probability q is calculated for each division, and (3) the approximate curve, that is, the score and the probability q are derived from the value of the probability q for each division. You may do it by the procedure of finding the relational expression of. Since the method of calculating the probability q is as described in the second and third embodiments, the description is not repeated here.

例えば、図7のS2で行われた分類のうち、分類結果のスコアが80%以上90%未満であった件数が100件であれば、それら100件の区分結果から確率qを算出する。これにより、スコアが80%以上90%未満であった場合に分類部102が正しく分類する確率qを算出することができる。そして、他の数値範囲のスコアについても同様にして確率qを算出し、各数値範囲における確率qの値から近似曲線を導出することにより、図13の(a)のグラフのような関係式を得ることができる。 For example, if the number of cases in which the score of the classification result is 80% or more and less than 90% is 100 among the classifications performed in S2 of FIG. 7, the probability q is calculated from the classification results of those 100 cases. Thereby, when the score is 80% or more and less than 90%, the probability q that the classification unit 102 correctly classifies can be calculated. Then, the probability q is calculated in the same manner for the scores in the other numerical ranges, and the approximate curve is derived from the value of the probability q in each numerical range to obtain the relational expression as shown in the graph of FIG. 13 (a). Obtainable.

次に、閾値決定部121は、S82で求めた関係式を用いて新たな閾値Tを決定する(S83)。ここで、閾値決定部121は、その閾値Tを適用した場合に確率qが所定の下限値以上となるように閾値Tを決定する。例えば、図13の(a)の例では、所定の下限値を0.75としている。この場合、例えば、図13の(a)の関係式(グラフ)に0.75を代入することにより算出した値を閾値Tと決定してもよい。また、確率qが確実に0.75以上となるように、0.75よりも大きな値(ただしTよりは小さい値であることが好ましい)を上記関係式に代入することにより算出した値を閾値Tと決定してもよい。 Next, the threshold value determination unit 121 determines a new threshold value T 1 using the relational expression obtained in S82 (S83). Here, the threshold value determination unit 121 determines the threshold value T 1 so that the probability q becomes equal to or greater than a predetermined lower limit value when the threshold value T 1 is applied. For example, in the example of FIG. 13A, the predetermined lower limit is 0.75. In this case, for example, the value calculated by substituting 0.75 into the relational expression (graph) of FIG. 13A may be determined as the threshold value T1. Further, a value calculated by substituting a value larger than 0.75 (preferably a value smaller than T 0 ) into the above relational expression so that the probability q is surely 0.75 or more is used. The threshold value T 1 may be determined.

この後、情報処理システム500は、S83で決定された閾値Tを用いて図7に示した処理を繰り返し実行し、これにより判定結果管理部105によるパターンの区分結果が蓄積されていく。パターンの区分結果がある程度蓄積された段階(例えば、区分結果の総数が所定数に達した段階)で、再学習時期決定部109は、パターン「F_OK」の発生回数の予測値を算出する(S84)。また、再学習時期決定部109は、S84で算出したパターン「F_OK」の発生回数が閾値未満となる範囲で再学習のタイミングを決定する(S85)。なお、S84、S85の処理は、図11のS62、S63と同様であるからここでは説明を繰り返さない。 After that, the information processing system 500 repeatedly executes the process shown in FIG. 7 using the threshold value T1 determined in S83, whereby the pattern classification result by the determination result management unit 105 is accumulated. At the stage where the pattern classification results are accumulated to some extent (for example, the stage where the total number of classification results reaches a predetermined number), the re-learning time determination unit 109 calculates the predicted value of the number of occurrences of the pattern "F_OK" (S84). ). Further, the re-learning time determination unit 109 determines the re-learning timing within a range in which the number of occurrences of the pattern "F_OK" calculated in S84 is less than the threshold value (S85). Since the processing of S84 and S85 is the same as that of S62 and S63 of FIG. 11, the description is not repeated here.

そして、学習部122は、S85で決定されたタイミングに分類部102の再学習を行う(S86)。再学習は、例えば記憶部20に記憶されている訓練データ202を用いて行うことができる。この再学習により分類部102が分類に用いる学習済みモデルが更新される。 Then, the learning unit 122 relearns the classification unit 102 at the timing determined in S85 (S86). The re-learning can be performed using, for example, the training data 202 stored in the storage unit 20. By this re-learning, the trained model used by the classification unit 102 for classification is updated.

従ってS86の処理により、確率qとスコアScの関係式も変化するので、S86の終了後、処理はS81に戻り、閾値決定部121が閾値の初期値Tを決定する。なお、再学習後に決定する閾値は、Tと異なる値に設定してもよい。この後は、上記と同様に、S82~S83で閾値Tが決定され、S84~S85で再学習タイミングが決定されて、S86で再学習が行われる。このように、図13の(b)の処理によれば、閾値Tの決定と再学習が繰り返し行われる。 Therefore, since the relational expression between the probability q and the score Sc also changes due to the processing of S86, the processing returns to S81 after the end of S86, and the threshold value determination unit 121 determines the initial value T0 of the threshold value. The threshold value determined after re-learning may be set to a value different from T 0 . After that, similarly to the above, the threshold value T1 is determined in S82 to S83, the relearning timing is determined in S84 to S85, and relearning is performed in S86. As described above, according to the process of FIG. 13B, the determination of the threshold value T1 and the re - learning are repeatedly performed.

以上のように、分類部102と正否判定部104を含む判定システムでは、分類部102の分類結果のスコアが閾値以上であった場合に、当該分類結果に基づいて対象物が所定の分類に属するか否かを判定する。また、閾値決定部121は、分類部102による分類結果のスコアと、当該スコアの分類結果のうち正しい分類結果の割合である確率q(分類成功率)との相関関係に基づき、確率qが所定の下限値以上となる閾値Tを決定する。これにより、確率qに対する要求水準を満たす範囲で妥当な閾値Tを決定することができる。なお、閾値Tの決定に用いるスコアは、上記閾値以上のスコアに限られない。例えば、閾値決定部121は、分類部102が出力したスコアのうち、目視判定により分類結果の成否が確認されたスコアの全てを用いて閾値Tを決定してもよい。 As described above, in the determination system including the classification unit 102 and the correctness determination unit 104, when the score of the classification result of the classification unit 102 is equal to or higher than the threshold value, the object belongs to a predetermined classification based on the classification result. Judge whether or not. Further, the threshold value determination unit 121 determines the probability q based on the correlation between the score of the classification result by the classification unit 102 and the probability q (classification success rate) which is the ratio of the correct classification result among the classification results of the score. A threshold value T 1 that is equal to or greater than the lower limit of is determined. Thereby, a valid threshold value T 1 can be determined within a range satisfying the required level for the probability q. The score used for determining the threshold value T 1 is not limited to the score above the threshold value. For example, the threshold value determination unit 121 may determine the threshold value T 1 by using all of the scores output by the classification unit 102 whose success or failure of the classification result is confirmed by visual determination.

また、閾値決定部121は、分類部102が出力したスコアと、判定結果管理部105が区分した各パターンのカウント数から算出した確率qに基づいて閾値Tを決定するから、分類部102の学習状態に応じた閾値Tを決定することができる。例えば、図13の(b)の例のように、閾値決定部121は、分類部102の再学習が行われる度に、再学習後における、分類部102が出力したスコアと、当該スコアの分類結果における確率qとの相関関係に基づいて閾値Tを決定してもよい。これにより、再学習により分類部102の分類精度を維持または向上しつつ、閾値Tも適切な値に維持することができる。 Further, since the threshold value determination unit 121 determines the threshold value T1 based on the score output by the classification unit 102 and the probability q calculated from the count number of each pattern classified by the determination result management unit 105, the threshold value determination unit 102 determines the threshold value T1. The threshold value T 1 can be determined according to the learning state. For example, as in the example of FIG. 13B, the threshold value determination unit 121 classifies the score output by the classification unit 102 after the relearning and the classification of the score each time the classification unit 102 is relearned. The threshold T 1 may be determined based on the correlation with the probability q in the result. As a result, the threshold value T 1 can be maintained at an appropriate value while maintaining or improving the classification accuracy of the classification unit 102 by re-learning.

〔システムによる実現例〕
情報処理装置1の機能は、相互に通信可能な複数の装置からなるシステムで実現することもできる。この場合、上述の各処理は、該システムを構成する複数の装置の何れかが行う。例えば、判定結果管理部105を備えた第1の情報処理装置と、誤判定数算出部108を備えた第2の情報処理装置とを設けてもよい。この場合、第2の情報処理装置は、第1の情報処理装置でカウントされた各パターンのカウント数などの情報を用いて誤判定数を算出する。また、例えば、再学習時期決定部109を備えた第3の情報処理装置を設けてもよく、この場合、第3の情報処理装置は、第1の情報処理装置でカウントされた各パターンのカウント数などの情報を用いて再学習時期を決定する。
[Example of implementation by system]
The function of the information processing device 1 can also be realized by a system including a plurality of devices capable of communicating with each other. In this case, each of the above-mentioned processes is performed by any of a plurality of devices constituting the system. For example, a first information processing device provided with a determination result management unit 105 and a second information processing device provided with an erroneous determination number calculation unit 108 may be provided. In this case, the second information processing apparatus calculates the number of erroneous determinations using information such as the count number of each pattern counted by the first information processing apparatus. Further, for example, a third information processing device provided with a relearning time determination unit 109 may be provided, in which case the third information processing device counts each pattern counted by the first information processing device. Use information such as numbers to determine when to relearn.

〔ソフトウェアによる実現例〕
情報処理装置1の制御ブロック(特に制御部10に含まれる各部)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。これは、目視検査端末2および端末装置3の制御ブロックについても同様である。
[Example of implementation by software]
The control block of the information processing apparatus 1 (particularly each part included in the control unit 10) may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or may be realized by software. good. This also applies to the control blocks of the visual inspection terminal 2 and the terminal device 3.

後者の場合、情報処理装置1は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 In the latter case, the information processing apparatus 1 includes a computer that executes instructions of a program that is software that realizes each function. The computer includes, for example, one or more processors and a computer-readable recording medium that stores the program. Then, in the computer, the processor reads the program from the recording medium and executes the program, thereby achieving the object of the present invention. As the processor, for example, a CPU (Central Processing Unit) can be used. As the recording medium, a "non-temporary tangible medium", for example, a ROM (Read Only Memory) or the like, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. Further, a RAM (Random Access Memory) for expanding the above program may be further provided. Further, the program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program. It should be noted that one aspect of the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the above program is embodied by electronic transmission.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and the embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention.

〔付記事項〕
本発明の一態様にかかる情報処理装置は、画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置であって、上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類部による分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得部と、上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分部と、を備えている。
[Additional notes]
The information processing apparatus according to one aspect of the present invention is the above-mentioned classification unit in a determination system for determining whether or not an object belongs to a predetermined classification by classifying the object in an image by a machine-learned classification unit. In the visual determination performed on the classified object by the classification unit, which is an information processing device for classifying the classification results of the above, (1) whether or not the object belongs to the above-mentioned predetermined classification, and (2). The classification unit according to the combination of the visual judgment result acquisition unit that acquires the visual judgment result, which is the result of the judgment of the correctness of the classification result by the classification unit, and the above (1) and (2) in the visual judgment result. It is equipped with a section for classifying the classification results of.

上記情報処理装置は、上記(1)、(2)の組み合わせに応じた区分のうち、上記(2)の目視判定結果が上記分類結果は正しいとの結果である区分に係る分類に用いられた上記画像に対して、上記分類部の分類結果を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていてもよい。 The information processing apparatus was used for the classification according to the classification according to the combination of the above (1) and (2), in which the visual judgment result of the above (2) is the result that the above classification result is correct. A training data generation unit may be provided in which the classification result of the classification unit is associated with the image as correct answer data and used as training data for re-learning of the classification unit.

上記情報処理装置は、上記(1)、(2)の組み合わせに応じた区分のうち、上記(1)の目視判定結果が上記対象物は上記所定の分類に属するとの結果である区分に係る分類に用いられた上記画像に対して、上記所定の分類を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていてもよい。 The information processing apparatus relates to a classification according to the combination of the above (1) and (2), in which the visual determination result of the above (1) is the result that the object belongs to the above predetermined classification. A training data generation unit may be provided in which the predetermined classification is associated with the image used for classification as correct answer data and used as training data for re-learning of the classification unit.

上記訓練データ生成部は、上記分類部の分類結果の確度が閾値未満であった上記画像から上記訓練データを生成するものであってもよい。 The training data generation unit may generate the training data from the image in which the accuracy of the classification result of the classification unit is less than the threshold value.

上記情報処理装置は、上記判定システムの判定結果が上記対象物は上記所定の分類に属するとの結果であった判定に用いられた上記画像に対して、上記分類部の分類結果または上記所定の分類を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていてもよい。 The information processing apparatus has the classification result of the classification unit or the predetermined classification with respect to the image used for the judgment that the judgment result of the judgment system is that the object belongs to the predetermined classification. A training data generation unit may be provided in which the classification is associated with the correct answer data and used as the training data used for the re-learning of the classification unit.

上記情報処理装置では、複数の異なる対象物を撮影した複数の画像のそれぞれについて上記判定システムによる判定が行われた場合に、上記区分部は上記各区分に該当する分類結果の件数をカウントし、上記複数の異なる対象物についての判定のうち、上記判定システムにより上記対象物は上記所定の分類に属すると判定されたが、実際には上記対象物は上記所定の分類に属しておらず、上記分類部が上記所定の分類に属すると誤分類した件数を、上記カウントの結果に基づいて算出する誤判定数算出部を備えていてもよい。 In the information processing apparatus, when a determination is made by the determination system for each of a plurality of images obtained by photographing a plurality of different objects, the division unit counts the number of classification results corresponding to each of the above categories. Of the determinations for the plurality of different objects, the determination system determines that the object belongs to the predetermined classification, but the object does not actually belong to the predetermined classification, and the object does not belong to the predetermined classification. An erroneous determination number calculation unit may be provided, which calculates the number of cases misclassified as belonging to the predetermined classification by the classification unit based on the result of the count.

上記情報処理装置は、上記誤判定数算出部が算出した上記件数が所定の閾値に達するまでの期間内で、上記分類部の再学習の時期を決定する再学習時期決定部を備えていてもよい。 The information processing apparatus may include a relearning time determination unit that determines the relearning time of the classification unit within a period until the number of cases calculated by the erroneous determination number calculation unit reaches a predetermined threshold value. ..

上記情報処理装置は、(上記対象物が上記所定の分類に属しておらず、かつ上記分類部が誤分類する事象が発生する確率)×(上記分類部の分類回数)×(上記事象が発生する場合のうち上記分類部の分類結果が上記所定の分類となる割合)<(所定の閾値)
との数式を満たす上記分類部の分類回数を算出し、上記分類部の分類回数が該算出した分類回数に達する時期を、上記分類部の再学習の時期と決定する再学習時期決定部を備えていてもよい。
The information processing apparatus has (probability that the object does not belong to the predetermined classification and an event that the classification unit misclassifies occurs) × (number of classifications of the classification unit) × (the event occurs). (Probability that the classification result of the above classification unit becomes the above-mentioned predetermined classification) <(predetermined threshold value)
It is provided with a re-learning time determination unit that calculates the number of classifications of the above-mentioned classification unit that satisfies the formula of You may be.

本発明の一態様にかかる情報処理方法は、画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置による情報処理方法であって、上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得ステップと、上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分ステップと、を含む。 The information processing method according to one aspect of the present invention is the above-mentioned classification unit in a determination system for determining whether or not an object belongs to a predetermined classification by classifying the object in an image by a machine-learned classification unit. In the visual determination performed on the classified object by the classification unit, which is an information processing method by the information processing device for classifying the classification result of (1), whether or not the object belongs to the predetermined classification. And (2) the above classification according to the combination of the above (1) and (2) in the above visual judgment result acquisition step for acquiring the visual judgment result which is the result of the judgment of the correctness of the above classification result. Includes a classification step that separates the classification results of the department.

上記情報処理装置としてコンピュータを機能させるための情報処理プログラムであって、上記目視判定結果取得部および上記区分部としてコンピュータを機能させるための情報処理プログラムも本発明の範疇に含まれる。 An information processing program for operating a computer as the information processing apparatus, and an information processing program for operating the computer as the visual determination result acquisition unit and the division unit is also included in the scope of the present invention.

1 情報処理装置
102 分類部
104 正否判定部(判定部)
105 判定結果管理部(区分部)
106 目視判定部(目視判定結果取得部)
107 訓練データ生成部
108 誤判定数算出部
109 再学習時期決定部
1 Information processing device 102 Classification unit 104 Correct / fail judgment unit (judgment unit)
105 Judgment result management department (classification department)
106 Visual judgment unit (visual judgment result acquisition unit)
107 Training data generation unit 108 False judgment number calculation unit 109 Re-learning time determination unit

Claims (12)

画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置であって、
上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類部による分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得部と、
上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分部と、を備えていることを特徴とする情報処理装置。
An information processing device that classifies the classification results of the above classification unit in a determination system that determines whether or not the object belongs to a predetermined classification by classifying the object in the image by a machine-learned classification unit. ,
In the visual determination performed on the objects classified by the classification unit, (1) whether or not the object belongs to the above-mentioned predetermined classification, and (2) whether or not the classification result by the above-mentioned classification unit is correct or not are determined. A visual judgment result acquisition unit that acquires the visual judgment result, which is the result, and a visual judgment result acquisition unit.
An information processing apparatus comprising: a classification unit for classifying the classification results of the classification unit according to the combination of the above (1) and (2) in the visual determination result.
上記(1)、(2)の組み合わせに応じた区分のうち、上記(2)の目視判定結果が上記分類部の分類結果は正しいとの結果である区分に係る分類に用いられた上記画像に対して、上記分類部の分類結果を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていることを特徴とする請求項1に記載の情報処理装置。 Of the categories according to the combination of (1) and (2), the above image used for the classification related to the category in which the visual judgment result of the above (2) is the result that the classification result of the classification unit is correct. On the other hand, the information processing according to claim 1, wherein the information processing according to claim 1 is provided with a training data generation unit which associates the classification result of the classification unit with the correct answer data and uses the training data for re-learning of the classification unit. Device. 上記(1)、(2)の組み合わせに応じた区分のうち、上記(1)の目視判定結果が上記対象物は上記所定の分類に属するとの結果である区分に係る分類に用いられた上記画像に対して、上記所定の分類を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていることを特徴とする請求項1に記載の情報処理装置。 Among the classifications according to the combination of the above (1) and (2), the above used for the classification related to the classification in which the visual judgment result of the above (1) is the result that the object belongs to the above predetermined classification. The information processing according to claim 1, wherein the image is provided with a training data generation unit that associates the predetermined classification with the correct answer data and uses the training data for re-learning of the classification unit. Device. 上記訓練データ生成部は、上記分類部の分類結果の確度が閾値未満であった上記画像から上記訓練データを生成することを特徴とする請求項2または3に記載の情報処理装置。 The information processing apparatus according to claim 2 or 3, wherein the training data generation unit generates the training data from the image in which the accuracy of the classification result of the classification unit is less than the threshold value. 上記判定システムの判定結果が上記対象物は上記所定の分類に属するとの結果であった判定に用いられた上記画像に対して、上記分類部の分類結果または上記所定の分類を正解データとして対応付けて、上記分類部の再学習に用いる訓練データとする訓練データ生成部を備えていることを特徴とする請求項1に記載の情報処理装置。 Corresponds to the classification result of the classification unit or the predetermined classification as correct answer data for the image used for the judgment that the judgment result of the judgment system is that the object belongs to the predetermined classification. The information processing apparatus according to claim 1, further comprising a training data generation unit which is used as training data for re-learning of the classification unit. 複数の異なる対象物を撮影した複数の画像のそれぞれについて上記判定システムによる判定が行われた場合に、上記区分部は上記各区分に該当する上記分類部の分類結果の件数をカウントし、
上記複数の異なる対象物についての判定のうち、上記判定システムにより上記対象物は上記所定の分類に属すると判定されたが、実際には上記対象物は上記所定の分類に属しておらず、上記分類部が上記所定の分類に属すると誤分類した件数を、上記カウントの結果に基づいて算出する誤判定数算出部を備えていることを特徴とする請求項1から5の何れか1項に記載の情報処理装置。
When a judgment is made by the judgment system for each of a plurality of images obtained by photographing a plurality of different objects, the classification unit counts the number of classification results of the classification unit corresponding to each of the above categories.
Of the determinations for the plurality of different objects, the determination system determines that the object belongs to the predetermined classification, but the object does not actually belong to the predetermined classification, and the object does not belong to the predetermined classification. 2. Information processing equipment.
上記誤判定数算出部が算出した上記件数が所定の閾値に達するまでの期間内で、上記分類部の再学習の時期を決定する再学習時期決定部を備えていることを特徴とする請求項6に記載の情報処理装置。 6. The claim 6 is characterized in that it includes a re-learning time determination unit that determines the re-learning time of the classification unit within a period until the number of cases calculated by the erroneous determination number calculation unit reaches a predetermined threshold value. The information processing device described in. (上記対象物が上記所定の分類に属しておらず、かつ上記分類部が誤分類する事象が発生する確率)×(上記分類部の分類回数)×(上記事象が発生する場合のうち上記分類部の分類結果が上記所定の分類となる割合)<(所定の閾値)
との数式を満たす上記分類部の分類回数を算出し、上記分類部の分類回数が該算出した分類回数に達する時期を、上記分類部の再学習の時期と決定する再学習時期決定部を備えていることを特徴とする請求項1から6の何れか1項に記載の情報処理装置。
(Probability that the object does not belong to the predetermined classification and an event of misclassification by the classification unit occurs) × (number of classifications of the classification unit) × (classification of the case where the above event occurs) The ratio of the classification result of the part to the above-mentioned predetermined classification) <(predetermined threshold value)
It is provided with a re-learning time determination unit that calculates the number of classifications of the above-mentioned classification unit that satisfies the formula of The information processing apparatus according to any one of claims 1 to 6, wherein the information processing apparatus is characterized by the above.
上記判定システムでは、上記分類部の分類結果の確度が閾値以上であった場合に、当該分類結果に基づいて上記対象物が所定の分類に属するか否かを判定し、
上記確度と、当該確度の分類結果のうち正しい分類結果の割合である分類成功率との相関関係に基づき、上記分類成功率が所定の下限値以上となる上記閾値を決定する閾値決定部を備えていることを特徴とする請求項1から8の何れか1項に記載の情報処理装置。
In the determination system, when the accuracy of the classification result of the classification unit is equal to or higher than the threshold value, it is determined whether or not the object belongs to a predetermined classification based on the classification result.
A threshold value determining unit for determining the threshold value at which the classification success rate is equal to or higher than a predetermined lower limit value is provided based on the correlation between the accuracy and the classification success rate, which is the ratio of the correct classification results among the classification results of the accuracy. The information processing apparatus according to any one of claims 1 to 8, wherein the information processing apparatus is characterized by the above.
上記閾値決定部は、上記分類部の再学習が行われる度に、再学習後における、上記確度と、当該確度の分類結果における分類成功率との相関関係に基づき、上記閾値を決定することを特徴とする請求項9に記載の情報処理装置。 Each time the classification unit is relearned, the threshold value determination unit determines the threshold value based on the correlation between the accuracy after the relearning and the classification success rate in the classification result of the accuracy. The information processing apparatus according to claim 9. 画像中の対象物を機械学習済みの分類部で分類することにより当該対象物が所定の分類に属するか否かを判定する判定システムにおける上記分類部の分類結果を区分する情報処理装置による情報処理方法であって、
上記分類部による分類済みの対象物について行われた目視判定において、(1)上記対象物の上記所定の分類への属否、および(2)上記分類部の分類結果の正否、が判定された結果である目視判定結果を取得する目視判定結果取得ステップと、
上記目視判定結果における上記(1)、(2)の組み合わせに応じて上記分類部の分類結果を区分する区分ステップと、を含むことを特徴とする情報処理方法。
Information processing by an information processing device that classifies the classification results of the above classification unit in the determination system that determines whether or not the object belongs to a predetermined classification by classifying the object in the image by the machine-learned classification unit. It ’s a method,
In the visual determination performed on the classified object by the classification unit, (1) whether or not the object belongs to the above-mentioned predetermined classification, and (2) whether or not the classification result of the above-mentioned classification unit is correct or not are determined. The visual judgment result acquisition step for acquiring the visual judgment result, which is the result, and the visual judgment result acquisition step,
An information processing method comprising: a classification step for classifying the classification results of the classification unit according to the combination of the above (1) and (2) in the visual determination result.
請求項1に記載の情報処理装置としてコンピュータを機能させるための情報処理プログラムであって、上記目視判定結果取得部および上記区分部としてコンピュータを機能させるための情報処理プログラム。 The information processing program for operating a computer as the information processing device according to claim 1, wherein the computer functions as the visual determination result acquisition unit and the division unit.
JP2018166402A 2018-09-05 2018-09-05 Information processing equipment, information processing methods, and information processing programs Active JP6995031B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018166402A JP6995031B2 (en) 2018-09-05 2018-09-05 Information processing equipment, information processing methods, and information processing programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018166402A JP6995031B2 (en) 2018-09-05 2018-09-05 Information processing equipment, information processing methods, and information processing programs

Publications (2)

Publication Number Publication Date
JP2020038579A JP2020038579A (en) 2020-03-12
JP6995031B2 true JP6995031B2 (en) 2022-01-14

Family

ID=69738104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018166402A Active JP6995031B2 (en) 2018-09-05 2018-09-05 Information processing equipment, information processing methods, and information processing programs

Country Status (1)

Country Link
JP (1) JP6995031B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022044118A1 (en) * 2020-08-25 2022-03-03 日本電信電話株式会社 Rule analysis device, method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009210535A (en) 2008-03-06 2009-09-17 Ishida Co Ltd X-ray inspection apparatus
JP2014207110A (en) 2013-04-12 2014-10-30 株式会社日立ハイテクノロジーズ Observation apparatus and observation method
US20150193698A1 (en) 2014-01-06 2015-07-09 Nec Corporation Data processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5621967B2 (en) * 2010-07-09 2014-11-12 富士電機株式会社 Abnormal data analysis system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009210535A (en) 2008-03-06 2009-09-17 Ishida Co Ltd X-ray inspection apparatus
JP2014207110A (en) 2013-04-12 2014-10-30 株式会社日立ハイテクノロジーズ Observation apparatus and observation method
US20150193698A1 (en) 2014-01-06 2015-07-09 Nec Corporation Data processing device
JP6291844B2 (en) 2014-01-06 2018-03-14 日本電気株式会社 Data processing device

Also Published As

Publication number Publication date
JP2020038579A (en) 2020-03-12

Similar Documents

Publication Publication Date Title
US11087227B2 (en) Anomaly detection in spatial and temporal memory system
CN109060817B (en) Artificial intelligence reinspection system and method thereof
US20220196760A1 (en) Transformer fault diagnosis method and system using induced ordered weighted evidence reasoning
WO2014145977A1 (en) System and methods for automated plant asset failure detection
JP6584250B2 (en) Image classification method, classifier configuration method, and image classification apparatus
JP2020085583A (en) Inspection device and inspection method
CN114820598B (en) PCB defect detection system and PCB defect detection method
US20230376026A1 (en) Automated real-time detection, prediction and prevention of rare failures in industrial system with unlabeled sensor data
JP6995031B2 (en) Information processing equipment, information processing methods, and information processing programs
JP2020123308A (en) Re-repair substrate detection device, method, and computer-readable storage medium
US20070300302A1 (en) Suppresssion Of False Alarms Among Alarms Produced In A Monitored Information System
US11287807B2 (en) Defect detection during an automated production process
US20200005084A1 (en) Training method of, and inspection system based on, iterative deep learning system
JP2022122862A (en) Prediction score calculation device, prediction score calculation method, prediction score calculation program and learning device
US8301584B2 (en) System and method for adaptive pruning
CN112949785B (en) Object detection method, device, equipment and computer storage medium
JP2020177430A (en) Information processing apparatus, information processing method, and program
JP2019158684A (en) Inspection system, identification system, and discriminator evaluation device
JP7219016B2 (en) Determination device, determination method, and object determination program
JP7219023B2 (en) Information processing device and object determination program
CN111277465A (en) Abnormal data message detection method and device and electronic equipment
CN111160330B (en) Training method for improving image recognition accuracy with assistance of electronic tag recognition
EP3748549B1 (en) Learning device and learning method
CN113269268A (en) Data matching method and system based on big data and cloud platform
US20200234179A1 (en) System and method for context-based training of a machine learning model

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201221

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211126

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211214

R150 Certificate of patent or registration of utility model

Ref document number: 6995031

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150