JP2019159820A - Inspection device, image identification device, identification device, inspection method, and inspection program - Google Patents

Inspection device, image identification device, identification device, inspection method, and inspection program Download PDF

Info

Publication number
JP2019159820A
JP2019159820A JP2018045862A JP2018045862A JP2019159820A JP 2019159820 A JP2019159820 A JP 2019159820A JP 2018045862 A JP2018045862 A JP 2018045862A JP 2018045862 A JP2018045862 A JP 2018045862A JP 2019159820 A JP2019159820 A JP 2019159820A
Authority
JP
Japan
Prior art keywords
discriminator
output value
product
learning
data
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
Application number
JP2018045862A
Other languages
Japanese (ja)
Other versions
JP6844563B2 (en
Inventor
真嗣 栗田
Masashi Kurita
真嗣 栗田
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2018045862A priority Critical patent/JP6844563B2/en
Priority to PCT/JP2019/010180 priority patent/WO2019176990A1/en
Publication of JP2019159820A publication Critical patent/JP2019159820A/en
Application granted granted Critical
Publication of JP6844563B2 publication Critical patent/JP6844563B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Abstract

To prevent reliability of determination using a discriminator from being impaired, even when identification performance of the discriminator is degraded due to re-learning or additional learning.SOLUTION: An inspection device according to one aspect of the present invention holds both a first discriminator before re-learning or additional learning, and a second discriminator after the re-learning or additional learning. The numerical range of a second criterion of the second discriminator is set narrower than the numerical range of a first criterion of the first discriminator. When a second output value from the second discriminator satisfies the second criterion, the inspection device determines the quality of a product on the basis of the second output value from the second discriminator. On the other hand, when the second output value from the second discriminator does not satisfy the second criterion, the inspection device determines the quality of the product on the basis of a first output value from the first discriminator.SELECTED DRAWING: Figure 1

Description

本発明は、検査装置、画像識別装置、識別装置、検査方法、及び検査プログラムに関する。   The present invention relates to an inspection device, an image identification device, an identification device, an inspection method, and an inspection program.

従来、生産ライン等の製品を製造する場面では、製造される製品を撮影装置により撮影し、得られた画像データに基づいて製品の良否を検査する技術が利用されている。例えば、特許文献1では、学習済みの第1のニューラルネットワークに基づいて画像に写る検査対象物が正常であるか異常であるかを判定し、検査対象物が異常であると判定した場合に、学習済みの第2のニューラルネットワークに基づいて当該異常の種類を分類する検査装置が提案されている。   2. Description of the Related Art Conventionally, in a scene where a product such as a production line is manufactured, a technique is used in which the manufactured product is photographed with a photographing device and the quality of the product is inspected based on the obtained image data. For example, in Patent Document 1, when it is determined whether the inspection object shown in the image is normal or abnormal based on the learned first neural network, and it is determined that the inspection object is abnormal, There has been proposed an inspection apparatus for classifying the type of abnormality based on a learned second neural network.

特開2012−026982号公報JP 2012-026982 A

本件発明者は、特許文献1のような学習済みのニューラルネットワーク等の識別器を利用して、画像データから製品の良否を判定する従来の技術には次のような問題点があることを見出した。すなわち、識別器は、事前に収集した画像データに写る製品の良否を識別するように構築されるため、新たな種類の欠陥が発生する等の未知のケースには対応することができない。そこで、未知のケースに対応するために、この未知のケースの写る追加の画像データを収集し、収集した追加の画像データにより識別器の再学習又は追加学習を実施する。これにより、更新された識別器は、追加の画像データにより学習した未知のケースに対応することができるようになる。   The present inventor has found the following problems in the conventional technique for determining the quality of a product from image data using a discriminator such as a learned neural network as in Patent Document 1. It was. In other words, the discriminator is constructed so as to discriminate the quality of the product shown in the pre-collected image data, and therefore cannot cope with an unknown case such as a new type of defect. Therefore, in order to deal with an unknown case, additional image data in which the unknown case is captured is collected, and re-learning or additional learning of the discriminator is performed using the collected additional image data. As a result, the updated discriminator can cope with an unknown case learned by the additional image data.

しかしながら、学習する画像データの件数が増えると、特殊なケースの識別を学習したこと等の影響を受けて、識別器の識別性能がかえって悪化する可能性がある。例えば、ニューラルネットワーク等のAI技術を識別器に利用した場合には、学習データの件数が増えると、過学習が起きてしまい、識別器の識別性能が悪化してしまうことがある。従来の技術では、再学習又は追加学習により識別器の識別性能が悪化してしまった場合に、この識別器による製品の良否判定の信頼性が損なわれてしまうという問題点があることを本件発明者は見出した。   However, when the number of pieces of image data to be learned increases, the discrimination performance of the discriminator may deteriorate due to the influence of learning of special case discrimination. For example, when AI technology such as a neural network is used for a discriminator, if the number of learning data increases, over-learning may occur and the discrimination performance of the discriminator may deteriorate. In the prior art, when the discrimination performance of the discriminator deteriorates due to re-learning or additional learning, there is a problem that the reliability of the quality determination of the product by the discriminator is impaired. Found.

なお、この問題点は、製品の良否を判定する場面に特有のものではない。画像データから被写体の何らかの状態を識別する場面、画像データ以外のデータから何らかの特徴を識別する場面等、再学習又は追加学習により識別器を更新するあらゆる場面で同様の問題点が生じ得る。すなわち、収集した追加のデータにより識別器の再学習又は追加学習を実施することで、更新された識別器は、追加のデータにより学習した未知のケースに対応することができるようになる。しかしながら、学習するデータの件数が増えると、対象のデータに表れる特徴を識別器により識別する性能が悪化してしまう可能性がある。   This problem is not unique to the scene where the quality of the product is judged. Similar problems may occur in any scene where the discriminator is updated by re-learning or additional learning, such as a scene where a certain state of a subject is identified from image data and a scene where a characteristic is identified from data other than image data. That is, the re-learning or additional learning of the classifier is performed using the collected additional data, so that the updated classifier can cope with an unknown case learned by the additional data. However, when the number of data to be learned increases, the performance of identifying the features appearing in the target data by the classifier may be deteriorated.

本発明は、一側面では、このような実情を鑑みてなされたものであり、その目的は、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した判定の信頼性が損なわれてしまうのを防止する技術を提供することである。   The present invention has been made in view of such a situation in one aspect, and the purpose thereof is to use a discriminator even when the discrimination performance of the discriminator deteriorates due to re-learning or additional learning. It is to provide a technique for preventing the determination reliability from being impaired.

本発明は、上述した課題を解決するために、以下の構成を採用する。   The present invention employs the following configuration in order to solve the above-described problems.

すなわち、本発明の一側面に係る検査装置は、製品の良否を検査する検査装置であって、検査の対象となる前記製品の写る対象画像データを取得するデータ取得部と、前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する判定部と、前記製品の良否を判定した結果を出力する出力部と、を備え、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記判定部は、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記製品の良否を判定する。   That is, an inspection apparatus according to one aspect of the present invention is an inspection apparatus that inspects the quality of a product, and includes a data acquisition unit that acquires target image data in which the product to be inspected is captured, and the quality of the product. Consists of a first classifier constructed by machine learning using first learning data composed of image data for learning, and additional image data for learning the quality of the first learning data and the product A determination unit that determines the quality of the product in the acquired target image data using a second discriminator constructed by machine learning using the second learning data, and the quality of the product is determined A first output value obtained from the first discriminator by inputting the target image data to the first discriminator to determine whether the product is good or bad. Numeric A range is set as a first determination criterion, and the second output value obtained from the second discriminator by inputting the target image data to the second discriminator is used to judge the quality of the product. Is set as a second determination criterion, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion, and the determination unit includes the second discriminator. When the target image data is input, the second output value is acquired from the second discriminator, and when the acquired second output value is included in the numerical range of the second determination criterion, The quality of the product is determined based on the second output value, and when the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is stored in the first discriminator. To input the first discriminator from the first discriminator. Get the power value, based on the acquired first output value to determine the quality of the product.

学習済みの識別器を利用した製品の検査では、製品の写る対象画像データを識別器に入力することで当該識別器から得られる出力値と閾値とを比較することにより、当該製品の良否を判定する。過学習による識別性能の悪化は、閾値の境界付近で良否の判定を誤る可能性が高くなることに起因する。   In the inspection of a product using a learned classifier, the quality of the product is judged by comparing the output value obtained from the classifier with a threshold value by inputting target image data showing the product into the classifier. To do. The deterioration of the identification performance due to overlearning is caused by a high possibility that the determination of pass / fail is erroneous near the threshold boundary.

そこで、当該構成に係る検査装置は、再学習又は追加学習前の第1識別器と、再学習又は追加学習後の第2識別器との両方を保持する。第2識別器の第2判定基準の数値範囲は、第1識別器の第1判定基準の数値範囲よりも狭く設定される。つまり、第2判定基準の数値範囲には、第2識別器による良否の判定を行わない範囲が設けられる。そして、当該検査装置は、第2識別器の第2出力値が第2判定基準の数値範囲に含まれる場合には、当該第2識別器の第2出力値に基づいて製品の良否を判定する。一方、第2識別器の第2出力値が第2判定基準の数値範囲に含まれない場合には、当該検査装置は、第1識別器の第1出力値に基づいて製品の良否を判定する。   Therefore, the inspection apparatus according to the configuration holds both the first classifier before re-learning or additional learning and the second classifier after re-learning or additional learning. The numerical range of the second determination criterion of the second discriminator is set narrower than the numerical range of the first determination criterion of the first discriminator. That is, the numerical range of the second determination criterion is provided with a range in which the quality determination by the second discriminator is not performed. And when the 2nd output value of the 2nd discriminator is contained in the numerical range of the 2nd judgment standard, the inspection device judges pass / fail of a product based on the 2nd output value of the 2nd discriminator. . On the other hand, when the second output value of the second discriminator is not included in the numerical range of the second determination criterion, the inspection apparatus determines the quality of the product based on the first output value of the first discriminator. .

すなわち、当該構成に係る検査装置は、第2識別器の第2出力値が良否の識別結果を明確に示している場合には、第2識別器を信頼して製品の良否を判定し、そうでない場合には、第2識別器を利用せずに第1識別器により製品の良否を判定する。これにより、過学習による識別性能の悪化が生じ得る閾値の境界付近の範囲において、第2識別器を利用せずに第1識別器を利用することで、再学習又は追加学習前の判定結果を保証し、再学習又は追加学習による判定結果の変動を抑制することができる。したがって、当該構成によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した良否判定の信頼性が損なわれてしまうのを防止することができる。   That is, when the second output value of the second discriminator clearly indicates the pass / fail discrimination result, the inspection apparatus according to the configuration determines the pass / fail of the product by trusting the second discriminator. If not, the quality of the product is judged by the first discriminator without using the second discriminator. Thus, by using the first discriminator without using the second discriminator in the range near the threshold boundary where the discrimination performance may be deteriorated due to over-learning, the determination result before re-learning or additional learning is obtained. It is possible to guarantee and suppress fluctuations in the determination result due to re-learning or additional learning. Therefore, according to the said structure, even when the discrimination performance of a discriminator deteriorates by relearning or additional learning, it can prevent that the reliability of the quality determination using a discriminator is impaired. .

なお、「製品」は、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。「製品」は、例えば、電子部品、自動車部品等の製造ラインで搬送される物であってよい。電子部品は、例えば、基盤、チップコンデンサ、液晶、リレーの巻線等である。自動車部品は、例えば、コンロッド、シャフト、エンジンブロック、パワーウィンドウスイッチ、パネル等である。「良否の判定」は、製品に欠陥があるか否かを単に判定することであってもよいし、製品に欠陥がある否かを判定することに加えて、その欠陥の種類を識別することを含んでもよい。欠陥は、例えば、傷、汚れ、クラック、打痕、埃、バリ、色ムラ等である。「識別器」は、例えば、ニューラルネットワーク、サポートベクタマシン、自己組織化マップ、強化学習モデル等の、機械学習により所定の推論を行う能力を獲得可能な学習モデルにより構成されてよい。「再学習」は、識別器の機械学習に利用した元の学習データ(第1学習データ)を用いた機械学習を再度行うことである。また、「追加学習」は、新たな学習データを用いた機械学習により、識別器の更新を行うことである。「再学習又は追加学習」には、これらの機械学習により識別器の更新を行うことの他、新たな識別器を構築することが含まれてよい。   The “product” is not particularly limited, and may be appropriately selected according to the embodiment. The “product” may be, for example, a product conveyed on a production line such as an electronic component or an automobile component. The electronic component is, for example, a substrate, a chip capacitor, a liquid crystal, a relay winding, or the like. The automobile parts are, for example, connecting rods, shafts, engine blocks, power window switches, panels, and the like. “Determining whether or not the product is good” may be simply determining whether or not the product is defective. In addition to determining whether or not the product is defective, the type of the defect is identified. May be included. The defects are, for example, scratches, dirt, cracks, dents, dust, burrs, color unevenness, and the like. The “discriminator” may be configured by a learning model that can acquire the ability to perform predetermined inference by machine learning, such as a neural network, a support vector machine, a self-organizing map, and a reinforcement learning model. “Relearning” is to perform machine learning again using original learning data (first learning data) used for machine learning of the classifier. In addition, “additional learning” is to update the classifier by machine learning using new learning data. “Relearning or additional learning” may include updating a discriminator by these machine learnings and constructing a new discriminator.

上記一側面に係る検査装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記製品に欠陥があることを示し、値が小さいほど前記製品は良品であることを示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定してもよく、前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品には欠陥があると判定してもよく、取得した第1出力値が前記第1閾値よりも小さい場合には、前記製品は良品であると判定してもよい。当該構成によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した良否判定の信頼性が損なわれてしまうのを適切に防止することができる。   In the inspection apparatus according to the above aspect, each of the first output value of the first discriminator and the second output value of the second discriminator indicates that the larger the value is, the more defective the product is. The smaller the value may be, the better the product is, and the numerical range of the first determination criterion may be constituted by a range greater than or equal to a first threshold and a range less than the first threshold. The numerical value range of the determination criterion may be configured by a range equal to or greater than a second threshold and a range equal to or smaller than a third threshold smaller than the second threshold, and the determination unit is acquired from the second discriminator. When the second output value is larger than the second threshold value, the product may be determined to be defective as the second output value is included in the numerical range of the second determination criterion, The second output value obtained from the second discriminator is the previous If it is smaller than the third threshold value, the product may be determined to be a non-defective product, assuming that the second output value is included in the numerical range of the second determination criterion, and obtained from the second discriminator. If the second output value is smaller than the second threshold and greater than the third threshold, the second output value is not included in the numerical range of the second determination criterion, and the first discriminator The target image data may be input to the first discriminator to obtain the first output value. If the obtained first output value is greater than the first threshold value, May be determined to be defective, and if the acquired first output value is smaller than the first threshold value, the product may be determined to be non-defective. According to the said structure, even when the discrimination performance of a discriminator deteriorates by re-learning or additional learning, it can prevent appropriately that the reliability of the quality determination using a discriminator will be impaired. .

上記一側面に係る検査装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記製品は良品であることを示し、値が小さいほど前記製品には欠陥があることを示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定してもよく、前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品は良品であると判定してもよく、取得した第1出力値が前記第1閾値よりも小さい場合には、前記製品には欠陥があると判定してもよい。当該構成によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した良否判定の信頼性が損なわれてしまうのを適切に防止することができる。   In the inspection apparatus according to the above aspect, each of the first output value of the first discriminator and the second output value of the second discriminator indicates that the product is a non-defective product as the value increases. The smaller the value may be, the smaller the product may be, the numerical value range of the first criterion may be constituted by a range greater than or equal to a first threshold value and a range less than the first threshold value. The numerical range of 2 determination criteria may be configured by a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold, and the determination unit is obtained from the second discriminator. When the second output value is greater than the second threshold, the product may be determined to be non-defective, assuming that the second output value is included in the numerical range of the second determination criterion, The second output value obtained from the second discriminator is the previous If it is smaller than the third threshold value, it may be determined that the product is defective as the second output value is included in the numerical range of the second determination criterion, and is acquired from the second discriminator. If the second output value is smaller than the second threshold value and larger than the third threshold value, the second identification value is not included in the numerical range of the second determination criterion, and the first identification is performed. The first output value may be acquired from the first discriminator by inputting the target image data into a device, and if the acquired first output value is greater than the first threshold, the product May be determined to be non-defective, and if the acquired first output value is smaller than the first threshold, it may be determined that the product is defective. According to the said structure, even when the discrimination performance of a discriminator deteriorates by re-learning or additional learning, it can prevent appropriately that the reliability of the quality determination using a discriminator will be impaired. .

上記一側面に係る検査装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記製品に欠陥がある確率を示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品には欠陥があると判定してもよい。当該構成によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した良否判定の信頼性が損なわれてしまうのを適切に防止することができる。   In the inspection apparatus according to the one aspect, each of the first output value of the first discriminator and the second output value of the second discriminator may indicate a probability that the product has a defect, The numerical range of the first determination criterion may be configured by a range greater than or equal to the first threshold and a range less than the first threshold, and the numerical range of the second determination criterion is configured by a range greater than or equal to the second threshold. The determination unit may include the second output value in the numerical range of the second determination criterion when the second output value acquired from the second discriminator is larger than the second threshold value. As described above, it may be determined that the product has a defect, and when the second output value acquired from the second discriminator is smaller than the second threshold value, the second output value is the second value. The first discriminator is not included in the numerical range of the determination criterion. By inputting the target image data, the first output value may be acquired from the first discriminator. When the acquired first output value is larger than the first threshold, the product includes It may be determined that there is a defect. According to the said structure, even when the discrimination performance of a discriminator deteriorates by re-learning or additional learning, it can prevent appropriately that the reliability of the quality determination using a discriminator will be impaired. .

上記一側面に係る検査装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記製品が良品である確率を示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品は良品であると判定してもよい。当該構成によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した良否判定の信頼性が損なわれてしまうのを適切に防止することができる。   In the inspection apparatus according to the one aspect, each of the first output value of the first discriminator and the second output value of the second discriminator may indicate a probability that the product is a good product. The numerical range of the first determination criterion may be configured by a range greater than or equal to the first threshold and a range less than the first threshold, and the numerical range of the second determination criterion is configured by a range greater than or equal to the second threshold. The determination unit may include the second output value in the numerical range of the second determination criterion when the second output value acquired from the second discriminator is larger than the second threshold value. The product may be determined as a non-defective product, and if the second output value acquired from the second discriminator is smaller than the second threshold value, the second output value is determined as the second determination value. As not included in the numerical range of the reference, the first discriminator The first output value may be acquired from the first discriminator by inputting the target image data, and if the acquired first output value is larger than the first threshold, the product is a non-defective product It may be determined that According to the said structure, even when the discrimination performance of a discriminator deteriorates by re-learning or additional learning, it can prevent appropriately that the reliability of the quality determination using a discriminator will be impaired. .

また、上記各形態に係る検査装置は、製品の写る画像データ以外の画像データから何らかの特徴を判定する場面、画像データ以外の他のデータを含むデータから何らかの特徴を判定する場面等の、再学習又は追加学習により識別器を更新するあらゆる場面に適用可能に変更されてよい。   In addition, the inspection apparatus according to each of the above embodiments may perform relearning such as a scene in which any feature is determined from image data other than the image data in which the product is captured, and a scene in which any feature is determined from data including data other than the image data Or it may change so that it can apply to every scene which updates a discriminator by additional learning.

例えば、本発明の一側面に係る画像識別装置は、状態を識別する対象となる被写体の写る対象画像データを取得するデータ取得部と、前記被写体の状態を識別する学習を行うための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記被写体の状態を識別する学習を行うための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記被写体の状態を判定する判定部と、前記被写体の状態を判定した結果を出力する出力部と、を備え、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記被写体の状態を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記被写体の状態を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記判定部は、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記被写体の状態を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記被写体の状態を判定する。   For example, an image identification apparatus according to one aspect of the present invention includes a data acquisition unit that acquires target image data in which a subject that is a target for identifying a state, and image data for performing learning that identifies the state of the subject. A first discriminator constructed by machine learning using the constructed first learning data, and a second class comprising additional image data for performing learning for identifying the first learning data and the state of the subject. Using a second classifier constructed by machine learning using learning data, a determination unit that determines the state of the subject in the acquired target image data, and outputs a result of determining the state of the subject A first output value obtained from the first discriminator by inputting the target image data to the first discriminator, and a numerical value for determining the state of the subject A range is set as a first determination criterion, and the second output value obtained from the second discriminator by inputting the target image data to the second discriminator is for determining the state of the subject. Is set as a second determination criterion, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion, and the determination unit includes the second discriminator. When the target image data is input, the second output value is acquired from the second discriminator, and when the acquired second output value is included in the numerical range of the second determination criterion, The state of the subject is determined based on the second output value, and when the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is stored in the first discriminator. Is input from the first discriminator. Get the 1 output value, based on the acquired first output value, it determines the state of the object.

なお、「被写体」及び識別の対象となる被写体の「状態」はそれぞれ、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。「被写体」は、例えば、対象者の顔、対象者の身体、作業対象のワーク等であってよい。また、被写体が対象者の顔である場合、識別の対象となる状態は、例えば、表情の種別、顔のパーツの状態等であってよい。被写体が対象者の身体である場合には、識別の対象となる状態は、例えば、身体のポーズ等であってよい。被写体が作業対象のワークである場合、識別の対象となる状態は、例えば、ワークの位置、姿勢等であってよい。   Note that the “subject” and the “state” of the subject to be identified are not particularly limited, and may be appropriately selected according to the embodiment. The “subject” may be, for example, the face of the subject, the body of the subject, the work to be worked, and the like. Further, when the subject is the face of the subject, the state to be identified may be, for example, the type of facial expression, the state of facial parts, and the like. When the subject is the subject's body, the state to be identified may be, for example, a body pose. When the subject is a work target work, the state to be identified may be, for example, the position and posture of the work.

また、例えば、本発明の一側面に係る識別装置は、識別する対象となる特徴を含む対象データを取得するデータ取得部と、前記特徴を識別する学習を行うためのデータで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記特徴を識別する学習を行うための追加のデータで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象データに表れる前記特徴を判定する判定部と、前記特徴を判定した結果を出力する出力部と、を備え、前記第1識別器に前記対象データを入力することで前記第1識別器から得られる第1出力値には、前記特徴を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象データを入力することで前記第2識別器から得られる第2出力値には、前記特徴を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記判定部は、前記第2識別器に前記対象データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記特徴を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記特徴を判定する。   Further, for example, the identification device according to one aspect of the present invention includes a data acquisition unit that acquires target data including a feature to be identified, and a first data configured to perform learning for identifying the feature. By machine learning using first learning data constructed by machine learning using learning data, and second learning data composed of additional data for performing learning for identifying the first learning data and the feature A determination unit that determines the feature appearing in the acquired target data using the constructed second discriminator; and an output unit that outputs a result of determining the feature; and the first discriminator In the first output value obtained from the first discriminator by inputting the target data, a numerical range for judging the feature is set as a first judgment criterion, and the second discriminator has the above-mentioned value range. Target The second output value obtained from the second discriminator by inputting the data has a numerical range for determining the feature set as a second determination criterion, and the numerical range of the second determination criterion Is set to be narrower than the numerical range of the first determination criterion, and the determination unit inputs the target data to the second discriminator, thereby obtaining the second output value from the second discriminator. When the acquired second output value is included in the numerical range of the second determination criterion, the feature is determined based on the second output value, and the acquired second output value is When not included in the numerical range of the second determination criterion, the first output value is acquired from the first discriminator by inputting the target data to the first discriminator, and the acquired first The feature is determined based on the output value.

なお、「データ」は、識別器による解析の対象となり得るあらゆる種類のデータを含んでもよく、例えば、画像データの他、音データ(音声データ)、数値データ、テキストデータ等であってよい。「特徴」は、データから識別可能なあらゆる特徴を含んでもよい。「データ」が音データである場合、「特徴」は、例えば、特定の音(例えば、機械の異音)が含まれているか否か等であってよい。また、「データ」が、血圧、活動量等の生体データに関する数値データ又はテキストデータである場合、「特徴」は、例えば、対象者の状態等であってよい。また、「データ」が、機械の駆動量等の数値データ又はテキストデータである場合、「特徴」は、例えば、機械の状態等であってよい。   The “data” may include all kinds of data that can be analyzed by the discriminator. For example, in addition to image data, sound data (voice data), numerical data, text data, and the like may be included. A “feature” may include any feature identifiable from data. When the “data” is sound data, the “feature” may be, for example, whether or not a specific sound (for example, abnormal noise of a machine) is included. Further, when the “data” is numerical data or text data related to biological data such as blood pressure and activity amount, the “feature” may be, for example, the state of the subject. Further, when the “data” is numerical data such as a driving amount of the machine or text data, the “feature” may be, for example, the state of the machine.

上記一側面に係る識別装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記対象データには前記特徴として第1特徴が表れていることを示し、値が小さいほど前記対象データには前記特徴として第2特徴が表れていることを示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記第1特徴が表れていると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記第2特徴が表れていると判定してもよく、前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記対象データには前記第1特徴が表れていると判定してもよく、取得した第1出力値が前記第1閾値よりも小さい場合には、前記対象データには前記第2特徴が表れていると判定してもよい。   In the identification device according to the above aspect, the first output value of the first discriminator and the second output value of the second discriminator each have a first feature as the feature as the value increases. The smaller the value is, the smaller the value may be, the second characteristic appears as the characteristic. The numerical range of the first determination criterion is a range equal to or greater than the first threshold. And the numerical range of the second determination criterion is composed of a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold. The determination unit may include the second output value in the numerical range of the second determination criterion when the second output value acquired from the second discriminator is larger than the second threshold value. The target data It may be determined that the first feature appears, and when the second output value acquired from the second discriminator is smaller than the third threshold value, the second output value is the second determination criterion. It is determined that the second feature appears in the target data, and the second output value acquired from the second discriminator is smaller than the second threshold value. If the second output value is not included in the numerical range of the second determination criterion when the value is larger than the third threshold, the target data is input to the first discriminator, whereby the first discrimination is performed. The first output value may be acquired from a container, and if the acquired first output value is greater than the first threshold, it may be determined that the first feature appears in the target data. Well, if the acquired first output value is smaller than the first threshold value, The target data may be determined that the second feature is evident.

上記一側面に係る識別装置において、前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記対象データに所定の特徴が表れている確率を示してもよく、前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されていてもよく、前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されていてもよく、前記判定部は、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記所定の特徴が表れていると判定してもよく、前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得してもよく、取得した第1出力値が前記第1閾値よりも大きい場合には、前記対象データには前記所定の特徴が表れていると判定してもよい。   In the identification device according to the above aspect, each of the first output value of the first identifier and the second output value of the second identifier indicates a probability that a predetermined feature appears in the target data. The numerical range of the first determination criterion may be configured by a range equal to or greater than the first threshold and a range less than the first threshold, and the numerical range of the second determination criterion is a range equal to or greater than the second threshold. The determination unit may be configured such that when the second output value acquired from the second discriminator is larger than the second threshold, the second output value is the second determination criterion. It may be determined that the predetermined characteristic appears in the target data as included in the numerical range, and the second output value acquired from the second discriminator is smaller than the second threshold value. The second output value is the number of the second determination criteria The first output value may be acquired from the first discriminator by inputting the target data to the first discriminator as being not included in the range, and the acquired first output value is the first discriminator. When it is larger than the threshold value, it may be determined that the predetermined feature appears in the target data.

なお、上記各形態に係る検査装置、画像識別装置及び識別装置それぞれの別の態様として、以上の各構成を実現する情報処理方法であってもよいし、プログラムであってもよいし、このようなプログラムを記憶した、コンピュータその他装置、機械等が読み取り可能な記憶媒体であってもよい。ここで、コンピュータ等が読み取り可能な記憶媒体とは、プログラム等の情報を、電気的、磁気的、光学的、機械的、又は、化学的作用によって蓄積する媒体である。   In addition, as another aspect of each of the inspection device, the image identification device, and the identification device according to each of the above embodiments, an information processing method that realizes each of the above configurations, a program, or such It may be a storage medium readable by a computer, other devices, machines, etc. that stores various programs. Here, the computer-readable storage medium is a medium that stores information such as programs by electrical, magnetic, optical, mechanical, or chemical action.

例えば、本発明の一側面に係る検査方法は、製品の良否を検査する情報処理方法であって、コンピュータが、検査の対象となる前記製品の写る対象画像データを取得する第1ステップと、前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する第2ステップと、前記製品の良否を判定した結果を出力する第3ステップと、を実行し、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータは、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記製品の良否を判定する、情報処理方法である。   For example, an inspection method according to one aspect of the present invention is an information processing method for inspecting the quality of a product, wherein the computer acquires target image data in which the product to be inspected is captured; A first discriminator constructed by machine learning using first learning data composed of image data for learning the quality of a product, and an additional for learning the quality of the first learning data and the product A second step of determining pass / fail of the product in the acquired target image data using a second discriminator constructed by machine learning using second learning data composed of image data; and the product And a third step of outputting a result of determining the quality of the first and second output values obtained from the first discriminator by inputting the target image data to the first discriminator. A numerical range for determining the quality of the product is set as a first determination criterion, and the second output value obtained from the second discriminator by inputting the target image data to the second discriminator is , A numerical range for determining the quality of the product is set as a second determination criterion, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion, In the second step, the computer acquires the second output value from the second discriminator by inputting the target image data to the second discriminator, and the acquired second output value is the first discriminator. When it is included in the numerical range of the second determination criterion, the quality of the product is determined based on the second output value, and the acquired second output value is not included in the numerical range of the second determination criterion. In case, before the first discriminator By inputting the target image data, it acquires the first output value from said first identifier, obtained on the basis of the first output value to determine the quality of the product, an information processing method.

また、例えば、本発明の一側面に係る検査プログラムは、製品の良否を検査するためのプログラムであって、コンピュータに、検査の対象となる前記製品の写る対象画像データを取得する第1ステップと、前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する第2ステップと、前記製品の良否を判定した結果を出力する第3ステップと、を実行させ、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータに、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得させ、取得した前記第1出力値に基づいて、前記製品の良否を判定させる、プログラムである。   In addition, for example, an inspection program according to one aspect of the present invention is a program for inspecting the quality of a product, and obtains target image data in which the product to be inspected is captured in a computer, A first discriminator constructed by machine learning using first learning data composed of image data for learning the quality of the product, and for learning the quality of the first learning data and the product A second step of determining pass / fail of the product reflected in the acquired target image data using a second discriminator constructed by machine learning using second learning data composed of additional image data; A third step of outputting a result of determining whether the product is good or not, and obtaining the target image data from the first discriminator by inputting the target image data to the first discriminator. In one output value, a numerical range for determining the quality of the product is set as a first determination criterion, and obtained from the second discriminator by inputting the target image data to the second discriminator. In the second output value, a numerical range for determining the quality of the product is set as a second determination criterion, and the numerical range of the second determination criterion is larger than the numerical range of the first determination criterion. In the second step, the computer is configured to acquire the second output value from the second discriminator by inputting the target image data to the second discriminator. When the second output value is included in the numerical range of the second determination criterion, the quality of the product is determined based on the second output value, and the acquired second output value is the second determination criterion. If not included in the numerical range , By inputting the target image data to the first discriminator, the first output value is acquired from the first discriminator, and the quality of the product is determined based on the acquired first output value. Is a program.

また、例えば、本発明の一側面に係る画像識別方法は、コンピュータが、状態を識別する対象となる被写体の写る対象画像データを取得する第1ステップと、前記被写体の状態を識別する学習を行うための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記被写体の状態を識別する学習を行うための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記被写体の状態を判定する第2ステップと、前記被写体の状態を判定した結果を出力する第3ステップと、を実行し、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記被写体の状態を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記被写体の状態を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータは、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記被写体の状態を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記被写体の状態を判定する、情報処理方法である。   Further, for example, in the image identification method according to one aspect of the present invention, the computer performs a first step of acquiring target image data in which a subject to be identified is captured, and learning for identifying the status of the subject. A first discriminator constructed by machine learning using first learning data composed of image data for the purpose, and additional image data for performing learning for identifying the first learning data and the state of the subject A second step of determining a state of the subject in the acquired target image data using a second discriminator constructed by machine learning using the configured second learning data; and a state of the subject The third step of outputting the determined result, and the first output value obtained from the first discriminator by inputting the target image data to the first discriminator, A numerical range for determining the state of the recording subject is set as a first determination criterion, and the second output value obtained from the second discriminator is obtained by inputting the target image data to the second discriminator. The numerical range for determining the state of the subject is set as a second determination criterion, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion, In the second step, the computer obtains the second output value from the second discriminator by inputting the target image data to the second discriminator, and the obtained second output value is When included in the numerical range of the second determination criterion, the state of the subject is determined based on the second output value, and the acquired second output value is included in the numerical range of the second determination criterion. If not, the first knowledge An information processing method for acquiring the first output value from the first discriminator by inputting the target image data into a device and determining the state of the subject based on the acquired first output value. is there.

また、例えば、本発明の一側面に係る画像識別プログラムは、コンピュータに、状態を識別する対象となる被写体の写る対象画像データを取得する第1ステップと、前記被写体の状態を識別する学習を行うための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記被写体の状態を識別する学習を行うための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記被写体の状態を判定する第2ステップと、前記被写体の状態を判定した結果を出力する第3ステップと、を実行させ、前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記被写体の状態を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記被写体の状態を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータに、前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記被写体の状態を判定させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得させ、取得した前記第1出力値に基づいて、前記被写体の状態を判定させる、ためのプログラムである。   Further, for example, the image identification program according to one aspect of the present invention performs a first step of acquiring target image data in which a subject as a target for identifying a state is captured, and learning for identifying the state of the subject. A first discriminator constructed by machine learning using first learning data composed of image data for the purpose, and additional image data for performing learning for identifying the first learning data and the state of the subject A second step of determining a state of the subject in the acquired target image data using a second discriminator constructed by machine learning using the configured second learning data; and a state of the subject A third step of outputting the determined result, and a first output obtained from the first classifier by inputting the target image data to the first classifier , A numerical range for determining the state of the subject is set as a first determination criterion, and a second range obtained from the second discriminator by inputting the target image data to the second discriminator. In the output value, a numerical range for determining the state of the subject is set as a second determination criterion, and the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion. In the second step, the second output value is obtained from the second discriminator by inputting the target image data to the second discriminator, and the obtained second output is obtained. When the value is included in the numerical range of the second determination criterion, the state of the subject is determined based on the second output value, and the acquired second output value is the numerical range of the second determination criterion. If not included in By inputting the target image data to the first discriminator, the first output value is acquired from the first discriminator, and the state of the subject is determined based on the acquired first output value. It is a program for.

また、例えば、本発明の一側面に係る識別方法は、コンピュータが、識別する対象となる特徴を含む対象データを取得する第1ステップと、前記特徴を識別する学習を行うためのデータで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記特徴を識別する学習を行うための追加のデータで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象データに表れる前記特徴を判定する第2ステップと、前記特徴を判定した結果を出力する第3ステップと、を実行し、前記第1識別器に前記対象データを入力することで前記第1識別器から得られる第1出力値には、前記特徴を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象データを入力することで前記第2識別器から得られる第2出力値には、前記特徴を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータは、前記第2識別器に前記対象データを入力することで、前記第2識別器から前記第2出力値を取得し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記特徴を判定し、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記特徴を判定する、情報処理方法である。   In addition, for example, the identification method according to one aspect of the present invention includes a first step in which a computer acquires target data including a feature to be identified, and data for performing learning for identifying the feature. A first discriminator constructed by machine learning using the first learning data, and second learning data composed of additional data for performing learning for identifying the first learning data and the feature Using a second discriminator constructed by machine learning, executing a second step of determining the feature appearing in the acquired target data, and a third step of outputting a result of determining the feature, In the first output value obtained from the first discriminator by inputting the target data to the first discriminator, a numerical range for determining the feature is set as a first determination criterion. Thus, the second output value obtained from the second discriminator by inputting the target data to the second discriminator has a numerical range for determining the feature set as a second determination criterion. The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion, and in the second step, the computer inputs the target data to the second discriminator. Then, the second output value is acquired from the second discriminator, and when the acquired second output value is included in the numerical range of the second determination criterion, based on the second output value, When the characteristic is determined and the acquired second output value is not included in the numerical value range of the second determination criterion, the target data is input to the first discriminator, so that the first discriminator The first output value is acquired and the acquired first Based on the output value, determining said characteristic, an information processing method.

また、例えば、本発明の一側面に係る識別プログラムは、コンピュータに、識別する対象となる特徴を含む対象データを取得する第1ステップと、前記特徴を識別する学習を行うためのデータで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記特徴を識別する学習を行うための追加のデータで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象データに表れる前記特徴を判定する第2ステップと、前記特徴を判定した結果を出力する第3ステップと、を実行させ、前記第1識別器に前記対象データを入力することで前記第1識別器から得られる第1出力値には、前記特徴を判定するための数値範囲が第1判定基準として設定されており、前記第2識別器に前記対象データを入力することで前記第2識別器から得られる第2出力値には、前記特徴を判定するための数値範囲が第2判定基準として設定されており、前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、前記第2ステップでは、前記コンピュータに、前記第2識別器に前記対象データを入力することで、前記第2識別器から前記第2出力値を取得させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記特徴を判定させ、取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得させ、取得した前記第1出力値に基づいて、前記特徴を判定させる、ためのプログラムである。   Further, for example, an identification program according to an aspect of the present invention includes a first step of acquiring target data including a feature to be identified in a computer, and data for performing learning for identifying the feature. A first discriminator constructed by machine learning using the first learning data, and second learning data composed of additional data for performing learning for identifying the first learning data and the feature Using a second discriminator constructed by machine learning, executing a second step of determining the feature appearing in the acquired target data, and a third step of outputting a result of determining the feature, The first output value obtained from the first discriminator by inputting the target data to the first discriminator has a numerical range for judging the feature as a first judgment criterion. In the second output value obtained from the second discriminator by inputting the target data to the second discriminator, a numerical range for judging the feature is set as a second judgment criterion. The numerical range of the second determination criterion is set to be narrower than the numerical range of the first determination criterion. In the second step, the target data is input to the computer to the second discriminator. Thus, when the second output value is acquired from the second discriminator, and the acquired second output value is included in the numerical range of the second determination criterion, based on the second output value When the obtained second output value is not included in the numerical value range of the second determination criterion, the target data is input to the first discriminator, whereby the first identification is performed. Obtaining the first output value from a container; The resulting was based on the first output value, to determine the feature is a program for.

本発明によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した判定の信頼性が損なわれてしまうのを防止する技術を提供することができる。   According to the present invention, it is possible to provide a technique for preventing the reliability of determination using a discriminator from being impaired even when the discrimination performance of the discriminator deteriorates due to re-learning or additional learning. it can.

図1は、本発明が適用される場面の一例を模式的に例示する。FIG. 1 schematically illustrates an example of a scene to which the present invention is applied. 図2は、実施の形態に係る検査装置のハードウェア構成の一例を模式的に例示する。FIG. 2 schematically illustrates an example of a hardware configuration of the inspection apparatus according to the embodiment. 図3は、実施の形態に係る学習装置のハードウェア構成の一例を模式的に例示する。FIG. 3 schematically illustrates an example of a hardware configuration of the learning device according to the embodiment. 図4は、実施の形態に係る検査装置のソフトウェア構成の一例を模式的に例示する。FIG. 4 schematically illustrates an example of the software configuration of the inspection apparatus according to the embodiment. 図5は、各識別器の判定基準の一例を例示する。FIG. 5 illustrates an example of determination criteria for each classifier. 図6は、実施の形態に係る学習装置のソフトウェア構成の一例を模式的に例示する。FIG. 6 schematically illustrates an example of the software configuration of the learning device according to the embodiment. 図7は、実施の形態に係る検査装置の処理手順の一例を例示する。FIG. 7 illustrates an example of a processing procedure of the inspection apparatus according to the embodiment. 図8は、実施の形態に係る学習装置の処理手順の一例を例示する。FIG. 8 illustrates an example of a processing procedure of the learning device according to the embodiment. 図9は、各識別器の判定基準のその他の例を例示する。FIG. 9 illustrates another example of determination criteria for each classifier. 図10は、他の形態に係る識別装置のハードウェア構成の一例を模式的に例示する。FIG. 10 schematically illustrates an example of a hardware configuration of an identification device according to another embodiment. 図11は、他の形態に係る識別装置のソフトウェア構成の一例を模式的に例示する。FIG. 11 schematically illustrates an example of the software configuration of the identification device according to another embodiment. 図12は、他の形態に係る識別装置のハードウェア構成の一例を模式的に例示する。FIG. 12 schematically illustrates an example of a hardware configuration of an identification device according to another embodiment. 図13は、他の形態に係る識別装置のソフトウェア構成の一例を模式的に例示する。FIG. 13 schematically illustrates an example of the software configuration of the identification device according to another embodiment.

以下、本発明の一側面に係る実施の形態(以下、「本実施形態」とも表記する)を、図面に基づいて説明する。ただし、以下で説明する本実施形態は、あらゆる点において本発明の例示に過ぎない。本発明の範囲を逸脱することなく種々の改良や変形を行うことができることは言うまでもない。つまり、本発明の実施にあたって、実施形態に応じた具体的構成が適宜採用されてもよい。なお、本実施形態において登場するデータを自然言語により説明しているが、より具体的には、コンピュータが認識可能な疑似言語、コマンド、パラメータ、マシン語等で指定される。   Hereinafter, an embodiment according to an aspect of the present invention (hereinafter, also referred to as “this embodiment”) will be described with reference to the drawings. However, this embodiment described below is only an illustration of the present invention in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. That is, in implementing the present invention, a specific configuration according to the embodiment may be adopted as appropriate. Although data appearing in this embodiment is described in a natural language, more specifically, it is specified by a pseudo language, a command, a parameter, a machine language, or the like that can be recognized by a computer.

§1 適用例
まず、本発明の基本的な構成の一例について説明する。再学習又は追加学習により識別器を更新した場合、次のような問題が生じ得る。すなわち、収集した追加のデータにより識別器の再学習又は追加学習を実施することで、更新された識別器は、追加のデータにより学習した未知のケースに対する識別を実施することができるようになる。しかしながら、学習するデータの件数が増えると、過学習等が生じてしまうことにより、対象のデータに表れる特徴を識別器により識別する性能が悪化してしまう可能性がある。
§1 Application Example First, an example of a basic configuration of the present invention will be described. When the classifier is updated by re-learning or additional learning, the following problem may occur. That is, by performing re-learning or additional learning of the discriminator with the collected additional data, the updated discriminator can discriminate against an unknown case learned by the additional data. However, when the number of data to be learned increases, over-learning or the like may occur, which may deteriorate the performance of identifying the features appearing in the target data by the classifier.

そこで、本発明の一例では、対象データに表れる特徴の判定を行うために、再学習又は追加学習前の第1識別器と、再学習又は追加学習後の第2識別器との両方を保持する。第2識別器の第2判定基準の数値範囲は、第1識別器の第1判定基準の数値範囲よりも狭く設定される。つまり、第2判定基準の数値範囲には、第2識別器による特徴の識別を行わない範囲が設けられる。そして、本発明の一例では、第2識別器の第2出力値が第2判定基準の数値範囲に含まれる場合には、当該第2識別器の第2出力値に基づいて、対象データに表れる特徴を判定する。一方、第2識別器の第2出力値が第2判定基準の数値範囲に含まれない場合には、第1識別器の第1出力値に基づいて、対象データに表れる特徴を判定する。   Therefore, in an example of the present invention, in order to determine the feature appearing in the target data, both the first discriminator before re-learning or additional learning and the second discriminator after re-learning or additional learning are held. . The numerical range of the second determination criterion of the second discriminator is set narrower than the numerical range of the first determination criterion of the first discriminator. That is, the numerical range of the second determination criterion is provided with a range in which features are not identified by the second classifier. And in an example of this invention, when the 2nd output value of a 2nd discriminator is contained in the numerical range of a 2nd criterion, it appears in object data based on the 2nd output value of the said 2nd discriminator. Determine the characteristics. On the other hand, when the second output value of the second discriminator is not included in the numerical range of the second determination criterion, the feature appearing in the target data is determined based on the first output value of the first discriminator.

したがって、本発明の一例では、第2識別器の第2出力値が特徴の識別結果を明確に示している場合には、第2識別器を信頼して特徴の判定を行い、そうでない場合には、第2識別器を利用せずに第1識別器により特徴の判定を行うようにすることができる。これにより、過学習による識別性能の悪化が生じ得る閾値の境界付近の範囲において、第2識別器を利用せずに第1識別器を利用することで、再学習又は追加学習前の判定結果を保証し、再学習又は追加学習による判定結果の変動を抑制することができる。したがって、本発明の一例によれば、再学習又は追加学習により識別器の識別性能が悪化してしまった場合でも、識別器を利用した判定の信頼性が損なわれてしまうのを防止することができる。   Therefore, in one example of the present invention, when the second output value of the second discriminator clearly indicates the feature discrimination result, the second discriminator is used to perform the feature determination, and otherwise The feature can be determined by the first discriminator without using the second discriminator. Thus, by using the first discriminator without using the second discriminator in the range near the threshold boundary where the discrimination performance may be deteriorated due to over-learning, the determination result before re-learning or additional learning is obtained. It is possible to guarantee and suppress fluctuations in the determination result due to re-learning or additional learning. Therefore, according to an example of the present invention, even when the discrimination performance of the discriminator deteriorates due to re-learning or additional learning, it is possible to prevent the reliability of determination using the discriminator from being impaired. it can.

次に、図1を用いて、本発明が適用される場面の一例について説明する。図1は、本発明を製品Rの外観検査に適用した場面の一例を模式的に例示する。ただし、本発明の適用範囲は、以下で例示する外観検査の例に限られる訳ではない。本発明は、再学習又は追加学習により識別器を更新するあらゆる場面に適用可能である。   Next, an example of a scene to which the present invention is applied will be described with reference to FIG. FIG. 1 schematically illustrates an example of a scene in which the present invention is applied to an appearance inspection of a product R. However, the application range of the present invention is not limited to the example of visual inspection exemplified below. The present invention can be applied to any scene where the classifier is updated by re-learning or additional learning.

図1に示されるとおり、本実施形態に係る検査装置1は、製品Rの良否を検査するように構成されたコンピュータである。具体的には、検査装置1は、検査の対象となる製品Rの写る対象画像データ121を取得する。本実施形態では、検査装置1は、カメラ31に接続されており、このカメラ31により製品Rを撮影することで、対象画像データ121を取得する。   As shown in FIG. 1, the inspection apparatus 1 according to the present embodiment is a computer configured to inspect the quality of the product R. Specifically, the inspection apparatus 1 acquires target image data 121 in which a product R to be inspected is captured. In the present embodiment, the inspection apparatus 1 is connected to the camera 31, and acquires the target image data 121 by photographing the product R with the camera 31.

次に、検査装置1は、再学習又は追加学習前の第1識別器5及び再学習又は追加学習後の第2識別器6を利用して、取得した対象画像データ121に写る製品Rの良否を判定する。なお、再学習又は追加学習「前」及び「後」は、第1識別器5及び第2識別器6の間の相対的な関係を示しているに過ぎない。第1識別器5は、第2識別器6以外の他の識別器との関係では、再学習又は追加学習後の識別器であってもよい。また、第2識別器6は、第1識別器5以外の他の識別器との関係では、再学習又は追加学習前の識別器であってもよい。   Next, the inspection apparatus 1 uses the first discriminator 5 before re-learning or additional learning and the second discriminator 6 after re-learning or additional learning, and the quality of the product R reflected in the acquired target image data 121 is determined. Determine. Note that the relearning or additional learning “before” and “after” merely indicate a relative relationship between the first discriminator 5 and the second discriminator 6. The first discriminator 5 may be a discriminator after relearning or additional learning in relation to other discriminators other than the second discriminator 6. Further, the second discriminator 6 may be a discriminator before re-learning or additional learning in the relationship with other discriminators other than the first discriminator 5.

ここで、第1識別器5に対象画像データ121を入力することで第1識別器5から得られる第1出力値には、製品Rの良否を判定するための数値範囲が第1判定基準として設定されている。また、第2識別器6に対象画像データ121を入力することで第2識別器6から得られる第2出力値には、製品Rの良否を判定するための数値範囲が第2判定基準として設定されている。そして、第2判定基準の数値範囲は、第1判定基準の数値範囲よりも狭く設定されている。   Here, in the first output value obtained from the first discriminator 5 by inputting the target image data 121 to the first discriminator 5, the numerical range for judging the quality of the product R is used as the first judgment criterion. Is set. In addition, a numerical range for determining the quality of the product R is set as a second determination criterion in the second output value obtained from the second identifier 6 by inputting the target image data 121 to the second identifier 6. Has been. The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion.

本実施形態では、第2判定基準の数値範囲は、第2識別器6の出力に対して、製品Rは良品である(すなわち、欠陥がない)と判定する数値範囲、及び製品Rには欠陥がある(つまり、製品Rが不良品(欠陥品)である)と判定する数値範囲により構成される。また、第1判定基準の数値範囲は、第1識別器5の出力に対して、製品Rは良品であると判定する数値範囲、及び製品Rには欠陥があると判定する数値範囲により構成される。本実施形態では、第2判定基準の数値範囲は、例えば、第2識別器6を利用した判定が第1識別器5を利用した判定よりも厳しくなるように、第1判定基準の数値範囲よりも狭く設定される。   In the present embodiment, the numerical range of the second determination criterion is a numerical range for determining that the product R is a non-defective product (ie, there is no defect) with respect to the output of the second discriminator 6, and the product R is defective. (That is, the product R is a defective product (defective product)). Further, the numerical range of the first determination criterion is configured by a numerical range for determining that the product R is a non-defective product and a numerical range for determining that the product R is defective with respect to the output of the first discriminator 5. The In the present embodiment, the numerical range of the second determination criterion is, for example, greater than the numerical range of the first determination criterion so that the determination using the second discriminator 6 is stricter than the determination using the first discriminator 5. Is set too narrow.

これにより、検査装置1は、第2識別器6に対象画像データ121を入力することで、第2識別器6から第2出力値を取得する。そして、取得した第2出力値が第2判定基準の数値範囲に含まれている場合には、検査装置1は、第2識別器6による良否の判定を採用する、すなわち、第2出力値に基づいて、製品Rの良否を判定する。一方、取得した第2出力値が第2判定基準の数値範囲に含まれていない場合には、検査装置1は、第2識別器6による良否の判定を採用せず、第1識別器5に対象画像データ121を入力することで、第1識別器5から第1出力値を取得する。そして、検査装置1は、第1識別器5から取得した第1出力値に基づいて、製品Rの良否を判定する。製品Rの良否を判定した後、検査装置1は、その結果を出力する。   Thereby, the inspection apparatus 1 acquires the second output value from the second discriminator 6 by inputting the target image data 121 to the second discriminator 6. When the acquired second output value is included in the numerical range of the second determination criterion, the inspection apparatus 1 adopts the pass / fail determination by the second discriminator 6, that is, the second output value Based on this, the quality of the product R is determined. On the other hand, when the acquired second output value is not included in the numerical range of the second determination criterion, the inspection apparatus 1 does not adopt the pass / fail determination by the second discriminator 6 and the first discriminator 5 The first output value is acquired from the first discriminator 5 by inputting the target image data 121. Then, the inspection device 1 determines the quality of the product R based on the first output value acquired from the first discriminator 5. After determining the quality of the product R, the inspection apparatus 1 outputs the result.

一方、本実施形態に係る学習装置2は、検査装置1で利用する第1識別器5及び第2識別器6を構築するコンピュータである。具体的には、学習装置2は、製品の良否を学習するための画像データ222で構成された第1学習データ221を利用した機械学習を実施することで、製品の良否を判定する能力を習得した学習済みの第1識別器5を構築する。また、学習装置2は、第1学習データ221及び製品の良否を学習するための追加の画像データ227で構成された第2学習データ226を利用した機械学習を実施することで、製品の良否を判定する能力を習得した学習済みの第2識別器6を構築する。   On the other hand, the learning device 2 according to this embodiment is a computer that constructs the first discriminator 5 and the second discriminator 6 used in the inspection device 1. Specifically, the learning device 2 acquires the ability to determine the quality of the product by performing machine learning using the first learning data 221 composed of the image data 222 for learning the quality of the product. The learned first discriminator 5 is constructed. In addition, the learning device 2 performs the machine learning using the second learning data 226 including the first learning data 221 and the additional image data 227 for learning the quality of the product, thereby determining the quality of the product. A learned second discriminator 6 that has acquired the ability to determine is constructed.

これにより、学習装置2は、検査装置1で利用する第1識別器5及び第2識別器6を構築することができる。検査装置1は、例えば、ネットワークを介して、学習装置2により構築された学習済みの第1識別器5及び第2識別器6を取得することができる。なお、ネットワークの種類は、例えば、インターネット、無線通信網、移動通信網、電話網、専用網等から適宜選択されてよい。   Thereby, the learning device 2 can construct the first discriminator 5 and the second discriminator 6 used in the inspection device 1. The inspection device 1 can acquire the learned first discriminator 5 and second discriminator 6 constructed by the learning device 2 via, for example, a network. Note that the type of network may be appropriately selected from, for example, the Internet, a wireless communication network, a mobile communication network, a telephone network, and a dedicated network.

以上のとおり、本実施形態に係る検査装置1では、第2識別器6による判定結果を採用するか否かを定める第2判定基準の数値範囲が、第1判定基準の数値範囲よりも狭く設定されている。これにより、第2識別器6を利用した良否の判定が第1識別器5を利用した良否の判定よりも厳しく行われる。すなわち、本実施形態に係る検査装置1は、第2識別器6の第2出力値が良否の識別結果を明確に示している場合には、第2識別器6により製品Rの良否を判定し、そうでない場合には、第2識別器6による判定結果を採用せずに第1識別器5により製品Rの良否を判定する。   As described above, in the inspection apparatus 1 according to the present embodiment, the numerical range of the second determination criterion that determines whether or not to adopt the determination result by the second discriminator 6 is set narrower than the numerical range of the first determination criterion. Has been. Thereby, the quality determination using the second discriminator 6 is performed more strictly than the quality determination using the first discriminator 5. That is, when the second output value of the second discriminator 6 clearly indicates the discrimination result of pass / fail, the inspection device 1 according to this embodiment determines whether the product R is pass / fail by the second discriminator 6. Otherwise, the quality of the product R is judged by the first discriminator 5 without adopting the judgment result by the second discriminator 6.

これにより、過学習による識別性能の悪化が生じ得る閾値の境界付近の範囲において、第2識別器6を利用せずに第1識別器5を利用することで、再学習又は追加学習前の判定結果を保証し、再学習又は追加学習による判定結果の変動を抑制することができる。したがって、本実施形態によれば、再学習又は追加学習により第2識別器6の識別性能が第1識別器5よりも悪化してしまった場合でも、良否判定の信頼性が損なわれてしまうのを防止することができる。   As a result, the determination before re-learning or additional learning is performed by using the first discriminator 5 without using the second discriminator 6 in the vicinity of the threshold boundary where degradation of discrimination performance due to over-learning may occur. It is possible to guarantee the result and suppress the variation of the determination result due to re-learning or additional learning. Therefore, according to the present embodiment, even when the discrimination performance of the second discriminator 6 is worse than that of the first discriminator 5 due to relearning or additional learning, the reliability of the pass / fail judgment is impaired. Can be prevented.

なお、外観検査の対象となる製品Rは、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。製品Rは、例えば、電子部品、自動車部品等の製造ラインで搬送される物であってよい。電子部品は、例えば、基盤、チップコンデンサ、液晶、リレーの巻線等である。自動車部品は、例えば、コンロッド、シャフト、エンジンブロック、パワーウィンドウスイッチ、パネル等である。また、良否の判定は、製品Rに欠陥があるか否かを単に判定することであってもよいし、製品Rに欠陥がある否かを判定することに加えて、その欠陥の種類を識別することを含んでもよい。欠陥は、例えば、傷、汚れ、クラック、打痕、埃、バリ、色ムラ等である。   The product R to be subjected to the appearance inspection is not particularly limited, and may be appropriately selected according to the embodiment. The product R may be, for example, a product that is conveyed on a production line such as an electronic component or an automobile component. The electronic component is, for example, a substrate, a chip capacitor, a liquid crystal, a relay winding, or the like. The automobile parts are, for example, connecting rods, shafts, engine blocks, power window switches, panels, and the like. Further, the determination of pass / fail may be simply determining whether or not the product R has a defect, and in addition to determining whether or not the product R has a defect, the type of the defect is identified. May include. The defects are, for example, scratches, dirt, cracks, dents, dust, burrs, color unevenness, and the like.

§2 構成例
[ハードウェア構成]
<検査装置>
次に、図2を用いて、本実施形態に係る検査装置1のハードウェア構成の一例について説明する。図2は、本実施形態に係る検査装置1のハードウェア構成の一例を模式的に例示する。
§2 Configuration example [Hardware configuration]
<Inspection device>
Next, an example of the hardware configuration of the inspection apparatus 1 according to the present embodiment will be described with reference to FIG. FIG. 2 schematically illustrates an example of a hardware configuration of the inspection apparatus 1 according to the present embodiment.

図2に示されるとおり、本実施形態に係る検査装置1は、制御部11、記憶部12、通信インタフェース13、外部インタフェース14、入力装置15、出力装置16、及びドライブ17が電気的に接続されたコンピュータである。なお、図2では、通信インタフェース及び外部インタフェースをそれぞれ「通信I/F」及び「外部I/F」と記載している。   As shown in FIG. 2, the inspection device 1 according to this embodiment includes a control unit 11, a storage unit 12, a communication interface 13, an external interface 14, an input device 15, an output device 16, and a drive 17 that are electrically connected. Computer. In FIG. 2, the communication interface and the external interface are described as “communication I / F” and “external I / F”, respectively.

制御部11は、ハードウェアプロセッサであるCPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)等を含み、プログラム及び各種データに基づいて情報処理を実行するように構成される。記憶部12は、メモリの一例であり、例えば、ハードディスクドライブ、ソリッドステートドライブ等で構成される。本実施形態では、記憶部12は、検査プログラム81、第1学習結果データ224、第2学習結果データ229等の各種情報を記憶する。   The control unit 11 includes a CPU (Central Processing Unit) that is a hardware processor, a RAM (Random Access Memory), a ROM (Read Only Memory), and the like, and is configured to execute information processing based on programs and various data. The The storage unit 12 is an example of a memory, and includes, for example, a hard disk drive or a solid state drive. In the present embodiment, the storage unit 12 stores various types of information such as the inspection program 81, the first learning result data 224, the second learning result data 229, and the like.

