Welcome to Smart Agriculture 中文

Smart Agriculture ›› 2026, Vol. 8 ›› Issue (5): 182-193.doi: 10.12133/j.smartag.SA202603005

• Information Processing and Decision Making • Previous Articles    

Rapeseed Silique Detection and Counting Based on YOLOv11n-A3

ZHOU Lin1,2, WANG Yan1,2, LI Haixin3, ZHENG Jishu1,2, LI Mai1,2, CAO Zhonghua1,2, WU Zhaojuan1,2()   

  1. 1. Institute of Agricultural Engineering, Chongqing Academy of Agricultural Sciences, Chongqing 401329, China
    2. Southwest Mountain Smart Agricultural Key Laboratory, (Co-construction by the Ministry and Province), Ministry of Agriculture and Rural Affairs, Chongqing 401329, China
    3. TUM School of Computation, Information and Technology, Munich 80333, Germany
  • Received:2026-03-05 Online:2026-09-30
  • Foundation items:Chongqing Municipal Financial Science and Technology Innovation Projects(KYLX20240500073;KYLX20260200049); National Key Research and Development Program of China(2022YFD2001700); Sub-project of the Chengdu-Chongqing Economic Circle Agricultural Science and Technology Innovation Alliance (Jointly Building the National Modern Agricultural Industry Science and Technology Innovation Center)(KYLX20250600465)
  • About author:

    ZHOU Lin, E-mail:

  • corresponding author:
    WU Zhaojuan, E-mail:

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 phenotyping 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 lightweight 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-spatial modeling. This approach improved the representation of multi-scale features while retaining the receptive-field-expansion advantage of the spatial pyramid pooling fast (SPPF) module, without substantially increasing computational costs. Second, the Area Attention module was introduced to locally enhance the neck feature fusion network. By replacing specific convolutions with the Area Attention 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 effectively 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 computational 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 maintaining 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 phenotyping and the breeding of high-yield, high-quality varieties. Overall, YOLOv11n-A3 achieved a favorable balance among detection accuracy, counting precision, and computational overhead, demonstrating its lightweight and efficient design.

Key words: YOLO, attention mechanism, feature fusion, rapeseed silique counting, small object detection, seed testing

CLC Number: