融合动态稀疏注意力的茶叶分类检测

打开文本图片集
中图分类号:TP391.41;S225.99 文献标志码:A 文章编号:1008-0864(2025)07-0111-11
ClassificationandDetectionofTeaBasedonDynamic Sparse Attention
ZHANG Shihao 1,2 ,XIAYuxin²,WUWendou³,XIE Jin 1 ,CHEN Xiao4, SHIHaotian1,FAN Zongyu1,WANG Baijuan1*
(1.Colegeofaince,YunnanAgriculturalUiversityKunming6Oina;.CollgeofechanicalandEltial
Engineering,YunnanAgriculturalUniversity,Kunming 65OO1,China;3.CollgeofBigData,unnanAgriculturalUnivesity, Kunming 650201,China;4.Yunnan Province University Intelligent Organic TeaGardenConstructionPrimaryLaboratory, Yunnan Agricultural University,Kunming 65O2O1,China)
Abstract:Inorder to effectively address thechallenge of precisely detectingand selecting tea leaves witha teapicking robot,an improved YOLOv7 algorithm based on double-layer routing dynamic sparse atention mechanism andFasterNet wasproposed to realize the classificationand detectionoffresh tealeaves.The algorithm implemented involves replacing the original network’s structure with PConvand FasterNet methodologies.This replacement was aimed atdecreasing the numberof floating-point operations and enhancing their eficiency.Additionally,adynamic sparse attention mechanism,which was based on a double-layer routing approach,was incorporated into the neck layer.This adition ensured greater flexibility in computing alocation and content perception.To expedite convergence,enhance regression accuracy,and minimize false detection,the loss function was substituted with effcient intersection over union(EIoU)during the detectionprocess.The resultsshowed that,comparedwith the originalYOLOv7,the model generated bythe improved algorithm improved the accuracy by4.8 percentage point, the recall rateby5.3percentagepoint,thebalancescore by5.Opercentage point,andthe meanaverage precision (mAP)value by2.6percentage point.In the external verification,the numberof floating-point operations was reduced by 15.1 G,the frame per second was increased by 5.52% ,and the mAP value wasincreased by 2.4 percentage point.The improved model could notonly classifyand detectfresh tea leaves eficientlyandaccurately, but also hadthe characteristicsof highrecognitionrate,lowcomputationand fastdetection.Aboveresultslaida foundation for the realization of tea picking robot in Yunnan plateau.
KeyWords:tea;vision transformer with Bi-level routing attention;accurate detection;FasterNet; YOLOv7
茶叶作为云南传统的特色支柱产业,在建设云南高原特色现代农业中扮演着重要角色1。(剩余13303字)