JP2020153765A - Inspection device, abnormality detection method, computer program, learning model generation method, and learning model - Google Patents

Inspection device, abnormality detection method, computer program, learning model generation method, and learning model Download PDF

Info

Publication number
JP2020153765A
JP2020153765A JP2019051401A JP2019051401A JP2020153765A JP 2020153765 A JP2020153765 A JP 2020153765A JP 2019051401 A JP2019051401 A JP 2019051401A JP 2019051401 A JP2019051401 A JP 2019051401A JP 2020153765 A JP2020153765 A JP 2020153765A
Authority
JP
Japan
Prior art keywords
image
abnormality
inspection object
absence
inspection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019051401A
Other languages
Japanese (ja)
Other versions
JP6749655B1 (en
Inventor
幸寛 中川
Sachihiro Nakagawa
幸寛 中川
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.)
System Square Inc
Original Assignee
System Square Inc
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 System Square Inc filed Critical System Square Inc
Priority to JP2019051401A priority Critical patent/JP6749655B1/en
Priority to PCT/JP2020/003347 priority patent/WO2020189044A1/en
Application granted granted Critical
Publication of JP6749655B1 publication Critical patent/JP6749655B1/en
Publication of JP2020153765A publication Critical patent/JP2020153765A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N23/00Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00
    • G01N23/02Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by transmitting the radiation through the material
    • G01N23/04Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by transmitting the radiation through the material and forming images of the material
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N23/00Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00
    • G01N23/02Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by transmitting the radiation through the material
    • G01N23/06Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by transmitting the radiation through the material and measuring the absorption
    • G01N23/18Investigating the presence of flaws defects or foreign matter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Abstract

To provide an inspection device, an abnormality detection method, a computer program, a learning model generation method, and a learning model with which it is possible to detect the abnormality of an inspection object with good accuracy.SOLUTION: The inspection device comprises: an acquisition unit 112 for acquiring an image obtained by irradiation of an inspection object placed on a conveyor 61 with an electromagnetic wave; a determination unit 114 for determining presence of abnormality of the inspection object on the basis of a determination value calculated on the basis of the image and a threshold; a learning inspection unit 117 for inputting the image obtained by irradiation of the inspection object with the electromagnetic wave to a learning model 152 that outputs information relating to the presence of abnormality of the inspection object when the image obtained by irradiation of the inspection object with the electromagnetic wave is inputted in accordance with the determination result of the determination unit 114, and acquiring the information relating to the presence of abnormality; and an output unit 118 for outputting the information relating to the presence of abnormality.SELECTED DRAWING: Figure 2

Description

本発明は、食品等の検査物の異常を検出する検査装置、異常検出方法、コンピュータプログラム、学習モデルの生成方法、及び学習モデルに関する。 The present invention relates to an inspection device for detecting an abnormality in an inspection object such as food, an abnormality detection method, a computer program, a learning model generation method, and a learning model.

食肉、豆類等の食品の検査、包装材に内容物が収納された包装体の検査、及び電子部品等の工業製品の検査に、X線、テラヘルツ波、赤外線及び可視光等の検査波を使用した検査装置が使用されている。この検査装置においては、検査物に検査波が照射され、検査物を通過した検査波が検知されて被検査物の検査画像が取得される。 Inspection waves such as X-rays, terahertz waves, infrared rays, and visible light are used for inspection of foods such as meat and beans, inspection of packages containing contents in packaging materials, and inspection of industrial products such as electronic parts. Inspection equipment is used. In this inspection device, the inspection object is irradiated with the inspection wave, the inspection wave that has passed through the inspection object is detected, and the inspection image of the inspection object is acquired.

検査物が異物を有する場合、検査画像に閾値を超える濃い部分が存在する。従来、この濃い部分の面積及び形状等に基づいて、異物の有無の判定を行っていた。
検査物の形状の異常の有無は、検査画像のブロブ(塊)の面積及び周囲長に基づいて行っていた。ブロブを構成する画素をカウントすることにより、ブロブの面積が算出され、ブロブの周囲を形成する背景画素の配列に基づき、ブロブの周囲長が算出される(例えば特許文献1等)。
When the inspection object has a foreign substance, there is a dark part exceeding the threshold value in the inspection image. Conventionally, the presence or absence of foreign matter has been determined based on the area and shape of the dark portion.
The presence or absence of abnormalities in the shape of the inspection object was determined based on the area and peripheral length of the blobs (lumps) in the inspection image. The area of the blob is calculated by counting the pixels constituting the blob, and the peripheral length of the blob is calculated based on the arrangement of the background pixels forming the periphery of the blob (for example, Patent Document 1 and the like).

特開2005−31069号公報Japanese Unexamined Patent Publication No. 2005-31069

所定の画像処理アルゴリズムに基づいて取得した検査物の検査画像に対し、従来の異常検出方法では、閾値と比較することにより異常の有無を判定していたが、検査物及び異物の種類によっては、正常な部分と異物との画素値の差異が小さい場合があり、検出の精度が良くないという問題があった。
検査物の形状の異常を検出する場合においても、同様に、ブロブの画素と背景画素との画素値の差異が小さく、エッジが明瞭でなく、正確に検出できない場合があった。
In the conventional abnormality detection method, the presence or absence of an abnormality is determined by comparing the inspection image of the inspection object acquired based on the predetermined image processing algorithm with the threshold value, but depending on the type of the inspection object and the foreign matter, The difference in pixel value between the normal part and the foreign matter may be small, and there is a problem that the detection accuracy is not good.
Similarly, when detecting an abnormality in the shape of the inspection object, the difference between the pixel values of the blob pixel and the background pixel is small, the edge is not clear, and it may not be detected accurately.

本発明は斯かる事情に鑑みてなされたものであり、精度良く検査物の異常を検出することができる検査装置、異常検出方法、コンピュータプログラム、学習モデルの生成方法、及び学習モデルを提供することを目的とする。 The present invention has been made in view of such circumstances, and provides an inspection device, an abnormality detection method, a computer program, a learning model generation method, and a learning model capable of accurately detecting an abnormality in an inspection object. With the goal.

本発明の一態様に係る検査装置は、本発明の一態様に係る検査装置は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得する取得部と、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定する判定部と、前記判定部の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、検査物の異常の有無に関する情報を出力する学習モデルに、検査物への電磁波の照射により得られた画像を入力して、前記異常の有無に関する情報を取得する学習検査部と、前記異常の有無に関する情報を出力する出力部とを備える。
ここで、「電磁波の照射により得られた画像」とは、電磁波に基づく画像、及び該画像を画像処理して得られた画像を含む。
The inspection device according to one aspect of the present invention includes an acquisition unit that acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and the image. When a judgment unit that determines the presence or absence of an abnormality in the inspection object based on the judgment value and the threshold value calculated based on the above, and an image obtained by irradiating the inspection object with electromagnetic waves according to the judgment result of the judgment unit are input. In addition, a learning inspection unit that acquires information on the presence or absence of the abnormality by inputting an image obtained by irradiating the inspection object with electromagnetic waves into a learning model that outputs information on the presence or absence of the abnormality of the inspection object, and the abnormality. It is provided with an output unit that outputs information regarding the presence or absence of.
Here, the "image obtained by irradiation with electromagnetic waves" includes an image based on electromagnetic waves and an image obtained by image processing the image.

本発明の一態様に係る異常検出方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、処理をコンピュータに実行させる。 In the abnormality detection method according to one aspect of the present invention, an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is acquired, and the inspection is performed based on a judgment value and a threshold value calculated based on the image. Learning to determine the presence or absence of an abnormality in an object and output information regarding the presence or absence of an abnormality in the inspection object when an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality. A computer is made to execute a process of inputting the acquired image into the model and outputting information indicating the presence or absence of abnormality of the inspection object.

本発明の一態様に係るコンピュータプログラムは、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、処理をコンピュータに実行させる。 The computer program according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves, and the inspection object is based on a judgment value and a threshold value calculated based on the image. A learning model that determines the presence or absence of abnormalities in the above, and outputs information on the presence or absence of abnormalities in the inspection object when an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality. The computer is made to execute a process of inputting the acquired image and outputting information indicating the presence or absence of abnormality of the inspection object.

本発明の一態様に係る学習モデルの生成方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを取得し、前記教師データに基づいて、コンベアに載置された検査物への電磁波の照射により得られた画像が入力された場合に、前記検査物の異常の有無に関する情報を出力する学習モデルを生成する。 In the method of generating a learning model according to one aspect of the present invention, an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is acquired, and the image and information indicating the presence or absence of abnormality of the inspection object are obtained. When the teacher data recorded in association with and is acquired and the image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves is input based on the teacher data, the abnormality of the inspection object is abnormal. Generate a learning model that outputs information about the presence or absence.

本発明の一態様に係る学習モデルは、コンベアに載置された検査物への電磁波の照射により得られた画像が入力される入力層と、前記検査物の異常の有無に関する情報を出力する出力層と、コンベアに載置された検査物への電磁波の照射により得られた画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを用いてパラメータが学習された中間層とを備え、検査物への電磁波の照射により得られた画像が前記入力層に入力された場合に、前記中間層による演算を経て前記検査物の異常の有無に関する情報を前記出力層から出力するようにコンピュータを機能させる。 The learning model according to one aspect of the present invention has an input layer into which an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is input, and an output for outputting information regarding the presence or absence of abnormality in the inspection object. An intermediate in which parameters are learned using teacher data recorded by associating an image obtained by irradiating a layer and an inspection object placed on a conveyor with an electromagnetic wave and information indicating the presence or absence of an abnormality in the inspection object. When an image obtained by irradiating an inspection object with an electromagnetic wave is input to the input layer, information regarding the presence or absence of abnormality of the inspection object is output from the output layer through calculations by the intermediate layer. Make your computer work as you do.

本発明によれば、検査物に電磁波を照射して取得した画像に基づく画像に対し、判断値と閾値とに基づいて判定した検査物の異常の有無に応じて、学習モデルに画像を入力して異常の有無を取得する。例えば閾値に基づいて判定した検査物の異常の有無が不確実である場合に、学習モデルに画像を入力して異常の有無を取得することで、精度良く、異物の有無、形状の異常等の異常の有無を検出できる。 According to the present invention, with respect to an image based on an image obtained by irradiating an inspection object with electromagnetic waves, an image is input to a learning model according to the presence or absence of an abnormality in the inspection object determined based on a judgment value and a threshold value. To get the presence or absence of abnormality. For example, when it is uncertain whether or not there is an abnormality in the inspection object determined based on the threshold value, by inputting an image into the learning model and acquiring the presence or absence of the abnormality, the presence or absence of foreign matter, the presence or absence of the shape abnormality, etc. can be accurately determined. The presence or absence of abnormality can be detected.

実施の形態1に係る異常検出システムの構成を示す斜視図である。It is a perspective view which shows the structure of the abnormality detection system which concerns on Embodiment 1. FIG. 異常検出システムの構成を示すブロック図である。It is a block diagram which shows the structure of an abnormality detection system. 魚肉である検査物につき、ブロブを抽出した状態を示す説明図である。It is explanatory drawing which shows the state which blob was extracted about the inspection object which is a fish meat. 各ブロブを切り出した状態を示す説明図である。It is explanatory drawing which shows the state which cut out each blob. ブロブをバウンディングボックスにより包囲した状態を示す説明図である。It is explanatory drawing which shows the state which the blob is surrounded by the bounding box. リサイズの処理の説明図である。It is explanatory drawing of the process of resizing. 異常検出モデルにより異常値が0.5以上であると判断されたブロブを含む検査画像を示す説明図である。It is explanatory drawing which shows the inspection image including the blob which was judged that the abnormality value is 0.5 or more by the abnormality detection model. 検査画像DBのレコードレイアウトの一例を示す説明図である。It is explanatory drawing which shows an example of the record layout of the inspection image DB. 異常検出モデルの生成処理に関する説明図である。It is explanatory drawing about the generation processing of an abnormality detection model. 制御部による異常検出モデルの生成処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the generation processing of the abnormality detection model by a control unit. 制御部による異常検出処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the abnormality detection processing by a control unit. ディスプレイにおける表示画面の一例を示す説明図である。It is explanatory drawing which shows an example of the display screen in a display. PCの制御部による再学習処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the relearning process by the control part of a PC. PCの制御部による変形例の再学習処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the relearning process of the modification by the control part of a PC. 実施の形態2に係る異常検出システムの構成を示すブロック図である。It is a block diagram which shows the structure of the abnormality detection system which concerns on Embodiment 2. FIG. レベル1〜4の選択ボタンを表示する表示画面の一例を示す説明図である。It is explanatory drawing which shows an example of the display screen which displays the selection button of levels 1 to 4. レベル1〜4の閾値a及びbを表示する表示画面の一例を示す説明図である。It is explanatory drawing which shows an example of the display screen which displays the threshold value a and b of levels 1 to 4. 制御部による異常検出処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the abnormality detection processing by a control unit. 実施の形態3に係る異常検出システムの構成を示すブロック図である。It is a block diagram which shows the structure of the abnormality detection system which concerns on Embodiment 3. 制御部による閾値の設定の処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure of the process of setting a threshold value by a control unit. レベルの閾値を入力するための表示画面の一例を示す説明図である。It is explanatory drawing which shows an example of the display screen for inputting the threshold of a level.

以下、本発明をその実施の形態を示す図面に基づいて詳述する。
(実施の形態1)
図1は実施の形態1に係る異常検出システム10の構成を示す平面図、図2は異常検出システム10の構成を示すブロック図である。
異常検出システム10は、検査装置としての情報処理装置1と、X線検査機2とを備える。情報処理装置1とX線検査機2とは、一体化されていてもよい。本実施の形態においては、X線検査機2の搬送部(コンベア)6の搬送ベルト61上に検査物4を載置し、検査物4に対しX線を用いて撮像した画像に基づいて異常を検出する異常検出システム10について説明する。異常検出システム10においては、所定の画像処理アルゴリズムに基づいて、検査物4の異常の有無を判定し、この結果に応じ、異常検出モデル152に基づいて、異常の有無を推定する。検査物4の一例として、生肉、魚肉等の食品が挙げられる。
Hereinafter, the present invention will be described in detail with reference to the drawings showing the embodiments thereof.
(Embodiment 1)
FIG. 1 is a plan view showing the configuration of the abnormality detection system 10 according to the first embodiment, and FIG. 2 is a block diagram showing the configuration of the abnormality detection system 10.
The abnormality detection system 10 includes an information processing device 1 as an inspection device and an X-ray inspection machine 2. The information processing device 1 and the X-ray inspection machine 2 may be integrated. In the present embodiment, the inspection object 4 is placed on the transfer belt 61 of the transfer unit (conveyor) 6 of the X-ray inspection machine 2, and the inspection object 4 is abnormal based on the image captured by using X-rays. The abnormality detection system 10 for detecting the above will be described. The abnormality detection system 10 determines the presence or absence of an abnormality in the inspection object 4 based on a predetermined image processing algorithm, and estimates the presence or absence of an abnormality based on the abnormality detection model 152 according to the result. An example of the inspection product 4 is food such as raw meat and fish meat.

X線検査機2は、横長の直方体状をなす下側筐体23と、下側筐体23上に設けられ、下側筐体23より小さい上側筐体21とを備える。
下側筐体23内に搬送部6が設けられている。搬送部6は、下側筐体23の長手方向の一端部の外側に上流側ローラ63が設けられ、他端部の外側に下流側ローラ62が設けられている。上流側ローラ63と下流側ローラ62の間には、上流側ローラ63及び下流側ローラ62よりも下側に、2つの下段ローラ64,65が設けられており、これらのローラに搬送ベルト61が架け渡されている。上流側ローラ63と下流側ローラ62のいずれか一方に、搬送モータ(不図示)からの駆動力が与えられ、被検査物を検査するときに、搬送ベルト61が時計周りに一定の速度Vで周回する。
The X-ray inspection machine 2 includes a horizontally long rectangular parallelepiped lower housing 23 and an upper housing 21 provided on the lower housing 23 and smaller than the lower housing 23.
A transport unit 6 is provided in the lower housing 23. The transport portion 6 is provided with an upstream roller 63 outside one end in the longitudinal direction of the lower housing 23, and a downstream roller 62 outside the other end. Two lower rollers 64, 65 are provided between the upstream roller 63 and the downstream roller 62 below the upstream roller 63 and the downstream roller 62, and the conveyor belt 61 is attached to these rollers. It has been bridged. A driving force from a transfer motor (not shown) is applied to either the upstream roller 63 or the downstream roller 62, and when the object to be inspected is inspected, the transfer belt 61 rotates clockwise at a constant speed V. Go around.

