Abstract:Rice is a globally important food crop and accurate counting of rice panicles is crucial for estimating rice production. However, in actual production scenarios, due to reasons such as complex paddy field environment, diversity of rice varieties, and their panicle morphological features, existing detection methods have insufficient accuracy and a large number of model parameters. To this end, a lightweight rice panicles detection model CBLP-YOLO 11n was proposed. Firstly, in Backbone, the original C3k2 module was replaced with C3k2-CFCGLU in order to enhance the model’s feature extraction and expression ability for rice panicles. Secondly, bidirectional feature pyramid network(BiFPN) was used to achieve multi-scale feature information fusion. By means of skip connections and deletion of redundant nodes, the recognition accuracy of rice panicles was improved while effectively reducing the computational complexity of the model. Then a lightweight detail-enhanced shared detection head (LDSDH) was designed and the complexity of detection head was reduced through shared convolution. Finally, the original CIoU loss function was replaced by Powerful-IoUv2 loss function to accelerate the convergence speed of the model and optimize positioning accuracy of the model for rice panicles. The experimental results showed that the detection precision of the CBLP-YOLO 11n model was 88.2%, the recall was 87.9% and the mean average precision was 93.9%. Compared with YOLO 11n, the CBLP-YOLO 11n model showed improvements in the precision, recall, mAP by 1.9, 1.1 and 1.3 percentage points, respectively. Meanwhile, the CBLP-YOLO 11n reduced the parameter quantity by 23.7% and the computational quantity by 40.6%. Compared with other mainstream models, the CBLP-YOLO 11n model had the highest average detection accuracy and the smallest memory usage, which was only 3.78MB. The proposed model realized accurate identification of rice panicles and can be deployed in resource-constrained devices such as drones, providing technical support for identification and counting of rice panicles in complex field backgrounds.