Plant Leaf Disease Detection Using Efficient Image Processing and Machine Learning Algorithms
DOI:
https://doi.org/10.18196/jrc.v4i6.20342Keywords:
Leaf diseases, Machine learning, Support vector machine, K-Nearest neighbor, Random forest, Decision treeAbstract
India is often described as a country of villages, where a majority of the population depends on agriculture for their livelihood. The landscape of Indian agriculture is approximately 159.7 million hectares. Agriculture plays a pivotal role in India's Gross Domestic Product (GDP), accounting for about 18% of the nation's economic output. Diseases and pests can have detrimental effects on crops, leading to reduced yields. These challenges can include the spread of plant diseases, infestations by insects or other pests, and the overall degradation of crop health. Early detection of diseases in crops is crucial for several reasons. Detecting diseases at an early stage allows for prompt intervention, such as applying appropriate pesticides or taking preventive measures. The main aim of this study is to develop a highly effective method for plant leaf disease detection using computer vision techniques. Here, leaf disease detection comprises histogram equalization, denoising, image color threshold masking, feature descriptors such as Haralick textures, Hu moments, and color histograms to extract the salient features of leaf images. These features are then used to classify the images by training Logistic Regression, Linear Discriminant Analysis, K-nearest neighbor, decision tree, Random Forest, and Support Vector Machine algorithms using K-fold validation. K-fold validation is used to separate the validation samples from the training samples, and the K indicates the number of times this is repeated for the generalization. The training and validation processes are performed in two approaches. The first approach uses default hyperparameters with segmented and non-segmented images. In the second approach, all hyperparameters of the models are optimized to train segmented datasets. The classification accuracy improved by 2.19% by utilizing segmentation and hyperparameter tuning further improved by 0.48%. The highest average classification accuracy of 97.92% is achieved using the Random Forest classifier to classify 40 classes of 10 different plant species. Accurate detection of plant disease leads to the sustained growth of plants throughout the growing span of the plants.
References
A. Gulati and R. Juneja, “Transforming Indian Agriculture,” in Indian Agriculture Towards 2030, pp. 9–37, 2022, doi: 10.1007/978-981-19-0763-0_2.
B. Sumanta and C. Timir Baran, “Contribution of the Agriculture sector to the economic growth of India with both being interdependent on each other,” J. Emerg. Technol. Innov. Res., vol. 8, no. 10, pp. 103–110, 2021.
K. Kutty, “Growth Trends of Commercial Crops Production, Area, and Yield in India: An Appraisement of the Structural Stability Regression Model,” Stud. Appl. Econ., vol. 41, no. 1, 2022, doi: 10.25115/sae.v41i1.8625.
J. Zheng et al., “Quality Improvement of Tomato Fruits by Preharvest Application of Chitosan Oligosaccharide,” Horticulturae, vol. 9, no. 3, p. 300, 2023, doi: 10.3390/horticulturae9030300.
A. Sharma, L. M. Kathuria, and T. Kaur, “Analyzing relative export competitiveness of Indian agricultural food products: a study of fresh and processed fruits and vegetables,” Compet. Rev. Int. Bus. J., vol. 33, no. 6, pp. 1090–1117, 2023, doi: 10.1108/CR-03-2022-0039.
D. Vu, T. Nguyen, T. V. Nguyen, T. N. Nguyen, F. Massacci, and P. H. Phung, “HIT4Mal: Hybrid image transformation for malware classification,” Trans. Emerg. Telecommun. Technol., vol. 31, no. 11, p. e3789, 2020, doi: 10.1002/ett.3789.
E. David et al., “Global Wheat Head Detection (GWHD) Dataset: A Large and Diverse Dataset of High-Resolution RGB-Labelled Images to Develop and Benchmark Wheat Head Detection Methods,” Plant Phenomics, vol. 2020, pp. 1-12, 2020, doi: 10.34133/2020/3521852.
J. Andrew, J. Eunice, D. E. Popescu, M. K. Chowdary, and J. Hemanth, “Deep Learning-Based Leaf Disease Detection in Crops Using Images for Agricultural Applications,” Agronomy, vol. 12, no. 10, p. 2395, 2022, doi: 10.3390/agronomy12102395.
X. Bai et al., “Rice heading stage automatic observation by multi-classifier cascade based rice spike detection method,” Agric. For. Meteorol., vol. 259, pp. 260–270, 2018, doi: 10.1016/j.agrformet.2018.05.001.
A. V. Panchal, S. C. Patel, K. Bagyalakshmi, P. Kumar, I. R. Khan, and M. Soni, “Image-based Plant Diseases Detection using Deep Learning,” Mater. Today Proc., vol. 80, pp. 3500–3506, 2023, doi: 10.1016/j.matpr.2021.07.281.
M. Halder, A. Sarkar, and H. Bahar, “Plant Disease Detection By Image Processing: A Literature Review,” SDRP J. Food Sci. Technol., vol. 3, no. 6, pp. 534–538, 2018, doi: 10.25177/JFST.3.6.6.
A. S. Zamani et al., “Performance of Machine Learning and Image Processing in Plant Leaf Disease Detection,” J. Food Qual., vol. 2022, pp. 1–7, 2022, doi: 10.1155/2022/1598796.
V. K. Vishnoi, K. Kumar, and B. Kumar, “Plant disease detection using computational intelligence and image processing,” J. Plant Dis. Prot., vol. 128, no. 1, pp. 19–53, 2021, doi: 10.1007/s41348-020-00368-0.
C. Jackulin and S. Murugavalli, “A comprehensive review on detection of plant disease using machine learning and deep learning approaches,” Meas. Sens., vol. 24, p. 100441, 2022, doi: 10.1016/j.measen.2022.100441.
R. Panchami and S. Vinod Chandra, “Rice Leaf Disease Detection and Diagnosis Using Convolution Neural Network,” In Review, preprint, 2022. doi: 10.21203/rs.3.rs-1812823/v1.
M. Shoaib et al., “An advanced deep learning models-based plant disease detection: A review of recent research,” Front. Plant Sci., vol. 14, p. 1158933, 2023, doi: 10.3389/fpls.2023.1158933.
L. Goyal, C. M. Sharma, A. Singh, and P. K. Singh, “Leaf and spike wheat disease detection & classification using an improved deep convolutional architecture,” Inform. Med. Unlocked, vol. 25, p. 100642, 2021, doi: 10.1016/j.imu.2021.100642.
M. H. Saleem, S. Khanchi, J. Potgieter, and K. M. Arif, “Image-Based Plant Disease Identification by Deep Learning Meta-Architectures,” Plants, vol. 9, no. 11, p. 1451, 2020, doi: 10.3390/plants9111451.
M. A. Jasim and J. M. AL-Tuwaijari, “Plant Leaf Diseases Detection and Classification Using Image Processing and Deep Learning Techniques,” in 2020 International Conference on Computer Science and Software Engineering (CSASE), pp. 259–265, 2020, doi: 10.1109/CSASE48920.2020.9142097.
R. Deshpande and H. Patidar, “Detection of Plant Leaf Disease by Generative Adversarial and Deep Convolutional Neural Network,” J. Inst. Eng. India Ser. B, vol. 104, no. 5, pp. 1043–1052, 2023, doi: 10.1007/s40031-023-00907-x.
Y. Chen et al., “DFCANet: A Novel Lightweight Convolutional Neural Network Model for Corn Disease Identification,” Agriculture, vol. 12, no. 12, p. 2047, 2022, doi: 10.3390/agriculture12122047.
I. H. Sarker, “Machine Learning: Algorithms, Real-World Applications and Research Directions,” SN Comput. Sci., vol. 2, no. 3, p. 160, 2021, doi: 10.1007/s42979-021-00592-x.
J. Liu and X. Wang, “Plant diseases and pests detection based on deep learning: a review,” Plant Methods, vol. 17, no. 1, p. 22, 2021, doi: 10.1186/s13007-021-00722-9.
N. Kulkarni, “Color Thresholding Method for Image Segmentation of Natural Images,” Int. J. Image Graph. Signal Process., vol. 4, no. 1, pp. 28–34, 2012, doi: 10.5815/ijigsp.2012.01.04.
A. O. Salau and S. Jain, “Feature Extraction: A Survey of the Types, Techniques, Applications,” in 2019 International Conference on Signal Processing and Communication (ICSC), pp. 158–164, 2019, doi: 10.1109/ICSC45622.2019.8938371.
M. S. P. Ngongoma, M. Kabeya, and K. Moloi, “A Review of Plant Disease Detection Systems for Farming Applications,” Appl. Sci., vol. 13, no. 10, p. 5982, 2023, doi: 10.3390/app13105982.
S. M. Kiran and Dr. D. N. Chandrappa, “Current trends in plant disease detection,” Int. J. Sci. Technol. Res., vol. 8, no. 12, pp. 3055–3058, 2019.
R. Patel et al., “A review of recent advances in plant-pathogen detection systems,” Heliyon, vol. 8, no. 12, p. e11855, 2022, doi: 10.1016/j.heliyon.2022.e11855.
M. Nagaraju and P. Chawla, “Systematic review of deep learning techniques in plant disease detection,” Int. J. Syst. Assur. Eng. Manag., vol. 11, no. 3, pp. 547–560, 2020, doi: 10.1007/s13198-020-00972-1.
M. H. Saleem, J. Potgieter, and K. M. Arif, “Plant Disease Detection and Classification by Deep Learning,” Plants, vol. 8, no. 11, p. 468, 2019, doi: 10.3390/plants8110468.
M. R. Raigonda and S. P. Terdal, “Design Engineering A Review on the Disease Identification on the Potato Foliar and Tuber,” Design Engineering, pp. 13038-13056, 2022, doi: 10.13140/RG.2.2.13561.65126.
Md. R. Mia, S. Roy, S. K. Das, and Md. A. Rahman, “Mango leaf disease recognition using neural network and support vector machine,” Iran J. Comput. Sci., vol. 3, no. 3, pp. 185–193, 2020, doi: 10.1007/s42044-020-00057-z.
S. S. Harakannanavar, J. M. Rudagi, V. I. Puranikmath, A. Siddiqua, and R. Pramodhini, “Plant leaf disease detection using computer vision and machine learning algorithms,” Glob. Transit. Proc., vol. 3, no. 1, pp. 305–310, 2022, doi: 10.1016/j.gltp.2022.03.016.
M. Badiger, V. Kumara, S. C. N. Shetty, and S. Poojary, “Leaf and skin disease detection using image processing,” Glob. Transit. Proc., vol. 3, no. 1, pp. 272–278, 2022, doi: 10.1016/j.gltp.2022.03.010.
A. S. Deshapande, S. G. Giraddi, K. G. Karibasappa, and S. D. Desai, “Fungal Disease Detection in Maize Leaves Using Haar Wavelet Features,” in Information and Communication Technology for Intelligent Systems, vol. 106, pp. 275–286, 2019, doi: 10.1007/978-981-13-1742-2_27.
S. K. Dasari and V. Prasad, “A novel and proposed comprehensive methodology using deep convolutional neural networks for flue cured tobacco leaves classification,” Int. J. Inf. Technol., vol. 11, no. 1, pp. 107–117, 2019, doi: 10.1007/s41870-018-0174-4.
A. K. Singh, S. Sreenivasu, Mahalaxmi, H. Sharma, D. D. Patil, and E. Asenso, “Hybrid Feature-Based Disease Detection in Plant Leaf Using Convolutional Neural Network, Bayesian Optimized SVM, and Random Forest Classifier,” J. Food Qual., vol. 2022, pp. 1–16, 2022, doi: 10.1155/2022/2845320.
P. Shetty, A. Kumar, B. S. Rajesh, M. Balipa, G. Kanchan, and C. S. Kamath, “Tomato Leaf Disease Detection Using Multiple Classifier System,” in 2022 International Conference on Artificial Intelligence and Data Engineering (AIDE), pp. 316–321, 2022, doi: 10.1109/AIDE57180.2022.10059795.
H. Bijaya, S. Aman, and J. Basanta., “Plant Leaf Disease Recognition Using Random Forest, KNN, SVM and CNN.,” Polibits., vol. 62, pp. 13–19, 2021, doi: 10.17562/PB-62-2.
B. Vikki and S. Sanjeev, “Plant Leaf Diseases Detection Using Deep Learning Algorithms,” Int. Conf. Mach. Learn. Image Process. Netw. Secur. Data Sci. Springer, pp. 217–22, 2021.
S. P. Mohanty, D. P. Hughes, and M. Salathé, “Using Deep Learning for Image-Based Plant Disease Detection,” Front. Plant Sci., vol. 7, p. 1419, 2016, doi: 10.3389/fpls.2016.01419.
S. I. Ahmed et al., “MangoLeafBD: A comprehensive image dataset to classify diseased and healthy mango leaves,” Data Brief, vol. 47, p. 108941, 2023, doi: 10.1016/j.dib.2023.108941.
K. Park, M. Chae, and J. H. Cho, “Image Pre-Processing Method of Machine Learning for Edge Detection with Image Signal Processor Enhancement,” Micromachines, vol. 12, no. 1, p. 73, 2021, doi: 10.3390/mi12010073.
S. M. Pizer et al., “Adaptive histogram equalization and its variations,” Comput. Vis. Graph. Image Process., vol. 39, no. 3, pp. 355–368, 1987, doi: 10.1016/S0734-189X(87)80186-X.
K.-L. Chung, W.-N. Yang, Y.-R. Lai, and L.-C. Lin, “Novel peer group filtering method based on the CIELab color space for impulse noise reduction,” Signal Image Video Process., vol. 8, no. 8, pp. 1691–1713, 2014, doi: 10.1007/s11760-012-0403-4.
S. Jardim, J. António, and C. Mora, “Image thresholding approaches for medical image segmentation - short literature review,” Procedia Comput. Sci., vol. 219, pp. 1485–1492, 2023, doi: 10.1016/j.procs.2023.01.439.
M. E. Moumene, K. Benkedadra, and F. Z. Berras, “Real Time Skin Color Detection Based on Adaptive HSV Thresholding,” Journal of Mobile Multimedia, pp. 1617-1632, 2022, doi: 10.13052/jmm1550-4646.1867.
M. Tadelo, H. Shifa, and A. Assefa, “Application of logistic regression model for predicting the association of climate change resilient cultural practices with early blight of tomato ( Alternaria solani ) epidemics in the East Shewa, Central Ethiopia,” J. Plant Interact., vol. 17, no. 1, pp. 43–49, 2022, doi: 10.1080/17429145.2021.2009581.
S. Ali, M. Hassan, J. Y. Kim, M. I. Farid, M. Sanaullah, and H. Mufti, “FF-PCA-LDA: Intelligent Feature Fusion Based PCA-LDA Classification System for Plant Leaf Diseases,” Appl. Sci., vol. 12, no. 7, p. 3514, 2022, doi: 10.3390/app12073514.
V. Gurunathan, T. Sathiya Priya, J. Dhanasekar, M. . Niranjana, and S. Suganya, “Plant Leaf Diseases Detection Using KNN Classifier,” in 2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS), pp. 2157–2162, 2023, doi: 10.1109/ICACCS57279.2023.10112901.
D. Nithyashree, B. Ramya, and R. Kumar, “Plant Disease Detection using Decision Tree Algorithm and Automated Disease Cure Ramya.B2, Rohith Kumar.V3, Birundha.R4,” Int. Res. J. Eng. Technol. IRJET, vol. 7, no. 3, pp. 1834–1838, 2020.
A. Wójtowicz, J. Piekarczyk, B. Czernecki, and H. Ratajkiewicz, “A random forest model for the classification of wheat and rye leaf rust symptoms based on pure spectra at leaf scale,” J. Photochem. Photobiol. B, vol. 223, p. 112278, 2021, doi: 10.1016/j.jphotobiol.2021.112278.
S. Iniyan, R. Jebakumar, P. Mangalraj, M. Mohit, and A. Nanda, “Plant Disease Identification and Detection Using Support Vector Machines and Artificial Neural Networks,” in Artificial Intelligence and Evolutionary Computations in Engineering Systems, vol. 1056, pp. 15–27, 2020, doi: 10.1007/978-981-15-0199-9_2.
O. Okwuashi and C. E. Ndehedehe, “Deep support vector machine for hyperspectral image classification,” Pattern Recognit., vol. 103, p. 107298, 2020, doi: 10.1016/j.patcog.2020.107298.
S. Jana, S. D. Thilagavathy, and S. T. Shenbagavalli, “Plant Leaf Disease Prediction Using Deep Dense Net Slice Fragmentation and Segmentation Feature Selection Using Convolution Neural Network,” Nternational J. Intell. Syst. Appl. Eng., vol. 11, no. 6S, pp. 76–85, 2023.
J. Basavaiah and A. Arlene Anthony, “Tomato Leaf Disease Classification using Multiple Feature Extraction Techniques,” Wirel. Pers. Commun., vol. 115, no. 1, pp. 633–651, 2020, doi: 10.1007/s11277-020-07590-x.
P. Bansal, R. Kumar, and S. Kumar, “Disease Detection in Apple Leaves Using Deep Convolutional Neural Network,” Agriculture, vol. 11, no. 7, p. 617, 2021, doi: 10.3390/agriculture11070617.
S. Nandhini, R. Suganya, K. Nandhana, S. Varsha, S. Deivalakshmi, and S. K. Thangavel, “Automatic Detection of Leaf Disease Using CNN Algorithm,” in Machine Learning for Predictive Analysis, vol. 141, pp. 237–244, 2021, doi: 10.1007/978-981-15-7106-0_24.
R. Gajjar, N. Gajjar, V. J. Thakor, N. P. Patel, and S. Ruparelia, “Real-time detection and identification of plant leaf diseases using convolutional neural networks on an embedded platform,” Vis. Comput., vol. 38, no. 8, pp. 2923–2938, 2022, doi: 10.1007/s00371-021-02164-9.
T. S. Xian and R. Ngadiran, “Plant Diseases Classification using Machine Learning,” J. Phys. Conf. Ser., vol. 1962, no. 1, p. 012024, 2021, doi: 10.1088/1742-6596/1962/1/012024.
Downloads
Published
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This journal is based on the work at https://journal.umy.ac.id/index.php/jrc under license from Creative Commons Attribution-ShareAlike 4.0 International License. You are free to:
- Share – copy and redistribute the material in any medium or format.
- Adapt – remix, transform, and build upon the material for any purpose, even comercially.
The licensor cannot revoke these freedoms as long as you follow the license terms, which include the following:
- Attribution. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- ShareAlike. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
- No additional restrictions. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
• Creative Commons Attribution-ShareAlike (CC BY-SA)
JRC is licensed under an International License