上側筐体21に、電磁波としてのX線を照射する、X線照射部3が収納されている。X線照射部3はX線管31を有する。X線以外の電磁波としては、テラヘルツ波、赤外線及び可視光等が挙げられる。
上側筐体21の正面には、ディスプレイ22が設けられている。ディスプレイ22は、例えばLCD(Liquid Crystal Display)等の表示装置である。
上流側ローラ63と下流側ローラ62との間を移動する搬送ベルト61の下側にX線検知部7が設けられている。X線検知部7は、TDI(Time Delay Integration)カメラまたはTDIセンサと呼ばれるものであり、X線の強度に応じて蛍光を発するシンチレータと、シンチレータで発せられた蛍光を検知する多数のフォトダイオードとを有している。
The upper housing 21 houses an X-ray irradiation unit 3 that irradiates X-rays as electromagnetic waves. The X-ray irradiation unit 3 has an X-ray tube 31. Examples of electromagnetic waves other than X-rays include terahertz waves, infrared rays, and visible light.
A display 22 is provided on the front surface of the upper housing 21. The display 22 is a display device such as an LCD (Liquid Crystal Display).
An X-ray detection unit 7 is provided below the transport belt 61 that moves between the upstream roller 63 and the downstream roller 62. The X-ray detector 7 is called a TDI (Time Delay Integration) camera or TDI sensor, and includes a scintillator that emits fluorescence according to the intensity of X-rays and a large number of photodiodes that detect the fluorescence emitted by the scintillator. have.

TDIカメラでは、フォトダイオードが、被検査物の移動方向であるY方向と直交するX方向に直線的に並んで1つの検知ライン71が構成され、この検知ラインが複数ライン設けられている。複数の検知ライン71は被検査物の移動方向であるY方向へ向けて平行に並んで配置されている。図1においては、個々の検知ライン71を独立したラインセンサ素子として図示しているが、実際には、1つのTDIカメラの筐体内に、複数のフォトダイオードがX方向とY方向に規則的に並んで配置され、X方向に並ぶフォトダイオードで1ラインの検知ライン71が構成されている。各検知ライン71が受光し、出力した各ラインのデータにより、X線画像が構成される。 In the TDI camera, one detection line 71 is configured by arranging photodiodes linearly in the X direction orthogonal to the Y direction, which is the moving direction of the object to be inspected, and a plurality of detection lines are provided. The plurality of detection lines 71 are arranged side by side in parallel in the Y direction, which is the moving direction of the object to be inspected. In FIG. 1, each detection line 71 is shown as an independent line sensor element, but in reality, a plurality of photodiodes are regularly arranged in the X direction and the Y direction in the housing of one TDI camera. One detection line 71 is composed of photodiodes arranged side by side and arranged in the X direction. An X-ray image is composed of the data of each line received and output by each detection line 71.

情報処理装置1は、種々の情報処理、情報の送受信が可能な情報処理装置であり、例えばパーソナルコンピュータ、サーバ装置等である。X線検査機2はLAN等のネットワークNを介して情報処理装置1に通信接続されている。情報処理装置1がサーバ装置である場合、ネットワークNはインターネットであってもよい。また、インターネット等のネットワークNを介して通信可能に接続されたクラウドコンピュータが、情報処理装置1の処理を実行することにしてもよい。
本実施の形態では情報処理装置1がパーソナルコンピュータであるものとし、以下の説明では簡潔のためPC1と読み替える。
The information processing device 1 is an information processing device capable of transmitting and receiving various types of information processing and information, and is, for example, a personal computer, a server device, or the like. The X-ray inspection machine 2 is communicatively connected to the information processing device 1 via a network N such as a LAN. When the information processing device 1 is a server device, the network N may be the Internet. Further, a cloud computer connected so as to be communicable via a network N such as the Internet may execute the processing of the information processing device 1.
In the present embodiment, it is assumed that the information processing device 1 is a personal computer, and in the following description, it is read as PC1 for the sake of brevity.

PC1は、検査物4を撮像した画像を取得し、該画像に基づき検査物4の異常の有無を検出する処理を行う。本実施の形態でPC1は、後述する異常判定部(判定部)114の判定結果に応じ、機械学習により画像内から検査物4の異常を検出(識別)するよう学習済みの後述する異常検出モデル152を用いて異常の有無の検出を行う。
PC1は、X線検査機2を用いて検査物4へのX線の照射により得られた画像(後述するようにブロブ41を囲む領域を切り出し、該領域に所定の画像処理を施して得た検査画像)を異常検出モデル152に入力し、ブロブ41の異常の有無を示す識別結果を出力として取得する。
以下、検査物4の異常の種類が異物の有無であり、PC1が異常検出モデル152に検査画像を入力し、ソフトマックス関数により正常(異物なし)の確率値及び異常(異物あり)の確率値を出力させ、異常の確率値を異常値として取得する場合につき説明する。
PC1は、取得した異常値に応じ、検査物4を廃棄するか否か等の選別を行う。
The PC 1 acquires an image obtained by capturing an image of the inspection object 4, and performs a process of detecting the presence or absence of an abnormality in the inspection object 4 based on the image. In the present embodiment, the PC 1 has been trained to detect (identify) an abnormality of the inspection object 4 from the image by machine learning according to the determination result of the abnormality determination unit (determination unit) 114 described later. The presence or absence of abnormality is detected using 152.
The PC 1 obtained an image obtained by irradiating the inspection object 4 with X-rays using an X-ray inspection machine 2 (a region surrounding the blob 41 was cut out as described later, and the region was subjected to predetermined image processing. The inspection image) is input to the abnormality detection model 152, and the identification result indicating the presence or absence of the abnormality of the blob 41 is acquired as an output.
Hereinafter, the type of abnormality of the inspection object 4 is the presence or absence of foreign matter, the PC1 inputs the inspection image into the abnormality detection model 152, and the probability value of normal (without foreign matter) and the probability value of abnormality (with foreign matter) by the softmax function are used. Will be output, and the case where the probability value of abnormality is acquired as an abnormal value will be described.
The PC 1 selects whether or not to discard the inspection object 4 according to the acquired abnormal value.

PC1は、制御部11、主記憶部12、通信部13、表示部14、補助記憶部15、及び入力部16を備える。
制御部11は、一又は複数のCPU(Central Processing Unit)、MPU(Micro-Processing Unit)、GPU(Graphics Processing Unit)等の演算処理装置を有し、補助記憶部15に記憶されたプログラムPを読み出して実行することにより、PC1に係る種々の情報処理、制御処理等を行う。図2の各機能部は、制御部11がプログラムPに基づいて動作することにより実行される。
The PC 1 includes a control unit 11, a main storage unit 12, a communication unit 13, a display unit 14, an auxiliary storage unit 15, and an input unit 16.
The control unit 11 has one or more CPUs (Central Processing Units), MPUs (Micro-Processing Units), GPUs (Graphics Processing Units), and other arithmetic processing units, and stores the program P stored in the auxiliary storage unit 15. By reading and executing, various information processing, control processing, and the like related to the PC1 are performed. Each functional unit of FIG. 2 is executed by the control unit 11 operating based on the program P.

制御部11は、機能部として、画像生成部111、画像処理部(取得部)112、対象特定部(特定部)113、異常判定部(判定部)114、切り出し部115、画像処理部116、学習検査部117、表示部(出力部)118、選別部(出力部)119、良否判定受付部(第2受付部)122、及び再学習部123を有する。 As functional units, the control unit 11 includes an image generation unit 111, an image processing unit (acquisition unit) 112, a target identification unit (specific unit) 113, an abnormality determination unit (determination unit) 114, a cutting unit 115, and an image processing unit 116. It has a learning inspection unit 117, a display unit (output unit) 118, a sorting unit (output unit) 119, a pass / fail judgment reception unit (second reception unit) 122, and a re-learning unit 123.

画像生成部111は、検査物4を透過し、X線検知部7により検知されたX線に基づき、X線画像を生成する。
画像処理部112は、X線画像に対し平滑化フィルタ、特徴抽出フィルタ等により画像処理を行う。
The image generation unit 111 passes through the inspection object 4 and generates an X-ray image based on the X-rays detected by the X-ray detection unit 7.
The image processing unit 112 performs image processing on the X-ray image by a smoothing filter, a feature extraction filter, or the like.

対象特定部113はブロブ41解析を行い、ブロブ(領域)を特定する。対象特定部113は、例えば、各画素の輝度変化を強調処理(エッジ検出)した強調線を抽出し、強調線を含む部分をブロブとして特定する。
対象特定部113は、周辺の領域に比べて輝度の変化率が所定値以上となっているブロブを特定してもよい。
対象特定部113は、輝度の標準偏差を求め、この標準偏差と比較して輝度が所定レベル以上変化する部分を有する画素の集合をブロブとして特定してもよく、輝度が相違している特異部を含む部分をブロブとして特定してもよい。
The target identification unit 113 analyzes the blob 41 and identifies the blob (region). The target identification unit 113 extracts, for example, an emphasis line obtained by enhancing the brightness change (edge detection) of each pixel, and specifies a portion including the emphasis line as a blob.
The target identification unit 113 may specify a blob whose brightness change rate is equal to or higher than a predetermined value as compared with the peripheral region.
The target identification unit 113 may obtain a standard deviation of the brightness and specify a set of pixels having a portion where the brightness changes by a predetermined level or more as compared with the standard deviation as a blob, and a singular part having a different brightness. The portion containing the blob may be specified as a blob.

異常判定部114は、対象特定部113が特定したブロブにつき、判断値及び閾値に基づいて、ブロブが異物か否かを判定する。判断値として、例えば強調線に囲まれたブロブの画像数、面積等が挙げられ、判断値に正常側の閾値(第1閾値)a及び異常側の閾値(第2閾値)bを設定しておき(a<b)、算出した判断値が閾値a未満であれば、特異部は異物でなく、正常と判定し、判断値が閾値b超過であれば、ブロブは異物であると判定する。判断値がa以上b以下である場合、後述する学習検査部117により異常値を取得する。
図3に、一例として、魚肉である検査物4につき、判断値がa以上b以下であるブロブ41を抽出した状態を示す。ブロブは画像処理により強調処理され、塗りつぶされている。
The abnormality determination unit 114 determines whether or not the blob is a foreign substance based on the determination value and the threshold value for the blob specified by the target identification unit 113. Examples of the judgment value include the number of images of the blob surrounded by the emphasized line, the area, and the like. The normal side threshold value (first threshold value) a and the abnormal side threshold value (second threshold value) b are set as the judgment values. Every time (a <b), if the calculated judgment value is less than the threshold value a, it is determined that the singular portion is not a foreign substance and is normal, and if the judgment value exceeds the threshold value b, it is determined that the blob is a foreign substance. When the judgment value is a or more and b or less, an abnormal value is acquired by the learning inspection unit 117 described later.
FIG. 3 shows, as an example, a state in which a blob 41 having a judgment value of a or more and b or less is extracted from the inspection object 4 which is fish meat. The blobs are highlighted and filled by image processing.

切り出し部115は、判断値がa以上b以下であるブロブ41が所定の大きさの矩形内に入るように切り出し、バウンディングボックス81により包囲し、切り出し画像を生成する。ここで、ブロブ41を囲む画像は、強調処理前の画像である。なお、ブロブ41を囲む画像は、強調処理後の画像でもよい。
図4に、各ブロブ41を切り出した状態を示す。
画像処理部116は、切り出し画像に対し、正規化等の処理を行い、異常検出モデル152に入力する検査領域(検査画像)8を生成する。
The cutout unit 115 cuts out the blob 41 having a determination value of a or more and b or less so that it fits within a rectangle of a predetermined size, surrounds it with a bounding box 81, and generates a cutout image. Here, the image surrounding the blob 41 is an image before the enhancement process. The image surrounding the blob 41 may be an image after enhancement processing.
FIG. 4 shows a state in which each blob 41 is cut out.
The image processing unit 116 performs processing such as normalization on the cutout image to generate an inspection area (inspection image) 8 to be input to the abnormality detection model 152.

図5は、対象特定部113が特定したブロブを切り出し部115により切り出し、ブロブ41をバウンディングボックス81により包囲してなる検査画像8を生成した状態を示す説明図である。制御部11の対象特定部113は、上述のようにしてブロブ41の検出を行う。各検査画像8は、各ブロブ41が同じ大きさのバウンディングボックス81により包囲されている。
図6は、切り出し部115によるリサイズの処理の説明図である。
検査物4がバウンディングボックス81からはみ出ている場合は、制御部11の切り出し部114はリサイズを行い、ブロブ41がバウンディングボックス81内に収まるようにする。ブロブ41を大きくする場合は、補完処理を行う。
FIG. 5 is an explanatory diagram showing a state in which the blob specified by the target specifying unit 113 is cut out by the cutting unit 115, and the inspection image 8 formed by surrounding the blob 41 with the bounding box 81 is generated. The target identification unit 113 of the control unit 11 detects the blob 41 as described above. In each inspection image 8, each blob 41 is surrounded by a bounding box 81 of the same size.
FIG. 6 is an explanatory diagram of the resizing process by the cutout portion 115.
When the inspection object 4 protrudes from the bounding box 81, the cutout portion 114 of the control unit 11 is resized so that the blob 41 fits in the bounding box 81. When the blob 41 is enlarged, a complementary process is performed.

学習検査部117は、異常検出モデル152に各検査画像を入力し、異常値を取得する。 The learning inspection unit 117 inputs each inspection image into the abnormality detection model 152 and acquires an abnormality value.

表示部118は、異常値をディスプレイ22へ出力し、検査画像の異常の有無をディスプレイ22において表示する。
図7に、異常検出モデル152により異常値が0.5以上であると判断されたブロブを含む検査画像を示す。
The display unit 118 outputs an abnormal value to the display 22, and displays the presence or absence of an abnormality in the inspection image on the display 22.
FIG. 7 shows an inspection image including a blob whose outlier is determined to be 0.5 or more by the anomaly detection model 152.

選別部119は、検査画像8の異常値を閾値と比較し、異常値を示したブロブ41を含む検査物4を廃棄するか否かの選別を行ったり、搬送部6を停止させたり、検査物4をマーキングしたりする。選別部119は、例えば一のブロブ41の異常値が0.5以上である場合、該ブロブ41を含む検査物4を異常品とみなし、廃棄すると選別する。異常値の閾値は0.5である場合に限定されない。なお、異常値が閾値以上であるブロブ41を一つ含む場合に検査物4を廃棄する場合に限定されない。所定数以上のブロブ41が閾値以上の異常値を示す場合に、検査物4を廃棄することにしてもよい。 The sorting unit 119 compares the abnormal value of the inspection image 8 with the threshold value, selects whether or not to discard the inspection object 4 including the blob 41 showing the abnormal value, stops the transport unit 6, and inspects. Mark the object 4. For example, when the abnormal value of one blob 41 is 0.5 or more, the sorting unit 119 considers the inspection object 4 containing the blob 41 as an abnormal product and sorts it when it is discarded. The outlier threshold is not limited to 0.5. It should be noted that the present invention is not limited to the case where the inspection object 4 is discarded when one blob 41 having an abnormal value equal to or higher than the threshold value is included. When a predetermined number or more of blobs 41 show an abnormal value equal to or more than a threshold value, the inspection object 4 may be discarded.

