Submitted:
23 May 2024
Posted:
23 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. YOLOv5-Based Optimization Model
2.1. YOLOv5 Model
2.2. Design of ResBlock Multiscale Module
2.3. Design of the C4 Feature Fusion Module
2.4. YOLOv5-Res4 Based on Parameter Refinement Strategy
3. Analysis of Experimental Results
3.1. Dataset and Experimental Environment
3.2. Model Evaluation Indicators
3.3. Experimental Analysis of the ResBlock Module
3.4. Experiments with the C4 Module
3.5. Experiments with Model Streamlining Strategies
3.6. YOLOv5-Res Comparative Analysis Experiment
3.7. YOLOv5-Res4 Comparative Analysis Experiment
4. Conclusions
References
- Bi C, Wang J, Duan Y, et al. MobileNet based apple leaf diseases identification. Mobile Networks and Applications, 2022: 1-9. [CrossRef]
- Abbaspour-Gilandeh Y, Aghabara A, Davari M, et al. Feasibility of using computer vision and artificial intelligence techniques in detection of some apple pests and diseases. Applied Sciences, 2022, 12(2): 906. [CrossRef]
- Liu, J.; Wang, X. Plant diseases and pests detection based on deep learning: a review. Plant Methods, 2021, 17: 1-18. [CrossRef]
- Fuentes, A.; Yoon, S.; Park, D.S. Deep learning-based techniques for plant diseases recognition in real-field scenarios//Advanced Concepts for Intelligent Vision Systems: 20th International Conference, ACIVS 2020, Auckland, New Zealand, February 10–14, 2020, Proceedings 20. Springer International Publishing, 2020: 3-14.
- Ren S, He K, Girshick R, et al. Faster r-cnn: Towards real-time object detection with region proposal networks. Advances in neural information processing systems, 2015, 28.
- He K, Gkioxari G, Dollár P, et al. Mask r-cnn//Proceedings of the IEEE international conference on computer vision. 2017: 2961-2969.
- Lee, S.H.; Wu, C.C.; Chen, S.F. Development of image recognition and classification algorithm for tea leaf diseases using convolutional neural network//2018 ASABE Annual International Meeting. American Society of Agricultural and Biological Engineers, 2018: 1.
- Singh U P, Chouhan S S, Jain S, et al. Multilayer convolution neural network for the classification of mango leaves infected by anthracnose disease. IEEE access, 2019, 7: 43721-43729. [CrossRef]
- Li H, Shi H, Du A, et al. Symptom recognition of disease and insect damage based on Mask R-CNN, wavelet transform, and F-RNet. Frontiers in Plant Science, 2022, 13: 922797. [CrossRef]
- Liu W, Anguelov D, Erhan D, et al. Ssd: Single shot multibox detector//Computer Vision–ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11–14, 2016, Proceedings, Part I 14. Springer International Publishing, 2016: 21-37.
- Redmon J, Divvala S, Girshick R, et al. You only look once: Unified, real-time object detection//Proceedings of the IEEE conference on computer vision and pattern recognition. 2016: 779-788.
- Redmon J, Farhadi A. YOLO9000: better, faster, stronger//Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 7263-7271.
- Redmon, J.; Farhadi, A. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018.
- Bochkovskiy, A.; Wang, C.Y.; Liao HY, M. Yolov4: Optimal speed and accuracy of object detection. arXiv preprint arXiv:2004.10934, 2020.
- Sun H, Xu H, Liu B, et al. MEAN-SSD: A novel real-time detector for apple leaf diseases using improved light-weight convolutional neural networks. Computers and Electronics in Agriculture, 2021, 189: 106379. [CrossRef]
- Tian Y, Yang G, Wang Z, et al. Detection of apple lesions in orchards based on deep learning methods of cyclegan and yolov3-dense. Journal of Sensors, 2019, 2019. [CrossRef]
- Li J, Qiao Y, Liu S, et al. An improved YOLOv5-based vegetable disease detection method. Computers and Electronics in Agriculture, 2022, 202: 107345. [CrossRef]
- Lin J, Yu D, Pan R, et al. Improved YOLOX-Tiny network for detection of tobacco brown spot disease. Frontiers in Plant Science, 2023, 14: 1135105. [CrossRef]
- Khan F, Zafar N, Tahir M N, et al. A mobile-based system for maize plant leaf disease detection and classification using deep learning. Frontiers in Plant Science, 2023, 14: 1079366. [CrossRef]
- Jocher G, Chaurasia A, Stoken A, et al. ultralytics/yolov5: v6. 0-yolov5 classification models, apple m1, reproducibility, clearml and deci. ai integrations. Zenodo, 2022.
- Park H, Yoo Y, Seo G, et al. C3: Concentrated-comprehensive convolution and its application to semantic segmentation. arXiv preprint arXiv:1812.04920, 2018.
- He K, Zhang X, Ren S, et al. Spatial pyramid pooling in deep convolutional networks for visual recognition. IEEE transactions on pattern analysis and machine intelligence, 2015, 37(9): 1904-1916. [CrossRef]
- Lin T Y, Dollár P, Girshick R, et al. Feature pyramid networks for object detection//Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 2117-2125.
- Liu S, Qi L, Qin H, et al. Path aggregation network for instance segmentation//Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 8759-8768.
- Zheng Z, Wang P, Liu W, et al. Distance-IoU loss: Faster and better learning for bounding box regression//Proceedings of the AAAI conference on artificial intelligence. 2020, 34(07): 12993-13000.
- Szegedy C, Liu W, Jia Y, et al. Going deeper with convolutions//Proceedings of the IEEE conference on computer vision and pattern recognition. 2015: 1-9.
- He K, Zhang X, Ren S, et al. Deep residual learning for image recognition//Proceedings of the IEEE conference on computer vision and pattern recognition. 2016: 770-778.
- Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift//International conference on machine learning. pmlr, 2015: 448-456.
- Hua, B.S.; Tran, M.K.; Yeung, S.K. Pointwise convolutional neural networks//Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 984-993.
- Ang G, Han R, Yuepeng S, et al. Construction and verification of machine vision algorithm model based on apple leaf disease images. Frontiers in Plant Science, 2023, 14: 1246065. [CrossRef]
- Lucic A, Oosterhuis H, Haned H, et al. FOCUS: Flexible optimizable counterfactual explanations for tree ensembles//Proceedings of the AAAI Conference on Artificial Intelligence. 2022, 36(5): 5313-5322.
- Yang, Q.; Duan, S.; Wang, L. Efficient identification of apple leaf diseases in the wild using convolutional neural networks. Agronomy, 2022, 12(11): 2784. [CrossRef]
- Hughes, D.; Salathé, M. An open access repository of images on plant health to enable the development of mobile disease diagnostics. arXiv preprint arXiv:1511.08060, 2015.
- Jingze Feng, Xiaofei Chao. Apple Tree Leaf Disease Segmentation Dataset[DS/OL]. V1. Science Data Bank, 2022[2024-02-26]. https://cstr.cn/31253.11.sciencedb.01627. CSTR:31253.11.sciencedb.01627.
- Thapa R, Zhang K, Snavely N, et al. The Plant Pathology Challenge 2020 data set to classify foliar disease of apples. Applications in plant sciences, 2020, 8(9): e11390. [CrossRef]
- Ai Studio poublic datasets. (2024). “Pathological images of apple leaves.” Available at: https://aistudio.baidu.com/aistudio/datasetdetail/11591/0.
- Wang C Y, Liao H Y M, Wu Y H, et al. CSPNet: A new backbone that can enhance learning capability of CNN//Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops. 2020: 390-391.
- Sun Y, Chen G, Zhou T, et al. Context-aware cross-level fusion network for camouflaged object detection. arXiv preprint arXiv:2105.12555, 2021.
- Sandler M, Howard A, Zhu M, et al. Mobilenetv2: Inverted residuals and linear bottlenecks//Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 4510-4520.
- Zhang X, Zeng H, Guo S, et al. Efficient long-range attention network for image super-resolution//European Conference on Computer Vision. Cham: Springer Nature Switzerland, 2022: 649-667.
- LV, Wenyu, et al. Detrs beat yolos on real-time object detection. arXiv preprint arXiv:2304.08069, 2023.
- Reis D, Kupec J, Hong J, et al. Real-Time Flying Object Detection with YOLOv8. arXiv preprint arXiv:2305.09972, 2023.
- Wang C Y, Yeh I H, Liao H Y M. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. arXiv preprint arXiv:2402.13616, 2024.
- Adarsh, P., Rathi, P., & Kumar, M. (2020, March). YOLO v3-Tiny: Object Detection and Recognition using one stage improved model. In 2020 6th international conference on advanced computing and communication systems (ICACCS) (pp. 687-694). IEEE.







