基于改进YOLOv11n的多尺度茶叶病害检测方法OA
Multi-Scale Tea Leaf Disease Detection Method Based on Improved YOLOv11n
[目的/意义]传统模型使用传统标准化数据集训练后,对实际识别中较远或较近的多尺度茶叶病害目标存在错检或漏检,以及性能不足的情况.针对茶田病害巡检时存在的茶叶病害检测环境中病害形态多样、识别距离不固定且容易受到背景影响而被误判漏判等问题,本研究提出一种集成多尺度特征分解、可切换空洞卷积与自适应空间融合的改进模型YOLO-SADMFA(YOLO Switchable Atrous Dynamic Multi-Scale Frequency-Aware Adap-tive).[方法]增加模型卷积、特征提取、上采样与检测头轮次加强多尺度能力,提出一种多尺度特征分析解算与动态频率调整融合的动态多尺度频率感知上采样模块进行上采样.首先,该模块可以在有效融合多尺度特征的情况下控制上下采样的信息丢失;其次,引入可切换空洞卷积模块代替原有跨阶段部分核心模块,通过结合不同的空洞率结果进一步加强捕捉目标多尺度信息,同时采用权重锁定机制提升了模型性能;最后,在head结构中引入自适应空间特征融合(Adaptively Spatial Feature Fusion,ASFF),其技术特性形成ASFF检测头,自适应地学习空间融合权重,有效地过滤相冲突的信息.同时建立了1个含有2 880张图像9种茶叶病害类别的茶叶病害数据集.[结果和讨论]该方法在茶叶病害检测的任务中精确度、召回率和平均精度值分别为89.7%、82.6%和86.3%.YOLO-SADMFA较原版YOLOv11n模型精确度、召回率、平均精度值分别提升4.4、8.4、3.7个百分点,尤其在处理病斑面积占比10%~65%的多尺度目标时表现突出.在低光照、复杂背景等田间实际场景下,模型仍保持较高的检测稳定性,能够有效区分形态相似的病害类型,并在边缘计算设备上实现约161帧/s的实时检测速度.[结论]本研究所提出的YOLO-SADMFA有效解决了茶园复杂环境下多尺度病害检测难题,显著提升了检测准确性和鲁棒性,为自动化茶叶病害巡检系统提供了可靠的技术支持,对促进茶产业智能化发展具有重要应用价值.
[Objective]Preventing and containing leaf diseases is a critical component of tea production,and accurate identification and localization of symptoms are essential for modern,automated plantation management.Field inspection in tea gardens poses distinctive challenges for vision-based detection algorithms:targets appeared at widely varying scales and morphologies under complex back-grounds and unfixed acquisition distances,which easily misled detectors.Models trained on standardized datasets with uniform dis-tance and background often underperform,leading to false alarms and missed detections.To support method development under realis-tic constraints,YOLO-SADMFA(You Only Look Once-Switchable Atrous Dynamic Multi-scale Frequency-aware Adaptive),a detec-tor based on the YOLOv11n backbone was proposed.The architecture aims to preserve fine details during repeated re-sampling(down-and up-sampling),strengthen modeling of lesions at varying scales,and refine multi-scale feature fusion.[Methods]The pro-posed architecture incorporated additional convolutional,feature extraction,upsampling,and detection head stages to better handle multi-scale representations,and a DMF-Upsample(Dynamic Multi-scale Frequency-aware Upsample)module that performed upsam-pling through multi-scale feature analysis and dynamic frequency adjustment fusion was introduced.This module enabled efficient multi-scale feature integration while effectively mitigating information loss during up-and down-sampling.Concretely,the DMF-Upsample analyzed multi-frequency responses from adjacent pyramid levels and fused them with dynamically learned frequency-se-lective weights,which preserved high-frequency lesion boundaries and textures while retaining low-frequency contextual structure such as leaf contours and global shading.A lightweight gating mechanism estimates per-location and per-channel coefficients to regu-late the contribution of different bands,and a residual bypass preserved identity information to further reduce aliasing and oversmooth-ing introduced by repeated resampling.Furthermore,the baseline C3k2 block was replaced with a switchable atrous convolution(SAConv)module,which enhanced multi-scale feature capture by combining outputs from different dilation rates and incorporates a weight locking mechanism to improve model stability and performance.In practice,the SAConv aggregated parallel atrous branched at multiple dilation factors through learned coefficients under weight locking,which expanded the effective receptive field without sac-rificing spatial resolution and suppressed gridding artifacts,while incurring modest parameter overhead.Lastly,an adaptive spatial fea-ture fusion(ASFF)mechanism was integrated into the detection head,forming an ASFF-Head that learned spatially varying fusion weights across different feature scales,effectively filters conflicting information,and strengthens the model's robustness and overall detection accuracy.Together,these components formed a deeper yet efficient multi-scale pathway suited to complex field scenes.[Re-sults and Discussions]Compared with the original YOLOv11n model,YOLO-SADMFA improved precision,recall,and mAP by 4.4,8.4,and 3.7 percentage points,respectively,indicating more reliable identification and localization across diverse field scenes.The de-tector was particularly effective for multi-scale targets where the lesion area occupied approximately 10%-65%of the image,reflect-ing the variability introduced by unfixed acquisition distance during tea garden patrols.Under low illumination and in complex back-grounds with occlusions and clutter,it maintained stable performance,reduced both missed detections and false alarms,and effective-ly distinguished disease categories with similar morphology and color.On edge computing devices,it sustained about 161 f/s,which met real-time requirements for mobile inspection robots and portable systems.These outcomes demonstrated strengthened robustness to background interference and improved sensitivity at extreme scales,which was consistent with practical demands where the acquisi-tion distance was not fixed.From an ablation perspective,DMF-Upsample preserved high-frequency lesion boundaries while retaining low-frequency structural context after resampling,SAConv expanded receptive fields through multi-dilation aggregation under a weight-locking mechanism,and the ASFF-Head mitigated conflicts among feature pyramids.Their combination yielded cumulative gains in stability and accuracy.Qualitative analyses further supported the quantitative results:Boundary localization improved for small,speckled lesions,large blotches were captured with fewer spurious edges,and distractors such as veins,shadows,and soil tex-tures were less frequently misclassified,confirming the benefits of dynamic multi-scale frequency-aware fusion and adaptive spatial weighting in real field conditions.[Conclusions]The proposed YOLO-SADMFA effectively addressed the multi-scale disease detec-tion challenge in complex tea garden environments,where acquisition distance was not fixed,lesion morphology and color were di-verse,and cluttered backgrounds easily caused misjudgments and omissions.It significantly improved detection accuracy and robust-ness relative to the original YOLOv11n model across a wide range of target scales,and it maintained stable performance under low il-lumination and complex backgrounds typical of field inspections.It provided reliable technical support for automated tea leaf disease inspection systems by enabling accurate localization and identification of lesions in real operating conditions and by sustaining real-time inference on edge devices suitable for patrol-style deployment.
肖瑞宏;谭立新;王日凤;宋敏;胡程喜
湖南农业大学 信息与智能科学技术学院,湖南 长沙 410125,中国湖南农业大学 信息与智能科学技术学院,湖南 长沙 410125,中国||湖南信息职业技术学院 电子工程学院,湖南 长沙 410200,中国广西科技师范学院 人工智能学院,广西 来宾 546199,中国湖南农业大学 信息与智能科学技术学院,湖南 长沙 410125,中国||长沙幼儿师范高等专科学校,湖南 长沙 410000,中国湖南软件职业技术大学,湖南 湘潭 411100,中国
农业科技
YOLO茶叶病害目标检测DMF-UpsampleASFF
YOLOtea leaf diseasesobject detectionDMF-UpsampleASFF
《智慧农业(中英文)》 2026 (1)
62-71,10
中国高校产学研创新基金——新一代信息技术创新项目资助课题(2022IT82)广西科技计划项目(桂科AD23026282)湖南省教育科学规划课题(XJK24BZY037) Innovation Fund for University-Industry Cooperation in China-Supported Project for New Generation Information-Technology Innovation(2022IT82)Guangxi Science and Technology Program(AD23026282)Hunan Provincial Educational Sci-ence Planning Project(XJK24BZY037)
评论