良否判定受付部122は、作業者が入力部16により入力した、異常検出モデル152の判断の良否の判定を受け付ける。
再学習部123は、検査画像8と、作業者から入力された前記の良否の判定とを対応付けた教師データを用いて、異常検出モデル152を再学習する。
The pass / fail judgment reception unit 122 receives the pass / fail judgment of the judgment of the abnormality detection model 152 input by the operator through the input unit 16.
The re-learning unit 123 re-learns the abnormality detection model 152 by using the teacher data in which the inspection image 8 and the above-mentioned good / bad judgment input from the operator are associated with each other.

主記憶部12は、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)、フラッシュメモリ等の一時記憶領域であり、制御部11が演算処理を実行するために必要なデータを一時的に記憶する。通信部13は、通信に関する処理を行うための通信モジュールであり、外部と情報の送受信を行う。 The main storage unit 12 is a temporary storage area for SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), flash memory, etc., and temporarily stores data necessary for the control unit 11 to execute arithmetic processing. Remember. The communication unit 13 is a communication module for performing processing related to communication, and transmits / receives information to / from the outside.

補助記憶部15は大容量メモリ、ハードディスク等であり、制御部11が処理を実行するために必要なプログラムP、その他のデータを記憶している。また、補助記憶部15は、検査画像DB151及び前記異常検出モデル152を記憶している。検査画像DB151は、異常検出対象である検査物4の情報を格納したデータベースである。 The auxiliary storage unit 15 is a large-capacity memory, a hard disk, or the like, and stores a program P and other data necessary for the control unit 11 to execute processing. In addition, the auxiliary storage unit 15 stores the inspection image DB 151 and the abnormality detection model 152. The inspection image DB 151 is a database that stores information on the inspection object 4 that is the abnormality detection target.

補助記憶部15に記憶されるプログラムPは、プログラムPを読み取り可能に記録した記録媒体156により提供されてもよい。記録媒体156は、例えば、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、マイクロSDカード、コンパクトフラッシュ(登録商標)等の可搬型のメモリである。記録媒体156に記録されるプログラムPは、図に示していない読取装置を用いて記録媒体156から読み取られ、補助記憶部15にインストールされる。また、情報処理装置1が外部通信装置と通信可能な通信部を備える場合、補助記憶部15に記憶されるプログラムPは、通信部を介した通信により提供されてもよい。
なお、補助記憶部15はPC1に接続された外部記憶装置であってもよい。また、PC1は複数のコンピュータからなるマルチコンピュータであってもよく、ソフトウェアによって仮想的に構築された仮想マシンであってもよい。
The program P stored in the auxiliary storage unit 15 may be provided by a recording medium 156 in which the program P is readablely recorded. The recording medium 156 is, for example, a portable memory such as a USB (Universal Serial Bus) memory, an SD (Secure Digital) card, a micro SD card, and a compact flash (registered trademark). The program P recorded on the recording medium 156 is read from the recording medium 156 using a reading device (not shown) and installed in the auxiliary storage unit 15. Further, when the information processing device 1 includes a communication unit capable of communicating with an external communication device, the program P stored in the auxiliary storage unit 15 may be provided by communication via the communication unit.
The auxiliary storage unit 15 may be an external storage device connected to the PC1. Further, the PC 1 may be a multi-computer composed of a plurality of computers, or may be a virtual machine virtually constructed by software.

入力部16は、作業者による、後述する判断値の閾値等の入力を受け付ける。 The input unit 16 receives an input such as a threshold value of a determination value described later by an operator.

図8は検査画像DB151のレコードレイアウトの一例を示す説明図である。検査画像DB151は、検査画像ID列、座標情報列、異常値列、判断値列を含む。検査画像ID列は、各検査画像8を識別するための検査画像IDを記憶している。座標情報列は、検査画像IDと対応付けて、搬送ベルト61上のX線照射領域における、ブロブ41の位置を示す座標情報を記憶している。座標情報は、図1の上流側ローラ63及び下流側ローラ62間における、X方向及びY方向の中心を原点としたときのバウンディングボックス81の四隅におけるX座標、及びY座標である。異常値は上述したように、異常の確率値である。判断値は、異常判定部114により算出された判断値である。 FIG. 8 is an explanatory diagram showing an example of the record layout of the inspection image DB 151. The inspection image DB 151 includes an inspection image ID string, a coordinate information string, an outlier string, and a judgment value string. The inspection image ID column stores an inspection image ID for identifying each inspection image 8. The coordinate information sequence stores coordinate information indicating the position of the blob 41 in the X-ray irradiation region on the transport belt 61 in association with the inspection image ID. The coordinate information is the X coordinate and the Y coordinate at the four corners of the bounding box 81 when the center in the X direction and the Y direction is the origin between the upstream roller 63 and the downstream roller 62 in FIG. As described above, the outlier is the probability value of the anomaly. The determination value is a determination value calculated by the abnormality determination unit 114.

図9は、異常検出モデル152の生成処理に関する説明図である。図9では、機械学習を行って異常検出モデル152を生成する処理を概念的に示している。 FIG. 9 is an explanatory diagram relating to the generation process of the abnormality detection model 152. FIG. 9 conceptually shows a process of performing machine learning to generate an abnormality detection model 152.

PC1の制御部11は、異常検出モデル152として、ブロブ41の検査画像8内における異常の画像特徴量を学習することで、検査画像8を入力とし、ブロブ41における異常の有無を示す情報を出力とするニューラルネットワークを構築(生成)する。例えばニューラルネットワークはCNN(Convolution Neural Network)であり、検査画像8の入力を受け付ける入力層と、異常の有無の識別結果を出力する出力層と、検査画像8の画像特徴量を抽出する中間層とを有する。 As the abnormality detection model 152, the control unit 11 of the PC1 learns the image feature amount of the abnormality in the inspection image 8 of the blob 41, inputs the inspection image 8, and outputs information indicating the presence or absence of the abnormality in the blob 41. A neural network is constructed (generated). For example, the neural network is a CNN (Convolution Neural Network), which includes an input layer that accepts the input of the inspection image 8, an output layer that outputs the identification result of the presence or absence of an abnormality, and an intermediate layer that extracts the image feature amount of the inspection image 8. Has.

入力層は、検査画像8に含まれる各画素の画素値の入力を受け付ける複数のニューロンを有し、入力された画素を中間層に受け渡す。中間層は、検査画像の画像特徴量を抽出する複数のニューロンを有し、抽出した画像特徴量を出力層に受け渡す。図9において、中間層の層数は3とされているが、これに限定されない。例えば異常検出モデル152がCNNである場合、中間層は、入力層から入力された各画素の画素値を畳み込むコンボリューション層と、コンボリューション層で畳み込んだ画素値をマッピングするプーリング層とが交互に連結された構成を有し、検査画像8の画素情報を圧縮しながら最終的に画像の特徴量を抽出する。図9において、コンボリューション層、及びプーリング層の記載は省略している。出力層は、ブロブ41における異常を識別した識別結果を出力する二つのニューロンを有し、中間層から出力された画像特徴量に基づいてブロブ41における異常の有無を識別する。一方のニューロンはブロブ41における正常(異物なし)の確率値を出力し、他方のニューロンはブロブ41における異常(異物あり)の確率値を出力する。 The input layer has a plurality of neurons that receive input of pixel values of each pixel included in the inspection image 8, and passes the input pixels to the intermediate layer. The intermediate layer has a plurality of neurons for extracting the image features of the inspection image, and the extracted image features are passed to the output layer. In FIG. 9, the number of layers of the intermediate layer is set to 3, but the number of layers is not limited to this. For example, when the abnormality detection model 152 is CNN, the intermediate layer alternates between a convolution layer that convolves the pixel values of each pixel input from the input layer and a pooling layer that maps the pixel values convoluted by the convolution layer. The feature amount of the image is finally extracted while compressing the pixel information of the inspection image 8. In FIG. 9, the description of the convolution layer and the pooling layer is omitted. The output layer has two neurons that output the identification result of identifying the abnormality in the blob 41, and identifies the presence or absence of the abnormality in the blob 41 based on the image feature amount output from the intermediate layer. One neuron outputs the probability value of normal (without foreign matter) in blob 41, and the other neuron outputs the probability value of abnormality (with foreign matter) in blob 41.

なお、本実施の形態では異常検出モデル152がCNNであるものとして説明するが、異常検出モデル152はCNNに限定されず、CNN以外のニューラルネットワーク、SVM(Support Vector Machine)、ベイジアンネットワーク、回帰木など、他の学習アルゴリズムで構築された学習済みモデルであってよい。 In the present embodiment, the anomaly detection model 152 is described as being a CNN, but the anomaly detection model 152 is not limited to the CNN, and is a neural network other than the CNN, an SVM (Support Vector Machine), a Bayesian network, and a regression tree. It may be a trained model constructed by another learning algorithm.

制御部11は、複数の検査画像8と、各検査画像8におけるブロブ41の異常を示す情報(異物を有するか、異物を有さず、正常であるか)とが対応付けられた教師データ(異常データ、正常データ)を用いて学習を行う。例えば図9に示すように、教師データは、ブロブ41の検査画像8に対し、検査画像8のIDと、異常の種類(異物の有無)、ランク(1:異常、0:正常)とがラベル付けされたデータである。 The control unit 11 has a teacher data (whether it has a foreign substance or does not have a foreign substance and is normal) in which a plurality of inspection images 8 and information indicating an abnormality of the blob 41 in each inspection image 8 are associated with each other. Learning is performed using (abnormal data, normal data). For example, as shown in FIG. 9, the teacher data is labeled with the ID of the inspection image 8 and the type of abnormality (presence or absence of foreign matter) and rank (1: abnormal, 0: normal) with respect to the inspection image 8 of the blob 41. It is the attached data.

制御部11は、教師データである検査画像8を入力層に入力し、中間層での演算処理を経て、出力層からブロブ41における異常の有無を示す識別結果を取得する。なお、出力層から出力される識別結果は、ソフトマックス関数を用いた場合、連続的な確率値(例えば「0」から「1」までの範囲の値)である。識別結果は、異常の有無を離散的に示す値(例えば「0」又は「1」の値)であってもよい。 The control unit 11 inputs the inspection image 8 which is the teacher data to the input layer, performs arithmetic processing in the intermediate layer, and acquires an identification result indicating the presence or absence of an abnormality in the blob 41 from the output layer. The identification result output from the output layer is a continuous probability value (for example, a value in the range of "0" to "1") when the softmax function is used. The identification result may be a value that discretely indicates the presence or absence of an abnormality (for example, a value of "0" or "1").

制御部11は、出力層から出力された識別結果を、教師データにおいて検査画像8に対しラベル付けされた情報、すなわち正解値と比較し、出力層からの出力値が正解値に近づくように、中間層での演算処理に用いるパラメータを最適化する。該パラメータは、例えばニューロン間の重み(結合係数)、各ニューロンで用いられる活性化関数の係数などである。パラメータの最適化の方法は特に限定されないが、例えば制御部11は誤差逆伝播法を用いて各種パラメータの最適化を行う。 The control unit 11 compares the identification result output from the output layer with the information labeled for the inspection image 8 in the teacher data, that is, the correct answer value, so that the output value from the output layer approaches the correct answer value. Optimize the parameters used for arithmetic processing in the intermediate layer. The parameters include, for example, the weight between neurons (coupling coefficient), the coefficient of the activation function used in each neuron, and the like. The method of optimizing the parameters is not particularly limited, but for example, the control unit 11 optimizes various parameters by using the backpropagation method.

制御部11は、教師データに含まれる各検査画像8について上記の処理を行い、異常検出モデル152を生成する。制御部11はブロブ41の検査画像8を取得した場合、異常検出モデル152を用いてブロブ41における異物の有無を検出する。 The control unit 11 performs the above processing on each inspection image 8 included in the teacher data to generate the abnormality detection model 152. When the control unit 11 acquires the inspection image 8 of the blob 41, the control unit 11 detects the presence or absence of foreign matter in the blob 41 by using the abnormality detection model 152.

図10は、制御部11による異常検出モデル152の生成処理の処理手順の一例を示すフローチャートである。
制御部11は、複数のブロブ41の検査画像8と、各検査画像8内におけるブロブ41の前記異常を示す情報とを対応付けた教師データを取得する(S11)。
FIG. 10 is a flowchart showing an example of a processing procedure of the generation processing of the abnormality detection model 152 by the control unit 11.
The control unit 11 acquires teacher data in which the inspection images 8 of the plurality of blobs 41 and the information indicating the abnormality of the blobs 41 in each inspection image 8 are associated with each other (S11).

制御部11は教師データを用いて、ブロブ41の検査画像8を入力した場合にブロブ41の異常有無情報を出力する異常検出モデル152(学習済みモデル)を生成する(S12)。具体的には、制御部11は、教師データである検査画像8をニューラルネットワークの入力層に入力し、検査画像8内の異物の有無を識別した識別結果を出力層から取得する。制御部11は、取得した識別結果を教師データの正解値(検査画像8に対してラベル付けられた情報)と比較し、出力層から出力される識別結果が正解値に近づくよう、中間層での演算処理に用いるパラメータ(重み等)を最適化する。制御部11は、生成した異常検出モデル152を補助記憶部15に格納し、一連の処理を終了する。 The control unit 11 uses the teacher data to generate an abnormality detection model 152 (learned model) that outputs the abnormality presence / absence information of the blob 41 when the inspection image 8 of the blob 41 is input (S12). Specifically, the control unit 11 inputs the inspection image 8 which is the teacher data into the input layer of the neural network, and acquires the identification result of identifying the presence / absence of foreign matter in the inspection image 8 from the output layer. The control unit 11 compares the acquired identification result with the correct answer value of the teacher data (information labeled for the inspection image 8), and in the intermediate layer, the identification result output from the output layer approaches the correct answer value. Optimize the parameters (weights, etc.) used in the arithmetic processing of. The control unit 11 stores the generated abnormality detection model 152 in the auxiliary storage unit 15 and ends a series of processes.

図11は、制御部11による異常検出処理の処理手順の一例を示すフローチャートである。
PC1の制御部11は、検査物4を透過し、X線検知部7により検知されたX線に基づき、X線画像を生成する(S21)。
制御部11は、X線画像に対し平滑化フィルタ、特徴抽出フィルタ等により画像処理を行う(S22)。
制御部11は、上述のようにしてブロブ解析を行い、ブロブを特定する(S23)。制御部11は、各画素の輝度変化を強調処理(エッジ検出)した強調線を抽出し、強調線を含む部分をブロブとして特定する。
FIG. 11 is a flowchart showing an example of the processing procedure of the abnormality detection process by the control unit 11.
The control unit 11 of the PC 1 passes through the inspection object 4 and generates an X-ray image based on the X-rays detected by the X-ray detection unit 7 (S21).
The control unit 11 performs image processing on the X-ray image by a smoothing filter, a feature extraction filter, or the like (S22).
The control unit 11 performs blob analysis as described above to identify the blob (S23). The control unit 11 extracts an emphasis line obtained by enhancing the brightness change of each pixel (edge detection), and identifies a portion including the emphasis line as a blob.

制御部11は、ブロブが異物であるか否かを判定する(S24)。制御部11は、例えば強調線に囲まれたブロブの画像数、面積等の判断値を算出し、算出した判断値及び閾値に基づいて判定を行う。制御部11は、異常(NG:判断値>閾値b)、正常(OK:判断値<閾値a)、その中間(a≦判断値≦b)のいずれであるかを判定する。 The control unit 11 determines whether or not the blob is a foreign substance (S24). The control unit 11 calculates, for example, a determination value such as the number of images and an area of the blob surrounded by the highlighted line, and makes a determination based on the calculated determination value and the threshold value. The control unit 11 determines whether it is abnormal (NG: judgment value> threshold value b), normal (OK: judgment value <threshold value a), or intermediate (a ≦ judgment value ≦ b).

