in

Deep learning framework for timely detection and classification of chili leaf diseases and pests


Abstract

Food security continues to be a significant challenge the world over, with crop production becoming increasingly threatened by crop diseases and pest infestations. In the case of chili production, farmers often suffer significant yield loss and economic insecurity due to the unpredictable nature of both of these problems. Current pest control options (agrochemical and organic methods alike) have not reliably been enough for timely and effective control and demonstrate the importance of early and effective pest and disease identification processes. To solve this problem, the present work describes a deep learning implementation that leverages advanced YOLO-based architectures for the detection and classification of leaf diseases and pest on chili plant leaves. The present work trains and evaluates three models (YOLOv5, YOLOv7, and YOLOv8) on a newly created and balanced dataset of over 28,800 images combining 20 total classes of pest and leaf diseases. The dataset was supplemented by preprocessing the images and conducting an augmentation process to create a total of 32,000 images for training to generate reliable models. The results from the experiments found that YOLOv8 provided the best baseline performance of 95.1% mean Average Precision (mAP), while YOLOv5 had an mAP of 86.1%, and YOLOv7 had an mAP of 67.5%. An additional enhancement in the construction of a Modified YOLOv8 hybrid model—reflecting all advantages of YOLOv5, YOLOv7, and YOLOv8—achieved a highest mAP of 99.5% to be the most effective model in this study, the results suggest that the newly proposed Modified YOLOv8 framework, is highly accurate and reliable for the early detection of pests and diseases in chili, and is helpful to improve sustainable agricultural practices, mitigate crop losses, and increase global food security.

Data availability

The dataset images utilized for the analysis were collected by our team from different chilli agricultural lands of Guntur district of Andhra Pradesh, India, a well-known place for chilli cultivation all over the world. The authors assert that the images utilized for the representation or examination of previous research are cited in the article and appropriately referenced in the references section.