検査プログラム81は、第1識別器5及び第2識別器6を利用して、対象画像データ121に写る製品Rの良否を判定する後述する情報処理(図7)を検査装置1に実行させるためのプログラムであり、当該情報処理の一連の命令を含む。第1学習結果データ224は、学習済みの第1識別器5の設定を行うためのデータである。第2学習結果データ229は、学習済みの第2識別器6の設定を行うためのデータである。詳細は後述する。   The inspection program 81 uses the first discriminator 5 and the second discriminator 6 to cause the inspection apparatus 1 to execute information processing (FIG. 7) described later for determining the quality of the product R shown in the target image data 121. And includes a series of instructions for the information processing. The first learning result data 224 is data for setting the learned first discriminator 5. The second learning result data 229 is data for setting the learned second discriminator 6. Details will be described later.

通信インタフェース13は、例えば、有線LAN(Local Area Network)モジュール、無線LANモジュール等であり、ネットワークを介した有線又は無線通信を行うためのインタフェースである。検査装置1は、この通信インタフェース13を利用することで、ネットワークを介したデータ通信を他の情報処理装置(例えば、学習装置2)と行うことができる。   The communication interface 13 is, for example, a wired LAN (Local Area Network) module, a wireless LAN module, or the like, and is an interface for performing wired or wireless communication via a network. By using this communication interface 13, the inspection apparatus 1 can perform data communication via a network with another information processing apparatus (for example, the learning apparatus 2).