制御部11は、S24で、NG(異常)又はOK(正常)と判定されたか否かを判定する(S25)。制御部11はNG又はOKであると判定されたと判定した場合(S25:YES)、OKであるか否かを判定する(S26)。
制御部11はOKであると判定した場合(S26:YES)、学習検査をスキップして処理を終了する。
制御部11はOKでない、即ちNGであると判定した場合(S26:NO)、学習検査をスキップしてS33へ処理を進める。
The control unit 11 determines in S24 whether or not it is determined to be NG (abnormal) or OK (normal) (S25). When the control unit 11 determines that it is NG or OK (S25: YES), it determines whether or not it is OK (S26).
When the control unit 11 determines that the result is OK (S26: YES), the learning test is skipped and the process ends.
When the control unit 11 determines that it is not OK, that is, NG (S26: NO), the learning test is skipped and the process proceeds to S33.

制御部11はNG又はOKでないと判定されたと判定した場合(S25:NO)、NG又はOKでないと判定されたブロブ41が所定の大きさの矩形内に入るように切り出し、切り出し画像を生成する(S27)。切り出し画像はブロブ41の塗りつぶし処理前の画像である。
制御部11は、切り出し画像に対し、正規化等の処理を行い、検査画像を生成する(S28)。
When the control unit 11 determines that it is not NG or OK (S25: NO), the control unit 11 cuts out the blob 41 determined not to be NG or OK so as to be inside a rectangle of a predetermined size, and generates a cut-out image. (S27). The cut-out image is an image of the blob 41 before the filling process.
The control unit 11 performs processing such as normalization on the cut-out image to generate an inspection image (S28).

制御部11は、異常検出モデル152に検査画像8を入力し、正常の確率値及び異常の確率値を出力させ、異常値を取得する(S29)。
制御部11は、異常値が閾値以上であるか否かを判定する(S30)。制御部11は異常値が閾値以上であると判定した場合(S30:YES)、異常値をディスプレイ22へ出力し、検査画像8を赤のバウンディングボックス(BB)82により包囲した状態で表示する(S31)。制御部11は異常値が閾値以上でないと判定した場合(S30:NO)、検査画像8を赤のバウンディングボックス(BB)82により包囲していない状態で表示する(S32)。
制御部11は、検査画像8の異常値及び検査画像IDに基づき、またS26でNGと判定された場合はその検査物4を特定し、検査物4を廃棄するか否かの選別を行い(S33)、処理を終了する。
The control unit 11 inputs the inspection image 8 to the abnormality detection model 152, outputs a normal probability value and an abnormality probability value, and acquires the abnormality value (S29).
The control unit 11 determines whether or not the abnormal value is equal to or greater than the threshold value (S30). When the control unit 11 determines that the abnormal value is equal to or higher than the threshold value (S30: YES), the control unit 11 outputs the abnormal value to the display 22 and displays the inspection image 8 in a state of being surrounded by the red bounding box (BB) 82 (S30: YES). S31). When the control unit 11 determines that the abnormal value is not equal to or higher than the threshold value (S30: NO), the control unit 11 displays the inspection image 8 in a state where it is not surrounded by the red bounding box (BB) 82 (S32).
The control unit 11 identifies the inspection object 4 based on the abnormal value of the inspection image 8 and the inspection image ID, and if it is determined to be NG in S26, selects whether or not to discard the inspection object 4 ( S33), the process is terminated.

以上のように、本実施の形態によれば、検査画像8において、異物と他部との画素値の差異が小さく、従来の画像処理の手法では異物の有無の判断が困難である場合においても、異常検出モデル152を使用することにより、精度良く、異物を判別できる。
本実施の形態によれば、所定の画像処理アルゴリズムに基づいて取得したブロブ41に対し、判断値並びに閾値a及びbに基づいて取得した、ブロブ41が異物であるか否かの判定結果が正確でない場合に、異常検出モデル152に検査画像8を入力して異常値を取得することで、精度良く、異物の有無を検出できる。
作業者が目視による異常の検出を行う必要がなくなり、異常検出作業の効率化を図ることができる。
上述の実施の形態においては、異常の種類として異物の有無を挙げているが、これに限定されず、形状の異常等、他の異常を検出してもよい。
As described above, according to the present embodiment, even when the difference between the pixel values of the foreign matter and the other part is small in the inspection image 8 and it is difficult to determine the presence or absence of the foreign matter by the conventional image processing method. By using the abnormality detection model 152, foreign matter can be discriminated with high accuracy.
According to the present embodiment, with respect to the blob 41 acquired based on the predetermined image processing algorithm, the determination value and the determination result of whether or not the blob 41 is a foreign substance acquired based on the threshold values a and b are accurate. If this is not the case, the presence or absence of foreign matter can be detected with high accuracy by inputting the inspection image 8 into the abnormality detection model 152 and acquiring the abnormality value.
It is not necessary for the operator to visually detect the abnormality, and the efficiency of the abnormality detection work can be improved.
In the above-described embodiment, the presence or absence of a foreign substance is mentioned as the type of abnormality, but the present invention is not limited to this, and other abnormalities such as an abnormality in shape may be detected.

なお、判断値が例えば0から1の数値で表される場合、0が閾値aであり、1が閾値bであってもよく、この場合、判断値が0のとき正常であり、1のとき異常である。
また、判断値がa以上b以下の場合に学習検査を行う場合に限定されず、判断値がa以上の場合に学習検査を行うことにしてもよく、判断値がb以下の場合、学習検査を行うことにしてもよい。
S28の画像処理は省略できる。検査画像8は、ブロブ41の強調処理を行った後の画像でもよい。
When the judgment value is represented by a numerical value from 0 to 1, for example, 0 may be the threshold value a and 1 may be the threshold value b. In this case, when the judgment value is 0, it is normal, and when it is 1. It is abnormal.
Further, the learning test is not limited to the case where the judgment value is a or more and b or less, and the learning test may be performed when the judgment value is a or more and the learning test is performed when the judgment value is b or less. May be done.
The image processing of S28 can be omitted. The inspection image 8 may be an image after the blob 41 has been enhanced.

図12は、ディスプレイ22における表示画面5の一例を示す説明図である。
表示画面は、図12における左側の第1画面51と、右側の第2画面52とを有する。
制御部11は、第1画面51において、検査画像8を、搬送ベルト61に載置された検査物4を搬送ベルト61の位置に対応付けて表示する。制御部11は、第2画面52において、各ブロブ41に対応する各検査画像8を前記検査画像ID順に並べて表示し、異常の検査画像8は赤色のバウンディングボックス82により包囲する。図12の場合、ブロブ41に係る検査画像8がバウンディングボックス82により包囲されているとき、ブロブ41は異物であり、ブロブ41を含む検査物4は異常品であることになる。
FIG. 12 is an explanatory diagram showing an example of a display screen 5 on the display 22.
The display screen has a first screen 51 on the left side in FIG. 12 and a second screen 52 on the right side.
The control unit 11 displays the inspection image 8 on the first screen 51 in association with the inspection object 4 mounted on the transport belt 61 in association with the position of the transport belt 61. On the second screen 52, the control unit 11 displays the inspection images 8 corresponding to the blobs 41 in the order of the inspection image IDs, and the abnormal inspection image 8 is surrounded by the red bounding box 82. In the case of FIG. 12, when the inspection image 8 related to the blob 41 is surrounded by the bounding box 82, the blob 41 is a foreign substance, and the inspection object 4 including the blob 41 is an abnormal product.

作業者は、検査画像8の行方向に順に移動するための「>」及び「<」からなる選択ボタン56により第2画面52のいずれかの検査画像8を選択できる。検査画像8はマウス等のポインティングデバイスにより選択してもよい。
第2画面52は、他に、作業者により異常検出モデル152の推定結果(判断)が正しいと判定したときに押圧するOKボタン53、判断は正しくないと判定したときに押圧するNGボタン54、及び後述する異常有無のレベルの選択の指示を入力するとき等に使用するOtherボタン55を有する。
The operator can select any of the inspection images 8 on the second screen 52 by the selection button 56 consisting of ">" and "<" for sequentially moving in the row direction of the inspection image 8. The inspection image 8 may be selected by a pointing device such as a mouse.
The second screen 52 also includes an OK button 53 that is pressed when the operator determines that the estimation result (judgment) of the abnormality detection model 152 is correct, and an NG button 54 that is pressed when the determination is incorrect. It also has the Other button 55, which is used when inputting an instruction for selecting the level of presence / absence of abnormality, which will be described later.

選択ボタン56により選択された検査画像8につき、作業者からOKボタン53又はNGボタン54による異常検出モデル152の判断の良否の入力を受け付け、所定数以上のデータが集まった場合、制御部11は、検査画像8と、作業者から入力された判断の良否とを教師データとして、異常検出モデル152の再学習を行うことができる。 For the inspection image 8 selected by the selection button 56, the control unit 11 receives input from the operator as to whether or not the judgment of the abnormality detection model 152 is good or bad by the OK button 53 or the NG button 54, and when a predetermined number or more of data are collected, the control unit 11 , The inspection image 8 and the quality of the judgment input from the operator can be used as teacher data to relearn the abnormality detection model 152.

図13は、PC1の制御部11による上述の再学習処理の処理手順の一例を示すフローチャートである。 FIG. 13 is a flowchart showing an example of the processing procedure of the above-mentioned relearning process by the control unit 11 of the PC1.

制御部11は、選択された検査画像8につき、作業者による第2画面52のOKボタン53又はNGボタン54の押圧に基づき、異常検出モデル152の判断の良否の判定を受け付ける(S41)。制御部11は良否の判定を受け付けていないと判定した場合(S41:NO)、判定の処理を繰り返す。
制御部11は所定数の良否の判定を受け付けたと判定した場合(S41:YES)、異常を検出したブロブ41の検査画像8と、作業者から入力された制御部11の判断の良否とを対応付けた教師データを取得する(S42)。
制御部11は教師データを用いて、ブロブ41の検査画像を入力した場合にブロブ41の異常有無情報を出力する異常検出モデル152を生成する(S43)。
以上により、再学習される。これにより、異常検出処理を継続するほど異常検出モデル152がアップデートされ、より正確な異常検出を行うことができるようになる。
なお、作業者による異常検出モデル152の判断の良否の判定は、検査画像8ではなく、X線画像に基づいて行ってもよい。
The control unit 11 accepts the determination of the quality of the determination of the abnormality detection model 152 based on the pressing of the OK button 53 or the NG button 54 on the second screen 52 by the operator for the selected inspection image 8 (S41). When the control unit 11 determines that the quality determination is not accepted (S41: NO), the determination process is repeated.
When it is determined that the control unit 11 has received a predetermined number of good / bad judgments (S41: YES), the inspection image 8 of the blob 41 that has detected the abnormality corresponds to the good / bad judgment of the control unit 11 input from the operator. Acquire the attached teacher data (S42).
The control unit 11 uses the teacher data to generate an abnormality detection model 152 that outputs the abnormality presence / absence information of the blob 41 when the inspection image of the blob 41 is input (S43).
With the above, it is relearned. As a result, the abnormality detection model 152 is updated as the abnormality detection process is continued, and more accurate abnormality detection can be performed.
The judgment of the quality of the abnormality detection model 152 by the operator may be performed based on the X-ray image instead of the inspection image 8.

図14は、PC1の制御部11による変形例の再学習処理の処理手順の一例を示すフローチャートである。 FIG. 14 is a flowchart showing an example of the processing procedure of the re-learning process of the modified example by the control unit 11 of the PC1.

制御部11は、選択された検査画像8につき、作業者による第2画面52のOKボタン53又はNGボタン54の押圧に基づき、異常検出モデル152の判断の良否の判定を受け付ける(S51)。制御部11は良否の判定を受け付けていないと判定した場合(S51:NO)、判定の処理を繰り返す。
制御部11は良否の判定を受け付けたと判定した場合(S51:YES)、否と受け付けたか否かを判定する(S52)。制御部11は否と受け付けていないと判定した場合(S52:NO)、処理をS51へ戻す。
制御部11は否と受け付けたと判定した場合(S52:YES)、否と判定した結果を所定数入手したときに、異常を検出したブロブ41の検査画像8と、判定結果とを対応付けた教師データを取得する(S53)。
制御部11は教師データを用いて、ブロブ41の検査画像を入力した場合にブロブ41の異常有無情報を出力する異常検出モデル152を生成する(S54)。
以上により、再学習される。これにより、より少ない教師データ量で、正確な異常検出を行うことができるようになる。
The control unit 11 accepts the determination of the quality of the determination of the abnormality detection model 152 based on the pressing of the OK button 53 or the NG button 54 on the second screen 52 by the operator for the selected inspection image 8 (S51). When the control unit 11 determines that the quality determination is not accepted (S51: NO), the determination process is repeated.
When it is determined that the quality determination has been accepted (S51: YES), the control unit 11 determines whether or not the determination has been accepted (S52). When the control unit 11 determines that the rejection is not accepted (S52: NO), the process returns to S51.
When the control unit 11 determines that the result is rejected (S52: YES), the teacher who associates the inspection image 8 of the blob 41 that detected the abnormality with the determination result when a predetermined number of the results of the determination of no are obtained. Acquire data (S53).
The control unit 11 uses the teacher data to generate an abnormality detection model 152 that outputs the abnormality presence / absence information of the blob 41 when the inspection image of the blob 41 is input (S54).
With the above, it is relearned. This makes it possible to perform accurate abnormality detection with a smaller amount of teacher data.

(実施の形態2)
実施の形態2に係る異常検出システム10のPC1は、制御部11が4つの画像処理アルゴリズムに基づいて、異物の有無を検知し、補助記憶部15に各画像処理アルゴリズムに対応するプログラムPを記憶し、複数の異常検出モデル152〜155を記憶してあること以外は、実施の形態1に係るPC1と同様の処理を行う。4つの画像処理アルゴリズムに基づいて検知される異物の種類は、全て同じであってもよく、一部が同じであってもよく、全て異なっていてもよい。異物の種類としては、骨、金属、木材、合成樹脂等が挙げられる。異物の種類が同一である場合、判断値の算出方法が異なる。
また、画像処理アルゴリズムにより、検査物4の異なる種類の異常を検出することにしてもよい。異常の種類として、異物の有無、形状の異常等が挙げられる。
画像処理アルゴリズムの数は4つの場合に限定されない。
(Embodiment 2)
In the PC1 of the abnormality detection system 10 according to the second embodiment, the control unit 11 detects the presence or absence of foreign matter based on four image processing algorithms, and the auxiliary storage unit 15 stores the program P corresponding to each image processing algorithm. However, the same processing as that of the PC 1 according to the first embodiment is performed except that a plurality of abnormality detection models 152 to 155 are stored. The types of foreign substances detected based on the four image processing algorithms may be all the same, some may be the same, or all may be different. Examples of the type of foreign matter include bone, metal, wood, synthetic resin and the like. When the types of foreign substances are the same, the method of calculating the judgment value is different.
Further, the image processing algorithm may be used to detect different types of abnormalities in the inspection object 4. Types of anomalies include the presence or absence of foreign matter, abnormal shape, and the like.
The number of image processing algorithms is not limited to four.

