Skip to main content
Log in

Lightweight improved yolov5 model for cucumber leaf disease and pest detection based on deep learning

  • Original Paper
  • Published:
Signal, Image and Video Processing Aims and scope Submit manuscript

Abstract

Many diseases and pests affect cucumber leaves as they grow. A lack of prompt control may result in reduced yields or crop failure. Early and correct detection of cucumber leaf diseases and pests is essential to prevent cucumber yield reduction. Manual detection consumes a large amount of human resources and exhibits poor real-time performance. In addition, there is a lack of public datasets for cucumber leaf disease images in real-world scenarios. To this end, firstly, this study collected and established a new cucumber leaf pest and disease dataset in a real-world scenario. Secondly, to accurately detect cucumber leaf diseases and pests, an improved cucumber leaf disease and pest detection model was proposed from scratch based on the original YOLOv5l model. To reduce the model size, the Bottleneck CSP module was used instead of C3 as the backbone and neck network section. Owing to the reduction in the number of parameters, number of layers, and calculations, the detection impact was significantly improved, in addition to that, the improved model able to detect even a small leaf spot of disease. Finally, the authenticity of the proposed model is demonstrated by incorporating the convolutional block attention module (CBAM) into both the improved and original YOLOv5l model. The experimental results showed that the mean average precision (mAP) of the improved model was 80.10%; whereas, the precision and recall were 73.8%, 73.9%, respectively. The improved model weight occupies only 13.6 MB of the memory. The overall improved model performance outperformed that of the original YOLOv5 model.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

The dataset generated during the current study are available from the corresponding author on reasonable request.

