Image Classification of Rice Leaf Diseases with KNN Based Model using Stratified-KCV

Authors

  • Tasya Anisah Rizqi IPB University
  • Anwar Fitrianto IPB UNiversity
  • Kusman Sadik IPB UNiversity

DOI:

https://doi.org/10.29207/resti.v9i5.6590

Keywords:

image classification, rice leaf diseases, rgb, stratified k-fold cross validation, vgg16

Abstract

Rice is a staple food for people in the world, especially Indonesia. The rice harvest decreased in 2023, reducing harvest productivity and causing losses for farmers. Rice cultivation is often affected by diseases that hinder rice harvests. SKCV is a resampling method that performs more accurately because it can ensure that class frequencies are maintained. RGB and VGG16 are image processing methods that extract images into numerics. RGB image extraction is done by taking the average value of the red, green, and blue layers while VGG16 image extraction is done by taking the value of visual pattern features such as edges, textures, and object shapes. In this study, rice leaf diseases were classified using KNN-based models, including KNN, WKNN, CDNN, and ECDNN. This classification was performed to determine which method had better performance using SKCV and comparing the results of RGB and VGG16 image extraction. This classification also produces a comparison of SKCV and KCV results to determine the best resampling performance. The results of the analysis that have been carried out show that the ECDNN method produces the highest accuracy of 81.20% in classifying rice leaf diseases using SKCV with VGG16 extraction followed by CDNN and WKNN each at 68.80%, and KNN at 56.20% while RGB extraction only produces an accuracy of 43.8% using ECDNN and CDNN, 56.20% using WKNN, and 50% using KNN. The results of this rice leaf diseases classification analysis are expected to help farmers in increasing rice production in Indonesia.

Downloads

Download data is not yet available.

References

BPS, “Jumlah Penduduk Pertengahan Tahun.” Accessed: May 19, 2024. [Online]. Available: https://www.bps.go.id/id/statistics-table/2/MTk3NSMy/jumlah-penduduk-pertengahan-tahun.html

BPS, Ringkasan Eksekutif Luas Panen dan Produksi Padi di Indonesia 2023 (Angka Tetap). Badan Pusat Statistik, 2023.

BBPOPT, Laporan Kinerja BBPOPT Tahun 2023. Balai Besar Peramalan Organisme Pengganggu Tanaman Indonesia, 2023.

P. N. Andono, Muljono, and T. Sutojo, Pengolahan Citra Digital. Yogyakarta: ANDI, 2017.

Y. N. Fuadah, S. Sa’Idah, I. Wijayanto, R. Patmasari, and R. Magdalena, “Non Invasive Anemia Detection in Pregnant Women Based on Digital Image Processing and K-Nearest Neighbor,” in Proc. 37th International Conference on Biomedical Engineering (IBIOMED 2020), Institute of Electrical and Electronics Engineers Inc., Oct. 2020, pp. 60–64. doi: https://doi.org/10.1109/IBIOMED50285.2020.9487605.

V. K. Shrivastava, M. K. Pradhan, and M. P. Thakur, “Application of Pre-Trained Deep Convolutional Neural Networks for Rice Plant Disease Classification,” in 2021 International Conference on Artificial Intelligence and Smart Systems (ICAIS), Mar. 2021, pp. 1023–1030. doi: https://doi.org/10.1109/ICAIS50930.2021.9395813.

P. W. Rahayu et al., Buku Ajar Data Mining. Jambi: PT. Sonpedia Publishing Indonesia, 2024.

P. Hasan Putra, M. Syahputra Novelan, and M. Rizki, “Analysis K-Nearest Neighbor Method in Classification of Vegetable Quality Based on Color,” Journal of Applied Engineering and Technological Science, vol. 3, no. 2, pp. 126–132, 2022, doi: https://doi.org/10.37385/jaets.v3i2.763.

