Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7619215B2 - Inspection system, method, and program - Google Patents
[go: Go Back, main page]

JP7619215B2 - Inspection system, method, and program - Google Patents

Inspection system, method, and program Download PDF

Info

Publication number
JP7619215B2
JP7619215B2 JP2021142967A JP2021142967A JP7619215B2 JP 7619215 B2 JP7619215 B2 JP 7619215B2 JP 2021142967 A JP2021142967 A JP 2021142967A JP 2021142967 A JP2021142967 A JP 2021142967A JP 7619215 B2 JP7619215 B2 JP 7619215B2
Authority
JP
Japan
Prior art keywords
inspection
machine learning
learning model
data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021142967A
Other languages
Japanese (ja)
Other versions
JP2023036131A (en
Inventor
憲治 尾嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2021142967A priority Critical patent/JP7619215B2/en
Publication of JP2023036131A publication Critical patent/JP2023036131A/en
Application granted granted Critical
Publication of JP7619215B2 publication Critical patent/JP7619215B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Description

本開示は、検査システム、方法、及びプログラムに関する。 This disclosure relates to an inspection system, method, and program.

近年、省人化の観点から、製造の分野における品質管理のために、機械学習モデルが利用されている。例えば、機械学習モデルが構築されたコンピュータが、製品があらかじめ決められた検査基準を満たしているか否かを予測する。また、特許文献1には、機械学習モデルが構築されたコンピュータが、入力された製造工程における設備データから、その製造工程を経た製品の品質が決められた条件を満たすか否かを予測することが記載されている。 In recent years, machine learning models have been used for quality control in the manufacturing field from the perspective of labor saving. For example, a computer on which a machine learning model has been built predicts whether a product meets predetermined inspection standards. Patent Document 1 also describes that a computer on which a machine learning model has been built predicts, from input equipment data for a manufacturing process, whether the quality of a product that has gone through that manufacturing process will meet predetermined conditions.

機械学習モデルの利用を継続していくと、機械学習モデルが劣化することが知られている。機械学習モデルが劣化すると、予測精度が低下する。このため、特許文献1には、機械学習モデルの予測の精度が変化した場合に、機械学習モデルが劣化したと判断し、新たな機械学習モデルを生成することが記載されている。 It is known that machine learning models deteriorate with continued use. When a machine learning model deteriorates, its prediction accuracy decreases. For this reason, Patent Document 1 describes a method for determining that a machine learning model has deteriorated when the prediction accuracy of the machine learning model changes, and generating a new machine learning model.

特開2019-87101号公報JP 2019-87101 A

しかしながら、機械学習モデルが実際には劣化していなくても、他の条件によっても、機械学習モデルの予測精度が低下することがある。このため、特許文献1に記載されているように、機械学習モデルの予測精度の変化を、機械学習モデルの劣化であると一律にみなす場合、機械学習モデルが劣化していなくても、機械学習モデルが劣化したと誤判定され得るという問題があった。 However, even if the machine learning model has not actually deteriorated, the prediction accuracy of the machine learning model may decline due to other conditions. For this reason, as described in Patent Document 1, if a change in the prediction accuracy of the machine learning model is uniformly regarded as deterioration of the machine learning model, there is a problem in that the machine learning model may be erroneously determined to have deteriorated even when it has not deteriorated.

本開示は、以下の形態として実現することが可能である。 This disclosure can be realized in the following forms:

(1)本開示の形態によれば、機械学習モデルを用いて検査を行う検査システムが提供される。機械学習モデルは、検査対象について、あらかじめ決められた事象を予測するための機械学習を行った学習済みの機械学習モデルである。この検査システムは、検査対象についてのデータを入力データとして機械学習モデルを用いて検査対象について予測し、予測した結果を示す予測結果データを出力することを、繰り返し実行する検査部と、検査部が出力した予測結果データを蓄積する蓄積部と、蓄積部に蓄積されている予測結果データが示す検査対象について予測した結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価し、評価結果を出力する評価部と、を備える。
このような態様によれば、機械学習モデルの劣化の有無の判断にあたって、機械学習モデルの予測精度だけではなく、入力データが想定されている範囲にあるか否かという他の条件を、考慮できる。よって、機械学習モデルが実際には劣化していなくても、他の条件によって機械学習モデルの予測精度が低下している場合に、機械学習モデルが劣化したと誤って判断してしまうことを防ぐことができる。
(2)上記形態の検査システムにおいて、機械学習モデルは、検査対象が、あらかじめ設定された複数の分類のいずれに分類されるかを予測するための機械学習を行ったものであってもよい。検査部は、検査対象が、複数の分類それぞれに分類される可能性を示す予測確率を予測する。検査部は、予測確率の値が最も高い分類に検査対象が分類されると判定する。検査部は、検査対象に対して判定された分類について、予測された予測確率を含む予測結果データを出力する。蓄積部は、検査部が出力した予測結果データを、検査対象について予測が行われたときを示す時間情報とともに蓄積する。評価部は、蓄積部に蓄積されている予測結果データが示す、検査対象に対して判定された分類について、予測された予測確率の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価してもよい。
このような態様によれば、検査対象に対して判定された分類について、予測された予測確率の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。
(3)上記形態の検査システムにおいて、機械学習モデルは、検査対象が、正常の範囲にあるか否かを予測するための機械学習を行ったものであってもよい。検査部は、検査対象が、正常の範囲にあるか否かを予測する。検査部は、設定された期間において検査した検査対象の総数に対する、正常の範囲にあると予測した検査対象の数の割合を表す値を含む予測結果データを出力する。蓄積部は、検査部が出力した予測結果データを、検査対象について予測が行われたときを示す時間情報とともに蓄積する。評価部は、蓄積部に蓄積されている予測結果データが示す、割合の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価してもよい。
このような態様によれば、検査した検査対象の総数に対して、正常の範囲にあると予測した検査対象の数の割合の、時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。
(4)上記形態の検査システムにおいて、入力データは、センサにより取得された検査対象の外観を表す画像データであってもよい。
このような態様によれば、検査システムは、画像データを使用して検査対象の外観検査を実施できる。さらに、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。
(5)入力データは、センサにより取得された検査対象の稼働状態を表す音声データであってもよい。
このような態様によれば、検査システムは検査対象の異音検査を実施できる。さらに、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。
本開示の形態は、検査システム以外の種々の形態で実現することも可能である。例えば、機械学習モデルを用いて検査を行うコンピュータが実行する方法、その方法を実現するコンピュータプログラムで実現することができる。
(1) According to an embodiment of the present disclosure, there is provided an inspection system that performs inspection using a machine learning model. The machine learning model is a trained machine learning model that has undergone machine learning to predict a predetermined event for an inspection target. The inspection system includes an inspection unit that repeatedly performs a prediction for the inspection target using the machine learning model with data for the inspection target as input data, and outputs prediction result data indicating the predicted result, a storage unit that stores the prediction result data output by the inspection unit, and an evaluation unit that evaluates whether the input data is within a range assumed at the time of learning the machine learning model based on a trend of time-series change in the predicted result for the inspection target indicated by the prediction result data stored in the storage unit, and outputs an evaluation result.
According to this aspect, when determining whether or not the machine learning model has deteriorated, not only the prediction accuracy of the machine learning model but also other conditions, such as whether or not the input data is within an expected range, can be taken into consideration. Therefore, even if the machine learning model has not actually deteriorated, it is possible to prevent a mistaken determination that the machine learning model has deteriorated when the prediction accuracy of the machine learning model has decreased due to other conditions.
(2) In the inspection system of the above embodiment, the machine learning model may be one that has undergone machine learning to predict which of a plurality of preset classifications the inspection object will be classified into. The inspection unit predicts a predicted probability indicating the possibility that the inspection object will be classified into each of a plurality of classifications. The inspection unit determines that the inspection object will be classified into the classification with the highest predicted probability value. The inspection unit outputs prediction result data including a predicted predicted probability for the classification determined for the inspection object. The storage unit stores the prediction result data output by the inspection unit together with time information indicating when the prediction was made for the inspection object. The evaluation unit may evaluate whether or not the input data is within a range assumed at the time of learning the machine learning model, based on a trend of a time series change in the predicted predicted probability for the classification determined for the inspection object, which is indicated by the prediction result data stored in the storage unit.
According to this aspect, it is possible to evaluate whether the input data is within the range assumed when training the machine learning model based on the trend of time-series changes in the predicted prediction probability for the classification determined for the test subject.
(3) In the inspection system of the above embodiment, the machine learning model may be one that has undergone machine learning to predict whether or not the inspection object is within a normal range. The inspection unit predicts whether or not the inspection object is within a normal range. The inspection unit outputs prediction result data including a value representing a ratio of the number of inspection objects predicted to be within the normal range to the total number of inspection objects inspected in a set period. The storage unit stores the prediction result data output by the inspection unit together with time information indicating when the prediction was made for the inspection object. The evaluation unit may evaluate whether or not the input data is within a range assumed at the time of learning the machine learning model, based on a trend of time-series change in the ratio indicated by the prediction result data stored in the storage unit.
According to this aspect, it is possible to evaluate whether the input data is within the range assumed when training the machine learning model from the trend of time-series changes in the ratio of the number of test subjects predicted to be within the normal range to the total number of test subjects tested.
(4) In the inspection system of the above aspect, the input data may be image data representing the appearance of the inspection target acquired by a sensor.
According to this aspect, the inspection system can perform visual inspection of the inspection target using the image data, and can evaluate whether the input data is within the range assumed at the time of learning the machine learning model based on the trend of time-series changes in the prediction result predicted by the machine learning model.
(5) The input data may be voice data representing the operating state of the inspection target obtained by a sensor.
According to this aspect, the inspection system can inspect the inspection target for abnormal sounds, and can evaluate whether the input data is within the range assumed at the time of learning the machine learning model, based on the tendency of time-series changes in the prediction results predicted by the machine learning model.
The present disclosure may be realized in various forms other than an inspection system, for example, a method executed by a computer that performs inspection using a machine learning model, or a computer program that realizes the method.

第1実施形態に係る検査システムの機能構成を示す図である。FIG. 1 is a diagram illustrating a functional configuration of an inspection system according to a first embodiment. 第1実施形態に係る検査装置のハードウェア構成を示す図である。1 is a diagram illustrating a hardware configuration of an inspection apparatus according to a first embodiment. 第1実施形態に係る評価装置のハードウェア構成を示す図である。FIG. 2 is a diagram illustrating a hardware configuration of an evaluation device according to the first embodiment. 第1実施形態に係る蓄積部に蓄積されるデータの一例を示す図である。4 is a diagram showing an example of data stored in a storage unit according to the first embodiment; FIG. 第1実施形態に係る分類処理のフローチャートである。1 is a flowchart of a classification process according to the first embodiment. 第1実施形態に係る評価処理のフローチャートである。4 is a flowchart of an evaluation process according to the first embodiment. 第2実施形態に係る検査システムの機能構成を示す図である。FIG. 11 is a diagram showing a functional configuration of an inspection system according to a second embodiment. 第2実施形態に係る蓄積部に蓄積されるデータの一例を示す図である。FIG. 11 is a diagram showing an example of data stored in a storage unit according to the second embodiment; 第2実施形態に係る検査処理のフローチャートである。10 is a flowchart of an inspection process according to a second embodiment. 第2実施形態に係る評価処理のフローチャートである。10 is a flowchart of an evaluation process according to a second embodiment.

A.第1実施形態
図1は、第1実施形態に係る検査システム1000の機能構成を示す図である。検査システム1000は、検査装置100と、評価装置200と、を含む。検査装置100と、評価装置200とは、工場内のサーバルームに設置されている異なるコンピュータである。
A. First Embodiment Fig. 1 is a diagram showing the functional configuration of an inspection system 1000 according to a first embodiment. The inspection system 1000 includes an inspection device 100 and an evaluation device 200. The inspection device 100 and the evaluation device 200 are different computers installed in a server room in a factory.

検査装置100には、ネットワークを介して、センサ50が接続されている。本実施形態において、センサ50がカメラである例を説明する。センサ50は、製造ラインの決められた位置において、検査装置100の検査対象である部品を撮影する。検査対象は、例えば、車体のパネル、エンジンのシリンダブロック、トランスミッションに組み込まれるギアといった、自動車部品である。本実施形態において、検査対象は、部品A1及び部品A2の2種類の部品である。よって、センサ50が撮影する対象は、部品A1,A2のいずれかである。センサ50は、部品A1,A2のいずれかを撮影した画像データを検査装置100に送信する。 A sensor 50 is connected to the inspection device 100 via a network. In this embodiment, an example will be described in which the sensor 50 is a camera. The sensor 50 photographs a part to be inspected by the inspection device 100 at a predetermined position on the production line. The inspection object is, for example, an automobile part such as a body panel, an engine cylinder block, or a gear incorporated in a transmission. In this embodiment, the inspection objects are two types of parts, part A1 and part A2. Therefore, the object photographed by the sensor 50 is either part A1 or A2. The sensor 50 transmits image data of either part A1 or A2 to the inspection device 100.

検査装置100は、センサ50から供給された画像データを入力データとし、機械学習モデルを用いて、検査対象の分類及び良否を判定する。本実施形態において、機械学習モデルは、検査対象について、あらかじめ決められた事象を予測するための機械学習を行った学習済みモデルである。評価装置200は、検査装置100が検査対象について判定した結果を評価する。 The inspection device 100 uses image data supplied from the sensor 50 as input data and uses a machine learning model to classify the inspection object and determine its pass/fail quality. In this embodiment, the machine learning model is a trained model that has undergone machine learning to predict predetermined events regarding the inspection object. The evaluation device 200 evaluates the results of the inspection device 100's determination of the inspection object.

図2は、検査装置100のハードウェア構成を示す図である。検査装置100は、プロセッサ11と、主記憶部12と、補助記憶部13と、インタフェース14と、通信部15と、を備える。主記憶部12と、補助記憶部13と、インタフェース14と、通信部15と、は内部バス19を介してプロセッサ11に接続されている。 Figure 2 is a diagram showing the hardware configuration of the inspection device 100. The inspection device 100 includes a processor 11, a main memory unit 12, an auxiliary memory unit 13, an interface 14, and a communication unit 15. The main memory unit 12, the auxiliary memory unit 13, the interface 14, and the communication unit 15 are connected to the processor 11 via an internal bus 19.

プロセッサ11は、例えば、CPU(Central Processing Unit)である。プロセッサ11が、補助記憶部13に記憶されたプログラムを主記憶部12に読み込んで実行することにより、検査装置100の各機能が実現される。 The processor 11 is, for example, a CPU (Central Processing Unit). The processor 11 loads a program stored in the auxiliary memory unit 13 into the main memory unit 12 and executes it, thereby realizing each function of the inspection device 100.

主記憶部12は、例えば、RAM(Random Access Memory)を含む主記憶装置である。主記憶部12には、補助記憶部13からプログラムがロードされる。また、主記憶部12は、プロセッサ11がプログラムを実行する際の作業領域として使用される。 The main memory unit 12 is, for example, a main storage device including a RAM (Random Access Memory). Programs are loaded into the main memory unit 12 from the auxiliary memory unit 13. The main memory unit 12 is also used as a working area when the processor 11 executes a program.

補助記憶部13は、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)、SSHD(Solid State Hybrid Drive)である。補助記憶部13は、プロセッサ11が実行するプログラム、プログラムの実行に使用される種々のデータを記憶する。例えば、補助記憶部13には、検査装置100が、検査対象を検査するためのプログラムが格納されている。補助記憶部13は、プロセッサ11の制御により、プロセッサ11が利用するデータをプロセッサ11に供給し、プロセッサ11から供給されたデータを記憶する。 The auxiliary storage unit 13 is, for example, a hard disk drive (HDD), a solid state drive (SSD), or a solid state hybrid drive (SSHD). The auxiliary storage unit 13 stores programs executed by the processor 11 and various data used to execute the programs. For example, the auxiliary storage unit 13 stores programs that the inspection device 100 uses to inspect an inspection target. Under the control of the processor 11, the auxiliary storage unit 13 supplies the processor 11 with data used by the processor 11 and stores the data supplied from the processor 11.

