JP2022160796A - Food product inspection system, food product inspection learning device and food product inspection method - Google Patents

Food product inspection system, food product inspection learning device and food product inspection method Download PDF

Info

Publication number
JP2022160796A
JP2022160796A JP2021065224A JP2021065224A JP2022160796A JP 2022160796 A JP2022160796 A JP 2022160796A JP 2021065224 A JP2021065224 A JP 2021065224A JP 2021065224 A JP2021065224 A JP 2021065224A JP 2022160796 A JP2022160796 A JP 2022160796A
Authority
JP
Japan
Prior art keywords
food
defective
image
food inspection
learning
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
JP2021065224A
Other languages
Japanese (ja)
Other versions
JP7097642B1 (en
Inventor
啓輔 佐々木
Keisuke Sasaki
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.)
Yoshiizumi Industry Corp
Original Assignee
Yoshiizumi Industry Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yoshiizumi Industry Corp filed Critical Yoshiizumi Industry Corp
Priority to JP2021065224A priority Critical patent/JP7097642B1/en
Application granted granted Critical
Publication of JP7097642B1 publication Critical patent/JP7097642B1/en
Publication of JP2022160796A publication Critical patent/JP2022160796A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Input (AREA)
  • Image Analysis (AREA)

Abstract

To provide a food product inspection system and food product inspection method which can quickly and easily reflect a determination criterion of a non-defective and a defective for a site worker on determination means of a food product inspection device.SOLUTION: A food product inspection system 100 comprises: a food product inspection device 110; and a food product inspection learning device 120. The food product inspection device 110 comprises: a first camera 21 which images a food product; and determination means 30 which determines whether a food product is non-defective or defective by receiving input of an image of the food product. The determination means 30 is constituted by a multi-layer neural network, and learned by using an image of a non-defective and/or an image of a defective in advance. The food product inspection learning device 120 comprises: a second camera 22 which images the hand of the worker; and storage means 50 which stores an image equivalent to the defective that is discarded among the images captured by the first camera 21 when the worker determines that the food product is the defective and discards the defective. The determination means 30 is re-learned by using the stored image of the defective.SELECTED DRAWING: Figure 1

Description

本発明は、食品を良品と異物などの不良品とに判別する、食品検査システム、食品検査学習装置、および食品検査方法に関する。 TECHNICAL FIELD The present invention relates to a food inspection system, a food inspection learning device, and a food inspection method for distinguishing good food from defective food such as foreign matter.

食品を検査する装置、方法に関して、以下の発明が出願されている。
特許文献1(国際公開2018/038123号公報)には、異物の検出を高速に行うことができる食品検査装置が開示されている。
The following inventions have been filed with respect to an apparatus and method for inspecting food.
Patent Literature 1 (International Publication No. 2018/038123) discloses a food inspection device capable of detecting foreign matter at high speed.

特許文献1に記載の食品検査装置は、搬送手段と、光照射手段と、検査対象物の映像を撮像する撮像手段と、第1の光学フィルター及び/又は第2の光学フィルター、ないし波長特異的な光源を用いて、300nm以上1100nm以下の光から異物に特徴的な異物特定波長を強調する波長強調手段と、異物を識別する識別処理装置と、を備え、識別処理装置は、撮像された映像を、光強度に応じた256段階以下の階調で正規化し、軽量化データとする軽量化手段と、軽量化データから異物特定波長を識別する処理を、あらかじめディープラーニングさせた識別手段と、を有し、識別手段は、検査対象物の搬送中に撮像して得られた軽量化データから、異物又は良品をインラインで識別するものである。 The food inspection apparatus described in Patent Document 1 includes conveying means, light irradiation means, imaging means for imaging an image of an object to be inspected, a first optical filter and/or a second optical filter, or a wavelength-specific using a light source of 300 nm or more and 1100 nm or less to emphasize a foreign matter specific wavelength characteristic of the foreign matter; are normalized by gradation of 256 steps or less according to the light intensity to obtain weight reduction data; The identifying means identifies foreign matter or non-defective products in-line from weight reduction data obtained by imaging while the inspection object is being conveyed.

また、特許文献2(特開2020-103284号公報)には、異物または異種海藻が混在した海藻類から異物または異種海藻を判別する判別装置が開示されている。 In addition, Patent Document 2 (Japanese Patent Application Laid-Open No. 2020-103284) discloses a discriminating device that discriminates a foreign substance or a different type of seaweed from seaweeds in which foreign substances or different types of seaweed are mixed.

特許文献2に記載の判別装置は、釣り糸またはえびまたは魚または貝または異種海藻が混在した海藻類に可視光を照射して該可視光の反射光を取り入れ可視光画像を得る可視光撮影部と、釣り糸またはえびまたは魚または貝または異種海藻が混在した海藻類に紫外光を照射して該紫外光の反射光を取り入れ紫外光画像を得る紫外色光撮影部と、から得られる、画像データから抽出対象物を抽出するにあたり、釣り糸またはえびまたは魚または貝または異種海藻が混在した海藻類から釣り糸またはえびまたは魚または貝または異種海藻を判別する釣り糸またはえびまたは魚または貝または異種海藻の判別装置であって、画像データを区分分割する区分分割手段と、ディープラーニングの手法による抽出対象物の特徴量の機械学習結果を有し、機械学習結果に基づいて、区分分割手段により分割された画像データの区分ごとに、区分が抽出対象物である確率を算出する画像識別手段と、画像識別手段により算出された、区分ごとの抽出対象物である確率を画素値に変換する識別結果変換手段と、識別結果変換手段により変換された画素値を有する画像に画像処理を行う画像処理手段と、を備えることを特徴としている。 The discriminating device described in Patent Document 2 includes a visible light imaging unit that irradiates fishing line, shrimp, fish, shellfish, or seaweed mixed with different types of seaweed with visible light and incorporates the reflected light of the visible light to obtain a visible light image. , an ultraviolet light imaging unit that obtains an ultraviolet light image by irradiating fishing line, shrimp, fish, shellfish, or seaweed mixed with different types of seaweed with ultraviolet light and capturing the reflected light of the ultraviolet light, and extracting from image data obtained from A device for discriminating fishing line, shrimp, fish, shellfish, or different kinds of seaweed from fishing line, shrimp, fish, shellfish, or seaweed mixed with different kinds of seaweed when extracting an object. has segmentation means for segmenting image data and machine learning results of feature amounts of extraction targets by deep learning techniques, and image data segmented by the segmentation means based on the machine learning results image identification means for calculating, for each section, the probability that the section is an extraction target object; identification result conversion means for converting the probability that each section is an extraction target object calculated by the image identification means into a pixel value; and image processing means for performing image processing on an image having pixel values converted by the result conversion means.

また、特許文献3(特開2020-125974号公報)には、固液混合物の内側における異物を検出可能な食品検査装置が開示されている。 Further, Patent Document 3 (Japanese Patent Application Laid-Open No. 2020-125974) discloses a food inspection device capable of detecting foreign matter inside a solid-liquid mixture.

特許文献3に記載の食品検査装置は、液体部と固形部とが混合する検査対象物を、厚みを有するように搬送する搬送部と、搬送部上の検査対象物に向けて複数の波長を含む光を照射する光照射部と、光が照射された領域を撮像し、複数の波長に係る光に基づく複数の画像を取得する画像取得部と、複数の画像に基づいて、厚み方向で検査対象物の表面よりも内側に含まれうる異物Fnを検出する食品検査処理部とを含む。 The food inspection apparatus described in Patent Document 3 includes a transport section that transports an inspection object in which a liquid portion and a solid portion are mixed so as to have a thickness, and a plurality of wavelengths directed toward the inspection object on the transport portion. a light irradiating unit that irradiates light containing light, an image acquiring unit that captures an image of the area irradiated with light and acquires a plurality of images based on light according to a plurality of wavelengths, and an inspection in the thickness direction based on the plurality of images and a food inspection processing unit that detects foreign matter Fn that may be contained inside the surface of the object.

また、良品と不良品を判定する学習モデルの生成方法に関しては以下の発明が出願されている。
特許文献4(特開2020-181333号公報)には、適度な品質感度での検査が可能となる学習モデルの生成方法等が開示されている。
In addition, the following invention has been filed for a method of generating a learning model for judging non-defective products and defective products.
Patent Document 4 (Japanese Patent Application Laid-Open No. 2020-181333) discloses a method of generating a learning model that enables inspection with appropriate quality sensitivity.

特許文献4の学習済みモデルの生成方法は、製品画像を入力した場合に良否情報を出力する学習済みモデルにより良品と判断された製品に対して、納品先が不良と判断した要因情報を取得し、取得した要因情報に基づき、学習済みモデルの再学習を行う。 The method of generating a trained model in Patent Document 4 obtains information on factors that have determined that the delivery destination is defective for a product that has been determined as a non-defective product by a trained model that outputs quality information when a product image is input. , based on the obtained factor information, the trained model is re-learned.

