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

Inspection system, method, and program Download PDF

Info

Publication number
JP2023036131A
JP2023036131A JP2021142967A JP2021142967A JP2023036131A JP 2023036131 A JP2023036131 A JP 2023036131A JP 2021142967 A JP2021142967 A JP 2021142967A JP 2021142967 A JP2021142967 A JP 2021142967A JP 2023036131 A JP2023036131 A JP 2023036131A
Authority
JP
Japan
Prior art keywords
inspection
machine learning
learning model
unit
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.)
Pending
Application number
JP2021142967A
Other languages
Japanese (ja)
Inventor
憲治 尾嶋
Kenji Oshima
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/JP2023036131A/en
Publication of JP2023036131A publication Critical patent/JP2023036131A/en
Pending legal-status Critical Current

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)

Abstract

To prevent a possible erroneous determination that a machine learning model has deteriorated even if the machine learning model has not deteriorated.SOLUTION: An inspection system performs an inspection using a machine learning model. The machine learning model is a learned machine learning model having performed machine learning for predicting a predetermined event for an inspection target. An inspection unit repeatedly executes prediction about the inspection target using the machine learning model upon receipt of data about the inspection target as input data, and outputting prediction result data indicating a predicted result. An accumulation unit accumulates the prediction result data output from the inspection unit. An evaluation unit evaluates whether or not the input data falls within a range assumed at the time of learning of the machine learning model from the tendency of time series variation of the result predicted for the inspection target indicated by the prediction result data accumulated in the accumulation unit, and outputs an evaluation result.SELECTED DRAWING: Figure 1

Description

本開示は、検査システム、方法、及びプログラムに関する。 The present disclosure relates to inspection systems, methods, and programs.

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

機械学習モデルの利用を継続していくと、機械学習モデルが劣化することが知られている。機械学習モデルが劣化すると、予測精度が低下する。このため、特許文献1には、機械学習モデルの予測の精度が変化した場合に、機械学習モデルが劣化したと判断し、新たな機械学習モデルを生成することが記載されている。 It is known that the machine learning model deteriorates as the use of the machine learning model continues. As the machine learning model deteriorates, the prediction accuracy decreases. Therefore, Patent Literature 1 describes that when the prediction accuracy of the machine learning model changes, it is determined that the machine learning model has deteriorated and a new machine learning model is generated.

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

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

本開示は、以下の形態として実現することが可能である。 The present disclosure can be implemented as the following forms.

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

第1実施形態に係る検査システムの機能構成を示す図である。It is a figure showing functional composition of an inspection system concerning a 1st embodiment. 第1実施形態に係る検査装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the inspection apparatus which concerns on 1st Embodiment. 第1実施形態に係る評価装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the evaluation apparatus which concerns on 1st Embodiment. 第1実施形態に係る蓄積部に蓄積されるデータの一例を示す図である。It is a figure which shows an example of the data accumulate|stored in the accumulation|storage part which concerns on 1st Embodiment. 第1実施形態に係る分類処理のフローチャートである。4 is a flowchart of classification processing according to the first embodiment; 第1実施形態に係る評価処理のフローチャートである。4 is a flowchart of evaluation processing according to the first embodiment; 第2実施形態に係る検査システムの機能構成を示す図である。It is a figure showing functional composition of an inspection system concerning a 2nd embodiment. 第2実施形態に係る蓄積部に蓄積されるデータの一例を示す図である。FIG. 11 is a diagram showing an example of data accumulated in an accumulation unit according to the second embodiment; FIG. 第2実施形態に係る検査処理のフローチャートである。9 is a flowchart of inspection processing according to the second embodiment; 第2実施形態に係る評価処理のフローチャートである。9 is a flowchart of evaluation processing according to the 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 the 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 the server room in the factory.

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

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

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

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

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

補助記憶部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, an HDD (Hard Disk Drive), an SSD (Solid State Drive), or an SSHD (Solid State Hybrid Drive). The auxiliary storage unit 13 stores programs executed by the processor 11 and various data used for executing the programs. For example, the auxiliary storage unit 13 stores a program for the inspection apparatus 100 to inspect an object to be inspected. Auxiliary storage unit 13 supplies data used by processor 11 to processor 11 under the control of processor 11 and stores the data supplied from 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, mouse, and touch panel are connected to the interface 14 . The interface 14 outputs information input by the user through 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 the image supplied from the processor 11 to the display device 61 .

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