インタフェース14は、例えば、シリアルポート、USB(Universal Serial Bus)ポートなどのI/O(Input/Output)ポートである。インタフェース14には、キーボード、マウス、タッチパネルなどの入力装置が接続される。インタフェース14は、入力装置を介してユーザが入力した情報をプロセッサ11に出力する。また、インタフェース14には、表示装置61が接続されている。表示装置61は、例えば、液晶ディスプレイ、有機EL(Electro Luminescence)ディスプレイである。インタフェース14は、プロセッサ11から供給された画像を表示装置61に出力する。 The interface 14 is, for example, an I/O (Input/Output) port such as a serial port or a USB (Universal Serial Bus) port. Input devices such as a keyboard, a mouse, and a touch panel are connected to the interface 14. The interface 14 outputs information input by a user via the input device to the processor 11. A display device 61 is also connected to the interface 14. The display device 61 is, for example, a liquid crystal display or an organic EL (Electro Luminescence) display. The interface 14 outputs an image supplied from the processor 11 to the display device 61.

通信部15は、外部の装置と通信するためのネットワークインタフェース回路を含む。通信部15は、外部から信号を受信して、この信号により示されるデータをプロセッサ11へ出力する。また、通信部15は、プロセッサ11から出力されたデータを示す信号を外部の装置へ送信する。 The communication unit 15 includes a network interface circuit for communicating with an external device. The communication unit 15 receives a signal from the outside and outputs data indicated by this signal to the processor 11. The communication unit 15 also transmits a signal indicating the data output from the processor 11 to the external device.

図3は、評価装置200のハードウェア構成を示す図である。評価装置200は、プロセッサ21と、主記憶部22と、補助記憶部23と、インタフェース24と、通信部25と、を備える。主記憶部22と、補助記憶部23と、インタフェース24と、通信部25と、は内部バス29を介してプロセッサ21に接続されている。 Figure 3 is a diagram showing the hardware configuration of the evaluation device 200. The evaluation device 200 includes a processor 21, a main memory unit 22, an auxiliary memory unit 23, an interface 24, and a communication unit 25. The main memory unit 22, the auxiliary memory unit 23, the interface 24, and the communication unit 25 are connected to the processor 21 via an internal bus 29.

プロセッサ21は、検査装置100のプロセッサ11と同様の機能を備える。主記憶部22は、検査装置100の主記憶部12と同様の機能を備える。補助記憶部23は、検査装置100の補助記憶部13と同様の機能を備える。インタフェース24は、検査装置100のインタフェース14と同様の機能を備える。インタフェース24には、表示装置62が接続されている。表示装置62は、例えば、液晶ディスプレイ、有機ELディスプレイである。インタフェース24は、プロセッサ21から供給された画像を表示装置62に出力する。通信部25は、検査装置100の通信部15と同様の機能を備える。 The processor 21 has the same functions as the processor 11 of the inspection device 100. The main memory unit 22 has the same functions as the main memory unit 12 of the inspection device 100. The auxiliary memory unit 23 has the same functions as the auxiliary memory unit 13 of the inspection device 100. The interface 24 has the same functions as the interface 14 of the inspection device 100. A display device 62 is connected to the interface 24. The display device 62 is, for example, a liquid crystal display or an organic EL display. The interface 24 outputs an image supplied from the processor 21 to the display device 62. The communication unit 25 has the same functions as the communication unit 15 of the inspection device 100.

続いて、図1を参照しながら、検査装置100の機能を説明する。検査装置100は、データ取得部110と、分類部120と、検査部130と、を含む。 Next, the functions of the inspection device 100 will be described with reference to FIG. 1. The inspection device 100 includes a data acquisition unit 110, a classification unit 120, and an inspection unit 130.

データ取得部110は、センサ50から検査対象を撮影した画像データを受信すると、画像データを、決められた領域に保存する。データ取得部110は、分類部120に、画像データの保存先のパスを送信する。データ取得部110の機能は、プロセッサ11がデータ取得に係る処理のためのプログラムを実行することにより実現される。 When the data acquisition unit 110 receives image data of an object to be inspected from the sensor 50, it stores the image data in a predetermined area. The data acquisition unit 110 transmits the path of the storage destination of the image data to the classification unit 120. The function of the data acquisition unit 110 is realized by the processor 11 executing a program for processing related to data acquisition.