| Disease Type | Train | Test | Validation | Number of Images |
|---|---|---|---|---|
| Alternaria leaf spot | 490 | 163 | 163 | 816 |
| Rust | 508 | 169 | 169 | 816 |
| Brown spot | 741 | 247 | 247 | 1235 |
| Grey spot | 425 | 142 | 142 | 709 |
| Frog eye leaf spot | 755 | 251 | 251 | 1257 |
| Total | 2919 | 972 | 972 | 4863 |
| Modules | mAP@0.5% | Parameters | FLOPs/G |
|---|---|---|---|
| Conv | 79.8% | 5309095 | 15.2 |
| ResBlock | 82.1% | 5486055 | 15.6 |
| ResBlock2 | 80.2% | 5486055 | 15.6. |
| ResBlock3 | 79.9% | 9839975 | 26.1 |
| ResBlock4 | 79.8% | 18195815 | 46.3 |
| Modules | mAP@0.5/% | Parameters | FLOPs/G |
|---|---|---|---|
| CSP | 77.5% | 1155271 | 5.5 |
| C3 | 77.8% | 1124519 | 5.4 |
| C2f | 77.2% | 1183911 | 5.5 |
| C4 | 79.9% | 1094471 | 5.3 |
| Models | Method |
|---|---|
| A | Taking YOLOv5s as the base model, modify the layer 0 Conv of Backbone to be Foucs module and replace all C3 modules to get all C3s in the new model A as C3x1. |
| B | Taking YOLOv5s as the base model, modify the layer 0 Conv of Backbone to Foucs module and replace all C3 modules to get C3 are C4x1 in the new model B. |
| C | Using Model A as the base model, all Convs are replaced with ResBlock x 1, except for Backbone's Layer 0 Conv which is Foucs, to get the new Model C. |
| D | Using model C as the base model, all the Convs in the obtained new model D are ResBlock except the first Conv in Backbone, which is Foucs. Improving the last layer C3 in Backbone and C3 in head are both C4x1. |
| E | With D as the base model, SPPF is improved to SPP. |
| F | With E as the base model, the SPP is adjusted up one layer so that C4 is connected to the head layer as the output layer of the Backbone. |
| YOLOv5-Res4 | Taking F as the base model, shrinking the number of channels and improving the 10th and 14th layers in Neck for Conv, we end up with YOLOV5-Res4. |
| Models | mAP@0.5/% | Parameters | Model size /MB | FLOPs/G |
|---|---|---|---|---|
| A | 79.3% | 4570023 | 9.1 | 11.4 |
| B | 79.7% | 4465863 | 8.8 | 11.1 |
| C | 79.9% | 4863463 | 9.7 | 12.1 |
| D | 80.4% | 4781031 | 9.5 | 11.9 |
| E | 80.5% | 4781031 | 9.5 | 11.9 |
| F | 80.8 % | 4781031 | 9.5 | 11.9 |
| YOLOv5s | 79.3% | 7037095 | 13.8 | 15.8 |
| YOLOv5n | 77.7% | 1772695 | 3.7 | 4.2 |
| YOLOv5-Res4 | 79.9% | 1094471 | 2.4 | 5.3 |
| Models | Precision(%) | Recall(%) | mAP@0.5 (%) |
Paramerers | Model size (MB) |
FLOPs (G) |
|---|---|---|---|---|---|---|
| RTDETR-L | 79.8% | 69.4% | 74.6% | 32004290 | 66.2 | 103.5 |
| YOLOv5s | 77.1% | 77.2% | 79.3% | 7037095 | 13.8 | 15.8 |
| YOLOv5s-TR | 77.6% | 74.6% | 78.4% | 7078951 | 14.6 | 16.1 |
| YOLOv5s6 | 76.2% | 74.3% | 77.8% | 12342868 | 25.2 | 16.2 |
| YOLOv8s | 79.5% | 72.6% | 78.6% | 11129454 | 21.4 | 28.5 |
| YOLOv9 | 76.4% | 78.6% | 80.1% | 60516700 | 122.5 | 264 |
| YOLOv5-Res | 81.4% | 76.9% | 82.1% | 5486055 | 10.8 | 15.6 |
| Models | Alternaria leaf spot | Rust | Brown spot | Grey spot | Frog eye leaf spot |
|---|---|---|---|---|---|
| RTDETR-L | 73.4% | 77.3% | 76.2% | 71.2% | 75% |
| YOLOv5s | 76.8% | 81.4% | 88.5% | 69.8% | 79.9% |
| YOLOv5s-TR | 75.6% | 76.2% | 88.0% | 70.4% | 81.2% |
| YOLOv5s6 | 76.0% | 82.6% | 88.1%% | 62.0% | 80.0% |
| YOLOv8s | 75.8% | 78.8% | 87.2% | 70.5% | 80.8% |
| YOLOv9 | 85.2% | 76.9% | 97.4% | 63.3% | 77.6% |
| YOLOv5-Res | 84.9% | 80.4% | 93.0% | 70.4% | 81.7% |
| Models | Precision(%) | Recall(%) | mAP@0.5 (%) |
Paramerers | Model size (MB) | FLOPs (G) |
|---|---|---|---|---|---|---|
| YOLOv3-tiny | 69.8% | 62.7% | 68.2% | 8687482 | 17.5 | 12.9 |
| YOLOv5n | 76.0% | 72.2% | 77.7% | 1772695 | 3.7 | 4.2 |
| YOLOv5n6 | 75.6% | 68.0% | 74.6% | 3104644 | 6.7 | 4.3 |
| YOLOv8n | 77.1% | 72.7% | 77% | 3007598 | 6.3 | 8.1 |
| YOLOv5-Res4 | 76.9% | 75.9% | 79.9% | 1094471 | 2.4 | 5.3 |
| Models | Alternaria leaf spot | Rust | Brown spot | Grey spot | Frog eye leaf spot |
|---|---|---|---|---|---|
| YOLOv3-tiny | 72.7% | 77.0% | 49.6% | 64.4% | 77.3% |
| YOLOv5n | 80.4% | 79.6% | 81.6% | 66.9% | 79.9% |
| YOLOv5n6 | 75.5% | 75.0% | 85.4% | 59.7% | 77.3% |
| YOLOv8n | 75.4% | 76.9% | 84.7% | 70.9% | 77.3% |
| YOLOv5-Res4 | 82.1% | 81.3% | 87.5% | 67.5% | 81.2% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).