Grading Keemun black tea based on shape feature parameters of machine vision

SONG Yan1 XIE Hanlei1 NING Jingming2 ZHANG Zhengzhu

(1.School of Engineering, Anhui Agricultural University, Hefei, China 230000)
(2.State Key Laboratory of Tea Plant Biology and Utilization, Anhui Agricultural University, Hefei, China 230000)

【Abstract】Objective and accurate identification of tea grades is indispensable in tea processing and sales. Traditional grade identification often depends on human sensory judgments. This method is subjective, difficult to quantify, and has a certain error probability. The objective of this paper was to establish an objective and accurate method to identify the appearance grade of tea. In this paper, Keemun congou black tea was taken as the research object, and a SVM recognition method based on shape feature histogram multi-feature fusion was proposed. Firstly, the tea image acquisition system was built and the camera parameters were calibrated. The rectangular groups and irregular polygon groups of fix dimensions were used to test the measurement accuracy of the image acquisition system. The RGB image of tea leaves was greyed and its binary image was obtained. In order to obtain uniform shape feature parameters, the rotation of tea image was carried out with the minimum area of the leaf’s outer rectangle as the constraint. Secondly, six absolute shape features—leaf length, leaf width, leaf area, leaf perimeter, the length and width of minimum area bounding rectangle, were extracted. On this basis, two relative shape features of length-width ratio and rectangularity were calculated. The histograms of different tea samples in different interval were further obtained, and the histogram distribution of the above characteristics was used as classifier inputs. Finally, the BP neural network, extreme learning machine (ELM), support vector machine (SVM) and least squares support vector machine (LS-SVM) were used as classifiers to classify tea samples. This result showed that the measurement accuracy of the image acquisition system constructed in this paper was less than 0. 3 mm, and the shape feature parameters could be accurately extracted. When identifying all seven grades of tea samples, the recognition accuracy of BP neural network was 53.6%, the recognition accuracy of ELM was 87.86%, the recognition accuracy of SVM was 94. 29% and the recognition accuracy of LS-SVM was 95.71%. The details of BP neural network classifier were as below: When two grades were classified, the recognition accuracy was 100% and the determination coefficient of the test set was 100.00%. When four grades were classified, the recognition accuracy was 97.5% and the determination coefficient of the test set was 93.19%. When all seven classes were classified, the determination coefficient of test set was 53.6%. The details of ELM classifier were as below: When three grades were classified, the recognition accuracy was 90.00%. When five grades were classified, the recognition accuracy was 88.00%. When the SVM classifier with linear kernel function was used to identify seven grades, the determination coefficient of test set was 86.10%. When the LS-SVM classifier with linear kernel function was used to identify seven grades, the determination coefficient of test set was 96.20%. It could be seen that the classifier based on LS-SVM had higher recognition accuracy and the best effect. There were two types of problems in the classification process: One was as the misidentification rate increased with samples amount increasing in the classification model, the second was the misidentification largely happened in adjacent classes. These problems were discussed in this paper. Through the above research, it was verified that the shape feature could be used to identify the appearance grade of Keemun congou black tea. This paper provided detailed experimental data and reference methods for the objective and digital grade identification of Keemun congou black tea.

【Keywords】 image processing; models; neural networks; keemun black tea; appearance; identify grade; support vector machine;

【DOI】

【Funds】 National Key Research and Development Plan Project (2017YFD0400800) National Natural Science Foundation of China—Youth Fund Project (61503363) National Key Laboratory Open Fund Project (Open Fund Project of State Key Laboratory of Tea Plant Biology and Utilization, Anhui Agricultural University, SKLTOF20170118)

Download this article