図3は、評価装置200のハードウェア構成を示す図である。評価装置200は、プロセッサ21と、主記憶部22と、補助記憶部23と、インタフェース24と、通信部25と、を備える。主記憶部22と、補助記憶部23と、インタフェース24と、通信部25と、は内部バス29を介してプロセッサ21に接続されている。 FIG. 3 is a diagram showing the hardware configuration of the evaluation device 200. As shown in FIG. The evaluation device 200 includes a processor 21 , a main storage section 22 , an auxiliary storage section 23 , an interface 24 and a communication section 25 . Main storage unit 22 , auxiliary storage unit 23 , interface 24 , and communication unit 25 are connected to processor 21 via 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 functions similar to those of the processor 11 of the inspection apparatus 100 . The main storage unit 22 has the same functions as the main storage unit 12 of the inspection apparatus 100 . The auxiliary storage unit 23 has the same functions as the auxiliary storage unit 13 of the inspection device 100 . The interface 24 has functions similar to those of the interface 14 of the inspection apparatus 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 the image supplied from the processor 21 to the display device 62 . The communication unit 25 has functions similar to those of the communication unit 15 of the inspection apparatus 100 .

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

データ取得部110は、センサ50から検査対象を撮影した画像データを受信すると、画像データを、決められた領域に保存する。データ取得部110は、分類部120に、画像データの保存先のパスを送信する。データ取得部110の機能は、プロセッサ11がデータ取得に係る処理のためのプログラムを実行することにより実現される。 When the data acquisition unit 110 receives the image data of the object to be inspected from the sensor 50, the data acquisition unit 110 stores the image data in a predetermined area. The data acquisition unit 110 transmits the storage destination path of the image data to the classification unit 120 . The function of the data acquisition unit 110 is implemented 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 learned machine learning model to determine which of the two types of parts the inspection target corresponds to. A machine learning model is generated by arbitrary machine learning. Examples of machine learning methods include random forests and SVMs (support vector machines). The machine learning model used by the classification unit 120 is generated by machine learning for predicting which of the parts A1 and A2 the inspection target corresponds to. This machine learning is performed using a large number of image data obtained by photographing parts A1 and A2 as teacher data.

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

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

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

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

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

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

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

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

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

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

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

図4は、蓄積部210に蓄積されるデータの一例を示す図である。蓄積部210は、分類部120から供給されたデータを蓄積する。分類部120から蓄積部210に供給されるデータは、日付及び時刻と、検査対象がいずれの部品に該当するかという判定結果と、検査対象がそれぞれの部品に該当すると予測された予測確率と、画像データの保存先のパスと、を含む。蓄積部210の機能は、データベース管理システムに代表されるような、要求に応じてデータを保存し、読み出すソフトウェアを、プロセッサ11が実行することにより、実現される。 FIG. 4 is a diagram showing an example of data accumulated in the accumulation unit 210. As shown in FIG. The accumulation unit 210 accumulates 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 a path to save the image data. The function of the storage unit 210 is realized by the processor 11 executing software for storing and reading data upon request, as typified by a database management system.

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

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

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

上記のような態様によれば、評価装置200は、検査対象が一方の分類であると判定されたときに、その分類について予測された予測確率の時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 According to the above aspect, the evaluation device 200, when it is determined that the inspection target belongs to one of the classifications, uses the input data as the machine learning It is possible to evaluate whether or not it is within the range assumed during model learning.

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

ステップS101において、データ取得部110は、センサ50から画像データを受信する。データ取得部110は、受信した画像データに、ノイズ除去、二値化等の前処理を実施する。データ取得部110は、前処理を実施した画像データを、検査装置100の補助記憶部13内の決められた領域に保存する。データ取得部110は、分類部120に、前処理を施した画像データの保存先のパスを送信する。 In step S<b>101 , 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 predetermined area within the auxiliary storage unit 13 of the inspection apparatus 100 . The data acquisition unit 110 transmits the storage destination path of the preprocessed image data to the classification unit 120 .

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

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

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

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