外部インタフェース14は、例えば、USB(Universal Serial Bus)ポート、専用ポート等であり、外部装置と接続するためのインタフェースである。外部インタフェース14の種類及び数は、接続される外部装置の種類及び数に応じて適宜選択されてよい。本実施形態では、検査装置1は、外部インタフェース14を介して、カメラ31に接続される。   The external interface 14 is, for example, a USB (Universal Serial Bus) port, a dedicated port, or the like, and is an interface for connecting to an external device. The type and number of external interfaces 14 may be appropriately selected according to the type and number of external devices to be connected. In the present embodiment, the inspection apparatus 1 is connected to the camera 31 via the external interface 14.

カメラ31は、製品Rを撮影することで、対象画像データ121を取得するのに利用される。カメラ31の種類及び配置場所は、特に限定されなくてもよく、実施の形態に応じて適宜決定されてよい。カメラ31には、例えば、デジタルカメラ、ビデオカメラ等の公知のカメラが利用されてよい。カメラ31は、製品Rが搬送される生産ラインの近傍に配置されてよい。なお、カメラ31が通信インタフェースを備える場合、検査装置1は、外部インタフェース14ではなく、通信インタフェース13を介して、カメラ31に接続されてもよい。   The camera 31 is used to acquire the target image data 121 by photographing the product R. The type and location of the camera 31 may not be particularly limited, and may be appropriately determined according to the embodiment. For the camera 31, for example, a known camera such as a digital camera or a video camera may be used. The camera 31 may be disposed in the vicinity of the production line where the product R is conveyed. When the camera 31 includes a communication interface, the inspection apparatus 1 may be connected to the camera 31 via the communication interface 13 instead of the external interface 14.

入力装置15は、例えば、マウス、キーボード等の入力を行うための装置である。また、出力装置16は、例えば、ディスプレイ、スピーカ等の出力を行うための装置である。オペレータは、入力装置15及び出力装置16を利用することで、検査装置1を操作することができる。   The input device 15 is a device for performing input using, for example, a mouse or a keyboard. The output device 16 is a device for outputting, for example, a display or a speaker. The operator can operate the inspection apparatus 1 by using the input device 15 and the output device 16.

ドライブ17は、例えば、CDドライブ、DVDドライブ等であり、記憶媒体91に記憶されたプログラムを読み込むためのドライブ装置である。ドライブ17の種類は、記憶媒体91の種類に応じて適宜選択されてよい。上記検査プログラム81、第1学習結果データ224、及び第2学習結果データ229の少なくともいずれかは、この記憶媒体91に記憶されていてもよい。   The drive 17 is, for example, a CD drive, a DVD drive, or the like, and is a drive device for reading a program stored in the storage medium 91. The type of the drive 17 may be appropriately selected according to the type of the storage medium 91. At least one of the inspection program 81, the first learning result data 224, and the second learning result data 229 may be stored in the storage medium 91.

記憶媒体91は、コンピュータその他装置、機械等が、記録されたプログラム等の情報を読み取り可能なように、当該プログラム等の情報を、電気的、磁気的、光学的、機械的又は化学的作用によって蓄積する媒体である。検査装置1は、この記憶媒体91から、上記検査プログラム81、第1学習結果データ224、及び第2学習結果データ229の少なくともいずれかを取得してもよい。   The storage medium 91 stores information such as a program by electrical, magnetic, optical, mechanical, or chemical action so that a computer or other device, machine, or the like can read the recorded program or the like. It is a medium to accumulate. The inspection apparatus 1 may acquire at least one of the inspection program 81, the first learning result data 224, and the second learning result data 229 from the storage medium 91.

ここで、図2では、記憶媒体91の一例として、CD、DVD等のディスク型の記憶媒体を例示している。しかしながら、記憶媒体91の種類は、ディスク型に限定される訳ではなく、ディスク型以外であってもよい。ディスク型以外の記憶媒体として、例えば、フラッシュメモリ等の半導体メモリを挙げることができる。   Here, in FIG. 2, as an example of the storage medium 91, a disk-type storage medium such as a CD or a DVD is illustrated. However, the type of the storage medium 91 is not limited to the disk type and may be other than the disk type. Examples of the storage medium other than the disk type include a semiconductor memory such as a flash memory.

なお、検査装置1の具体的なハードウェア構成に関して、実施形態に応じて、適宜、構成要素の省略、置換及び追加が可能である。例えば、制御部11は、複数のハードウェアプロセッサを含んでもよい。ハードウェアプロセッサは、マイクロプロセッサ、FPGA(field-programmable gate array)、DSP(digital signal processor)等で構成されてよい。記憶部12は、制御部11に含まれるRAM及びROMにより構成されてもよい。通信インタフェース13、外部インタフェース14、入力装置15、出力装置16及びドライブ17の少なくともいずれかは省略されてもよい。検査装置1は、複数台のコンピュータで構成されてもよい。この場合、各コンピュータのハードウェア構成は、一致していてもよいし、一致していなくてもよい。また、検査装置1は、提供されるサービス専用に設計された情報処理装置の他、汎用のサーバ装置、汎用のデスクトップPC(Personal Computer)、ノートPC、タブレットPC、スマートフォンを含む携帯電話等であってもよい。   It should be noted that regarding the specific hardware configuration of the inspection apparatus 1, the components can be omitted, replaced, and added as appropriate according to the embodiment. For example, the control unit 11 may include a plurality of hardware processors. The hardware processor may be a microprocessor, a field-programmable gate array (FPGA), a digital signal processor (DSP), or the like. The storage unit 12 may be configured by a RAM and a ROM included in the control unit 11. At least one of the communication interface 13, the external interface 14, the input device 15, the output device 16, and the drive 17 may be omitted. The inspection apparatus 1 may be composed of a plurality of computers. In this case, the hardware configurations of the computers may or may not match. The inspection apparatus 1 is an information processing apparatus designed exclusively for the service to be provided, a general-purpose server apparatus, a general-purpose desktop PC (Personal Computer), a notebook PC, a tablet PC, a mobile phone including a smartphone, and the like. May be.

<学習装置>
次に、図3を用いて、本実施形態に係る学習装置2のハードウェア構成の一例について説明する。図3は、本実施形態に係る学習装置2のハードウェア構成の一例を模式的に例示する。
<Learning device>
Next, an example of the hardware configuration of the learning device 2 according to the present embodiment will be described with reference to FIG. FIG. 3 schematically illustrates an example of a hardware configuration of the learning device 2 according to the present embodiment.

図3に示されるとおり、本実施形態に係る学習装置2は、制御部21、記憶部22、通信インタフェース23、入力装置24、出力装置25、及びドライブ26が電気的に接続されたコンピュータである。なお、図3では、図2と同様に、通信インタフェースを「通信I/F」と記載している。   As illustrated in FIG. 3, the learning device 2 according to the present embodiment is a computer in which a control unit 21, a storage unit 22, a communication interface 23, an input device 24, an output device 25, and a drive 26 are electrically connected. . In FIG. 3, as in FIG. 2, the communication interface is described as “communication I / F”.

学習装置2の制御部21〜ドライブ26はそれぞれ、上記検査装置1の制御部11〜通信インタフェース13及び入力装置15〜ドライブ17それぞれと同様に構成されてよい。すなわち、制御部21は、ハードウェアプロセッサであるCPU、RAM、ROM等を含み、プログラム及びデータに基づいて各種情報処理を実行するように構成される。記憶部22は、例えば、ハードディスクドライブ、ソリッドステートドライブ等で構成される。記憶部22は、学習プログラム82、製品の良否を学習するための画像データ222、製品の良否を学習するための追加の画像データ227、第1学習結果データ224、第2学習結果データ229等の各種情報を記憶する。   The control unit 21 to the drive 26 of the learning device 2 may be configured similarly to the control unit 11 to the communication interface 13 and the input device 15 to the drive 17 of the inspection device 1, respectively. That is, the control unit 21 includes a CPU, RAM, ROM, and the like, which are hardware processors, and is configured to execute various types of information processing based on programs and data. The storage unit 22 is configured by, for example, a hard disk drive, a solid state drive, or the like. The storage unit 22 includes a learning program 82, image data 222 for learning product quality, additional image data 227 for learning product quality, first learning result data 224, second learning result data 229, and the like. Various types of information are stored.

学習プログラム82は、第1識別器5及び第2識別器6それぞれを構築する後述の機械学習の情報処理(図8)を学習装置2に実行させ、その結果として第1学習結果データ224及び第2学習結果データ229を生成させるためのプログラムである。学習プログラム82は、その情報処理の一連の命令を含む。画像データ222は、第1識別器5の機械学習に利用される第1学習データ221を構成する。第1学習データ221及び追加の画像データ227は、第2識別器6の機械学習に利用される第2学習データ226を構成する。詳細は後述する。   The learning program 82 causes the learning device 2 to execute later-described machine learning information processing (FIG. 8) for constructing the first discriminator 5 and the second discriminator 6, and as a result, the first learning result data 224 and the first discriminator 2 is a program for generating learning result data 229. The learning program 82 includes a series of instructions for the information processing. The image data 222 constitutes first learning data 221 used for machine learning of the first discriminator 5. The first learning data 221 and the additional image data 227 constitute second learning data 226 used for machine learning of the second discriminator 6. Details will be described later.

通信インタフェース23は、例えば、有線LANモジュール、無線LANモジュール等であり、ネットワークを介した有線又は無線通信を行うためのインタフェースである。学習装置2は、この通信インタフェース23を利用することで、ネットワークを介したデータ通信を他の情報処理装置(例えば、検査装置1)と行うことができる。   The communication interface 23 is, for example, a wired LAN module, a wireless LAN module, or the like, and is an interface for performing wired or wireless communication via a network. The learning device 2 can perform data communication via the network with another information processing device (for example, the inspection device 1) by using the communication interface 23.

入力装置24は、例えば、マウス、キーボード等の入力を行うための装置である。また、出力装置25は、例えば、ディスプレイ、スピーカ等の出力を行うための装置である。オペレータは、入力装置24及び出力装置25を利用することで、学習装置2を操作することができる。   The input device 24 is a device for performing input using, for example, a mouse or a keyboard. The output device 25 is a device for outputting a display, a speaker, or the like, for example. The operator can operate the learning device 2 by using the input device 24 and the output device 25.

ドライブ26は、例えば、CDドライブ、DVDドライブ等であり、記憶媒体92に記憶されたプログラムを読み込むためのドライブ装置である。上記学習プログラム82、画像データ222、及び追加の画像データ227のうちの少なくともいずれかは、記憶媒体92に記憶されていてもよい。また、学習装置2は、記憶媒体92から、上記学習プログラム82、画像データ222、及び追加の画像データ227のうちの少なくともいずれかを取得してもよい。   The drive 26 is, for example, a CD drive, a DVD drive, or the like, and is a drive device for reading a program stored in the storage medium 92. At least one of the learning program 82, the image data 222, and the additional image data 227 may be stored in the storage medium 92. The learning device 2 may acquire at least one of the learning program 82, the image data 222, and the additional image data 227 from the storage medium 92.

なお、学習装置2の具体的なハードウェア構成に関して、実施形態に応じて、適宜、構成要素の省略、置換及び追加が可能である。例えば、制御部21は、複数のハードウェアプロセッサを含んでもよい。ハードウェアプロセッサは、マイクロプロセッサ、FPGA、DSP等で構成されてよい。記憶部22は、制御部21に含まれるRAM及びROMにより構成されてもよい。通信インタフェース23、入力装置24、出力装置25及びドライブ26の少なくともいずれかは省略されてもよい。学習装置2は、複数台のコンピュータで構成されてもよい。この場合、各コンピュータのハードウェア構成は、一致していてもよいし、一致していなくてもよい。また、学習装置2は、提供されるサービス専用に設計された情報処理装置の他、汎用のサーバ装置、汎用のPC等であってもよい。   In addition, regarding the specific hardware configuration of the learning device 2, the components can be omitted, replaced, and added as appropriate according to the embodiment. For example, the control unit 21 may include a plurality of hardware processors. The hardware processor may be configured by a microprocessor, FPGA, DSP, or the like. The storage unit 22 may be configured by a RAM and a ROM included in the control unit 21. At least one of the communication interface 23, the input device 24, the output device 25, and the drive 26 may be omitted. The learning device 2 may be composed of a plurality of computers. In this case, the hardware configurations of the computers may or may not match. Further, the learning device 2 may be a general-purpose server device, a general-purpose PC, or the like, in addition to an information processing device designed exclusively for the provided service.

[ソフトウェア構成]
<検査装置>
次に、図4を用いて、本実施形態に係る検査装置1のソフトウェア構成の一例について説明する。図4は、本実施形態に係る検査装置1のソフトウェア構成の一例を模式的に例示する。
Software configuration
<Inspection device>
Next, an example of the software configuration of the inspection apparatus 1 according to the present embodiment will be described with reference to FIG. FIG. 4 schematically illustrates an example of the software configuration of the inspection apparatus 1 according to the present embodiment.

検査装置1の制御部11は、記憶部12に記憶された検査プログラム81をRAMに展開する。そして、制御部11は、RAMに展開された検査プログラム81をCPUにより解釈及び実行して、各構成要素を制御する。これにより、図4に示されるとおり、本実施形態に係る検査装置1は、データ取得部111、判定部112、及び出力部113をソフトウェアモジュールとして備えるコンピュータとして動作する。すなわち、本実施形態では、各ソフトウェアモジュールは、制御部11(CPU)により実現される。   The control unit 11 of the inspection apparatus 1 expands the inspection program 81 stored in the storage unit 12 in the RAM. Then, the control unit 11 interprets and executes the inspection program 81 expanded in the RAM, and controls each component. Thereby, as FIG. 4 shows, the test | inspection apparatus 1 which concerns on this embodiment operate | moves as a computer provided with the data acquisition part 111, the determination part 112, and the output part 113 as a software module. That is, in the present embodiment, each software module is realized by the control unit 11 (CPU).

データ取得部111は、検査の対象となる製品Rの写る対象画像データ121を取得する。本実施形態では、データ取得部111は、カメラ31により製品Rを撮影することで、対象画像データ121を取得する。判定部112は、第1識別器5及び第2識別器6を含んでいる。判定部112は、第1識別器5及び第2識別器6を利用して、取得した対象画像データ121に写る製品Rの良否を判定する。出力部113は、製品Rの良否を判定した結果を出力する。   The data acquisition unit 111 acquires target image data 121 in which the product R to be inspected is captured. In the present embodiment, the data acquisition unit 111 acquires the target image data 121 by photographing the product R with the camera 31. The determination unit 112 includes a first discriminator 5 and a second discriminator 6. The determination unit 112 uses the first discriminator 5 and the second discriminator 6 to determine pass / fail of the product R shown in the acquired target image data 121. The output unit 113 outputs the result of determining the quality of the product R.

ここで、図5を更に用いて、第1識別器5及び第2識別器6それぞれに設定される判定基準について説明する。図5は、本実施形態に係る各識別器(5、6)に設定される各判定基準を模式的に例示する。本実施形態では、第1識別器5に対象画像データ121を入力することで第1識別器5から得られる第1出力値に対して、製品Rの良否を判定するための数値範囲が第1判定基準として設定される。また、第2識別器6に対象画像データ121を入力することで第2識別器6から得られる第2出力値に対して、製品Rの良否を判定するための数値範囲が第2判定基準として設定される。第2識別器6による良否の判定の結果を採用しない範囲を設けるため、第2判定基準の数値範囲は、第1判定基準の数値範囲よりも狭く設定される。   Here, with reference to FIG. 5, the determination criteria set for each of the first discriminator 5 and the second discriminator 6 will be described. FIG. 5 schematically illustrates each criterion set for each classifier (5, 6) according to the present embodiment. In the present embodiment, the first numerical value range for determining the quality of the product R with respect to the first output value obtained from the first discriminator 5 by inputting the target image data 121 to the first discriminator 5 is the first. Set as a criterion. In addition, a numerical range for determining the quality of the product R with respect to the second output value obtained from the second discriminator 6 by inputting the target image data 121 to the second discriminator 6 is used as the second judgment criterion. Is set. In order to provide a range in which the result of quality determination by the second discriminator 6 is not adopted, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion.

本実施形態に係る判定部112は、対象画像データ121を第2識別器6に入力することで、製品Rの良否を判定した結果に対応する第2出力値を第2識別器6から取得する。そして、取得した第2出力値が第2判定基準の数値範囲に含まれている場合には、判定部112は、第2識別器6による良否の判定を採用する、すなわち、第2出力値に基づいて、製品Rの良否を判定する。一方、取得した第2出力値が第2判定基準の数値範囲に含まれていない場合には、判定部112は、第2識別器6による良否の判定を採用せず、第1識別器5に対象画像データ121を入力することで、第1識別器5から第1出力値を取得する。そして、判定部112は、第1識別器5から取得した第1出力値に基づいて、製品Rの良否を判定する。   The determination unit 112 according to the present embodiment acquires the second output value corresponding to the result of determining the quality of the product R from the second classifier 6 by inputting the target image data 121 to the second classifier 6. . Then, when the acquired second output value is included in the numerical range of the second determination criterion, the determination unit 112 adopts the pass / fail determination by the second discriminator 6, that is, the second output value Based on this, the quality of the product R is determined. On the other hand, when the acquired second output value is not included in the numerical range of the second determination criterion, the determination unit 112 does not adopt the pass / fail determination by the second discriminator 6, and the first discriminator 5 The first output value is acquired from the first discriminator 5 by inputting the target image data 121. Then, the determination unit 112 determines the quality of the product R based on the first output value acquired from the first discriminator 5.

具体的に、図5で例示される本実施形態では、第1識別器5の第1出力値及び第2識別器6の第2出力値はそれぞれ、値が大きいほど製品Rに欠陥があることを示し、値が小さいほど製品Rは良品である(すなわち、欠陥がない)ことを示している。第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成される。一方、第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成される。   Specifically, in the present embodiment illustrated in FIG. 5, the larger the value of the first output value of the first discriminator 5 and the second output value of the second discriminator 6, the more defective the product R is. The smaller the value is, the better the product R is (ie, there is no defect). The numerical range of the first criterion is composed of a range that is greater than or equal to the first threshold and a range that is less than the first threshold. On the other hand, the numerical range of the second determination criterion is configured by a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold.

そこで、本実施形態では、判定部112は、対象画像データ121を第2識別器6に入力することで、製品Rの良否を判定した結果に対応する第2出力値を第2識別器6から取得する。次に、判定部112は、第2出力値と第2閾値とを比較する。そして、第2識別器6から取得した第2出力値が第2閾値より大きい場合には、判定部112は、第2判定基準の数値範囲に第2出力値が含まれるとして、製品Rには欠陥があると判定する。また、判定部112は、第2出力値と第3閾値とを比較する。そして、第2識別器6から取得した第2出力値が第3閾値よりも小さい場合には、第2判定基準の数値範囲に第2出力値が含まれるとして、判定部112は、製品Rは良品であると判定する。   Therefore, in the present embodiment, the determination unit 112 inputs the target image data 121 to the second discriminator 6, thereby obtaining the second output value corresponding to the result of determining the quality of the product R from the second discriminator 6. get. Next, the determination unit 112 compares the second output value with the second threshold value. And when the 2nd output value acquired from the 2nd discriminator 6 is larger than the 2nd threshold, the judgment part 112 assumes that the 2nd output value is included in the numerical range of the 2nd judgment standard, and product R Judge that there is a defect. In addition, the determination unit 112 compares the second output value with the third threshold value. When the second output value acquired from the second discriminator 6 is smaller than the third threshold value, the determination unit 112 determines that the product R is determined that the second output value is included in the numerical range of the second determination criterion. Judged to be non-defective.

一方、第2識別器6から取得した第2出力値が、第2閾値よりも小さく、第3閾値よりも大きい場合には、第2判定基準の数値範囲に第2出力値は含まれないとして、判定部112は、対象画像データ121を第1識別器5に入力することで、製品Rの良否を判定した結果である第1出力値を第1識別器5から取得する。次に、判定部112は、第1出力値と第1閾値とを比較する。そして、取得した第1出力値が第1閾値よりも大きい場合には、判定部112は、製品Rには欠陥があると判定する。他方、取得した第1出力値が第1閾値よりも小さい場合には、判定部112は、製品Rは良品であると判定する。   On the other hand, if the second output value acquired from the second discriminator 6 is smaller than the second threshold and greater than the third threshold, the second output value is not included in the numerical range of the second determination criterion. The determination unit 112 inputs the target image data 121 to the first discriminator 5, thereby acquiring a first output value that is a result of determining whether the product R is good or bad from the first discriminator 5. Next, the determination unit 112 compares the first output value with the first threshold value. And when the acquired 1st output value is larger than a 1st threshold value, the determination part 112 determines with the product R having a defect. On the other hand, when the acquired first output value is smaller than the first threshold value, the determination unit 112 determines that the product R is a non-defective product.

すなわち、本実施形態では、第2閾値以上の範囲及び第3閾値以下の範囲では、第2識別器6による良否の判定結果を採用し、第3閾値と第2閾値との間の範囲では、第2識別器6による良否の判定結果を採用しないようにする。これにより、判定部112は、第2識別器6を利用した良否の判定を、第1識別器5を利用した良否の判定よりも厳しく行う。つまり、判定部112は、第2識別器6の第2出力値が良否の識別結果を明確に示している場合には、第2識別器6を信頼して製品Rの良否を判定し、そうでない場合には、第2識別器6による判定結果を採用せずに第1識別器5により製品Rの良否を判定する。   That is, in this embodiment, in the range above the second threshold and the range below the third threshold, the pass / fail judgment result by the second discriminator 6 is adopted, and in the range between the third threshold and the second threshold, The determination result of pass / fail by the second discriminator 6 is not adopted. Thereby, the determination unit 112 performs the quality determination using the second classifier 6 more strictly than the quality determination using the first classifier 5. That is, when the second output value of the second discriminator 6 clearly indicates the pass / fail discrimination result, the determination unit 112 trusts the second discriminator 6 to determine pass / fail of the product R. Otherwise, the quality of the product R is judged by the first discriminator 5 without adopting the judgment result by the second discriminator 6.

なお、図5の例では、第1閾値は、第2閾値と第3閾値との間の値である。すなわち、第2閾値は、第1閾値よりも大きな値に設定され、第3閾値は、第1閾値よりも小さい値に設定されている。第1識別器5の機械学習に利用した画像データ222を第1識別器5に入力することで得られる第1出力値と画像データ222を第2識別器6に入力することで得られる第2出力値とがほぼ一致することが保証されている場合には、各閾値は、このような関係に設定されるのが好ましい。これにより、第2識別器6を利用した良否の判定の基準を、第1識別器5を利用した良否の判定の基準よりも厳しく設定することができる。ただし、各閾値の関係は、このような例に限定されなくてもよい。例えば、第1閾値は、第2閾値又は第3閾値と一致していてもよい。また、第1閾値は、第2閾値よりも大きくてもよいし、第3閾値よりも小さくてもよい。各閾値は、適宜決定されてよい。   In the example of FIG. 5, the first threshold is a value between the second threshold and the third threshold. That is, the second threshold value is set to a value larger than the first threshold value, and the third threshold value is set to a value smaller than the first threshold value. A second output value obtained by inputting the first output value obtained by inputting the image data 222 used for machine learning of the first discriminator 5 to the first discriminator 5 and the image data 222 to the second discriminator 6. In the case where it is guaranteed that the output values substantially coincide with each other, it is preferable that the respective threshold values are set in such a relationship. As a result, the criterion for quality determination using the second discriminator 6 can be set more strictly than the criterion for quality determination using the first discriminator 5. However, the relationship between the threshold values may not be limited to such an example. For example, the first threshold value may coincide with the second threshold value or the third threshold value. In addition, the first threshold value may be larger than the second threshold value or smaller than the third threshold value. Each threshold value may be determined as appropriate.