(Translated by LIU T)

    References

    [1] Quality and Technology Supervision Bureau of Huangshan, Tea research institute, Anhui academy of agricultural sciences. Qimen red tea DB34/t1086-2009 [S]. Hefei: Quality and Technology Supervision Bureau of Anhui Province, 2009: 12 (in Chinese).

    [2] Wang Hongjun, Xiong Juntao, Li Zouzou, et al. Potato grading method of weight and shape based on imaging characteristics parameters in machine vision system [J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2016, 32 (8): 272–277 (in Chinese with English abstract).

    [3] Sabzi S, Abbaspour-Gilandeh Y, Javadikia H. Machine vision system for the automatic segmentation of plants under different lighting conditions [J]. Biosystems Engineering, 2017, 161: 157–173.

    [4] Liu Yande, Xiao Huaichun, Sun Xudong, et al. Spectral feature selection and discriminant model building for citrus leaf Huanglongbing [J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2018, 34 (3): 180–187 (in Chinese with English abstract).

    [5] Zhang Xiaolei, Liu Fei, Nie Pengcheng, et al. Rapid detection of nitrogen content and distribution in oilseed rape leaves based on hyper spectral imaging [J]. Spectroscopy and Spectral Analysis, 2014, 34 (9): 2513–2518 (in Chinese with English abstract).

    [6] Maji S, Chakraborty P, Bhowmick M, et al. Diurnal variation in spectral properties of potato under different dates of planting and N-doses [J]. Environment & Ecology, 2015, 33 (1): 478–483.

    [7] Zhu Jiancai, Wang Lingying, Zuo Bingxiao, et al. Characterization of the key aroma compounds in mulberry fruits by application of gas chromatography-olfactometry (GC-O), odor activity value (OAV), gas chromatographymass spectrometry (GC-MS) and flame photometric detection (FPD) [J]. Food Chemistry, 2017, 245 (15): 775–785.

    [8] Asghari A, Fahimi E, Bazregar M, et al. Rapid determination of some psychotropic drugs in complex matrices by tandem dispersive liquid–liquid micro extraction followed by high performance liquid chromatography [J]. Journal of Chromatography B, 2017, 1052 (1): 51–59.

    [9] Huo Danqun, Wu Yu, Yang Mei, et al. Discrimination of Chinese green tea according to varieties and grade levels using artificial nose and tongue based on colorimetric sensor arrays [J]. Food Chemistry, 2013, 145 (15): 639–645.

    [10] Cai Jianxiong, Wang Yuanfeng, Xi Xionggang, et al. Using FTIR spectra and pattern recognition for discrimination of tea varieties [J]. International Journal of Biological Macromolecules, 2015, 78: 439–446.

    [11] Li Xiaoli, He Yong, Qiu Zhengjun, et al. Texture discrimination of different kinds of green tea based on multi-spectral imaging technique [J]. Journal of Zhejiang University Engineering Science, 2008, 42 (12): 2133–2138 (in Chinese with English abstract).

    [12] Chen Quansheng, Zhang Dongliang, Pan Wenxiu, et al. Recent developments of green analytical techniques in analysis of tea's quality and nutrition [J]. Trends in Food Science & Technology, 2015, 43 (1): 63–82.

    [13] Wang Man, Zhang Zhengzhu, Ning Jingming, et al. Study on quality analysis and class rapid evaluation of tea leaf materials based on near infrared technology [J]. Science and Technology of Food Industry. 2014, 35 (22): 57–64 (in Chinese with English abstract).

    [14] Dong Yongjiang, Liu Xuan, Mei Liang, et al. LED-induced fluorescence system for tea classification and quality assessment [J]. Journal of Food Engineering, 2014, 137 (8): 95–100.

    [15] Sandasi M, Chen Weiyang, Vermaak I, et al. Non-destructive quality assessment of herbal tea blends using hyper spectral imaging [J]. Phytochemistry Letters, 2018, 24: 94–101.

    [16] Dong Chunwang, Zhu Hongkai, Zhou Xiaofen, et al. Quality evaluation for appearance of needle green tea based on machine vision and process parameters [J]. Transactions of the Chinese Society for Agricultural Machinery, 2017, 48 (9): 38–45 (in Chinese with English abstract).

    [17] Gill G S, Kumar A, Agarwal R. Nondestructive grading of black tea based on physical parameters by texture analysis [J]. Biosystems Engineering, 2013, 116 (2): 198–204.

    [18] Zhang Zhengyou. A flexible new technique for camera calibration [J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2000, 22 (11): 1330–1334.

    [19] Gonzalez R C, Woods R E. Digital Image Processing, Third Edition [M]. Upper Saddle River: Prentice Hall, 2001.

    [20] Forsyth D A, Ponce J. Computer Vision: A Modern Approach, Second Edition [M]. Upper Saddle River: Prentice Hall, 2012.

    [21] Li Qing, Tang Huan, Chi Jiannan, et al. Gesture segmentation with improved maximum between-cluster variance algorithm [J]. Acta Automatica Sinica, 2017, 43 (4): 528–537 (in Chinese with English abstract).

    [22] Wang Fengyun, Feng Wenjie, Zheng Jiye, et al. Design and experiment of automatic sorting and grading system based on machine vision for white agaricusbisporus [J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2018, 34 (7): 256–263 (in Chinese with English abstract).

    [23] Sujaritha M, Annadurai S, Satheeshkumar J, et al. Weed detecting robot in sugarcane fields using fuzzy real time classifier [J]. Computers and Electronics in Agriculture, 2017, 134:160–171.

    [24] Zhang Xuming, Xu Binshi, Dong Shiyun. Adaptive median filtering for image processing [J]. Journal of computer-aided design & computer graphics, 2005, 17 (2): 295–299 (in Chinese with English abstract).

    [25] Cheng Pengfei, Yan Haowen, Han Zhenhui. An algorithm for computing the minimum area bounding rectangle of an arbitrary polygon [J]. Journal of Engineering Graphics, 2008, 29 (1): 122–125 (in Chinese).

    [26] Zhao Jiewen, Lin Hao. Data processing and analysis methods for testing food and agricultural products [M]. Beijing: Science Press, 2012 (in Chinese).

    [27] Zhang Defeng. MATLAB neural network application design [M]. Beijing: China Machine Press, 2009 (in Chinese).

    [28] Huang Guangbin, Zhu Qinyu, Siew C K. Extreme learning machine: Theory and applications [J]. Neurocomputing, 2006, 70 (1): 489–501.

    [29] Zhou Zhihua. Machine learning [M]. Beijing: Tsinghua University Press, 2016 (in Chinese).

    [30] Suykens J A K, Vandewalle J. Least squares support vector machine classifiers [J]. Neural Processing Letters, 1999, 9 (3): 293–300.

This Article

ISSN:1002-6819

CN: 11-2047/S

Vol 34, No. 23, Pages 279-286

December 2018

Downloads:0

Share
Article Outline

Abstract

  • 0 Introduction
  • 1 Materials and methods
  • 2 Results and analyses
  • 3 Conclusions
  • References