ステップS113において、評価部220は、入力データを評価するタイミングになったときに(ステップS113;YES)、ステップS114の処理を実行する。一方、ステップS113において、入力データを評価するタイミングでないとき(ステップS113;YES)、蓄積部210が再びステップS211の処理を実行する。 In step S113, the evaluation unit 220 executes the process of step S114 when it is time to evaluate the input data (step S113; YES). On the other hand, in step S113, when it is not the timing to evaluate the input data (step S113; YES), the accumulation 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 S<b>114 , the evaluation unit 220 detects an outlier in the prediction probability time series data. First, the evaluation unit 220 sorts the predicted probability values of the inspection objects predicted to correspond to the part A1 from the storage unit 210 in the past week by date and time. to read out. Subsequently, the evaluation unit 220 sorts the predicted probability values of the inspection objects predicted to correspond to the part A2 from the storage unit 210 in the past week by date and time. Read in state. The evaluation unit 220 determines whether or not an outlier is included in the time-series data of the prediction probability for the inspection object predicted to correspond to the part A1 in the past one week. Furthermore, the evaluation unit 220 determines whether or not an outlier is included in the time-series data of the prediction probability for the inspection object predicted to correspond to the part A2 in the past one week. When the evaluation unit 220 detects that an outlier is included in the prediction probability time-series data, the evaluation unit 220 determines that the input data of the machine learning model is not within the range assumed during learning of the machine learning model.

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

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

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

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 description focuses on the configuration different from that of 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 carries out an abnormal noise inspection. An object to be inspected by the inspection apparatus 100 is, for example, an automobile engine. In this embodiment, sensor 50 is a microphone. Sensor 50 is connected to inspection apparatus 100 via a network. The sensor 50 collects the sound of the vehicle's engine prior to shipment at a determined location on the manufacturing line. In this embodiment, voice data representing the operating state of the engine to be inspected serves as input data for the abnormal noise inspection. The sensor 50 transmits collected audio data to the inspection device 100 .

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

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

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

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

さらに、検査部130は、設定された期間に検査を実施した件数と、その期間において正常であると判定した検査対象の件数とをカウントする。設定された期間は、例えば、1日間である。 Furthermore, the inspection unit 130 counts the number of inspections performed during the set period and the number of inspection targets 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 predetermined timing, the ratio of the number of inspection targets determined to be normal to the number of inspections performed during a set period. For example, after all the inspections for a day are completed, the inspection unit 130 calculates the ratio of the number of inspection objects determined to be normal to the total number of inspection objects inspected on that day. . Hereinafter, this ratio may be referred to as the normal determination ratio. The classification unit 120 notifies the evaluation device 200 of the calculated ratio. The function of the inspection unit 130 is realized by the processor 11 by executing application software in which a learned machine learning model is implemented, for example.

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

図8は、蓄積部210に蓄積されるデータの一例を示す図である。蓄積部210は、検査部130から供給されたデータを蓄積する。検査部130から蓄積部210に供給されるデータは、日付と、正常であると判定された割合とを含む。 FIG. 8 is a diagram showing an example of data accumulated in the accumulation unit 210. As shown in FIG. 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 the date and the percentage determined to be normal.

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

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

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

本実施形態においては、評価部220は、外れ値の有無により異常を検出する。例えば、評価部220は、外れ値検知についての既存の手法を使用して、過去1か月間に、正常判定された割合の時系列データに外れ値が含まれているか否かを判定する。 In this embodiment, the evaluation unit 220 detects an abnormality 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 of the percentage of normal determinations includes an outlier in the past month.

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

上記のような態様によれば、評価装置200は、検査した検査対象の総数に対する、正常の範囲にあると予測した検査対象の数の割合の、時系列変化の傾向から、入力データが機械学習モデルの学習時に想定されている範囲にあるか否かを評価することができる。 According to the above aspect, the evaluation device 200 uses the input data based on machine learning 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. It is possible to evaluate whether or not it is within the range assumed during model learning.

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

ステップS201において、検査装置100のデータ取得部110は、センサ50から音声データを受信する。データ取得部110は、取得した音声データに前処理を実施する。データ取得部110は、前処理を実施した画像データを、検査装置100の補助記憶部13内の決められた領域に保存する。データ取得部110は、検査部130に、前処理を施した画像データの保存先のパスを送信する。 In step S<b>201 , 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 audio data. The data acquisition unit 110 stores the preprocessed image data in a predetermined area within the auxiliary storage unit 13 of the inspection apparatus 100 . The data acquisition unit 110 transmits the storage destination path of the preprocessed image data to the inspection unit 130 .

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

