潘磊庆, 王振杰, 孙柯, 贾晓迪, 都立辉, 袁建, 屠康. 基于计算机视觉的稻谷霉变程度检测[J]. 农业工程学报, 2017, 33(3): 272-280. DOI: 10.11975/j.issn.1002-6819.2017.03.037
    引用本文: 潘磊庆, 王振杰, 孙柯, 贾晓迪, 都立辉, 袁建, 屠康. 基于计算机视觉的稻谷霉变程度检测[J]. 农业工程学报, 2017, 33(3): 272-280. DOI: 10.11975/j.issn.1002-6819.2017.03.037
    Pan Leiqing, Wang Zhenjie, Sun Ke, Jia Xiaodi, Du Lihui, Yuan Jian, Tu Kang. Detection of paddy mildew degree based on computer vision[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2017, 33(3): 272-280. DOI: 10.11975/j.issn.1002-6819.2017.03.037
    Citation: Pan Leiqing, Wang Zhenjie, Sun Ke, Jia Xiaodi, Du Lihui, Yuan Jian, Tu Kang. Detection of paddy mildew degree based on computer vision[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2017, 33(3): 272-280. DOI: 10.11975/j.issn.1002-6819.2017.03.037

    基于计算机视觉的稻谷霉变程度检测

    Detection of paddy mildew degree based on computer vision

    • 摘要: 为了实现无损检测稻谷储藏中的霉变,该研究以引起稻谷霉变的5种常见真菌(米曲霉、黑曲霉、构巢曲霉、桔青霉和杂色曲霉)为对象,首先进行真菌培养,制成悬浮液,然后将悬浮液接种到稻谷样品中,对稻谷样品模拟储藏,确定不同霉变程度的稻谷类型,划分为对照组(无霉变)、轻微霉变组和严重霉变组。利用计算机视觉系统对三组稻谷样品进行图像采集和图像处理,提取灰度、颜色和纹理特征,共获取68个图像特征。采用支持向量机(support vector machines, SVM)和偏最小二乘法判别分析(partial least squares discriminant analysis, PLS-DA)构建模型,分别用于无霉变稻谷与霉变稻谷的区分和稻谷霉变类型区分。为了降低模型复杂度和数据冗余,利用连续投影算法(successive projections algorithm, SPA)来消除原始数据变量间的共线性,优选特征值。结果表明:利用所有参数构建的SVM模型能够很好的区分对照组与霉变组,其中建模集和验证集总体区分准确率分别为99.7%和98.4%;SVM模型对于稻谷严重霉变类型的区分效果要优于轻微霉变稻谷,其中对稻谷轻微霉变类型建模集和验证集总体区分的准确率分别为99.3%和92.0%,对稻谷严重霉变类型区分的总体准确率分别为100%和94%,且整体上SVM模型的效果要优于PLS-DA模型。而基于SPA优选特征构建的模型区分结果表明,SVM模型区分效果优于PLS-DA模型,其中,在建模集和验证集中,对无霉变和霉变稻谷总体区分准确率分别为99.8%和99.5%,对稻谷轻微霉变种类区分总体准确率分别为99.8%和90.5%,对稻谷严重霉变种类区分总体准确率分别为100%和95.0%。因此,基于计算机视觉对稻谷霉变检测是可行的,而且SPA优选特征能够较好反映稻谷霉变特征,基于优选特征和SVM模型能够较好地稻谷霉变进行识别和区分,结果较好,可以为实际应用提供技术支持和参考。

       

      Abstract: Abstract: In order to realize non-destructive testing of moldy paddy during storage, the present study developed a computer vision system for laboratory analysis. Five kinds of fungi which mainly caused paddy mildew, including Aspergillus oryzae, Aspergillus nige, Aspergillus nidulans, Penicillium citrinum and Aspergillus versicolor, were used as research objects. Five fungi were cultured and prepared as suspension, which was then inoculated into paddy samples. Paddy was stored in the condition of 30 ℃ and 90% relative humidity to speed up the mildew. According to the mildewing degree, paddy was divided into 3 groups, i.e. control (no mildew), slight mildew and severe mildew. Computer vision system was used for image acquisition of 3 groups of paddy samples. A total of 120, 600 and 600 images of paddy samples were obtained for the groups of control, slight mildew and severe mildew, respectively. After image processing, gray scale, color in the color space of RGB (red, green, blue) and texture features (i.e., angular second moment, energy, contrast, entropy) were extracted using gray level co-occurrence matrix with a total of 68 parameters acquired. SVM (support vector machine) and PLS-DA (partial least squares - discriminant analysis) were used to build the discriminating models for paddy mildew and mildew type. To reduce the complexity of the model and the data redundancy, successive projections algorithm (SPA) was used to eliminate collinearity among the 68 characteristic variables. Then, 11, 13 and 14 optimal features were determined for the classification of moldy paddy, fungus type of slightly moldy paddy and fungus type of severely moldy paddy, respectively. The results showed that, using all the extracted features, SVM models could accurately distinguish between the control group and the mildew group of paddy, which got an overall classification accuracy of 99.7% and 98.4% for modeling and validation set, respectively; SVM models presented better distinguishing performance for paddy's severe mildew type than slight mildew type; concerning paddy's severe mildew type, the overall classification accuracy was 100% and 94% for modeling and validation set, respectively, and concerning paddy's slight mildew type, the overall classification accuracy reached 99.3% and 92% for modeling and validation set, respectively. As a whole, SVM model obtained higher accuracy than PLS-DA. Based on the preferred feature selected by SPA, SVM models still distinguished better than PLS-DA models for paddy's mildew. For modeling and validation set, the accuracies were respective 99.8% and 99.5% for the discrimination between no mildew and mildewing paddy, 99.8% and 90.5% for the discrimination among paddy's slight mildew type, and 100% and 95.0% for the discrimination among paddy's severe mildew type. Therefore, the computer vision technique is feasible for paddy's mildew detection; the preferred features determined by SPA can well reflect paddy mildewing features. Using the preferred features, SVM models are able to identify and distinguish paddy mildew with satisfactory results, which can provide technical support for practical application.

       

    /

    返回文章
    返回