References

  1. Kanaparthi Kantharaju, S. et al. Deep Learning Methods for Detecting Chilli Pests: A Novel Performance Analysis. https://doi.org/10.12912/27197050/187071. (2024). https://doi.org/10.12912/27197050/187071 

  2. Pengyan Su, H. et al. Improvement of the YOLOv5 Model in the Optimization of the Brown Spot Disease Recognition Algorithm of Kidney Bean. https://doi.org/10.3390/plants12213765

  3. Xue, Z. et al. YOLO-Tea: A Tea Disease Detection Model Improved by YOLOv5. Forests https://doi.org/10.3390/f14020415 (2023).

    Google Scholar 

  4. Rajamohanan, Rajasree et al. An optimized YOLO v5 model for tomato leaf disease classification with field dataset. Eng. Technol. Appl. Sci. Res. 13(6), 12033–12038. https://doi.org/10.48084/etasr.6377 (2023).

    Google Scholar 

  5. Li, H. et al. Real-Time detection of Apple leaf diseases in natural scenes based on YOLOv5. Agriculture 13 (4), 0878. https://doi.org/10.3390/agriculture13040878 (2023).

    Google Scholar 

  6. Efrem, Y. et al. Yolov5s-CA: an improved Yolov5 based on the attention mechanism for mummy berry disease detection. Agriculture 13 (1), 0078. https://doi.org/10.3390/agriculture13010078 (2023).

    Google Scholar 

  7. Wang, Y. et al. Integrated Learning-Based pest and disease detection method for tea leaves. Forests 14 (5), 1012. https://doi.org/10.3390/f14051012 (2023).

    Google Scholar 

  8. Mayalekshmi, K. M. & I2CT. In-field Chilli Crop Disease Detection Using YOLOv5 Deep Learning Technique. Proceedings of IEEE, April 7–9. https://doi.org/10.1109/I2CT57861.2023.10126468 (2023). https://doi.org/10.1109/I2CT57861.2023.10126468 

  9. Mahnoor et al. Real-Time plant health detection using deep convolutional neural networks. Agriculture 13 (2), 0510. https://doi.org/10.3390/agriculture13020510 (2023).

    Google Scholar 

  10. Jiaping et al. A tomato disease identification method based on leaf image automatic labeling algorithm and improved YOLOv5 model. (2023).

  11. Jinnan, H. et al. Crop node detection and internode length Estimation using an improved YOLOv5 model. Agriculture 13 (2), 0473. https://doi.org/10.3390/agriculture13020473 (2023).

    Google Scholar 

  12. Md, J. A. et al. Tea leaf disease detection and identification based on YOLOv7 (YOLO T). Scientific Reports, https://doi.org/10.1038/s41598-023-33270-4 2023. https://doi.org/10.1038/s41598-023-33270-4 

  13. Muhammad et al. Multi-Disease Recognition in Tomato Plants: Evaluating CNN and Improved YOLOv7 Models for Accurate Detection and Classification. August 14. https://doi.org/10.21203/rs.3.rs-3245718/v1 (2023). https://doi.org/10.21203/rs.3.rs-3245718/v1 

  14. Liangquan et al. Mobile Net-CA-YOLO: an improved YOLOv7 based on MobileNetV3 and attention mechanism for rice pests and diseases detection. Agriculture 13 (7), 1285. https://doi.org/10.3390/agriculture13071285 (2023).

    Google Scholar 

  15. Arun Sri Krishna. On-spot citrus canker disease detection using YOLOv7. IEEE ICAAIC. https://doi.org/10.1109/ICAAIC56838.2023.10141105 (2023).

    Google Scholar 

  16. Yuhao Lai, R. et al. A pineapple target detection method in a field environment based on improved YOLOv7. Appl. Sci. 13 (4), 2691. https://doi.org/10.3390/app13042691 (2023).

    Google Scholar 

  17. Narayana, C. L. et al. An Efficient Real-Time Weed Detection Technique using YOLOv7. Int. J. Adv. Comput. Sci. Appl. https://doi.org/10.14569/IJACSA.2023.0140265 (2023).

    Google Scholar 

  18. Tingting et al. An approach for plant leaf image segmentation based on YOLOv8 and the improved DEEPLABV3+. Plants 12 (19), 3438. https://doi.org/10.3390/plants12193438 (2023).

    Google Scholar 

  19. Faiza et al. A mobile-based system for maize plant leaf disease detection and classification using deep learning. Front. Plant. Sci. 15, 1079366. https://doi.org/10.3389/fpls.2023.1079366 (2023).

    Google Scholar 

  20. Shizhong et al. Strawberry ripeness detection based on YOLOv8 algorithm fused with LW-Swin transformer. Comput. Electron. Agric. 208, 108360. https://doi.org/10.1016/j.compag.2023.108360 (2023).

    Google Scholar 

  21. Xiang et al. Improved YOLOv8-Seg network for instance segmentation of healthy and diseased tomato plants in growth stage. Agriculture 13 (8), 1643. https://doi.org/10.3390/agriculture13081643 (2023).

    Google Scholar 

  22. Shikuan et al. Detection of PineWilt disease using drone remote sensing imagery and improved YOLOv8 algorithm: A case study in Weihai, China. Forests 14 (10), 2052. https://doi.org/10.3390/f14102052 (2023).

    Google Scholar 

  23. Ping Li, J. et al. Tomato maturity detection and counting model based on MHSA-YOLOv8. Sensors 23 (15), 6701. https://doi.org/10.3390/s23156701 (2023).

    Google Scholar 

  24. Saim et al. Small pests detection in field crops using deep learning object detection. Sustainability 15 (8), 6815. https://doi.org/10.3390/su15086815 (2023).

    Google Scholar 

  25. Mushtaq et al. Machine Learning-based detection and classification of walnut fungi diseases. Int. J. Adv. Comput. Sci. Appl. 12 (8). https://doi.org/10.32604/iasc.2021.018039 (2021).

  26. Md, T. et al. Machine vision-based Papaya disease recognition. J. King Saud Univ. Comput. Inf. Sci. https://doi.org/10.1016/j.jksuci.2018.06.006 (2020).

    Google Scholar 

  27. Rashidul Hasan Hridoy, et al et al. A Deep Ensemble Approach for Recognition of Papaya Diseases using EfficientNet Models (November, 2021).

  28. Enquhone et al. Maize Leaf Diseases Recognition and Classification Based on Imaging and Machine Learning Techniques. December. (2017).

  29. Hamish, A. et al. Deep learning diagnostics of Gray leaf spot in maize under mixed disease field conditions. Plants 11 (15), 1942. https://doi.org/10.3390/plants11151942 (2022).

    Google Scholar 

  30. Helong, Y. et al. Apple leaf disease recognition method with improved residual network. Multimed Tools Appl. https://doi.org/10.1007/s11042-022-11915-2 (2022).

    Google Scholar 

  31. Muhammad Suleman Memon. Meta deep learn leaf disease identification model for cotton crop. Computers 11 (7), 102. https://doi.org/10.3390/computers11070102 (2022).

  32. Athiraja et al. Banana disease diagnosis using computer vision and machine learning methods. J. Ambient Intell. Humaniz. Comput. https://doi.org/10.1007/s12652-020-02273-8 (2020).

    Google Scholar 

  33. Lakshmi Narayanan, K. et al. Banana plant disease classification using hybrid convolutional neural network. Discrete Dyn. Nat. Soc. https://doi.org/10.1155/2022/9153699 (2022).

    Google Scholar 

  34. Abel et al. Separability of coffee leaf rust infection levels with machine learning methods at Sentinel-2 MSI spectral resolutions. Precis Agric. 18, 1014–1032. https://doi.org/10.1007/s11119-016-9495-0 (2017).

    Google Scholar 

  35. José, G. M. et al. Deep learning for classification and severity Estimation of coffee leaf biotic stress. Comput. Electron. Agric. 169, 105162. https://doi.org/10.1016/j.compag.2019.105162 (2020).

    Google Scholar 

  36. Muhammad, H. et al. Automation in agriculture by machine and deep learning techniques: A review of recent developments. Precis Agric. 22, 2780–2817. https://doi.org/10.1007/s11119-021-09806-x (2021).

    Google Scholar 

  37. Ramesh, S. et al. Application of machine learning in detection of blast disease in South Indian rice crops. Int. J. Pure Appl. Math. 119 (12), 5476–5487. https://doi.org/10.25081/jp.2019.v11.5476 (2019).

    Google Scholar 

  38. Pan, Y. et al. ODN-Pro: an improved model based on YOLOv8 for enhanced instance detection in orchard point clouds. Agronomy 14 (4), 697. https://doi.org/10.3390/agronomy14040697 (2024).

    Google Scholar 

  39. Lou, H. et al. DC-YOLOv8: Small-Size object detection algorithm based on camera sensor. Electronics 12 (10), 2323. https://doi.org/10.3390/electronics12102323 (2023).

    Google Scholar 

  40. Lin, T., Girshick, R., He, K., Hariharan, B. & Belongie, S. Feature Pyramid Networks for Object Detection. In: Proc. IEEE CVPR, 2117–2125 (2017).

  41. Nujumudeen, F., Mubarak, D. M. N. & Azad, M. A. A Study of Secure Communication Using Images and Visual Cryptography, 5th IEEE Global Conference for Advancement in Technology (GCAT), Bangalore, India, 2024, pp. 1–8, Bangalore, India, 2024, pp. 1–8 (2024). https://doi.org/10.1109/GCAT62922.2024.10923992

  42. Padilla et al. A comparative analysis of object detection metrics with a companion Open-Source toolkit. Electronics 10 (3), 279. https://doi.org/10.3390/electronics10030279 (2021).

    Google Scholar 

  43. Akbarnezhad, E. YOLOv8 Projects#1 Metrics, Loss Functions, Data Formats and Beyond. LinkedIn Pulse. Accessed 16 November (2023).

  44. Ariyapadath, S. Plant leaf classification and comparative analysis of combined feature set using machine learning techniques. Traitement du Signal., 38, No. 1587–1598. https://doi.org/10.18280/ts.380603 (2021).

  45. https://commons.wikimedia.org/wiki/

  46. https://zpguntur.org/distmap.html