(識別器)
次に、各識別器(5、6)の構成について説明する。図4に示されるとおり、第1識別器5は、ニューラルネットワークにより構成される。具体的には、第1識別器5は、いわゆる深層学習に用いられる多層構造のニューラルネットワークにより構成されており、入力層51、中間層(隠れ層)52、及び出力層53を備えている。
(Identifier)
Next, the configuration of each discriminator (5, 6) will be described. As shown in FIG. 4, the first discriminator 5 is configured by a neural network. Specifically, the first discriminator 5 is configured by a multilayer neural network used for so-called deep learning, and includes an input layer 51, an intermediate layer (hidden layer) 52, and an output layer 53.

なお、図4の例では、第1識別器5を構成するニューラルネットワークは、1層の中間層52を備えており、入力層51の出力が中間層52に入力され、中間層52の出力が出力層53に入力されている。しかしながら、中間層52の数は、1層に限られなくてもよい。第1識別器5は、2層以上の中間層52を備えてもよい。   In the example of FIG. 4, the neural network constituting the first discriminator 5 includes one intermediate layer 52, the output of the input layer 51 is input to the intermediate layer 52, and the output of the intermediate layer 52 is Input to the output layer 53. However, the number of intermediate layers 52 may not be limited to one layer. The first discriminator 5 may include two or more intermediate layers 52.

各層51〜53は、1又は複数のニューロンを備えている。例えば、入力層51のニューロンの数は、対象画像データ121に応じて設定されてよい。中間層52のニューロンの数は、実施の形態に応じて適宜設定されてよい。また、出力層53のニューロンの数は、良否の判定結果の出力形式に応じて設定されてよい。具体例として、入力層51のニューロンの数は、対象画像データ121の画素数に応じて設定されてよい。この場合、入力層51の各ニューロンには、対象画像データ121の対応する各画素の画素値が入力されてよい。   Each layer 51 to 53 includes one or a plurality of neurons. For example, the number of neurons in the input layer 51 may be set according to the target image data 121. The number of neurons in the intermediate layer 52 may be set as appropriate according to the embodiment. The number of neurons in the output layer 53 may be set according to the output format of the pass / fail determination result. As a specific example, the number of neurons in the input layer 51 may be set according to the number of pixels in the target image data 121. In this case, the pixel value of each corresponding pixel of the target image data 121 may be input to each neuron of the input layer 51.

隣接する層のニューロン同士は適宜結合され、各結合には重み(結合荷重)が設定されている。図4の例では、各ニューロンは、隣接する層の全てのニューロンと結合されている。しかしながら、ニューロンの結合は、このような例に限定されなくてもよく、実施の形態に応じて適宜設定されてよい。   Adjacent layers of neurons are appropriately connected to each other, and a weight (connection load) is set for each connection. In the example of FIG. 4, each neuron is connected to all neurons in adjacent layers. However, the neuron connection may not be limited to such an example, and may be appropriately set according to the embodiment.

各ニューロンには閾値が設定されており、基本的には、各入力と各重みとの積の和が閾値を超えているか否かによって各ニューロンの出力が決定される。判定部112は、第1識別器5の入力層51に対象画像データ121を入力し、ニューラルネットワークの演算処理として、各層に含まれる各ニューロンの発火判定を入力側から順に行う。これにより、判定部112は、入力した対象画像データ121に写る製品Rの良否を判定した結果に対応する第1出力値を出力層53から取得することができる。   A threshold is set for each neuron, and basically, the output of each neuron is determined depending on whether or not the sum of products of each input and each weight exceeds the threshold. The determination unit 112 inputs the target image data 121 to the input layer 51 of the first discriminator 5 and performs firing determination of each neuron included in each layer in order from the input side as a calculation process of the neural network. Thereby, the determination unit 112 can acquire the first output value corresponding to the result of determining the quality of the product R shown in the input target image data 121 from the output layer 53.

また、図4に示されるとおり、第2識別器6も、第1識別器5と同様に、ニューラルネットワークにより構成されている。第2識別器6は、第1識別器5と同様に構成されてよい。すなわち、入力層61、中間層(隠れ層)62、及び出力層63は、第1識別器5の各層51〜53と同様に構成されてよい。ただし、第2識別器6のニューラルネットワークの構造は、第1識別器5と一致していなくてもよい。例えば、第2識別器6を構成するニューラルネットワークの層の数、各層におけるニューロンの個数、及びニューロン同士の結合関係は、第1識別器5を構成するニューラルネットワークと異なっていてもよい。   Further, as shown in FIG. 4, the second discriminator 6 is also configured by a neural network, like the first discriminator 5. The second discriminator 6 may be configured similarly to the first discriminator 5. That is, the input layer 61, the intermediate layer (hidden layer) 62, and the output layer 63 may be configured similarly to the layers 51 to 53 of the first discriminator 5. However, the structure of the neural network of the second discriminator 6 may not match the first discriminator 5. For example, the number of layers of the neural network constituting the second discriminator 6, the number of neurons in each layer, and the connection relationship between the neurons may be different from those of the neural network constituting the first discriminator 5.

判定部112は、第2識別器6の入力層61に対象画像データ121を入力し、ニューラルネットワークの演算処理として、各層に含まれる各ニューロンの発火判定を入力側から順に行う。これにより、判定部112は、入力した対象画像データ121に写る製品Rの良否を判定した結果に対応する第2出力値を出力層63から取得することができる。   The determination unit 112 inputs the target image data 121 to the input layer 61 of the second discriminator 6 and performs firing determination of each neuron included in each layer in order from the input side as a calculation process of the neural network. Thereby, the determination unit 112 can acquire the second output value corresponding to the result of determining the quality of the product R shown in the input target image data 121 from the output layer 63.

なお、第1識別器5(ニューラルネットワーク)の構成(例えば、各ネットワークの層数、各層におけるニューロンの個数、ニューロン同士の結合関係、各ニューロンの伝達関数)、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報は、第1学習結果データ224に含まれている。同様に、第2識別器6(ニューラルネットワーク)の構成(例えば、各ネットワークの層数、各層におけるニューロンの個数、ニューロン同士の結合関係、各ニューロンの伝達関数)、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報は、第2学習結果データ229に含まれている。判定部112は、第1学習結果データ224を参照して第1識別器5の設定を行い、第2学習結果データ229を参照して第2識別器6の設定を行う。   The configuration of the first discriminator 5 (neural network) (for example, the number of layers in each network, the number of neurons in each layer, the connection between neurons, the transfer function of each neuron), the weight of the connection between the neurons, and Information indicating the threshold value of each neuron is included in the first learning result data 224. Similarly, the configuration of the second discriminator 6 (neural network) (for example, the number of layers in each network, the number of neurons in each layer, the connection relationship between neurons, the transfer function of each neuron), the weight of the connection between each neuron, Information indicating the threshold value of each neuron is included in the second learning result data 229. The determination unit 112 sets the first discriminator 5 with reference to the first learning result data 224 and sets the second discriminator 6 with reference to the second learning result data 229.

<学習装置>
次に、図6を用いて、本実施形態に係る学習装置2のソフトウェア構成の一例について説明する。図6は、本実施形態に係る学習装置2のソフトウェア構成の一例を模式的に例示する。
<Learning device>
Next, an example of the software configuration of the learning device 2 according to the present embodiment will be described with reference to FIG. FIG. 6 schematically illustrates an example of the software configuration of the learning device 2 according to the present embodiment.

学習装置2の制御部21は、記憶部22に記憶された学習プログラム82をRAMに展開する。そして、制御部21は、RAMに展開された学習プログラム82をCPUにより解釈及び実行して、各構成要素を制御する。これによって、図6に示されるとおり、本実施形態に係る学習装置2は、学習データ取得部211、及び学習処理部212をソフトウェアモジュールとして備えるコンピュータとして構成される。すなわち、本実施形態では、各ソフトウェアモジュールは、制御部21(CPU)により実現される。   The control unit 21 of the learning device 2 expands the learning program 82 stored in the storage unit 22 in the RAM. Then, the control unit 21 interprets and executes the learning program 82 expanded in the RAM, and controls each component. Accordingly, as illustrated in FIG. 6, the learning device 2 according to the present embodiment is configured as a computer including the learning data acquisition unit 211 and the learning processing unit 212 as software modules. That is, in this embodiment, each software module is realized by the control unit 21 (CPU).

学習データ取得部211は、製品の良否を学習するための画像データ222で構成された第1学習データ221を取得する。学習処理部212は、取得した第1学習データ221を利用した機械学習を実施することで、製品の良否を判定する能力を習得した学習済みの第1識別器5を構築する。   The learning data acquisition unit 211 acquires first learning data 221 composed of image data 222 for learning the quality of a product. The learning processing unit 212 constructs the learned first discriminator 5 that has acquired the ability to determine the quality of the product by performing machine learning using the acquired first learning data 221.

また、学習データ取得部211は、第1学習データ221と、製品の良否を学習するための追加の画像データ227とで構成された第2学習データ226を取得する。学習処理部212は、取得した第2学習データ226を利用した機械学習を実施することで、製品の良否を判定する能力を習得した学習済みの第2識別器6を構築する。すなわち、第2識別器6は、第1識別器5との関係で、再学習又は追加学習後の識別器である。   The learning data acquisition unit 211 acquires second learning data 226 including first learning data 221 and additional image data 227 for learning the quality of the product. The learning processing unit 212 constructs the learned second discriminator 6 that has acquired the ability to determine the quality of the product by performing machine learning using the acquired second learning data 226. In other words, the second classifier 6 is a classifier after re-learning or additional learning in relation to the first classifier 5.

本実施形態では、各識別器(5、6)の学習モデルは、ニューラルネットワークにより構成されている。そのため、画像データ222には、画像データ222に写る製品の良否の判定に対する正解を示す正解データ223が付与されている。追加の画像データ227には、追加の画像データ227に写る製品の良否の判定に対する正解を示す正解データ228が付与されている。すなわち、第1学習データ221は、それぞれ画像データ222及び正解データ223の組み合わせを含む複数件のデータセットにより構成される。また、第2学習データ226は、それぞれ追加の画像データ227及び正解データ228の組み合わせを含む複数件のデータセット並びに第1学習データ221により構成される。   In this embodiment, the learning model of each discriminator (5, 6) is configured by a neural network. Therefore, correct data 223 indicating the correct answer to the quality determination of the product shown in the image data 222 is assigned to the image data 222. The additional image data 227 is provided with correct answer data 228 indicating a correct answer to the quality determination of the product shown in the additional image data 227. That is, the first learning data 221 is composed of a plurality of data sets each including a combination of the image data 222 and the correct answer data 223. The second learning data 226 includes a plurality of data sets each including a combination of additional image data 227 and correct answer data 228, and first learning data 221.

学習処理部212は、第1学習データ221に含まれる各件のデータセットについて、画像データ222を入力層51に入力すると、入力した画像データ222に関連付けられた正解データ223に対応する出力値を出力層53から出力するように第1識別器5の機械学習を行う。これにより、学習処理部212は、製品の良否を判定する能力を習得した学習済みの第1識別器5を構築する。そして、学習処理部212は、学習済みの第1識別器5の構成、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報を第1学習結果データ224として記憶部22に格納する。   For each data set included in the first learning data 221, the learning processing unit 212 inputs the image data 222 to the input layer 51, and outputs an output value corresponding to the correct data 223 associated with the input image data 222. Machine learning of the first discriminator 5 is performed so as to output from the output layer 53. Thereby, the learning processing unit 212 constructs the learned first discriminator 5 that has acquired the ability to judge the quality of the product. Then, the learning processing unit 212 stores information indicating the configuration of the learned first discriminator 5, the weight of the connection between the neurons, and the threshold value of each neuron as the first learning result data 224 in the storage unit 22.

また、学習処理部212は、第2学習データ226に含まれる各件のデータセットについて、画像データ(222、227)を入力層61に入力すると、入力した画像データ(222、227)に関連付けられた正解データ(223、228)に対応する出力値を出力層63から出力するように第2識別器6の機械学習を行う。これにより、学習処理部212は、製品の良否を判定する能力を習得した学習済みの第2識別器6を構築する。そして、学習処理部212は、学習済みの第2識別器6の構成、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報を第2学習結果データ229として記憶部22に格納する。   Further, when the learning processing unit 212 inputs image data (222, 227) to the input layer 61 for each data set included in the second learning data 226, the learning processing unit 212 is associated with the input image data (222, 227). The machine learning of the second discriminator 6 is performed so that the output value corresponding to the correct data (223, 228) is output from the output layer 63. Thereby, the learning processing unit 212 constructs the learned second discriminator 6 that has acquired the ability to determine the quality of the product. The learning processing unit 212 stores information indicating the configuration of the learned second discriminator 6, the weight of the connection between the neurons, and the threshold value of each neuron as the second learning result data 229 in the storage unit 22.

<その他>
検査装置1及び学習装置2の各ソフトウェアモジュールに関しては後述する動作例で詳細に説明する。なお、本実施形態では、検査装置1及び学習装置2の各ソフトウェアモジュールがいずれも汎用のCPUによって実現される例について説明している。しかしながら、以上のソフトウェアモジュールの一部又は全部が、1又は複数の専用のプロセッサにより実現されてもよい。また、検査装置1及び学習装置2それぞれのソフトウェア構成に関して、実施形態に応じて、適宜、ソフトウェアモジュールの省略、置換及び追加が行われてもよい。
<Others>
The software modules of the inspection device 1 and the learning device 2 will be described in detail in an operation example described later. In the present embodiment, an example is described in which each software module of the inspection device 1 and the learning device 2 is realized by a general-purpose CPU. However, some or all of the above software modules may be implemented by one or more dedicated processors. In addition, regarding the software configurations of the inspection device 1 and the learning device 2, software modules may be omitted, replaced, and added as appropriate according to the embodiment.

§3 動作例
[検査装置]
次に、図7を用いて、本実施形態に係る検査装置1の動作例について説明する。図7は、本実施形態に係る検査装置1の処理手順の一例を例示するフローチャートである。以下で説明する処理手順は、本発明の検査方法の一例である。ただし、以下で説明する処理手順は一例に過ぎず、各処理は可能な限り変更されてよい。また、以下で説明する処理手順について、実施の形態に応じて、適宜、ステップの省略、置換、及び追加が可能である。
§3 Example of operation [Inspection device]
Next, an operation example of the inspection apparatus 1 according to the present embodiment will be described with reference to FIG. FIG. 7 is a flowchart illustrating an example of a processing procedure of the inspection apparatus 1 according to this embodiment. The processing procedure described below is an example of the inspection method of the present invention. However, the processing procedure described below is merely an example, and each processing may be changed as much as possible. Further, in the processing procedure described below, steps can be omitted, replaced, and added as appropriate according to the embodiment.

(ステップS101)
ステップS101では、制御部11は、データ取得部111として動作し、検査の対象となる製品Rの写る対象画像データ121を取得する。本実施形態では、検査装置1は、外部インタフェース14を介してカメラ31に接続されている。そのため、制御部11は、対象画像データ121をカメラ31から取得する。この対象画像データ121は、動画像データであってもよいし、静止画像データであってもよい。この対象画像データ121を取得すると、制御部11は、次のステップS102に処理を進める。
(Step S101)
In step S101, the control unit 11 operates as the data acquisition unit 111, and acquires target image data 121 in which the product R to be inspected is captured. In the present embodiment, the inspection apparatus 1 is connected to the camera 31 via the external interface 14. Therefore, the control unit 11 acquires target image data 121 from the camera 31. The target image data 121 may be moving image data or still image data. When the target image data 121 is acquired, the control unit 11 advances the processing to the next step S102.

ただし、対象画像データ121を取得する経路は、このような例に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。例えば、検査装置1とは異なる他の情報処理装置が、カメラ31に接続されていてもよい。この場合、検査装置1は、他の情報処理装置から対象画像データ121の送信を受け付けることで、対象画像データ121を取得してもよい。   However, the route for acquiring the target image data 121 is not limited to such an example, and may be appropriately selected according to the embodiment. For example, another information processing apparatus different from the inspection apparatus 1 may be connected to the camera 31. In this case, the inspection apparatus 1 may acquire the target image data 121 by receiving transmission of the target image data 121 from another information processing apparatus.

(ステップS102〜S108)
ステップS102〜S108では、制御部11は、判定部112として動作し、第1識別器5及び第2識別器6を利用して、対象画像データ121に写る製品Rの良否を判定する。
(Steps S102 to S108)
In steps S <b> 102 to S <b> 108, the control unit 11 operates as the determination unit 112 and determines the quality of the product R shown in the target image data 121 using the first discriminator 5 and the second discriminator 6.

上記のとおり、本実施形態では、第1識別器5に対象画像データ121を入力することで第1識別器5から得られる第1出力値に対して、製品Rの良否を判定するための数値範囲が第1判定基準として設定されている。また、第2識別器6に対象画像データ121を入力することで第2識別器6から得られる第2出力値に対して、製品Rの良否を判定するための数値範囲が第2判定基準として設定されている。第2識別器6による良否の判定の結果を採用しない範囲を設けるため、第2判定基準の数値範囲は、第1判定基準の数値範囲よりも狭く設定されている。   As described above, in the present embodiment, a numerical value for determining pass / fail of the product R with respect to the first output value obtained from the first discriminator 5 by inputting the target image data 121 to the first discriminator 5. The range is set as the first determination criterion. In addition, a numerical range for determining the quality of the product R with respect to the second output value obtained from the second discriminator 6 by inputting the target image data 121 to the second discriminator 6 is used as the second judgment criterion. Is set. In order to provide a range in which the result of quality determination by the second discriminator 6 is not adopted, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion.

具体的には、第1識別器5の第1出力値及び第2識別器6の第2出力値はそれぞれ、値が大きいほど製品Rに欠陥があることを示し、値が小さいほど製品Rは良品である(すなわち、欠陥がない)ことを示している。第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されている。一方、第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されている。   Specifically, each of the first output value of the first discriminator 5 and the second output value of the second discriminator 6 indicates that the product R is more defective as the value is larger, and the product R is smaller as the value is smaller. It indicates that the product is non-defective (ie, has no defects). The numerical range of the first determination criterion is composed of a range that is greater than or equal to the first threshold and a range that is less than the first threshold. On the other hand, the numerical range of the second determination criterion is configured by a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold.

(A)ステップS102
そこで、ステップS102では、制御部11は、取得した対象画像データ121を第2識別器6に入力して、当該第2識別器6の演算処理を実行する。これにより、制御部11は、対象画像データ121に写る製品Rの良否を判定した結果に対応する第2出力値を第2識別器6から取得する。
(A) Step S102
Therefore, in step S102, the control unit 11 inputs the acquired target image data 121 to the second discriminator 6, and executes the arithmetic processing of the second discriminator 6. Thereby, the control unit 11 acquires the second output value corresponding to the result of determining the quality of the product R shown in the target image data 121 from the second discriminator 6.

詳細には、制御部11は、第2学習結果データ229を参照して、学習済みの第2識別器6の設定を行う。続いて、制御部11は、対象画像データ121を第2識別器6の入力層61に入力し、入力側から順に各層61〜63に含まれる各ニューロンの発火判定を行う。これにより、制御部11は、第2識別器6の出力層63から第2出力値を取得する。第2出力値を取得すると、制御部11は、次のステップS103に処理を進める。   Specifically, the control unit 11 sets the learned second discriminator 6 with reference to the second learning result data 229. Subsequently, the control unit 11 inputs the target image data 121 to the input layer 61 of the second discriminator 6 and performs firing determination of each neuron included in each of the layers 61 to 63 in order from the input side. Thereby, the control unit 11 acquires the second output value from the output layer 63 of the second discriminator 6. When the second output value is acquired, the control unit 11 proceeds to the next step S103.

(B)ステップS103及びS104
ステップS103では、制御部11は、第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定する。第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS104に処理を進めて、製品Rには欠陥があると判定する。
(B) Steps S103 and S104
In step S103, the control unit 11 determines whether or not the second output value is larger than the second threshold value by comparing the second output value and the second threshold value. If it is determined that the second output value is greater than the second threshold, the control unit 11 proceeds to the next step S104, assuming that the second output value is included in the numerical range of the second determination criterion, It is determined that the product R has a defect.

この良否の判定は、上記のとおり、製品Rに欠陥があるか否かを単に判定することであってもよいし、製品Rに欠陥がある否かを判定することに加えて、その欠陥の種類を識別することを含んでもよい。欠陥は、例えば、傷、汚れ、クラック、打痕、埃、バリ、色ムラ等である。欠陥の種類を識別する方法は、実施の形態に応じて適宜決定されてよい。例えば、第2識別器6は、それぞれ欠陥の種類に対応する複数の第2出力値を出力するように構成されてよい。この場合、複数の第2出力値のうちから第2閾値よりも大きい第2出力値を特定することで、制御部11は、製品Rに存在する欠陥の種類を識別することができる。なお、各第2閾値(各第3閾値)は、各第2出力値に応じて適宜設定されてよい。また、各第2閾値(各第3閾値)は、他の第2閾値(他の第3閾値)と一致していてもよいし、他の第2閾値(他の第3閾値)と異なっていてもよい。後述するステップS106及びS108における良否の判定についても同様である。製品Rには欠陥があると判定した後、制御部11は、次のステップS109に処理を進める。   As described above, the determination of pass / fail may be simply determining whether or not the product R is defective, and in addition to determining whether or not the product R is defective, It may include identifying the type. The defects are, for example, scratches, dirt, cracks, dents, dust, burrs, color unevenness, and the like. A method for identifying the type of defect may be appropriately determined according to the embodiment. For example, the second discriminator 6 may be configured to output a plurality of second output values each corresponding to a defect type. In this case, by specifying a second output value larger than the second threshold value from the plurality of second output values, the control unit 11 can identify the type of defect present in the product R. In addition, each 2nd threshold value (each 3rd threshold value) may be suitably set according to each 2nd output value. In addition, each second threshold value (each third threshold value) may coincide with another second threshold value (other third threshold value), or different from other second threshold values (other third threshold values). May be. The same applies to the quality determination in steps S106 and S108 described later. After determining that the product R is defective, the control unit 11 advances the processing to the next step S109.

一方、第2識別器6から取得した第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、次のステップS105に処理を進める。なお、第2出力値と第2閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。すなわち、第2出力値と第2閾値とが等しいケースは、第2出力値が第2閾値よりも大きいケース及び第2出力値が第2閾値よりも小さいケースのいずれに含まれてもよい。   On the other hand, when it determines with the 2nd output value acquired from the 2nd discriminator 6 being smaller than a 2nd threshold value, the control part 11 advances a process to following step S105. The handling of the case where the second output value is equal to the second threshold value may be appropriately determined according to the embodiment. That is, the case where the second output value is equal to the second threshold value may be included in either the case where the second output value is larger than the second threshold value or the case where the second output value is smaller than the second threshold value.

(C)ステップS105及びS106
ステップS105では、制御部11は、第2出力値と第3閾値とを比較することで、第2出力値が第3閾値よりも小さいか否かを判定する。第2出力値が第3閾値よりも小さいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS106に処理を進めて、製品Rは良品であると判定する。製品Rは良品であると判定した後、制御部11は、次のステップS109に処理を進める。
(C) Steps S105 and S106
In step S105, the control unit 11 determines whether the second output value is smaller than the third threshold value by comparing the second output value with the third threshold value. If it is determined that the second output value is smaller than the third threshold, the control unit 11 proceeds to the next step S106, assuming that the second output value is included in the numerical range of the second determination criterion, The product R is determined to be a non-defective product. After determining that the product R is a non-defective product, the control unit 11 advances the processing to the next step S109.

一方、第2識別器6から取得した第2出力値が第3閾値よりも大きいと判定した場合には、制御部11は、次のステップS107に処理を進める。なお、上記ステップS103と同様に、第2出力値と第3閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。すなわち、第2出力値と第3閾値とが等しいケースは、第2出力値が第3閾値よりも小さいケース及び第2出力値が第3閾値よりも大きいケースのいずれに含まれてもよい。   On the other hand, when it determines with the 2nd output value acquired from the 2nd discriminator 6 being larger than a 3rd threshold value, the control part 11 advances a process to following step S107. Note that, similarly to step S103, the handling of the case where the second output value is equal to the third threshold value may be appropriately determined according to the embodiment. That is, the case where the second output value is equal to the third threshold value may be included in either the case where the second output value is smaller than the third threshold value or the case where the second output value is larger than the third threshold value.

(D)ステップS107及びS108
第2識別器6から取得した第2出力値が、第2閾値よりも小さく、第3閾値よりも大きいと判定した場合に、制御部11は、第2判定基準の数値範囲に第2出力値は含まれないとして、ステップS107及びS108の処理を実行する。
(D) Steps S107 and S108
When it is determined that the second output value acquired from the second discriminator 6 is smaller than the second threshold value and larger than the third threshold value, the control unit 11 outputs the second output value within the numerical range of the second determination criterion. Are not included, the processing of steps S107 and S108 is executed.

ステップS107では、制御部11は、取得した対象画像データ121を第1識別器5に入力して、当該第1識別器5の演算処理を実行する。これにより、制御部11は、対象画像データ121に写る製品Rの良否を判定した結果に対応する第1出力値を第1識別器5から取得する。   In step S <b> 107, the control unit 11 inputs the acquired target image data 121 to the first discriminator 5 and executes the arithmetic processing of the first discriminator 5. Thereby, the control unit 11 acquires from the first discriminator 5 the first output value corresponding to the result of determining the quality of the product R shown in the target image data 121.

詳細には、制御部11は、第1学習結果データ224を参照して、学習済みの第1識別器5の設定を行う。続いて、制御部11は、対象画像データ121を第1識別器5の入力層51に入力し、入力側から順に各層51〜53に含まれる各ニューロンの発火判定を行う。これにより、制御部11は、第1識別器5の出力層53から第1出力値を取得する。第1出力値を取得すると、制御部11は、次のステップS108に処理を進める。   Specifically, the control unit 11 sets the learned first discriminator 5 with reference to the first learning result data 224. Subsequently, the control unit 11 inputs the target image data 121 to the input layer 51 of the first discriminator 5 and performs firing determination of each neuron included in each of the layers 51 to 53 in order from the input side. Thereby, the control unit 11 acquires the first output value from the output layer 53 of the first discriminator 5. When acquiring the first output value, the control unit 11 advances the processing to the next step S108.

ステップS108では、制御部11は、第1出力値と第1閾値とを比較することで、取得した第1出力値が第1閾値よりも大きいか否かを判定する。取得した第1出力値が第1閾値よりも大きいと判定した場合には、制御部11は、製品Rには欠陥があると判定する。他方、取得した第1出力値が第1閾値よりも小さいと判定した場合には、制御部11は、製品Rは良品であると判定する。これらにより、製品Rの良否を判定した後、制御部11は、次のステップS109に処理を進める。   In step S108, the control unit 11 determines whether or not the acquired first output value is larger than the first threshold value by comparing the first output value and the first threshold value. When it determines with the acquired 1st output value being larger than a 1st threshold value, the control part 11 determines with the product R having a defect. On the other hand, when it determines with the acquired 1st output value being smaller than a 1st threshold value, the control part 11 determines with the product R being non-defective. After determining the quality of the product R by these, the control part 11 advances a process to following step S109.

