LMS-Res-YOLOv8: Lightweight and Multi-scaleCucumber Detection Model with Residual Blocks

Bo Li,Guangjin Zhong,Wei Ke
DOI: https://doi.org/10.21203/rs.3.rs-5383278/v1
2024-01-01
Abstract:Timely and efficient detection of greenhouse cucumbers is critical to improving agricultural production efficiency. Sincecucumber grows in complex environments, it is quite challenging to achieve high identification accuracy. Aiming to improvedetection accuracy and facilitate practical application, we proposed the LMS-Res-YOLOv8 (Lightweight Multi-Scale featurefusion module with Residual blocks) cucumber detection model. Firstly, we replace the C2f module with the HEU (High-Efficiency Unit with residual blocks) to enhance the multi-scale representation of features and effectively improve detectionaccuracy. Secondly, YOLOv8_n’s head is replaced with the DE-HEAD (Decoupled and Efficient detection HEAD) to decreasethe model’s parameters, floating-point operation, and size. Finally, the ordinary convolution in YOLOv8_n’s backbone and neckare replaced with the KernelWarehouse dynamic convolution proposed by Intel in 2023 to achieve a better balance betweenparameter efficiency and representation capability. The experimental results show that our model has improved mAP@0.5to 97.9% on the cucumber dataset we constructed, a 0.7% increase over the benchmark model YOLOv8_n. More stringentmAP@0.5:0.95 reaches 87.8%, showing an increase of 2.3%. The FLOPs decreased from 8.1G to 5.4G, representing a33.3% drop. The learnable parameters decrease from 3.01M to 2.43M, representing a 19.3% reduction. It proves that ourLMS-Res-YOLOv8 achieves a good balance between detection performance and model complexity, with potential applicationsin edge devices for cucumber detection.
What problem does this paper attempt to address?