基于特征组合与SVM的小粒种咖啡缺陷生豆检测  被引量:12

Detection of defective Arabica green coffee beans based on feature combination and SVM

在线阅读下载全文

作  者:赵玉清 杨慧丽[1,3] 张悦 杨颜凯 杨毅[3,4] 赛敏 Zhao Yuqing;Yang Huili;Zhang Yue;Yang Yankai;Yang Yi;Sai Min(Faculty of Mechanical and Electrical Engineering,Yunnan Agriculture University,Kunming 650201,China;Faculty of Transportation Engineering,Kunming University of Science and Technology,Kunming 650093,China;The Key Laboratory for Crop Production and Smart Agriculture of Yunnan Province,Kunming 650201,China;College of Big Data,Yunnan Agricultural University,Kunming 650201,China;Yunnan Pu'er Changmu Coffee Co.,Ltd.,Pu'er 665000,China)

机构地区:[1]云南农业大学机电工程学院,昆明650201 [2]昆明理工大学交通工程学院,昆明650093 [3]云南省作物生产与智慧农业重点实验室,昆明650201 [4]云南农业大学大数据学院,昆明650201 [5]云南普洱市长木咖啡有限公司,普洱665000

出  处:《农业工程学报》2022年第14期295-302,共8页Transactions of the Chinese Society of Agricultural Engineering

基  金:云南省重大科技专项计划项目(202002AE090010);云南省作物生产与智慧农业重点实验室开放课题(202105AG070007)联合资助。

摘  要:缺陷生咖啡豆显著影响商品咖啡豆品质及定价,其分选剔除是咖啡豆烘焙前的重要工作环节。目前缺陷豆的检测、分选及剔除主要由人工操作完成,耗时、费力且主观性大。该研究采用机器视觉技术提取咖啡豆轮廓、颜色和纹理3类特征,使用单一类别特征和不同类别特征进行组合,运用网格搜索确定支持向量机(Support Vector Machine,SVM)分类模型参数,通过k折交叉验证试验对比SVM模型性能,运用皮尔逊相关系数进行特征筛选,找到检测缺陷生咖啡豆的较优特征组合。为说明SVM检测模型的有效性,选用随机森林(Random Forests,RF)、极端随机树(Extremely Randomized Trees,ERT)、逻辑回归(LogisticRegression,LR)、LightGBM、XGBoost和CatBoost算法进行较优特征组合的对比试验。结果表明:包括轮廓、颜色和纹理3类14个特征的组合是较优特征组合,其SVM检测模型的平均准确率、平均精度、平均召回率、平均F1值分别为84.9%、85.8%、82.3%、84.0%,效果均明显优于2类特征组合和单一类别特征的检测模型,SVM检测模型的准确率和F1值相比随机森林、极端随机树、逻辑回归、LightGBM、XGBoost和CatBoost分别提高4.7和4.8,3.4和4.0,5.6和7.2,3.0和3.0,3.5和4.2,2.6和2.6个百分点。较优特征组合的SVM缺陷生咖啡豆检测模型检测缺陷类型较全面,识别准确率高,可实际应用于小粒种生咖啡豆智能化分选装备。Defective green coffee beans significantly affect the quality and pricing of commercial coffee beans. A small number of defective beans(such as black and sour beans) can directly lower the quality of the green coffee beans and the commercial rating. For this reason, the key limiting steps can be the accurate detection and removal of defective green coffee beans before baking. However, the current manual detection and removal of defective green coffee beans cannot fully meet large-scale production during this time, due to the time-consuming, laborious, and subjective. Therefore, it is urgent for the automatic detection of defective green coffee beans with high efficiency, accuracy, and unified quantitative standards in the production and circulation of coffee beans. Alternatively, machine learning has been an active and cutting-edge artificial intelligence research field in recent years. Machine vision can also provide a non-contact automatic detection of the external quality of goods, particularly with real-time, highly efficient, and low cost. Therefore, machine vision has been widely used in agricultural product identification and defect detection. In this study, an accurate and rapid detection was proposed for the defective Arabica green coffee beans using feature combination and Support Vector Machine(SVM). 2873 Arabica green coffee beans were firstly selected as the trial materials via the globally certified coffee quality evaluators. 1 500 normal and 1 373 defective beans were included in this case. The defective beans were divided into 11 defective categories. The images were then preprocessed to accurately extract the value of the features for the higher detection efficiency. Specifically, some techniques were used during preprocessing, such as Grayscale, Gaussian Blur, Gamma transformation, Canny edge detection,Edge enhancement, Binarization, and Morphological processing. Machine vision was used to extract a total of 19 features in the three categories: profile, texture, and color of green coffee beans.

关 键 词:机器视觉 识别 特征组合 SVM 缺陷生咖啡豆 检测模型 

分 类 号:TP39[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象