なお、第1出力値と第1閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。すなわち、第1出力値と第1閾値とが等しいケースは、第1出力値が第1閾値よりも大きいケース及び第1出力値が第1閾値よりも小さいケースのいずれに含まれてもよい。   The handling of the case where the first output value is equal to the first threshold value may be appropriately determined according to the embodiment. That is, the case where the first output value is equal to the first threshold value may be included in either the case where the first output value is larger than the first threshold value or the case where the first output value is smaller than the first threshold value.

また、上記のとおり、この良否の判定も、ステップS104及びS106と同様に、製品Rに欠陥があるか否かを単に判定することであってもよいし、製品Rに欠陥がある否かを判定することに加えて、その欠陥の種類を識別することを含んでもよい。欠陥の種類を識別する方法は、実施の形態に応じて適宜決定されてよい。例えば、第1識別器5は、第2識別器6と同様に、それぞれ欠陥の種類に対応する複数の第1出力値を出力するように構成されてよい。この場合、複数の第1出力値のうちから第1閾値よりも大きい第1出力値を特定することで、制御部11は、製品Rに存在する欠陥の種類を識別することができる。なお、各第1閾値は、各第1出力値に応じて適宜設定されてよい。また、各第1閾値は、他の第1閾値と一致していてもよいし、他の第1閾値と異なっていてもよい。   Further, as described above, this quality determination may be simply determining whether or not the product R is defective, as in steps S104 and S106, or whether or not the product R is defective. In addition to determining, it may include identifying the type of defect. A method for identifying the type of defect may be appropriately determined according to the embodiment. For example, similarly to the second discriminator 6, the first discriminator 5 may be configured to output a plurality of first output values corresponding to the types of defects. In this case, by specifying a first output value larger than the first threshold value from among the plurality of first output values, the control unit 11 can identify the type of defect present in the product R. In addition, each 1st threshold value may be suitably set according to each 1st output value. Further, each first threshold value may coincide with another first threshold value, or may be different from the other first threshold values.

以上により、制御部11は、対象画像データ121を第2識別器6に入力することで、製品Rの良否を判定した結果に対応する第2出力値を第2識別器6から取得する(ステップS102)。そして、取得した第2出力値が第2判定基準の数値範囲に含まれている場合には、制御部11は、第2識別器6による良否の判定を採用する、すなわち、第2出力値に基づいて、製品Rの良否を判定する(ステップS103〜S106)。一方、取得した第2出力値が第2判定基準の数値範囲に含まれていない場合には、制御部11は、第2識別器6による良否の判定を採用せず、第1識別器5に対象画像データ121を入力することで、第1識別器5から第1出力値を取得する(ステップS107)。そして、制御部11は、第1識別器5から取得した第1出力値に基づいて、製品Rの良否を判定する(ステップS108)。   As described above, the control unit 11 inputs the target image data 121 to the second discriminator 6 to obtain the second output value corresponding to the result of determining the quality of the product R from the second discriminator 6 (Step S1). S102). When the acquired second output value is included in the numerical range of the second determination criterion, the control unit 11 adopts the pass / fail determination by the second discriminator 6, that is, the second output value Based on this, the quality of the product R is determined (steps S103 to S106). On the other hand, when the acquired second output value is not included in the numerical range of the second determination criterion, the control unit 11 does not adopt the pass / fail determination by the second discriminator 6, and the first discriminator 5 By inputting the target image data 121, the first output value is obtained from the first discriminator 5 (step S107). And the control part 11 determines the quality of the product R based on the 1st output value acquired from the 1st discriminator 5 (step S108).

(ステップS109)
ステップS109では、制御部11は、出力部113として動作し、製品Rの良否を判定した結果を出力する。
(Step S109)
In step S109, the control unit 11 operates as the output unit 113, and outputs a result of determining whether the product R is good or bad.

製品Rの良否を判定した結果の出力形式は、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。例えば、制御部11は、製品Rの良否を判定した結果をそのまま出力装置16に出力してもよい。また、例えば、ステップS104又はS108において、製品Rに欠陥があると判定した場合、制御部11は、欠陥を発見したことを知らせるための警告を本ステップS109の出力処理として行ってもよい。警告の送信先は、出力装置16であってもよいし、管理者の携帯端末等の他の情報処理装置であってもよい。また、例えば、製品Rの搬送を行う製造ラインに検査装置1が接続されている場合、製品Rに欠陥があると判定したときに、制御部11は、欠陥のある製品Rを欠陥のない製品とは異なる経路で搬送する指令を製造ラインに送信する処理を本ステップS109の出力処理として行ってもよい。   The output format of the result of determining the quality of the product R is not particularly limited, and may be appropriately selected according to the embodiment. For example, the control unit 11 may output the determination result of the product R to the output device 16 as it is. For example, if it is determined in step S104 or S108 that the product R has a defect, the control unit 11 may perform a warning for notifying that a defect has been found as the output process in step S109. The warning destination may be the output device 16 or another information processing device such as an administrator's mobile terminal. Further, for example, when the inspection apparatus 1 is connected to a production line that transports the product R, when it is determined that the product R is defective, the control unit 11 determines that the defective product R is defective. A process of transmitting a command for conveying along a different route to the production line may be performed as the output process of step S109.

製品Rの良否を判定した結果の出力処理が完了すると、制御部11は、本動作例に係る処理を終了する。なお、制御部11は、製造ライン上を搬送される製品Rがカメラ31の撮影範囲に入る度に、ステップS101〜S109の一連の処理を実行してもよい。これにより、検査装置1は、製造ライン上を搬送される製品Rの外観検査を行うことができる。   When the output process as a result of determining the quality of the product R is completed, the control unit 11 ends the process according to this operation example. Note that the control unit 11 may execute a series of processes in steps S101 to S109 every time the product R conveyed on the production line enters the imaging range of the camera 31. Thereby, the inspection apparatus 1 can perform the appearance inspection of the product R conveyed on the production line.

[学習装置]
次に、図8を用いて、本実施形態に係る学習装置2の動作例について説明する。図8は、本実施形態に係る学習装置2の処理手順の一例を例示するフローチャートである。ただし、以下で説明する処理手順は一例に過ぎず、各処理は可能な限り変更されてよい。また、以下で説明する処理手順について、実施の形態に応じて、適宜、ステップの省略、置換、及び追加が可能である。なお、学習装置2は、利用する学習データが異なる点を除き、同様の処理手順により、第1識別器5及び第2識別器6を構築することができる。以下では、まず、第1識別器5を構築する際の処理手順について説明する。
[Learning device]
Next, an operation example of the learning device 2 according to the present embodiment will be described with reference to FIG. FIG. 8 is a flowchart illustrating an example of a processing procedure of the learning device 2 according to this embodiment. However, the processing procedure described below is merely an example, and each processing may be changed as much as possible. Further, in the processing procedure described below, steps can be omitted, replaced, and added as appropriate according to the embodiment. The learning device 2 can construct the first discriminator 5 and the second discriminator 6 by the same processing procedure except that the learning data to be used is different. Below, the process sequence at the time of constructing the 1st discriminator 5 is demonstrated first.

(I)第1識別器の構築
(ステップS201)
ステップS201では、制御部21は、学習データ取得部211として動作し、製品の良否を学習するための画像データ222で構成された第1学習データ221を取得する。本実施形態では、第1識別器5の学習モデルがニューラルネットワークにより構成されているため、制御部21は、それぞれ画像データ222及び正解データ223の組み合わせを含む複数件のデータセットにより構成された第1学習データ221を取得する。
(I) Construction of first discriminator (Step S201)
In step S201, the control unit 21 operates as the learning data acquisition unit 211, and acquires first learning data 221 including image data 222 for learning the quality of the product. In this embodiment, since the learning model of the first discriminator 5 is configured by a neural network, the control unit 21 includes a first data set including a plurality of data sets each including a combination of image data 222 and correct answer data 223. 1 learning data 221 is acquired.

第1学習データ221を取得する方法は、特に限定されなくてもよく、実施の形態に応じて適宜決定されてよい。例えば、カメラを用意し、検査対象となる製品Rと同種の製品であって、欠陥のある製品(不良品)及び欠陥のない製品(良品)それぞれを、用意したカメラにより様々な条件で撮影することで、良否の表れた製品の写る画像データ222を取得することができる。そして、得られた画像データ222に対して、その画像データ222に写る製品に表れた良否(正解)を示す正解データ223を組み合わせることで、学習用のデータセットを作成することができる。正解データ223の具体的な内容は、値が大きいほど製品に欠陥があることを示し、値が小さいほど製品は良品である(すなわち、欠陥がない)ことを示すように適宜決定されてよい。この学習用のデータセットの作成を繰り返すことで、複数件のデータセットで構成された第1学習データ221を作成することができる。   The method for acquiring the first learning data 221 is not particularly limited, and may be appropriately determined according to the embodiment. For example, a camera is prepared, and a product of the same type as the product R to be inspected, and a defective product (defective product) and a product without a defect (non-defective product) are photographed under various conditions using the prepared camera. As a result, it is possible to acquire the image data 222 showing the product showing the quality. A learning data set can be created by combining the obtained image data 222 with correct answer data 223 indicating pass / fail (correct answer) appearing in the product shown in the image data 222. The specific contents of the correct answer data 223 may be appropriately determined so that the larger the value, the more defective the product is, and the smaller the value, the better the product (that is, no defect). By repeating the creation of the learning data set, the first learning data 221 composed of a plurality of data sets can be created.

この第1学習データ221の作成は、学習装置2により行われてもよい。この場合、制御部21は、オペレータによる入力装置24の操作に応じて、第1学習データ221を作成してもよい。また、制御部21は、学習プログラム82の処理により、第1学習データ221を自動的に作成してもよい。この作成処理を実行することで、本ステップS201では、制御部21は、第1学習データ221を取得することができる。   The creation of the first learning data 221 may be performed by the learning device 2. In this case, the control unit 21 may create the first learning data 221 according to the operation of the input device 24 by the operator. Further, the control unit 21 may automatically create the first learning data 221 by the processing of the learning program 82. By executing this creation process, in step S201, the control unit 21 can acquire the first learning data 221.

あるいは、第1学習データ221の作成は、学習装置2以外の他の情報処理装置により行われてもよい。他の情報処理装置では、第1学習データ221は、オペレータにより手動で作成されてもよいし、プログラムの処理により自動的に作成されてもよい。この場合、本ステップS201では、制御部21は、ネットワーク、記憶媒体92等を介して、他の情報処理装置により作成された第1学習データ221を取得してもよい。   Alternatively, the creation of the first learning data 221 may be performed by an information processing device other than the learning device 2. In another information processing apparatus, the first learning data 221 may be created manually by an operator or automatically by program processing. In this case, in step S201, the control unit 21 may acquire the first learning data 221 created by another information processing apparatus via the network, the storage medium 92, or the like.

第1学習データ221を構成するデータセットの件数は、特に限定されなくてもよく、例えば、第1識別器5の機械学習を実施可能な程度に適宜決定されてよい。これにより、第1学習データ221を取得すると、制御部21は、次のステップS202に処理を進める。   The number of data sets constituting the first learning data 221 is not particularly limited, and may be determined as appropriate to the extent that machine learning of the first discriminator 5 can be performed, for example. Thereby, if the 1st learning data 221 is acquired, control part 21 will advance processing to the following step S202.

(ステップS202)
ステップS202では、制御部21は、学習処理部212として動作し、ステップS201で取得した第1学習データ221を利用した機械学習を実行することで、製品の良否を判定する能力を習得した学習済みの第1識別器5を構築する。本実施形態では、制御部21は、第1学習データ221を構成する各件のデータセットを用いて、画像データ222を入力層51に入力すると、正解データ223に対応する出力値を出力層53から出力するようにニューラルネットワークの機械学習を実施する。
(Step S202)
In step S202, the control unit 21 operates as the learning processing unit 212 and has learned the ability to determine the quality of the product by performing machine learning using the first learning data 221 acquired in step S201. The first discriminator 5 is constructed. In the present embodiment, when the image data 222 is input to the input layer 51 using each data set constituting the first learning data 221, the control unit 21 outputs an output value corresponding to the correct answer data 223 to the output layer 53. Machine learning of the neural network so that

具体的には、まず、制御部21は、学習処理を行う対象となるニューラルネットワーク(学習前の第1識別器5)を用意する。用意するニューラルネットワークの構成、各ニューロン間の結合の重みの初期値、各ニューロンの閾値の初期値等の各パラメータは、テンプレートにより与えられてもよいし、オペレータの入力により与えられてもよい。他の識別器の再学習又は追加学習を行うことで第1識別器5を構成する場合、制御部21は、他の識別器の学習結果データに基づいて、学習前のニューラルネットワークを用意してもよい。   Specifically, first, the control unit 21 prepares a neural network (first discriminator 5 before learning) to be subjected to learning processing. Each parameter such as the configuration of the neural network to be prepared, the initial value of the connection weight between the neurons, and the initial value of the threshold value of each neuron may be given by a template or by an operator input. When the first discriminator 5 is configured by performing re-learning or additional learning of another discriminator, the control unit 21 prepares a neural network before learning based on the learning result data of the other discriminator. Also good.

次に、制御部21は、ステップS201で取得した第1学習データ221の各件のデータセットに含まれる画像データ222を入力データとして用い、正解データ223を教師データとして用いて、ニューラルネットワークの学習処理を実行する。このニューラルネットワークの学習処理には、確率的勾配降下法等が用いられてよい。   Next, the control unit 21 uses the image data 222 included in each data set of the first learning data 221 acquired in step S201 as input data, and uses the correct answer data 223 as teacher data to learn the neural network. Execute the process. A stochastic gradient descent method or the like may be used for this neural network learning process.

例えば、制御部21は、画像データ222を入力層51に入力し、入力側から順に各層51〜53に含まれる各ニューロンの発火判定を行う。これにより、制御部21は、出力層53から出力値を得る。次に、制御部21は、出力層53から得た出力値と正解データ223により示される正解に対応する値との誤差を算出する。続いて、制御部21は、誤差逆伝搬(Back propagation)法により、算出した出力値の誤差を用いて、各ニューロン間の結合の重み及び各ニューロンの閾値それぞれの誤差を算出する。そして、制御部21は、算出した各誤差に基づいて、各ニューロン間の結合の重み及び各ニューロンの閾値それぞれの値の更新を行う。   For example, the control unit 21 inputs the image data 222 to the input layer 51 and performs firing determination of each neuron included in each of the layers 51 to 53 in order from the input side. Thereby, the control unit 21 obtains an output value from the output layer 53. Next, the control unit 21 calculates an error between the output value obtained from the output layer 53 and the value corresponding to the correct answer indicated by the correct answer data 223. Subsequently, the control unit 21 calculates the error of the connection between the neurons and the error of the threshold value of each neuron using the error of the calculated output value by the error back propagation method. Then, the control unit 21 updates the values of the connection weights between the neurons and the threshold values of the neurons based on the calculated errors.

第1学習データ221を構成する各件のデータセットについて、画像データ222を入力層51に入力することにより出力層53から得られる出力値が、入力した画像データ222に関連付けられた正解データ223により示される正解に対応する値と一致するまで、制御部21は、この一連の処理を繰り返す。これにより、制御部21は、画像データ222を入力すると、正解データ223により示される正解に対応する出力値を出力する学習済みのニューラルネットワーク(すなわち、第1識別器5)を構築することができる。第1識別器5の学習処理が完了すると、制御部21は、次のステップS203に処理を進める。   For each data set constituting the first learning data 221, the output value obtained from the output layer 53 by inputting the image data 222 to the input layer 51 is represented by the correct data 223 associated with the input image data 222. The control unit 21 repeats this series of processing until it matches the value corresponding to the correct answer shown. Thus, when the image data 222 is input, the control unit 21 can construct a learned neural network (that is, the first discriminator 5) that outputs an output value corresponding to the correct answer indicated by the correct answer data 223. . When the learning process of the first discriminator 5 is completed, the control unit 21 advances the process to the next step S203.

(ステップS203)
ステップS203では、制御部21は、学習処理部212として動作し、機械学習により構築された第1識別器5の構成、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報を第1学習結果データ224として記憶部22に格納する。これにより、制御部21は、本動作例に係る処理を終了する。
(Step S203)
In step S203, the control unit 21 operates as the learning processing unit 212, and first sets information indicating the configuration of the first discriminator 5 constructed by machine learning, the connection weight between the neurons, and the threshold value of each neuron. The learning result data 224 is stored in the storage unit 22. Thereby, the control part 21 complete | finishes the process which concerns on this operation example.

(II)第2識別器の構築
次に、第2識別器6を構築する際の処理手順について説明する。学習装置2は、利用する学習データが第1識別器5と異なる点を除き、第1識別器5と同様に第2識別器6を構築することができる。
(II) Construction of Second Discriminator Next, a processing procedure for constructing the second discriminator 6 will be described. The learning device 2 can construct the second discriminator 6 in the same manner as the first discriminator 5 except that the learning data to be used is different from the first discriminator 5.

(ステップS201)
すなわち、ステップS201では、制御部21は、学習データ取得部211として動作し、第1学習データ221及び製品の良否を学習するための追加の画像データ227で構成された第2学習データ226を取得する。本実施形態では、第2識別器6の学習モデルがニューラルネットワークにより構成されているため、制御部21は、それぞれ追加の画像データ227及び正解データ228の組み合わせを含む複数件のデータセット並びに第1学習データ221により構成された第2学習データ226を取得する。
(Step S201)
That is, in step S201, the control unit 21 operates as the learning data acquisition unit 211, and acquires the second learning data 226 including the first learning data 221 and additional image data 227 for learning the quality of the product. To do. In the present embodiment, since the learning model of the second discriminator 6 is configured by a neural network, the control unit 21 includes a plurality of data sets each including a combination of additional image data 227 and correct data 228 and the first data set. The second learning data 226 configured by the learning data 221 is acquired.

第2学習データ226の追加の画像データ227及び正解データ228は、上記第1学習データ221と同様の方法により取得されてよい。制御部21は、上記データセットの作成処理を実行することで、第2学習データ226を取得することができる。あるいは、第2学習データ226が他の情報処理装置により作成される場合、制御部21は、ネットワーク、記憶媒体92等を介して、他の情報処理装置により作成された第2学習データ226を取得することができる。第2学習データ226を取得すると、制御部21は、次のステップS202に処理を進める。   The additional image data 227 and the correct answer data 228 of the second learning data 226 may be acquired by the same method as the first learning data 221. The control unit 21 can acquire the second learning data 226 by executing the data set creation process. Alternatively, when the second learning data 226 is created by another information processing device, the control unit 21 acquires the second learning data 226 created by the other information processing device via the network, the storage medium 92, or the like. can do. When the second learning data 226 is acquired, the control unit 21 advances the processing to the next step S202.

(ステップS202)
ステップS202では、制御部21は、学習処理部212として動作し、ステップS202で取得した第2学習データ226を利用した機械学習を実行することで、製品の良否を判定する能力を習得した学習済みの第2識別器6を構築する。制御部21は、第2学習データ226を構成する各件のデータセットを用いて、画像データ(222、227)を入力層61に入力すると、正解データ(223、228)に対応する出力値を出力層63から出力するようにニューラルネットワークの機械学習を実施する。
(Step S202)
In step S202, the control unit 21 operates as the learning processing unit 212 and has learned the ability to determine the quality of the product by performing machine learning using the second learning data 226 acquired in step S202. The second discriminator 6 is constructed. When the control unit 21 inputs the image data (222, 227) to the input layer 61 using each data set constituting the second learning data 226, the control unit 21 outputs an output value corresponding to the correct data (223, 228). Machine learning of the neural network is performed so as to output from the output layer 63.

このとき、用意するニューラルネットワーク(学習前の第2識別器6)の構成、各ニューロン間の結合の重みの初期値、各ニューロンの閾値の初期値等の各パラメータは、テンプレートにより与えられてもよいし、オペレータの入力により与えられてもよい。また、第1識別器5の再学習又は追加学習を行う場合、制御部21は、第1学習結果データ224に基づいて、学習前のニューラルネットワークを用意してもよい。   At this time, parameters such as the configuration of the neural network to be prepared (second discriminator 6 before learning), the initial value of the connection weight between neurons, and the initial value of the threshold value of each neuron may be given by the template. It may be given by an operator input. Further, when performing re-learning or additional learning of the first discriminator 5, the control unit 21 may prepare a neural network before learning based on the first learning result data 224.

次に、制御部21は、ステップS201で取得した第2学習データ226の各件のデータセットに含まれる画像データ(222、227)を入力データとして用い、正解データ(223、228)を教師データとして用いて、ニューラルネットワークの上記学習処理を実行する。なお、第1学習結果データ224に基づいて用意した学習前のニューラルネットワークに対して追加学習のみを行う場合、制御部21は、第1学習データ221(画像データ222及び正解データ223)の機械学習を省略してもよい。これにより、制御部21は、画像データ(222、227)を入力すると、入力した画像データ(222、227)に関連付けられた正解データ(223、228)により示される正解に対応する出力値を出力する学習済みのニューラルネットワーク(すなわち、第2識別器6)を構築することができる。第2識別器6の学習処理が完了すると、制御部21は、次のステップS203に処理を進める。   Next, the control unit 21 uses the image data (222, 227) included in each data set of the second learning data 226 acquired in step S201 as input data, and uses the correct data (223, 228) as teacher data. To execute the above learning process of the neural network. When only additional learning is performed on the pre-learning neural network prepared based on the first learning result data 224, the control unit 21 performs machine learning of the first learning data 221 (image data 222 and correct answer data 223). May be omitted. Accordingly, when the image data (222, 227) is input, the control unit 21 outputs an output value corresponding to the correct answer indicated by the correct data (223, 228) associated with the input image data (222, 227). A learned neural network (ie, the second discriminator 6) can be constructed. When the learning process of the second discriminator 6 is completed, the control unit 21 proceeds to the next step S203.

(ステップS203)
ステップS203では、制御部21は、学習処理部212として動作し、機械学習により構築された第2識別器6の構成、各ニューロン間の結合の重み、及び各ニューロンの閾値を示す情報を第2学習結果データ229として記憶部22に格納する。これにより、制御部21は、本動作例に係る処理を終了する。
(Step S203)
In step S <b> 203, the control unit 21 operates as the learning processing unit 212, and stores information indicating the configuration of the second discriminator 6 constructed by machine learning, the connection weight between the neurons, and the threshold value of each neuron. The learning result data 229 is stored in the storage unit 22. Thereby, the control part 21 complete | finishes the process which concerns on this operation example.

(III)その他
なお、制御部21は、上記ステップS203の処理が完了した後、作成した第1学習結果データ224及び第2学習結果データ229を検査装置1に転送してもよい。また、例えば、制御部21は、作成した第1学習結果データ224及び第2学習結果データ229をNAS(Network Attached Storage)等のデータサーバに保管してもよい。この場合、検査装置1は、第1学習結果データ224及び第2学習結果データ229をこのデータサーバから取得してもよい。また、第1学習結果データ224及び第2学習結果データ229は、検査装置1に予め組み込まれていてもよい。
(III) Others Note that the control unit 21 may transfer the created first learning result data 224 and second learning result data 229 to the inspection apparatus 1 after the processing of step S203 is completed. For example, the control unit 21 may store the created first learning result data 224 and second learning result data 229 in a data server such as NAS (Network Attached Storage). In this case, the inspection apparatus 1 may acquire the first learning result data 224 and the second learning result data 229 from this data server. Further, the first learning result data 224 and the second learning result data 229 may be incorporated in the inspection apparatus 1 in advance.

[特徴]
以上のとおり、本実施形態に係る学習装置2は、ステップS201〜S203の一連の処理により、第1学習データ221を利用した機械学習を実行することで、第1識別器5を構築する。これに対して、学習装置2は、第1学習データ221及び追加の画像データ227により構成される第2学習データ226を利用した機械学習を実行することで、第2識別器6を構築する。この第2識別器6の構築の過程で、第1学習データ221には含まれていない未知のケースを追加の画像データ227として用意することで、学習装置2は、製品Rの良否の判定が第1識別器5では不能なケースに対して対応可能な第2識別器6を構築することができる。これにより、検査装置1では、第1識別器5では良否の判定が不能なケースについて、第2識別器6を利用することで、製品Rの良否を判定することができるようになる。
[Characteristic]
As described above, the learning device 2 according to the present embodiment constructs the first discriminator 5 by executing machine learning using the first learning data 221 through a series of processes in steps S201 to S203. On the other hand, the learning device 2 constructs the second discriminator 6 by executing machine learning using the second learning data 226 including the first learning data 221 and the additional image data 227. In the process of constructing the second discriminator 6, an unknown case that is not included in the first learning data 221 is prepared as additional image data 227, so that the learning device 2 can determine whether the product R is good or bad. A second discriminator 6 that can handle cases that cannot be handled by the first discriminator 5 can be constructed. Thereby, in the inspection apparatus 1, the quality of the product R can be determined by using the second classifier 6 in the case where the first classifier 5 cannot determine the quality.

加えて、本実施形態に係る検査装置1では、第2識別器6による判定結果を採用するか否かを定める第2判定基準の数値範囲が、第1判定基準の数値範囲よりも狭く設定されている。これによって、本実施形態に係る検査装置1は、第2識別器6から得られる第2出力値が良否の識別結果を明確に示している場合には、ステップS104及びS106により、第2出力値に基づいて製品Rの良否を判定することができる。一方、そうでない場合には、検査装置1は、第2識別器による判定結果を採用せずに、ステップS107及びS108により、第1識別器5から得られる第1出力値に基づいて製品Rの良否を判定することができる。   In addition, in the inspection apparatus 1 according to the present embodiment, the numerical range of the second determination criterion that determines whether or not to adopt the determination result by the second discriminator 6 is set narrower than the numerical range of the first determination criterion. ing. As a result, when the second output value obtained from the second discriminator 6 clearly indicates the pass / fail discrimination result, the inspection apparatus 1 according to the present embodiment performs the second output value in steps S104 and S106. The quality of the product R can be determined based on the above. On the other hand, if this is not the case, the inspection apparatus 1 does not adopt the determination result by the second discriminator, but based on the first output value obtained from the first discriminator 5 in steps S107 and S108, Pass / fail can be determined.

これにより、過学習による識別性能の悪化が生じ得る閾値の境界付近の範囲において、再学習又は追加学習前の判定結果を保証し、再学習又は追加学習による判定結果の変動を抑制することができる。特に、本実施形態では、第2閾値を第1閾値よりも大きな値に設定し、第3閾値を第1閾値よりも小さな値に設定することで、過学習による識別性能の悪化が生じ得る閾値の境界付近の範囲において、再学習又は追加学習前の判定結果を適切に保証することができる。したがって、本実施形態によれば、再学習又は追加学習により第2識別器6の識別性能が第1識別器5よりも悪化してしまった場合でも、良否判定の信頼性が損なわれてしまうのを防止することができる。   As a result, the determination result before re-learning or additional learning can be guaranteed in a range near the threshold boundary where the discrimination performance can be deteriorated due to over-learning, and fluctuations in the determination result due to re-learning or additional learning can be suppressed . In particular, in the present embodiment, the threshold value that may cause deterioration of the identification performance due to over-learning by setting the second threshold value to a value larger than the first threshold value and the third threshold value to a value smaller than the first threshold value. In the range near the boundary, the determination result before re-learning or additional learning can be appropriately ensured. Therefore, according to the present embodiment, even when the discrimination performance of the second discriminator 6 is worse than that of the first discriminator 5 due to relearning or additional learning, the reliability of the pass / fail judgment is impaired. Can be prevented.

§4 変形例
以上、本発明の実施の形態を詳細に説明してきたが、前述までの説明はあらゆる点において本発明の例示に過ぎない。本発明の範囲を逸脱することなく種々の改良や変形を行うことができることは言うまでもない。例えば、以下のような変更が可能である。なお、以下では、上記実施形態と同様の構成要素に関しては同様の符号を用い、上記実施形態と同様の点については、適宜説明を省略した。以下の変形例は適宜組み合わせ可能である。
§4 Modifications Embodiments of the present invention have been described in detail above, but the above description is merely an illustration of the present invention in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. For example, the following changes are possible. In the following, the same reference numerals are used for the same components as in the above embodiment, and the description of the same points as in the above embodiment is omitted as appropriate. The following modifications can be combined as appropriate.

