Objective: To realize the rapid on-line detection of defective rice flour. Methods: Non-contact data acquisition of rice flour blocks through cameras, image upload and processing, obtained the contour perimeter and area, approximate contour perimeter and area, approximate contour points and radius of the contour circle. According to the characteristics of rice flour block sample data, the SVM classification algorithm was used to analyze the sample set composed of multi feature data of rice flour block. Results: Compared with five algorithms, the average accuracy of GBDT classification algorithm was 89% with elapsed time of 1.10 s. The average accuracy of KNN classification algorithm was 88% with elapsed time of 0.23 s. The average accuracy of logistic regression classification algorithm was 88% with elapsed time of 0.68 s. The average accuracy of random forest classifica-tion algorithm was 87% with elapsed time of 0.47 s. The average accuracy of tree classification algorithm was 87% with elapsed time of 0.084 s. SVM classification algorithm had the highest average detection accuracy, up to 95%, and the shortest average elapsed time of 0.000 97 s. Conclusion: SVM classification algorithm has the characteristics of high accuracy and low elapsed time, which adapt the on-line detection of defective rice flour.

Publication Date


First Page


Last Page





[1] 黎东,张周莉,张福,等.2018~2020年南充市米粉质量安全状况分析[J].食品安全质量检测学报,2020,11(15):5 184-5 189.LI Dong,ZHANG Zhou-li,ZHANG Fu,et al.Quality and safety analysis of rice flour in Nanchong from 2018 to 2020[J].Journal of Food Safety and Quality Inspection,2020,11(15):5 184-5 189.
[2] 黄维安,蒙毅,陈磊,等.干米粉加工中常见问题的原因分析与对策[J].粮油食品科技,2020,28(6):158-165.HUANG Wei-an,MENG Yi,CHEN Lei,et al.Cause analysis and countermeasures of common problems in dry rice flour processing[J].Grain,Oil and Food Science and Technology,2020,28(6):158-165.
[3] 张先洁,汪小旵,孙国祥,等.基于彩色点云图像的不同成熟阶段番茄果实数量的测定方法[J].华南农业大学学报,2022,43(2):123-128.ZHANG Xian-jie,WANG Xiao-chan,SUN Guo-xiang,et al.A method for measuring the number of tomato fruits at different maturity stages based on color point cloud image[J].Journal of South China Agricultural University,2022,43(2):123-128.
[4] ZHU Hong-fei,YANG Lian-he,FEI Jian-wu.Recognition of carrot appearance quality based on deep feature and support vector machine[J].Computers and Electronics in Agriculture,2021,186(7):1-8.
[5] LAXMI Scindhiya,GUPTA S K.Multi-category intuitionistic fuzzy twin support vector machines with an application to plant leaf recognition[J].Engineering Applications of Artificial Intelligence,2022,110(4):1-27.
[6] 程子华.基于机器视觉的残缺饼干分拣系统开发[J].现代食品科技,2022,38(2):1-6.CHENG Zi-hua.Development of incomplete biscuit sorting system based on machine vision[J].Modern Food Science and Technology,2022,38(2):1-6.
[7] 李成吉,张淑娟,孙海霞,等.基于计算机视觉的核桃外观缺陷检测[J].现代食品科技,2019,35(8):247-253,246.LI Cheng-ji,ZHANG Shu-juan,SUN Hai-xia,et al.Walnut appearance defect detection based on computer vision[J].Modern Food Technology,2019,35(8):247-253,246.
[8] 李文秀,栾秋平.基于机器视觉的预包装食品检测[J].食品与机械,2020,36(9):155-157,176.LI Wen-xiu,LUAN Qiu-ping.Detection of prepackaged food based on machine vision[J].Food & Machinery,2020,36(9):155-157,176.
[9] 张红岩,王永志,刘庆红.图像识别技术在食品包装缺陷检测中的应用[J].食品与机械,2020,36(8):225-228.ZHANG Hong-yan,WANG Yong-zhi,LIU Qing-hong.Application of image recognition technology in food packaging defect detection[J].Food & Machinery,2020,36(8):225-228.
[10] CORTES C,VAPNIK V N.Support-vector networks[J].Machine Learnig,1995,20(3):273-297.
[11] VAPNIK V N.The nalure of statistical learning theory[M].New York:Springer,1995:133-135.
[12] 梁礼明,冯新刚,陈云嫩,等.基于样本分布特征的核函数选择方法研究[J].计算机仿真,2013,30(1):323-328.LIANG Li-ming,FENG Xin-gang,CHEN Yun-nen,et al.Research on kernel function selection method based on sample distribution characteristics[J].Computer Simulation,2013,30(1):323-328.
[13] 王文剑,田萌.核选择研究进展[J].山西大学学报(自然科学版),2017,40(3):460-471.WANG Wen-jian,TIAN Meng.Advances in kernel selection research[J].Journal of Shanxi University(Natural Science Edition),2017,40(3):460-471.

Included in

Food Science Commons



To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.