Apple Disease Detection and Classification using Random Forest (One-vs-All)

Authors

DOI:

https://doi.org/10.4108/airo.8041

Keywords:

Fruit diseases detection, digital image processing, GLCM feature extraction, LDA, random forest

Abstract

Fruit diseases detection and recognition are a common problem worldwide. Fruit Disease detection is a hot topic among researchers and is very complex due to structure and color similarity factors. In this research we proposed a new model to detect and classify the apple disease with the help of digital image processing and machine learning. First, image processing techniques were applied to enhance the image contrast and remove the noise, which helped to segment the region of interest accurately also help to extract feature without garbage data. Then K-means clustering technique with fuzzy C-mean method was implemented to segment the images. GLCM feature extraction was used after the segmentation. Real images of apple disease with multi-disease regions were used in the research method. These features were preprocessed with methods like LDA. K-Fold cross validation was used for training and testing, with combination of random forest machine learning method. The result showed high accuracy with comparison of existing techniques.

Downloads

Download data is not yet available.

References

[1] Patocka, J., Bhardwaj, K., Klimova, B., Nepovimova, E., Wu, Q., Landi, M., ... & Wu, W. (2020). Malus domestica: A review on nutritional features, chemical composition, traditional and medicinal value. Plants, 9(11), 1408.

[2] Boyer, J., & Liu, R. H. (2004). Apple phytochemicals and their health benefits. Nutrition journal, 3, 1-15.

[3] Song, X., & Mariano, V. Y. (2023, January). Image-based apple disease detection based on residual neural network and transfer learning. In 2023 IEEE 3rd International Conference on Power, Electronics and Computer Applications (ICPECA) (pp. 365-369). IEEE.

[4] Alharbi, A. G., & Arif, M. (2020, October). Detection and classification of apple diseases using convolutional neural networks. In 2020 2nd international conference on computer and information sciences (ICCIS) (pp. 1-6). IEEE.

[5] Ma, B., Hua, Z., Wen, Y., Deng, H., Zhao, Y., Pu, L., & Song, H. (2024). Using an improved lightweight YOLOv8 model for real-time detection of multi-stage apple fruit in complex orchard environments. Artificial Intelligence in Agriculture, 11, 70-82.

[6] Awate, A., Deshmankar, D., Amrutkar, G., Bagul, U., & Sonavane, S. (2015, October). Fruit disease detection using color, texture analysis and ANN. In 2015 international conference on green computing and internet of things (ICGCIoT) (pp. 970-975). IEEE.

[7] Samajpati, B. J., & Degadwala, S. D. (2016, April). Hybrid approach for apple fruit diseases detection and classification using random forest classifier. In 2016 International conference on communication and signal processing (ICCSP) (pp. 1015-1019). IEEE.

[8] Sugiarti, Y., Supriyatna, A., Carolina, I., Amin, R., & Yani, A. (2021, September). Model Naive Bayes classifiers for detection apple diseases. In 2021 9th International Conference on Cyber and IT Service Management (CITSM) (pp. 1-4). IEEE.

[9] Sujatha, P. K., Sandhya, J., Chaitanya, J. S., & Subashini, R. (2018, December). Enhancement of segmentation and feature fusion for apple disease classification. In 2018 Tenth International Conference on Advanced Computing (ICoAC) (pp. 175-181). IEEE.

[10] Behera, S. K., Jena, L., Rath, A. K., & Sethy, P. K. (2018, April). Disease classification and grading of orange using machine learning and fuzzy logic. In 2018 International Conference on Communication and Signal Processing (ICCSP) (pp. 0678-0682). IEEE.

[11] Xuan, G., Gao, C., Shao, Y., Zhang, M., Wang, Y., Zhong, J., ... & Peng, H. (2020). Apple detection in natural environment using deep learning algorithms. IEEE Access, 8, 216772-216780.

[12] Nagesh, A. S., & Balaji, G. N. (2022, December). Deep learning approach for recognition and classification of tomato fruit diseases. In 2022 International Conference on Data Science, Agents & Artificial Intelligence (ICD-SAAI) (Vol. 1, pp. 1-6). IEEE.

[13] Sharma, R., Kukreja, V., Sood, P., & Bhattacharjee, A.(2023, May). Classifying the Severity of Apple Black Rot Disease with Deep Learning: A Dual CNN and LSTM Approach. In 2023 3rd International Conference on Advances in Computing, Communication, Embedded and Secure Systems (ACCESS) (pp. 173-177). IEEE.

[14] Agrawal, P., Singh, N., Bansal, N., & Goel, A. (2023, May). Accurate Disease Detection in Apple Fruit Images using Transfer Learning: A Novel Approach for Agricultural Sustainability. In 2023 2nd International Conference on Applied Artificial Intelligence and Computing (ICAAIC)(pp. 482-488). IEEE.

[15] Kaur, A., & Chadha, R. (2023, March). An Optimized Ant Gardient Convolutional Neural Network for Disease Detection in Apple Leaves. In 2023 2nd International Conference for Innovation in Technology (INOCON) (pp. 1-8). IEEE.

[16] Nagaraju, Y., Swetha, S., & Stalin, S. (2020, December). Apple and grape leaf diseases classification using transfer learning via fine-tuned classifier. In 2020 IEEE International Conference on Machine Learning and Applied Network Technologies (ICMLANT) (pp. 1-6). IEEE.

[17] Thwaites, A., Wingfield, C., Wieser, E., Soltan, A., Marslen-Wilson, W. D., & Nimmo-Smith, I. (2018). Entrainment to the CIECAM02 and CIELAB colour appearance models in the human cortex. Vision research, 145, 1-10.