<4.1>
上記実施形態では、各識別器(5、6)は、多層構造の全結合ニューラルネットワークにより構成されている。しかしながら、各識別器(5、6)の構成は、このような例に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。例えば、各識別器(5、6)は、畳み込みニューラルネットワーク、再帰型ニューラルネットワーク等により構成されてよい。
<4.1>
In the above embodiment, each discriminator (5, 6) is configured by a fully connected neural network having a multilayer structure. However, the configuration of each discriminator (5, 6) may not be limited to such an example, and may be appropriately selected according to the embodiment. For example, each discriminator (5, 6) may be configured by a convolutional neural network, a recursive neural network, or the like.

<4.2>
上記実施形態では、各識別器(5、6)の学習モデルとして、ニューラルネットワークを採用している。しかしながら、各識別器(5、6)の学習モデルは、このような例に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。各識別器(5、6)の学習モデルとして、例えば、サポートベクタマシン、自己組織化マップ、強化学習により機械学習を行う学習モデル等が採用されてよい。なお、機械学習として教師あり学習を採用しない場合には、各学習データ(221、226)において、各正解データ(223、228)は省略されてもよい。
<4.2>
In the above embodiment, a neural network is adopted as a learning model for each classifier (5, 6). However, the learning model of each discriminator (5, 6) may not be limited to such an example, and may be appropriately selected according to the embodiment. As a learning model of each discriminator (5, 6), for example, a support vector machine, a self-organizing map, a learning model that performs machine learning by reinforcement learning, or the like may be employed. When supervised learning is not adopted as machine learning, each correct answer data (223, 228) may be omitted in each learning data (221, 226).

<4.3>
上記実施形態では、各学習結果データ(224、229)は、ニューラルネットワークの構成を示す情報を含んでいる。しかしながら、各学習結果データ(224、229)の構成は、このような例に限定されなくてもよく、学習済みの各識別器(5、6)の設定に利用可能であれば、実施の形態に応じて適宜決定されてよい。例えば、利用するニューラルネットワークの構成が各装置で共通化されている場合には、各学習結果データ(224、229)は、ニューラルネットワークの構成を示す情報を含んでいなくてもよい。
<4.3>
In the above embodiment, each learning result data (224, 229) includes information indicating the configuration of the neural network. However, the configuration of each learning result data (224, 229) does not have to be limited to such an example. If the learning result data (224, 229) can be used to set each learned classifier (5, 6), the embodiment It may be determined appropriately according to For example, when the configuration of the neural network to be used is shared by each device, each learning result data (224, 229) may not include information indicating the configuration of the neural network.

<4.4>
上記実施形態ではステップS103及びS105により、第2識別器6による判定結果を採用しないと判定した場合に限り、制御部11は、ステップS107により、第1識別器5の演算処理を実行して、第1識別器5による良否の判定結果に対応する第1出力値を取得している。しかしながら、検査装置1の処理手順は、このような例に限定されなくてもよい。制御部11は、第2識別器6による判定結果を採用するか否かに関わらず、第1識別器5の演算処理を実行して、第1識別器5による良否の判定結果に対応する第1出力値を取得してもよい。
<4.4>
In the above embodiment, only when it is determined in steps S103 and S105 that the determination result by the second discriminator 6 is not adopted, the control unit 11 performs the arithmetic processing of the first discriminator 5 in step S107. The first output value corresponding to the quality determination result by the first discriminator 5 is acquired. However, the processing procedure of the inspection apparatus 1 may not be limited to such an example. Regardless of whether or not the determination result by the second discriminator 6 is adopted, the control unit 11 executes the arithmetic processing of the first discriminator 5 and corresponds to the pass / fail determination result by the first discriminator 5. One output value may be acquired.

<4.5>
上記実施形態では、第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ、値が大きいほど製品Rに欠陥があることを示し、値が小さいほど製品Rは良品であることを示している。しかしながら、第1出力値及び第2出力値と製品Rの良否との対応関係は、このような例に限定されなくてもよい。
<4.5>
In the said embodiment, the 1st output value obtained from the 1st discriminator 5 and the 2nd output value obtained from the 2nd discriminator 6 respectively show that the product R has a defect, so that a value is large, and a value is small. The product R indicates that it is a non-defective product. However, the correspondence relationship between the first output value and the second output value and the quality of the product R may not be limited to such an example.

例えば、第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ、値が大きいほど製品Rは良品であることを示し、値が小さいほど製品Rには欠陥があることを示すように設定されてよい。この場合、上記実施形態と同様に、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されてよく、第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されてよい。   For example, the first output value obtained from the first discriminator 5 and the second output value obtained from the second discriminator 6 each indicate that the product R is a non-defective product as the value increases, and the product R as the value decreases. May be set to indicate that there is a defect. In this case, as in the above-described embodiment, the numerical range of the first determination criterion may be configured by a range greater than or equal to the first threshold and a range less than the first threshold, and the numerical range of the second determination criterion is the second threshold. You may be comprised by the above range and the range below the 3rd threshold value smaller than the said 2nd threshold value.

検査装置1の制御部11は、ステップS103において、第2識別器6から取得した第2出力値が第2閾値よりも大きいと判定した場合に、第2出力値が第2判定基準の数値範囲に含まれるとして、ステップS104において、製品Rは良品であると判定してもよい。また、制御部11は、ステップS105において、第2識別器6から取得した第2出力値が第3閾値よりも小さいと判定した場合に、第2出力値が第2判定基準の数値範囲に含まれるとして、ステップS106において、製品Rには欠陥があると判定してもよい。   When the control unit 11 of the inspection apparatus 1 determines in step S103 that the second output value acquired from the second discriminator 6 is larger than the second threshold value, the second output value is a numerical range of the second determination criterion. In step S104, the product R may be determined to be non-defective. In addition, when the control unit 11 determines in step S105 that the second output value acquired from the second discriminator 6 is smaller than the third threshold value, the second output value is included in the numerical range of the second determination criterion. In step S106, it may be determined that the product R has a defect.

一方、第2識別器6から取得した第2出力値が、第2閾値よりも小さく、第3閾値よりも大きいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれないとして、上記ステップS107の処理を実行し、第1識別器5から第1出力値を取得してもよい。そして、制御部11は、ステップS108において、第1出力値と第1閾値とを比較することで、第1出力値が第1閾値よりも大きいか否かを判定してもよい。取得した第1出力値が第1閾値よりも大きいと判定した場合に、制御部11は、製品Rは良品であると判定してもよい。他方、取得した第1出力値が第1閾値よりも小さいと判定した場合には、制御部11は、製品Rには欠陥があると判定してもよい。   On the other hand, when it is determined that the second output value acquired from the second discriminator 6 is smaller than the second threshold and larger than the third threshold, the control unit 11 determines that the second output value is the second determination criterion. The first output value may be acquired from the first discriminator 5 by executing the process of step S107. And the control part 11 may determine whether a 1st output value is larger than a 1st threshold value by comparing a 1st output value and a 1st threshold value in step S108. When it is determined that the acquired first output value is greater than the first threshold, the control unit 11 may determine that the product R is a non-defective product. On the other hand, when it determines with the acquired 1st output value being smaller than a 1st threshold value, the control part 11 may determine with the product R having a defect.

<4.6>
上記実施形態及び<4.5>の変形例では、第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ、値の大小に応じて欠陥の有無を表している。しかしながら、第1出力値及び第2出力値の形式は、このような例に限定されなくてもよい。
<4.6>
In the above embodiment and the modification of <4.5>, the first output value obtained from the first discriminator 5 and the second output value obtained from the second discriminator 6 are each determined according to the magnitude of the value. Indicates presence or absence. However, the format of the first output value and the second output value may not be limited to such an example.

例えば、図9に例示されるとおり、第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ、製品Rに欠陥がある確率(欠陥率)又は製品Rが良品である確率(良品率)を示してもよい。図9は、各識別器(5、6)の判定基準のその他の例を例示する。図9の例では、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されている。これに対して、第2判定基準の数値範囲は、第2閾値以上の範囲により構成されている。   For example, as illustrated in FIG. 9, the first output value obtained from the first discriminator 5 and the second output value obtained from the second discriminator 6 are respectively the probability (defect rate) that the product R is defective or The probability that the product R is a non-defective product (non-defective product rate) may be indicated. FIG. 9 illustrates another example of determination criteria for each classifier (5, 6). In the example of FIG. 9, the numerical range of the first determination criterion is configured by a range greater than or equal to the first threshold and a range less than the first threshold. On the other hand, the numerical range of the second determination criterion is configured by a range equal to or greater than the second threshold.

なお、図9の例では、第2閾値は、第1閾値よりも大きな値に設定されている。第1識別器5の機械学習に利用した画像データ222を第1識別器5に入力することで得られる第1出力値と画像データ222を第2識別器6に入力することで得られる第2出力値とがほぼ一致することが保証されている場合には、各閾値は、このような関係に設定されるのが好ましい。ただし、各閾値の関係は、このような例に限定されなくてもよい。例えば、第1閾値と第2閾値とは一致していてもよいし、第2閾値は、第1閾値よりも小さくてもよい。各閾値は、適宜決定されてよい。   In the example of FIG. 9, the second threshold value is set to a value larger than the first threshold value. A second output value obtained by inputting the first output value obtained by inputting the image data 222 used for machine learning of the first discriminator 5 to the first discriminator 5 and the image data 222 to the second discriminator 6. In the case where it is guaranteed that the output values substantially coincide with each other, it is preferable that the respective threshold values are set in such a relationship. However, the relationship between the threshold values may not be limited to such an example. For example, the first threshold value and the second threshold value may coincide with each other, and the second threshold value may be smaller than the first threshold value. Each threshold value may be determined as appropriate.

第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ製品Rに欠陥がある確率を示している場合、制御部11は、上記ステップS103〜S106の処理に代えて、次のように製品Rの良否を判定する。すなわち、制御部11は、第2識別器6から取得した第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定する。第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれるとして、製品Rには欠陥があると判定し、次のステップS109に処理を進める。   When the first output value obtained from the first discriminator 5 and the second output value obtained from the second discriminator 6 indicate the probability that the product R is defective, the control unit 11 performs the above steps S103 to S106. Instead of the process, the quality of the product R is determined as follows. That is, the control unit 11 determines whether or not the second output value is larger than the second threshold value by comparing the second output value acquired from the second discriminator 6 with the second threshold value. When it is determined that the second output value is greater than the second threshold, the control unit 11 determines that the product R is defective, assuming that the second output value is included in the numerical range of the second determination criterion. Then, the process proceeds to the next step S109.

一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれないとして、ステップS107に処理を進める。ステップS107では、制御部11は、上記のとおり、対象画像データ121を第1識別器5に入力することで、第1識別器5から第1出力値を取得する。そして、ステップS108では、制御部11は、取得した第1出力値と第1閾値とを比較し、取得した第1出力値が第1閾値よりも大きいか否かを判定する。第1出力値が第1閾値よりも大きいと判定した場合、制御部11は、製品Rには欠陥があると判定する。他方、第1出力値が第1閾値よりも小さいと判定した場合、制御部11は、製品Rは良品であると判定してもよいし、製品Rの良否は不明であると判定してもよい。これにより、製品Rの良否の判定が完了すると、制御部11は、次のステップS109に処理を進める。   On the other hand, if it is determined that the second output value is smaller than the second threshold, the control unit 11 advances the processing to step S107, assuming that the second output value is not included in the numerical range of the second determination criterion. In step S <b> 107, the control unit 11 acquires the first output value from the first discriminator 5 by inputting the target image data 121 to the first discriminator 5 as described above. In step S108, the control unit 11 compares the acquired first output value with the first threshold value, and determines whether or not the acquired first output value is larger than the first threshold value. When it determines with a 1st output value being larger than a 1st threshold value, the control part 11 determines with the product R having a defect. On the other hand, when it is determined that the first output value is smaller than the first threshold, the control unit 11 may determine that the product R is a non-defective product, or may determine that the quality of the product R is unknown. Good. Thereby, when the determination of the quality of the product R is completed, the control unit 11 advances the processing to the next step S109.

なお、第2出力値と第2閾値とが等しいケース及び第1出力値と第1閾値とが等しいケースの取り扱いはそれぞれ、実施の形態に応じて適宜決定されてよい。すなわち、第2出力値と第2閾値とが等しいケースは、第2出力値が第2閾値よりも大きいケース及び第2出力値が第2閾値よりも小さいケースのいずれに含まれてもよい。また、第1出力値と第1閾値とが等しいケースは、第1出力値が第1閾値よりも大きいケース及び第1出力値が第1閾値よりも小さいケースのいずれに含まれてもよい。   The handling of the case where the second output value is equal to the second threshold and the case where the first output value is equal to the first threshold may be appropriately determined according to the embodiment. That is, the case where the second output value is equal to the second threshold value may be included in either the case where the second output value is larger than the second threshold value or the case where the second output value is smaller than the second threshold value. The case where the first output value is equal to the first threshold value may be included in either the case where the first output value is larger than the first threshold value or the case where the first output value is smaller than the first threshold value.

また、第1識別器5から得られる第1出力値及び第2識別器6から得られる第2出力値はそれぞれ製品Rが良品である確率を示している場合も、制御部11は、上記と同様に、製品Rの良否を判定することができる。すなわち、第2識別器6から取得した第2出力値が第2閾値よりも大きいと判定した場合に、制御部11は、第2出力値が第2判定基準の数値範囲に含まれるとして、製品Rは良品であると判定する。一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれないとして、対象画像データ121を第1識別器5に入力することで、第1識別器5から第1出力値を取得する。そして、取得した第1出力値が第1閾値よりも大きいと判定した場合には、制御部11は、製品Rは良品であると判定する。他方、取得した第1出力値が第1閾値よりも小さいと判定した場合には、制御部11は、製品Rには欠陥があると判定してもよいし、製品Rの良否は不明であると判定してもよい。   Even when the first output value obtained from the first discriminator 5 and the second output value obtained from the second discriminator 6 indicate the probabilities that the product R is non-defective, the control unit 11 Similarly, the quality of the product R can be determined. That is, when it is determined that the second output value acquired from the second discriminator 6 is greater than the second threshold, the control unit 11 determines that the second output value is included in the numerical range of the second determination criterion, and the product R is determined to be a non-defective product. On the other hand, when it is determined that the second output value is smaller than the second threshold, the control unit 11 determines that the second output value is not included in the numerical range of the second determination criterion, and sets the target image data 121 as the first value. A first output value is acquired from the first discriminator 5 by inputting to the discriminator 5. And when it determines with the acquired 1st output value being larger than a 1st threshold value, the control part 11 determines with the product R being non-defective. On the other hand, when it determines with the acquired 1st output value being smaller than a 1st threshold value, the control part 11 may determine with the product R having a defect, and the quality of the product R is unknown. May be determined.

なお、各識別器(5、6)は、複数の出力値を出力するように構成されてもよい。この場合、各識別器(5、6)から出力される複数の出力値のうち、製品Rが良品である確率をいずれかの出力値が示し、製品Rに欠陥がある(又は、製品Rに特定の欠陥がある)確率をその他の出力値が示してもよい。この場合も、上記と同様に、制御部11は、各識別器(5、6)の各出力値に基づいて、製品Rの良否を判定することができる。   Each discriminator (5, 6) may be configured to output a plurality of output values. In this case, of the plurality of output values output from each discriminator (5, 6), one of the output values indicates the probability that the product R is a non-defective product, and the product R is defective (or the product R Other output values may indicate the probability of a particular defect). Also in this case, similarly to the above, the control unit 11 can determine the quality of the product R based on the output values of the discriminators (5, 6).

<4.7>
上記実施形態では、製品Rの外観検査を行う場面に本発明を適用した例を示している。しかしながら、本発明の適用範囲は、このような外観検査の場面に限られなくてもよい。本発明は、画像データから何らかの特徴、すなわち、被写体の状態を判定する場面に広く適用可能である。
<4.7>
In the said embodiment, the example which applied this invention to the scene which performs the external appearance inspection of the product R is shown. However, the application range of the present invention does not have to be limited to such appearance inspection scenes. The present invention can be widely applied to scenes in which some characteristic, that is, the state of a subject is determined from image data.

図10及び図11は、本変形例に係る画像識別装置1Aのハードウェア構成及びソフトウェア構成の一例を模式的に例示する。処理対象となるデータが、製品の写る画像データから何らかの被写体の写る画像データに置き換わる点を除き、本変形例に係る画像識別装置1Aは、上記検査装置1と同様に構成されてよい。すなわち、図10及び図11に示されるとおり、画像識別装置1Aのハードウェア構成及びソフトウェア構成はそれぞれ、上記検査装置1のハードウェア構成及びソフトウェア構成それぞれと同じであってよい。   10 and 11 schematically illustrate an example of a hardware configuration and a software configuration of the image identification device 1A according to the present modification. The image identification device 1A according to the present modification may be configured in the same manner as the inspection device 1 except that the data to be processed is replaced with image data in which some object is captured from image data in which the product is imaged. That is, as shown in FIGS. 10 and 11, the hardware configuration and software configuration of the image identification device 1 </ b> A may be the same as the hardware configuration and software configuration of the inspection device 1, respectively.

本変形例において、被写体、及び識別の対象となる被写体の状態はそれぞれ、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。被写体は、例えば、対象者の顔、対象者の身体、作業対象のワーク等であってもよい。また、被写体が対象者の顔である場合、識別の対象となる状態は、例えば、表情の種別、顔のパーツの状態、その顔を所有する個人等であってもよい。顔を所有する個人の識別は、顔認証を実施するために行われてよい。被写体が対象者の身体である場合には、識別の対象となる状態は、例えば、身体のポーズ等であってもよい。被写体が作業対象のワークである場合、識別の対象となる状態は、例えば、ワークの位置、姿勢等であってもよい。   In this modification, the state of the subject and the subject to be identified need not be particularly limited, and may be appropriately selected according to the embodiment. The subject may be, for example, the subject's face, the subject's body, the work target work, or the like. Further, when the subject is the face of the subject, the state to be identified may be, for example, the type of facial expression, the state of the facial parts, the individual who owns the face, and the like. Identification of the person who owns the face may be performed to perform face authentication. When the subject is the subject's body, the state to be identified may be, for example, a body pose. When the subject is a work target work, the state to be identified may be, for example, the position and posture of the work.

具体的に、図10に示されるとおり、画像識別装置1Aの記憶部12は、画像識別プログラム81A、第1学習結果データ224A、第2学習結果データ229A等の各種情報を記憶する。画像識別プログラム81Aは、上記検査装置1と同様の処理手順により、被写体の状態を判定する情報処理を画像識別装置1Aに実行させるためのプログラムであり、当該情報処理の一連の命令を含む。第1学習結果データ224Aは、学習済みの第1識別器5Aの設定を行うためのデータである。第2学習結果データ229Aは、学習済みの第2識別器6Aの設定を行うためのデータである。   Specifically, as illustrated in FIG. 10, the storage unit 12 of the image identification device 1A stores various information such as an image identification program 81A, first learning result data 224A, and second learning result data 229A. The image identification program 81A is a program for causing the image identification apparatus 1A to perform information processing for determining the state of the subject by the same processing procedure as that of the inspection apparatus 1, and includes a series of instructions for the information processing. The first learning result data 224A is data for setting the learned first discriminator 5A. The second learning result data 229A is data for setting the learned second discriminator 6A.

第1識別器5Aは、被写体の状態を識別する学習を行うための画像データで構成された第1学習データを利用した機械学習により構築される。第2識別器6Aは、被写体の状態を識別する学習を行うための追加の画像データ及び第1学習データで構成された第2学習データを利用した機械学習により構築される。各識別器(5A、6A)は、対象の画像データに写る被写体の状態を識別する能力を習得するように構築される。各識別器(5A、6A)の機械学習は、上記学習装置2により、上記実施形態と同様に実行されてよい。被写体が対象者の顔である場合、第1識別器5Aは、例えば、顔の写る画像データ及び画像データに写る顔の状態の識別に対する正解を示す正解データで構成された第1学習データを利用した機械学習により構築される。また、第2識別器6Aは、例えば、顔の写る追加の画像データ及び追加の画像データに写る顔の状態の識別に対する正解を示す正解データ並びに第1学習データで構成された第2学習データを利用した機械学習により構築される。   The first classifier 5A is constructed by machine learning using first learning data composed of image data for performing learning for identifying the state of the subject. The second discriminator 6A is constructed by machine learning using second image data composed of additional image data and first learning data for performing learning for identifying the state of the subject. Each discriminator (5A, 6A) is constructed so as to acquire the ability to identify the state of the subject in the target image data. Machine learning of each discriminator (5A, 6A) may be executed by the learning device 2 in the same manner as in the above embodiment. When the subject is the face of the target person, the first discriminator 5A uses, for example, first learning data composed of image data showing the face and correct data indicating the correct answer to the identification of the face state shown in the image data. Built by machine learning. Further, the second discriminator 6A receives, for example, additional image data showing a face, correct answer data indicating a correct answer for identification of a face state shown in the additional image data, and second learning data composed of first learning data. It is constructed by using machine learning.

なお、画像識別装置1Aは、上記実施形態と同様に、外部インタフェース14を介してカメラ31に接続されている。カメラ31は、状態を判定する対象となる被写体を撮影可能な場所に適宜配置される。例えば、被写体が対象者の顔又は身体である場合、カメラ31は、被写体となる対象者の存在し得る場所に配置されてよい。また、例えば、被写体が作業対象のワークである場合、カメラ31は、ワークの存在し得る場所に向けて配置されてよい。   Note that the image identification device 1A is connected to the camera 31 via the external interface 14 as in the above embodiment. The camera 31 is appropriately arranged at a place where the subject whose state is to be determined can be taken. For example, when the subject is the face or body of the subject, the camera 31 may be disposed at a location where the subject who is the subject may exist. For example, when the subject is a work to be worked, the camera 31 may be arranged toward a place where the work can exist.

また、図11に示されるとおり、画像識別装置1Aは、制御部11により画像識別プログラム81Aを実行することで、データ取得部111、判定部112、及び出力部113をソフトウェアモジュールとして備えるコンピュータとして動作する。データ取得部111は、状態を識別する対象となる被写体の写る対象画像データ121Aを取得する。判定部112は、第1識別器5A及び第2識別器6Aを含んでおり、第1識別器5A及び第2識別器6Aを利用して、取得した対象画像データ121Aに写る被写体の状態を判定する。出力部113は、被写体の状態を判定した結果を出力する。   As shown in FIG. 11, the image identification device 1A operates as a computer including the data acquisition unit 111, the determination unit 112, and the output unit 113 as software modules by executing the image identification program 81A by the control unit 11. To do. The data acquisition unit 111 acquires target image data 121A in which a subject to be identified is captured. The determination unit 112 includes a first discriminator 5A and a second discriminator 6A, and uses the first discriminator 5A and the second discriminator 6A to determine the state of the subject in the acquired target image data 121A. To do. The output unit 113 outputs the result of determining the state of the subject.

上記実施形態と同様に、本変形例においても、第1識別器5Aに対象画像データ121Aを入力することで当該第1識別器5Aから得られる第1出力値には、被写体の状態を判定するための数値範囲が第1判定基準として設定される。また、第2識別器6Aに対象画像データ121Aを入力することで第2識別器6Aから得られる第2出力値には、被写体の状態を判定するための数値範囲が第2判定基準として設定される。そして、第2判定基準の数値範囲は、第1判定基準の数値範囲よりも狭く設定される。   Similar to the above-described embodiment, also in this modification, the subject image data 121A is input to the first discriminator 5A, and the first output value obtained from the first discriminator 5A determines the state of the subject. A numerical range for this is set as the first criterion. In addition, a numerical range for determining the state of the subject is set as a second determination criterion in the second output value obtained from the second identifier 6A by inputting the target image data 121A to the second identifier 6A. The Then, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion.

そこで、判定部112は、第2識別器6Aに対象画像データ121Aを入力することで、第2識別器6Aから第2出力値を取得する。取得した第2出力値が第2判定基準の数値範囲に含まれる場合には、判定部112は、第2出力値に基づいて、被写体の状態を判定する。一方、取得した第2出力値が第2判定基準の数値範囲に含まれない場合には、判定部112は、第1識別器5Aに対象画像データ121Aを入力することで、第1識別器5Aから第1出力値を取得する。そして、判定部112は、取得した第1出力値に基づいて、被写体の状態を判定する。   Therefore, the determination unit 112 acquires the second output value from the second discriminator 6A by inputting the target image data 121A to the second discriminator 6A. When the acquired second output value is included in the numerical range of the second determination criterion, the determination unit 112 determines the state of the subject based on the second output value. On the other hand, when the acquired second output value is not included in the numerical range of the second determination criterion, the determination unit 112 inputs the target image data 121A to the first identifier 5A, whereby the first identifier 5A. To obtain the first output value. Then, the determination unit 112 determines the state of the subject based on the acquired first output value.

本変形例に係る画像識別装置1Aは、上記検査装置1とほぼ同様の処理手順により、被写体の状態を判定することができる。   The image identification device 1 </ b> A according to the present modification can determine the state of the subject by substantially the same processing procedure as the inspection device 1.

具体的には、ステップS101では、制御部11は、データ取得部111として動作し、状態を判定する対象となる被写体の写る対象画像データ121Aを取得する。   Specifically, in step S101, the control unit 11 operates as the data acquisition unit 111, and acquires target image data 121A in which a subject whose state is to be determined is captured.

次のステップS102〜S108では、制御部11は、判定部112として動作し、第1識別器5A及び第2識別器6Aを利用して、被写体の状態を判定する。本変形例において、第1識別器5Aの第1出力値及び第2識別器6Aの第2出力値はそれぞれ、値が大きいほど被写体が第1状態であることを示し、値が小さいほど被写体が第2状態であることを示してもよい。これに応じて、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されてよい。また、第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されてよい。   In the next steps S102 to S108, the control unit 11 operates as the determination unit 112 and determines the state of the subject using the first discriminator 5A and the second discriminator 6A. In the present modification, the first output value of the first discriminator 5A and the second output value of the second discriminator 6A each indicate that the subject is in the first state as the value increases, and the subject decreases as the value decreases. You may show that it is a 2nd state. Accordingly, the numerical range of the first determination criterion may be configured by a range greater than or equal to the first threshold and a range less than the first threshold. Further, the numerical range of the second determination criterion may be configured by a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold.

なお、第1状態及び第2状態は、実施の形態に応じて適宜決定されてよい。例えば、被写体が対象者の顔である場合には、第1状態は、特定の表情である(例えば、笑顔である)ことに対応し、第2状態は、特定の表情ではないことに対応していてもよい。その他の例についても同様である。   The first state and the second state may be appropriately determined according to the embodiment. For example, when the subject is the face of the subject, the first state corresponds to a specific facial expression (for example, a smile), and the second state corresponds to a non-specific facial expression. It may be. The same applies to other examples.

ステップS102では、制御部11は、第2学習結果データ229Aを参照して、学習済みの第2識別器6Aの設定を行う。続いて、制御部11は、対象画像データ121Aを第2識別器6Aに入力し、当該第2識別器6Aの演算処理を実行する。これにより、制御部11は、対象画像データ121Aに写る被写体の状態を判定した結果に対応する第2出力値を第2識別器6Aから取得する。   In step S102, the control unit 11 sets the learned second discriminator 6A with reference to the second learning result data 229A. Subsequently, the control unit 11 inputs the target image data 121A to the second discriminator 6A, and executes the calculation process of the second discriminator 6A. Thereby, the control unit 11 acquires the second output value corresponding to the result of determining the state of the subject in the target image data 121A from the second discriminator 6A.