例えばレベル1の画像処理アルゴリズムは、実施の形態1と同様に、対象特定部113は、各画素の輝度変化を強調処理(エッジ検出)して抽出した強調線を含む部分をブロブ41として特定する。異常判定部114は、例えば強調線に囲まれたブロブ41の画像数、面積等の判断値に基づいて、判定を行う。判断値に閾値a及びbを設定し、例えば判断値が閾値未満であれば、特異部は異物でないと判定する。
レベル2の画像処理アルゴリズムにおいては、対象特定部113は、周辺の領域に比べて輝度の変化率が所定値以上となっている特異部をブロブ41として抽出する。異常判定部114は、例えば前記変化率が所定値以上となっている画素数等の判断値に基づいて、判定を行う。
レベル3の画像処理アルゴリズムにおいては、輝度の標準偏差を求め、この標準偏差と比較して輝度が所定レベル以上変化する特異部をブロブ41として特定する。レベル4の画像処理アルゴリズムにおいては、輝度が相違している特異部をブロブ41として特定する。異常判定部114は、これらの特異部の形状が、例えば骨の形状としてあり得るか否かの判断を、画像マッチング処理により行なったりする。
For example, in the level 1 image processing algorithm, as in the first embodiment, the target identification unit 113 specifies the portion including the highlighted line extracted by highlighting the brightness change (edge detection) of each pixel as the blob 41. .. The abnormality determination unit 114 makes a determination based on, for example, determination values such as the number of images and the area of the blob 41 surrounded by the highlighted line. The threshold values a and b are set as the judgment values, and if the judgment value is less than the threshold value, for example, it is determined that the singular portion is not a foreign substance.
In the level 2 image processing algorithm, the target identification unit 113 extracts a singular portion whose brightness change rate is equal to or higher than a predetermined value as the blob 41 as compared with the peripheral region. The abnormality determination unit 114 makes a determination based on, for example, a determination value such as the number of pixels whose rate of change is equal to or greater than a predetermined value.
In the level 3 image processing algorithm, the standard deviation of the brightness is obtained, and the singular portion where the brightness changes by a predetermined level or more as compared with the standard deviation is specified as the blob 41. In the level 4 image processing algorithm, the singular portion having different brightness is specified as the blob 41. The abnormality determination unit 114 determines whether or not the shape of these peculiar portions can be, for example, the shape of a bone by an image matching process.

図15は、異常検出システム10の構成を示すブロック図である。図2と同一部分は同一符号を付して詳細な説明を省略する。
制御部11は、レベル受付部(第1受付部)120を有する。レベルは、異物の有無の検知のための画像処理アルゴリズムに対応し、ここで、レベルは1〜4の4種類あるとする。
レベル受付部120は、作業者によるレベルの選択を受け付ける。図16に示すように作業者が前記Otherボタン55を押圧した場合、制御部11は、第1画面51に、「レベル1」〜「レベル4」までのボタン57a〜57dを表示する。作業者は所望するレベルのボタンを選択する。
選択されたレベルに対応する画像処理アルゴリズムに基づき、対象特定部113はブロブ41を特定し、異常判定部114はブロブ41が異常か正常かを判定する。なお、画像処理アルゴリズムによって、対象特定部113及び異常判定部114の処理が異なるのみでなく、画像処理部112及び画像処理部116の処理も異ならせてもよい。
FIG. 15 is a block diagram showing the configuration of the abnormality detection system 10. The same parts as those in FIG. 2 are designated by the same reference numerals, and detailed description thereof will be omitted.
The control unit 11 has a level reception unit (first reception unit) 120. The level corresponds to the image processing algorithm for detecting the presence or absence of foreign matter, and here, it is assumed that there are four types of levels 1 to 4.
The level reception unit 120 accepts the selection of the level by the worker. As shown in FIG. 16, when the operator presses the Other button 55, the control unit 11 displays the buttons 57a to 57d of "level 1" to "level 4" on the first screen 51. The operator selects the desired level of buttons.
Based on the image processing algorithm corresponding to the selected level, the target identification unit 113 identifies the blob 41, and the abnormality determination unit 114 determines whether the blob 41 is abnormal or normal. Depending on the image processing algorithm, not only the processing of the target identification unit 113 and the abnormality determination unit 114 may be different, but also the processing of the image processing unit 112 and the image processing unit 116 may be different.

異常判定部114は、対象特定部113により特定したブロブ41に対し、画像処理アルゴリズムに基づいて、判断値を算出する。レベル1において、例えば対象特定部113が、各画素の輝度変化を強調処理して抽出した強調線を含む部分をブロブ41として特定する場合、異常判定部114は強調線に囲まれたブロブ41の画像数、面積等の判断値を算出し、算出した判断値に基づいて判定を行う。判断値に対し正常側の閾値a及び異常側の閾値bを設定し(a<b)、算出した判断値が閾値a未満であれば、特異部は異物でなく、正常と判定し、判断値が閾値b以上であれば、特異部は異物であり、ブロブ41は異常であると判定する。 The abnormality determination unit 114 calculates a determination value for the blob 41 specified by the target identification unit 113 based on the image processing algorithm. At level 1, for example, when the target identification unit 113 specifies as the blob 41 the portion including the emphasis line extracted by emphasizing the brightness change of each pixel, the abnormality determination unit 114 is the blob 41 surrounded by the emphasis line. Judgment values such as the number of images and area are calculated, and the judgment is made based on the calculated judgment values. A threshold value a on the normal side and a threshold value b on the abnormal side are set for the judgment value (a <b), and if the calculated judgment value is less than the threshold value a, the singular part is judged to be normal and not a foreign substance, and the judgment value is determined. If is greater than or equal to the threshold value b, it is determined that the singular portion is a foreign substance and the blob 41 is abnormal.

図17に示すように作業者が前記Otherボタン55を2回続けて押圧した場合、制御部11は、第1画面51に、「レベル1」〜「レベル4」の各閾値a及び閾値bを表示する。各レベルの判断値は各画像処理アルゴリズムに基づいて算出され、内容はレベルに応じて異なり、各閾値a及び閾値bも異なり、正常及び異常の範囲も異なる。 As shown in FIG. 17, when the operator presses the Other button 55 twice in succession, the control unit 11 displays the threshold values a and the threshold values b of "level 1" to "level 4" on the first screen 51. indicate. The judgment value of each level is calculated based on each image processing algorithm, the content differs depending on the level, each threshold value a and threshold value b also differ, and the range of normal and abnormal is also different.

制御部11は、上記と同様に、異常検出モデル152として、レベル1に対応する画像処理アルゴリズムにより生成された、ブロブ41に係る検査画像8内における異常の画像特徴量を学習することで、検査画像8を入力とし、異物の有無を示す情報を出力とするニューラルネットワークを生成する。ニューラルネットワークはCNNであり、検査画像8の入力を受け付ける入力層と、異常の有無の識別結果を出力する出力層と、検査画像8の画像特徴量を抽出する中間層とを有する。 Similar to the above, the control unit 11 inspects the abnormality by learning the image feature amount of the abnormality in the inspection image 8 related to the blob 41 generated by the image processing algorithm corresponding to the level 1 as the abnormality detection model 152. A neural network is generated in which image 8 is input and information indicating the presence or absence of foreign matter is output. The neural network is a CNN, and has an input layer that accepts the input of the inspection image 8, an output layer that outputs the identification result of the presence or absence of an abnormality, and an intermediate layer that extracts the image feature amount of the inspection image 8.

制御部11は、複数の検査画像8と、各検査画像8におけるブロブ41の異常を示す情報(異物を有するか、正常であるか)とが対応付けられた教師データを用いて学習を行う。教師データは、ブロブ41の検査画像8に対し、検査画像8のIDと、異常の種類(異物の有無)、ランク(1:異常、0:正常)とがラベル付けされたデータである。
制御部11は、教師データである検査画像8を入力層に入力し、中間層での演算処理を経て、出力層からブロブ41の異常の有無を示す識別結果(正常の確率値及び異常(異物あり)の確率値)を出力させ、異常の確率値を異常値として取得する。なお、出力層から出力される識別結果は、ソフトマックス関数を用いた場合、連続的な確率値(例えば「0」から「1」までの範囲の値)である。
The control unit 11 performs learning by using the teacher data in which the plurality of inspection images 8 and the information indicating the abnormality of the blob 41 in each inspection image 8 (whether it has a foreign substance or is normal) are associated with each other. The teacher data is data in which the ID of the inspection image 8, the type of abnormality (presence or absence of foreign matter), and the rank (1: abnormality, 0: normal) are labeled with respect to the inspection image 8 of the blob 41.
The control unit 11 inputs the inspection image 8 which is the teacher data to the input layer, and after the arithmetic processing in the intermediate layer, the identification result indicating the presence or absence of the abnormality of the blob 41 from the output layer (normal probability value and abnormality (foreign matter)). (Yes) Probability value) is output, and the probability value of abnormality is acquired as an abnormal value. The identification result output from the output layer is a continuous probability value (for example, a value in the range of "0" to "1") when the softmax function is used.

制御部11は、出力層から出力された識別結果を、教師データにおいて検査画像8に対しラベル付けされた情報、すなわち正解値と比較し、出力層からの出力値が正解値に近づくように、中間層での演算処理に用いるパラメータを最適化する。該パラメータは、例えばニューロン間の重み(結合係数)、各ニューロンで用いられる活性化関数の係数などである。パラメータの最適化の方法は特に限定されないが、例えば制御部11は誤差逆伝播法を用いて各種パラメータの最適化を行う。 The control unit 11 compares the identification result output from the output layer with the information labeled for the inspection image 8 in the teacher data, that is, the correct answer value, so that the output value from the output layer approaches the correct answer value. Optimize the parameters used for arithmetic processing in the intermediate layer. The parameters include, for example, the weight between neurons (coupling coefficient), the coefficient of the activation function used in each neuron, and the like. The method of optimizing the parameters is not particularly limited, but for example, the control unit 11 optimizes various parameters by using the backpropagation method.

制御部11は、教師データに含まれる各検査画像8について上記の処理を行い、異常検出モデル152を生成する。制御部11はブロブ41の検査画像8を取得した場合、異常検出モデル152を用いてブロブ41の異常の有無を検出する。
異常検出モデル153〜155も同様に、レベル2〜4に対応する画像処理アルゴリズムにより生成された、ブロブ41に係る検査画像8内における異常の画像特徴量を学習することで、検査画像8を入力とし、異物の有無を示す情報を出力とするニューラルネットワークを生成する。
The control unit 11 performs the above processing on each inspection image 8 included in the teacher data to generate the abnormality detection model 152. When the control unit 11 acquires the inspection image 8 of the blob 41, the control unit 11 detects the presence or absence of an abnormality in the blob 41 by using the abnormality detection model 152.
Similarly, the abnormality detection models 153 to 155 input the inspection image 8 by learning the image feature amount of the abnormality in the inspection image 8 related to the blob 41 generated by the image processing algorithm corresponding to the levels 2 to 4. To generate a neural network that outputs information indicating the presence or absence of foreign matter.

学習検査部117は、選択されたレベルに応じ、検査画像8を異常検出モデル152〜155のいずれかに入力し、上述の二つの確率値を出力させ、異物を有する確率値(異常値)を取得する。 The learning inspection unit 117 inputs the inspection image 8 into one of the abnormality detection models 152 to 155 according to the selected level, outputs the above two probability values, and outputs the probability value (outlier value) of having a foreign substance. get.

図18は、制御部11による異常検出処理の処理手順の一例を示すフローチャートである。
PC1の制御部11は、検査物4を透過し、X線検知部7により検知されたX線に基づき、X線画像を生成する(S61)。
制御部11は、作業者により上述のようにしてレベルを受け付けたか否かを判定する(S62)。制御部11はレベルを受け付けていないと判定した場合(S62:NO)、判定を繰り返す。
制御部11はレベルを受け付けたと判定した場合(S62:YES)、対応するレベルのプログラムPを補助記憶部15から読み出す(S63)。
制御部11は、受け付けたレベルに対応する画像処理アルゴリズムに基づいて、X線画像に対し平滑化フィルタ、特徴抽出フィルタ等により画像処理を行う(S64)。
制御部11は、受け付けたレベルに対応する画像処理アルゴリズムに基づいて、ブロブ解析を行い、ブロブ41を特定する(S65)。
FIG. 18 is a flowchart showing an example of the processing procedure of the abnormality detection process by the control unit 11.
The control unit 11 of the PC 1 passes through the inspection object 4 and generates an X-ray image based on the X-rays detected by the X-ray detection unit 7 (S61).
The control unit 11 determines whether or not the operator has accepted the level as described above (S62). When the control unit 11 determines that the level is not accepted (S62: NO), the determination is repeated.
When the control unit 11 determines that the level has been accepted (S62: YES), the control unit 11 reads the program P of the corresponding level from the auxiliary storage unit 15 (S63).
The control unit 11 performs image processing on the X-ray image by a smoothing filter, a feature extraction filter, or the like based on the image processing algorithm corresponding to the received level (S64).
The control unit 11 performs blob analysis and identifies the blob 41 based on the image processing algorithm corresponding to the received level (S65).

制御部11は、判断値を算出する(S66)。
制御部11は、a≦判断値≦bであるか否かを判定する(S67)。制御部11はa≦判断値≦bでないと判定した場合(S67:NO)、判断値はa未満、又はb超過であるので、判断値<aであるか否かを判定する(S68)。
制御部11は判断値<aであると判定した場合(S68:YES)、異物を有さず、正常であるので、学習検査をスキップして処理を終了する。
制御部11は判断値<aでない、即ち判断値>bであり、異物を有し、確実に異常であると判定した場合(S68:NO)、学習検査をスキップしてS76へ処理を進める。
The control unit 11 calculates a determination value (S66).
The control unit 11 determines whether or not a ≦ determination value ≦ b (S67). When the control unit 11 determines that a ≤ determination value ≤ b is not satisfied (S67: NO), the determination value is less than a or exceeds b, and therefore determines whether or not the determination value <a (S68).
When the control unit 11 determines that the determination value <a (S68: YES), the control unit 11 has no foreign matter and is normal, so the learning test is skipped and the process ends.
When the control unit 11 has a determination value <a, that is, a determination value> b, has a foreign substance, and definitely determines that the abnormality is abnormal (S68: NO), the learning test is skipped and the process proceeds to S76.

制御部11はa≦判断値≦bであると判定した場合(S67:YES)、a≦判断値≦bであるブロブ41が所定の大きさの矩形内に入るように切り出し、切り出し画像を生成する(S69)。
制御部11は、切り出し画像に対し、正規化等の処理を行い、検査画像を生成する(S70)。
制御部11は受け付けたレベルに対応する異常検出モデル152を選択する(S71)。
制御部11は異常検出モデル152に検査画像8を入力し、正常の確率値及び異常の確率値を出力させ、異常値を取得する(S72)。
制御部11は、異常値が閾値以上であるか否かを判定する(S73)。制御部11は異常値が閾値以上であると判定した場合(S73:YES)、異常値をディスプレイ22へ出力し、検査画像8を赤のバウンディングボックス(BB)82により包囲した状態で表示する(S74)。制御部11は異常値が閾値以上でないと判定した場合(S73:NO)、検査画像8を赤のバウンディングボックス(BB)82により包囲していない状態で表示する(S75)。
制御部11は、ブロブ41の異常値及び検査画像IDに基づいて、S68でNGと判定された場合はその検査物4を特定し、検査物4を廃棄するか否かの選別を行い(S76)、処理を終了する。
本実施の形態においては、画像処理アルゴリズムを選択して、所望のレベルで所望の種類の異常について、異常の有無を検出できる。
さらに、S65の対象特定をX線画像に基づいて行う場合、S64の画像処理は省略できる。S70の画像処理も省略できる。
When the control unit 11 determines that a ≦ judgment value ≦ b (S67: YES), the control unit 11 cuts out the blob 41 having a ≦ judgment value ≦ b so as to be inside a rectangle of a predetermined size, and generates a cut-out image. (S69).
The control unit 11 performs processing such as normalization on the cut-out image to generate an inspection image (S70).
The control unit 11 selects the abnormality detection model 152 corresponding to the received level (S71).
The control unit 11 inputs the inspection image 8 to the abnormality detection model 152, outputs a normal probability value and an abnormality probability value, and acquires the abnormality value (S72).
The control unit 11 determines whether or not the abnormal value is equal to or greater than the threshold value (S73). When the control unit 11 determines that the abnormal value is equal to or higher than the threshold value (S73: YES), the control unit 11 outputs the abnormal value to the display 22 and displays the inspection image 8 in a state of being surrounded by the red bounding box (BB) 82 (S73: YES). S74). When the control unit 11 determines that the abnormal value is not equal to or higher than the threshold value (S73: NO), the control unit 11 displays the inspection image 8 in a state where it is not surrounded by the red bounding box (BB) 82 (S75).
Based on the abnormal value of the blob 41 and the inspection image ID, the control unit 11 identifies the inspection object 4 when it is determined to be NG in S68, and selects whether to discard the inspection object 4 (S76). ), End the process.
In this embodiment, an image processing algorithm can be selected to detect the presence or absence of anomalies for a desired type of anomaly at a desired level.
Further, when the target identification of S65 is performed based on the X-ray image, the image processing of S64 can be omitted. The image processing of S70 can also be omitted.