分類部120は、学習済みの機械学習モデルを利用して、査対象が2種類の部品のうちのいずれに該当するかを判定する。機械学習モデルは、任意の機械学習により生成されている。機械学習の手法の例としては、例えば、ランダムフォレスト、SVM(サポートベクターマシン)がある。分類部120が利用する機械学習モデルは、検査対象が部品A1及び部品A2のいずれに該当するかを予測するための機械学習により、生成されたものである。この機械学習は、教師データとして部品A1及び部品A2を撮影した多数の画像データを使用して、行われている。 The classification unit 120 uses a trained machine learning model to determine which of the two types of parts the inspection target corresponds to. The machine learning model is generated by any machine learning method. Examples of machine learning techniques include random forest and SVM (support vector machine). The machine learning model used by the classification unit 120 is generated by machine learning to predict whether the inspection target corresponds to part A1 or part A2. This machine learning is performed using a large amount of image data of parts A1 and A2 as training data.

教師データとして多数の画像データを使用するのは、次のような理由による。製造ラインにおいて、センサ50は、コンベヤにより搬送されてくる部品を撮影する。センサ50が設置されている位置は固定されている。一方で、コンベヤ上において部品が配置される位置は、常に同じであるとは限らない。例えば、同じ種類の部品が写っている複数の画像を比較した場合、それぞれの画像内における部品の位置及び傾きが、それぞれ異なることがある。よって、教師データとして使用する画像データは、様々なバリエーションを有した画像データであることが好ましい。例えば、部品の配置する位置を少しずつずらしながら撮影した画像、部品を少しずつ回転させながら撮影した画像が含まれてもよい。様々なバリエーションを有した画像データを、教師データとして使用することで、機械学習モデルは、検査対象の部品の種類を正しく判定できるようになる。 The reason why a large number of image data are used as training data is as follows. In the manufacturing line, the sensor 50 captures the parts transported by the conveyor. The position where the sensor 50 is installed is fixed. On the other hand, the position where the parts are placed on the conveyor is not always the same. For example, when comparing multiple images showing the same type of parts, the position and inclination of the parts in each image may differ. Therefore, it is preferable that the image data used as training data is image data with various variations. For example, it may include images taken while shifting the position where the parts are placed little by little, and images taken while rotating the parts little by little. By using image data with various variations as training data, the machine learning model can correctly determine the type of the part to be inspected.

本実施形態において、分類部120に使用されている機械学習モデルの予測精度は、決められた水準を満たしているとする。例えば、生成後、使用された期間が短い機械学習モデルであって、予測精度を評価する指標値があらかじめ決められた基準を満たしている機械学習モデルである。 In this embodiment, the prediction accuracy of the machine learning model used in the classification unit 120 is assumed to meet a predetermined standard. For example, it is a machine learning model that has been used for a short period of time since its generation, and whose index value for evaluating the prediction accuracy meets a predetermined standard.

分類部120は、検査対象の画像データを入力データとして、学習済みの機械学習モデルを利用して、検査対象が、部品A1及び部品A2それぞれに該当する可能性を示す確率を予測する。以下、この確率を予測確率と呼ぶことがある。 The classification unit 120 uses the image data of the inspection target as input data, and utilizes a trained machine learning model to predict the probability that the inspection target corresponds to each of parts A1 and A2. Hereinafter, this probability may be referred to as the predicted probability.

さらに、分類部120は、予測確率から、検査対象が、部品A1及び部品A2のいずれであるかを判定する。例えば、分類部120は、検査対象が部品A1に該当する確率が70パーセント、検査対象が部品A2に該当する確率が30パーセント、であると予測したとする。この場合、分類部120は、検査対象が部品A1であると判定する。また、例えば、分類部120は、検査対象が部品A1に該当する確率が15パーセント、検査対象が部品A2に該当する確率が85パーセント、であると予測したとする。この場合、分類部120は、検査対象が部品A2であると判定する。分類部120は、評価装置200に、予測及び判定の結果を通知する。 Furthermore, the classification unit 120 determines whether the inspection target is part A1 or part A2 from the predicted probability. For example, the classification unit 120 predicts that the probability that the inspection target corresponds to part A1 is 70 percent, and the probability that the inspection target corresponds to part A2 is 30 percent. In this case, the classification unit 120 determines that the inspection target is part A1. Also, for example, the classification unit 120 predicts that the probability that the inspection target corresponds to part A1 is 15 percent, and the probability that the inspection target corresponds to part A2 is 85 percent. In this case, the classification unit 120 determines that the inspection target is part A2. The classification unit 120 notifies the evaluation device 200 of the results of the prediction and determination.

また、分類部120は、検査部130に、検査対象がいずれの部品に該当するかという判定結果と、画像データの保存先のパスと、を出力する。分類部120の機能は、例えば、学習済みの機械学習モデルが実装されたアプリケーションソフトウェアを実行することによって、プロセッサ11によって実現される。分類部120を検査部とも呼ぶ。 The classification unit 120 also outputs to the inspection unit 130 the determination result as to which part the inspection target corresponds to, and the path to the storage destination of the image data. The function of the classification unit 120 is realized by the processor 11, for example, by executing application software in which a trained machine learning model is implemented. The classification unit 120 is also referred to as an inspection unit.

検査部130は、学習済みの機械学習モデルを利用して、検査対象に外観検査を実施する。外観検査とは、部品の表面に付着した異物、部品の変形等の外観上の欠陥をチェックする検査である。 The inspection unit 130 uses the trained machine learning model to perform a visual inspection of the inspection target. A visual inspection is an inspection to check for defects in appearance, such as foreign matter attached to the surface of the part or deformation of the part.

検査部130が利用する機械学習モデルは、検査対象が良品であるか不良品であるかを予測するための機械学習により、生成されたものである。この機械学習は、教師データとして良品又は不良品の判定値を対応付けた部品の画像データを使用して、行われている。検査部130の機能は、例えば、学習済みの機械学習モデルが実装されたアプリケーションソフトウェアを実行することによって、プロセッサ11によって実現される。なお、検査部130が利用する機械学習モデルと、分類部120が利用する機械学習モデルとは異なる。 The machine learning model used by the inspection unit 130 is generated by machine learning to predict whether the inspection target is a good or defective product. This machine learning is performed using image data of the parts to which a judgment value of good or defective is associated as training data. The function of the inspection unit 130 is realized by the processor 11, for example, by executing application software in which a learned machine learning model is implemented. Note that the machine learning model used by the inspection unit 130 is different from the machine learning model used by the classification unit 120.

検査部130は、画像データと、分類部120による検査対象がいずれの部品に該当するかという判定結果と、を入力データとして、画像データに写っている部品が、良品及び不良品それぞれに該当する確率を予測する。本実施形態では、検査部130は、良品である確率が、不良品である確率より高い場合、検査対象が良品であると判定する。検査部130は、不良品である確率が、良品である確率より高い場合、検査対象が不良品であると判定する。 The inspection unit 130 uses as input data the image data and the result of the determination by the classification unit 120 as to which part the inspection target corresponds to, and predicts the probability that the part shown in the image data corresponds to a good product and a defective product. In this embodiment, the inspection unit 130 determines that the inspection target is a good product if the probability that it is a good product is higher than the probability that it is a defective product. The inspection unit 130 determines that the inspection target is a defective product if the probability that it is a defective product is higher than the probability that it is a good product.

例えば、検査部130は、検査対象である部品A1が、良品である確率を80パーセント、不良品である確率を20パーセント、であると予測したとする。この場合、検査部130は、検査対象が良品であると判定する。検査部130は、検査対象が、良品及び不良品にそれぞれ該当する確率と、良品又は不良品であるという判定結果と、を表示する画像を表示装置61に出力する。 For example, suppose that the inspection unit 130 predicts that the part A1 being inspected has an 80 percent probability of being a good product and a 20 percent probability of being a defective product. In this case, the inspection unit 130 determines that the part being inspected is a good product. The inspection unit 130 outputs to the display device 61 an image that displays the probability that the part being inspected is a good product and a defective product, respectively, and the determination result that the part is a good product or a defective product.

本実施形態において、検査部130に使用されている機械学習モデルの予測精度は、決められた水準を満たしているものとする。本実施形態においては、評価装置200は、検査部130の判定結果を評価しない。このため、検査部130は、判定結果を評価装置200に出力しない。 In this embodiment, the prediction accuracy of the machine learning model used by the inspection unit 130 is assumed to meet a predetermined level. In this embodiment, the evaluation device 200 does not evaluate the judgment result of the inspection unit 130. Therefore, the inspection unit 130 does not output the judgment result to the evaluation device 200.

続いて、評価装置200の機能を説明する。評価装置200は、蓄積部210と、評価部220と、を備える。本実施形態においては、評価装置200が、検査装置100の分類部120による予測結果を評価する例を説明する。 Next, the functions of the evaluation device 200 will be described. The evaluation device 200 includes an accumulation unit 210 and an evaluation unit 220. In this embodiment, an example will be described in which the evaluation device 200 evaluates the prediction results obtained by the classification unit 120 of the inspection device 100.

図4は、蓄積部210に蓄積されるデータの一例を示す図である。蓄積部210は、分類部120から供給されたデータを蓄積する。分類部120から蓄積部210に供給されるデータは、日付及び時刻と、検査対象がいずれの部品に該当するかという判定結果と、検査対象がそれぞれの部品に該当すると予測された予測確率と、画像データの保存先のパスと、を含む。蓄積部210の機能は、データベース管理システムに代表されるような、要求に応じてデータを保存し、読み出すソフトウェアを、プロセッサ11が実行することにより、実現される。 Figure 4 is a diagram showing an example of data stored in the storage unit 210. The storage unit 210 stores data supplied from the classification unit 120. The data supplied from the classification unit 120 to the storage unit 210 includes the date and time, the determination result as to which part the inspection target corresponds to, the predicted probability that the inspection target corresponds to each part, and the path to the storage destination of the image data. The function of the storage unit 210 is realized by the processor 11 executing software that saves and reads data on request, such as a database management system.

図1に示す、評価部220は、分類部120に使用されている機械学習モデルに、指定された評価対象の期間に入力されたデータが、機械学習モデルの学習時に想定されている範囲にあるか否かを評価する。 The evaluation unit 220 shown in FIG. 1 evaluates whether the data input to the machine learning model used by the classification unit 120 during the specified evaluation period is within the range expected when the machine learning model was trained.

本実施形態においては、評価部220は、予測確率の時系列データに外れ値が含まれているか検出することにより、異常を検出する。例えば、評価部220は、外れ値検知についての既存の手法を使用して、予測確率の時系列データに含まれている外れ値を検出する。 In this embodiment, the evaluation unit 220 detects anomalies by detecting whether the time series data of the predicted probabilities contains outliers. For example, the evaluation unit 220 detects outliers contained in the time series data of the predicted probabilities using an existing method for outlier detection.

