军事知识服务平台
基于YOLOv11n-A3的油菜角果检测与计数方法
Rapeseed Silique Detection and Counting Based on YOLOv11n-A3
摘要 [目的/意义]快速精准地检测油菜角果数量,对油菜高产优质品种选育具有重要意义.针对油菜离体考种场景下,分枝角果普遍存在密集簇生、局部重叠及果喙目标微小所导致的精准计数难题,提出一种基于YO-LOv11n-A3(YOLOv11n with Area Attention and Aligned Fusion)的油菜角果检测与计数方法.[方法]在主干网络集成跨阶段局部空间注意力模块与快速空间金字塔池化模块以强化特征的多维联合表达,并在颈部构建融合区域注意力模块的对齐路径聚合特征金字塔网络架构,从而协同缓解空间信息错位并提升区域上下文交互能力.[结果和讨论]YOLOv11n-A3在精确率、召回率、平均精度均值分别达到了92.6%、85.1%、47.1%,较基线模型分别提高了1.8、2.5、12.5个百分点.模型的计算量、参数量、检测速度分别达6.39 GFLOPs、2.58 M、625.3帧/s.在角果计数任务中,决定系数达0.937,平均绝对误差仅为2.61个.[结论]YOLOv11n-A3模型在保持轻量化的同时提高了计数精度,能够有效检测密集分布场景下的小目标,基于模型开发的油菜育种人工智能工具,可实现对油菜角果的检测与计数,为油菜考种与高产优质品种选育提供技术支撑.
Abstract:
[Objective]Rapeseed is the largest oilseed crop in China,and increasing its yield is the major objective of breeding efforts.As a key component of rapeseed yield,the number of effective siliques per plant is an important phenotypic trait in the phenotyping process.Rapid and accurate counting of this trait is crucial for breeding high-yield and superior varieties.Although object detection and counting research has made significant progress in the agricultural field,it still faces some challenges in actual detached phenotyp-ing scenarios.Therefore,aiming at the accurate counting difficulties caused by the widespread dense clustering,local overlapping of branches,and tiny silique beak targets in detached rapeseed phenotyping scenarios,a rapeseed silique detection and counting method is proposed based on YOLOv11n-A3(YOLOv11n with Area Attention and Aligned Fusion).This method improves detection accuracy and feature extraction efficiency while maintaining a lightweight design,providing technical support for edge-device applications in rapeseed phenotyping and the breeding of high-yield,high-quality varieties.[Methods]First,the proposed method adopted the light-weight convolutional structure of YOLOv11n as its backbone.To enhance the global representation capability of silique features,the cross stage partial with spatial attention(C2PSA)module was embedded in the high-level layers of the backbone for joint channel-spa-tial modeling.This approach improved the representation of multi-scale features while retaining the receptive-field-expansion advan-tage of the spatial pyramid pooling fast(SPPF)module,without substantially increasing computational costs.Second,the Area Atten-tion module was introduced to locally enhance the neck feature fusion network.By replacing specific convolutions with the Area At-tention module,the network leverages local region perception to improve feature extraction and anti-interference capabilities for densely overlapping small targets,while keeping training and deployment risks manageable.Finally,a bidirectional feature alignment and fusion architecture consisting of an aligned feature pyramid network(Align-FPN)and an aligned path aggregation network(Align-PAN)was constructed to replace the standard feature fusion path.In the Align-FPN stage,high-level semantic features were ef-fectively transmitted to lower levels through the area-attention enhanced cross-feature(A2C2f)module and tiny multi-scale context(TMC)block(P3),and the soft nearest neighbor interpolation(SNI)module was introduced to alleviate spatial inconsistencies among multi-scale features.In the Align-PAN stage,the extended spatial-window down-sampling(ESD)module was further combined for feature separation and enhancement,highlighting key scale features through an adaptive weighted fusion mechanism and improving the interaction and consistency of multi-scale features.[Results and Discussions]The precision,recall,and mAP0.5-0.95 of YOLOv11n-A3 reached 92.6%,85.1%,and 47.1%,respectively,increases of 1.8,2.5,and 12.5 percentage points over the baseline model.The compu-tational load,parameter count,and detection speed were 6.39 GFLOPs,2.58 M,and 625.3 f/s,respectively.In the silique counting task,the coefficient of determination(R2)reached 0.937;the mean absolute error(MAE)was 2.61;the root mean square error(RMSE)was 3.7;and the mean absolute percentage error(MAPE)was 11.37%.Furthermore,to meet the application requirements of real-time field phenotyping,the lightweight model was encapsulated and deployed in a custom-developed artificial intelligence(AI)tool to achieve fast and accurate counting of rapeseed siliques.This effectively verified the engineering application potential of the proposed lightweight algorithm on edge devices.[Conclusions]The YOLOv11n-A3 model improves counting accuracy while maintain-ing a lightweight design and detects small targets in densely distributed scenarios.The rapeseed breeding AI tool developed based on this model achieves the rapid and accurate detection and counting of rapeseed siliques,providing technical support for rapeseed pheno-typing and the breeding of high-yield,high-quality varieties.Overall,YOLOv11n-A3 achieved a favorable balance among detection ac-curacy,counting precision,and computational overhead,demonstrating its lightweight and efficient design.
年,卷(期): 2026, 8(5)
分类号: S126 TP29
机标分类号: TP391 S511 S603.8
在线出版日期: 2026年11月23日