ステップS203において、検査部130は、検査対象が正常であると判定した割合を算出するタイミングとなったときに(ステップS203;YES)、ステップS204の処理を実行する。一方、ステップS203において、正常判定の割合を算出するタイミングでない場合(ステップS203;NO)、検査部130は、再びステップS201の処理を実行する。 In step S203, the inspection unit 130 executes the process of step S204 when it is time to calculate the percentage of the inspection targets determined to be normal (step S203; YES). On the other hand, in step S203, if it is not the timing to calculate the ratio of normal determination (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 inspection objects determined to be normal to the total number of inspection objects inspected during the set period. In step S<b>205 , the inspection unit 130 transmits to the evaluation device 200 data including the calculated ratio of determinations as normal and the date. This data is also called prediction result data. The date indicates when the inspection unit 130 made a prediction as to whether or not it is normal. Date is also called time information.

図10は、評価装置200による評価処理のフローチャートである。評価装置200は、評価装置200は、検査装置100から予測結果データを受信するたび、下記の評価処理を実行する。 FIG. 10 is a flowchart of evaluation processing by the evaluation device 200. As shown in FIG. 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 S<b>211 , the accumulation unit 210 receives from the inspection unit 130 data including the percentage of the inspection targets 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, the evaluation unit 220 executes the process of step S214 when it is time to evaluate the input data (step S213; YES). On the other hand, in step S213, when it is not the timing to evaluate the input data (step S213; NO), the accumulation unit 210 executes the process of step S211 again.

ステップS214において,評価部220は、正常判定の割合の時系列データの外れ値を検出する。まず、評価部220は、蓄積部210から、過去1か月間に、正常判定された割合の値を読み出す。評価部220は、読み出した時系列データに外れ値が含まれているか否かを判定する。 In step S<b>214 , the evaluation unit 220 detects an outlier in the time-series data of the percentage of normal determinations. First, the evaluation unit 220 reads from the accumulation unit 210 the value of the ratio of normal determinations during the past month. The evaluation unit 220 determines whether or not the read time-series data includes an outlier.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

第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 of the storage destination of preprocessed audio data. Alternatively, the data acquisition unit 110 may not perform preprocessing. In this case, the data acquisition unit 110 may store the audio data received from the sensor 50 in a predetermined area within the auxiliary storage unit 13 of the inspection device 100 . Alternatively, the data acquisition unit 110 may transmit preprocessed audio data or non-preprocessed audio data to the inspection unit 130 .

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

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

本開示は、上述の実施形態に限られるものではなく、その趣旨を逸脱しない範囲において種々の構成で実現することができる。例えば、発明の概要の欄に記載した各形態中の技術的特徴に対応する実施形態中の技術的特徴は、上述の課題の一部又は全部を解決するために、あるいは、上述の効果の一部又は全部を達成するために、適宜、差し替えや、組み合わせを行うことが可能である。また、その技術的特徴が本明細書中に必須なものとして説明されていなければ、適宜、削除することが可能である。 The present disclosure is not limited to the embodiments described above, and can be implemented in various configurations without departing from the scope 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 are used to solve some or all of the above problems, or to Substitutions and combinations may be made as appropriate to achieve some or all. Moreover, if the 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…部品 DESCRIPTION OF SYMBOLS 11, 21... Processor 12, 22... Main memory part 13, 23... Auxiliary memory part 14, 24... Interface 15, 25... Communication part 19, 29... Internal bus 50... Sensor 61, 62... Display device 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 parts

Claims (7)

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

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
JP2023036131A true JP2023036131A (en) 2023-03-14

Family

ID=85508577

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2023036131A (en)

Similar Documents

Publication Publication Date Title
US7062081B2 (en) Method and system for analyzing circuit pattern defects
WO2021143175A1 (en) Test case screening method and device, and medium
JP4645422B2 (en) Determination device, determination device control program, and recording medium recording determination device control program
US20130279796A1 (en) Classifier readiness and maintenance in automatic defect classification
JP5718781B2 (en) Image classification apparatus and image classification method
CN111060512A (en) Intelligent defect identification system
JP2019159604A (en) Abnormality detection device, abnormality detection method and abnormality detection program
CN111814557A (en) Action flow detection method, device, equipment and storage medium
JP2012173017A (en) Defect classification device
JP2015045942A (en) Quality control device, quality control method, and program
JP2020042668A (en) Inspection apparatus and machine learning method
JP2020042669A (en) Inspection apparatus and machine learning method
US7676769B2 (en) Adaptive threshold wafer testing device and method thereof
JP2023036131A (en) Inspection system, method, and program
JP2021005370A (en) Data driven machine learning for modeling aircraft sensors
CN115249316A (en) Industrial defect detection method and device
KR102649453B1 (en) Method and system for diagnosing defects in rotating machinery
KR100823573B1 (en) Semiconductor test system
KR20230072164A (en) Product quality management system for zero defect rate
KR100743801B1 (en) Diagnostic system for gel dispensing condition and method thereof
CN112445632A (en) HPC reliability evaluation method based on fault data modeling
JP7332028B2 (en) Methods, apparatus, computer programs and media containing computer instructions for performing inspection of items
CN117234955B (en) Software test management method and system based on Internet of things
EP4276741A1 (en) Analysis device, analysis system, analysis program, and analysis method
US20230135867A1 (en) System and method for vision based graphical fluid flow anomaly detection for display verification

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240214