A. X. Wang, S. S. Chukova, and B. P. Nguyen, “Ensemble K-Nearest Neighbors Based on Centroid Displacement,” Inf Sci (N Y), vol. 629, pp. 313–323, Jun. 2023, doi: https://doi.org/10.1016/j.ins.2023.02.004.

A. Hermawan, I. W. Mangku, N. K. K. Ardana, and H. Sumarno, “Analisis Support Vector Regression dengan Algoritma Grid Search untuk Memprediksi Harga Saham,” MILANG Journal of Mathematics and Its Applications, vol. 18, no. 1, pp. 41–60, 2022, doi: https://doi.org/10.29244/milang.18.1.41-60.

S. Prusty, S. Patnaik, and S. K. Dash, “SKCV: Stratified K-Fold Cross-Validation on ML Classifiers for Predicting Cervical Cancer,” Frontiers in Nanotechnology, vol. 4, Aug. 2022, doi: https://doi.org/10.3389/fnano.2022.972421.

F. Gemci, T. Ibrikci, and U. Cevik, “Comparative of Success of KNN with New Propose K-Split Method and Stratified Cross Validation on Remote Homologue Protein Detection,” Eskişehir Technical University Journal of Science and Technology A - Applied Sciences and Engineering, vol. 23, no. 1, pp. 87–108, Mar. 2022, doi: https://doi.org/10.18038/estubtda.970169.

F. Mohameth, C. Bingcai, and K. A. Sada, “Plant Disease Detection with Deep Learning and Feature Extraction Using Plant Village,” Journal of Computer and Communications, vol. 08, no. 06, pp. 10–22, 2020, doi: https://doi.org/10.4236/jcc.2020.86002.

S. Mathulaprangsan, S. Patarapuwadol, K. Lanthong, D. Jetpipattanapong, and S. Sateanpattanakul, “Rice Disease Recognition Using Effective Deep Neural Networks,” Journal of Web Engineering, vol. 20, no. 4, pp. 853–878, May 2021, doi: https://doi.org/10.13052/jwe1540-9589.20313.

N. S. B. Mat Said, H. Madzin, S. K. Ali, and N. S. Beng, “Comparison of Color-based Feature Extraction Methods in Banana Leaf Diseases Classification Using SVM and K-NN,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 24, no. 3, pp. 1523–1533, Dec. 2021, doi: https://doi.org/10.11591/ijeecs.v24.i3.pp1523-1533.

H. Fitriyah and R. C. Wihandika, Dasar-Dasar Pengolahan Citra Digital. Malang: UB Press, 2021.

Zircon, “Pengembangan Metode Sortasi Buah Kopi Robusta Menggunakan Pengolahan Citra Digital,” IPB University, Bogor, 2023.

J. T. Abel et al., “Display Characteristics and Their Impact on Digital Pathology: A Current Review of Pathologists’ Future ‘Microscope,’” J Pathol Inform, vol. 11, 2020, doi: https://doi.org/10.4103/jpi.jpi_38_20.

Arnita, F. Marpaung, F. Aulia, N. Suryani, and R. C. Nabila, Computer Vision dan Pengolahan Citra Digital. Pustaka Aksara, 2022. [Online]. Available: www.pustakaaksara.co.id

K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for Large-Scale Image Recognition,” International Conference on Learning Representations, 2014, pp. 1–14. [Online]. Available: http://arxiv.org/abs/1409.1556

D. Singh et al., “Classification and Analysis of Pistachio Species with Pre-Trained Deep Learning Models,” Electronics (Basel), vol. 11, 2022, doi: https://doi.org/10.3390/electronics11070981.

Z. Omiotek and A. Kotyra, “Flame Image Processing and Classification Using a Pre-trained VGG16 Model in Combustion Diagnosis,” Sensors, vol. 21, pp. 1–15, 2021, doi: https://doi.org/10.3390/s21020500.

Rohit Thakur, “Step by step VGG16 implementation in Keras for beginners,” medium.com. Accessed: Mar. 03, 2025. [Online]. Available: https://medium.com/towards-data-science/step-by-step-vgg16-implementation-in-keras-for-beginners-a833c686ae6c