国際公開2018/038123号公報International Publication No. 2018/038123 特開2020-103284号公報JP 2020-103284 A 特開2020-125974号公報JP 2020-125974 A 特開2020-181333号公報JP 2020-181333 A

食品検査装置において、多層ニューラルネットワークなどのAIを用いて、食品の画像から良品と不良品とを判別する場合、いったん、特定の良品と不良品の画像を用いて多層ニューラルネットワークに学習させ、学習させた多層ニューラルネットワークを用いて食品を検査しても、多層ニューラルネットワークが良品と判定した食品の中に、不良品とすべき食品が混入する場合、または良品を不良と誤判定する場合がある。
この場合、検査した食品を良品とする判定基準を厳しくすれば不良品の混入はある程度防げるが、その場合には良品を不良品と判定する可能性が高くなる。したがって、良品と不良品との判定を正確に行うには、熟練した作業者の良品、不良品の判断を多層ニューラルネットワークに反映する仕組みが必要である。
In food inspection equipment, when AI such as a multi-layer neural network is used to distinguish between non-defective and non-defective food images, the multi-layer neural network is trained using images of specific non-defective and defective products. Even if food is inspected using a multi-layered neural network, there are cases where foods that should be judged as defective are mixed in with foods that the multi-layered neural network judges as non-defective, or that non-defective products are erroneously judged as defective. .
In this case, if the criteria for judging the inspected foods as non-defective products are stricter, the inclusion of defective products can be prevented to some extent. Therefore, in order to accurately determine good products and defective products, a mechanism is required to reflect the judgment of good products and defective products by a skilled worker in a multi-layer neural network.

また、どの食品を良品とし、どの食品を不良品とするかについては、それぞれの食品を提供する業者によっても異なる。この場合、食品検査装置を製造する会社が食品を提供する会社から良品不良品の判定基準として、良品の画像と不良品の画像を受け取って多層ニューラルネットワークに反映することも考えられるが、食品を提供する会社(食品検査装置の利用者)が適当な不良品の画像を漏れなく提供することは実際には困難である。
したがって、食品を提供する会社の実際の食品の良品、不良品の判別の現場において、良品の画像と不良品の画像の情報を収集し、それらの情報を多層ニューラルネットワークに反映する仕組みが必要である。
In addition, which foods are considered non-defective and which foods are defective differ depending on the supplier of each food. In this case, it is conceivable that the company that manufactures the food inspection equipment receives the image of the good product and the image of the defective product from the company that provides the food as the criteria for judging good products and defective products, and reflects them in the multi-layer neural network. It is actually difficult for the company that provides the products (the user of the food inspection device) to provide suitable images of defective products without omission.
Therefore, there is a need for a system that collects information on images of good and bad products at the actual site of determining good and bad products in food companies and reflects that information in a multi-layer neural network. be.

特許文献1に記載の食品検査装置には、現場の作業者の良品、不良品の判断を多層ニューラルネットワークに反映する仕組みは組み込まれていない。
特許文献2に記載の異物または異種海藻を判別する判別装置、特許文献3に記載の食品検査装置においても、同様である。
特許文献4に記載の学習済みモデルの生成方法では、納品先が不良と判断した要因情報を取得し、取得した前記要因情報に基づき、前記学習済みモデルの再学習を行う仕組みが組み込まれているが、納品先とのやり取りに時間を要するなどにより、迅速な再学習および良品と不良品との判定基準の更新は困難である。
The food inspection apparatus described in Patent Literature 1 does not incorporate a mechanism for reflecting the determination of non-defective products and defective products by workers on site in a multi-layer neural network.
The same applies to the discriminating device for discriminating foreign matter or different types of seaweed described in Patent Document 2 and the food inspection device described in Patent Document 3.
In the method for generating a trained model described in Patent Document 4, a mechanism is incorporated in which factor information on which the delivery destination is determined to be defective is acquired, and the trained model is re-learned based on the acquired factor information. However, it is difficult to quickly relearn and update criteria for judging non-defective products and defective products because it takes time to communicate with delivery destinations.

本発明の主な目的は、食品を良品と異物などの不良品とに判別する、食品検査システムおよび食品検査方法において、現場の作業者の良品、不良品の判定基準を迅速かつ容易に食品検査装置の判定手段に反映することのできる食品検査システム、および食品検査方法を提供することにある。
本発明の第2の目的は、食品を良品と異物などの不良品とに判別する、食品検査システム、および食品検査方法において、食品検査システムおよび食品検査方法を利用するそれぞれの会社が、自社の良品と不良品との判定基準を、迅速かつ容易に食品検査装置の判定手段に反映することのできる食品検査システム、および食品検査方法を提供することにある。
The main object of the present invention is to provide a food inspection system and a food inspection method for discriminating good food products from defective products such as foreign substances, in which a food inspection system and a food inspection method can quickly and easily determine criteria for determining good products and defective products by workers on site. An object of the present invention is to provide a food inspection system and a food inspection method that can be reflected in the determination means of an apparatus.
A second object of the present invention is to provide a food inspection system and a food inspection method for distinguishing between non-defective products and defective products such as foreign substances. It is an object of the present invention to provide a food inspection system and a food inspection method capable of quickly and easily reflecting criteria for judging non-defective products and defective products to judging means of a food inspection apparatus.

(1)
一局面に従う食品検査システムは、食品検査装置と食品検査学習装置と搬送手段とを含む食品検査システムであって、搬送手段は食品検査装置から食品検査学習装置へと食品を搬送し、食品検査装置は、搬送手段上の食品を撮影する第1の撮影手段と、第1の撮影手段が撮影した食品の画像を入力して良品か不良品かを判定する判定手段と、判定手段が不良品と判定した食品を搬送手段上から除去する除去手段と、を含み、判定手段は多層ニューラルネットワークで構成され、あらかじめ良品の画像および/または不良品の画像を用いて学習され、食品検査学習装置は、作業者の手元を撮影する第2の撮影手段と、第2の撮影手段で撮影した画像を入力し、作業者が食品を不良品と判断して廃棄した場合に、第1の撮影手段で撮影した画像のうちから廃棄された不良品に該当する画像を保存する保存手段と、を含み、保存手段に保存された不良品の画像と、(あらかじめ準備した)良品の画像および/または不良品の画像とを用いて、食品検査装置の判定手段が再学習される。
(1)
A food inspection system according to one aspect is a food inspection system including a food inspection device, a food inspection learning device, and a transport means, wherein the transport means transports food from the food inspection device to the food inspection learning device, the food inspection device comprises a first photographing means for photographing the food on the conveying means, a judgment means for inputting the image of the food photographed by the first photographing means and judging whether it is a non-defective product or a defective product; a removing means for removing the judged food from the conveying means, the judging means is composed of a multi-layer neural network, and is learned in advance using images of non-defective products and/or images of defective products, and the food inspection learning device comprises: A second photographing means for photographing the hand of the worker and an image photographed by the second photographing means are input, and when the worker determines that the food is defective and discards it, the first photographing means photographs the food. storage means for storing an image corresponding to the discarded defective product from among the images obtained, and the image of the defective product stored in the storage means and the image of the good product (prepared in advance) and/or the image of the defective product. The images are used to relearn the judgment means of the food inspection device.

この場合、食品検査装置の判定手段は、あらかじめ準備した良品の画像および/または不良品の画像を用いて学習することで、異物など明らかな不良品を除去する。そして、食品検査装置で良品と判定された食品の中から、作業者が自社の検査基準に則り不良品と判断した食品を廃棄するとともに、廃棄された不良品の画像を保存し、保存された不良品の画像を用いて食品検査装置の判定手段を再学習させる。これにより、現場の作業員の判定基準を迅速かつ容易に食品検査装置の判定手段に反映することができる。
この場合、食品検査装置を通さずに直接すべての食品を食品検査学習装置で作業者が判別することも不可能ではないが、作業者の負荷低減、集中力確保等の観点から、まず異物など明らかな不良品を食品検査装置で除去し、その食品検査装置を通過した食品を食品検査学習装置で作業者が判別することが望ましい。
食品検査は、異物など明らかな不良品を除去するだけではなく、食品の用途や加工の目的、加工段階によって(例えば、その後に油揚げするか否かなど)、検査段階における良品/不良品の基準は各社様々である。したがって、まず異物など明らかな不良品を食品検査装置で除去して、作業者は検査基準に適合しない食品の選別を行い、そして当該選別された食品を不良品として再学習することによって、効率的かつ正確に食品検査の判定を行うことができる。
In this case, the determination means of the food inspection apparatus removes clearly defective items such as foreign matter by learning using images of non-defective items and/or images of defective items prepared in advance. Then, from among the foods judged to be non-defective by the food inspection equipment, the food that the operator judged to be defective according to the inspection standards of the company is discarded, and the image of the discarded defective product is saved and saved. The image of the defective product is used to relearn the determination means of the food inspection device. As a result, it is possible to quickly and easily reflect the judgment criteria of the on-site worker in the judgment means of the food inspection apparatus.
In this case, it is not impossible for the operator to directly identify all foods by the food inspection learning device without going through the food inspection device. It is desirable that the food inspection device removes obviously defective products, and the food that has passed through the food inspection device is identified by the food inspection learning device by the operator.
Food inspection not only removes clearly defective products such as foreign substances, but also determines the criteria for good/defective products at the inspection stage, depending on the purpose of the food, the purpose of processing, and the processing stage (for example, whether or not it is fried afterward). is different for each company. Therefore, first, the food inspection equipment removes obvious defective products such as foreign matter, and the operator selects foods that do not meet the inspection standards. And it is possible to accurately judge the food inspection.

