高级检索
王强, 武凯, 王新宇, 孙宇, 杨晓燕, 楼晓华. 基于X射线的盒装水饺异物自动检测与分类[J]. 计算机辅助设计与图形学学报, 2018, 30(12): 2242-2252. DOI: 10.3724/SP.J.1089.2018.17265
引用本文: 王强, 武凯, 王新宇, 孙宇, 杨晓燕, 楼晓华. 基于X射线的盒装水饺异物自动检测与分类[J]. 计算机辅助设计与图形学学报, 2018, 30(12): 2242-2252. DOI: 10.3724/SP.J.1089.2018.17265
Wang Qiang, Wu Kai, Wang Xinyu, Sun Yu, Yang Xiaoyan, Lou Xiaohua. Automatic Detection and Classification of Foreign Bodies of Dumplings Based on X-ray[J]. Journal of Computer-Aided Design & Computer Graphics, 2018, 30(12): 2242-2252. DOI: 10.3724/SP.J.1089.2018.17265
Citation: Wang Qiang, Wu Kai, Wang Xinyu, Sun Yu, Yang Xiaoyan, Lou Xiaohua. Automatic Detection and Classification of Foreign Bodies of Dumplings Based on X-ray[J]. Journal of Computer-Aided Design & Computer Graphics, 2018, 30(12): 2242-2252. DOI: 10.3724/SP.J.1089.2018.17265

基于X射线的盒装水饺异物自动检测与分类

Automatic Detection and Classification of Foreign Bodies of Dumplings Based on X-ray

  • 摘要: 针对盒装水饺中的异物严重危害消费者身心健康,以及传统金属检测机只能检测金属、检测结果无法直观可视的现状,提出使用X射线成像技术和图像处理技术对水饺中的金属钢球、细铁丝、螺钉、石头和玻璃5种异物进行自动检测与分类方法.首先提取图像的LBP, HOG, Gabor纹理特征构建特征向量,使用支持向量机对异物水饺图像进行识别;在图像分割阶段,提出一种附加偏移量的最大熵算法与线性递减权重的粒子群算法结合的阈值分割算法,把图像目标区域的熵附加一个偏移函数,将图像总熵作为粒子群算法的适应度函数来获取图像的最佳分割阈值,实现对异物水饺图像的分割;在异物分类阶段,提取水饺二值图像中异物的圆度、长宽比、偏心率和灰度图像中异物最小外接矩形区域的灰度均值、方差、熵、三阶矩、7个灰度不变矩、LBP等76个特征构建特征向量,使用BP神经网络、支持向量机、K邻近、AdaBoost和朴素贝叶斯分类器对5种异物进行分类.实验结果表明,文中提出的识别方法对异物水饺图像的识别率达到99.52%;与Otsu分割算法、K-means分割算法、基于最大熵与遗传算法的分割算法(KSW-GA)、基于遗传神经网络的图像分割算法(GA-BP)相比,文中的分割算法分割结果更加精确; BP神经网络分类结果优于其他分类器,总体识别率达到98.90%.文中方法为食品中的异物在线自动检测提供了新的思路,对保证食品安全具有重要的现实意义.

     

    Abstract: In view of the fact that foreign bodies in boxed dumplings seriously endanger consumers’physical and mental health and that traditional metal detectors can only detect metals and the results cannot be visualized directly,X-ray imaging technology and image processing technology were used to automatically detect five kinds of foreign bodies in boxed dumplings,including steel balls,thin wires,screws,stones and glass.Firstly,we extracted LBP,HOG and Gabor texture features to construct feature vectors,and used Support Vector Machine to recognize foreign bodies in dumpling images.In the image segmentation stage,a threshold segmentation algorithm combining the maximum entropy algorithm of additional offset with the particle swarm optimization algorithm of linear decreasing weight was proposed.The algorithm added an offset function to the entropy of the image target area and took the total entropy of the image as the fitness function of particle swarm optimization algorithm to obtain the optimal threshold of image,and realized the image segmentation of foreign body dumplings.In the foreign body classification stage,the roundness,aspect ratio,eccentricity of the foreign objects in the binary image of the dumplings,and the gray mean,variance,entropy,third moment,the seven invariant moments,the LBP features of the minimum circumscribed rectangular area of the foreign bodies in the gray image were extracted to construct feature vectors.Then we used the BP neural network,Support Vector Machine,K-neighboring,AdaBoost and Naive-bayes classifier to classify five kinds of foreign bodies.The experimental results show that the recognition rate of the image recognition method for foreign body dumplings is 99.52%.Compared with segmentation algorithms of Otsu,K-means,the maximum entropy based genetic algorithm(KSW-GA),and genetic neural network(GA-BP)based,the segmentation result of proposed algorithm is more accurate.The classification results of BP neural network are superior to those classifiers,and the overall recognition rate is 98.90%.This study provides a new idea for on-line automatic detection of foreign bodies in food,and has important practical significance for ensuring food safety.

     

/

返回文章
返回