YOLOv8s-CGF: a lightweight model for wheat ear Fusarium head blight detection

PeerJ Comput Sci. 2024 Mar 27:10:e1948. doi: 10.7717/peerj-cs.1948. eCollection 2024.

Abstract

Fusarium head blight (FHB) is a destructive disease that affects wheat production. Detecting FHB accurately and rapidly is crucial for improving wheat yield. Traditional models are difficult to apply to mobile devices due to large parameters, high computation, and resource requirements. Therefore, this article proposes a lightweight detection method based on an improved YOLOv8s to facilitate the rapid deployment of the model on mobile terminals and improve the detection efficiency of wheat FHB. The proposed method introduced a C-FasterNet module, which replaced the C2f module in the backbone network. It helps reduce the number of parameters and the computational volume of the model. Additionally, the Conv in the backbone network is replaced with GhostConv, further reducing parameters and computation without significantly affecting detection accuracy. Thirdly, the introduction of the Focal CIoU loss function reduces the impact of sample imbalance on the detection results and accelerates the model convergence. Lastly, the large target detection head was removed from the model for lightweight. The experimental results show that the size of the improved model (YOLOv8s-CGF) is only 11.7 M, which accounts for 52.0% of the original model (YOLOv8s). The number of parameters is only 5.7 × 106 M, equivalent to 51.4% of the original model. The computational volume is only 21.1 GFLOPs, representing 74.3% of the original model. Moreover, the mean average precision (mAP@0.5) of the model is 99.492%, which is 0.003% higher than the original model, and the mAP@0.5:0.95 is 0.269% higher than the original model. Compared to other YOLO models, the improved lightweight model not only achieved the highest detection precision but also significantly reduced the number of parameters and model size. This provides a valuable reference for FHB detection in wheat ears and deployment on mobile terminals in field environments.

Keywords: Fusarium head blight; Image recognition; Lightweight model; Loss function; YOLOv8s.

Grants and funding

This work was supported by the National Natural Science Foundation of China (No. 31501225), the Natural Science Foundation of Henan Province (No. 222300420463), the Natural Science Foundation of Henan Province (No. 232300420186), and the Joint Fund of Science and Technology Research and Development Plan of Henan Province (No. 222301420113). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.