また、あらかじめ良品の画像および/または不良品の画像を入力して学習する当初の判定手段の判定基準では、良品の画像を良品と学習させ(および/または、異物など明らかな不良品の画像を不良品と学習させ)ておく。このようにして、良品と不良品の境界付近の食品は良品と判定させておき、再学習において、現場の作業者の判断、あるいは、食品検査システムを利用する会社ごとの判断により、不良品とすべき食品が不良品と判定されるように再学習させることが望ましい。
そして、食品検査装置の判定手段の再学習により食品検査装置の良品不良品の判定の精度が所定のレベルまで向上した場合には、食品検査装置の良品をそのまま良品として出荷することも可能である。
In addition, in the judgment criteria of the initial judgment means that learns by inputting images of good products and/or images of defective products in advance, images of good products are learned as good products (and/or images of clearly defective products such as foreign substances are learned). Let it learn that it is defective). In this way, foods near the boundary between good and defective products are judged to be good products. It is desirable to re-learn so that foods that should be judged as defective.
Then, when the accuracy of judgment of non-defective products by the food inspection device is improved to a predetermined level by relearning the judgment means of the food inspection device, it is possible to ship the non-defective products of the food inspection device as non-defective products. .

(2)
第2の発明にかかる食品検査システムは、一局面に従う食品検査システムにおいて、保存手段に保存された不良品の画像のうちから、食品検査装置で不良品と判定すべき画像がさらに選別されて、食品検査装置の判定手段の再学習に用いられ、判定手段の再学習は、所定の検査時間または所定の検査された食品の個数ごとに行われてもよい。
(2)
A food inspection system according to a second aspect of the present invention is a food inspection system according to one aspect, wherein an image to be determined as a defective product by a food inspection apparatus is further selected from images of defective products stored in a storage means, It is used for re-learning of the determination means of the food inspection device, and the re-learning of the determination means may be performed for each predetermined inspection time or predetermined number of inspected foods.

この場合、作業現場(検査ラインの作業者)において不良品と判断された不良品の画像の群の中から、改めて再学習させるべき不良品の画像を選択して、判定手段にこれを再学習させる。
食品検査学習装置では作業者は瞬時に不良品を見分ける必要があるため、作業者が不良品と判定し画像が保存された食品の中には、本来は良品と判定すべき食品が含まれている可能性がある。また、食品の検査は作業者の感覚に依存するところもあるため、良品/不良品の判断は必ずしも一義的に確定するものではなく、作業者によって検査結果にばらつきが生じる場合がある。したがって、保存手段に保存された不良品の画像のうちから、食品検査装置で不良品と判定すべき画像を選別して、それらの画像を食品検査装置の判定手段の再学習に用いることが望ましい。
また、再学習の効果をあげるには、追加の不良品と判定すべき画像を一定の数収集する必要があることから、判定手段の再学習は、所定の検査時間または所定の検査された食品の個数ごとに行われることが望ましい。
検査ラインの現場で不良品と判断された画像の群から、改めて再学習させるべき不良品の画像、および/または異物と誤判定された良品の画像を選択することによって、当該検査ラインの判定基準をより正確に反映させることができる。
In this case, an image of a defective product to be re-learned is selected from a group of images of defective products judged to be defective at the work site (inspection line worker), and the judgment means re-learns this. Let
In the food inspection learning device, the operator needs to instantly identify defective products. Therefore, among the foods that the operator judged to be defective and whose images were saved, food that should have been judged to be non-defective was included. there may be. In addition, since the inspection of food depends on the senses of the operator, the determination of good/defective products is not always unequivocally determined, and the inspection results may vary depending on the operator. Therefore, it is desirable to select images to be judged as defective by the food inspection apparatus from among the images of defective products stored in the storage means, and to use those images for re-learning of the judgment means of the food inspection device. .
In addition, in order to obtain the effect of re-learning, it is necessary to collect a certain number of additional images to be judged as defective products. It is desirable to do this for each number of
By selecting an image of a defective product to be re-learned and/or an image of a non-defective product erroneously determined as a foreign object from a group of images determined to be defective on the inspection line, the judgment criteria for the inspection line are determined. can be reflected more accurately.

(3)
第3の発明にかかる食品検査システムは、一局面または第2の発明にかかる食品検査システムにおいて、食品検査装置は、第1の撮影手段が撮影する食品を照射する光照射手段をさらに備え、光照射手段は特定の波長の光を強調するようにしてもよい。
(3)
A food inspection system according to a third aspect of the invention is the food inspection system according to one aspect or the second aspect of the invention, wherein the food inspection apparatus further comprises light irradiation means for irradiating the food photographed by the first photographing means, The illumination means may emphasize light of a particular wavelength.

検査で不良品と判定される食品には、例えば虫、金属などの異物が付着している場合がある。このような異物は特定の波長の光を強く反射するため、光照射手段として、特定の波長の光を強調する光源を用い、食品の画像を撮影することにより、異物が付着した不良品と良品との差異をより明確にすることができる。
なお、特定の波長の光を強調する光源を用いる代わりに、撮影手段の前面に特定の波長の光を強調するフィルタを配設してもよい。
あるいは、判定手段の多層ニューラルネットワークへの入力の前処理として、特定の波長の光を強調するフィルタの機能を有する回路を挿入してもよい。
Food that is determined to be defective by inspection may have foreign substances such as insects and metals adhering to it. Since such foreign matter strongly reflects light of a specific wavelength, by using a light source that emphasizes light of a specific wavelength as a light irradiation means and photographing images of food, defective products with foreign matter attached and non-defective products with foreign matter attached can be identified. can make the difference clearer.
Instead of using a light source that emphasizes light of a specific wavelength, a filter that emphasizes light of a specific wavelength may be arranged in front of the photographing means.
Alternatively, a circuit having a filter function for emphasizing light of a specific wavelength may be inserted as a pre-processing of the input to the multi-layer neural network of the judging means.

(4)
第4の発明にかかる食品検査システムは、一局面から第3の発明にかかる食品検査システムにおいて、多層ニューラルネットワークの教師データは、良品、および異なる種類の不良品の画像ごとにそれぞれ別のラベルが指定されてもよい。
(4)
A food inspection system according to a fourth invention is the food inspection system according to the first aspect to the third invention, wherein the training data of the multi-layer neural network has different labels for each image of good products and different kinds of defective products. May be specified.

多層ニューラルネットワークとしては、画像データを入力してその特徴を抽出することのできるものを用いてもよい。 As the multi-layer neural network, a network capable of inputting image data and extracting its features may be used.

また、多層ニューラルネットワークの学習では、良品、および/または異なる種類の不良品の画像ごとに、別のラベルを指定して、多層ニューラルネットワークの学習をさせてもよい。
この場合、多層ニューラルネットワークに判定すべき食品の画像を入力すると、それらの食品のラベルが抽出され、良品不良品の判定だけでなく、不良品の種類をも検出することができる。
Also, in training the multi-layer neural network, different labels may be specified for each image of a non-defective product and/or different types of defective products, and the multi-layer neural network may be trained.
In this case, when images of foods to be judged are input to the multi-layer neural network, the labels of those foods are extracted, making it possible not only to judge good and bad products but also to detect the types of defective products.

また、多層ニューラルネットワークでは、食品の一部に異常部位(潰れ、変色、腐敗など)が含まれていた場合も、当該異常部位の部分だけを不良として判定するのではなく、異常部位を含む食品全体を不良品として判定することができる。
したがって多層ニューラルネットワークを用いることによって、異常部位を含むような不良品もより的確に選別することができ、検査基準に適合しない食品を効率的かつ正確に検査することができる。
In addition, in the multi-layer neural network, even if a part of the food contains an abnormal part (crushed, discolored, spoiled, etc.), the food containing the abnormal part is not judged as defective. The whole can be judged as defective.
Therefore, by using a multi-layer neural network, it is possible to more accurately sort out defective products including abnormal parts, and to efficiently and accurately inspect foods that do not meet the inspection standards.