(実施の形態3)
実施の形態3に係るPC1は、制御部11が閾値設定部(設定部)121を有すること以外は、実施の形態1に係るPCと同様の処理を行う。
図19は、異常検出システム10の構成を示すブロック図である。図15と同一部分は同一符号を付して詳細な説明を省略する。
制御部11は、閾値設定部121を有する。閾値設定部121は、作業者によりって入力部16によりいずれかのレベルにつき、閾値a及び閾値bの設定を受け付けた場合、閾値を設定(更新)する。
(Embodiment 3)
The PC 1 according to the third embodiment performs the same processing as the PC according to the first embodiment except that the control unit 11 has the threshold value setting unit (setting unit) 121.
FIG. 19 is a block diagram showing the configuration of the abnormality detection system 10. The same parts as those in FIG. 15 are designated by the same reference numerals, and detailed description thereof will be omitted.
The control unit 11 has a threshold value setting unit 121. When the operator accepts the setting of the threshold value a and the threshold value b for any of the levels by the input unit 16, the threshold value setting unit 121 sets (updates) the threshold value.

図20は、制御部11による閾値の設定処理の処理手順の一例を示すフローチャートである。
制御部11は、作業者によりレベルの選択を受け付けたか否かを判定する(S81)。作業者はOtherボタン55を1回押圧した場合、制御部11は上述の図16に示す第1画面51を表示し、作業者はレベルを選択する。制御部11はレベルを受け付けていないと判定した場合(S81:NO)、この判定の処理を繰り返す。
制御部11は、レベルの選択を受け付けたと判定した場合(S81:YES)、このレベルにつき、閾値a及び閾値bを受け付けたか否かを判定する(S82)。図21に示すように、レベルが選択された場合、制御部11は、第1画面51に、レベルの閾値a及び閾値bを表示する。図21ではレベル1が選択された場合の画面を表示している。作業者は、選択したレベルの閾値a及び閾値bを入力する。制御部11は閾値a及び閾値bを受け付けていないと判定した場合(S82:NO)、この判定処理を繰り返す。
制御部11は閾値a及び閾値bを受け付けた場合(S82:YES)、閾値a及び閾値bを設定して図17のレベル1〜4の閾値a及びbを表示し(S83)、処理を終了する。
FIG. 20 is a flowchart showing an example of a processing procedure of the threshold value setting process by the control unit 11.
The control unit 11 determines whether or not the operator has accepted the selection of the level (S81). When the operator presses the Other button 55 once, the control unit 11 displays the first screen 51 shown in FIG. 16 described above, and the operator selects a level. When the control unit 11 determines that the level is not accepted (S81: NO), the control unit 11 repeats this determination process.
When the control unit 11 determines that the selection of the level has been accepted (S81: YES), the control unit 11 determines whether or not the threshold value a and the threshold value b have been accepted for this level (S82). As shown in FIG. 21, when the level is selected, the control unit 11 displays the threshold value a and the threshold value b of the level on the first screen 51. In FIG. 21, the screen when level 1 is selected is displayed. The operator inputs the threshold a and the threshold b of the selected level. When the control unit 11 determines that the threshold value a and the threshold value b are not accepted (S82: NO), this determination process is repeated.
When the control unit 11 receives the threshold value a and the threshold value b (S82: YES), the control unit 11 sets the threshold value a and the threshold value b, displays the threshold values a and b of levels 1 to 4 in FIG. 17 (S83), and ends the process. To do.

本実施の形態によれば、設定した閾値に基づき、異常判定部114による検出結果が不確実と推定される場合に、学習モデルを用いて良好に異常の有無を判断することができる。 According to the present embodiment, when the detection result by the abnormality determination unit 114 is estimated to be uncertain based on the set threshold value, the presence or absence of the abnormality can be satisfactorily determined using the learning model.

以上のように、本発明の一態様に係る検査装置は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得する取得部と、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定する判定部と、前記判定部の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、検査物の異常の有無に関する情報を出力する学習モデルに、検査物への電磁波の照射により得られた画像を入力して、前記異常の有無に関する情報を取得する学習検査部と、前記異常の有無に関する情報を出力する出力部とを備える。 As described above, the inspection device according to one aspect of the present invention includes an acquisition unit that acquires an image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves, and a determination value calculated based on the image. When the determination unit that determines the presence or absence of abnormality of the inspection object based on the threshold value and the image obtained by irradiating the inspection object with electromagnetic waves according to the determination result of the determination unit are input, the abnormality of the inspection object The learning inspection unit that acquires the information on the presence or absence of the abnormality by inputting the image obtained by irradiating the inspection object with electromagnetic waves into the learning model that outputs the information on the presence or absence of the abnormality, and outputs the information on the presence or absence of the abnormality. It is provided with an output unit.

上記構成によれば、検査物への電磁波の照射により得られた画像に対し、判断値と閾値とに基づいて判定した検査物の異常の有無に応じ、学習モデルに画像を入力して異常の有無を取得する。例えば閾値に基づいて判定した検査物の異常の有無が不確実である場合に、学習モデルに画像を入力して異常の有無を取得することで、精度良く、異物の有無、形状の異常等の異常の有無を検出できる。 According to the above configuration, with respect to the image obtained by irradiating the inspection object with electromagnetic waves, the image is input to the learning model according to the presence or absence of the abnormality of the inspection object judged based on the judgment value and the threshold value, and the abnormality is found. Get the presence or absence. For example, when it is uncertain whether or not there is an abnormality in the inspection object determined based on the threshold value, by inputting an image into the learning model and acquiring the presence or absence of the abnormality, the presence or absence of foreign matter, the presence or absence of the shape abnormality, etc. can be accurately determined. The presence or absence of abnormality can be detected.

上述の検査装置において、前記判定部は、前記画像に対し、画像処理アルゴリズムを適用して判断値を算出し、前記検査物の異常の有無を判定してもよい。 In the above-mentioned inspection device, the determination unit may apply an image processing algorithm to the image to calculate a determination value and determine the presence or absence of an abnormality in the inspection object.

上記構成によれば、所定の画像処理アルゴリズムを適用して算出した判断値と閾値とに基づいて検出した結果が不確実と推定される場合に、異常の有無を精度良く検出できる。 According to the above configuration, when the detection result is estimated to be uncertain based on the judgment value and the threshold value calculated by applying a predetermined image processing algorithm, the presence or absence of an abnormality can be detected with high accuracy.

上述の検査装置において、検査物への電磁波の照射により得られた画像に対し、画像処理アルゴリズムを適用して、前記検査物の異常の有無を判定する領域を特定する特定部を備え、前記判定部は、前記画像処理アルゴリズムが適用された前記領域の画像に基づき算出した判断値と閾値とに基づき、前記検査物の異常の有無を判定し、前記学習検査部は、前記判定部の判定結果に応じ、前記画像処理アルゴリズムが適用された前記領域の画像、又は検査物への電磁波の照射により得られた、前記領域の画像を入力した場合に、前記領域の異常の有無に関する情報を出力する学習モデルに、前記画像処理アルゴリズムが適用された前記領域の画像、又は検査物への電磁波の照射により得られた、前記領域の画像を入力して、前記異常の有無に関する情報を取得してもよい。 In the above-mentioned inspection device, an image processing algorithm is applied to an image obtained by irradiating the inspection object with an electromagnetic wave to provide a specific unit for specifying a region for determining the presence or absence of an abnormality in the inspection object. The unit determines the presence or absence of an abnormality in the inspection object based on the determination value and the threshold value calculated based on the image of the region to which the image processing algorithm is applied, and the learning inspection unit determines the determination result of the determination unit. When the image of the region to which the image processing algorithm is applied or the image of the region obtained by irradiating the inspection object with an electromagnetic wave is input, information regarding the presence or absence of an abnormality in the region is output. Even if the image of the region to which the image processing algorithm is applied or the image of the region obtained by irradiating the inspection object with an electromagnetic wave is input to the training model, information regarding the presence or absence of the abnormality is acquired. Good.

上記構成によれば、異常の有無を判定する領域を特定し、特定した領域について異常の有無を判定し、判定結果に応じて学習モデルを適用するので、異常の有無の検出を効率化できる。 According to the above configuration, the region for determining the presence or absence of an abnormality is specified, the presence or absence of an abnormality is determined for the specified region, and the learning model is applied according to the determination result, so that the detection of the presence or absence of an abnormality can be made more efficient.

上述の検査装置において、画像処理アルゴリズムの選択を受け付ける第1受付部を備えてもよい。 The above-mentioned inspection device may include a first reception unit that accepts selection of an image processing algorithm.

上記構成によれば、異常の内容に応じて画像処理アルゴリズムを選択し、精度良く検査物の異常の有無に関する情報を取得できる。 According to the above configuration, the image processing algorithm can be selected according to the content of the abnormality, and the information regarding the presence or absence of the abnormality of the inspection object can be acquired with high accuracy.

上述の検査装置において、前記閾値を設定する設定部を備えてもよい。 The above-mentioned inspection device may include a setting unit for setting the threshold value.

上記構成によれば、閾値に基づき、学習モデルを適用するか否かが判定されるので、判定部による判定結果が不確実と推定される場合に、学習モデルを用いて良好に異常の有無を判断することができる。 According to the above configuration, it is determined whether or not to apply the learning model based on the threshold value. Therefore, when the determination result by the determination unit is estimated to be uncertain, the learning model is used to satisfactorily determine the presence or absence of abnormality. You can judge.

上述の検査装置において、前記判断値が第1閾値以上第2閾値以下である場合に、前記学習検査部は、前記画像を前記学習モデルに入力してもよい。 In the above-mentioned inspection device, when the determination value is equal to or more than the first threshold value and equal to or less than the second threshold value, the learning inspection unit may input the image into the learning model.

上記構成によれば、例えば判断値が第1閾値未満である場合に確実に正常であり、判断値が第2閾値超過である場合に確実に異常であると推定されるとき、判断値が第1閾値以上第2閾値以下である場合に、学習モデルを適用して良好に異常の有無情報を取得できる。 According to the above configuration, for example, when it is presumed that the judgment value is definitely normal when the judgment value is less than the first threshold value and abnormal when the judgment value exceeds the second threshold value, the judgment value is the first. When it is 1 threshold value or more and 2nd threshold value or less, the learning model can be applied to satisfactorily acquire the presence / absence information of abnormality.

上述の検査装置において、前記判断値が第1閾値未満である場合、前記判定部は、前記領域は正常であると判定し、前記判断値が第2閾値超過である場合、前記判定部は、前記領域は異常であると判定し、前記学習検査部は画像を前記学習モデルに入力しないようにしてもよい。 In the above-mentioned inspection device, when the determination value is less than the first threshold value, the determination unit determines that the region is normal, and when the determination value exceeds the second threshold value, the determination unit determines. The region may be determined to be abnormal, and the learning inspection unit may not input an image into the learning model.

上記構成によれば、検査物が確実に正常又は異常である場合を除き、学習モデルを適用することで、良好に効率良く異常の有無情報を取得できる。 According to the above configuration, the presence / absence information of abnormality can be acquired satisfactorily and efficiently by applying the learning model, except when the inspection object is surely normal or abnormal.

上述の検査装置において、前記出力部は、前記画像を表示し、表示された画像に対し前記出力部の出力結果の良否を受け付ける第2受付部を備えてもよい。 In the above-mentioned inspection device, the output unit may include a second reception unit that displays the image and accepts the quality of the output result of the output unit with respect to the displayed image.

上記構成によれば、作業者により、画像に対し、学習モデルの判断結果の良否を取得して再学習することができる。 According to the above configuration, the worker can acquire the quality of the judgment result of the learning model and relearn the image.

上述の検査装置において、前記画像と、前記良否に関する情報とに基づき、前記学習モデルを再学習する再学習部を備えてもよい。 The above-mentioned inspection device may include a re-learning unit that relearns the learning model based on the image and information on the quality.

上記構成によれば、作業者により受け付けた、出力結果の判断の良否を教師データとして再学習し、より精度が良好である学習モデルを生成できる。 According to the above configuration, it is possible to relearn the quality of the judgment of the output result received by the worker as teacher data and generate a learning model with better accuracy.

上述の検査装置において、前記再学習部は、前記第2受付部により否と受け付けた場合に再学習してもよい。 In the above-mentioned inspection device, the re-learning unit may re-learn when the second reception unit receives a rejection.

上記構成によれば、第2受付部により否と受け付けた場合に、画像と、出力結果の判断の良否とを対応付けた教師データにより再学習するので、より少ない教師データ量で、より精度が良好である学習モデルを生成できる。 According to the above configuration, when the second reception unit accepts a rejection, the image is relearned from the teacher data in which the judgment of the output result is good or bad, so that the accuracy can be improved with a smaller amount of teacher data. A learning model that is good can be generated.

本発明の一態様に係る異常検出方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、処理をコンピュータに実行させる。 In the abnormality detection method according to one aspect of the present invention, an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is acquired, and the inspection is performed based on a judgment value and a threshold value calculated based on the image. Learning to determine the presence or absence of an abnormality in an object and output information regarding the presence or absence of an abnormality in the inspection object when an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality. A computer is made to execute a process of inputting the acquired image into the model and outputting information indicating the presence or absence of abnormality of the inspection object.

上記構成によれば、判定結果に応じ、学習モデルを用いて異常の有無に関する情報を取得するので、例えば判定結果が不確実と推定される場合に、学習モデルに画像を入力して異常の有無を取得することで、精度良く、異物の有無、形状の異常等の異常の有無を検出できる。 According to the above configuration, information on the presence or absence of abnormality is acquired using the learning model according to the judgment result. Therefore, for example, when the judgment result is estimated to be uncertain, an image is input to the learning model to obtain the presence or absence of abnormality. By acquiring, it is possible to accurately detect the presence or absence of foreign matter, the presence or absence of abnormalities such as shape abnormalities.

本発明の一態様に係るコンピュータプログラムは、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、処理をコンピュータに実行させる。 The computer program according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves, and the inspection object is based on a judgment value and a threshold value calculated based on the image. A learning model that determines the presence or absence of abnormalities in the above, and outputs information on the presence or absence of abnormalities in the inspection object when an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality. The computer is made to execute a process of inputting the acquired image and outputting information indicating the presence or absence of abnormality of the inspection object.

上記構成によれば、判定結果に応じ、学習モデルを用いて異常の有無に関する情報を取得するので、例えば判定結果が不確実と推定される場合に、学習モデルに画像を入力して異常の有無を取得することで、精度良く、異物の有無、形状の異常等の異常の有無を検出できる。 According to the above configuration, information on the presence or absence of abnormality is acquired using the learning model according to the judgment result. Therefore, for example, when the judgment result is estimated to be uncertain, an image is input to the learning model to obtain the presence or absence of abnormality. By acquiring, it is possible to accurately detect the presence or absence of foreign matter, the presence or absence of abnormalities such as shape abnormalities.

本発明の一態様に係る学習モデルの生成方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを取得し、前記教師データに基づいて、コンベアに載置された検査物への電磁波の照射により得られた画像が入力された場合に、前記検査物の異常の有無に関する情報を出力する学習モデルを生成する。 In the method of generating a learning model according to one aspect of the present invention, an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is acquired, and the image and information indicating the presence or absence of abnormality of the inspection object are obtained. When the teacher data recorded in association with and is acquired and the image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves is input based on the teacher data, the abnormality of the inspection object is abnormal. Generate a learning model that outputs information about the presence or absence.