ステップS103では、制御部11は、第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定する。第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS104に処理を進めて、対象画像データ121Aに写る被写体は第1状態であると判定する。一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、次のステップS105に処理を進める。第2出力値と第2閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In step S103, the control unit 11 determines whether or not the second output value is larger than the second threshold value by comparing the second output value and the second threshold value. If it is determined that the second output value is greater than the second threshold, the control unit 11 proceeds to the next step S104, assuming that the second output value is included in the numerical range of the second determination criterion, It is determined that the subject in the target image data 121A is in the first state. On the other hand, when it determines with a 2nd output value being smaller than a 2nd threshold value, the control part 11 advances a process to following step S105. Handling of the case where the second output value is equal to the second threshold value may be appropriately selected according to the embodiment.

ステップS105では、制御部11は、第2出力値と第3閾値とを比較することで、第2出力値が第3閾値よりも小さいか否かを判定する。第2出力値が第3閾値よりも小さいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS106に処理を進めて、対象画像データ121Aに写る被写体は第2状態であると判定する。一方、第2出力値が第3閾値よりも大きいと判定した場合には、制御部11は、次のステップS107に処理を進める。なお、第2出力値と第3閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。   In step S105, the control unit 11 determines whether the second output value is smaller than the third threshold value by comparing the second output value with the third threshold value. If it is determined that the second output value is smaller than the third threshold, the control unit 11 proceeds to the next step S106, assuming that the second output value is included in the numerical range of the second determination criterion, The subject shown in the target image data 121A is determined to be in the second state. On the other hand, when it determines with a 2nd output value being larger than a 3rd threshold value, the control part 11 advances a process to following step S107. The handling of the case where the second output value is equal to the third threshold value may be appropriately determined according to the embodiment.

第2識別器6Aから取得した第2出力値が、第2閾値よりも小さく、第3閾値よりも大きいと判定した場合に、制御部11は、第2判定基準の数値範囲に第2出力値は含まれないとして、ステップS107及びS108の処理を実行する。ステップS107では、制御部11は、第1学習結果データ224Aを参照して、学習済みの第1識別器5Aの設定を行う。続いて、制御部11は、対象画像データ121Aを第1識別器5Aに入力し、当該第1識別器5Aの演算処理を実行する。これにより、制御部11は、対象画像データ121Aに写る被写体の状態を判定した結果に対応する第1出力値を第1識別器5Aから取得する。   When it is determined that the second output value acquired from the second discriminator 6A is smaller than the second threshold and larger than the third threshold, the control unit 11 outputs the second output value within the numerical range of the second determination criterion. Are not included, the processing of steps S107 and S108 is executed. In step S107, the control unit 11 sets the learned first discriminator 5A with reference to the first learning result data 224A. Subsequently, the control unit 11 inputs the target image data 121A to the first discriminator 5A, and executes arithmetic processing of the first discriminator 5A. Thereby, the control part 11 acquires the 1st output value corresponding to the result of having determined the state of the subject reflected in the target image data 121A from the first discriminator 5A.

ステップS108では、制御部11は、第1出力値と第1閾値とを比較することで、取得した第1出力値が第1閾値よりも大きいか否かを判定する。取得した第1出力値が第1閾値よりも大きいと判定した場合には、制御部11は、対象画像データ121Aに写る被写体は第1状態であると判定する。他方、取得した第1出力値が第1閾値よりも小さいと判定した場合には、制御部11は、対象画像データ121Aに写る被写体は第2状態であると判定する。なお、第1出力値と第1閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。   In step S108, the control unit 11 determines whether or not the acquired first output value is larger than the first threshold value by comparing the first output value and the first threshold value. When it is determined that the acquired first output value is greater than the first threshold value, the control unit 11 determines that the subject in the target image data 121A is in the first state. On the other hand, when it is determined that the acquired first output value is smaller than the first threshold value, the control unit 11 determines that the subject shown in the target image data 121A is in the second state. The handling of the case where the first output value is equal to the first threshold value may be appropriately determined according to the embodiment.

ステップS109では、制御部11は、出力部113として動作し、被写体の状態を判定した結果を出力する。被写体の状態を判定した結果の出力形式は、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。例えば、制御部11は、被写体の状態を判定した結果をそのまま出力装置16に出力してもよい。また、例えば、被写体の状態を判定した結果に応じて所定の出力処理が対応付けられていてもよい。具体例として、被写体の状態として対象者の表情の種別を判定するケースでは、対象者の顔が笑顔ではない(第2状態である)と判定したときに、制御部11は、対象者の関連者の携帯端末にそのことを通知する電子メールの送信を当該出力処理として行ってもよい。   In step S109, the control unit 11 operates as the output unit 113 and outputs a result of determining the state of the subject. The output format of the result of determining the state of the subject is not particularly limited, and may be appropriately selected according to the embodiment. For example, the control unit 11 may output the result of determining the state of the subject to the output device 16 as it is. Further, for example, a predetermined output process may be associated with the result of determining the state of the subject. As a specific example, in the case of determining the type of facial expression of the subject as the state of the subject, the control unit 11 determines whether the subject's face is not smiling (is in the second state). An e-mail for notifying the user's portable terminal may be transmitted as the output process.

以上により、本変形例では、再学習又は追加学習により第2識別器6Aの識別性能が第1識別器5Aよりも悪化してしまった場合でも、被写体の状態を判定する処理の信頼性が損なわれてしまうのを防止することができる。   As described above, in this modification, even when the discrimination performance of the second discriminator 6A is worse than that of the first discriminator 5A due to re-learning or additional learning, the reliability of the process for determining the state of the subject is impaired. Can be prevented.

なお、本変形例において、上記<4.6>と同様に、第1識別器5Aの第1出力値及び第2識別器6Aの第2出力値はそれぞれ、対象画像データ121Aに写る被写体が所定の状態である確率を示してもよい。これに応じて、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されてよく、第2判定基準の数値範囲は、第2閾値以上の範囲により構成されてよい。   In the present modification, as in the above <4.6>, the first output value of the first discriminator 5A and the second output value of the second discriminator 6A are predetermined for the subject imaged in the target image data 121A. The probability of being in the state may be shown. Accordingly, the numerical range of the first determination criterion may be configured by a range that is greater than or equal to the first threshold and a range that is less than the first threshold, and the numerical range of the second determination criterion is configured by a range that is greater than or equal to the second threshold. May be.

この場合、画像識別装置1Aの制御部11は、上記ステップS103〜S106の処理に代えて、第2識別器6Aから取得した第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定してもよい。そして、第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれるとして、対象画像データ121Aに写る被写体は所定の状態であると判定してもよい。一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれないとして、ステップS107に処理を進めてもよい。第2出力値と第2閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In this case, the control unit 11 of the image identification device 1A compares the second output value acquired from the second identifier 6A with the second threshold value in place of the processing in steps S103 to S106, thereby obtaining the second output. It may be determined whether the value is greater than a second threshold value. When determining that the second output value is greater than the second threshold value, the control unit 11 assumes that the second output value is included in the numerical range of the second determination criterion, and the subject captured in the target image data 121A is You may determine with it being a predetermined state. On the other hand, if it is determined that the second output value is smaller than the second threshold, the control unit 11 proceeds to step S107, assuming that the second output value is not included in the numerical range of the second determination criterion. Also good. Handling of the case where the second output value is equal to the second threshold value may be appropriately selected according to the embodiment.

ステップS107では、制御部11は、対象画像データ121Aを第1識別器5Aに入力することで、第1識別器5Aから第1出力値を取得してもよい。そして、ステップS108では、制御部11は、取得した第1出力値と第1閾値とを比較し、取得した第1出力値が第1閾値よりも大きいか否かを判定してもよい。第1出力値が第1閾値よりも大きいと判定した場合、制御部11は、対象画像データ121Aに写る被写体は所定の状態であると判定してもよい。他方、第1出力値が第1閾値よりも小さいと判定した場合、制御部11は、対象画像データ121Aに写る被写体は所定の状態ではないと判定してもよいし、当該被写体の状態は不明であると判定してもよい。第1出力値と第1閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In step S107, the control unit 11 may acquire the first output value from the first discriminator 5A by inputting the target image data 121A to the first discriminator 5A. In step S108, the control unit 11 may compare the acquired first output value with the first threshold value and determine whether the acquired first output value is larger than the first threshold value. When it is determined that the first output value is greater than the first threshold, the control unit 11 may determine that the subject that is captured in the target image data 121A is in a predetermined state. On the other hand, when it is determined that the first output value is smaller than the first threshold, the control unit 11 may determine that the subject shown in the target image data 121A is not in a predetermined state, and the state of the subject is unknown. It may be determined that Handling of the case where the first output value is equal to the first threshold value may be appropriately selected according to the embodiment.

<4.8>
上記実施形態及び変形例では、画像データから何らかの特徴(被写体の状態)を判定する場面に本発明を提供した例を示している。しかしながら、本発明の適用可能な範囲は、このような画像データから特徴を判定する場面に限られなくてもよい。本発明は、画像データ以外のデータ又は複数種類のデータから何らかの特徴を識別する場面に広く適用可能である。
<4.8>
In the above-described embodiment and the modification, an example in which the present invention is provided in a scene in which some characteristic (the state of a subject) is determined from image data is shown. However, the applicable range of the present invention does not have to be limited to scenes where characteristics are determined from such image data. The present invention can be widely applied to scenes in which some feature is identified from data other than image data or a plurality of types of data.

図12及び図13は、本変形例に係る識別装置1Bのハードウェア構成及びソフトウェア構成の一例を模式的に例示する。処理対象となるデータが、製品の写る画像データから何らかの特徴を含む他種のデータに置き換わる点を除き、本変形例に係る識別装置1Bは、上記検査装置1と同様に構成されてよい。すなわち、図12及び図13に示されるとおり、識別装置1Bのハードウェア構成及びソフトウェア構成はそれぞれ、上記検査装置1のハードウェア構成及びソフトウェア構成それぞれと同じであってよい。   12 and 13 schematically illustrate an example of a hardware configuration and a software configuration of the identification device 1B according to the present modification. The identification device 1B according to the present modification may be configured in the same manner as the inspection device 1 except that the data to be processed is replaced with other types of data including some characteristics from the image data representing the product. That is, as shown in FIGS. 12 and 13, the hardware configuration and software configuration of the identification device 1 </ b> B may be the same as the hardware configuration and software configuration of the inspection device 1, respectively.

具体的に、図12に示されるとおり、識別装置1Bの記憶部12は、識別プログラム81B、第1学習結果データ224B、第2学習結果データ229B等の各種情報を記憶する。識別プログラム81Bは、上記検査装置1と同様の処理手順により、データの特徴を判定する情報処理を識別装置1Bに実行させるためのプログラムであり、当該情報処理の一連の命令を含む。第1学習結果データ224Bは、学習済みの第1識別器5Bの設定を行うためのデータである。第2学習結果データ229Bは、学習済みの第2識別器6Bの設定を行うためのデータである。   Specifically, as illustrated in FIG. 12, the storage unit 12 of the identification device 1B stores various types of information such as an identification program 81B, first learning result data 224B, and second learning result data 229B. The identification program 81B is a program for causing the identification device 1B to perform information processing for determining data characteristics according to the same processing procedure as the inspection device 1, and includes a series of instructions for the information processing. The first learning result data 224B is data for setting the learned first discriminator 5B. The second learning result data 229B is data for setting the learned second discriminator 6B.

本変形例において、処理対象となるデータは、識別器による解析の対象となり得るあらゆる種類のデータを含んでもよく、例えば、画像データの他、音データ(音声データ)、数値データ、テキストデータ等であってよい。また、対象のデータから識別される特徴は、データから識別可能なあらゆる特徴を含んでもよい。対象のデータが音データである場合、識別される特徴は、例えば、特定の音(例えば、機械の異音)が含まれているか否か等であってもよい。対象のデータが、活動量等の生体データに関する数値データ又はテキストデータである場合、識別される特徴は、例えば、対象者の状態(例えば、健康であるか否か)等であってもよい。対象のデータが、機械の駆動量等の数値データ又はテキストデータである場合、識別される特徴は、例えば、機械の状態(例えば、機械が所定の状態にあるか否か)等であってもよい。   In the present modification, the data to be processed may include all kinds of data that can be analyzed by the classifier. For example, in addition to image data, sound data (voice data), numerical data, text data, etc. It may be. The feature identified from the target data may include any feature that can be identified from the data. When the target data is sound data, the identified feature may be, for example, whether or not a specific sound (for example, mechanical noise) is included. When the target data is numerical data or text data related to biological data such as activity data, the identified feature may be, for example, the state of the subject (for example, whether or not he / she is healthy). When the target data is numerical data such as driving amount of the machine or text data, the identified feature is, for example, the state of the machine (for example, whether or not the machine is in a predetermined state) Good.

第1識別器5Bは、特徴を識別する学習を行うためのデータで構成された第1学習データを利用した機械学習により構築される。第2識別器6Bは、第1学習データ及び特徴を識別する学習を行うための追加のデータで構成された第2学習データを利用した機械学習により構築される。各識別器(5B、6B)は、対象のデータに含まれる特徴を識別する能力を習得するように構築される。各識別器(5B、6B)の機械学習は、上記学習装置2により、上記実施形態と同様に実行されてよい。処理対象のデータが音データである場合、第1識別器5Bは、例えば、音データ及び音データに含まれる特徴の識別に対する正解を示す正解データで構成された第1学習データを利用した機械学習により構築される。また、第2識別器6Bは、例えば、追加の音データ及び追加の音データに含まれる特徴の識別に対する正解を示す正解データ並びに第1学習データで構成された第2学習データを利用した機械学習により構築される。   The first discriminator 5B is constructed by machine learning using first learning data composed of data for performing learning for identifying features. The second discriminator 6B is constructed by machine learning using second learning data composed of first learning data and additional data for performing learning for identifying features. Each classifier (5B, 6B) is constructed to acquire the ability to identify features contained in the data of interest. Machine learning of each discriminator (5B, 6B) may be executed by the learning device 2 in the same manner as in the above embodiment. When the data to be processed is sound data, the first discriminator 5B uses, for example, machine learning using first learning data composed of sound data and correct data indicating correct answers for identification of features included in the sound data. It is constructed by. In addition, the second discriminator 6B uses, for example, machine learning using additional sound data, correct answer data indicating a correct answer for identification of a feature included in the additional sound data, and second learning data including first learning data. It is constructed by.

なお、本変形例では、識別装置1Bは、外部インタフェース14を介して、計測装置31Bと接続されている。計測装置31Bは、対象のデータを取得可能に適宜構成される。計測装置31Bの種類は、処理対象のデータに応じて適宜決定されてよい。処理対象のデータが音データである場合、計測装置31Bは、例えば、マイクロフォン等である。処理対象のデータが生体データである場合、計測装置31Bは、例えば、活動量計、血圧計等の、生体情報を計測可能に構成された装置である。また、処理対象のデータが、機械の駆動量等の数値データ又はテキストデータである場合、計測装置31Bは、例えば、エンコーダ等の対象の物理量を測定可能に構成された装置である。計測装置31Bの配置は、実施の形態に応じて適宜決定されてよい。   In the present modification, the identification device 1B is connected to the measurement device 31B via the external interface 14. The measuring device 31B is appropriately configured so as to be able to acquire target data. The type of the measuring device 31B may be appropriately determined according to the data to be processed. When the data to be processed is sound data, the measurement device 31B is, for example, a microphone. When the data to be processed is biological data, the measurement device 31B is a device configured to be able to measure biological information, such as an activity meter or a blood pressure monitor. Further, when the data to be processed is numerical data such as a driving amount of the machine or text data, the measuring device 31B is a device configured to be able to measure a target physical quantity such as an encoder, for example. The arrangement of the measurement device 31B may be appropriately determined according to the embodiment.

また、図13に示されるとおり、識別装置1Bは、制御部11により識別プログラム81Bを実行することで、データ取得部111、判定部112、及び出力部113をソフトウェアモジュールとして備えるコンピュータとして動作する。データ取得部111は、識別する対象となる特徴を含む対象データ121Bを取得する。判定部112は、第1識別器5B及び第2識別器6Bを含んでおり、第1識別器5B及び第2識別器6Bを利用して、取得した対象データ121Bに表れる特徴を判定する。出力部113は、被写体の状態を判定した結果を出力する。   As illustrated in FIG. 13, the identification apparatus 1B operates as a computer including the data acquisition unit 111, the determination unit 112, and the output unit 113 as software modules by executing the identification program 81B by the control unit 11. The data acquisition unit 111 acquires target data 121B including a feature to be identified. The determination unit 112 includes a first discriminator 5B and a second discriminator 6B, and uses the first discriminator 5B and the second discriminator 6B to determine a feature appearing in the acquired target data 121B. The output unit 113 outputs the result of determining the state of the subject.

上記実施形態と同様に、本変形例においても、第1識別器5Bに対象データ121Bを入力することで当該第1識別器5Bから得られる第1出力値には、特徴を判定するための数値範囲が第1判定基準として設定される。また、第2識別器6Bに対象データ121Bを入力することで第2識別器6Bから得られる第2出力値には、状態を判定するための数値範囲が第2判定基準として設定される。そして、第2判定基準の数値範囲は、第1判定基準の数値範囲よりも狭く設定される。   Similar to the above-described embodiment, also in this modification, the first output value obtained from the first discriminator 5B by inputting the target data 121B to the first discriminator 5B is a numerical value for determining the feature. A range is set as the first criterion. In addition, a numerical range for determining the state is set as a second determination criterion for the second output value obtained from the second identifier 6B by inputting the target data 121B to the second identifier 6B. Then, the numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion.

そこで、判定部112は、第2識別器6Bに対象データ121Bを入力することで、第2識別器6Bから第2出力値を取得する。取得した第2出力値が第2判定基準の数値範囲に含まれる場合には、判定部112は、第2出力値に基づいて、対象データ121Bに表れる特徴を判定する。一方、取得した第2出力値が第2判定基準の数値範囲に含まれない場合には、判定部112は、第1識別器5Bに対象データ121Bを入力することで、第1識別器5Bから第1出力値を取得する。そして、判定部112は、取得した第1出力値に基づいて、対象データ121Bに表れる特徴を判定する。   Therefore, the determination unit 112 acquires the second output value from the second discriminator 6B by inputting the target data 121B to the second discriminator 6B. When the acquired second output value is included in the numerical range of the second determination criterion, the determination unit 112 determines a feature appearing in the target data 121B based on the second output value. On the other hand, when the acquired second output value is not included in the numerical range of the second determination criterion, the determination unit 112 inputs the target data 121B to the first identifier 5B, so that the first identifier 5B Obtain the first output value. And the determination part 112 determines the characteristic which appears in the object data 121B based on the acquired 1st output value.

本変形例に係る識別装置1Bは、上記検査装置1とほぼ同様の処理手順により、対象データ121Bに表れる特徴を判定することができる。   The identification device 1B according to the present modification can determine a feature appearing in the target data 121B by a processing procedure substantially similar to that of the inspection device 1.

具体的には、ステップS101では、制御部11は、データ取得部111として動作し、判定する対象となる特徴を含む対象データ121Bを取得する。本変形例では、制御部11は、外部インタフェース14を介して計測装置31Bから対象データ121Bを取得する。ただし、対象データ121Bを取得する経路は、このような例に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。   Specifically, in step S101, the control unit 11 operates as the data acquisition unit 111, and acquires target data 121B including a feature to be determined. In the present modification, the control unit 11 acquires the target data 121B from the measurement device 31B via the external interface 14. However, the route for acquiring the target data 121B may not be limited to such an example, and may be appropriately selected according to the embodiment.

次のステップS102〜S108では、制御部11は、判定部112として動作し、第1識別器5B及び第2識別器6Bを利用して、対象データ121Bに表れる特徴を判定する。本変形例において、第1識別器5Bの第1出力値及び第2識別器6Bの第2出力値はそれぞれ、値が大きいほど対象データ121Bには第1特徴が表れていることを示し、値が小さいほど対象データ121Bには第2特徴が表れていることを示してもよい。これに応じて、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されてよい。また、第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されてよい。   In the next steps S102 to S108, the control unit 11 operates as the determination unit 112, and determines the feature appearing in the target data 121B using the first discriminator 5B and the second discriminator 6B. In this modification, the first output value of the first discriminator 5B and the second output value of the second discriminator 6B each indicate that the larger the value, the first feature appears in the target data 121B. It may be shown that the second feature appears in the target data 121B as the value of is smaller. Accordingly, the numerical range of the first determination criterion may be configured by a range greater than or equal to the first threshold and a range less than the first threshold. Further, the numerical range of the second determination criterion may be configured by a range equal to or greater than the second threshold and a range equal to or smaller than the third threshold smaller than the second threshold.

なお、第1特徴及び第2特徴は、実施の形態に応じて適宜決定されてよい。例えば、対象データ121Bが音データである場合、第1特徴は、機械の異音が含まれていることに対応し、第2特徴は、機械の異音が含まれていないことに対応していてもよい。同様に、例えば、対象データ121Bが生体データに関する数値データ又はテキストデータである場合、第1特徴は、対象者が健康であることに対応し、第2特徴は、対象者に異常があることに対応していてもよい。その他の例についても同様である。   The first feature and the second feature may be appropriately determined according to the embodiment. For example, when the target data 121B is sound data, the first feature corresponds to the fact that machine noise is included, and the second feature corresponds to the fact that machine noise is not included. May be. Similarly, for example, when the target data 121B is numerical data or text data related to biometric data, the first feature corresponds to the subject being healthy, and the second feature is that the subject is abnormal. It may correspond. The same applies to other examples.

ステップS102では、制御部11は、第2学習結果データ229Bを参照して、学習済みの第2識別器6Bの設定を行う。続いて、制御部11は、対象データ121Bを第2識別器6Bに入力し、当該第2識別器6Bの演算処理を実行する。これにより、制御部11は、対象データ121Bに表れる特徴を判定した結果に対応する第2出力値を第2識別器6Bから取得する。   In step S102, the control unit 11 sets the learned second discriminator 6B with reference to the second learning result data 229B. Subsequently, the control unit 11 inputs the target data 121B to the second discriminator 6B, and executes the calculation process of the second discriminator 6B. Thereby, the control part 11 acquires the 2nd output value corresponding to the result of having determined the characteristic which appears in the object data 121B from the 2nd discriminator 6B.

ステップS103では、制御部11は、第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定する。第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS104に処理を進めて、対象データ121Bには第1特徴が表れていると判定する。一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、次のステップS105に処理を進める。第2出力値と第2閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In step S103, the control unit 11 determines whether or not the second output value is larger than the second threshold value by comparing the second output value and the second threshold value. If it is determined that the second output value is greater than the second threshold, the control unit 11 proceeds to the next step S104, assuming that the second output value is included in the numerical range of the second determination criterion, It is determined that the first feature appears in the target data 121B. On the other hand, when it determines with a 2nd output value being smaller than a 2nd threshold value, the control part 11 advances a process to following step S105. Handling of the case where the second output value is equal to the second threshold value may be appropriately selected according to the embodiment.

ステップS105では、制御部11は、第2出力値と第3閾値とを比較することで、第2出力値が第3閾値よりも小さいか否かを判定する。第2出力値が第3閾値よりも小さいと判定した場合には、制御部11は、第2判定基準の数値範囲に第2出力値が含まれるとして、次のステップS106に処理を進めて、対象データ121Bには第2特徴が表れていると判定する。一方、第2出力値が第3閾値よりも大きいと判定した場合には、制御部11は、次のステップS107に処理を進める。なお、第2出力値と第3閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。   In step S105, the control unit 11 determines whether the second output value is smaller than the third threshold value by comparing the second output value with the third threshold value. If it is determined that the second output value is smaller than the third threshold, the control unit 11 proceeds to the next step S106, assuming that the second output value is included in the numerical range of the second determination criterion, It is determined that the second feature appears in the target data 121B. On the other hand, when it determines with a 2nd output value being larger than a 3rd threshold value, the control part 11 advances a process to following step S107. The handling of the case where the second output value is equal to the third threshold value may be appropriately determined according to the embodiment.

第2識別器6Bから取得した第2出力値が、第2閾値よりも小さく、第3閾値よりも大きいと判定した場合に、制御部11は、第2判定基準の数値範囲に第2出力値は含まれないとして、ステップS107及びS108の処理を実行する。ステップS107では、制御部11は、第1学習結果データ224Bを参照して、学習済みの第1識別器5Bの設定を行う。続いて、制御部11は、対象データ121Bを第1識別器5Bに入力し、当該第1識別器5Bの演算処理を実行する。これにより、制御部11は、対象データ121Bに表れる特徴を判定した結果に対応する第1出力値を第1識別器5Bから取得する。   When it is determined that the second output value acquired from the second discriminator 6B is smaller than the second threshold value and larger than the third threshold value, the control unit 11 outputs the second output value within the numerical range of the second determination criterion. Are not included, the processing of steps S107 and S108 is executed. In step S107, the control unit 11 sets the learned first discriminator 5B with reference to the first learning result data 224B. Subsequently, the control unit 11 inputs the target data 121B to the first discriminator 5B and executes the arithmetic processing of the first discriminator 5B. Thereby, the control part 11 acquires the 1st output value corresponding to the result of having determined the characteristic which appears in the object data 121B from the 1st discriminator 5B.

ステップS108では、制御部11は、第1出力値と第1閾値とを比較することで、取得した第1出力値が第1閾値よりも大きいか否かを判定する。取得した第1出力値が第1閾値よりも大きいと判定した場合には、制御部11は、対象データ121Bには第1特徴が表れていると判定する。他方、取得した第1出力値が第1閾値よりも小さいと判定した場合には、制御部11は、対象データ121Bには第2特徴が表れていると判定する。なお、第1出力値と第1閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜決定されてよい。   In step S108, the control unit 11 determines whether or not the acquired first output value is larger than the first threshold value by comparing the first output value and the first threshold value. When it determines with the acquired 1st output value being larger than a 1st threshold value, the control part 11 determines with the 1st characteristic appearing in the object data 121B. On the other hand, when it determines with the acquired 1st output value being smaller than a 1st threshold value, the control part 11 determines with the 2nd feature appearing in the object data 121B. The handling of the case where the first output value is equal to the first threshold value may be appropriately determined according to the embodiment.

ステップS109では、制御部11は、出力部113として動作し、対象データ121Bに含まれる特徴を判定した結果を出力する。判定した結果の出力形式は、特に限定されなくてもよく、実施の形態に応じて適宜選択されてよい。例えば、制御部11は、対象データ121Bに含まれる特徴を判定した結果をそのまま出力装置16に出力してもよい。また、例えば、制御部11は、判定結果に応じて所定の出力処理を実行してもよい。具体例として、対象データ121Bが音データであり、音データの特徴として機械の異音が含まれるか否かを判定するケースでは、対象データ121Bに機械の異音が含まれると判定したときに、制御部11は、その機械の管理者の携帯端末にそのことを警告する電子メールの送信を当該出力処理として行ってもよい。   In step S109, the control unit 11 operates as the output unit 113, and outputs a result of determining the features included in the target data 121B. The output format of the determined result is not particularly limited and may be appropriately selected according to the embodiment. For example, the control unit 11 may output the result of determining the characteristics included in the target data 121B to the output device 16 as it is. For example, the control unit 11 may execute a predetermined output process according to the determination result. As a specific example, in the case where the target data 121B is sound data and it is determined whether or not mechanical noise is included as a feature of the sound data, when it is determined that the target data 121B includes mechanical noise. The control unit 11 may perform transmission of an e-mail alerting the portable terminal of the manager of the machine as the output process.

以上により、本変形例では、再学習又は追加学習により第2識別器6Bの識別性能が第1識別器5Bよりも悪化してしまった場合でも、対象のデータに表れる特徴を判定する処理の信頼性が損なわれてしまうのを防止することができる。   As described above, in the present modification, even when the discrimination performance of the second discriminator 6B is worse than that of the first discriminator 5B due to re-learning or additional learning, the reliability of the process for determining the feature appearing in the target data It is possible to prevent the performance from being impaired.