(5)
他の局面に従う食品検査学習装置は、多層ニューラルネットワークで構成された、食品が良品か不良品かを判定する判定手段の学習のための検査学習装置であって、検査学習する食品を搬送する搬送手段と、搬送手段上の食品を撮影する第1の撮影手段と、作業者の手元を撮影する第2の撮影手段と、第2の撮影手段で撮影した画像を入力し、作業者が不良品と判断して廃棄した場合に、第1の撮影手段で撮影した画像のうちから廃棄された不良品に該当する画像を保存する保存手段と、を含み、保存手段に保存された不良品の画像が判定手段の再学習に用いられる。
(5)
A food inspection learning device according to another aspect is an inspection learning device for learning judgment means for judging whether a food product is a non-defective product or a non-defective product, which comprises a multi-layer neural network, and comprises a transporter for transporting the food subject to inspection learning. means, a first photographing means for photographing the food on the conveying means, a second photographing means for photographing the hand of the worker, and an image photographed by the second photographing means is input, and the worker detects a defective product. storage means for storing an image corresponding to the discarded defective product among the images taken by the first imaging means when the defective product is discarded after determining that the defective product is discarded, and the defective product image stored in the storage means is used for re-learning of the decision means.

この場合、食品検査学習装置を用いて不良品の画像を収集することによって、現場の作業員の判定基準を迅速かつ容易に食品検査装置の判定手段に反映することができる。また、検査段階における良品/不良品の基準は各社様々であるが、食品検査学習装置を用いて自社の基準に基づく不良品の画像を収集し、収集した不良品の画像を用いて判定手段を再学習させることによって、食品検査装置の判定手段を、迅速かつ容易に自社の判定基準に沿った判定手段とすることができる。 In this case, by collecting images of defective products using the food inspection learning device, it is possible to quickly and easily reflect the judgment criteria of the on-site worker in the judgment means of the food inspection device. In addition, each company has different standards for determining good/defective products at the inspection stage. By re-learning, the determination means of the food inspection apparatus can be quickly and easily adapted to the determination criteria of the company.

(6)
さらに他の局面に従う食品検査方法は、食品の画像を入力して良品か不良品かを判定する食品検査方法であって、良品の画像および/または不良品の画像を教師データとして、多層ニューラルネットワークに良品か不良品かの判定を学習させる第1学習工程と、食品の画像を撮影し、食品の画像を多層ニューラルネットワークに入力して良品か不良品かを判定する第1判定工程と、第1判定工程で良品とされた食品の中から作業者が不良品を取り除く第2判定工程と、第2判定工程で取り除かれた不良品の画像と、(あらかじめ準備した)良品の画像および/または不良品の画像と、を用いて多層ニューラルネットワークを再学習させる第2学習工程と、を含む。
(6)
A food inspection method according to still another aspect is a food inspection method for inputting an image of food and determining whether it is a non-defective product or not. A first learning step of learning to determine whether a product is good or defective, a first determination step of photographing an image of food and inputting the image of food into a multi-layer neural network to determine whether it is a good product or a defective product; A second judgment step in which the operator removes defective products from the food determined to be non-defective in the first judgment step, an image of the defective product removed in the second judgment step, and an image of the non-defective product (prepared in advance) and / or and a second training step of retraining the multilayer neural network using the images of the defective products.

この場合、多層ニューラルネットワークに、第1学習工程で基本的な良品、不良品の判定基準を学習させた後、第2学習工程で現場の作業者の判断、あるいは、食品検査方法を利用する会社ごとの判断に合わせて、不良品とすべき食品が不良品と判定されるように再学習させることができる。そして、多層ニューラルネットワークに再学習させることにより、第1判定工程での判定基準を、現場の作業者の判断、あるいは食品検査方法を利用する会社ごとの判断に対応させることができる。
そして、第2学習工程での再学習により第1判定工程での判定の精度が所定のレベルまで向上した場合には、第1判定工程での良品をそのまま良品として出荷することも可能である。
また、この場合、第1判定工程を通さずに直接すべての食品を第2判定工程で作業者が判別することも不可能ではないが、作業者の負荷低減、集中力確保等の観点から、まず第1判定工程で判別し、その良品を第2判定工程で作業者が判別することが望ましい。
In this case, after having the multi-layer neural network learn the basic criteria for judging non-defective and defective products in the first learning process, the company uses the judgment of the on-site worker or the food inspection method in the second learning process. It is possible to re-learn so that the food that should be judged to be defective is judged to be defective according to each determination. By re-learning the multi-layered neural network, the judgment criteria in the first judgment step can correspond to the judgment of the worker on site or the judgment of each company that uses the food inspection method.
Then, when the accuracy of judgment in the first judging process is improved to a predetermined level by re-learning in the second learning process, it is also possible to ship the non-defective product in the first judging process as a non-defective product.
In this case, it is not impossible for the worker to directly determine all the foods in the second determination step without going through the first determination step, but from the viewpoint of reducing the burden on the worker and ensuring concentration, It is desirable that the first determination step is performed first, and the non-defective product is determined by the operator in the second determination step.

第1の実施形態の食品検査システムの全体構成を示す模式図である。It is a mimetic diagram showing the whole food inspection system composition of a 1st embodiment. 食品検査システムの搬送手段に載置された食品の一例を示す模式図である。It is a schematic diagram which shows an example of the foodstuffs mounted in the conveyance means of a food inspection system. 食品検査システムのフローチャートを示す模式図である。It is a schematic diagram which shows the flowchart of a food inspection system. 第2の実施形態の食品検査学習装置の構成を示す模式図である。It is a schematic diagram which shows the structure of the food inspection learning apparatus of 2nd Embodiment.

以下、図面を参照しつつ、本発明の実施形態について説明する。以下の説明では、同一の部品には同一の符号を付す。また、同符号の場合には、それらの名称および機能も同一である。したがって、それらについての詳細な説明は繰り返さないものとする。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are given the same reference numerals. Moreover, in the case of the same reference numerals, their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

[第1の実施形態]
図1は第1の実施形態の食品検査システム100の全体構成を示す模式図である。
食品検査システム100は、ベルトコンベア11と食品検査装置110と食品検査学習装置120とで構成されている。ベルトコンベア11は食品検査装置110と食品検査学習装置120とを横断して配設されており、食品検査装置110から食品検査学習装置120へと食品60を搬送する。
[First Embodiment]
FIG. 1 is a schematic diagram showing the overall configuration of a food inspection system 100 of the first embodiment.
A food inspection system 100 comprises a belt conveyor 11 , a food inspection device 110 and a food inspection learning device 120 . The belt conveyor 11 is arranged across the food inspection device 110 and the food inspection learning device 120 and conveys the food 60 from the food inspection device 110 to the food inspection learning device 120 .

(食品検査装置110)
食品検査装置110は、ベルトコンベア11、第1のカメラ21、照明装置24、判定手段30、および除去手段40を備えている。第1のカメラ21と照明装置24とはベルトコンベア11の上方に配置され、除去手段40は、ベルトコンベア11の側方に配置されている。
ベルトコンベア11に載置された食品60は、照明装置24で光を照射された状態で第1のカメラ21により画像を撮影される。撮影された食品60の画像は、判定手段30に入力されて良品か不良品かが判定される。判定手段30は、多層ニューラルネットワークで構成され、あらかじめ良品の画像および/または不良品の画像を用いて学習されている。
(Food inspection device 110)
The food inspection device 110 includes a belt conveyor 11, a first camera 21, an illumination device 24, a determination means 30, and a removal means 40. The first camera 21 and the illumination device 24 are arranged above the belt conveyor 11 , and the removing means 40 is arranged on the side of the belt conveyor 11 .
The food 60 placed on the belt conveyor 11 is imaged by the first camera 21 while being illuminated by the illumination device 24 . The photographed image of the food 60 is input to the determination means 30 to determine whether it is a good product or a defective product. The judging means 30 is composed of a multi-layered neural network and is trained in advance using images of non-defective products and/or images of defective products.

あらかじめの学習段階においては、良品のみの画像を複数用いて良品の学習を行っていてもよい。また、あらかじめの学習段階においては、良品のみの学習に加えて、異物62、63など明らかな不良品の画像のみを不良品と学習させてもよい。
このようにすることで、再学習を開始する前の段階では、異物62、63など明らかな不良品のみを不良品と判定するようにする。そして、検査工程ごとに設けられる各社独自の検査基準(良品と不良品の境界付近の食品60)は、作業者70が良品と不良品とを選別し、当該選別された食品60を不良品として再学習することによって、効率的かつ正確な食品検査の判定を行うことができるようになる。
In the preliminary learning stage, a plurality of images of only non-defective products may be used to learn non-defective products. Moreover, in the preliminary learning stage, in addition to learning only non-defective products, only images of clearly defective products such as the foreign substances 62 and 63 may be learned as defective products.
By doing so, only obvious defective products such as the foreign substances 62 and 63 are determined to be defective before the re-learning is started. Then, each company's own inspection standard (food 60 near the boundary between non-defective and defective products) provided for each inspection process is that the operator 70 sorts the non-defective product and the defective product, and the selected food 60 is regarded as a defective product. Re-learning enables efficient and accurate food inspection judgments.

