Detection and Classification of Rice Leaf Diseases Using OpenCV and Deep Learning
Main Article Content
Abstract
Traditional methods for identifying plant diseases in Bangladesh present numerous challenges, such as inadequacy of method, time-consuming processes, and expensive costs for farmers. To address these issues, this study proposes an innovative approach that leverages deep learning and computer vision techniques, which have already demonstrated effectiveness in various agricultural applications. Our research specifically targets the detection and classification of rice leaf diseases, employing a two-step process designed to enhance diagnostic accuracy and reliability. In the first step, OpenCV technology is used to analyze the shape, size, and color of rice leaves, categorizing them into four distinct groups: bacterial leaf blight, brown spot, leaf smut, and healthy leaves. In the second step, a convolutional neural network (CNN) extracted features from images of these categorized diseases. We thoroughly evaluate our model’s performance by examining accuracy and loss curves, providing a comprehensive assessment of its effectiveness in diagnosing rice leaf diseases. Our findings indicate that the innovative application of OpenCV for initial disease identification, based on shape and color, is highly effective. Furthermore, the CNN model achieves an impressive 99% accuracy rate in distinguishing between actual labels from predicted labels, highlighting the potential of this methodology to significantly improve disease management strategies for rice crops in Bangladesh.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright Transfer Statement
The copyright of this article is transferred to Current Applied Science and Technology journal with effect if and when the article is accepted for publication. The copyright transfer covers the exclusive right to reproduce and distribute the article, including reprints, translations, photographic reproductions, electronic form (offline, online) or any other reproductions of similar nature.
The author warrants that this contribution is original and that he/she has full power to make this grant. The author signs for and accepts responsibility for releasing this material on behalf of any and all co-authors.
Here is the link for download: Copyright transfer form.pdf
References
Barbedo, J. G. A. (2013). Digital image processing techniques for detecting, quantifying and classifying plant diseases. SpringerPlus, 2, Article 660. https://doi.org/10.1186/2193-1801-2-660
Chen, J., Zhang, D., Nanehkaran, Y. A., & Li, D. (2020). Detection of rice plant diseases based on deep transfer learning. Journal of the Science of Food and Agriculture, 100(7), 3246-3256. https://doi.org/10.1002/jsfa.10365
Das, P. K., & Rupa, S. S. (2023). ResNet for leaf-based disease classification in strawberry plant. International Journal of Applied Methods in Electronics and Computers, 11(3), 151-157. https://doi.org/10.58190/ijamec.2023.42
Das, P. K., Rupa, S. S., Pumrin, S., Das, U. C., & Hossen, M. K. (2024). Deep learning for plant disease detection and classification: a systematic analysis and review. Current Applied Science And Technology, 24(4), Article e0259016. https://doi.org/10.55003/cast.2024.259016
Elmitwally, N. S., Tariq, M., Khan, M. A., Ahmad, M., Abbas, S., & Alotaibi, F. M. (2022). Rice leaves disease diagnose empowered with transfer learning. Computer Systems Science and Engineering, 42(3), 1001-1014. https://doi/org/10.32604/csse.2022.022017
Ficke, A., Cowger, C., Bergstrom, G., & Brodal, G. (2018). Understanding yield loss and pathogen biology to improve disease management: Septoria nodorum blotch-a case study in wheat. Plant disease, 102(4), 696-707. https://doi.org/10.1094/PDIS-09-17-1375-FE
Harpale, D., Jadhav, S., Lakhani, K., & Thyagarajan, K. (2020). Plant disease identification using image processing. International Research Journal of Engineering and Technology, 7(4), 3571-3573.
Hossen, M. K. (2022). Heart disease prediction using machine learning techniques. American Journal of Computer Science and Technology, 5(3), 146-154.
Hossen, M. K., & Barman, P. (2022). Application of Python-OpenCV to detect contour of shapes and colour of a real image. International Journal of Novel Research in Computer Science and Software Engineering, 9(2), 20-25.
Howse, J. (2013). OpenCV computer vision with python (Vol. 27). Packt Publishing.
Jiang, F., Lu, Y., Chen, Y., Cai, D., & Li, G. (2020). Image recognition of four rice leaf diseases based on deep learning and support vector machine. Computers and Electronics in Agriculture, 179, Article 105824. https://doi.org/10.1016/j.compag.2020.105824
Khatun, M., Nessa, B., Salam, M., & Kabir, M. (2021). Strategy for rice disease management in Bangladesh. Bangladesh Rice Journal, 25(1), 23-36. https://doi.org/10.3329/brj.v25i1.55177
Lei, X., Pan, H., & Huang, X. (2019). A dilated CNN model for image classification. IEEE Access, 7, 124087-124095. https://doi.org/10.1109/ACCESS.2019.2927169
Lu, Y., Yi, S., Zeng, N., Liu, Y., & Zhang, Y. (2017). Identification of rice diseases using deep convolutional neural networks. Neurocomputing, 267, 378-384. https://doi.org/10.1016/j.neucom.2017.06.023
Nagaraju, M., & Chawla, P. (2020). Systematic review of deep learning techniques in plant disease detection. International Journal of System Assurance Engineering and Management, 11(3), 547-560. https://doi.org/10.1007/s13198-020-00972-1
Narmadha, R. P., Sengottaiyan, N., & Kavitha, R. J. (2022). Deep transfer learning based rice plant disease detection model. Intelligent Automation & Soft Computing, 31(2), 1257-1271. https://doi.org/10.32604/iasc.2022.020679
Prajapati, H. B., Shah, J. P., & Dabhi, V. K. (2017). Detection and classification of rice plant diseases. Intelligent Decision Technologies, 11(3), 357-373. https://doi.org/10.3233/IDT-170301
Rahman, C. R., Arko, P. S., Ali, M. E., Khan, M. A. I., Apon, S. H., Nowrin, F., & Wasif, A. (2020). Identification and recognition of rice diseases and pests using convolutional neural networks. Biosystems Engineering, 194, 112-120.
Sachdeva, G., Singh, P., & Kaur, P. (2021). Plant leaf disease classification using deep Convolutional neural network with Bayesian learning. Materials Today: Proceedings, 45, 5584-5590. https://doi.org/10.1016/j.matpr.2021.02.312
Sethy, P. K., Barpanda, N. K., Rath, A. K., & Behera, S. K. (2020). Deep feature based rice leaf disease identification using support vector machine. Computers and Electronics in Agriculture, 175, Article 105527. https://doi.org/10.1016/j.compag.2020.105527
Shibi, C. S., Lincy, R. B., Rubia, J. J., & Sheeba, P. T. (2022). Deep learning based rice plant disease identification with transfer learning. 2022 International Conference on Computing, Communication, and Intelligent Systems (ICCCIS) (pp. 697-702). IEEE. https://doi.org/10.1109/ICCCIS56430.2022.10037638
Shoaib, M., Hussain, T., Shah, B., Ullah, I., Shah, S. M., Ali, F., & Park, S. H. (2022). Deep learning-based segmentation and classification of leaf images for detection of tomato plant disease. Frontiers in Plant Science, 13, Article 1031748. https://doi.org/10.3389/fpls.2022.1031748
Shopa, P., Sumitha, N., & Patra, P. S. K. (2014). Traffic sign detection and recognition using OpenCV. International conference on information communication and embedded systems (ICICES2014) (pp. 1-6). IEEE. https://doi.org/10.1109/ICICES.2014.7033810
Sujatha, R., Chatterjee, J. M., Jhanjhi, N., & Brohi, S. N. (2021). Performance of deep learning vs machine learning in plant leaf disease detection. Microprocessors and Microsystems, 80, Article 103615. https://doi.org/10.1016/j.micpro.2020.103615
Tian, L., Xue, B., Wang, Z., Li, D., Yao, X., Cao, Q., Zhu, Y., Cao, W., & Cheng, T. (2021). Spectroscopic detection of rice leaf blast infection from asymptomatic to mild stages with integrated machine learning and feature selection. Remote Sensing of Environment, 257, Article 112350. https://doi.org/10.1016/j.rse.2021.112350
Wani, J. A., Sharma, S., Muzamil, M., Ahmed, S., Sharma, S., & Singh, S. (2022). Machine learning and deep learning based computational techniques in automatic agricultural diseases detection: Methodologies, applications, and challenges. Archives of Computational Methods in Engineering, 29(1), 641-677. https://doi.org/10.1007/s11831-021-09588-5
Xiong, Y., Liang, L., Wang, L., She, J., & Wu, M. (2020). Identification of cash crop diseases using automatic image segmentation algorithm and deep learning with expanded dataset. Computers and Electronics in Agriculture, 177, Article 105712. https://doi.org/10.1016/j.compag.2020.105712
Yadav, S., Sengar, N., Singh, A., Singh, A., & Dutta, M. K. (2021). Identification of disease using deep learning and evaluation of bacteriosis in peach leaf. Ecological Informatics, 61, Article 101247. https://doi.org/10.1016/j.ecoinf.2021.101247
Zhang, K., Wu, Q., & Chen, Y. (2021). Detecting soybean leaf disease from synthetic image using multi-feature fusion faster R-CNN. Computers and Electronics in Agriculture, 183, Article 106064. https://doi.org/10.1016/j.compag.2021.106064