Research on Multi-Scenario Fruit Detection and Classification Based on Improved YOLOv5
Abstract
This study addresses the challenge of efficient fruit detection and accurate classification in complex environments. Based on the YOLOv5 framework, a training set was constructed by combining publicly available and self-collected datasets, focusing on three types of fruits: bananas, apples, and oranges. The study incorporated data augmentation, transfer learning, the CBAM (Convolutional Block Attention Module) attention mechanism, and an improved Non-Maximum Suppression (NMS) algorithm. Experimental results demonstrated an average precision of 96.5% and an inference speed of 39.26 frames per second under complex scenarios. Coupled with a user-friendly interface design, this system provides an effective real-time detection and statistical solution for agriculture, retail, and food processing industries.
References
- Guo, J. (2024). Research and system design of fruit recognition algorithms based on deep learning (Master’s thesis, Hangzhou Dianzi University).
- Luo, L. H., Ou, O., Zhao, W., et al. (2023). Fruit image recognition based on improved YOLOv5s. Information Technology, (11), 28–34, 40. https://doi.org/10.13274/j.cnki.hdzj.2023.11.005
- Xu, Y., Jiang, M., Li, Y., et al. (2022). Fruit object detection based on improved YOLO and NMS. Journal of Electronic Measurement and Instrumentation, 36(04), 114–123. https://doi.org/10.13382/j.jemi.B2104724
- Li, Y., & Mu, L. P. (2021). Research on garbage image classification models based on transfer learning. Computer and Information Technology, 29(04), 17–21. https://doi.org/10.19414/j.cnki.1005-1228.2021.04.005
- Feng, G. E. (2023). Development of GUI (Tkinter) examples based on Python. Information and Computer (Theoretical Edition), 35(01), 175–178.
- Zhu, Z. W., Li, K., Kuang, L., et al. (2024). Intelligent scratch detection based on the YOLOv5-CBAM model. Radio Engineering, 1–11. Retrieved December 21, 2024, from https://kns-cnki-net.door.bucea.edu.cn/kcms/detail/13.1097.TN.20241113.1653.019.html