[18] Lin, P., Xiaoli, L., Li, D., Jiang, S., Zou, Z., Lu, Q., & Chen, Y. (2019). Rapidly and exactly determining postharvest dry soybean seed quality based on machine vision technology. Scientific Reports, 9(1), 17143.

[19] Ng, K., & Song, T. (2024). Hybrid Quantum-Classical Neural Network for LAB Color Space Image Classifica-tion. arXiv preprint arXiv:2406.02229.

[20] Zhang, H., & Liu, J. (2022). Fuzzy c-means clustering algorithm with deformable spatial information for image segmentation. Multimedia Tools and Applications, 81(8), 11239-11258.

[21] Coates, A., & Ng, A. Y. (2012). Learning feature representations with k-means. In Neural Networks: Tricks of the Trade: Second Edition (pp. 561-580). Berlin, Heidelberg: Springer Berlin Heidelberg.

[22] Xu, X., Xu, S., Jin, L., & Song, E. (2011). Characteristic analysis of Otsu threshold and its applications. Pattern recognition letters, 32(7), 956-961.

[23] Garousi, V., Joy, N., & Keleş, A. B. (2024). AI-powered test automation tools: A sys-tematic review and empirical evaluation. arXiv preprint arXiv:2409.00411.

[24] Yousefi, J. (2011). Image binarization using Otsu thresholding algorithm. Ontario, Canada: University of Guelph, 10.

[25] Ranjitha, K. V., & Pushphavathi, T. P. (2024). Analysis on Improved Gaussian-Wiener filtering technique and GLCM based Feature Extraction for Breast Cancer Diagnosis. Procedia Computer Science, 235, 2857-2866.

[26] Zubair, A. R., & Alo, O. A. (2024). Grey level co-occurrence matrix (GLCM) based second order statistics for image texture analysis. arXiv preprint arXiv:2403.04038.

[27] García, S., Ramírez-Gallego, S., Luengo, J., Benítez, J. M., & Herrera, F. (2016). Big data preprocessing: methods and prospects. Big data analytics, 1, 1-22.

[28] Li, C. N., Shao, Y. H., Wang, Z., Deng, N. Y., & Yang, Z. M.(2019). Robust Bhattacharyya bound linear discriminant analysis through an adaptive algorithm. Knowledge-Based Systems, 183, 104858.

[29] Hossein Azgomi, Fatemeh Roshannia Haredasht and Mohammad Reza Safari Motlagh. (2023). Diagnosis of some apple fruit diseases by using image processing and artificial neural network .https://doi.org/10.1016/j.foodcont.2022.109484.

[30] Gorriz, J. M., Segovia, F., Ramirez, J., Ortiz, A., & Suckling, J. (2024). Is K-fold cross validation the best model selection method for Machine Learning?. arXiv preprint arXiv:2401.16407.

[31] Sara Alqethami,Badriah Almtanni ,Walla Alzhrani ,Manal Alghamdi (2022, April). Disease Detection in Apple Leaves Using Image Processing Techniques(Vol. 12, No. 8335-8341). ETASR.

[32] Breiman, L. (2001). Random forests. Machine learning, 45, 5-32.

[33] Vural, V., Fung, G., Rosales, R., & Dy, J. G. (2009, June). Multi-Class Classifiers and their Underlying Shared Structure. In IJCAI (pp. 1267-1272).

[34] Rifkin, R., & Klautau, A. (2004). In defense of one-vs-all classification. The Journal of Machine Learning Research, 5, 101-141.

[35] Kaggle. Apple Diseases Image Dataset Dataset.https://www.kaggle.com/datasets/davidhilton/apple-diseases-image-dataset

[36] Tiwari R, Chahande M. Apple Fruit Disease Detection and Classification Using K-Means Clustering Method. In: Das S, Mohanty MN, editors. Advances in Intelligent Computing and Communication. Singapore: Springer Singapore; 2021. pp. 71–84.

[37] Doh B, Zhang D, Shen Y, Hussain F, Doh RF, et al. Automatic Citrus Fruit Disease Detection by Phenotyping Using Machine Learning. In: 2019 25th International Conference on Automation and Computing (ICAC). Lancaster, United Kingdom: IEEE; 2019. pp. 1–5.

[38] Habib MT, Majumder A, Jakaria AZM, Akter M, Uddin MS, et al.Machine vision based papaya disease recognition.Journal of King Saud University - Computer and Information Sciences 2020 Mar;32:300–309.

[39] Sharif M, Khan MA, Iqbal Z, Azam MF, Lali MIU, et al. Detection and classification of citrus diseases in agriculture based on optimized weighted segmentation and feature selection.Computers and Electronics in Agriculture 2018 Jul;150:220–34.

[40] Lisha Kamala K, Anna Alex S. Apple Fruit Disease Detection for Hydroponic plants using Leading edge Technology Machine Learning and Image Processing. In: 2021 2nd International Conference on Smart Electronics and Communication (ICOSEC). Trichy, India: IEEE; 2021. pp. 820–25.

[41] Dubey SR, Jalal AS. Detection and Classification of Apple Fruit Diseases Using Complete Local Binary Patterns. In: 2012 Third International Conference on Computer and Communication Technology. Allahabad, Uttar Pradesh, India: IEEE; 2012. pp. 346–51

Downloads

Published

22-01-2025

How to Cite

[1]
Z. Wen, H. Lan, and M. A. Khan, “Apple Disease Detection and Classification using Random Forest (One-vs-All)”, EAI Endorsed Trans AI Robotics, vol. 4, Jan. 2025.