E. Fix and J. L. Hodges, Discriminatory Analysis Nonparametric Discrimination: Consistency Properties. Berkeley: University of California, 1951.

M. Çakir, M. Yilmaz, M. A. Oral, H. Ö. Kazanci, and O. Oral, “Accuracy Assessment of RFerns, NB, SVM, and KNN Machine Learning Classifiers in Aquaculture,” J King Saud Univ Sci, vol. 35, no. 6, Aug. 2023, doi: https://doi.org/10.1016/j.jksus.2023.102754.

R. A. Rahman, K. Sadik, and A. Fitrianto, “Simulation for Time Series Classification Using Feature Covariance Matrices with K-Nearest Neighbor,” in AIP Conference Proceedings, American Institute of Physics Inc., Dec. 2022. doi: https://doi.org/10.1063/5.0108204.

T. A. Rizqi, “Penerapan Stratified Sampling pada Klasifikasi Gambar Penyakit Daun Padi dengan Metode K-Nearest Neighbor,” Jakarta: Seminar Nasional Official Statistics, 2024, pp. 481–488. doi: https://doi.org/10.34123/semnasoffstat.v2024i1.2023.

F. Tarakci and A. Ozkan, “Comparison of classification performance of kNN and WKNN algorithms,” Selcuk University Journal of Engineering Sciences, vol. 20, no. 02, pp. 32–37, 2021, [Online]. Available: https://sujes.selcuk.edu.tr/sujes/article/view/536

B. P. Nguyen, W. L. Tay, and C. K. Chui, “Robust Biometric Recognition From Palm Depth Images for Gloved Hands,” IEEE Trans Hum Mach Syst, vol. 45, no. 6, pp. 799–804, Dec. 2015, doi: https://doi.org/10.1109/THMS.2015.2453203.

H. Fransiska, A. M. Soleh, K. A. Notodiputro, and Erfiani, “Evaluation of Machine Learning Models Based on Household Food Insecurity Data in Indonesia,” in BIO Web of Conferences, EDP Sciences, Apr. 2025. doi: https://doi.org/10.1051/bioconf/202517102011.

K. Ali, Z. A. Shaikh, A. A. Khan, and A. A. Laghari, “Multiclass Skin Cancer Classification Using EfficientNets – A First Step Towards Preventing Skin Cancer,” Neuroscience Informatics, vol. 2, no. 4, pp. 1–10, Dec. 2022, doi: https://doi.org/10.1016/j.neuri.2021.100034.

C. K. K. Reddy et al., “A Fine-Tuned Vision Transformer Based Enhanced Multi-Class Brain Tumor Classification Using MRI Scan Imagery,” Front Oncol, vol. 14, 2024, doi: https://doi.org/10.3389/fonc.2024.1400341.

I. Markoulidakis, I. Rallis, I. Georgoulas, G. Kopsiaftis, A. Doulamis, and N. Doulamis, “Multiclass Confusion Matrix Reduction Method and Its Application on Net Promoter Score Classification Problem,” Technologies (Basel), vol. 9, no. 4, Dec. 2021, doi: https://doi.org/10.3390/technologies9040081.

S. H. Ou, “Rice Diseases,” 2nd ed., UK: Commonwealth Mycological Institute, 1985.

T. W. . Mew and P. . Gonzales, A Handbook of Rice Seedborne Fungi. IRRI ; Science Publishers, 2002.

G. N. Agrios, Plant Pathology, 5th ed. Burlington: Elsevier Academic Press, 2005.

Downloads

Published

2025-10-11

Issue

Section

Artificial Intelligence

How to Cite

Rizqi, T. A., Anwar Fitrianto, & Kusman Sadik. (2025). Image Classification of Rice Leaf Diseases with KNN Based Model using Stratified-KCV. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 9(5), 1056-1065. https://doi.org/10.29207/resti.v9i5.6590