基于改进YOLOv8n的花生荚果与果仁图像识别及精准计数

打开文本图片集
中图分类号:S24;S565.2;TP183 文献标志码:A
Abstract: 【Objective】 Accurate counting of peanut (Arachis hypogaea L.) samples is a crucial step in determining the 10O-seed weight and 1 Oo0-seed weight during seed testing.To tackle issues such as missed detections caused by peanut seed overlapping in practical measurements, this study aims to explore precise image recognition and target statistics of peanut pods and kernels using the improved YOLOv8n model. 【Method】 The MLCA (mixed local channel attention) attntion mechanism was integrated into the backbone network of the original YOLOv8n model to reduce background noise interference, enhance the detection ability for overlapped peanut samples,and thereby reduce the missed detection rate. The SCConv (spatial and channel reconstruction convolution) module was added to the C2f module to strengthen the model learning diferent peanut boundary features in the overlapping areas and highlight the true boundaries of individual peanut pods and kernels.The detection head was replaced by the LSCD (lightweight shared convolutional detection) to reduce the model parameters,enhance the global information fusion abilitybetween feature maps,optimize the extraction and fusion methods of feature maps, and improve the model detection speed. 【Result】 The improved MSL-YOLOv8n model contained 3 383 663 parameters, with the mean average precision (mAP50-95) of 90.9% and 91.7% for peanut pods and kernels counting, the precisions were 98.1% and 99.8% ,and the recalls were 97.2% and 99.7% ,respectively. The frames per second of the model were 245.8. Compared with the original model YOLOv8n, the mAP50-95 was improved by 1.7 and 1.1 percentage points, and the performance of the improved model was obviously better than those of SSD, YOLOvl0n and other models. 【Conclusion】 The improved model has high accuracy,fast real-time processing speed,and strong robustess, and can provide technical support for accurate counting in the process of peanut seed testing.
Key words: Peanut; Object detection; Sample counting; YOLOv8n; Attention mechanism
花生ArachishypogaeaL.主要用于榨取植物油,具有广泛的实用性和可观的经济价值,其产量和质量与人类社会密切相关[1。(剩余13934字)