Grading Method of Kiwifruit Based on Surface Defect Recognition

来源 :农业生物技术(英文版) | 被引量 : 0次 | 上传用户:jpyssy
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
  Abstract Aiming at the problems of single classification method and high classification cost of kiwifruit in China, we proposed a grading method based on kiwifruit surface defects. A set of kiwifruit image acquisition system was built. The K-means clustering segmentation algorithm was used to segment the surface defects, and then color contrast was performed to determine whether it was a piece of defective fruit. Then, the shape features of normal fruit were extracted and an SVM classifier was designed to further determine its grade. This method has the advantages of low cost, simple algorithm and high efficiency, which opens a new way for fruit classification, and is of great significance to promoting the development of fruit classification industry in China and enhancing international competitiveness.
  Key words Kiwifruit; Surface defect identification; Fruit classification
  Received: May 10, 2021  Accepted: July 1 2021
  Supported by the Chinese Society of Logistics (2021CSLKT3-286).
  Jingjing MA (1992-), female, P. R. China, master, research field big data/deep learning.
  *Corresponding author. Tao YANG (1991-), male, P. R. China, master, devoted to research about Agricultural Engineering and Informatization/Machine Vision Technology. E-mail: egstao@163.com.
   Kiwifruit planting bases in China are mainly distributed in the Dabie Mountains, the northern foot of the Qinling Mountains in Shaanxi, the Guizhou Plateau and the western part of Hunan Province, Guangdong, Sichuan and other places. Its output reaches 2.37×106 t, far surpassing Italy and New Zealand, and China has become the world’s number one producer[1]. However, the export volume of kiwifruit (approximately 2 000 t) is less than one-thousandth of the total output of China. We investigated the main producing areas of kiwifruit in Sichuan Province (Cangxi, Dujiangyan, Pujiang) and found that the proportion and level of post-production processing of kiwifruit in China is low, and the quality of the products is uneven, which makes it difficult for kiwifruit to enter the high-end market. It can be seen that the quality of kiwifruit is one of the main factors affecting its sales and price. However, the size, color, shape, surface defects, maturity, pesticide residues and other traits of kiwifruit are the main factors affecting the quality of kiwifruit. Grading kiwifruit according to certain standards is an important means to increase the added value of the fruit and enhance international competitiveness. However, the conventional method of distinguishing fruit grades by size or weight has been difficult to meet people’s needs for high-quality kiwifruit in modern society. Therefore, exploring a fast, inexpensive and accurate grading method for kiwifruit is an important part of promoting the development of the kiwifruit industry. Based on this, scholars at home and abroad have joined the research on online detection and automatic grading of kiwifruit. Among them, Northwest A&F University has carried out a systematic study on kiwifruit grading methods. Huo et al.[2] proposed a detection method of establishing a recognition model by hyperspectral technology combined with machine learning, which can perform fast and non-destructive testing of kiwifruit with excessive use of 1-MCP chemical preservative, with an average recognition rate of 100%. Yan et al.[3] judged whether the kiwifruit had been treated with a swelling agent by comparing the length-to-width ratio of the smallest circumscribed rectangle of the calyx area of kiwifruit, and its recognition rate reached 91.55%. Liu et al.[4] designed an area-based kiwifruit size grading control system, with an average grading rate up to 2.5 s/piece. Foreign fruit automatic grading production equipment has been quite perfect, and the US OSCARTM and MERLIN high-speed fruit grading production lines have been widely used in the grading of fruits such as apples, pears and citrus[5]. The research conducted by scholars at home and abroad on kiwifruit classification has not yet involved the classification method of surface defect recognition. Therefore, a kiwifruit grading system was designed based on the kiwifruit surface defect recognition technology. The system has the advantages of low cost and fast recognition speed. It has positive significance for eveloping small kiwifruit grading devices, increasing fruit farmers’ income, and helping rural development.   Kiwifruit Grade
  According to the Hayward kiwifruit grading standard of Chengdu Kiwifruit Association and NY/T 1794-2009 Kiwifruit Grading Standard, fresh kiwifruit that meets the standard was manually selected (Fig. 1). In short, the fresh kiwifruit had a long oval shape and uniform color distribution. The larger the volume, the higher the quality.
   Kiwifruit will inevitably have some surface defects such as spots, sunburns, scars, rolled pits during growth, picking, transport, sorting, and packaging (Fig. 2). Such fresh kiwifruit with surface defects is collectively referred to as defective fruit.
  Kiwifruit Grading Method
  The kiwifruit grading method based on surface defect recognition proposed in the study is shown in Fig. 3. First, kiwifruit images are collected by an image acquisition system; then they are preprocessed to adjust the image effect; and next, the K-means clustering algorithm is applied to cluster and segment the preprocessed kiwifruit images, obtaining the kiwifruit surface defect
  images and extract their color moment information, which is compared with the color moment information of the kiwifruit without surface defects to determine whether the kiwifruit is defective. If it is judged to be a normal fruit, then its shape feature information will be extracted to form a feature vector; and finally, an SVM classifier is designed to output the kiwifruit grade information.
  Image acquisition and preprocessing
  The kiwifruit image acquisition system is shown in Fig. 4. It is composed of PC, CCD camera, lens, camera bracket, LED ring light source and other components. The system was used to collect 60 images of kiwifruit of grade I, grade II, grade III, and defective fruit. Then, the Otsu segmentation algorithm was applied to remove the background and perform Hough transform to obtain the smallest circumscribed rectangle of the target area, and extract the kiwifruit contour curve, thereby realizing kiwifruit image segmentation for further analysis and processing of the images[6].
  Surface defect recognition
  Defect segmentation
  To extract the surface defect characteristics of kiwifruit, it is necessary to segment the defects, and the K-means clustering algorithm was applied to process the preprocessed kiwifruit images. The K-means clustering algorithm includes following steps: ① randomly selecting K initial cluster centers as the starting point; ② calculating the distance between each sample and each cluster center, and classifying each sample into the nearest cluster center; ③ determining the mean value of the samples in the cluster as the new cluster center of the cluster; and ④ repeating steps ② and ③ until the cluster center no longer changes or the set number of iterations is reached. Experiments have shown that the algorithm can segment surface defects in kiwifruit images well, and meanwhile, the clustering effect of normal fruit images is also good.   Color discrimination
  People can visually identify whether there are defects on the surface of kiwifruit and what grade the kiwifruit belongs to, while computers can only judge by specific data comparison. Therefore, each color component of segmented kiwifruit images was extracted and their third-order color moments were calculated respectively. The color moments were extracted from the images of fresh kiwifruit of different grades to obtain the color distribution in the images of fresh kiwifruit of different grades (Fig. 5). It can be seen from Fig. 5 that the surface defects of kiwifruit would first show up as color changes, that is, surface defects such as scars and lesions would be darker than normal kiwifruit, especially the third-order moments in the HSV color space were quite different. However, the differences in the color feature information of normal kiwifruit were not obvious after segmentation. Therefore, the kiwifruit with large differences in color characteristics from the normal fruit can be judged as defective fruit.
  Agricultural Biotechnology2021
  Feature extraction
  The combination of kiwifruit shape characteristics and size measurement is an important basis for distinguishing different grades of kiwifruit. From the appearance point of view, kiwifruit can be further distinguished by its shape and size. Therefore, extracting kiwifruit shape features and combining them with size measurement can be an important basis for distinguishing kiwifruit grades. The preprocessed kiwifruit images were converted into binary images, which was subjected to connected component analysis, and then five shape feature parameters, area A, perimeter L, circularity ρc, rectangularity ρR, and minimum circumscribed rectangle length-width ratio ρWL, were calculated, respectively, and the kiwifruit shape feature information was obtained, as shown in Fig. 6 and Fig. 7.
   Area A refers to the total number of pixels in the connected domain. This feature is greatly affected by factors such as image size and shooting conditions. Therefore, it is necessary to obtain kiwifruit images to be recognized in a specific imaging system to achieve a certain comparative significance.
  A=∑(x, y)∈Sf(x, y)(1)
  Circumference L refers to the length of the contour line surrounding the boundary of a connected domain.
  L=N1+2·N2(2)
  In the formula, N1 represents the number of pixels with an even-numbered direction code; and N2 represents the number of pixels with an odd-numbered direction code.    The degree of circularity ρc is also called quasi-circularity, which indicates the similarity of a target image to a circle. It is defined as the ratio of 4π times the area A of the target image to the square of its circumference L.
  ρc=4πAL2(3)
  Rectangularity ρR describes the fullness of a target image in its smallest enclosing rectangular area, that is, the ratio of the target image area A to its smallest enclosing rectangular area A′. Obviously, the rectangularity of a rectangle is  the rectangularity of a circle is π/4, the rectangularity of an equilateral triangle is 0.5, and the rectangularity of other irregular shapes is between 0 and 1. And this feature is less affected by the imaging conditions, and has a strong ability to characterize the shape of the target image.
  ρR=AA′(4)
  The length-width ratio ρWL refers to the length-width ratio of the minimum enclosing rectangle of a target image. This value is not affected by the size and direction of the image, and is an ideal geometric shape feature.
  ρWL=LRWR(5)
  Discrimination
  It can be seen from the shape characteristics of kiwifruit that there are different degrees of difference in the shape of kiwifruit of different grades. Simple logical discrimination will cause larger recognition errors. In order to improve the recognition rate of the system, an SVM multi-level classifier was designed, and the discriminant function is shown in Equation 6.
   f(x)=∑ni=0a*iyiK(x, xi)+b*(6)
  In the formula, a*i is the optimal solution of Lagrange coefficient; K(x, xi) is the kernel function, here the RBF kernel function was selected, that is, K(x, xi)=e-‖x-xi‖22σ2; σ is the width of the radial basis kernel function, σ> 0; xi is the support vector; yi is the class label corresponding to xi; n is the number of support vectors; and b* is the optimal vector of the optimal solution object.
  Kiwifruit Grading System
  In order to facilitate users to grade kiwifruit, a kiwifruit grading system was developed (Fig. 8). The top is the menu bar, the left side is divided into two upper and lower areas to display the grading process images, and the right side is the button operation and result display area. It can meet the needs of small-scale farmers for kiwifruit grading. In the future, the system can be further expanded to accommodate more fruit grading needs.
  Conclusions
  The study was conducted based on the surface defect images of fresh kiwifruit. A kiwifruit surface defect image grading method combining K-means clustering algorithm and SVM was proposed and a kiwi fruit grading system was developed to meet the needs of small-scale farmers. It opens up new ideas for fruit grading, which is of great significance for increasing fruit farmers’ income.   References
  [1] MA JJ, YANG T, YE AS, et al. Study on kiwifruit combination sales and pricing strategy based on profit maximization[J]. Journal of Anhui Agricultural Sciences, 2019, 47(8): 219-221. (in Chinese)
  [2] HUO YQ, ZHANG C, LI YH, et al. Nondestructive detection for kiwifruit based on the hyperspectral technology and machine learning[J]. Journal of Chinese Agricultural Mechanization, 2019, 40(4): 71-77. (in Chinese)
  [3] YAN B, GUO WC. Identifying expanded ‘Hayward’ kiwifruits based on K-means clustering algorithm and calyx shape[J]. Journal of Northwest A & F University: Natural Science Edition, 2020(5): 1-8. (in Chinese)
  [4] LIU ZC, GAI XH. Design of kiwifruit grading control system based on machine vision and PLC[J]. Journal of Chinese Agricultural Mechanization, 2020, 41(1): 131-135. (in Chinese)
  [5] QU T, QI KK, LIU YD, et al. Design and experiment on automatic grading system of appearance size for kiwi[J] . Journal of Agricultural Mechanization Research, 2017, 39(10): 98-103. (in Chinese)
  [6] ZHANG M, LI P, DENG L, et al. Segmentation of navel orange surface defects based on mask and brightness correction algorithm[J]. Scientia Agricultura Sinica, 2019, 52(2): 327-338. (in Chinese)