評価部220は、予測確率の時系列データに外れ値が含まれていることを検出した場合、機械学習モデルに入力されたデータが、機械学習モデルの学習時に想定されている範囲にないと判定する。前述の通り、本実施形態において、機械学習モデルの予測精度は、決められた水準を満たしている。即ち、機械学習モデルは劣化していない。また、機械学習モデルは、入力データが入力されると、予測についての結果データを出力する。よって、出力される結果データの時系列変化の傾向に異常が検出されたときは、入力データが、想定されている範囲にないデータであったと考えられる。評価部220の機能は、プロセッサ21が評価に係る処理のためのプログラムを実行することにより実現される。 When the evaluation unit 220 detects that the time series data of the prediction probability contains an outlier, it determines that the data input to the machine learning model is not within the range expected when the machine learning model was trained. As described above, in this embodiment, the prediction accuracy of the machine learning model meets a predetermined level. In other words, the machine learning model has not deteriorated. In addition, when input data is input, the machine learning model outputs result data regarding the prediction. Therefore, when an abnormality is detected in the trend of time series changes in the output result data, it is considered that the input data was data that was not within the expected range. The function of the evaluation unit 220 is realized by the processor 21 executing a program for processing related to the evaluation.

上記のような態様によれば、評価装置200は、検査対象が一方の分類であると判定されたときに、その分類について予測された予測確率の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 According to the above aspect, when the test subject is determined to be one of the categories, the evaluation device 200 can evaluate whether or not the input data is within the range assumed when the machine learning model was trained, based on the trend of time-series changes in the predicted probability predicted for that category.

図5は、検査装置100が画像データから部品を分類する分類処理のフローチャートである。検査装置100は、センサ50から画像データを受信するたび、下記の分類処理を実行する。 Figure 5 is a flowchart of the classification process in which the inspection device 100 classifies parts from image data. Each time the inspection device 100 receives image data from the sensor 50, it executes the following classification process.

ステップS101において、データ取得部110は、センサ50から画像データを受信する。データ取得部110は、受信した画像データに、ノイズ除去、二値化等の前処理を実施する。データ取得部110は、前処理を実施した画像データを、検査装置100の補助記憶部13内の決められた領域に保存する。データ取得部110は、分類部120に、前処理を施した画像データの保存先のパスを送信する。 In step S101, the data acquisition unit 110 receives image data from the sensor 50. The data acquisition unit 110 performs preprocessing such as noise removal and binarization on the received image data. The data acquisition unit 110 stores the preprocessed image data in a specified area in the auxiliary memory unit 13 of the inspection device 100. The data acquisition unit 110 transmits to the classification unit 120 the path to the storage destination of the preprocessed image data.

ステップS102において、まず、分類部120は、データ取得部110から通知されたパスに保存されている画像データを読み出す。分類部120は、画像データを入力データとして、画像に写っている検査対象である部品が、2種類の部品のそれぞれに該当する予測確率を予測する。ステップS103において、分類部120は、予測した予測確率から、検査対象がいずれの部品であるかを判定する。具体的には、分類部120は、検査対象が、予測確率の値が高い方の部品に該当すると判定する。 In step S102, the classification unit 120 first reads out the image data stored in the path notified by the data acquisition unit 110. The classification unit 120 uses the image data as input data and predicts the predicted probability that the part to be inspected shown in the image corresponds to each of the two types of parts. In step S103, the classification unit 120 determines which part the inspection target is based on the predicted probability. Specifically, the classification unit 120 determines that the inspection target corresponds to the part with the higher predicted probability value.

ステップS104において、分類部120は、評価装置200に、検査対象がそれぞれの部品に該当すると予測した予測確率と、検査対象がいずれの部品に該当するかという判定結果と、画像データの保存先のパスと、日付及び時刻の情報と、を含むデータを送信する。このデータを予測結果データとも呼ぶ。日付及び時刻は、分類部120が、予測を行ったときを示すものである。日付及び時刻を時間情報とも呼ぶ。以上が分類処理の一連の流れである。 In step S104, the classification unit 120 transmits data to the evaluation device 200, including the predicted probability that the inspection target corresponds to each part, the determination result as to which part the inspection target corresponds to, the path to the storage destination of the image data, and date and time information. This data is also called prediction result data. The date and time indicate when the classification unit 120 made the prediction. The date and time are also called time information. This completes the series of steps in the classification process.

図6は、評価装置200による評価処理のフローチャートである。評価装置200は、検査装置100から予測結果データを受信するたび、下記の評価処理を実行する。 Figure 6 is a flowchart of the evaluation process by the evaluation device 200. The evaluation device 200 executes the following evaluation process each time it receives prediction result data from the inspection device 100.

ステップS111において、蓄積部210は、分類部120から、検査対象がそれぞれの部品に該当すると予測された予測確率と、検査対象がいずれの部品に該当するかという判定結果と、画像データの保存先のパスと、日付及び時刻と、を含むデータを受信する。ステップS112において、蓄積部210は、分類部120から受信したデータを蓄積する。 In step S111, the storage unit 210 receives data from the classification unit 120, including the predicted probability that the inspection target corresponds to each part, the determination result as to which part the inspection target corresponds to, the path to the storage destination of the image data, and the date and time. In step S112, the storage unit 210 stores the data received from the classification unit 120.

ステップS113において、評価部220は、入力データを評価するタイミングになったときに(ステップS113;YES)、ステップS114の処理を実行する。一方、ステップS113において、入力データを評価するタイミングでないとき(ステップS113;YES)、蓄積部210が再びステップS211の処理を実行する。 In step S113, when it is time to evaluate the input data (step S113; YES), the evaluation unit 220 executes the process of step S114. On the other hand, in step S113, when it is not time to evaluate the input data (step S113; YES), the storage unit 210 executes the process of step S211 again.

ステップS114において、評価部220は、予測確率の時系列データの外れ値を検出する。まず、評価部220は、蓄積部210から、過去1週間に、部品A1に該当すると予測された検査対象について、部品A1に該当すると予測された予測確率の値を、日付及び時刻でソートした状態で読み出す。続いて、評価部220は、蓄積部210から、過去1週間に、部品A2に該当すると予測された検査対象について、部品A2に該当すると予測された予測確率の値を、日付及び時刻でソートした状態で読み出す。評価部220は、過去1週間に、部品A1に該当すると予測された検査対象についての予測確率の時系列データに外れ値が含まれているか否かを判定する。さらに、評価部220は、過去1週間に、部品A2に該当すると予測された検査対象についての予測確率の時系列データに外れ値が含まれているか否かを判定する。評価部220は、予測確率の時系列データに外れ値が含まれていることを検出した場合、機械学習モデルの入力データが、機械学習モデルの学習時に想定されている範囲にないと判定する。 In step S114, the evaluation unit 220 detects outliers in the time series data of the predicted probability. First, the evaluation unit 220 reads out from the storage unit 210 the predicted probability values of the inspection objects predicted to correspond to the part A1 in the past week, sorted by date and time. Next, the evaluation unit 220 reads out from the storage unit 210 the predicted probability values of the inspection objects predicted to correspond to the part A2 in the past week, sorted by date and time. The evaluation unit 220 determines whether or not the time series data of the predicted probability of the inspection objects predicted to correspond to the part A1 in the past week includes an outlier. Furthermore, the evaluation unit 220 determines whether or not the time series data of the predicted probability of the inspection objects predicted to correspond to the part A2 in the past week includes an outlier. If the evaluation unit 220 detects that the time series data of the predicted probability contains an outlier, it determines that the input data to the machine learning model is not within the range assumed when the machine learning model was trained.

ステップS115において、評価部220は、外れ値の検出結果に基づいて、入力データについての評価結果を提示する。例えば、評価部220は、想定されている範囲にない入力データがあった旨と、外れ値として検出された予測確率の値と、その予測確率の値が予測された日付及び時刻と、使用された入力データの保存先を示すパスと、を表示する画像を表示装置62に出力する。これにより、ユーザは、機械学習モデルの学習時に想定されている範囲にないデータが機械学習モデルに入力されたことを知ることができる。以上が評価処理の一連の流れである。 In step S115, the evaluation unit 220 presents the evaluation result for the input data based on the outlier detection result. For example, the evaluation unit 220 outputs to the display device 62 an image indicating that there was input data that was not within the expected range, the predicted probability value detected as the outlier, the date and time when the predicted probability value was predicted, and the path indicating the storage location of the input data used. This allows the user to know that data that was not within the expected range when the machine learning model was trained was input to the machine learning model. This completes the flow of the evaluation process.

以上、説明したように、第1実施形態においては、検査対象が、分類に該当すると予測された予測確率の時系列変化の傾向から、入力データが、機械学習モデルの学習時に想定されている範囲にあるか否かを評価する。 As described above, in the first embodiment, the test object is evaluated based on the time-series change tendency of the predicted probability that it is predicted to fall into a classification, to determine whether the input data is within the range assumed when training the machine learning model.

このように、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価する。これにより、機械学習モデルの劣化の有無の判断にあたって、機械学習モデルの予測精度だけではなく、入力データが想定されている範囲にあるか否かという他の条件を、考慮できる。よって、機械学習モデルが実際には劣化していなくても、他の条件によって機械学習モデルの予測精度が低下している場合に、機械学習モデルが劣化したと誤って判断してしまうことを防ぐことができる。 In this way, whether or not the input data is within the range expected when the machine learning model was trained is evaluated based on the trend of time-series changes in the prediction results predicted by the machine learning model. This makes it possible to consider not only the prediction accuracy of the machine learning model, but also other conditions, such as whether or not the input data is within the expected range, when determining whether or not the machine learning model has deteriorated. Therefore, even if the machine learning model has not actually deteriorated, it is possible to prevent erroneous judgment that the machine learning model has deteriorated when the prediction accuracy of the machine learning model has decreased due to other conditions.

B.第2実施形態
図7は、第2実施形態に係る検査システム1001の機能構成を示す図である。以下、第1実施形態と異なる構成を中心に説明する。検査システム1001は、検査装置100と、評価装置200と、を含む。
B. Second embodiment Fig. 7 is a diagram showing the functional configuration of an inspection system 1001 according to a second embodiment. The following mainly describes the configuration different from the first embodiment. The inspection system 1001 includes an inspection device 100 and an evaluation device 200.