References

  1. Chen, Z., et al.: Plant disease recognition model based on improved YOLOv5. Agronomy 12(2), 365 (2022). https://doi.org/10.3390/AGRONOMY12020365

    Article  Google Scholar 

  2. Yang, R., Hu, Y., Yao, Y., Gao, M., Liu, R.: Fruit target detection based on BCo-YOLOv5 model. Mob. Inf. Syst. (2022). https://doi.org/10.1155/2022/8457173

    Article  Google Scholar 

  3. Li, D., Ahmed, F., Wu, N., Sethi, A.: Yolo-JD: a deep learning network for jute diseases and pests detection from images. Plants (2022). https://doi.org/10.3390/plants11070937

    Article  PubMed  PubMed Central  Google Scholar 

  4. Liu, J., Wang, X.: Tomato diseases and pests detection based on improved Yolo V3 convolutional neural network. Front. Plant Sci. 11, 898 (2020). https://doi.org/10.3389/FPLS.2020.00898/BIBTEX

    Article  PubMed  PubMed Central  Google Scholar 

  5. Mia, M., Maria, S., Taki, S., Biswass, A.: Cucumber disease recognition using machine learning and transfer learning. Bull. Electr. Eng. Inf. 10(6), 3432–3433 (2021). https://doi.org/10.11591/eei.v10i6.3096

    Article  Google Scholar 

  6. Omer, S.M., Ghafoor, K.Z., Askar, S.K.: Plant disease diagnosing based on deep learning techniques. ARO-Sci. J. Koya Univ. 11(1), 38–47 (2023). https://doi.org/10.14500/aro.11080

    Article  Google Scholar 

  7. Qi, F., Wang, Y., Tang, Z.: Lightweight plant disease classification combining grabcut algorithm, new coordinate attention, and channel pruning. Neural. Process. Lett. 54(6), 5317–5331 (2022). https://doi.org/10.1007/S11063-022-10863-0/METRICS

    Article  Google Scholar 

  8. Omer, S.M., Ghafoor, K.Z., Askar, S.K.: An intelligent system for cucumber leaf disease diagnosis based on the tuned convolutional neural network algorithm. Mob. Inf. Syst. (2022). https://doi.org/10.1155/2022/8909121

    Article  Google Scholar 

  9. Jiao, L., et al.: A survey of deep learning-based object detection. IEEE Access 7, 128837–128868 (2019). https://doi.org/10.1109/ACCESS.2019.2939201

    Article  Google Scholar 

  10. Barbedo, J.G.A.: Detection of nutrition deficiencies in plants using proximal images and machine learning: a review. Comput. Electron. Agric. 162, 482–492 (2019). https://doi.org/10.1016/J.COMPAG.2019.04.035

    Article  Google Scholar 

  11. Hammad Saleem, M., Khanchi, S., Potgieter, J., Mahmood Arif, K.: Image-based plant disease identification by deep learning meta-architectures. Plants 9(11), 1451 (2020). https://doi.org/10.3390/PLANTS9111451

    Article  Google Scholar 

  12. Fuentes, A., Yoon, S., Kim, S.C., Park, D.S.: A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition. Sensors 17(9), 2022 (2017). https://doi.org/10.3390/S17092022

    Article  PubMed  PubMed Central  ADS  Google Scholar 

  13. Jia, W., Tian, Y., Luo, R., Zhang, Z., Lian, J., Zheng, Y.: Detection and segmentation of overlapped fruits based on optimized mask R-CNN application in apple harvesting robot. Comput. Electron. Agric. 172, 105380 (2020). https://doi.org/10.1016/J.COMPAG.2020.105380

    Article  Google Scholar 

  14. YueJu, X., et al.: Immature mango detection based on improved YOLOv2. Trans. Chin. Soc. Agric. Eng. 34(7), 173–179 (2018)

    Google Scholar 

  15. Tian, Y., Yang, G., Wang, Z., Wang, H., Li, E., Liang, Z.: Apple detection during different growth stages in orchards using the improved YOLO-V3 model. Comput. Electron. Agric. 157, 417–426 (2019). https://doi.org/10.1016/J.COMPAG.2019.01.012

    Article  ADS  Google Scholar 

  16. Zhang, H., Chen, Q., Lei, L., M. I. Systems, and undefined: A YOLOv3-based industrial instrument classification and reading recognition method. hindawi.com, Accessed 15 Feb 2023 [Online]. Available: https://www.hindawi.com/journals/misy/2022/7817309/

  17. Li, X., Yue, Z., Su, J., Wang, S., Hua, J., and Duan, F.: Application of lightweight object detection network in cucumber leaf detection. In: 2022 IEEE International Conference on Mechatronics and Automation ICMA, pp 686–691 (2022) https://doi.org/10.1109/ICMA54519.2022.9855974

  18. Song, L., Liu, M., Liu, S., Wang, H., Luo, J.: Pest species identification algorithm based on improved YOLOv4 network. Signal, Image Video Process. (2023). https://doi.org/10.1007/S11760-023-02534-X/METRICS

    Article  Google Scholar 

  19. Wang, H., Shang, S., Wang, D., He, X., Feng, K., Zhu, H.: Plant disease detection and classification method based on the optimized lightweight YOLOv5 model. Agriculture 12(7), 931 (2022). https://doi.org/10.3390/AGRICULTURE12070931

    Article  CAS  Google Scholar 

  20. Li, T., et al.: Tomato recognition and location algorithm based on improved YOLOv5. Comput. Electron. Agric. 208, 107759 (2023). https://doi.org/10.1016/J.COMPAG.2023.107759

    Article  Google Scholar 

  21. Wang, Q., Cheng, M., Huang, S., Cai, Z., Zhang, J., Yuan, H.: A deep learning approach incorporating YOLO v5 and attention mechanisms for field real-time detection of the invasive weed Solanum rostratum Dunal seedlings. Comput. Electron. Agric. 199, 107194 (2022). https://doi.org/10.1016/J.COMPAG.2022.107194

    Article  Google Scholar 

  22. Mathew, M.P., Mahesh, T.Y.: Leaf-based disease detection in bell pepper plant using YOLO v5. Signal, Image Video Process. 16(3), 841–847 (2022). https://doi.org/10.1007/S11760-021-02024-Y/METRICS

    Article  Google Scholar 

  23. Lou, Y., et al.: Real-time detection of cucumber leaf diseases based on convolution neural network. In: IEEE Information Technology Networking, Electronic and Automation Control Conference ITNEC, pp 1040–1046, Oct 2021. https://doi.org/10.1109/ITNEC52019.2021.9587269

  24. Liu, C., Zhu, H., Guo, W., Han, X., Chen, C., Wu, H.: EFDet: an efficient detection method for cucumber disease under natural complex environments. Comput. Electron. Agric. 189, 106378 (2021). https://doi.org/10.1016/J.COMPAG.2021.106378

    Article  Google Scholar 

  25. Jocher, G., et al.: ultralytics/yolov5: v4.0-nn.SiLU() activations, weights & biases logging, PyTorch hub integration (2021) 10.5281/ZENODO.4418161.

  26. Niu, Z., Zhong, G., Yu, H.: A review on the attention mechanism of deep learning. Neurocomputing 452, 48–62 (2021). https://doi.org/10.1016/J.NEUCOM.2021.03.091

    Article  Google Scholar 

Download references

Acknowledgements

The Authors would like to thank the University of Raparin and Erbil Polytechnique University for their support during the preparation of this study. Many thanks for the reviewers for their valuable comments and suggestions on the manuscript which improved the performance of the paper. This research was carried out at the Artificial Intelligent Research (AIR) Laboratory at the University of Raparin.

Funding

This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Author information

Authors and Affiliations

Authors

Contributions

Conceptualization contributed by SO, KG and SA; methodology contributed by SO; data curation contributed by SO; writing—original draft preparation contributed by SO, KG and SA; writing—review and editing contributed by SO, KG. and SA; supervision contributed by KG. and SA.; All authors have read and agreed to the published version of the manuscript.

Corresponding author

Correspondence to Saman M. Omer.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Omer, S.M., Ghafoor, K.Z. & Askar, S.K. Lightweight improved yolov5 model for cucumber leaf disease and pest detection based on deep learning. SIViP 18, 1329–1342 (2024). https://doi.org/10.1007/s11760-023-02865-9

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11760-023-02865-9

Keywords

Navigation