上記構成によれば、検査物の異常の内容に対応する、所定の画像処理アルゴリズムを適用して取得した画像を入力した場合等に、前記異常の有無を精度良く取得できる。 According to the above configuration, the presence or absence of the abnormality can be accurately acquired when an image acquired by applying a predetermined image processing algorithm corresponding to the content of the abnormality of the inspection object is input.

本発明の一態様に係る学習モデルは、コンベアに載置された検査物への電磁波の照射により得られた画像が入力される入力層と、前記検査物の異常の有無に関する情報を出力する出力層と、コンベアに載置された検査物への電磁波の照射により得られた画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを用いてパラメータが学習された中間層とを備え、検査物への電磁波の照射により得られた画像が前記入力層に入力された場合に、前記中間層による演算を経て前記検査物の異常の有無に関する情報を前記出力層から出力するようにコンピュータを機能させる。 The learning model according to one aspect of the present invention has an input layer into which an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is input, and an output for outputting information regarding the presence or absence of abnormality in the inspection object. An intermediate in which parameters are learned using teacher data recorded by associating an image obtained by irradiating a layer and an inspection object placed on a conveyor with an electromagnetic wave and information indicating the presence or absence of an abnormality in the inspection object. When an image obtained by irradiating an inspection object with an electromagnetic wave is input to the input layer, information regarding the presence or absence of abnormality of the inspection object is output from the output layer through calculations by the intermediate layer. Make your computer work as you do.

上記構成によれば、検査物の異常の内容に対応する、所定の画像処理アルゴリズムを適用して取得した画像を入力した場合等に、前記異常の有無を精度良く取得できる。 According to the above configuration, the presence or absence of the abnormality can be accurately acquired when an image acquired by applying a predetermined image processing algorithm corresponding to the content of the abnormality of the inspection object is input.

今回開示された実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。
例えば、検査物は食品に限定されず、包装体、工業製品等であってもよい。
検査物4に照射する電磁波はX線に限定されず、テラヘルツ波、赤外線及び可視光等であってもよい。
また、対象特定部113が、a≦判断値≦bであるブロブ41を抽出することにしてもよい。
The embodiments disclosed this time should be considered to be exemplary in all respects and not restrictive. The scope of the present invention is indicated by the scope of claims, not the above-mentioned meaning, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.
For example, the inspection product is not limited to food, and may be a package, an industrial product, or the like.
The electromagnetic wave irradiating the inspection object 4 is not limited to X-rays, and may be terahertz waves, infrared rays, visible light, or the like.
Further, the target specifying unit 113 may extract the blob 41 in which a ≦ determination value ≦ b.

1 PC(検査装置)
10 異常検出システム
11 制御部
12 主記憶部
13 通信部
14 表示部
15 補助記憶部
P プログラム
151 検査画像DB
152〜155 異常検出モデル
156 記録媒体
2 X線検査機
22 ディスプレイ
3 X線照射部
4 検査物
8 検査画像
81、82 バウンディングボックス
5 表示画面
6 搬送部
61 搬送ベルト
7 X線検知部
71 検知ライン
1 PC (inspection device)
10 Anomaly detection system 11 Control unit 12 Main storage unit 13 Communication unit 14 Display unit 15 Auxiliary storage unit P program 151 Inspection image DB
152-155 Abnormality detection model 156 Recording medium 2 X-ray inspection machine 22 Display 3 X-ray irradiation unit 4 Inspection object 8 Inspection image 81, 82 Bounding box 5 Display screen 6 Conveyor unit 61 Conveyance belt 7 X-ray detection unit 71 Detection line

発明の一態様に係る検査装置は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得する取得部と、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定する特定部と、前記特定部で特定したブロブに基づき判断値を算出し、算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定する判定部と、前記判定部が前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を取得する学習検査部と、前記異常の有無に関する情報を出力する出力部とを備える。
ここで、「電磁波の照射により得られた画像」とは、電磁波に基づく画像、及び該画像を画像処理して得られた画像を含む。
The inspection device according to one aspect of the present invention is based on an acquisition unit that acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and the brightness of each pixel in the image. A judgment value is calculated based on a specific part that specifies a blob that determines the presence or absence of an abnormality in the inspection object and a blob that is specified in the specific part, and the calculated judgment value is the first threshold value on the normal side and the second threshold value on the abnormal side. and whether a determination unit whether the intermediate value between the threshold value, if the determination section determines that the is an intermediate value, when input images including the identified blobs, the inspected anomaly A learning inspection unit that inputs an image containing a specified blob into a learning model that outputs information regarding the presence or absence of the abnormality and acquires information regarding the presence or absence of the abnormality, and an output unit that outputs information regarding the presence or absence of the abnormality. Be prepared.
Here, the "image obtained by irradiation with electromagnetic waves" includes an image based on electromagnetic waves and an image obtained by image processing the image.

本発明の一態様に係る異常検出方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定し、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定し、前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、前記検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を出力する、処理をコンピュータに実行させる。 The abnormality detection method according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and the inspection object is based on the brightness of each pixel in the image. The blob for determining the presence or absence of the abnormality is specified, and it is determined whether or not the judgment value calculated based on the identified blob is an intermediate value between the first threshold value on the normal side and the second threshold value on the abnormal side . If it is determined that the an intermediate value, when entering an image including a blob identified, the learning model for outputting information about the presence or absence of abnormality of the inspected object, receives an image that includes the identified blobs Then, the computer is made to execute the process of outputting the information regarding the presence or absence of the abnormality.

本発明の一態様に係るコンピュータプログラムは、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定し、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定し、前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、前記検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を出力する、処理をコンピュータに実行させる。 The computer program according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and based on the brightness of each pixel of the image, the inspection object. identify determining blob the presence or absence of an abnormality, the determination value calculated based on the identified blob, it is determined whether the intermediate value between the second threshold value of the first threshold and the abnormal side of the normal side, the If it is determined that the intermediate value, when entering an image including a blob identified, the learning model for outputting information about the presence or absence of abnormality of the inspected object, and enter the image containing the identified blobs , The computer is made to execute the process of outputting the information regarding the presence or absence of the abnormality.

本発明の一態様に係る学習モデルの生成方法は、コンベアに載置された検査物への電磁波の照射により得られた画像のうち、各画素の輝度に基づいて特定した、前記検査物の異常の有無を判定するブロブを含む画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを取得し、前記教師データに基づいて、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間であると判定した場合、特定されたブロブを含む画像が入力されたときに、前記検査物の異常の有無に関する情報を出力する学習モデルを生成する。 The method of generating a learning model according to one aspect of the present invention is an abnormality of the inspection object identified based on the brightness of each pixel in the image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves. The teacher data recorded by associating the image including the blob for determining the presence or absence of the test object with the information indicating the presence or absence of the abnormality of the inspection object is acquired, and the judgment value calculated based on the specified blob based on the teacher data is obtained. If it is determined that the intermediate the second threshold value of the first threshold and the abnormal side of the normal side, when the image including the blobs identified is input, outputs the information about the presence or absence of abnormality of the inspected Generate a learning model.

本発明の一態様に係る学習モデルは、コンベアに載置された検査物への電磁波の照射により得られた画像のうち、各画素の輝度に基づいて特定した、前記検査物の異常の有無を判定するブロブに基づき算出した判断値が、正常側の第1閾値と、異常側の第2閾値との中間であると判定した場合に、特定されたブロブを含む画像が入力される入力層と、前記検査物の異常の有無に関する情報を出力する出力層と、特定されたブロブを含む画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを用いてパラメータが学習された中間層とを備え、特定されたブロブを含む画像が前記入力層に入力された場合に、前記中間層による演算を経て前記検査物の異常の有無に関する情報を前記出力層から出力するようにコンピュータを機能させる。 In the learning model according to one aspect of the present invention, among the images obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves, the presence or absence of abnormality of the inspection object specified based on the brightness of each pixel is determined. When it is determined that the judgment value calculated based on the blob to be determined is between the first threshold value on the normal side and the second threshold value on the abnormal side, the input layer into which the image including the specified blob is input. , Parameters are learned using the output layer that outputs information regarding the presence or absence of abnormality in the inspection object, the image containing the specified blob, and the teacher data recorded in association with the information indicating the presence or absence of abnormality in the inspection object. When an image containing the specified blob is input to the input layer, the output layer outputs information regarding the presence or absence of abnormality of the inspection object through a calculation by the intermediate layer. Make your computer work.

以上のように、本発明の一態様に係る検査装置は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得する取得部と、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定する特定部と、前記特定部で特定したブロブに基づき判断値を算出し、算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定する判定部と、前記判定部が前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を取得する学習検査部と、前記異常の有無に関する情報を出力する出力部とを備える。 As described above, the inspection device according to one aspect of the present invention includes an acquisition unit that acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and the brightness of each pixel in the image. Based on the specific unit that identifies the blob that determines the presence or absence of abnormality in the inspection object, and the determination value calculated based on the blob specified by the specific unit, the calculated determination value is the first threshold value on the normal side. an intermediate of whether the determination unit is a value of the second threshold value of the abnormal side, if the determination section determines that the is an intermediate value, when input images including the identified blobs , An image containing the specified blob is input to the learning model that outputs information on the presence or absence of abnormality of the inspection object, and the learning inspection unit that acquires the information on the presence or absence of the abnormality and outputs the information on the presence or absence of the abnormality. It is provided with an output unit.

上記構成によれば、検査物への電磁波の照射により得られた画像に対し、判断値と閾値とに基づいて判定した検査物の異常の有無に応じ、学習モデルに画像を入力して異常の有無を取得する。例えば閾値に基づいて判定した検査物の異常の有無が不確実である場合に、学習モデルに画像を入力して異常の有無を取得することで、精度良く、異物の有無、形状の異常等の異常の有無を検出できる。
上記構成によれば、所定の画像処理アルゴリズムを適用して算出した判断値と閾値とに基づいて検出した結果が不確実と推定される場合に、異常の有無を精度良く検出できる。
上記構成によれば、異常の有無を判定するブロブを特定し、特定したブロブについて異常の有無を判定し、判定結果に応じて学習モデルを適用するので、異常の有無の検出を効率化できる。
According to the above configuration, with respect to the image obtained by irradiating the inspection object with electromagnetic waves, the image is input to the learning model according to the presence or absence of the abnormality of the inspection object judged based on the judgment value and the threshold value, and the abnormality is found. Get the presence or absence. For example, when it is uncertain whether or not there is an abnormality in the inspection object determined based on the threshold value, by inputting an image into the learning model and acquiring the presence or absence of the abnormality, the presence or absence of foreign matter, the presence or absence of the shape abnormality, etc. The presence or absence of abnormality can be detected.
According to the above configuration, when the detection result is estimated to be uncertain based on the judgment value and the threshold value calculated by applying a predetermined image processing algorithm, the presence or absence of an abnormality can be detected with high accuracy.
According to the above configuration, the blobs for determining the presence / absence of abnormality are specified, the presence / absence of abnormality is determined for the specified blob, and the learning model is applied according to the determination result, so that the detection of the presence / absence of abnormality can be made more efficient.

上述の検査装置において、前記特定部、画像処理アルゴリズムを適用して、前記ブロブを特定する。 In the above inspection device, the specifying unit applies the images processing algorithms, identifying the blob.

上述の検査装置において、前記第1閾値及び第2閾値を設定する設定部を備えてもよい。 The above-mentioned inspection device may include a setting unit for setting the first threshold value and the second threshold value .

本発明の一態様に係る異常検出方法は、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定し、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定し、前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、前記検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を出力する、処理をコンピュータに実行させる。 The abnormality detection method according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and the inspection object is based on the brightness of each pixel in the image. The blob for determining the presence or absence of the abnormality is specified, and it is determined whether or not the judgment value calculated based on the identified blob is an intermediate value between the first threshold value on the normal side and the second threshold value on the abnormal side . If it is determined that the an intermediate value, when entering an image including a blob identified, the learning model for outputting information about the presence or absence of abnormality of the inspected object, receives an image that includes the identified blobs Te, before outputting the information as to whether or not Kikoto normal to execute the process to the computer.

本発明の一態様に係るコンピュータプログラムは、コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像のうち、各画素の輝度に基づいて、前記検査物の異常の有無を判定するブロブを特定し、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間の値であるか否かを判定し、前記中間の値であると判定した場合、特定されたブロブを含む画像を入力したときに、前記検査物の異常の有無に関する情報を出力する学習モデルに、特定されたブロブを含む画像を入力して、前記異常の有無に関する情報を出力する、処理をコンピュータに実行させる。 The computer program according to one aspect of the present invention acquires an image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave, and based on the brightness of each pixel of the image, the inspection object. identify determining blob the presence or absence of an abnormality, the determination value calculated based on the identified blob, it is determined whether the intermediate value between the second threshold value of the first threshold and the abnormal side of the normal side, the If it is determined that the intermediate value, when entering an image including a blob identified, the learning model for outputting information about the presence or absence of abnormality of the inspected object, and enter the image containing the identified blobs , before outputting the information as to whether or not Kikoto normal to execute the process to the computer.

本発明の一態様に係る学習モデルの生成方法は、コンベアに載置された検査物への電磁波の照射により得られた画像のうち、各画素の輝度に基づいて特定した、前記検査物の異常の有無を判定するブロブを含む画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを取得し、前記教師データに基づいて、特定したブロブに基づき算出した判断値が、正常側の第1閾値と異常側の第2閾値との中間であると判定した場合、特定されたブロブを含む画像が入力されたときに、前記検査物の異常の有無に関する情報を出力する学習モデルを生成する。 The method of generating a learning model according to one aspect of the present invention is an abnormality of the inspection object identified based on the brightness of each pixel in the image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves. The teacher data recorded by associating the image including the blob for determining the presence or absence of the test object with the information indicating the presence or absence of the abnormality of the inspection object is acquired, and the judgment value calculated based on the specified blob based on the teacher data is obtained. If it is determined that the intermediate the second threshold value of the first threshold and the abnormal side of the normal side, when the image including the blobs identified is input, outputs the information about the presence or absence of abnormality of the inspected Generate a learning model.

本発明の一態様に係る学習モデルは、コンベアに載置された検査物への電磁波の照射により得られた画像のうち、各画素の輝度に基づいて特定した、前記検査物の異常の有無を判定するブロブに基づき算出した判断値が、正常側の第1閾値と、異常側の第2閾値との中間であると判定した場合に、特定されたブロブを含む画像が入力される入力層と、前記検査物の異常の有無に関する情報を出力する出力層と、特定されたブロブを含む画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを用いてパラメータが学習された中間層とを備え、特定されたブロブを含む画像が前記入力層に入力された場合に、前記中間層による演算を経て前記検査物の異常の有無に関する情報を前記出力層から出力するようにコンピュータを機能させる。 In the learning model according to one aspect of the present invention, among the images obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves, the presence or absence of abnormality of the inspection object specified based on the brightness of each pixel is determined. When it is determined that the judgment value calculated based on the blob to be determined is between the first threshold value on the normal side and the second threshold value on the abnormal side, the input layer into which the image including the specified blob is input. , Parameters are learned using the output layer that outputs information regarding the presence or absence of abnormality in the inspection object, the image containing the specified blob, and the teacher data recorded in association with the information indicating the presence or absence of abnormality in the inspection object. When an image containing the specified blob is input to the input layer, the output layer outputs information regarding the presence or absence of abnormality of the inspection object through a calculation by the intermediate layer. Make your computer work.

Claims (14)