検査装置100は、異音検査を実施する。検査装置100の検査対象は、例えば、自動車のエンジンである。本実施形態において、センサ50がマイクである。センサ50は、ネットワークを介して、検査装置100に接続されている。センサ50は、製造ラインの決められた位置において、出荷前の自動車のエンジンの音を収集する。本実施形態において、検査対象であるエンジンの稼働状態を表す音声データが、異音検査の入力データとなる。センサ50は、収集した音声データを検査装置100に送信する。 The inspection device 100 performs an abnormal sound inspection. The object of inspection by the inspection device 100 is, for example, an automobile engine. In this embodiment, the sensor 50 is a microphone. The sensor 50 is connected to the inspection device 100 via a network. The sensor 50 collects the sound of the automobile engine before shipment at a predetermined position on the production line. In this embodiment, audio data that indicates the operating state of the engine that is the object of inspection becomes input data for the abnormal sound inspection. The sensor 50 transmits the collected audio data to the inspection device 100.

検査装置100は、データ取得部110と、検査部130と、を含む。なお、第2実施形態において、検査装置100は、分類部120を含まない。 The inspection device 100 includes a data acquisition unit 110 and an inspection unit 130. In the second embodiment, the inspection device 100 does not include a classification unit 120.

データ取得部110は、センサ50から、エンジン音の音声データを受信すると、音声データを決められた領域に保存する。データ取得部110は、検査部130に、音声データの保存先のパスを送信する。 When the data acquisition unit 110 receives engine sound audio data from the sensor 50, it stores the audio data in a specified area. The data acquisition unit 110 transmits the path to the storage destination of the audio data to the inspection unit 130.

検査部130は、学習済みの機械学習モデルを利用して、検査対象が正常であるか否かを予測する。検査部130が利用する機械学習モデルは、検査対象が正常であるか否かを予測するための機械学習により、生成されたものである。この機械学習は、教師データとして、正常なエンジン音を収集した多数の音声データを使用する。製造現場においては、数多くの機械が動作しており、これらの機械から発せられる音も、検査対象である音声データに含まれている。よって、教師データとして使用する音声データは、様々なバリエーションを有した音声データであることが好ましい。例えば、周囲の騒音を遮断した環境で正常なエンジン音を収集した音声データ、周囲に騒音がある環境で正常なエンジン音を収集した音声データを含んでもよい。様々なバリエーションを有した音声データを、教師データとして使用することで、機械学習モデルは、検査対象の良否を正しく判定できるようになる。 The inspection unit 130 uses a trained machine learning model to predict whether the inspection target is normal or not. The machine learning model used by the inspection unit 130 is generated by machine learning to predict whether the inspection target is normal or not. This machine learning uses a large amount of voice data that collects normal engine sounds as training data. Many machines are in operation at the manufacturing site, and sounds emitted from these machines are also included in the voice data that is the inspection target. Therefore, it is preferable that the voice data used as training data is voice data with various variations. For example, it may include voice data that collects normal engine sounds in an environment where surrounding noise is blocked, and voice data that collects normal engine sounds in an environment with surrounding noise. By using voice data with various variations as training data, the machine learning model can correctly determine whether the inspection target is good or bad.

検査部130は、データ取得部110から供給された音声データを入力データとして、検査対象であるエンジン音が、正常なエンジン音からどれだけかけ離れているかを示す指標である異常度を予測する。本実施形態において、異常度とは、その数値が高いほど、検査対象が異常に近い状態にあることを示す指標であるとする。さらに、検査部130は、検査対象が、正常であるか否かを判定する。検査部130は、求めた異常度が、あらかじめ設定された閾値以下である場合に、検査対象が正常であると判定する。一方、検査部130は、求めた異常度が、あらかじめ設定された閾値を超えている場合に、検査対象が異常であると判定する。 The inspection unit 130 uses the audio data supplied from the data acquisition unit 110 as input data to predict the degree of abnormality, which is an index showing how far the engine sound being inspected is from a normal engine sound. In this embodiment, the degree of abnormality is an index in which the higher the numerical value, the closer the inspection object is to an abnormal state. Furthermore, the inspection unit 130 judges whether the inspection object is normal or not. If the calculated degree of abnormality is equal to or less than a preset threshold, the inspection unit 130 judges that the inspection object is normal. On the other hand, if the calculated degree of abnormality exceeds the preset threshold, the inspection unit 130 judges that the inspection object is abnormal.

さらに、検査部130は、設定された期間に検査を実施した件数と、その期間において正常であると判定した検査対象の件数とをカウントする。設定された期間は、例えば、1日間である。 Furthermore, the inspection unit 130 counts the number of inspections performed during the set period and the number of inspection subjects determined to be normal during that period. The set period is, for example, one day.

検査部130は、決められたタイミングで、設定された期間に実施した検査の件数に対する、検査対象が正常であると判定した検査対象の件数の割合を算出する。例えば、検査部130は、1日の検査がすべて終了した後に、その日に検査を実施した検査対象の合計数に対して、検査対象が正常であると判定した検査対象の数の割合を算出する。以下、この割合を、正常判定の割合ということがある。分類部120は、評価装置200に、算出した割合について通知する。検査部130の機能は、例えば、学習済みの機械学習モデルが実装されたアプリケーションソフトウェアを実行することによって、プロセッサ11によって実現される。 The inspection unit 130 calculates, at a set timing, the proportion of the number of test subjects that were determined to be normal relative to the number of tests performed during a set period. For example, after all tests for a day are completed, the inspection unit 130 calculates the proportion of the number of test subjects that were determined to be normal relative to the total number of test subjects that were tested on that day. Hereinafter, this proportion may be referred to as the proportion of normal determinations. The classification unit 120 notifies the evaluation device 200 of the calculated proportion. The function of the inspection unit 130 is realized by the processor 11, for example, by executing application software in which a trained machine learning model is implemented.

評価装置200は、蓄積部210と、評価部220と、を備える。 The evaluation device 200 includes an accumulation unit 210 and an evaluation unit 220.

図8は、蓄積部210に蓄積されるデータの一例を示す図である。蓄積部210は、検査部130から供給されたデータを蓄積する。検査部130から蓄積部210に供給されるデータは、日付と、正常であると判定された割合とを含む。 Figure 8 is a diagram showing an example of data stored in the storage unit 210. The storage unit 210 stores data supplied from the inspection unit 130. The data supplied from the inspection unit 130 to the storage unit 210 includes a date and the percentage of data determined to be normal.

図7に示す、評価部220は、検査部130に使用されている機械学習モデルに入力されたデータが、機械学習モデルの学習時に想定されている範囲にあるか否かを評価する。評価部220は、検査部130に使用されている機械学習モデルに、指定された評価対象の期間に、入力されたデータを評価する。評価対象の期間は、例えば、過去1か月である。 As shown in FIG. 7, the evaluation unit 220 evaluates whether the data input to the machine learning model used by the inspection unit 130 is within the range expected when the machine learning model was trained. The evaluation unit 220 evaluates the data input to the machine learning model used by the inspection unit 130 during a specified evaluation period. The evaluation period is, for example, the past month.

まず、評価部220は、蓄積部210から、評価対象の期間の、正常判定の割合の値を日付でソートした状態で読み出す。よって、蓄積部210から読み出されたデータは、正常判定の割合の時系列データである。 First, the evaluation unit 220 reads out from the storage unit 210 the values of the percentage of normal judgments for the period to be evaluated, sorted by date. Therefore, the data read out from the storage unit 210 is time-series data of the percentage of normal judgments.

次に、評価部220は、正常判定の割合の時系列データに基づいて、正常判定の割合の時系列変化の傾向の異常を検出する。 Next, the evaluation unit 220 detects anomalies in the trend of time-series changes in the proportion of normal judgments based on the time-series data of the proportion of normal judgments.

本実施形態においては、評価部220は、外れ値の有無により異常を検出する。例えば、評価部220は、外れ値検知についての既存の手法を使用して、過去1か月間に、正常判定された割合の時系列データに外れ値が含まれているか否かを判定する。 In this embodiment, the evaluation unit 220 detects anomalies based on the presence or absence of outliers. For example, the evaluation unit 220 uses an existing method for outlier detection to determine whether or not the time series data for the proportion of data determined to be normal over the past month contains outliers.

評価部220は、正常判定の割合の時系列データに外れ値が含まれていることを検出した場合、機械学習モデルの入力データが、機械学習モデルの学習時に想定されている範囲内にないと判定する。 When the evaluation unit 220 detects that the time series data of the proportion of normal judgments contains an outlier, it determines that the input data of the machine learning model is not within the range assumed when training the machine learning model.

上記のような態様によれば、評価装置200は、検査した検査対象の総数に対する、正常の範囲にあると予測した検査対象の数の割合の、時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 According to the above aspect, the evaluation device 200 can evaluate whether the input data is within the range assumed when training the machine learning model from the trend of time-series change in the ratio of the number of test subjects predicted to be within the normal range to the total number of test subjects tested.

図9は、検査装置100が画像データから検査対象を検査する検査処理のフローチャートである。検査装置100はセンサ50から音声データを受信するたび、下記の検査処理を実行する。 Figure 9 is a flowchart of the inspection process in which the inspection device 100 inspects the inspection object from image data. Each time the inspection device 100 receives audio data from the sensor 50, it executes the following inspection process.

ステップS201において、検査装置100のデータ取得部110は、センサ50から音声データを受信する。データ取得部110は、取得した音声データに前処理を実施する。データ取得部110は、前処理を実施した画像データを、検査装置100の補助記憶部13内の決められた領域に保存する。データ取得部110は、検査部130に、前処理を施した画像データの保存先のパスを送信する。 In step S201, the data acquisition unit 110 of the inspection device 100 receives voice data from the sensor 50. The data acquisition unit 110 performs preprocessing on the acquired voice data. The data acquisition unit 110 saves the preprocessed image data in a specified area in the auxiliary storage unit 13 of the inspection device 100. The data acquisition unit 110 transmits to the inspection unit 130 the path to the storage destination of the preprocessed image data.