食品60が不良品であるとの情報は判定手段30から除去手段40に送られ、不良品と判定された食品60は、除去手段40によりベルトコンベア11上から除去される。除去手段40としては、特に限定されるものではなく、例えばベルトコンベア11の一方の側方にアクチュエータを配置し、ピストンロッドで不良品を他方の側方に押し出すといった構成、エアガンで不良品を飛ばす構成などが使用可能である。 Information that the food 60 is defective is sent from the determination means 30 to the removal means 40 , and the food 60 determined as defective is removed from the belt conveyor 11 by the removal means 40 . The removing means 40 is not particularly limited. For example, an actuator is arranged on one side of the belt conveyor 11, and a piston rod pushes out defective products to the other side, or an air gun blows out defective products. Configurations, etc. can be used.

第1のカメラ21で食品60を撮影する際には照明装置24から光を照射して撮影する。照明装置24には、光源そのものに特定の波長の光を強調する光源を用いる、または、図1に記載のように光源の前面に特定の波長の光を強調するフィルタ24aを配設することが望ましい。これは、食品60に、例えば虫、金属などの異物が付着している場合、このような異物は特定の波長の光を強く反射するためである。
なお、特定の波長の光を強調する照明装置24を用いる代わりに、第1のカメラ21の前面に特定の波長の光を強調するフィルタを配設してもよい。
あるいは、判定手段30の多層ニューラルネットワークへの入力の前処理として、特定の波長の光を強調するフィルタの機能を有する回路を挿入してもよい。
When the food 60 is photographed by the first camera 21, the lighting device 24 emits light to photograph the food 60. - 特許庁The illumination device 24 may use a light source that emphasizes light of a specific wavelength as the light source itself, or may have a filter 24a that emphasizes light of a specific wavelength in front of the light source as shown in FIG. desirable. This is because if foreign matter such as insects or metal adheres to the food 60, such foreign matter strongly reflects light of a specific wavelength.
Instead of using the lighting device 24 that emphasizes light of a specific wavelength, a filter that emphasizes light of a specific wavelength may be arranged in front of the first camera 21 .
Alternatively, as preprocessing of the input to the multi-layer neural network of the determination means 30, a circuit having a filter function that emphasizes light of a specific wavelength may be inserted.

(食品検査学習装置120)
食品検査学習装置120は、ベルトコンベア11、第2のカメラ22、保存手段50、および廃棄ボックス71から構成される。第2のカメラ22はベルトコンベア11の後方上部に配置されている。また、ベルトコンベア11の側方で、第2のカメラ22の近傍には作業者70が位置している。
食品検査学習装置120には食品検査装置110で良品と判定された食品60が搬送される。
(Food inspection learning device 120)
The food inspection learning device 120 is composed of the belt conveyor 11 , the second camera 22 , the storage means 50 and the disposal box 71 . The second camera 22 is arranged on the rear upper part of the belt conveyor 11 . A worker 70 is positioned near the second camera 22 on the side of the belt conveyor 11 .
The food 60 determined as non-defective by the food inspection device 110 is conveyed to the food inspection learning device 120 .

食品検査学習装置120に搬送された食品60は作業者70の前面に搬送され、作業者70は前面の食品60が良品か不良品かを判断し、不良品の場合は食品60を廃棄ボックス71に廃棄する。第2のカメラ22は作業者70の手の動きを撮影し、保存手段50は第2のカメラ22で撮影された画像を入力し、作業者70が食品60を廃棄した場合、廃棄された時刻から、廃棄された食品60が第1のカメラ21で撮影された食品60のうちのどの食品60であるかを検知し、その食品60の画像を不良品の画像として保存する。
本実施の形態では、第1のカメラ21および第2のカメラ22は、独立した2つのカメラを用いて撮影したが、広角カメラなど一つのカメラを用いて撮影してもよい。この場合、カメラは、ベルトコンベア11上の食品60と作業者70の手元とを一度に撮影する。
The food 60 conveyed to the food inspection learning device 120 is conveyed to the front of the worker 70, and the worker 70 judges whether the food 60 on the front is good or defective. to discard. The second camera 22 captures the movement of the hand of the worker 70, the storage means 50 inputs the image captured by the second camera 22, and when the worker 70 discards the food 60, the discarded time Therefore, which food 60 is the food 60 photographed by the first camera 21 is detected, and the image of the food 60 is stored as the image of the defective product.
In this embodiment, the first camera 21 and the second camera 22 are two independent cameras, but a single camera such as a wide-angle camera may be used. In this case, the camera photographs the food 60 on the belt conveyor 11 and the hand of the worker 70 at once.

(判定手段30)
本実施形態の判定手段30の多層ニューラルネットワークとしては、画像データを入力してその特徴を抽出することのできるものであればよく、例えば、Yolo(You Look Only Onse)、エフィシェントネット(Efficient Net)、または、ResNet(Residual Network)を用いることができる。この多層ニューラルネットワークは、あらかじめ、基本的な良品の画像、または良品の画像および不良品の画像、を用いて学習されている。
Yoloは、物体検出を回帰問題としてモデル化し、物体検出の精度が高くリアルタイム処理が可能である。
エフィシェントネットは、従来の多層ニューラルネットワークと比較して、パラメータ数(1レイヤのサイズとレイヤの数と解像度との積)が小さく、良品、不良品の判定の高速化を実現することができる点で好ましい。
ResNetは、残差特徴量の学習により層を深くすることができる。
(Determination means 30)
The multi-layer neural network of the determination means 30 of the present embodiment may be any one that can input image data and extract its features. Net) or ResNet (Residual Network) can be used. This multi-layer neural network is trained in advance using basic images of good products, or images of good products and images of bad products.
Yolo models object detection as a regression problem, and has high accuracy in object detection and is capable of real-time processing.
Efficient nets have a smaller number of parameters (the product of the size of one layer, the number of layers, and the resolution) compared to conventional multi-layer neural networks, making it possible to speed up the determination of non-defective products. It is preferable in that it can be done.
ResNet can deepen layers by learning residual features.

図2に食品検査システム100のベルトコンベア11に載置された食品60の一例を示す。図2において、ベルトコンベア11には、一例として、良品61、異物(不良品)62、63、および一部が変色した不良品64が載置されている。
それぞれの食品60は順次第1のカメラ21で撮影される。図2の25は第1のカメラ21で撮影される画像の範囲を示す。この範囲25の画像が判定手段30に入力され、良品か不良品かが判定される。良品以外の食品60は除去手段40によって、ベルトコンベア11上から除去される。
FIG. 2 shows an example of food 60 placed on the belt conveyor 11 of the food inspection system 100. As shown in FIG. In FIG. 2, as an example, a non-defective product 61, foreign substances (defective products) 62 and 63, and a partially discolored defective product 64 are placed on the belt conveyor 11 .
Each food 60 is sequentially photographed by the first camera 21 . Reference numeral 25 in FIG. 2 indicates the range of the image captured by the first camera 21 . The image of this range 25 is input to the determination means 30 to determine whether the product is good or defective. The food 60 other than non-defective products is removed from the belt conveyor 11 by the removal means 40. - 特許庁

多層ニューラルネットワークの教師データはそれぞれの食品60の画像に、ラベルを指定して作成される。ラベルとしては、良品と不良品とを分類することは当然であるが、特に不良品については、種々の異物、一部が潰れ、変色、腐敗した食品60等が含まれることから、不良品に対してそれぞれ別のラベルを指定して教師データとすることが望ましい。
例えば、食品60の一部に潰れがあっても、次工程でミンチ加工するなど検査基準上は問題がない場合がある。一方で、僅かであっても食品60に腐敗した部位が含まれる場合は、食品60全体を不良品として判定する場合がある。また、変色の場合に比べて腐敗の場合は判定確率が低い場合も不良品と判定するなど、不良の分類に応じて判定確率の閾値を変更してもよい。多層ニューラルネットワークでは食品60の不良をラベルによってクラス分けできるので、より正確に食品検査を行うことができる。
さらに、多層ニューラルネットワークではクラス分けされた不良品の発生状況をリアルタイムで把握することができる。したがって、例えば食品60の変色の頻度が高まっているので上流工程の温度管理に問題があるなど、工程の異常を効果的に把握することができる。
Teacher data for the multi-layer neural network is created by assigning a label to each food 60 image. As a label, it is natural to classify non-defective products and defective products. It is desirable to specify different labels for each of them and use them as teacher data.
For example, even if a portion of the food 60 is crushed, there may be no problem in terms of inspection standards, such as mincing in the next step. On the other hand, if the food 60 contains even a small amount of rotten parts, the food 60 as a whole may be determined to be defective. In addition, the threshold value of the determination probability may be changed according to the classification of the defect, such as determining the product as defective even when the determination probability is low in the case of spoilage compared to the case of discoloration. In the multi-layer neural network, defects in the food 60 can be classified by label, so food inspection can be performed more accurately.
Furthermore, the multi-layer neural network can grasp the occurrence status of classified defective products in real time. Therefore, it is possible to effectively grasp process abnormalities such as problems in temperature control in the upstream process due to an increase in the frequency of discoloration of the food 60, for example.