なお、本変形例において、上記<4.6>と同様に、第1識別器5Bの第1出力値及び第2識別器6Bの第2出力値はそれぞれ、対象データ121Bに所定の特徴が表れている確率を示してもよい。これに応じて、第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されてよく、第2判定基準の数値範囲は、第2閾値以上の範囲により構成されてよい。   In the present modification, similar to <4.6> above, the first output value of the first discriminator 5B and the second output value of the second discriminator 6B each have a predetermined characteristic in the target data 121B. May indicate the probability. Accordingly, the numerical range of the first determination criterion may be configured by a range that is greater than or equal to the first threshold and a range that is less than the first threshold, and the numerical range of the second determination criterion is configured by a range that is greater than or equal to the second threshold. May be.

この場合、識別装置1Bの制御部11は上記ステップS103〜S106の処理に代えて、第2識別器6Bから取得した第2出力値と第2閾値とを比較することで、第2出力値が第2閾値よりも大きいか否かを判定してもよい。そして、第2出力値が第2閾値よりも大きいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれるとして、対象データ121Bには所定の特徴が表れていると判定してもよい。一方、第2出力値が第2閾値よりも小さいと判定した場合には、制御部11は、第2出力値は第2判定基準の数値範囲に含まれないとして、ステップS107に処理を進めてもよい。第2出力値と第2閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In this case, the control unit 11 of the identification device 1B compares the second output value acquired from the second identifier 6B with the second threshold value instead of the processes in steps S103 to S106, so that the second output value is obtained. You may determine whether it is larger than a 2nd threshold value. If it is determined that the second output value is greater than the second threshold, the control unit 11 assumes that the second output value is included in the numerical range of the second determination criterion, and the target data 121B has a predetermined feature. It may be determined that appears. On the other hand, if it is determined that the second output value is smaller than the second threshold, the control unit 11 proceeds to step S107, assuming that the second output value is not included in the numerical range of the second determination criterion. Also good. Handling of the case where the second output value is equal to the second threshold value may be appropriately selected according to the embodiment.

ステップS107では、制御部11は、対象データ121Bを第1識別器5Bに入力することで、第1識別器5Bから第1出力値を取得してもよい。そして、ステップS108では、制御部11は、取得した第1出力値と第1閾値とを比較し、取得した第1出力値が第1閾値よりも大きいか否かを判定してもよい。第1出力値が第1閾値よりも大きいと判定した場合、制御部11は、対象データ121Bには所定の特徴が表れていると判定してもよい。他方、第1出力値が第1閾値よりも小さいと判定した場合、制御部11は、対象データ121Bには所定の特徴が表れていないと判定してもよいし、対象データ121Bに所定の特徴が表れているか否か不明であると判定してもよい。第1出力値と第1閾値とが等しいケースの取り扱いは、実施の形態に応じて適宜選択されてよい。   In step S107, the control unit 11 may acquire the first output value from the first discriminator 5B by inputting the target data 121B to the first discriminator 5B. In step S108, the control unit 11 may compare the acquired first output value with the first threshold value and determine whether the acquired first output value is larger than the first threshold value. When it is determined that the first output value is greater than the first threshold, the control unit 11 may determine that a predetermined feature appears in the target data 121B. On the other hand, when it is determined that the first output value is smaller than the first threshold value, the control unit 11 may determine that the predetermined feature does not appear in the target data 121B, or the predetermined feature is included in the target data 121B. It may be determined that it is unknown whether or not Handling of the case where the first output value is equal to the first threshold value may be appropriately selected according to the embodiment.

1…検査装置、
11…制御部、12…記憶部、13…通信インタフェース、
14…外部インタフェース、
15…入力装置、16…出力装置、17…ドライブ、
81…検査プログラム、91…記憶媒体、
111…データ取得部、112…判定部、113…出力部、
121…対象画像データ、
2…学習装置、
21…制御部、22…記憶部、23…通信インタフェース、
24…入力装置、25…出力装置、26…ドライブ、
82…学習プログラム、92…記憶媒体、
211…学習データ取得部、212…学習処理部、
221…第1学習データ、
222…画像データ、223…正解データ、
224…第1学習結果データ、
226…第2学習データ、
227…追加の画像データ、228…正解データ、
229…第2学習結果データ、
31…カメラ、
5…第1識別器、
51…入力層、52…中間層(隠れ層)、53…出力層、
6…第2識別器、
61…入力層、62…中間層(隠れ層)、63…出力層
1 ... Inspection device,
11 ... Control unit, 12 ... Storage unit, 13 ... Communication interface,
14 ... External interface,
15 ... input device, 16 ... output device, 17 ... drive,
81 ... Inspection program, 91 ... Storage medium,
111 ... Data acquisition unit, 112 ... Determination unit, 113 ... Output unit,
121 ... target image data,
2 ... Learning device,
21 ... Control unit, 22 ... Storage unit, 23 ... Communication interface,
24 ... Input device, 25 ... Output device, 26 ... Drive,
82 ... Learning program, 92 ... Storage medium,
211 ... a learning data acquisition unit, 212 ... a learning processing unit,
221 ... 1st learning data,
222: Image data, 223: Correct data,
224 ... 1st learning result data,
226 ... second learning data,
227 ... additional image data, 228 ... correct data,
229 ... second learning result data,
31 ... Camera,
5 ... 1st discriminator,
51 ... Input layer, 52 ... Intermediate layer (hidden layer), 53 ... Output layer,
6 ... second discriminator,
61 ... Input layer, 62 ... Intermediate layer (hidden layer), 63 ... Output layer

Claims (11)

製品の良否を検査する検査装置であって、
検査の対象となる前記製品の写る対象画像データを取得するデータ取得部と、
前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する判定部と、
前記製品の良否を判定した結果を出力する出力部と、
を備え、
前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、
前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、
前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、
前記判定部は、
前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記製品の良否を判定する、
検査装置。
An inspection device for inspecting the quality of a product,
A data acquisition unit that acquires target image data of the product to be inspected;
A first discriminator constructed by machine learning using first learning data composed of image data for learning the quality of the product, and an addition for learning the quality of the first learning data and the product A determination unit that determines the quality of the product in the acquired target image data using a second discriminator constructed by machine learning using the second learning data configured of the image data;
An output unit that outputs a result of determining the quality of the product;
With
In the first output value obtained from the first discriminator by inputting the target image data to the first discriminator, a numerical range for judging the quality of the product is set as a first judgment criterion. And
In the second output value obtained from the second discriminator by inputting the target image data to the second discriminator, a numerical range for judging the quality of the product is set as a second judgment criterion. And
The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion,
The determination unit
Obtaining the second output value from the second discriminator by inputting the target image data to the second discriminator;
When the acquired second output value is included in the numerical range of the second determination criterion, the quality of the product is determined based on the second output value,
When the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is input to the first discriminator, whereby the first output from the first discriminator. A value is acquired, and the quality of the product is determined based on the acquired first output value.
Inspection device.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記製品に欠陥があることを示し、値が小さいほど前記製品は良品であることを示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定し、
前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定し、
前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品には欠陥があると判定し、
取得した第1出力値が前記第1閾値よりも小さい場合には、前記製品は良品であると判定する、
請求項1に記載の検査装置。
The first output value of the first discriminator and the second output value of the second discriminator each indicate that the product is defective as the value increases, and the product is a non-defective product as the value decreases. Show that
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is composed of a range equal to or greater than a second threshold and a range equal to or smaller than a third threshold smaller than the second threshold.
The determination unit
If the second output value acquired from the second discriminator is larger than the second threshold value, the product is defective as the second output value is included in the numerical range of the second determination criterion. Judge that there is,
When the second output value acquired from the second discriminator is smaller than the third threshold value, the product is a non-defective product, assuming that the second output value is included in the numerical range of the second determination criterion. And
When the second output value acquired from the second discriminator is smaller than the second threshold and larger than the third threshold, the second output value is included in the numerical range of the second determination criterion. As a result, by inputting the target image data to the first discriminator, obtaining the first output value from the first discriminator,
If the acquired first output value is greater than the first threshold, it is determined that the product is defective,
When the acquired first output value is smaller than the first threshold, it is determined that the product is a non-defective product.
The inspection apparatus according to claim 1.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記製品は良品であることを示し、値が小さいほど前記製品には欠陥があることを示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定し、
前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定し、
前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品は良品であると判定し、
取得した第1出力値が前記第1閾値よりも小さい場合には、前記製品には欠陥があると判定する、
請求項1に記載の検査装置。
The first output value of the first discriminator and the second output value of the second discriminator each indicate that the product is a non-defective product as the value is large, and the product is defective as the value is small. Show that there is
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is composed of a range equal to or greater than a second threshold and a range equal to or smaller than a third threshold smaller than the second threshold.
The determination unit
When the second output value acquired from the second discriminator is larger than the second threshold, the product is a non-defective product, assuming that the second output value is included in the numerical range of the second determination criterion. And
If the second output value acquired from the second discriminator is smaller than the third threshold value, the product is defective as the second output value is included in the numerical range of the second determination criterion. Judge that there is,
When the second output value acquired from the second discriminator is smaller than the second threshold and larger than the third threshold, the second output value is included in the numerical range of the second determination criterion. As a result, by inputting the target image data to the first discriminator, obtaining the first output value from the first discriminator,
When the acquired first output value is larger than the first threshold, it is determined that the product is a non-defective product,
When the acquired first output value is smaller than the first threshold, it is determined that the product has a defect.
The inspection apparatus according to claim 1.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記製品に欠陥がある確率を示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品には欠陥があると判定し、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品には欠陥があると判定する、
請求項1に記載の検査装置。
The first output value of the first discriminator and the second output value of the second discriminator each indicate a probability that the product is defective;
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is configured by a range equal to or greater than a second threshold,
The determination unit
If the second output value acquired from the second discriminator is larger than the second threshold value, the product is defective as the second output value is included in the numerical range of the second determination criterion. Judge that there is,
When the second output value acquired from the second discriminator is smaller than the second threshold value, the second discriminator is not included in the numerical range of the second determination criterion, and the first discriminator To obtain the first output value from the first discriminator by inputting the target image data to
If the acquired first output value is greater than the first threshold, it is determined that the product is defective;
The inspection apparatus according to claim 1.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記製品が良品である確率を示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記製品は良品であると判定し、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記製品は良品であると判定する、
請求項1に記載の検査装置。
The first output value of the first discriminator and the second output value of the second discriminator each indicate a probability that the product is a good product,
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is configured by a range equal to or greater than a second threshold,
The determination unit
When the second output value acquired from the second discriminator is larger than the second threshold, the product is a non-defective product, assuming that the second output value is included in the numerical range of the second determination criterion. And
When the second output value acquired from the second discriminator is smaller than the second threshold value, the second discriminator is not included in the numerical range of the second determination criterion, and the first discriminator To obtain the first output value from the first discriminator by inputting the target image data to
When the acquired first output value is larger than the first threshold, it is determined that the product is a non-defective product.
The inspection apparatus according to claim 1.
状態を識別する対象となる被写体の写る対象画像データを取得するデータ取得部と、
前記被写体の状態を識別する学習を行うための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記被写体の状態を識別する学習を行うための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記被写体の状態を判定する判定部と、
前記被写体の状態を判定した結果を出力する出力部と、
を備え、
前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記被写体の状態を判定するための数値範囲が第1判定基準として設定されており、
前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記被写体の状態を判定するための数値範囲が第2判定基準として設定されており、
前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、
前記判定部は、
前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記被写体の状態を判定し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記被写体の状態を判定する、
画像識別装置。
A data acquisition unit for acquiring target image data of a subject to be identified;
A first discriminator constructed by machine learning using first learning data composed of image data for performing learning for identifying the subject state, and the first learning data and the subject state are identified. The state of the subject in the acquired target image data is determined using a second discriminator constructed by machine learning using second learning data configured with additional image data for performing learning. A determination unit;
An output unit for outputting a result of determining the state of the subject;
With
In the first output value obtained from the first discriminator by inputting the target image data to the first discriminator, a numerical range for determining the state of the subject is set as a first criterion. And
In the second output value obtained from the second discriminator by inputting the target image data to the second discriminator, a numerical range for determining the state of the subject is set as a second determination criterion. And
The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion,
The determination unit
Obtaining the second output value from the second discriminator by inputting the target image data to the second discriminator;
When the acquired second output value is included in the numerical range of the second determination criterion, the state of the subject is determined based on the second output value;
When the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is input to the first discriminator, whereby the first output from the first discriminator. A value is acquired, and the state of the subject is determined based on the acquired first output value.
Image identification device.
識別する対象となる特徴を含む対象データを取得するデータ取得部と、
前記特徴を識別する学習を行うためのデータで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記特徴を識別する学習を行うための追加のデータで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象データに表れる前記特徴を判定する判定部と、
前記特徴を判定した結果を出力する出力部と、
を備え、
前記第1識別器に前記対象データを入力することで前記第1識別器から得られる第1出力値には、前記特徴を判定するための数値範囲が第1判定基準として設定されており、
前記第2識別器に前記対象データを入力することで前記第2識別器から得られる第2出力値には、前記特徴を判定するための数値範囲が第2判定基準として設定されており、
前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、
前記判定部は、
前記第2識別器に前記対象データを入力することで、前記第2識別器から前記第2出力値を取得し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記特徴を判定し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記特徴を判定する、
識別装置。
A data acquisition unit for acquiring target data including features to be identified;
A first discriminator constructed by machine learning using first learning data composed of data for performing learning for identifying the features, and learning for identifying the first learning data and the features A determination unit for determining the feature appearing in the acquired target data using a second discriminator constructed by machine learning using second learning data configured by additional data;
An output unit for outputting a result of determining the characteristics;
With
In the first output value obtained from the first discriminator by inputting the target data to the first discriminator, a numerical range for determining the feature is set as a first determination criterion,
In the second output value obtained from the second discriminator by inputting the target data to the second discriminator, a numerical range for judging the feature is set as a second judgment criterion,
The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion,
The determination unit
By inputting the target data to the second discriminator, the second output value is obtained from the second discriminator,
When the acquired second output value is included in the numerical range of the second determination criterion, the feature is determined based on the second output value;
When the acquired second output value is not included in the numerical range of the second determination criterion, the target data is input to the first discriminator, so that the first output value is output from the first discriminator. And determining the feature based on the acquired first output value.
Identification device.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、値が大きいほど前記対象データには前記特徴として第1特徴が表れていることを示し、値が小さいほど前記対象データには前記特徴として第2特徴が表れていることを示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲、及び当該第2閾値よりも小さい第3閾値以下の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記第1特徴が表れていると判定し、
前記第2識別器から取得した前記第2出力値が前記第3閾値よりも小さい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記第2特徴が表れていると判定し、
前記第2識別器から取得した前記第2出力値が、前記第2閾値よりも小さく、第3閾値よりも大きい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記対象データには前記第1特徴が表れていると判定し、
取得した第1出力値が前記第1閾値よりも小さい場合には、前記対象データには前記第2特徴が表れていると判定する、
請求項7に記載の識別装置。
Each of the first output value of the first discriminator and the second output value of the second discriminator indicates that the larger the value, the first feature appears in the target data as the feature, The smaller the is, the second feature appears as the feature in the target data,
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is composed of a range equal to or greater than a second threshold and a range equal to or smaller than a third threshold smaller than the second threshold.
The determination unit
When the second output value acquired from the second discriminator is larger than the second threshold, the target data includes the second output value as being included in the numerical range of the second determination criterion. It is determined that the first feature appears,
When the second output value acquired from the second discriminator is smaller than the third threshold, the target data includes the second output value as being included in the numerical range of the second determination criterion. It is determined that the second feature appears,
When the second output value acquired from the second discriminator is smaller than the second threshold and larger than the third threshold, the second output value is included in the numerical range of the second determination criterion. As a result, by inputting the target data to the first discriminator, to obtain the first output value from the first discriminator,
When the acquired first output value is larger than the first threshold, it is determined that the first feature appears in the target data;
When the acquired first output value is smaller than the first threshold value, it is determined that the second feature appears in the target data.
The identification device according to claim 7.
前記第1識別器の前記第1出力値及び前記第2識別器の前記第2出力値はそれぞれ、前記対象データに所定の特徴が表れている確率を示し、
前記第1判定基準の数値範囲は、第1閾値以上の範囲及び第1閾値未満の範囲により構成されており、
前記第2判定基準の数値範囲は、第2閾値以上の範囲により構成されており、
前記判定部は、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも大きい場合には、前記第2出力値が前記第2判定基準の数値範囲に含まれるとして、前記対象データには前記所定の特徴が表れていると判定し、
前記第2識別器から取得した前記第2出力値が前記第2閾値よりも小さい場合には、前記第2出力値は前記第2判定基準の数値範囲に含まれないとして、前記第1識別器に前記対象データを入力することで、前記第1識別器から前記第1出力値を取得し、
取得した第1出力値が前記第1閾値よりも大きい場合には、前記対象データには前記所定の特徴が表れていると判定する、
請求項7に記載の識別装置。
The first output value of the first discriminator and the second output value of the second discriminator each indicate a probability that a predetermined feature appears in the target data,
The numerical range of the first criterion is composed of a range greater than or equal to a first threshold and a range less than the first threshold,
The numerical range of the second determination criterion is configured by a range equal to or greater than a second threshold,
The determination unit
When the second output value acquired from the second discriminator is larger than the second threshold, the target data includes the second output value as being included in the numerical range of the second determination criterion. It is determined that the predetermined characteristics are appearing,
When the second output value acquired from the second discriminator is smaller than the second threshold value, the second discriminator is not included in the numerical range of the second determination criterion, and the first discriminator To obtain the first output value from the first discriminator by inputting the target data to
When the acquired first output value is larger than the first threshold, it is determined that the predetermined feature appears in the target data.
The identification device according to claim 7.
製品の良否を検査する検査方法であって、
コンピュータが、
検査の対象となる前記製品の写る対象画像データを取得する第1ステップと、
前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する第2ステップと、
前記製品の良否を判定した結果を出力する第3ステップと、
を実行し、
前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、
前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、
前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、
前記第2ステップでは、前記コンピュータは、
前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定し、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得し、取得した前記第1出力値に基づいて、前記製品の良否を判定する、
検査方法。
An inspection method for inspecting the quality of a product,
Computer
A first step of obtaining target image data of the product to be inspected;
A first discriminator constructed by machine learning using first learning data composed of image data for learning the quality of the product, and an addition for learning the quality of the first learning data and the product A second step of determining pass / fail of the product in the acquired target image data using a second discriminator constructed by machine learning using second learning data composed of the image data;
A third step of outputting a result of determining the quality of the product;
Run
In the first output value obtained from the first discriminator by inputting the target image data to the first discriminator, a numerical range for judging the quality of the product is set as a first judgment criterion. And
In the second output value obtained from the second discriminator by inputting the target image data to the second discriminator, a numerical range for judging the quality of the product is set as a second judgment criterion. And
The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion,
In the second step, the computer
Obtaining the second output value from the second discriminator by inputting the target image data to the second discriminator;
When the acquired second output value is included in the numerical range of the second determination criterion, the quality of the product is determined based on the second output value,
When the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is input to the first discriminator, whereby the first output from the first discriminator. A value is acquired, and the quality of the product is determined based on the acquired first output value.
Inspection method.
製品の良否を検査するための検査プログラムであって、
コンピュータに、
検査の対象となる前記製品の写る対象画像データを取得する第1ステップと、
前記製品の良否を学習するための画像データで構成された第1学習データを利用した機械学習により構築された第1識別器、並びに前記第1学習データ及び前記製品の良否を学習するための追加の画像データで構成された第2学習データを利用した機械学習により構築された第2識別器を利用して、取得した前記対象画像データに写る前記製品の良否を判定する第2ステップと、
前記製品の良否を判定した結果を出力する第3ステップと、
を実行させ、
前記第1識別器に前記対象画像データを入力することで前記第1識別器から得られる第1出力値には、前記製品の良否を判定するための数値範囲が第1判定基準として設定されており、
前記第2識別器に前記対象画像データを入力することで前記第2識別器から得られる第2出力値には、前記製品の良否を判定するための数値範囲が第2判定基準として設定されており、
前記第2判定基準の数値範囲は、前記第1判定基準の数値範囲よりも狭く設定されており、
前記第2ステップでは、前記コンピュータに、
前記第2識別器に前記対象画像データを入力することで、前記第2識別器から前記第2出力値を取得させ、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれる場合には、前記第2出力値に基づいて、前記製品の良否を判定させ、
取得した前記第2出力値が前記第2判定基準の数値範囲に含まれない場合には、前記第1識別器に前記対象画像データを入力することで、前記第1識別器から前記第1出力値を取得させ、取得した前記第1出力値に基づいて、前記製品の良否を判定させる、
検査プログラム。
An inspection program for inspecting the quality of products,
On the computer,
A first step of obtaining target image data of the product to be inspected;
A first discriminator constructed by machine learning using first learning data composed of image data for learning the quality of the product, and an addition for learning the quality of the first learning data and the product A second step of determining pass / fail of the product in the acquired target image data using a second discriminator constructed by machine learning using second learning data composed of the image data;
A third step of outputting a result of determining the quality of the product;
And execute
In the first output value obtained from the first discriminator by inputting the target image data to the first discriminator, a numerical range for judging the quality of the product is set as a first judgment criterion. And
In the second output value obtained from the second discriminator by inputting the target image data to the second discriminator, a numerical range for judging the quality of the product is set as a second judgment criterion. And
The numerical range of the second determination criterion is set narrower than the numerical range of the first determination criterion,
In the second step, the computer
By inputting the target image data to the second discriminator, the second output value is acquired from the second discriminator,
When the acquired second output value is included in the numerical range of the second determination criterion, the quality of the product is determined based on the second output value,
When the acquired second output value is not included in the numerical range of the second determination criterion, the target image data is input to the first discriminator, whereby the first output from the first discriminator. A value is acquired, and the quality of the product is determined based on the acquired first output value.
Inspection program.
JP2018045862A 2018-03-13 2018-03-13 Inspection equipment, image identification equipment, identification equipment, inspection method, and inspection program Active JP6844563B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018045862A JP6844563B2 (en) 2018-03-13 2018-03-13 Inspection equipment, image identification equipment, identification equipment, inspection method, and inspection program
PCT/JP2019/010180 WO2019176990A1 (en) 2018-03-13 2019-03-13 Inspection device, image discriminating device, discriminating device, inspection method, and inspection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018045862A JP6844563B2 (en) 2018-03-13 2018-03-13 Inspection equipment, image identification equipment, identification equipment, inspection method, and inspection program

Publications (2)

Publication Number Publication Date
JP2019159820A true JP2019159820A (en) 2019-09-19
JP6844563B2 JP6844563B2 (en) 2021-03-17

Family

ID=67906786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018045862A Active JP6844563B2 (en) 2018-03-13 2018-03-13 Inspection equipment, image identification equipment, identification equipment, inspection method, and inspection program

Country Status (2)

Country Link
JP (1) JP6844563B2 (en)
WO (1) WO2019176990A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021096148A (en) * 2019-12-17 2021-06-24 株式会社 システムスクエア Inspection system, inspection device, learning device and program
WO2021166441A1 (en) * 2020-02-21 2021-08-26 株式会社システムスクエア Inspection device and program
JP2022153360A (en) * 2020-07-30 2022-10-12 楽天グループ株式会社 Information processing device, information processing method, and information processing program

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI721632B (en) * 2019-11-05 2021-03-11 新加坡商鴻運科股份有限公司 Device and method for setting product detection threshold and storage medium
US11493901B2 (en) * 2020-09-24 2022-11-08 International Business Machines Corporation Detection of defect in edge device manufacturing by artificial intelligence
WO2022215446A1 (en) * 2021-04-05 2022-10-13 パナソニックIpマネジメント株式会社 Image determination device, image determination method, and program
CN114228008B (en) * 2021-12-20 2023-08-11 深圳市友联精诚塑胶制品有限公司 Plastic molding method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011257805A (en) * 2010-06-04 2011-12-22 Sony Corp Information processing device, method and program
JP2015032119A (en) * 2013-08-01 2015-02-16 セコム株式会社 Object detection device
JP2017058833A (en) * 2015-09-15 2017-03-23 キヤノン株式会社 Object identification device, object identification method, and program
JP2018032071A (en) * 2016-08-22 2018-03-01 株式会社クレスコ Verification device, verification method and verification program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011257805A (en) * 2010-06-04 2011-12-22 Sony Corp Information processing device, method and program
JP2015032119A (en) * 2013-08-01 2015-02-16 セコム株式会社 Object detection device
JP2017058833A (en) * 2015-09-15 2017-03-23 キヤノン株式会社 Object identification device, object identification method, and program
JP2018032071A (en) * 2016-08-22 2018-03-01 株式会社クレスコ Verification device, verification method and verification program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021096148A (en) * 2019-12-17 2021-06-24 株式会社 システムスクエア Inspection system, inspection device, learning device and program
JP7323177B2 (en) 2019-12-17 2023-08-08 株式会社 システムスクエア Inspection system, inspection device, learning device and program
WO2021166441A1 (en) * 2020-02-21 2021-08-26 株式会社システムスクエア Inspection device and program
JP2022153360A (en) * 2020-07-30 2022-10-12 楽天グループ株式会社 Information processing device, information processing method, and information processing program
JP7361163B2 (en) 2020-07-30 2023-10-13 楽天グループ株式会社 Information processing device, information processing method and program

Also Published As

Publication number Publication date
WO2019176990A1 (en) 2019-09-19
JP6844563B2 (en) 2021-03-17

Similar Documents

Publication Publication Date Title
WO2019176990A1 (en) Inspection device, image discriminating device, discriminating device, inspection method, and inspection program
US11715190B2 (en) Inspection system, image discrimination system, discrimination system, discriminator generation system, and learning data generation device
JP7059883B2 (en) Learning device, image generator, learning method, and learning program
JP2016085704A (en) Information processing system, information processing device, information processing method, and program
CN113095438A (en) Wafer defect classification method and device, system, electronic equipment and storage medium thereof
WO2019176989A1 (en) Inspection system, discrimination system, and learning data generator
WO2019176988A1 (en) Inspection system, identification system, and device for evaluating identification apparatus
CN112633461A (en) Application assistance system and method, and computer-readable recording medium
JP7164028B2 (en) LEARNING SYSTEM, DATA GENERATION DEVICE, DATA GENERATION METHOD, AND DATA GENERATION PROGRAM
JP2020135051A (en) Fault inspection device, fault inspection method, fault inspection program, learning device and learned model
US20220405586A1 (en) Model generation apparatus, estimation apparatus, model generation method, and computer-readable storage medium storing a model generation program
JP7059889B2 (en) Learning device, image generator, learning method, and learning program
JP7070308B2 (en) Estimator generator, inspection device, estimator generator method, and estimator generator
CN113837173A (en) Target object detection method and device, computer equipment and storage medium
JP2021174194A (en) Learning data processing device, learning device, learning data processing method, and program
US20230274409A1 (en) Method for automatic quality inspection of an aeronautical part
US20230005120A1 (en) Computer and Visual Inspection Method
WO2022215446A1 (en) Image determination device, image determination method, and program
JP7332028B2 (en) Methods, apparatus, computer programs and media containing computer instructions for performing inspection of items
JP7459696B2 (en) Anomaly detection system, learning device, anomaly detection program, learning program, anomaly detection method, and learning method Learning method for computing device
JP2010191564A (en) Characteristic analyzing method and device, characteristic classifying method and device, program for making computer execute characteristic analyzing method and characteristic classifying method, and computer-readable recording medium for recording program
US20210004954A1 (en) Neural network-type image processing device, appearance inspection apparatus and appearance inspection method
JP2023096399A (en) Evaluation method
JP2023008416A (en) Abnormality detection system and abnormality detection method
CN113705594A (en) Method and device for identifying image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210104

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: 20210126

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210208

R150 Certificate of patent or registration of utility model

Ref document number: 6844563

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150