CLASSIFICATION OF RICE TYPE IMAGE USING RESNET18
DOI:
https://doi.org/10.61677/jth.v4i1.896Keywords:
Rice classification, Convolutional Neural Network, ResNet18, transfer learning, digital image.Abstract
Rice is the primary staple food and a source of carbohydrates for most people in Indonesia. Various types of rice available on the market have differences in shape, size, color, and texture. However, some rice varieties have similar characteristics, making the identification process through visual observation still quite difficult. This study was aimed at developing a rice classification program using the Convolutional Neural Network (CNN) method with the ResNet18 architecture based on digital images. The dataset used consisted of 3,120 images divided into six classes, namely Gentong, Naga Mas, Raja Merah, Setra Ramos Alfamart, SPHP, and Wong Tani rice. Before the training process, the images underwent preprocessing, including resizing to 256 × 256 pixels and data normalization. The model was trained using a transfer learning approach with a data split of 80% and 20% for testing. The results showed that the ResNet18 model achieved a training accuracy of 95.81% and a testing accuracy of 84.55%. Evaluation using a confusion matrix showed that the model was able to classify most rice varieties successfully, although several misclassifications were still found among rice varieties with similar shapes and textures. Based on these results, the Convolutional Neural Network (CNN) method with the ResNet18 architecture can be used to support the automatic recognition and classification of rice varieties.
References
Abdiansyah, Baharuddin, & Sulkifly Said, M. (2024). Klasifikasi Jenis Beras Menggunakan Metode Convolutional Neural Network pada Arsitektur MobileNet. Jurnal Sistem Informasi dan Teknik Komputer, 9(2), 299–305. https://doi.org/10.51876/simtek.v9i2.1334
Ariska, F. M., & Qurniawan, B. (2021). Perkembangan Impor Beras di Indonesia. Journal of Agriculture and Animal Science, 1(1), 27–34. https://doi.org/10.47637/agrimals.v1i1.342
Dani Achmad, A., Arysespajayadi, Tandungan, S., Takdir Muslihi, M., & Triska Muliana, A. (2026). Perbandingan Arsitektur CNN untuk Klasifikasi Penyakit Pada Buah ManggaStudi Kasus: MobileNetV3, EfficientNetB3, dan ResNet-18. JTE UNIBA, 10(2), 797–805. https://doi.org/10.36277/jteuniba.v10i2.1328
Fauzi, I. H., Sulaeman, M. S., Apandi, T. H., & Fauzi, W. M. (2026). Klasifikasi Jenis Beras Menggunakan Deep Learning Berbasis Computer Vision dengan Platform Roboflow. JSIA, 4(1), 1–12. https://doi.org/10.52958/jsia.v4i1.13175
Gunawan, B., & Al-Rivan, M. E. (2023). Klasifikasi Jenis Beras Putih Menggunakan CNN Residual Network Optimizer SGD. MDP Student Conference (MSC) 2023, 2(1), 128–132. https://doi.org/10.35957/mdp-sc.v2i1.4305
Islah, M., Suswanto, F. I., Dhafa, M., Mindara, G. P., & Giri, E. P. (2025). Klasifikasi Kematangan Tandan Buah Segar Kelapa Sawit Menggunakan ResNet18 Berbasis Citra RGB. Journal of Informatics and Communications Technology, 7(2), 136–145. https://doi.org/10.52661/jict.v7i2.478
Lasniari, S., Jasril, Sanjaya, S., Yanto, F., & Affandes, M. (2022). Klasifikasi Citra Daging Babi dan Daging Sapi Menggunakan Deep Learning Arsitektur ResNet-50 dengan Augmentasi Citra. Jurnal Sistem Komputer Dan Informatika (JSON), 3(4), 450–457. https://doi.org/10.30865/json.v3i4.4167
Muzhaffar, R., & Suharjo, I. (2025). Penerapan CNN Berbasis Arsitektur ResNet-50 untuk Klasifikasi Citra Mikroskopik Beras Organik dan Anorganik. Jurnal Pustaka Data (Pusat Akses Kajian Database, Analisa Teknologi, Dan Arsitektur Komputer), 5(2), 351–358. https://doi.org/10.55382/jurnalpustakadata.v5i2.1117
Sandyka Mahendra, O., & Putra Ramadhan, A. (2026). Klasifikasi Kualitas Beras Menggunakan Convolutional Neural Network Berbasis Citra Digital. Prosiding Seminar Nasional Teknologi dan Sains, 5(1), 650–655. https://doi.org/10.29407/tb2rb846
Sela, E. I., & Ardiansyah, R. (2023). Implementasi Convolutional Neural Network Untuk Klasifikasi Jenis Beras Berdasarkan Citra Digital. Indonesian Journal of Computer Science Attribution, 12(6), 4172–4182. https://doi.org/10.33022/ijcs.v12i6.3520
Setiawan, W. (2021). Klasifikasi Citra Histopatologi Kanker Payudara menggunakan Data Resampling Random dan Residual Network. Jurnal Sistem Informasi Bisnis, 11(1), 70–77. https://doi.org/10.21456/vol11iss1pp70-77
Simangunsong, J., Simanjuntak, N. D., & Matondang, A. A. (2025). Penerapan Transfer Learning untuk Klasifikasi Citra Bunga Berbasis Convolutional Neural Network. Jurnal Minfo Polgan, 14(1), 1062–1067. https://doi.org/10.33395/jmp.v14i1.14980
Syarifah, A., Riadi, A. A., & Susanto, A. (2022). Klasifikasi Tingkat Kematangan Jambu Bol Berbasis Pengolahan Citra Digital Menggunakan Metode K-Nearest Neighbor. Jurnal Informatika Merdeka Pasuruan, 7(2), 27–35. https://doi.org/https://doi.org/10.37438/jimp.v7i1.417
Yusuf, M., Ruimassa, R., Tawainella, A. I., & Maharani, D. A. (2024). Klasifikasi Kualitas Beras Menggunakan Convolutional Neural Network Berbasis Android. Jurnal Komputer dan Informatika, 12(2), 186–192. https://doi.org/10.35508/jicon.v12i2.18004
Zainal Altim, M., Salmiah, F., Kasman, Yudhistira, A., & Amalia Syamsul, R. (2022). Pengklasifikasi Beras Menggunakan Metode CNN (Convolutional Neural Network). Jurnal Instek, 7(1), 151–155. https://doi.org/10.24252/instek.v7i1.28922
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 JTH: Journal of Technology and Health

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