また、食品検査システム100による食品60の検査が所定の検査時間経過したとき、または所定の検査個数完了したときには、あらかじめ判定手段30の学習に用いた良品および不良品の画像に、保存手段50に保存された不良品の画像を追加して、判定手段30の再学習をさせることが望ましい。
例えば、一部に変色がある食品60であっても、その変色の程度、色、大きさなどによって、当該食品60を良品とするか不良品とするかは、食品60の用途や加工の目的、加工段階によって各社様々である。したがって、検査ラインの現場で不良品と判断された画像の群から、改めて再学習させるべき不良品の画像を選択することによって、当該検査ラインの判定基準をより正確かつ効果的に反映させることができる。
そして、判定手段30の再学習をさせることによって、判定手段30は、現場の作業者70の判断、あるいは、食品検査システム100を利用する会社ごとの判断に合致した判別を行うことができるようになる。
In addition, when the inspection of the food 60 by the food inspection system 100 has passed a predetermined inspection time, or when the inspection of the predetermined number of items has been completed, the image of the good product and the defective product used in the learning of the judgment means 30 in advance is stored in the storage means 50. It is desirable to relearn the determination means 30 by adding the stored images of defective products.
For example, even if the food 60 is partially discolored, whether the food 60 is a good product or a defective product depends on the degree of discoloration, color, size, etc., depending on the purpose of the food 60 and the purpose of processing. , differ from company to company depending on the stage of processing. Therefore, by selecting images of defective products to be re-learned from a group of images determined to be defective products on the inspection line, it is possible to more accurately and effectively reflect the judgment criteria of the inspection line. can.
Then, by re-learning the determination means 30, the determination means 30 can make a determination that matches the judgment of the on-site worker 70 or the judgment of each company that uses the food inspection system 100. Become.

また、食品検査学習装置120における作業者70の良品、不良品の判断は瞬時に行われなければならないため、作業者70が良品を不良品と判断してしまう可能性もある。したがって、保存手段50に保存された不良品の画像を判定手段30の再学習に用いるにあたっては、不良品の画像のうちから食品検査装置110で不良品と判定すべき画像を選別して食品検査装置110の判定手段30の再学習に用いることが望ましい。また、その際には、判定基準の精度向上のために、不良品と判定すべき画像のそれぞれを適切なラベルを指定することが望ましい。
また、食品検査装置110の判定手段30の再学習を繰り返すことにより、判定手段30の判定精度が十分高まった場合には、食品検査装置110の良品を食品検査学習装置120を通すことなく、そのまま良品として出荷してもよい。
In addition, since the worker 70 in the food inspection learning device 120 must instantly determine whether the product is good or bad, there is a possibility that the worker 70 may judge a good product as a bad product. Therefore, when using the image of the defective product stored in the storage means 50 for re-learning of the judgment means 30, the image to be judged as the defective product by the food inspection apparatus 110 is selected from the image of the defective product, and the food inspection is performed. It is desirable to use it for re-learning of the determination means 30 of the device 110 . In this case, it is desirable to designate an appropriate label for each image to be determined as defective in order to improve the accuracy of the determination criteria.
Further, when the determination accuracy of the determination means 30 is sufficiently increased by repeating the relearning of the determination means 30 of the food inspection device 110, the non-defective products of the food inspection device 110 are not passed through the food inspection learning device 120. It may be shipped as a non-defective product.

本実施形態では、判定手段30の多層ニューラルネットワークとしてエフィシェントネット(Efficient Net)を用いているが、多層ニューラルネットワークはエフィシェントネットには限定されない。画像データを入力してその特徴(ラベル)を抽出することのできるものであれば、エフィシェントネット以外の多層ニューラルネットワークを判定手段30として用いてもよい。 In this embodiment, an efficient net is used as the multilayer neural network of the determination means 30, but the multilayer neural network is not limited to the efficient net. A multilayer neural network other than an efficient network may be used as the determination means 30 as long as it can input image data and extract its features (labels).

(食品検査システム100のフローチャート)
図3に、食品検査システム100のフローチャートの模式図を示す。
以下、図3の各ステップについて説明する。
ステップS1:判定手段30の多層ニューラルネットワークの学習に用いる良品、不良品の画像を準備する。この場合、最初の学習では、良品の画像だけを準備して、学習させてもよい。
ステップS2:準備した画像に、ラベルを追加し、判定手段30の多層ニューラルネットワークに学習させる。このときの画像の数としては、少なくとも10、できれば100以上が望ましい。また、この段階では、良品と不良品の境界付近の食品60は良品と判定するように教師データを準備することが望ましい。
ステップS3:検査する食品60をベルトコンベア11に載せる。
ステップS4:第1のカメラ21で食品60の画像を撮影し、判定手段30で良品か不良品かを判定する。
ステップS5:判定手段30での判定結果が不良品の場合、除去手段40で不良品をベルトコンベア11から除去する。
ステップS6:すでに判定手段30の再学習が行われ、食品検査装置110の判定手段30の判定精度が十分高い場合はそのまま良品として出荷する(ステップS12)。この場合、以降、ステップS3~S6および良品出荷(ステップS12)を繰り返す。
(Flow chart of food inspection system 100)
In FIG. 3, the schematic diagram of the flowchart of the food inspection system 100 is shown.
Each step in FIG. 3 will be described below.
Step S1: Images of non-defective products and defective products used for learning of the multi-layer neural network of the judging means 30 are prepared. In this case, in the initial learning, only good images may be prepared for learning.
Step S2: Add a label to the prepared image and let the multi-layer neural network of the determination means 30 learn. The number of images at this time is preferably at least 10, preferably 100 or more. Also, at this stage, it is desirable to prepare training data so that the food 60 near the boundary between the non-defective product and the defective product is determined to be non-defective.
Step S3: Place the food 60 to be inspected on the belt conveyor 11. FIG.
Step S4: The image of the food 60 is photographed by the first camera 21, and the judging means 30 judges whether it is a non-defective product or not.
Step S5: If the determination result of the determination means 30 is that the defective product is defective, the defective product is removed from the belt conveyor 11 by the removing means 40 .
Step S6: If the determination means 30 has already been re-learned and the determination accuracy of the determination means 30 of the food inspection device 110 is sufficiently high, the product is shipped as a non-defective product (step S12). In this case, steps S3 to S6 and non-defective product shipment (step S12) are repeated thereafter.

ステップS7:食品検査装置110の判定手段30の判定精度が十分でない場合、また、自社の良品と不良品との判定基準を、食品検査装置110の判定手段30に反映させたい場合には、食品検査装置110の良品を食品検査学習装置120に搬送し、作業者70が良品不良品の判定を行うとともに、第2のカメラ22で作業者70の手元を撮影する。作業者70が良品と判定した食品60は出荷する(ステップS12)。
ステップS8:作業者70が食品60を廃棄した場合、廃棄された時刻から、廃棄された食品60が第1のカメラ21で撮影された食品60のうちのどの食品60であるかを検知し、その食品60の画像を不良品の画像として保存する。
ステップS9:検査時間が所定の時間を超過するまで、あるいは検査個数が所定の個数を超過するまでステップS3(食品搬送)~ステップS8(不良品画像保存)が繰り返される。
ステップS10:検査時間が所定の時間を超過した場合、あるいは検査個数が所定の個数を超過した場合には、いったんステップS3~S8を停止し、保存手段50に保存された画像の中から、判定手段30再学習のために用いるべき不良品の画像を選別する。
ステップS11:保存手段50に保存された不良品の画像にラベルを追加し、ステップS1で準備した良品および不良品の画像と組み合わせて、判定手段30の多層ニューラルネットワークを再学習させる。再学習終了後は、再びステップS3~S8に沿って、食品60の検査、および再学習のための不良品画像の保存を繰り返す。
Step S7: If the determination accuracy of the determination means 30 of the food inspection device 110 is not sufficient, or if it is desired to reflect the determination criteria of the company's good products and defective products in the determination means 30 of the food inspection device 110, the food The non-defective product of the inspection device 110 is conveyed to the food inspection learning device 120 , and the operator 70 judges whether the product is non-defective or defective, and the second camera 22 photographs the hand of the operator 70 . The food 60 determined by the operator 70 to be non-defective is shipped (step S12).
Step S8: When the worker 70 discards the food 60, detect which food 60 is the food 60 photographed by the first camera 21 from the time when the food 60 was discarded, The image of the food 60 is saved as an image of the defective product.
Step S9: Steps S3 (food transportation) to step S8 (defective product image storage) are repeated until the inspection time exceeds a predetermined time or until the number of inspected items exceeds a predetermined number.
Step S10: If the inspection time exceeds a predetermined time, or if the number of inspections exceeds a predetermined number, steps S3 to S8 are temporarily stopped, and the image stored in the storage means 50 is used for determination. Means 30 selects images of defective products to be used for re-learning.
Step S11: Add a label to the image of the defective product stored in the storage means 50, combine it with the images of the good product and the defective product prepared in step S1, and relearn the multi-layer neural network of the judgment means 30. FIG. After the re-learning is completed, the inspection of the food 60 and the storage of the defective product image for re-learning are repeated along steps S3 to S8.