ステップS202において、検査部130は、検査対象が正常であるか否かを判定する。具体的には、まず、検査部130は、データ取得部110から供給された音声データを入力データとして、検査対象についての異常度を予測する。続いて、検査部130は、異常度の値に基づいて、検査対象が正常であるか否かを判定する。検査部130は、検査対象が正常又は異常のいずれかに該当するかという判定結果と、異常度を示す値と、を表示する画像を表示装置61に出力する。さらに、検査部130は、設定された期間に検査を実施した件数と、その期間において正常であると判定した検査対象の件数とをカウントする。 In step S202, the inspection unit 130 determines whether the test object is normal. Specifically, first, the inspection unit 130 predicts the degree of abnormality for the test object using the voice data supplied from the data acquisition unit 110 as input data. Next, the inspection unit 130 determines whether the test object is normal or abnormal based on the value of the degree of abnormality. The inspection unit 130 outputs an image displaying the determination result of whether the test object is normal or abnormal and the value indicating the degree of abnormality to the display device 61. Furthermore, the inspection unit 130 counts the number of tests performed during a set period and the number of test objects determined to be normal during that period.

ステップS203において、検査部130は、検査対象が正常であると判定した割合を算出するタイミングとなったときに(ステップS203;YES)、ステップS204の処理を実行する。一方、ステップS203において、正常判定の割合を算出するタイミングでない場合(ステップS203;NO)、検査部130は、再びステップS201の処理を実行する。 In step S203, when it is time to calculate the proportion of test objects determined to be normal (step S203; YES), the inspection unit 130 executes the process of step S204. On the other hand, in step S203, when it is not time to calculate the proportion of test objects determined to be normal (step S203; NO), the inspection unit 130 executes the process of step S201 again.

ステップS204において、検査部130は、設定された期間に検査を実施した検査対象の合計数に対して、検査対象が正常であると判定した検査対象の数の割合を算出する。ステップS205において、検査部130は、評価装置200に、算出した正常であると判定した割合と、日付とを含むデータを、評価装置200に送信する。このデータを予測結果データとも呼ぶ。日付は、検査部130が、正常であるか否かの予測を行ったときを示すものである。日付を時間情報とも呼ぶ。 In step S204, the inspection unit 130 calculates the ratio of the number of test subjects that were determined to be normal to the total number of test subjects that were tested during the set period. In step S205, the inspection unit 130 transmits data to the evaluation device 200 that includes the calculated ratio of test subjects that were determined to be normal and a date. This data is also called prediction result data. The date indicates when the inspection unit 130 made the prediction of whether or not the test subjects were normal. The date is also called time information.

図10は、評価装置200による評価処理のフローチャートである。評価装置200は、評価装置200は、検査装置100から予測結果データを受信するたび、下記の評価処理を実行する。 Figure 10 is a flowchart of the evaluation process by the evaluation device 200. The evaluation device 200 executes the following evaluation process each time it receives prediction result data from the inspection device 100.

ステップS211において、蓄積部210は、検査部130から、検査対象が正常であると判定された割合と、日付とを含むデータを受信する。ステップS212において、蓄積部210は、受信したデータを蓄積する。 In step S211, the storage unit 210 receives data from the inspection unit 130, including the percentage of the inspection objects that were determined to be normal and the date. In step S212, the storage unit 210 stores the received data.

ステップS213において、評価部220は、入力データを評価するタイミングになったときに(ステップS213;YES)、ステップS214の処理を実行する。一方、ステップS213において、入力データを評価するタイミングでないとき(ステップS213;NO)、蓄積部210が再びステップS211の処理を実行する。 In step S213, when it is time to evaluate the input data (step S213; YES), the evaluation unit 220 executes the process of step S214. On the other hand, in step S213, when it is not time to evaluate the input data (step S213; NO), the storage unit 210 executes the process of step S211 again.

ステップS214において,評価部220は、正常判定の割合の時系列データの外れ値を検出する。まず、評価部220は、蓄積部210から、過去1か月間に、正常判定された割合の値を読み出す。評価部220は、読み出した時系列データに外れ値が含まれているか否かを判定する。 In step S214, the evaluation unit 220 detects outliers in the time series data of the proportion of normal judgments. First, the evaluation unit 220 reads out the value of the proportion of normal judgments in the past month from the accumulation unit 210. The evaluation unit 220 determines whether the read time series data contains any outliers.

ステップS215において、評価部220は、外れ値の検出結果に基づいて、入力データについての評価結果を提示する。評価部220は、正常判定の割合の時系列データに外れ値が含まれていることを検出した場合、想定されている範囲にない入力データがあった旨と、外れ値として検出された正常判定の割合の値と、検査日と、を表示する画像を表示装置62に出力する。これにより、ユーザは、機械学習モデルの学習時に想定されている範囲にないデータが機械学習モデルに入力されたことを知ることができる。以上が評価処理の一連の流れである。 In step S215, the evaluation unit 220 presents the evaluation result for the input data based on the outlier detection result. When the evaluation unit 220 detects that an outlier is included in the time series data of the normal judgment rate, it outputs to the display device 62 an image indicating that there was input data that was not within the expected range, the normal judgment rate value detected as the outlier, and the examination date. This allows the user to know that data that was not within the range expected when the machine learning model was trained was input to the machine learning model. This completes the flow of the evaluation process.

第2実施形態においては、音声データを使用した異音検査の際に、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 In the second embodiment, when inspecting for abnormal sounds using audio data, it is possible to evaluate whether the input data is within the range assumed when the machine learning model was trained, based on the tendency of time-series changes in the prediction results predicted by the machine learning model.

このように、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価する。これにより、機械学習モデルの劣化の有無の判断にあたって、機械学習モデルの予測精度だけではなく、入力データが想定されている範囲にあるか否かという他の条件を、考慮できる。よって、機械学習モデルが実際には劣化していなくても、他の条件によって機械学習モデルの予測精度が低下している場合に、機械学習モデルが劣化したと誤って判断してしまうことを防ぐことができる。 In this way, whether or not the input data is within the range expected when the machine learning model was trained is evaluated based on the trend of time-series changes in the prediction results predicted by the machine learning model. This makes it possible to consider not only the prediction accuracy of the machine learning model, but also other conditions, such as whether or not the input data is within the expected range, when determining whether or not the machine learning model has deteriorated. Therefore, even if the machine learning model has not actually deteriorated, it is possible to prevent erroneous judgment that the machine learning model has deteriorated when the prediction accuracy of the machine learning model has decreased due to other conditions.

C.他の実施形態
(C1)第1実施形態においては、評価装置200が、検査装置100の分類部120の分類処理の結果を評価する例を説明した。しかしながら、評価装置200は、分類部120の分類処理の結果を評価するだけでなく、検査部130の検査処理の結果を同様に評価してもよい。
C. Other Embodiments (C1) In the first embodiment, an example has been described in which the evaluation device 200 evaluates the result of the classification process by the classification unit 120 of the inspection device 100. However, the evaluation device 200 may not only evaluate the result of the classification process by the classification unit 120, but also evaluate the result of the inspection process by the inspection unit 130 in a similar manner.

上記のように、検査部130は、学習済みの機械学習モデルを利用して、検査対象の外観検査を実施する。例えば、検査部130が、検査対象が良品と判定される確率と、検査対象が不良品と判定される確率とを予測するとする。検査部130は、良品と判定される確率の値が閾値を超えた場合に、検査対象が良品であると判定する。検査部130は、不良品と判定される確率の値が、閾値を超えた場合に、検査対象が不良品であると判定する。検査部130は、良品と判定した検査対象について、良品と判定される確率の値を、評価装置200に送信する。さらに、検査部130は、不良品と判定した検査対象について不良品と判定される確率の値を、評価装置200に送信する。評価装置200は、良品と判定される確率の値の時系列データの変化の傾向と、不良品と判定される確率の値の時系列データの変化の傾向と、から、入力データが、機械学習モデルの学習時に想定される範囲にあるか否かを判定してもよい。 As described above, the inspection unit 130 performs an appearance inspection of the inspection object using the trained machine learning model. For example, the inspection unit 130 predicts the probability that the inspection object is judged to be a good product and the probability that the inspection object is judged to be a defective product. The inspection unit 130 judges the inspection object to be a good product when the value of the probability that the inspection object is judged to be a good product exceeds a threshold. The inspection unit 130 judges the inspection object to be a defective product when the value of the probability that the inspection object is judged to be a defective product exceeds a threshold. The inspection unit 130 transmits the value of the probability that the inspection object judged to be a good product to the evaluation device 200. Furthermore, the inspection unit 130 transmits the value of the probability that the inspection object judged to be a defective product to the evaluation device 200. The evaluation device 200 may determine whether the input data is within a range expected when learning the machine learning model from the trend of change in the time series data of the value of the probability that the inspection object is judged to be a good product and the trend of change in the time series data of the value of the probability that the inspection object is judged to be a defective product.

このような態様によれば、画像データを使用した外観検査の際に、機械学習モデルにより予測された予測結果の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 According to this aspect, when performing visual inspection using image data, it is possible to evaluate whether the input data is within the range assumed when the machine learning model was trained, based on the trend of time-series changes in the prediction results predicted by the machine learning model.

(C2)第1実施形態においては、分類部120が評価装置200に送信する予測結果データに、分類部120が予測を行ったときを示す日付及び時刻が含まれていた。第2実施形態においては、検査部130が評価装置200に送信する予測結果データに、検査部130が予測を行ったときを示す日付が含まれていた。このように、第1実施形態、第2実施形態においては、予測結果データを送信する側が、時間情報を取得していた。しかしながら、時間情報は、予測結果データを受信する側が時間情報を取得してもよい。 (C2) In the first embodiment, the prediction result data transmitted by the classification unit 120 to the evaluation device 200 included the date and time when the classification unit 120 made the prediction. In the second embodiment, the prediction result data transmitted by the inspection unit 130 to the evaluation device 200 included the date when the inspection unit 130 made the prediction. In this way, in the first and second embodiments, the party transmitting the prediction result data acquired the time information. However, the party receiving the prediction result data may also acquire the time information.

例えば、検査システム1000における分類部120は、評価装置200に送信する予測結果データに日付及び時刻を含めなくてもよい。この場合、分類部120は、検査対象がいずれの部品に該当するかという判定した後、直ちに評価装置200に予測結果データを送信する。蓄積部210は、分類部120から予測結果データを受信すると、データを受信した日付及び時刻を取得する。蓄積部210は分類部120から受信したデータを、日付及び時刻を示す情報とともに蓄積する。 For example, the classification unit 120 in the inspection system 1000 does not need to include the date and time in the prediction result data sent to the evaluation device 200. In this case, the classification unit 120 sends the prediction result data to the evaluation device 200 immediately after determining which part the inspection target corresponds to. When the storage unit 210 receives the prediction result data from the classification unit 120, it acquires the date and time the data was received. The storage unit 210 stores the data received from the classification unit 120 together with information indicating the date and time.