其他文献
在中学生的音乐课堂中,“非遗文化”的教学具有重要意义,其不仅能够提升学生的思想意识,而且还能起到陶冶情操、提升学生综合素养的作用。以石家庄市第44中学为例,将河北梆子的戏曲教学有效引入中学的音乐课、校园活动中,或使非物质文化遗产成为学生的必修课,如此既能使学生深入了解非物质文化遗产,使学习家乡戏曲、传承家乡文化的理念深入内心,又能增强学生热爱家乡文化的情感。
在文字产生以前,人们用结绳记事的方法来帮助记忆。如今绳子活结也广泛运用在生产和生活中,例如起吊重物、设备检修、装饰、登山、打捞等。我们对绳子活结的类型、用途等进行了部分还原和分类,应用欧拉公式进行了实验探索,获得初步实验结论,并将此应用于生活实践中解决实际问题,以期对绳子活结的应用有更科学的认识。
7月14日,荣耀MagicBook 14/15锐龙版2021款正式发布。作为荣耀笔记本家族的又一力作,全新的荣耀MagicBook锐龙版配备14英寸/15.6英寸护眼全面屏,支持多屏协同三窗口多开的智慧特性,搭载7nm制程的锐龙5000系列处理器,全系16GB双通道大内存,拥有冰河银配色,首销期间优惠价4199元起。
腐败治理机制是惩治和预防腐败的各种措施、手段和方法的总和。法国出台《萨潘二号法》着力“强化惩治措施、创新预防方式”,推进反腐主体权力的协同运行,再次升级腐败治理机制。此次改革,法国以完善威慑与剥夺效应、强化发现与追惩能力为核心不断发展腐败惩治机制,以反腐败合规制度为代表勇于创新预防机制,形成贯通行政法、刑事诉讼法和刑法的一体化、层次化和体系化的积极治理立法范例。在我国监察和司法体制改革重叠的历史背景下,倡导腐败积极治理主义理念,科学借鉴成功经验,应严密刑事法网、提高刑事司法效率,改善“不敢腐”的惩治机制;
目的:提升单体药店GSP实施效率,进一步提高质量管理水平,确保公众用药安全。方法:比较分析杭州市江干区单体药店两轮GSP认证现场检查缺陷项目,找出GSP执行中存在的问题并分析原因,提出建议及对策。结果:第二轮认证检查在条款项数、整改率及平均缺陷项频次较第一轮都有所下降;两轮认证检查缺陷项目主要集中在文件、人员及陈列与存储环节;*13501、15101、13101及16704是两轮认证检查均易出现的高频次缺陷项目;*16101在第二轮出现频次较第一轮上升明显;
为评价候选蛋白烯醇化酶(Enolase)作为东方次睾吸虫ELISA诊断抗原的潜力,重组表达东方次睾吸虫烯醇化酶基因,以纯化好的重组蛋白为抗原,优化各检测条件,建立了鸭东方次睾吸虫病间接ELISA诊断方法并用该方法检测临床样品。结果显示,通过棋盘滴定法,确定了抗原的最佳包被质量浓度为2g/mL和血清最佳稀释度为1∶100,其他条件优化结果为:酶标二抗的最佳稀释度为1∶5000,最佳包被条件为4℃包被过夜,最佳封闭条件为50g/L脱脂奶粉溶液封闭2h,显色液最佳显色时间为10min。通过对25份未感染东方次睾
随着当前教育的不断改革与发展,在教学的过程中,我们更加注重学生素质与能力的提升。作为近年来改革成功的教学形式之一,合作学习这一教学模式在教师教学中扮演的角色愈发重要。在最近几年的教学实践中,学生的学习方式有了很大改变,高效课堂模式的小组合作学习在各科课堂中开展开来。在这种合作学习模式中,学生对语文文本进行深入了解,加强对知识的巩固,使小组成员之间能够发挥合作作用,共同来进行知识探索,激发学生的学习动机,引导学生深度合作。由此看来,小组学习模式对学生来说有很大益处,:合作学习方法属于较为常见的教学手段,为进
在科学技术迅速发展的影响下,AR技术开始被广泛应用到各个行业中去,解决了传统行业生产发展不足之处,优化了传统行业的生产过程,有助于传统行业未来发展进步。以出版业为例,AR技术在其中的应用可以有效打破传统书面阅读形式,以虚实结合的阅读方式给予读者更优质的阅读体验,促进我国出版业发展。为了加强人们对AR技术的了解,本文将以此为题简要探析AR技术在出版业中的应用价值和未来发展趋势。
我们一直在说全面屏手机,但事实上多年以来由于屏下摄像头技术并不成熟或者说并不完美的原因,让我们距离真正全面屏始终缺乏最后一步,因此我们看到的所谓全面屏手机其实都是一个折中方案,比如打孔屏,水滴屏,也有升降式摄像头等等。
7月22日,OPPO在重庆举行“不止于快--OPPO闪充开放日”活动,分享其在闪充技术上的最新探索成果。作为快速充电领域的领导者,OPPO在引领大功率、高速度充电的基础上,致力于通过升级整合技术解决方案,为全球用户提供“全场景综合最优的充电体验”,帮助用户在5G时代摆脱“电量焦虑”。