コンベアに載置された検査物への電磁波の照射により得られた画像を取得する取得部と、
前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定する判定部と、
前記判定部の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、検査物の異常の有無に関する情報を出力する学習モデルに、検査物への電磁波の照射により得られた画像を入力して、前記異常の有無に関する情報を取得する学習検査部と、
前記異常の有無に関する情報を出力する出力部と
を備える検査装置。
An acquisition unit that acquires an image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves, and an acquisition unit.
A determination unit that determines the presence or absence of an abnormality in the inspection object based on the determination value calculated based on the image and the threshold value, and
By irradiating the inspection object with electromagnetic waves, the learning model that outputs information on the presence or absence of abnormalities in the inspection object when an image obtained by irradiating the inspection object with electromagnetic waves is input according to the judgment result of the determination unit. A learning inspection unit that inputs the obtained image and acquires information on the presence or absence of the abnormality.
An inspection device including an output unit that outputs information regarding the presence or absence of the abnormality.
前記判定部は、前記画像に対し、画像処理アルゴリズムを適用して判断値を算出し、前記検査物の異常の有無を判定する、請求項1に記載の検査装置。 The inspection device according to claim 1, wherein the determination unit calculates a determination value by applying an image processing algorithm to the image, and determines the presence or absence of an abnormality in the inspection object. 検査物への電磁波の照射により得られた画像に対し、画像処理アルゴリズムを適用して、前記検査物の異常の有無を判定する領域を特定する特定部を備え、
前記判定部は、
前記画像処理アルゴリズムが適用された前記領域の画像に基づき算出した判断値と閾値とに基づき、前記検査物の異常の有無を判定し、
前記学習検査部は、
前記判定部の判定結果に応じ、前記画像処理アルゴリズムが適用された前記領域の画像、又は検査物への電磁波の照射により得られた、前記領域の画像を入力した場合に、前記領域の異常の有無に関する情報を出力する学習モデルに、前記画像処理アルゴリズムが適用された前記領域の画像、又は検査物への電磁波の照射により得られた、前記領域の画像を入力して、前記異常の有無に関する情報を取得する
請求項1又は2に記載の検査装置。
An image processing algorithm is applied to an image obtained by irradiating an inspection object with electromagnetic waves to provide a specific portion for specifying a region for determining the presence or absence of an abnormality in the inspection object.
The determination unit
Based on the judgment value and the threshold value calculated based on the image of the area to which the image processing algorithm is applied, the presence or absence of abnormality of the inspection object is determined.
The learning inspection department
When the image of the region to which the image processing algorithm is applied or the image of the region obtained by irradiating the inspection object with an electromagnetic wave is input according to the determination result of the determination unit, the abnormality of the region is found. An image of the region to which the image processing algorithm is applied or an image of the region obtained by irradiating the inspection object with an electromagnetic wave is input to a learning model that outputs information regarding the presence or absence of the abnormality. The inspection device according to claim 1 or 2 for acquiring information.
画像処理アルゴリズムの選択を受け付ける第1受付部を備える、請求項3に記載の検査装置。 The inspection device according to claim 3, further comprising a first reception unit that accepts selection of an image processing algorithm. 前記閾値を設定する設定部を備える、請求項1から4までのいずれか1項に記載の検査装置。 The inspection device according to any one of claims 1 to 4, further comprising a setting unit for setting the threshold value. 前記判断値が第1閾値以上第2閾値以下である場合に、前記学習検査部は、前記画像を前記学習モデルに入力する、請求項1から5まのでいずれか1項に記載の検査装置。 The inspection device according to any one of claims 1 to 5, wherein when the determination value is equal to or greater than a first threshold value and is equal to or less than a second threshold value, the learning inspection unit inputs the image into the learning model. 前記判断値が第1閾値未満である場合、前記判定部は、前記領域は正常であると判定し、
前記判断値が第2閾値超過である場合、前記判定部は、前記領域は異常であると判定し、
前記学習検査部は画像を前記学習モデルに入力しない、請求項3から5まのでいずれか1項に記載の検査装置。
When the determination value is less than the first threshold value, the determination unit determines that the region is normal, and determines that the region is normal.
When the determination value exceeds the second threshold value, the determination unit determines that the region is abnormal, and determines that the region is abnormal.
The inspection device according to any one of claims 3 to 5, wherein the learning inspection unit does not input an image into the learning model.
前記出力部は、前記画像を表示し、
表示された画像に対し前記出力部の出力結果の良否を受け付ける第2受付部を備える、請求項1から7まのでいずれか1項に記載の検査装置。
The output unit displays the image and
The inspection device according to any one of claims 1 to 7, further comprising a second reception unit that receives the quality of the output result of the output unit with respect to the displayed image.
前記画像と、前記良否に関する情報とに基づき、前記学習モデルを再学習する再学習部を備える、請求項8に記載の検査装置。 The inspection device according to claim 8, further comprising a re-learning unit that relearns the learning model based on the image and information on the quality. 前記再学習部は、前記第2受付部により否と受け付けた場合に再学習する、請求項9に記載の検査装置。 The inspection device according to claim 9, wherein the re-learning unit relearns when the second reception unit receives a rejection. コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、
前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、
前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、
処理をコンピュータに実行させる、異常検出方法。
The image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves is acquired.
The presence or absence of abnormality in the inspection object is determined based on the determination value calculated based on the image and the threshold value.
When an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality, the acquired image is input to the learning model that outputs information on the presence or absence of the abnormality of the inspection object. And outputs the information indicating the presence or absence of abnormality of the inspection object.
Anomaly detection method that causes a computer to perform processing.
コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、
前記画像に基づき算出した判断値と閾値とに基づいて前記検査物の異常の有無を判定し、
前記異常の有無の判定結果に応じ、検査物への電磁波の照射により得られた画像を入力した場合に、前記検査物の異常の有無に関する情報を出力する学習モデルに、取得した画像を入力して、前記検査物の異常の有無を示す情報を出力する、
処理をコンピュータに実行させる、コンピュータプログラム。
The image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves is acquired.
The presence or absence of abnormality in the inspection object is determined based on the determination value calculated based on the image and the threshold value.
When an image obtained by irradiating the inspection object with electromagnetic waves is input according to the determination result of the presence or absence of the abnormality, the acquired image is input to the learning model that outputs information on the presence or absence of the abnormality of the inspection object. And outputs the information indicating the presence or absence of abnormality of the inspection object.
A computer program that lets a computer perform processing.
コンベアに載置された検査物への電磁波の照射により得られた画像を取得し、前記画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを取得し、
前記教師データに基づいて、コンベアに載置された検査物への電磁波の照射により得られた画像が入力された場合に、前記検査物の異常の有無に関する情報を出力する学習モデルを生成する
学習モデルの生成方法。
An image obtained by irradiating an inspection object placed on a conveyor with an electromagnetic wave is acquired, and teacher data recorded by associating the image with information indicating the presence or absence of an abnormality in the inspection object is acquired.
Learning to generate a learning model that outputs information on the presence or absence of abnormality of the inspection object when an image obtained by irradiating the inspection object placed on the conveyor with electromagnetic waves is input based on the teacher data. How to generate a model.
コンベアに載置された検査物への電磁波の照射により得られた画像が入力される入力層と、
前記検査物の異常の有無に関する情報を出力する出力層と、
コンベアに載置された検査物への電磁波の照射により得られた画像と、前記検査物の異常の有無を示す情報とを関連付けて記録した教師データを用いてパラメータが学習された中間層と
を備え、
検査物への電磁波の照射により得られた画像が前記入力層に入力された場合に、前記中間層による演算を経て前記検査物の異常の有無に関する情報を前記出力層から出力するように
コンピュータを機能させる学習モデル。
An input layer into which an image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves is input, and
An output layer that outputs information regarding the presence or absence of abnormalities in the inspection object, and
An image obtained by irradiating an inspection object placed on a conveyor with electromagnetic waves and an intermediate layer whose parameters have been learned using teacher data recorded by associating information indicating the presence or absence of abnormality of the inspection object. Prepare,
When an image obtained by irradiating an inspection object with electromagnetic waves is input to the input layer, the computer is configured to output information regarding the presence or absence of abnormality of the inspection object from the output layer through calculations by the intermediate layer. A learning model that works.
JP2019051401A 2019-03-19 2019-03-19 Inspection device, abnormality detection method, computer program, learning model generation method, and learning model Active JP6749655B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019051401A JP6749655B1 (en) 2019-03-19 2019-03-19 Inspection device, abnormality detection method, computer program, learning model generation method, and learning model
PCT/JP2020/003347 WO2020189044A1 (en) 2019-03-19 2020-01-30 Inspection device, abnormality detection method, computer program, learning model generation method, and learning model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019051401A JP6749655B1 (en) 2019-03-19 2019-03-19 Inspection device, abnormality detection method, computer program, learning model generation method, and learning model

Publications (2)

Publication Number Publication Date
JP6749655B1 JP6749655B1 (en) 2020-09-02
JP2020153765A true JP2020153765A (en) 2020-09-24

Family

ID=72276733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019051401A Active JP6749655B1 (en) 2019-03-19 2019-03-19 Inspection device, abnormality detection method, computer program, learning model generation method, and learning model

Country Status (2)

Country Link
JP (1) JP6749655B1 (en)
WO (1) WO2020189044A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220061675A (en) * 2020-11-06 2022-05-13 한국생산기술연구원 Deep learning-based can welding defect detection system and defect detection method using the same

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7136329B2 (en) * 2019-03-27 2022-09-13 日本電気株式会社 Abnormality detection device, control method, and program
CN112487973B (en) * 2020-11-30 2023-09-12 阿波罗智联(北京)科技有限公司 Updating method and device for user image recognition model
JP2023000672A (en) * 2021-06-18 2023-01-04 株式会社サタケ Sorting machine, method for discriminating defective article, and sorting method
WO2023017611A1 (en) * 2021-08-13 2023-02-16 株式会社ハシマ Learning model generation method, learning model, inspection device, inspection method, and computer program
CN114937028B (en) * 2022-06-21 2023-12-08 苏州上舜精密工业科技有限公司 Intelligent identification and recognition linear sliding table module quality detection method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007263848A (en) * 2006-03-29 2007-10-11 Anritsu Sanki System Co Ltd X-ray inspection system
JP2010054380A (en) * 2008-08-28 2010-03-11 Ishida Co Ltd X-ray inspection apparatus
JP2010198476A (en) * 2009-02-26 2010-09-09 Omron Corp Defect detecting apparatus, defect detecting method and defect detecting program
JP2012137387A (en) * 2010-12-27 2012-07-19 Anritsu Sanki System Co Ltd X-ray inspection device
JP2014153906A (en) * 2013-02-08 2014-08-25 Honda Motor Co Ltd Inspection device, inspection method and program
JP2016156647A (en) * 2015-02-23 2016-09-01 株式会社 システムスクエア Inspection device using electromagnetic wave
WO2016152485A1 (en) * 2015-03-20 2016-09-29 株式会社イシダ Inspection apparatus
JP2018048845A (en) * 2016-09-20 2018-03-29 株式会社イシダ Optical inspection device
WO2018071137A1 (en) * 2016-10-14 2018-04-19 Kla-Tencor Corporation Diagnostic systems and methods for deep learning models configured for semiconductor applications
JP2018536236A (en) * 2015-11-16 2018-12-06 オービタル インサイト インコーポレイテッド Detection and analysis of moving vehicles using low resolution remote sensing images
WO2019151393A1 (en) * 2018-01-31 2019-08-08 株式会社ニチレイフーズ Food inspection system, food inspection program, food inspection method and food production method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018150607A1 (en) * 2017-02-20 2018-08-23 Serendipity株式会社 Appearance inspection device, lighting device, and imaging lighting device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007263848A (en) * 2006-03-29 2007-10-11 Anritsu Sanki System Co Ltd X-ray inspection system
JP2010054380A (en) * 2008-08-28 2010-03-11 Ishida Co Ltd X-ray inspection apparatus
JP2010198476A (en) * 2009-02-26 2010-09-09 Omron Corp Defect detecting apparatus, defect detecting method and defect detecting program
JP2012137387A (en) * 2010-12-27 2012-07-19 Anritsu Sanki System Co Ltd X-ray inspection device
JP2014153906A (en) * 2013-02-08 2014-08-25 Honda Motor Co Ltd Inspection device, inspection method and program
JP2016156647A (en) * 2015-02-23 2016-09-01 株式会社 システムスクエア Inspection device using electromagnetic wave
WO2016152485A1 (en) * 2015-03-20 2016-09-29 株式会社イシダ Inspection apparatus
JP2018536236A (en) * 2015-11-16 2018-12-06 オービタル インサイト インコーポレイテッド Detection and analysis of moving vehicles using low resolution remote sensing images
JP2018048845A (en) * 2016-09-20 2018-03-29 株式会社イシダ Optical inspection device
WO2018071137A1 (en) * 2016-10-14 2018-04-19 Kla-Tencor Corporation Diagnostic systems and methods for deep learning models configured for semiconductor applications
WO2019151393A1 (en) * 2018-01-31 2019-08-08 株式会社ニチレイフーズ Food inspection system, food inspection program, food inspection method and food production method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
落合俊介: "X線画像を用いた異物検査手法の検討", 平成26年度(第65回)電気・情報関連学会中国支部連合大会 講演論文集, JPN6020025435, 1 October 2014 (2014-10-01), pages 157 - 158, ISSN: 0004306710 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220061675A (en) * 2020-11-06 2022-05-13 한국생산기술연구원 Deep learning-based can welding defect detection system and defect detection method using the same
KR102456491B1 (en) * 2020-11-06 2022-10-20 한국생산기술연구원 Deep learning-based can welding defect detection system and defect detection method using the same

Also Published As

Publication number Publication date
JP6749655B1 (en) 2020-09-02
WO2020189044A1 (en) 2020-09-24

Similar Documents

Publication Publication Date Title
WO2020189044A1 (en) Inspection device, abnormality detection method, computer program, learning model generation method, and learning model
JP5546317B2 (en) Visual inspection device, visual inspection discriminator generation device, visual inspection discriminator generation method, and visual inspection discriminator generation computer program
CN106568783A (en) Hardware part defect detecting system and method
JP2021140739A (en) Program, method for creating learned model, information processing method and information processing device
Bhatt et al. An analysis of the performance of Artificial Neural Network technique for apple classification
Adem et al. Defect detection of seals in multilayer aseptic packages using deep learning
Zhang et al. Computer vision estimation of the volume and weight of apples by using 3d reconstruction and noncontact measuring methods
WO2023084543A1 (en) System and method for leveraging neural network based hybrid feature extraction model for grain quality analysis
Huang et al. Smart agriculture: real‐time classification of green coffee beans by using a convolutional neural network
Jayasankar et al. Fruit freshness detection using raspberry pi
CN114303157A (en) Training data generation device, inspection device, and program
JP6742037B1 (en) Learning model generation method, learning model, inspection device, abnormality detection method, and computer program
Pujari et al. Detection and classification of fungal disease with radon transform and support vector machine affected on cereals
Shi et al. Nondestructive discrimination of analogous density foreign matter inside soy protein meat semi-finished products based on transmission hyperspectral imaging
WO2023017611A1 (en) Learning model generation method, learning model, inspection device, inspection method, and computer program
KR102597692B1 (en) Method, apparatus, and computer program for measuring volume of objects by using image
Sarfraz Computer Vision and Image Processing in Intelligent Systems and Multimedia Technologies
WO2021119946A1 (en) Food inspection solution
Suresh et al. Fresko pisces: fish freshness identification using deep learning
Rahman et al. Automated sorting of recycled paper using smart image processing
Nyman Pixel classification of hyperspectral images
Bobulski et al. Deep Learning Method for Classifying Items into Categories for Dutch Auctions
Hasan et al. Framework for fish freshness detection and rotten fish removal in Bangladesh using mask R–CNN method with robotic arm and fisheye analysis
Malyadri et al. Quality Testing of Rice Grains using SVM
Chew Anomaly detection for vision-based inspection

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191225

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20191226

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20200205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200501

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200805

R150 Certificate of patent or registration of utility model

Ref document number: 6749655

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250