分類部120は、判定の後、直ちに評価装置200に予測結果データを送信しているので、蓄積部210に蓄積されている日付及び時刻は、検査対象について予測が行われたときを示す時間情報とみなすことができる。よって、評価部220により、蓄積部210から読み出されたデータは、予測確率の時系列データである。 Since the classification unit 120 transmits the prediction result data to the evaluation device 200 immediately after the judgment, the date and time stored in the storage unit 210 can be regarded as time information indicating when the prediction was made for the test object. Therefore, the data read from the storage unit 210 by the evaluation unit 220 is time series data of the prediction probability.

検査システム1001における検査部130は、評価装置200に送信する予測結果データに日付及び時刻を含めなくてもよい。この場合、検査部130は、設定された期間に実施した検査の件数に対する、検査対象が正常であると判定した検査対象の件数の割合を算出した後、直ちに評価装置200に予測結果データを送信する。蓄積部210は、検査部130から予測結果データを受信すると、データを受信した日付を取得し、受信したデータを、日付を示す情報とともに蓄積する。 The inspection unit 130 in the inspection system 1001 does not need to include the date and time in the prediction result data sent to the evaluation device 200. In this case, the inspection unit 130 calculates the ratio of the number of test objects determined to be normal to the number of tests performed during a set period, and then immediately sends the prediction result data to the evaluation device 200. When the storage unit 210 receives the prediction result data from the inspection unit 130, it obtains the date the data was received, and stores the received data together with information indicating the date.

検査部130は、割合を算出した後、直ちに評価装置200に予測結果データを送信しているので、蓄積部210に蓄積されている日付は、検査対象について予測が行われたときを示す時間情報とみなすことができる。よって、評価部220により、蓄積部210から読み出されたデータは、正常判定の割合の時系列データである。 After calculating the ratio, the inspection unit 130 immediately transmits the prediction result data to the evaluation device 200, so the date stored in the storage unit 210 can be regarded as time information indicating when the prediction was made for the inspection target. Therefore, the data read from the storage unit 210 by the evaluation unit 220 is time-series data of the ratio of normal judgments.

あるいは、予測結果データを送信する側及び予測結果データを受信する側のいずれも、時間情報を取得しなくてもよい。蓄積部210は、予測結果データを、予測結果データを受信した順序で蓄積する。評価部220により、蓄積部210から読み出されたデータは、正常判定の割合の時系列データであるといえる。 Alternatively, neither the party sending the prediction result data nor the party receiving the prediction result data need to acquire time information. The storage unit 210 stores the prediction result data in the order in which it is received. The data read from the storage unit 210 by the evaluation unit 220 can be said to be time-series data of the proportion of normal judgments.

(C3)第1実施形態において、分類部120は、検査対象が2種類の部品のうちのいずれかを判定する例を説明した。分類部120は、検査対象が3種類以上の部品のうちのいずれかを判定してもよい。この場合、分類部120が利用する機械学習モデルは、検査対象が、あらかじめ設定された複数の分類のいずれに分類されるかを予測するための記機械学習を行ったものである。 (C3) In the first embodiment, an example was described in which the classification unit 120 determines whether the inspection object is one of two types of parts. The classification unit 120 may also determine whether the inspection object is one of three or more types of parts. In this case, the machine learning model used by the classification unit 120 is a model that has undergone machine learning to predict which of multiple preset classifications the inspection object will be classified into.

(C4)第1実施形態、第2実施形態においては、検査システム1000、1001が、検査装置100及び評価装置200を備える構成を説明した。しかし、1つのコンピュータにより、検査装置100の機能と、評価装置200の機能とを、実現させてもよい。 (C4) In the first and second embodiments, the inspection systems 1000 and 1001 are described as including the inspection device 100 and the evaluation device 200. However, the functions of the inspection device 100 and the evaluation device 200 may be realized by a single computer.

(C5)第1実施形態においては、データ取得部110が、分類部120に、前処理を実施した画像データの保存先のパスを送信する例を説明した。あるいは、データ取得部110は、前処理を実施しなくてもよい。この場合、データ取得部110は、センサ50から受信した画像データを検査装置100の補助記憶部13内の決められた領域に保存してもよい。あるいは、データ取得部110は、前処理を実施した画像データ、又は前処理を実施していない画像データを、分類部120に送信してもよい。 (C5) In the first embodiment, an example has been described in which the data acquisition unit 110 transmits to the classification unit 120 the path to the storage destination of the image data on which preprocessing has been performed. Alternatively, the data acquisition unit 110 may not perform preprocessing. In this case, the data acquisition unit 110 may store the image data received from the sensor 50 in a specified area in the auxiliary memory unit 13 of the inspection device 100. Alternatively, the data acquisition unit 110 may transmit to the classification unit 120 the image data on which preprocessing has been performed or the image data on which preprocessing has not been performed.

第2実施形態においては、データ取得部110が、検査部130に、前処理を実施した音声データの保存先のパスを送信する例を説明した。あるいは、データ取得部110は、前処理を実施しなくてもよい。この場合、データ取得部110は、センサ50から受信した音声データを検査装置100の補助記憶部13内の決められた領域に保存してもよい。あるいは、データ取得部110は、前処理を実施した音声データ、又は前処理を実施していない音声データを、検査部130に送信してもよい。 In the second embodiment, an example has been described in which the data acquisition unit 110 transmits to the inspection unit 130 the path to the storage destination of the preprocessed voice data. Alternatively, the data acquisition unit 110 may not perform preprocessing. In this case, the data acquisition unit 110 may store the voice data received from the sensor 50 in a specified area in the auxiliary memory unit 13 of the inspection device 100. Alternatively, the data acquisition unit 110 may transmit to the inspection unit 130 voice data that has been preprocessed or voice data that has not been preprocessed.

上記の検査装置100及び評価装置200の機能を実現するプログラムを記録する記録媒体としては、磁気ディスク、光ディスク、光磁気ディスク、フラッシュメモリ、半導体メモリ、磁気テープを含むコンピュータ読取可能な記録媒体を使用することができる。 A computer-readable recording medium including a magnetic disk, optical disk, magneto-optical disk, flash memory, semiconductor memory, and magnetic tape can be used as a recording medium for recording a program that realizes the functions of the above-mentioned inspection device 100 and evaluation device 200.

また、検査装置100及び評価装置200の機能を実現する手段は、ソフトウェアに限られず、その一部又は全部を、専用のハードウェアによって実現してもよい。例えば、専用のハードウェアとして、FPGA(Field Programmable Gate Array)又はASIC(Application Specific Integrated Circuit)に代表される回路を使用してもよい。 In addition, the means for realizing the functions of the inspection device 100 and the evaluation device 200 are not limited to software, and some or all of them may be realized by dedicated hardware. For example, circuits such as FPGAs (Field Programmable Gate Arrays) or ASICs (Application Specific Integrated Circuits) may be used as the dedicated hardware.

本開示は、上述の実施形態に限られるものではなく、その趣旨を逸脱しない範囲において種々の構成で実現することができる。例えば、発明の概要の欄に記載した各形態中の技術的特徴に対応する実施形態中の技術的特徴は、上述の課題の一部又は全部を解決するために、あるいは、上述の効果の一部又は全部を達成するために、適宜、差し替えや、組み合わせを行うことが可能である。また、その技術的特徴が本明細書中に必須なものとして説明されていなければ、適宜、削除することが可能である。 The present disclosure is not limited to the above-described embodiments, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in each form described in the Summary of the Invention column can be replaced or combined as appropriate to solve some or all of the above-described problems or to achieve some or all of the above-described effects. Furthermore, if a technical feature is not described as essential in this specification, it can be deleted as appropriate.

11,21…プロセッサ、12,22…主記憶部、13,23…補助記憶部、14,24…インタフェース、15,25…通信部、19,29…内部バス、50…センサ、61,62…表示装置、100…検査装置、110…データ取得部、120…分類部、130…検査部、200…評価装置、210…蓄積部、220…評価部、1000,1001…検査システム、A1,A2…部品 11, 21...processor, 12, 22...main memory unit, 13, 23...auxiliary memory unit, 14, 24...interface, 15, 25...communication unit, 19, 29...internal bus, 50...sensor, 61, 62...display unit, 100...inspection device, 110...data acquisition unit, 120...classification unit, 130...inspection unit, 200...evaluation device, 210...storage unit, 220...evaluation unit, 1000, 1001...inspection system, A1, A2...components

Claims (7)