[第2の実施形態]
第2の実施形態の食品検査学習装置120aは、食品検査装置110の判定手段30を再学習するための教師データを収集する装置である。したがって、食品検査装置110は含まない。
図4は第2の実施形態の食品検査学習装置120aの構成を示す模式図である。第2の実施形態の食品検査学習装置120aは、ベルトコンベア11a、第1のカメラ21a、第2のカメラ22、保存手段50、および廃棄ボックス71から構成される。第2のカメラ22はベルトコンベア11aの後方上部に配置されている。また、ベルトコンベア11の側方で、第2のカメラ22の近傍には作業者70が位置している。
[Second embodiment]
The food inspection learning device 120 a of the second embodiment is a device that collects teacher data for re-learning the determination means 30 of the food inspection device 110 . Therefore, the food inspection device 110 is not included.
FIG. 4 is a schematic diagram showing the configuration of a food inspection learning device 120a of the second embodiment. A food inspection learning device 120a of the second embodiment comprises a belt conveyor 11a, a first camera 21a, a second camera 22, storage means 50, and a disposal box 71. FIG. The second camera 22 is arranged in the rear upper part of the belt conveyor 11a. A worker 70 is positioned near the second camera 22 on the side of the belt conveyor 11 .

食品検査学習装置120aに載置された食品60は、第1のカメラ21aにより画像を撮影される。画像を撮影された食品60は、作業者70の前面に搬送され、作業者70は前面の食品60が良品か不良品かを判断し、不良品の場合は食品60を廃棄ボックス71に廃棄する。第2のカメラ22は作業者70の手の動きを撮影し、保存手段50は第2のカメラ22で撮影された画像を入力し、作業者70が食品60を廃棄した場合、廃棄された時刻から、廃棄された食品60が第1のカメラ21aで撮影された食品60のうちのどの食品60であるかを検知し、その食品60の画像を不良品の画像として保存する。 The image of the food 60 placed on the food inspection learning device 120a is captured by the first camera 21a. The imaged food 60 is conveyed to the front of the worker 70, and the worker 70 judges whether the food 60 on the front is good or defective, and discards the food 60 in a disposal box 71 if it is defective. . The second camera 22 captures the movement of the hand of the worker 70, the storage means 50 inputs the image captured by the second camera 22, and when the worker 70 discards the food 60, the discarded time Therefore, which food 60 is the food 60 photographed by the first camera 21a is detected, and the image of the food 60 is stored as the image of the defective product.

食品検査学習装置120aで収集された不良品の画像は、再学習用データとして食品検査装置110に提供される。
食品検査学習装置120aにおける作業者70の良品、不良品の判断は瞬時に行われなければならないため、作業者70が良品を不良品と判断してしまう可能性もある。したがって、保存手段50に保存された不良品の画像を判定手段30の再学習に用いるにあたっては、不良品の画像のうちから食品検査装置110で不良品と判定すべき画像を選別して食品検査装置110の判定手段30の再学習に用いることが望ましい。また、その際には、判定基準の精度向上のために、不良品と判定すべき画像のそれぞれを適切なラベルを指定することが望ましい。
Images of defective products collected by the food inspection learning device 120a are provided to the food inspection device 110 as re-learning data.
Since the worker 70 in the food inspection learning device 120a must instantly judge whether the product is good or bad, there is a possibility that the worker 70 will judge a good product as a bad product. Therefore, when using the image of the defective product stored in the storage means 50 for re-learning of the judgment means 30, the image to be judged as the defective product by the food inspection apparatus 110 is selected from the image of the defective product, and the food inspection is performed. It is desirable to use it for re-learning of the determination means 30 of the device 110 . In this case, it is desirable to designate an appropriate label for each image to be determined as defective in order to improve the accuracy of the determination criteria.

本発明において、食品検査装置110が『食品検査装置』に相当し、食品検査学習装置120、120aが『食品検査学習装置』に相当し、食品検査システム100が『食品検査システム』に相当し、食品60が『食品』に相当し、ベルトコンベア11、11aが『搬送手段』に相当し、第1のカメラ21、21aが『第1の撮影手段』に相当し、判定手段30が『判定手段』に相当し、除去手段40が『除去手段』に相当し、第2のカメラ22が『第2の撮影手段』に相当し、作業者70が『作業者』に相当し、保存手段50が『保存手段』に相当し、照明装置24が『光照射手段』に相当する。 In the present invention, the food inspection device 110 corresponds to the "food inspection device", the food inspection learning devices 120 and 120a correspond to the "food inspection learning device", the food inspection system 100 corresponds to the "food inspection system", The food 60 corresponds to "food", the belt conveyors 11 and 11a correspond to "conveyance means", the first cameras 21 and 21a correspond to "first photographing means", and the determination means 30 corresponds to "determination means , the removing means 40 corresponds to the ``removing means'', the second camera 22 corresponds to the ``second photographing means'', the worker 70 corresponds to the ``worker'', and the storage means 50 corresponds to It corresponds to the "storage means", and the illumination device 24 corresponds to the "light irradiation means".

本発明の好ましい一実施形態は上記の通りであるが、本発明はそれだけに制限されない。本発明の精神と範囲から逸脱することのない様々な実施形態が他になされることは理解されよう。さらに、本実施形態において、本発明の構成による作用および効果を述べているが、これら作用および効果は、一例であり、本発明を限定するものではない。 Although one preferred embodiment of the invention is described above, the invention is not so limited. It is understood that various other embodiments can be made without departing from the spirit and scope of the invention. Furthermore, in this embodiment, the actions and effects of the configuration of the present invention are described, but these actions and effects are examples and do not limit the present invention.

11、11aベルトコンベア
21、21a 第1のカメラ
22 第2のカメラ
24 照明装置
30 判定手段
40 除去手段
50 保存手段
60 食品
70 作業者
100 食品検査システム
110 食品検査装置
120、120a 食品検査学習装置
11, 11a Belt conveyor 21, 21a First camera 22 Second camera 24 Lighting device 30 Determination means 40 Removal means 50 Preservation means 60 Food 70 Worker 100 Food inspection system 110 Food inspection device 120, 120a Food inspection learning device

Claims (6)