Download references

Acknowledgements

The authors thank the School of Computer Science & Engineering, VITAP-University for the support and facilitation given to accomplish the project and article. The authors also thank the authors of the referenced articles for their ideas and suggestions for improvement.

Funding

Open access funding provided by Vellore Institute of Technology- AP University.

Author information

Authors and Affiliations

Authors

Contributions

The K. K has made the major contribution to the project with algorithm design and development, coding and analysis, manuscript preparation, etc. The S. I have contributed to the project in various ways including the review and problem statement, directions in coding and analysis and overall supervision of this project.

Corresponding authors

Correspondence to
Kantha Raju Kanaparthi or S. Sudhakar Ilango.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

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

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Cite this article

Kanaparthi, K., Ilango, S.S. Deep learning framework for timely detection and classification of chili leaf diseases and pests.
Sci Rep (2026). https://doi.org/10.1038/s41598-025-34477-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1038/s41598-025-34477-3

Keywords

  • Convolutional neural networks
  • Image analysis
  • Artificial intelligence
  • Sustainable agriculture
  • YOLO
  • Chili pest and disease detection


Source: Ecology - nature.com

Upstream migration of the invasive blue crab in the Po River, Italy, highlights the vulnerability of freshwater ecosystems

Morphological diversity of pollen and spores in a human-impacted highland forest–agriculture mosaic in northern Thailand

Back to Top