機械学習モデルを用いて検査を行う検査システムであって、
前記機械学習モデルは、検査対象について、あらかじめ決められた事象を予測するための機械学習を行った学習済みの機械学習モデルであり、
前記検査対象についてのデータを入力データとして前記機械学習モデルを用いて前記検査対象について予測し、予測した結果を示す予測結果データを出力することを、繰り返し実行する検査部と、
前記検査部が出力した前記予測結果データを蓄積する蓄積部と、
前記蓄積部に蓄積されている前記予測結果データが示す前記検査対象について予測した前記結果の時系列変化の傾向から、前記入力データが前記機械学習モデルの学習時に想定されている範囲にあるか否かを評価し、評価結果を出力する評価部と、
を備える検査システム。
An inspection system that performs inspection using a machine learning model,
The machine learning model is a trained machine learning model that has undergone machine learning to predict a predetermined event regarding an object to be inspected,
An inspection unit that repeatedly executes the steps of: predicting the inspection target using the machine learning model with data about the inspection target as input data; and outputting prediction result data indicating the predicted result;
a storage unit that stores the prediction result data output by the inspection unit;
an evaluation unit that evaluates whether or not the input data is within a range assumed at the time of learning of the machine learning model based on a trend of a time series change of the result predicted for the test object indicated by the prediction result data stored in the storage unit, and outputs an evaluation result;
An inspection system comprising:
請求項1に記載の検査システムであって、
前記機械学習モデルは、前記検査対象が、あらかじめ設定された複数の分類のいずれに分類されるかを予測するための前記機械学習を行ったものであり、
前記検査部は、
前記検査対象が前記複数の分類のそれぞれに分類される可能性を示す予測確率を予測し、
前記予測確率の値が最も高い前記分類に前記検査対象が分類されると判定し、
前記検査対象に対して判定された前記分類について、予測された前記予測確率を含む前記予測結果データを出力し、
前記蓄積部は、前記検査部が出力した前記予測結果データを、前記検査対象について予測が行われたときを示す時間情報とともに蓄積し、
前記評価部は、前記蓄積部に蓄積されている前記予測結果データが示す、前記検査対象に対して判定された前記分類について、予測された前記予測確率の時系列変化の傾向から、前記入力データが前記機械学習モデルの学習時に想定されている範囲にあるか否かを評価する、
検査システム。
2. The inspection system of claim 1,
The machine learning model is a result of performing the machine learning for predicting which of a plurality of preset classifications the test object will be classified into,
The inspection unit includes:
predicting a predicted probability indicating the likelihood that the test subject will be classified into each of the plurality of classes;
determining that the test object is classified into the classification having the highest predicted probability value;
outputting the prediction result data including the predicted probability for the classification determined for the test object;
The storage unit stores the prediction result data output by the inspection unit together with time information indicating when the prediction was made for the inspection target,
The evaluation unit evaluates whether or not the input data is within a range assumed at the time of learning of the machine learning model, based on a trend of a time-series change in the predicted prediction probability for the classification determined for the test subject, which is indicated by the prediction result data stored in the storage unit.
Inspection system.
請求項1に記載の検査システムであって、
前記機械学習モデルは、前記検査対象が、正常の範囲にあるか否かを予測するための前記機械学習を行ったものであり、
前記検査部は、
前記検査対象が、前記正常の範囲にあるか否かを予測し、
設定された期間において検査した前記検査対象の総数に対する、前記正常の範囲にあると予測した前記検査対象の数の割合を表す値を含む前記予測結果データを出力し、
前記蓄積部は、前記検査部が出力した前記予測結果データを、前記検査対象について予測が行われたときを示す時間情報とともに蓄積し、
前記評価部は、前記蓄積部に蓄積されている前記予測結果データが示す、前記割合の時系列変化の傾向から、前記入力データが前記機械学習モデルの学習時に想定されている範囲にあるか否かを評価する、
検査システム。
2. The inspection system of claim 1,
The machine learning model is a model obtained by performing machine learning to predict whether the test subject is within a normal range,
The inspection unit includes:
predicting whether the test subject is within the normal range;
outputting the prediction result data including a value representing a ratio of the number of the test subjects predicted to be within the normal range to the total number of the test subjects tested during a set period;
The storage unit stores the prediction result data output by the inspection unit together with time information indicating when the prediction was made for the inspection target,
The evaluation unit evaluates whether or not the input data is within a range assumed at the time of learning of the machine learning model, based on a trend of a time-series change in the ratio indicated by the prediction result data stored in the storage unit.
Inspection system.
請求項1から3のいずれか1項に記載された検査システムであって、
前記入力データは、センサにより取得された前記検査対象の外観を表す画像データである、
検査システム。
4. The inspection system according to claim 1, further comprising:
The input data is image data representing an appearance of the inspection object acquired by a sensor.
Inspection system.
請求項1から3のいずれか1項に記載された検査システムであって、
前記入力データは、センサにより取得された前記検査対象の稼働状態を表す音声データである、
検査システム。
4. The inspection system according to claim 1, further comprising:
The input data is voice data representing an operating state of the inspection target acquired by a sensor.
Inspection system.
機械学習モデルを用いて検査を行うコンピュータが実行する方法であって、
前記機械学習モデルは、検査対象について、あらかじめ決められた事象を予測するための機械学習を行った学習済みの機械学習モデルであり、
前記コンピュータが、
前記検査対象についてのデータを入力データとして前記機械学習モデルを用いて前記検査対象について予測し、予測した結果を示す予測結果データを出力するステップと、
前記予測結果データを蓄積するステップと、
蓄積されている前記予測結果データが示す前記検査対象について予測した前記結果の時系列変化の傾向から、前記入力データが前記機械学習モデルの学習時に想定されている範囲にあるか否かを評価し、評価結果を出力するステップと、
を実行する方法。
1. A computer-implemented method for performing testing using a machine learning model, comprising:
The machine learning model is a trained machine learning model that has undergone machine learning to predict a predetermined event regarding an object to be inspected,
The computer,
A step of predicting the test object using the machine learning model with data about the test object as input data, and outputting prediction result data indicating the predicted result;
accumulating the prediction result data;
A step of evaluating whether or not the input data is within a range assumed at the time of learning of the machine learning model based on a trend of time-series change of the result predicted for the test subject indicated by the accumulated prediction result data, and outputting an evaluation result;
How to do it.
コンピュータが実行するプログラムであって、
前記コンピュータは、機械学習モデルを用いて検査を行い、
前記機械学習モデルは、検査対象について、あらかじめ決められた事象を予測するための機械学習を行った学習済みの機械学習モデルであり、
前記コンピュータに、
前記検査対象についてのデータを入力データとして前記機械学習モデルを用いて前記検査対象について予測し、予測した結果を示す予測結果データを出力する機能と、
前記予測結果データを蓄積する機能と、
蓄積されている前記予測結果データが示す前記検査対象について予測した前記結果の時系列変化の傾向から、前記入力データが前記機械学習モデルの学習時に想定されている範囲にあるか否かを評価し、評価結果を出力する機能と、
を実現させるためのプログラム。
A program executed by a computer,
The computer performs the inspection using a machine learning model;
The machine learning model is a trained machine learning model that has undergone machine learning to predict a predetermined event regarding an object to be inspected,
The computer includes:
A function of predicting the test subject using the machine learning model with data about the test subject as input data, and outputting prediction result data indicating the predicted result;
A function of accumulating the prediction result data;
A function of evaluating whether the input data is within a range assumed at the time of learning of the machine learning model based on a trend of time-series changes in the results predicted for the test subject indicated by the accumulated prediction result data, and outputting an evaluation result;
A program to achieve this.
JP2021142967A 2021-09-02 2021-09-02 Inspection system, method, and program Active JP7619215B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021142967A JP7619215B2 (en) 2021-09-02 2021-09-02 Inspection system, method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021142967A JP7619215B2 (en) 2021-09-02 2021-09-02 Inspection system, method, and program

Publications (2)

Publication Number Publication Date
JP2023036131A JP2023036131A (en) 2023-03-14
JP7619215B2 true JP7619215B2 (en) 2025-01-22

Family

ID=85508577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021142967A Active JP7619215B2 (en) 2021-09-02 2021-09-02 Inspection system, method, and program

Country Status (1)

Country Link
JP (1) JP7619215B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102911748B1 (en) * 2025-04-17 2026-01-13 (주)세림스틸 AI and IoT based steel material surface defect inspection system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016151618A1 (en) 2015-03-23 2016-09-29 日本電気株式会社 Predictive model updating system, predictive model updating method, and predictive model updating program
CN111597080A (en) 2020-05-22 2020-08-28 广东省生态环境技术研究所 Method for repairing underground water level missing data based on ground statistics and neural network
US20210142160A1 (en) 2019-11-08 2021-05-13 Nvidia Corporation Processor and system to identify out-of-distribution input data in neural networks

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6896590B2 (en) * 2017-11-08 2021-06-30 三菱重工航空エンジン株式会社 Predictive model maintenance system, predictive model maintenance method and predictive model maintenance program
JP6995031B2 (en) * 2018-09-05 2022-01-14 日立造船株式会社 Information processing equipment, information processing methods, and information processing programs
JP6823025B2 (en) * 2018-09-12 2021-01-27 ファナック株式会社 Inspection equipment and machine learning method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016151618A1 (en) 2015-03-23 2016-09-29 日本電気株式会社 Predictive model updating system, predictive model updating method, and predictive model updating program
US20210142160A1 (en) 2019-11-08 2021-05-13 Nvidia Corporation Processor and system to identify out-of-distribution input data in neural networks
CN111597080A (en) 2020-05-22 2020-08-28 广东省生态环境技术研究所 Method for repairing underground water level missing data based on ground statistics and neural network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岡本弘野, 外2名,"深層ニューラルネットワークによるクラスと幾何変換の同時分類確率を利用した分布外検知",情報処理学会論文誌,日本,情報処理学会,2021年07月15日,第62巻, 第7号,p.1382-1392

Also Published As

Publication number Publication date
JP2023036131A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN111274126B (en) Test case screening method, device and medium
US10805151B2 (en) Method, apparatus, and storage medium for diagnosing failure based on a service monitoring indicator of a server by clustering servers with similar degrees of abnormal fluctuation
CN108073519B (en) Test case generation method and device
US10452525B2 (en) Utilizing semantic clusters to predict software defects
US9063856B2 (en) Method and system for detecting symptoms and determining an optimal remedy pattern for a faulty device
CN114443398B (en) Memory fault prediction model generation method, detection method, device and equipment
US20150269120A1 (en) Model parameter calculation device, model parameter calculating method and non-transitory computer readable medium
CN115774715B (en) Methods, devices, equipment, and media for determining the authenticity and anomalies of automotive diagnostic data.
CN118378196B (en) Industrial control host abnormal behavior identification method based on multi-mode data fusion
EP2613207A2 (en) Adaptive trend-change detection and function fitting system and method
CN112052714A (en) Data-driven machine learning for modeling aircraft sensors
CN111060512A (en) Intelligent defect identification system
US7676769B2 (en) Adaptive threshold wafer testing device and method thereof
US12332755B1 (en) Managing data processing system failures using citations generated based on hidden knowledge from predictive models
JP7619215B2 (en) Inspection system, method, and program
US20240393167A1 (en) Noise point fault diagnosis method and fault diagnosis system
US9397921B2 (en) Method and system for signal categorization for monitoring and detecting health changes in a database system
CN116881117A (en) Test case coverage rate evaluation method, device, computer equipment and storage medium
KR20230072164A (en) Product quality management system for zero defect rate
Dzakowic et al. Advanced Techniques for the verification and validation of prognostics & health management capabilities
CN117234955B (en) Software test management method and system based on Internet of things
US20250036971A1 (en) Managing data processing system failures using hidden knowledge from predictive models
JP7332028B2 (en) Methods, apparatus, computer programs and media containing computer instructions for performing inspection of items
CN118037704A (en) Wafer defect detection method and device
CN117457059A (en) A fault detection method, device and electronic equipment for SSD

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241122

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241223

R150 Certificate of patent or registration of utility model

Ref document number: 7619215

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150