Comparative Analysis of CNN and Random Forest for Cashew Plant Disease Classification

Mawar Ahdayani Samual, Sigit Wijanarko

Abstract


Cashew plants are a strategic commodity in Indonesia and are highly susceptible to various diseases, making fast and accurate identification techniques essential to minimize economic losses. This study evaluates the comparative performance of Convolutional Neural Networks (CNN) and Random Forest in classifying cashew plant disease images. Using an experimental quantitative approach, the study utilizes a dataset of 6,549 images divided into five classes: anthracnose, gummosis, healthy, leaf miner, and red rust. The models were validated using a split sampling technique with a ratio of 80:10:10 for training, validation, and testing, and were evaluated based on F1-score as well as accuracy, precision, and recall metrics. The Random Forest model employs manual feature extraction, including color, texture (Gray-Level Co-occurrence Matrix/GLCM), and shape (Hu Moments), whereas the CNN model uses a custom Sequential architecture with automatic feature extraction. The experimental results show that CNN achieves an accuracy of 85.80%, outperforming Random Forest by approximately 9%, which attains an accuracy of 76.95%. The novelty of this study lies in the integration of high-level texture features into the Random Forest model to evaluate the performance limits of conventional machine learning compared to CNN-based automatic feature extraction. The findings indicate that CNN performs better for this dataset. However, further optimization—particularly in handling natural background variations—is still required for practical deployment.

Keywords


cashew; cnn; disease classification; random forest

Full Text:

PDF

References


Syukriadi, “Sistem Pakar untuk Diagnosis Penyakit Tanaman Jagung berbasis Kecerdasan Buatan Expert System for Diagnosing Maize Plant Diseases based on Artificial Intelligence.”

V. Riyanto, S. Nurdiati, M. Marimin, M. Syukur, and S. N. Neyman, “Deep Learning Approaches for Plant Disease Diagnosis Systems: A Review and Future Research Agendas,” Journal of Applied Agricultural Science and Technology, Vol. 9, No. 2, pp. 185–204, May 2025, DOI: 10.55043/jaast.v9i2.308.

S. P. Mohanty, D. P. Hughes, and M. Salathé, “Using Deep Learning for Image-based Plant Disease Detection,” Front. Plant SCI., Vol. 7, No. September, Sep. 2016, DOI: 10.3389/fpls.2016.01419.

F. Maria Bang Ritan and A. Yakobus Chandra, “Analisis Perbandingan Kinerja Model CNN Resnet-50, VGG19 dan Mobilenet dalam Klasifikasi Penyakit pada Tanaman Mete”, [Online]. Available: https://locus.rivierapublishing.id/index.php/jl

A. Kumari and J. Singh, “Designing of Guava Quality Classification Model based on Anova and Machine Learning,” SCI. Rep., Vol. 15, No. 1, Dec. 2025, DOI: 10.1038/s41598-025-09684-7.

H. A. Salman, A. Kalakech, and A. Steiti, “Random Forest Algorithm Overview,” Babylonian Journal of Machine Learning, Vol. 2024, pp. 69–79, Jun. 2024, DOI: 10.58496/bjml/2024/007.

J. Lu, L. Tan, and H. Jiang, “Review on Convolutional Neural Network (CNN) Applied to Plant Leaf Disease Classification,” Aug. 01, 2021, MDPI AG. DOI: 10.3390/agriculture11080707.

H. Gunasekaran, K. Ramalakshmi, A. Rex Macedo Arokiaraj, S. D. Kanmani, C. Venkatesan, and C. S. G. Dhas, “Analysis of DNA Sequence Classification using CNN and Hybrid Models,” Comput. Math. Methods Med., Vol. 2021, 2021, DOI: 10.1155/2021/1835056.

Y. AbdulAzeem, W. M. Bahgat, and M. Badawy, “A CNN based Framework for Classification of Alzheimer’s Disease,” Neural Comput. Appl., Vol. 33, No. 16, pp. 10415–10428, Aug. 2021, DOI: 10.1007/s00521-021-05799-w.

W. Ayadi, W. Elhamzi, I. Charfi, and M. Atri, “Deep CNN for Brain Tumor Classification,” Neural Process. Lett., Vol. 53, No. 1, pp. 671–700, Feb. 2021, DOI: 10.1007/s11063-020-10398-2.

S. Kutluk, K. Kayabol, and A. Akan, “A New CNN Training Approach with Application to Hyperspectral Image Classification,” Digital Signal Processing: A Review Journal, Vol. 113, Jun. 2021, DOI: 10.1016/j.dsp.2021.103016.

A. Putra Argadianata, D. Abdul Fatah, H. Sukri, J. Raya Telang, K. Kamal, and J. Timur, “Klasifikasi Kualitas Buah Apel menggunakan Metode Random Forest,” 2025.

P. Behnia, J. Harris, H. Liu, T. R. C. Jørgensen, M. Naghizadeh, and E. A. Roots, “Random Forest Classification for Volcanogenic Massive Sulfide Mineralization in the Rouyn-Noranda Area, Quebec,” Ore Geol. Rev., Vol. 161, Oct. 2023, DOI: 10.1016/j.oregeorev.2023.105612.

W. Mobley, A. Sebastian, R. Blessing, W. E. Highfield, L. Stearns, and S. D. Brody, “Quantification of Continuous Flood Hazard using Random Forest Classification and Flood Insurance Claims at Large Spatial Scales: A Pilot Study in Southeast Texas,” Natural Hazards and Earth System Sciences, Vol. 21, No. 2, pp. 807–822, Mar. 2021, DOI: 10.5194/nhess-21-807-2021.

A. J. Tesoriero, S. A. Wherry, D. I. Dupuy, and T. D. Johnson, “Predicting Redox Conditions in Groundwater at a National Scale using Random Forest Classification,” Environ. SCI. Technol., Vol. 58, No. 11, pp. 5079–5092, Mar. 2024, DOI: 10.1021/acs.est.3c07576.




DOI: https://doi.org/10.32520/stmsi.v15i3.6100

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.