食品検査装置と食品検査学習装置と搬送手段とを含む食品検査システムであって、
前記搬送手段は前記食品検査装置から前記食品検査学習装置へと食品を搬送し、
前記食品検査装置は、
前記搬送手段上の食品を撮影する第1の撮影手段と、
前記第1の撮影手段が撮影した食品の画像を入力して良品か不良品かを判定する判定手段と、
前記判定手段が不良品と判定した食品を前記搬送手段上から除去する除去手段と、を含み、
前記判定手段は多層ニューラルネットワークで構成され、あらかじめ良品の画像および/または不良品の画像を用いて学習され、
前記食品検査学習装置は、
作業者の手元を撮影する第2の撮影手段と、
前記第2の撮影手段で撮影した画像を入力し、前記作業者が食品を不良品と判断して廃棄した場合に、前記第1の撮影手段で撮影した画像のうちから廃棄された不良品に該当する画像を保存する保存手段と、を含み、
前記保存手段に保存された不良品の画像と、前記良品の画像および/または不良品の画像とを用いて、前記食品検査装置の前記判定手段が再学習される、食品検査システム。
A food inspection system including a food inspection device, a food inspection learning device, and a conveying means,
the conveying means conveys the food from the food inspection device to the food inspection learning device;
The food inspection device is
a first photographing means for photographing the food on the conveying means;
Judgment means for inputting an image of food photographed by the first photographing means and judging whether it is a non-defective product or a defective product;
a removing means for removing the food determined as defective by the determining means from the conveying means,
The determination means is composed of a multi-layer neural network and is learned in advance using images of good products and/or images of defective products,
The food inspection learning device is
a second photographing means for photographing the hand of the worker;
When an image photographed by the second photographing means is input, and the worker determines that the food is defective and discards the food, among the images photographed by the first photographing means, the discarded defective product is selected. and storage means for storing the relevant image,
A food inspection system, wherein the determination means of the food inspection device is re-learned using the image of the defective product stored in the storage means and the image of the good product and/or the image of the defective product.
前記保存手段に保存された不良品の画像のうちから、前記食品検査装置で不良品と判定すべき画像がさらに選別されて、前記食品検査装置の前記判定手段の再学習に用いられ、
前記判定手段の再学習は、所定の検査時間または所定の検査された食品の個数ごとに行われる、請求項1に記載の食品検査システム。
An image to be determined as a defective product by the food inspection device is further selected from the images of defective products stored in the storage means, and used for re-learning of the determination means of the food inspection device,
2. The food inspection system according to claim 1, wherein the re-learning of said judgment means is performed every predetermined inspection time or every predetermined number of inspected foods.
前記食品検査装置は、前記第1の撮影手段が撮影する食品を照射する光照射手段をさらに備え、
前記光照射手段は特定の波長の光を強調する、請求項1または2に記載の食品検査システム。
The food inspection device further comprises light irradiation means for irradiating the food photographed by the first photographing means,
3. The food inspection system according to claim 1, wherein said light irradiation means emphasizes light of a specific wavelength.
前記多層ニューラルネットワークの教師データは、良品、および異なる種類の不良品の画像ごとにそれぞれ別のラベルが指定される、請求項1から3のいずれか1項に記載の食品検査システム。 4. The food inspection system according to any one of claims 1 to 3, wherein the training data of said multi-layer neural network designates different labels for images of good products and images of different kinds of defective products. 多層ニューラルネットワークで構成された、食品が良品か不良品かを判定する判定手段の学習のための検査学習装置であって、
検査学習する食品を搬送する搬送手段と、
前記搬送手段上の食品を撮影する第1の撮影手段と、
作業者の手元を撮影する第2の撮影手段と、
前記第2の撮影手段で撮影した画像を入力し、前記作業者が不良品と判断して廃棄した場合に、前記第1の撮影手段で撮影した画像のうちから廃棄された不良品に該当する画像を保存する保存手段と、を含み、
前記保存手段に保存された不良品の画像が前記判定手段の再学習に用いられる、食品検査学習装置。
An inspection learning device for learning judgment means for judging whether food is good or bad, comprising a multi-layer neural network,
a conveying means for conveying food to be inspected and learned;
a first photographing means for photographing the food on the conveying means;
a second photographing means for photographing the hand of the worker;
When the image photographed by the second photographing means is inputted and the worker determines that the product is defective and discards it, the image photographed by the first photographing means corresponds to the discarded defective product. a storage means for storing the image;
A food inspection learning device, wherein images of defective products stored in the storage means are used for re-learning of the judgment means.
食品の画像を入力して良品か不良品かを判定する食品検査方法であって、
良品の画像および/または不良品の画像を教師データとして、多層ニューラルネットワークに良品か不良品かの判定を学習させる第1学習工程と、
前記食品の画像を撮影し、前記食品の画像を前記多層ニューラルネットワークに入力して良品か不良品かを判定する第1判定工程と、
前記第1判定工程で良品とされた食品の中から作業者が不良品を取り除く第2判定工程と、
前記第2判定工程で取り除かれた不良品の画像と、前記良品の画像および/または不良品の画像とを用いて前記多層ニューラルネットワークを再学習させる第2学習工程と、を含む、食品検査方法。
A food inspection method for inputting an image of food and determining whether it is a good product or a defective product,
a first learning step of making a multi-layered neural network learn to determine whether a product is good or bad, using images of non-defective products and/or images of defective products as training data;
a first determination step of capturing an image of the food, inputting the image of the food into the multi-layer neural network, and determining whether it is a good product or a defective product;
A second judgment step in which an operator removes defective products from the foods determined to be non-defective in the first judgment step;
A food inspection method, comprising a second learning step of re-learning the multilayer neural network using the image of the defective product removed in the second determination step and the image of the good product and/or the image of the defective product. .
JP2021065224A 2021-04-07 2021-04-07 Food inspection system, food inspection learning device and food inspection method Active JP7097642B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021065224A JP7097642B1 (en) 2021-04-07 2021-04-07 Food inspection system, food inspection learning device and food inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021065224A JP7097642B1 (en) 2021-04-07 2021-04-07 Food inspection system, food inspection learning device and food inspection method

Publications (2)

Publication Number Publication Date
JP7097642B1 JP7097642B1 (en) 2022-07-08
JP2022160796A true JP2022160796A (en) 2022-10-20

Family

ID=82356937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021065224A Active JP7097642B1 (en) 2021-04-07 2021-04-07 Food inspection system, food inspection learning device and food inspection method

Country Status (1)

Country Link
JP (1) JP7097642B1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015137919A (en) * 2014-01-22 2015-07-30 大日本印刷株式会社 Visual inspection device, visual inspection method, and program
JP2018165948A (en) * 2017-03-28 2018-10-25 国立大学法人神戸大学 Image recognition device, image recognition method, computer program, and product monitoring system
JP2019076819A (en) * 2017-10-23 2019-05-23 ファナック株式会社 Sorting system
JP2019197441A (en) * 2018-05-11 2019-11-14 株式会社 日立産業制御ソリューションズ Learning device, learning method, and learning program
JP2019211288A (en) * 2018-06-01 2019-12-12 埼玉県 Food testing system and program
JP2020011182A (en) * 2018-07-14 2020-01-23 株式会社京都製作所 Commodity inspection device, commodity inspection method and commodity inspection program
JP2021149142A (en) * 2020-03-16 2021-09-27 株式会社イシダ Meat discrimination device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015137919A (en) * 2014-01-22 2015-07-30 大日本印刷株式会社 Visual inspection device, visual inspection method, and program
JP2018165948A (en) * 2017-03-28 2018-10-25 国立大学法人神戸大学 Image recognition device, image recognition method, computer program, and product monitoring system
JP2019076819A (en) * 2017-10-23 2019-05-23 ファナック株式会社 Sorting system
JP2019197441A (en) * 2018-05-11 2019-11-14 株式会社 日立産業制御ソリューションズ Learning device, learning method, and learning program
JP2019211288A (en) * 2018-06-01 2019-12-12 埼玉県 Food testing system and program
JP2020011182A (en) * 2018-07-14 2020-01-23 株式会社京都製作所 Commodity inspection device, commodity inspection method and commodity inspection program
JP2021149142A (en) * 2020-03-16 2021-09-27 株式会社イシダ Meat discrimination device

Also Published As

Publication number Publication date
JP7097642B1 (en) 2022-07-08

Similar Documents

Publication Publication Date Title
JP7391173B2 (en) Food inspection aid system, food inspection aid device, and computer program
WO2019151393A1 (en) Food inspection system, food inspection program, food inspection method and food production method
Arivazhagan et al. External and internal defect detection of egg using machine vision
US11761845B2 (en) Inspection of vacuum packaged product for detection of gas inside package
JP6357617B2 (en) Defect inspection equipment
US20220214243A1 (en) System for in-line inspection of seal integrity
WO2021221176A1 (en) Inspection device for tofu products, manufacturing system for tofu products, inspection method for tofu products, and program
Chao et al. Design of a dual-camera system for poultry carcasses inspection
JP5455409B2 (en) Foreign matter sorting method and foreign matter sorting equipment
WO2021193733A1 (en) Training data generation device, inspection device, and program
JP7097642B1 (en) Food inspection system, food inspection learning device and food inspection method
JP3614980B2 (en) Agricultural product appearance inspection method and apparatus
Pearson et al. Automated detection of pistachio defects by machine vision
JP7248316B2 (en) TOFU INSPECTION DEVICE, TOFU MANUFACTURING SYSTEM, TOFU INSPECTION METHOD, AND PROGRAM
JP6699694B2 (en) Inspection system, inspection method
Cui et al. Automated pattern recognition and defect inspection system
EP4372677A1 (en) System and method for detecting an unwanted structure in one or more x-ray images of a food product
KR102625717B1 (en) Vision egg sorting system
Mindoro et al. Automatic Visual Detection of Fresh Poultry Egg Quality Inspection using Image Processing
KR102578919B1 (en) Automatic Sorting Separation System for Recycled PET
KR102578920B1 (en) Apparatus for PET sorting based on artificial intelligence
US20210100256A1 (en) Foreign Material Inspection System
JP7318907B2 (en) Veneer Judgment System and Veneer Judgment Method
JP2024067447A (en) Program, control device, information processing method, learning model generation method, and system
JP4699129B2 (en) Agricultural product inspection equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211217

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20211217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220325

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220621

R150 Certificate of patent or registration of utility model

Ref document number: 7097642

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150