[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.