JP2020046731A - Determination result output device, determination result output method, and determination result output program - Google Patents
Determination result output device, determination result output method, and determination result output program Download PDFInfo
- Publication number
- JP2020046731A JP2020046731A JP2018172590A JP2018172590A JP2020046731A JP 2020046731 A JP2020046731 A JP 2020046731A JP 2018172590 A JP2018172590 A JP 2018172590A JP 2018172590 A JP2018172590 A JP 2018172590A JP 2020046731 A JP2020046731 A JP 2020046731A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- determination result
- learned
- pass
- result output
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 21
- 230000002950 deficient Effects 0.000 claims abstract description 88
- 238000013527 convolutional neural network Methods 0.000 claims description 115
- 230000006870 function Effects 0.000 claims description 5
- 238000012549 training Methods 0.000 description 9
- 238000013528 artificial neural network Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000002184 metal Substances 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 238000002790 cross-validation Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000003066 decision tree Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000007637 random forest analysis Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、判定結果出力装置等に関する。 The present invention relates to a determination result output device and the like.
従来から、ニューラルネットワークを用いた画像認識技術が開発されている。このような画像認識技術の一例として、例えば特許文献1及び2に開示されている。 Conventionally, an image recognition technology using a neural network has been developed. Examples of such an image recognition technique are disclosed in Patent Documents 1 and 2, for example.
特許文献1のパターン認識学習方法では、入力された画像データから検出した複数の局所的特徴から、複数の代表局所特徴を選択し、当該代表局所特徴を教師データとして含む学習用データセットを用いて学習済モデルを構築している。 In the pattern recognition learning method of Patent Document 1, a plurality of representative local features are selected from a plurality of local features detected from input image data, and a learning data set including the representative local features as teacher data is used. You are building a trained model.
特許文献2の画像認識システムでは、画像データから被写体の全体の像と所定部分の像とを抽出し、抽出した像毎に個別判定ニューラルネットワークを用いて学習させる。各個別判定ニューラルネットワークの認識結果を、総合判定ニューラルネットワークに入力することで、学習済モデルが構築される。実際の被写体の認証についても、学習済モデルの構築方法と同様の方法で行われる。 In the image recognition system of Patent Document 2, an entire image of a subject and an image of a predetermined portion are extracted from image data, and learning is performed for each extracted image using an individual determination neural network. A learned model is constructed by inputting the recognition result of each individual determination neural network to the comprehensive determination neural network. The authentication of the actual subject is performed in the same manner as the method of constructing the learned model.
しかしながら、特許文献1では、構築される学習済モデルは1つである。例えば、学習済モデルに入力される画像に変化が生じた場合には出力結果が異なり、その結果、当該画像に含まれる対象物が不良品であるにもかかわらず良品と誤判定してしまう可能性がある。誤判定の解消を図るためには、学習済モデル自体を作成しなおす必要があり、この場合非常に手間がかかる。 However, in Patent Literature 1, one learned model is constructed. For example, if a change occurs in the image input to the trained model, the output result is different, and as a result, the target included in the image may be erroneously determined to be good even though it is defective. There is. In order to eliminate the erroneous determination, it is necessary to recreate the learned model itself, and in this case, it takes much time and effort.
特許文献2では、全体の像及び所定部分の像を含む画像を用いて被写体の認証を行うため、個別判定ニューラルネットワークでの判定結果を総合判定ニューラルネットワークに入力することで最終的な判定結果を取得している。そのため、より簡易に判定結果を出力することは困難である。 In Patent Literature 2, in order to authenticate a subject using an image including an entire image and an image of a predetermined portion, a final determination result is input by inputting a determination result in an individual determination neural network to a comprehensive determination neural network. Have acquired. Therefore, it is difficult to output the determination result more easily.
本発明の一態様は、対象物の良否判定を、簡易にかつ精度良く行うことが可能な判定結果出力装置等を実現することを目的とする。 An object of one embodiment of the present invention is to realize a determination result output device or the like that can easily and accurately determine the acceptability of an object.
上記の課題を解決するために、本発明の一態様に係る判定結果出力装置は、入力された画像データに含まれる対象物の良否判定の結果を出力する判定結果出力装置であって、前記画像データに対して、互いに異なる複数の学習済モデルを適用することで、当該学習済モデルのそれぞれにおいて、前記対象物の良否判定を行う一次良否判定部と、前記一次良否判定部による前記良否判定の結果のうちの少なくとも1つの良否判定の結果が、前記対象物が不良品であることを示す場合、前記対象物が不良品であると最終的に判定する最終良否判定部と、を備える。 In order to solve the above problem, a determination result output device according to an aspect of the present invention is a determination result output device that outputs a result of a pass / fail determination of a target included in input image data, By applying a plurality of different learned models to the data, in each of the learned models, a primary pass / fail determination unit that performs pass / fail determination of the object, and a pass / fail determination of the primary pass / fail determination unit by the primary pass / fail determination unit. When at least one of the results of the pass / fail determination indicates that the target is a defective product, the device further includes a final pass / fail determination unit that finally determines that the target is a defective product.
また、上記の課題を解決するために、本発明の一態様に係る判定結果出力方法は、入力された画像データに含まれる対象物の良否判定の結果を出力する判定結果出力方法であって、前記画像データに対して、互いに異なる複数の学習済モデルを適用することで、当該学習済モデルのそれぞれにおいて、前記対象物の良否判定を行う一次良否判定ステップと、前記一次良否判定ステップにおける前記良否判定の結果のうちの少なくとも1つの良否判定の結果が、前記対象物が不良品であることを示す場合、前記対象物が不良品であると最終的に判定する最終良否判定ステップと、を含む。 Further, in order to solve the above problem, a determination result output method according to an aspect of the present invention is a determination result output method for outputting a result of a pass / fail determination of an object included in input image data, By applying a plurality of different learned models to the image data, in each of the learned models, a primary pass / fail determination step of performing pass / fail determination of the object, and the pass / fail in the primary pass / fail determination step When at least one of the determination results indicates that the object is defective, a final quality determination step for finally determining that the object is defective. .
本発明の一態様によれば、対象物の良否判定を、簡易にかつ精度良く行うことができる。 According to one embodiment of the present invention, the quality of an object can be easily and accurately determined.
〔実施形態1〕
以下、本発明の一実施形態の判定結果出力装置1Aについて、詳細に説明する。
[Embodiment 1]
Hereinafter, the determination result
判定結果出力装置1Aは、対象物を撮像装置2によって撮像した画像データに基づいて、当該対象物が良品であるか不良品であるかを判定し、その判定結果を出力する装置である。換言すれば、判定結果出力装置1Aは、入力された画像データに含まれる対象物の良否判定の結果を出力する装置である。本実施形態では、上記対象物として板金を例に挙げて説明する。板金の良否判定の基準としては、例えば、疵の有無、色彩、欠けなどが挙げられる。
The determination
(判定結果出力装置1Aの構成)
図1は、判定結果出力装置1Aの要部構成を示すブロック図である。図1に示すように、判定結果出力装置1Aは、一次良否判定部10と、最終良否判定部20と、表示部30とを備えている。
(Configuration of the determination
FIG. 1 is a block diagram illustrating a main configuration of the determination
一次良否判定部10は、図1に示すように、複数の学習済CNN(畳み込みニューラルネットワーク、Convolutional Neural Network)11を備えている。学習済CNN11は、入力された画像データに含まれる対象物の良否判定の結果を出力する。学習済CNN11のそれぞれは、予め機械学習によって作成された学習済モデルである。学習済CNN11のそれぞれは、機械学習において入力される教師データを異ならせることにより、互いに異なるモデルとなっている。
As shown in FIG. 1, the primary pass /
ここで、学習済CNN11の作成方法(学習方法)について説明する。なお、以下の説明は、一例であり、本発明における学習済CNN11が下記の説明の方法で作成されるものに限定されるものではない。図2は、学習済CNN11の作成方法を示すものであり、(a)は、学習済CNN11の作成における学習過程を示す概念図であり、(b)は、学習済CNN11の作成における検定過程を示す概念図である。学習済CNN11は、図2に示すように、学習装置100によって作成される。
Here, a method of creating the learned CNN 11 (learning method) will be described. The following description is an example, and the present invention is not limited to the case where the learned CNN 11 is created by the method described below. 2A and 2B show a method of creating a learned CNN11. FIG. 2A is a conceptual diagram showing a learning process in creating a learned CNN11, and FIG. 2B shows a test process in creating a learned CNN11. FIG. The learned CNN 11 is created by the
学習済CNN11の作成方法では、まず、教師データ(学習データ)として、所定の数(ここでは、1000枚とする)の板金の画像データを用意する。当該教師データのうち、所定の割合の画像データは良品の板金の画像データであり、残りの画像データは不良品の板金の画像データである。教師データにおいて、良品か不良品かは予めユーザによって特定されている。 In the method of creating the learned CNN 11, first, a predetermined number (here, 1000 sheets) of sheet metal image data is prepared as teacher data (learning data). Of the teacher data, a predetermined percentage of image data is image data of non-defective sheet metal, and the remaining image data is image data of defective sheet metal. In the teacher data, a good or defective product is specified in advance by the user.
次に、学習装置100は、CNNに学習させるための画像データセット31(学習データセット)を作成する。学習装置100は、例えば、各CNNのために、1000枚の教師データの中から、200枚の教師データをランダムに抽出することによって画像データセット31を作成する。それぞれのCNNにおける学習データとしての画像データセット31は、互いに異なる画像データセットとする。ただし、画像データセット31のすべての画像データが他の画像データセット31の画像データと異なっている必要はなく、画像データセット31の一部の画像データは、他の画像データセット31の画像データと重複していてもよい。本実施形態では、すべての画像データセット31において、良品の画像データの数と、不良品の画像データの数との比を一定とする。
Next, the
次に、学習装置100は、各CNNについて、画像データセット31を用いて学習済モデルを作成する。
具体的には、学習装置100は、まず、200枚の画像データのうち、160枚を、CNNに学習させるためのトレーニング用画像データ(以降、トレーニング画像データ)として選定する。また、学習装置100は、残りの40枚を、CNNのパラメータを調整するための交叉検定画像データ(以降、交叉検定画像データ)として選定する。これらの選定もランダムに行われる。
Next, the
Specifically, the
次に、学習装置100は、図2の(a)に示すように、CNNに対して160枚のトレーニング画像データのうち、ランダムに抽出した40枚のトレーニング画像データを入力することによりCNNに学習させる。次に、学習装置100は、図2の(b)に示すように、学習させたCNNに対して交叉検定画像データを入力していくことで、良否判定の精度を向上させるためにCNNのパラメータを調整する。次に、学習装置100は、160枚のトレーニング画像データのうち先程とは異なる40枚のトレーニング画像データを入力することによりCNNにさらに学習させる。次に、学習装置100は、学習させたCNNに対して交叉検定画像データを入力させ、良否判定の精度を向上させるためにCNNのパラメータをさらに調整する。以降、学習装置100は、当該処理を繰り返すことにより、1つ目のCNNについて学習済CNN11を作成する。学習装置100は、他のCNNについても同様の学習をさせることにより、学習済CNN11を作成する。
Next, as shown in FIG. 2A, the
ここで、上述したように、各学習済CNN11の学習において、学習データとしての画像データセットは、互いに異なる画像データセットとしている。これにより、学習済CNN11のそれぞれは、互いに異なる学習済モデルとなる。
Here, as described above, in the learning of each learned
各学習済CNN11は、入力された画像データに対する良否判定結果として、当該画像データに含まれる対象物が良品であるか、又は不良品であるかを出力する。具体的には、各学習済CNN11は、対象物が良品であると判定できる確率(判定精度)を算出し、その算出結果を、良否判定の基準となる閾値と比較することで、良品又は不良品との判定結果を出力する。
Each of the learned
各学習済CNN11は、例えば対象物を良品と判定するための指標である閾値と比較することで、良品又は不良品との判定結果を出力する。各学習済CNN11は、良品であると判定できる確率が閾値以上であれば良品と判定し、閾値未満であれば不良品と判定する。
Each learned
例えば、任意の学習済CNN11からの出力結果が、良品であると判定できる確率が65%であり、不良品であると判定できる確率が35%であることを示している場合であって、当該学習済CNN11の閾値が50%と設定されている場合を考える。この場合、出力結果(良品であると判定できる確率:65%)が当該閾値(50%)を超えているため、当該学習済CNN11は、対象物が良品であると判定する。
For example, this is a case where the output result from any learned
但し、上記閾値は、対象物を不良品と判定するための指標である閾値であっても構わない。この場合、各学習済CNN11は、対象物が不良品であると判定できる確率を算出し、その算出結果を、当該閾値と比較することで、良品又は不良品との判定結果を出力する。各学習済CNN11は、不良品であると判定できる確率が閾値以上であれば不良品と判定し、閾値未満であれば良品と判定する。
However, the threshold value may be a threshold value which is an index for determining a target object as a defective product. In this case, each learned
例えば、任意の学習済CNN11からの出力結果が、良品であると判定できる確率が65%であり、不良品であると判定できる確率が35%であることを示している場合であって、当該学習済CNN11の閾値が50%と設定されている場合を考える。この場合、出力結果(不良品であると判定できる確率:35%)が当該閾値(50%)未満であるため、当該学習済CNN11は、対象物が良品であると判定する。
For example, this is a case where the output result from any learned
なお、上記閾値は、学習済CNN11毎に設定されている。上述のように、各学習済CNN11を作成するためのCNNに入力する画像データセット31は異なるため、各学習済CNN11は、互いに異なる学習済モデルとなっている。そのため、各学習済CNN11に同じ画像データを入力しても、その出力結果(上記確率)は異なる可能性がある。従って、各学習済CNN11において精度良く良否判定結果を得るために、実験等を経て、各学習済CNN11に適した閾値がそれぞれ設定されている。
The threshold is set for each learned
以上のように、複数の学習済CNN11は、互いに異なるモデルとなっているため、同一の画像データが入力されたときに、それぞれの出力結果が異なる可能性を有している。複数の学習済CNN11のそれぞれは、入力された画像データに含まれる対象物の良否判定の結果を最終良否判定部20に出力する。
As described above, since the plurality of learned
最終良否判定部20は、判定結果出力装置1Aにおける対象物の最終的な良否を判定する。最終良否判定部20は、複数の学習済CNN11からそれぞれ出力された対象物の良否判定結果を用いて、最終的な良否判定を行う。具体的には、最終良否判定部20は、複数の学習済CNN11から入力されたすべての良否判定の結果が良品判定であることを示す場合においてのみ、対象物を良品と判定する。換言すれば、最終良否判定部20は、複数の学習済CNN11から入力された判定結果のうちの少なくとも1つの良否判定の結果が不良品であることを示す場合には、対象物を不良品であると判定する。最終良否判定部20は、良否判定の結果を表示部30に出力する。
The final pass /
表示部30は、最終良否判定部20から入力された判定結果を表示する装置である。表示部30は、特に限定されるものではないが、例えば、液晶ディスプレイなどである。なお、判定結果を出力する出力装置は、表示部30に限らず、判定結果を音で出力するスピーカ等であっても構わない。また、出力装置は、判定結果出力装置1Aに備えられる必要は必ずしもなく、判定結果出力装置1Aと接続可能な、判定結果出力装置1Aの外部装置として設けられても構わない。
The
(判定結果出力装置1Aの動作)
次に、本実施形態における判定結果出力装置1Aの動作(換言すれば、判定結果出力方法)について、図1を参照しながら説明する。
(Operation of the determination
Next, the operation of the determination
本実施形態の判定結果出力方法は、一次良否判定ステップと、最終良否判定ステップとを含む。 The determination result output method according to the present embodiment includes a primary pass / fail determination step and a final pass / fail determination step.
一次良否判定ステップでは、互いに異なる複数の学習済CNN11を適用することで、学習済CNN11のそれぞれにおいて、画像データ(対象物)の良否判定を行う。最終良否判定ステップでは、一次良否判定ステップでの複数の良否判定の結果に基づき、最終的な対象物の良否判定を行う。
In the primary pass / fail determination step, pass / fail determination of image data (object) is performed in each of the learned
実施形態の判定結果出力方法では、図1に示すように、まず、良否判定を行う対象物の画像データを一次良否判定部10が備える各学習済CNN11に入力する。次に、各学習済CNN11が当該画像データについて良否判定を行う(一次良否判定ステップ)。次に、各学習済CNN11は、良否判定結果を最終良否判定部20へ出力する。
In the determination result output method according to the embodiment, as shown in FIG. 1, first, image data of an object for which the quality determination is performed is input to each learned
次に、最終良否判定部20が、複数の学習済CNN11から出力された良否判定結果に基づいて、対象物の最終的な良否を判定する(最終良否判定ステップ)。具体的には、最終良否判定部20は、複数の学習済CNN11から出力されたすべて良否判定結果が良品判定であることを示す場合においてのみ、対象物を良品と判定する。換言すれば、最終良否判定部20は、一次良否判定部10から入力された複数の判定結果のうちの少なくとも1つの良否判定の結果が不良品であることを示す場合に、対象物を不良品であると判定する。具体例について、図3を参照しながら説明する。
Next, the final pass /
図3は、本実施形態における判定結果出力装置1Aを用いた判定結果の例を示す表である。図3では、複数(5つ)の学習済CNN11を区別するために、学習済CNN11A〜学習済CNN11Eと記載している。
FIG. 3 is a table showing an example of a determination result using the determination
図3に示すように、製品Aについては、学習済CNN11A〜学習済CNN11Eのすべてが良品であると判定している。このため、最終良否判定部20は、製品Aを良品であると判定する。これに対して、製品B〜製品Dについては、学習済CNN11A〜学習済CNN11Eの少なくとも1つが不良品であると判定している。このため、最終良否判定部20は、製品B〜製品Dを不良品であると判定する。
As shown in FIG. 3, for the product A, all of the learned CNN 11A to the learned CNN 11E are determined to be good. For this reason, the final pass /
ここで、学習済CNN11に入力される画像データは、対象物を撮像した画像データの画素数、又は、画像データにおける対象物を撮像する方向が学習時から変化する場合がある。換言すれば、学習済CNN11に入力される画像に変化が生じる場合がある。このような場合、従来では、良否判定を行うために学習済CNNを1つのみ用いていたため、画像データが学習時から変化した場合、不良品を良品と判定しまう可能性があった。
Here, in the image data input to the learned
これに対して、判定結果出力装置1Aでは、最終良否判定部20に対して、複数の学習済CNN11からそれぞれ対象物の良否判定結果が入力される。そして、最終良否判定部20は、複数の学習済CNN11から入力されたすべての良否判定の結果が良品判定であることを示す場合においてのみ、対象物を良品と判定する。換言すれば、最終良否判定部20は、複数の学習済CNN11から入力された判定結果のうちの少なくとも1つの良否判定の結果が不良品であることを示す場合に、対象物を不良品であると判定する。
On the other hand, in the determination
上記の構成によれば、学習済CNN11に入力される画像に変化が生じた場合においても、複数の学習済CNN11のすべてが良品と判断しなければ、最終的に良品と判定しないため、不良品を良品と判定する可能性を低減することができる。
According to the above configuration, even when the image input to the learned
次に、同一の対象物(製品E)について、画像データの解像度(画素数)を変化させて、本発明の判定結果出力装置1Aにより良品判定を行う場合について、図4を参照しながら説明する。図4は、判定結果出力装置1Aを用いた判定結果の例を示す表である。図4に示す例では、例1から例4に向かうにつれて画像データの解像度を下げたときの判定結果を示す。ここでは、製品Eが不良品であるものとして説明する。
Next, a case in which the same object (product E) is changed in resolution (number of pixels) of image data and a non-defective item is judged by the judgment
CNNを用いた良否判定では、画像データの解像度によって良否判定が異なることがある。そのため、従来のように1つの学習済CNNを用いて良否判定をする場合、誤った判定をしてしまう可能性が高くなる。 In the quality judgment using the CNN, the quality judgment may differ depending on the resolution of the image data. Therefore, when the pass / fail judgment is performed using one learned CNN as in the related art, the possibility of erroneous judgment increases.
これに対して、判定結果出力装置1Aでは、図4に示すように、例2及び例3にように、画像データの解像度の低下によって複数の学習済CNN11のうちの一部の学習済CNN11が対象物を良品であると判定したとしても、他の学習済CNN11が不良品であると判定することにより、当該対象物が不良品であると判定することができる。従って、対象物の良否判定を、従来よりも精度良く行うことができる。また、判定結果出力装置1Aでは、特許文献2のような総合判定ニューラルネットワークを必要としないため、簡易にかつ精度良く行うことができる。
On the other hand, in the determination
なお、本実施形態では、学習済CNN11の作成において、すべての画像データセット31に含まれる、良品の画像データの数と、不良品の画像データの数との比を一定としている。これにより、学習済CNN11におけるパラメータの設定を容易にすることができる。
In the present embodiment, when creating the learned
ただし、本発明の一態様では、学習済CNN11の作成において、それぞれの画像データセット31に含まれる、良品の画像データの数と、不良品の画像データの数との比を異ならせてもよい。これにより、学習済CNN11毎に更に異なる特徴を持たせることができる。その結果、画像データによって、各学習済CNN11の判定精度を異ならせることができ、不良品を良品と判定する可能性を低減させることができる。
However, in one embodiment of the present invention, in creating the learned
学習済CNN11が有する特徴としては、例えば、良品もしくは不良品と判定しやすい、又は、疵の有無、色彩、欠け等の特定の指標に特化した良否判定を行うといった特徴が挙げられる。例えば、
(1)画像データセット31に含める画像データの数、
(2)画像データセット31に含める、良品の画像データの数と不良品の画像データの数との比、
(3)画像データセット31に含める、トレーニング画像データの数と交叉検定画像データの数との比、
(4)画像データセット31に含める画像データの解像度、
(5)画像データセット31に含める画像データの種類(例:カラー画像又は2値化画像)、又は、
(6)学習時に設定する各種パラメータ(例:最適化関数)、
といった各種条件を変更することによって、上記特徴を変更することも可能である。学習装置100は、上記条件の少なくとも何れかを変更することで、例えば、疵の特定に強い(僅かな傷でも不良品と判定する)学習済CNN11、又は、欠けの特定に強い(僅かな欠けでも不良品と判定する)学習済CNN11を作成することも可能となる。なお当然ながら、用意する教師データに含まれる対象物の状態によっても、学習済CNN11の特徴は異なってくる。
The feature of the learned
(1) The number of image data to be included in the
(2) the ratio of the number of non-defective image data to the number of defective image data included in the
(3) The ratio of the number of training image data to the number of cross-validation image data to be included in the
(4) resolution of image data to be included in the
(5) The type of image data to be included in the image data set 31 (eg, a color image or a binary image), or
(6) Various parameters to be set at the time of learning (example: optimization function),
It is also possible to change the above characteristics by changing various conditions such as the above. By changing at least one of the above conditions, the
また、本実施形態では、学習装置100は、用意された画像データから所定数の画像データをランダムに選定しているが、これに限らず例えば、用意された画像データの全てを各CNNに入力しても構わない。また、各CNNに入力されるために選定される所定数の画像データ群(各画像データセット31の元となる画像データ)は、互いに同じであっても構わない。但しこの場合、各CNNに入力する画像データセット31のそれぞれにおいて、例えば上記(2)〜(6)の少なくとも何れかを異ならせる。
In the present embodiment, the
また、学習装置100は、学習済CNN11毎に上記条件の少なくとも何れかを異ならせることで、互いに異なる学習済CNN11(上記特徴が異なる学習済CNN11)を作成しても構わない。この場合、学習装置100は、例えば、疵の特定に強い学習済CNN11と欠けの特定に強い学習済CNN11とを作成し、一次良否判定部10に持たせることも可能となる。
The
但し、所定の特徴を持たせるためにどの設定をどの程度変更するかを特定することは極めて困難である。そのため、本実施形態では、互いに異なる学習済CNN11を簡易に生成するために、教師データをランダムに選定することで画像データセット31を作成している。
However, it is extremely difficult to specify which setting is changed and how much to give a predetermined characteristic. Therefore, in the present embodiment, the
なお、本実施形態の判定結果出力装置1Aでは、一次良否判定部10は、複数の学習済CNN11を用いる態様であったが、本発明の判定結果出力装置はこれに限られない。本発明の判定結果出力装置は、一次良否判定部が、良否判定を行う複数の学習済モデルを適用するものであればよく、例えば、CNNの代わりに、サポートベクターマシン、決定木、ランダムフォレストなどのモデルを用いてもよい。
In the determination
〔実施形態2〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
[Embodiment 2]
Another embodiment of the present invention will be described below. For convenience of description, members having the same functions as those described in the above embodiment are denoted by the same reference numerals, and description thereof will not be repeated.
実施形態1では、各学習済CNN11で用いられる閾値は予め定められている。一方、本実施形態では、各学習済CNN11で用いられる閾値はそれぞれ調整可能である。つまり、各学習済CNN11には、閾値が調整(変更)可能に設定されている。例えば、各学習済CNN11で用いられる閾値はそれぞれ、操作部(不図示)がユーザ操作を受け付けることで調整される。
In the first embodiment, the threshold value used in each learned
例えば、任意の学習済CNN11からの出力結果が、良品であると判定できる確率が65%であり、不良品であると判定できる確率が35%であることを示している場合を考える。
For example, consider a case in which the output result from an arbitrary learned
上記学習済CNN11の閾値が対象物を良品と判定するための指標であり、かつ当該閾値が50%に設定された場合、出力結果(良品であると判定できる確率:65%)は当該閾値(50%)を超えている。そのため、当該学習済CNN11は、対象物が良品であると判定する。一方、当該学習済CNN11の閾値が70%に設定された場合、出力結果(良品であると判定できる確率:65%)は当該閾値(70%)未満となる。そのため、当該学習済CNN11は対象物が不良品であると判定する。
When the threshold value of the learned
また、上記学習済CNN11の閾値が対象物を不良品と判定するための指標であり、かつ当該閾値が50%に設定された場合、出力結果(不良品であると判定できる確率:35%)が当該閾値(50%)未満であるため、当該学習済CNN11は対象物が良品であると判定する。一方、当該学習済CNN11の閾値を30%に設定した場合、出力結果(不良品であると判定できる確率:35%)が当該閾値(30%)を超えているため、当該学習済CNN11は対象物が不良品であると判定する。
In addition, when the threshold value of the learned
このように、閾値を調整することにより、判定対象の画像データ(判定対象の対象物)が同じであっても、学習済CNN11から出力される判定結果を異ならせることが可能となる。
As described above, by adjusting the threshold value, it is possible to make the judgment result output from the learned
例えば、対象物を良品と判定するための指標である閾値(良品用閾値)を増加させるほど、また、対象物を不良品と判定するための指標である閾値(不良品用閾値)を減少させるほど、対象物を不良品と判定する可能性を高めることができる。つまり、良品用閾値を増加させるように、又は不良品用閾値を減少させるように調整することで、判定結果出力装置1Aは、判定対象の対象物をより厳しく判定できる。
For example, the threshold value (threshold value for non-defective product) which is an index for judging the target object as non-defective is increased, and the threshold value (threshold value for defective product) which is an index for judging the target object as non-defective product is decreased. Thus, the possibility that the target object is determined to be defective can be increased. That is, by adjusting the threshold value for non-defective products to be increased or the threshold value for defective products to be decreased, the determination
換言すれば、判定結果出力装置1Aは、上記のように調整することで、不良品である対象物を、判定対象の画像データに基づき確実に不良品であると判定できる。そのため、判定結果出力装置1Aは、対象物が不良品である場合に良品という判定結果を出力してしまうといった誤判定を更に抑制できる。つまり、判定結果出力装置1Aは、より精度良く良否判定結果を出力できる。
In other words, the determination
〔ソフトウェアによる実現例〕
判定結果出力装置1Aの制御ブロック(特に、一次良否判定部10及び最終良否判定部20)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of software implementation]
The control blocks (especially, the primary
後者の場合、判定結果出力装置1Aは、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
In the latter case, the determination
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the embodiments described above, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention.
1A 判定結果出力装置
10 一次良否判定部
11 学習済CNN(学習済モデル)
20 最終良否判定部
31 画像データセット
1A Determination
20 Final pass /
Claims (5)
前記画像データに対して、互いに異なる複数の学習済モデルを適用することで、当該学習済モデルのそれぞれにおいて、前記対象物の良否判定を行う一次良否判定部と、
前記一次良否判定部による前記良否判定の結果のうちの少なくとも1つの良否判定の結果が、前記対象物が不良品であることを示す場合、前記対象物が不良品であると最終的に判定する最終良否判定部と、を備える、判定結果出力装置。 A determination result output device that outputs the result of the quality determination of the object included in the input image data,
For the image data, by applying a plurality of different learned models different from each other, in each of the learned models, a primary quality determination unit that determines the quality of the object,
When at least one of the results of the pass / fail determination by the primary pass / fail determination unit indicates that the target is defective, the target is finally determined to be defective. A determination result output device comprising: a final pass / fail determination unit.
前記画像データに対して、互いに異なる複数の学習済モデルを適用することで、当該学習済モデルのそれぞれにおいて、前記対象物の良否判定を行う一次良否判定ステップと、
前記一次良否判定ステップにおける前記良否判定の結果のうちの少なくとも1つの良否判定の結果が、前記対象物が不良品であることを示す場合、前記対象物が不良品であると最終的に判定する最終良否判定ステップと、を含む、判定結果出力方法。 A determination result output method for outputting a result of the quality determination of the object included in the input image data,
By applying a plurality of different learned models to the image data, in each of the learned models, a primary pass / fail determination step of performing pass / fail determination of the object,
If at least one of the results of the pass / fail determination in the primary pass / fail determination step indicates that the target is a defective product, it is finally determined that the target is a defective product. And a final pass / fail judgment step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018172590A JP7215030B2 (en) | 2018-09-14 | 2018-09-14 | Judgment result output device, judgment result output method, and judgment result output program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018172590A JP7215030B2 (en) | 2018-09-14 | 2018-09-14 | Judgment result output device, judgment result output method, and judgment result output program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020046731A true JP2020046731A (en) | 2020-03-26 |
JP7215030B2 JP7215030B2 (en) | 2023-01-31 |
Family
ID=69901297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018172590A Active JP7215030B2 (en) | 2018-09-14 | 2018-09-14 | Judgment result output device, judgment result output method, and judgment result output program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7215030B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001108518A (en) * | 1999-08-03 | 2001-04-20 | Mitsui Eng & Shipbuild Co Ltd | Abnormality detecting method and device |
JP2003302212A (en) * | 2002-04-11 | 2003-10-24 | Seiko Electric Co Ltd | Defect extraction method and printed wiring board final appearance inspection device |
JP2007033126A (en) * | 2005-07-25 | 2007-02-08 | Omron Corp | Substrate inspection device, parameter adjusting method thereof and parameter adjusting device |
JP2014002497A (en) * | 2012-06-18 | 2014-01-09 | Shindengen Electric Mfg Co Ltd | Sealed symbol inspection device and method for electronic apparatus |
JP2016040650A (en) * | 2014-08-12 | 2016-03-24 | 株式会社Screenホールディングス | Classifier construction method, image classifying method, and image classifying device |
-
2018
- 2018-09-14 JP JP2018172590A patent/JP7215030B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001108518A (en) * | 1999-08-03 | 2001-04-20 | Mitsui Eng & Shipbuild Co Ltd | Abnormality detecting method and device |
JP2003302212A (en) * | 2002-04-11 | 2003-10-24 | Seiko Electric Co Ltd | Defect extraction method and printed wiring board final appearance inspection device |
JP2007033126A (en) * | 2005-07-25 | 2007-02-08 | Omron Corp | Substrate inspection device, parameter adjusting method thereof and parameter adjusting device |
JP2014002497A (en) * | 2012-06-18 | 2014-01-09 | Shindengen Electric Mfg Co Ltd | Sealed symbol inspection device and method for electronic apparatus |
JP2016040650A (en) * | 2014-08-12 | 2016-03-24 | 株式会社Screenホールディングス | Classifier construction method, image classifying method, and image classifying device |
Non-Patent Citations (1)
Title |
---|
PO CHUN LIEN, QIANGFU ZHAO: "Product Surface Defect Detection Based on Deep Learning", 2018 IEEE 16TH INTL CONF ON DEPENDABLE, AUTONOMIC AND SECURE COMPUTING, 16TH INTL CONF ON PERVASIVE, JPN6022053046, 12 August 2018 (2018-08-12), US, pages 250 - 255, XP033431504, ISSN: 0004946962, DOI: 10.1109/DASC/PiCom/DataCom/CyberSciTec.2018.00051 * |
Also Published As
Publication number | Publication date |
---|---|
JP7215030B2 (en) | 2023-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9563825B2 (en) | Convolutional neural network using a binarized convolution layer | |
US20180239987A1 (en) | Image recognition method and apparatus | |
JP2019106112A (en) | Information processing apparatus, identification system, setting method, and program | |
JP6584250B2 (en) | Image classification method, classifier configuration method, and image classification apparatus | |
US11448570B2 (en) | Method and system for unsupervised anomaly detection and accountability with majority voting for high-dimensional sensor data | |
JP2004012422A (en) | Pattern inspection device, pattern inspection method, and program | |
JP7177498B2 (en) | Abnormal product judgment method | |
US20140286527A1 (en) | Systems and methods for accelerated face detection | |
WO2007145235A1 (en) | Abnormal region detecting device and abnormal region detecting method | |
JP2014178229A (en) | Teacher data creation method, image classification method and image classification device | |
WO2019026104A1 (en) | Information processing device, information processing program, and information processing method | |
US11348349B2 (en) | Training data increment method, electronic apparatus and computer-readable medium | |
US11836898B2 (en) | Method and apparatus for generating image, and electronic device | |
Ye et al. | IC solder joint inspection based on an adaptive-template method | |
WO2019155523A1 (en) | Classifier forming device, classifier forming method, and non-transitory computer-readable medium for storing program | |
KR20210086303A (en) | Pattern inspection apparatus based on deep learning and inspection method using the same | |
CN106997590A (en) | A kind of image procossing and detecting system based on detection product performance | |
TWI769603B (en) | Image processing method and computer readable medium thereof | |
KR102178444B1 (en) | Apparatus for analyzing microstructure | |
JP7215030B2 (en) | Judgment result output device, judgment result output method, and judgment result output program | |
JP7123306B2 (en) | Image processing device and image processing method | |
Romanuke | Two-layer perceptron for classifying flat scaled-turned-shifted objects by additional feature distortions in training | |
CN111369489B (en) | Image identification method and device and terminal equipment | |
CN113627538B (en) | Method for training asymmetric generation of image generated by countermeasure network and electronic device | |
JP2020107104A (en) | Image determination device, image determination method, and image determination program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210819 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220826 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20220831 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220906 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20221013 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20221220 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230102 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7215030 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |