Klasifikasi Mutu Tomat dan Potensi Umur Simpan Berdasarkan Fitur Warna-Tekstur Menggunakan Random Forest


  • Intan Noviyanti * Mail Universitas Muria Kudus, Kudus, Indonesia
  • Esti Wijayanti Universitas Muria Kudus, Kudus, Indonesia
  • Evanita Evanita Universitas Muria Kudus, Kudus, Indonesia
  • (*) Corresponding Author
Keywords: Random Forest; Tomato Quality Classification; Shelf-life Prediction; Feature Extraction; Digital Image Processing

Abstract

Postharvest tomato deterioration remains a major challenge due to manual and subjective quality assessment, which may lead to inconsistent sorting results and inaccurate shelf-life estimation. This study aims to develop a tomato quality classification system and predict potential shelf life based on digital image processing using the Random Forest algorithm. The study employed 936 tomato images and 450 non-tomato images collected independently. The extracted features consisted of Red Green Blue (RGB) and Hue Saturation Value (HSV) color features, as well as Gray Level Co-occurrence Matrix (GLCM) texture features. Tomato quality was classified into three categories, namely Poor, Medium, and Good, using a Random Forest Classifier, while shelf-life prediction was performed using a Random Forest Regressor. The classification model achieved an accuracy of 96.81%, precision of 96.82%, recall of 96.81%, and an F1-score of 96.81%. The regression model produced a Mean Absolute Error (MAE) of 0.0621, a Root Mean Square Error (RMSE) of 0.1152, and an R² value of 0.8752, while cross-validation yielded an average accuracy of 95.83% ± 1.24%, indicating stable model performance. Feature importance analysis revealed that color features contributed the most to both models, with g_mean identified as the most influential feature for tomato quality classification and shelf-life prediction. This study contributes to the development of a tomato quality assessment system capable of simultaneously classifying tomato quality and predicting shelf-life potential based on digital image processing using the Random Forest algorithm. In addition, feature importance analysis is employed to identify the visual characteristics that have the greatest influence on model performance. The results demonstrate that the proposed approach has the potential to support tomato sorting and postharvest management processes in a more objective and efficient manner.

Downloads

Download data is not yet available.

References

S. W. Agusta and W. Kaswidjanti, “The Implementation of Color Feature Extraction and Gray Level Co- occurrence Matrix Combination in K-Nearest Neighbor Classification Method for Tomato Leaf Disease Identification,” Telemat. J. Inform. dan Teknol. Inf., vol. 20, no. 2, pp. 250–262, 2023, doi: 10.31515/telematika.v20i2.10009.

B. P. Statistik, “Statistik Hortikultura 2023,” Jakarta, 2023. [Online]. Available: https://www.bps.go.id/id/statistics-table/2/NjEjMg==/production-of-vegetables.html 1.143.788 ton (1,02 jt ton)

K. Pertanian, Statistik Pertanian (Agricultural Statistics) 2024. Jakarta: Pusat Data dan Sistem Informasi Pertanian Kementerian Pertanian Republik Indonesia, 2024.

M. B. Sulthan and I. Wahyudi, “Klasifikasi Kematangan Buah Tomat Menggunakan Fitur RGB dan HSI Berbasis Backpropagation,” J. Apl. Teknol. Inf. dan Manaj., vol. 4, no. 1, pp. 84–95, 2023, doi: https://doi.org/10.31102/jatim.v4i1.2177.

I. R. M. Fatah, A. H. Ginting, and W. T. Ina, “Klasifikasi Tingkat Kematangan Buah Tomat Berdasarkan Warna,” J. Tek. Elektro, vol. 1, no. 1, pp. 20–25, 2024, [Online]. Available: https://elektro.ejournal.web.id/index.php/elektro/article/view/112

J. Rusman, B. Z. Haryati, and A. Michael, “Optimisasi Hiperparameter Tuning Pada Metode Support Vector Untuk Klasifikasi Tingkat Kematangan Buah Kopi,” J-Icon J. Inform. dan Komput., vol. 11, no. 2, pp. 195–202, 2023, doi: 10.35508/jicon.v11i2.12571.

D. A. Salim, Y. B. Roza, A. Ramadhanu, and Putra, “Evaluasi Kualitas dan Kematangan Mangga Menggunakan Analisis Citra Digital dengan Euclidean Distance Fokus pada Buah Hijau dan Kuning,” Indones. J. Comput. Sci., vol. 3, no. 2, pp. 57–64, 2024, doi: https://doi.org/10.31294/ijcs.v3i2.

F. Santoso and E. Hartati, “Penggunaan Algoritma Random Forest dalam Klasifikasi Buah Segar dan Busuk,” Algoritm. J. Mhs. Tek. Inform., vol. 3, no. 1, pp. 133–140, 2022, doi: https://doi.org/10.35957/algoritme.v3i1.3404.

C. Nyasulu, A. Diattara, A. Traore, and C. Ba, “A comparative Study of Machine Learning-based Classification of Tomato Fungal Diseases : Application of GLCM Texture Features,” Heliyon, vol. 9, no. 11, p. e21697, 2023, doi: 10.1016/j.heliyon.2023.e21697.

A. Setiyawan, D. Syauqy, and S. R. Akbar, “Rancang Bangun Sistem Klasifikasi Padi Siap Dipanen dengan Parameter Warna Padi dan Warna Daun Menggunakan Metode Random Forest,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 6, no. 7, pp. 3228–3235, 2022.

N. A. Faradita and L. S. Harahap, “Identifikasi Tingkat Kematangan Buah Tomat Melalui Warna dengan Penerapan Jaringan Saraf Tiruan ( JST ),” Polyg. J. Ilmu Komput. dan Ilmu Pengetah. Alam, vol. 2, no. 6, pp. 71–78, 2024, doi: https://doi.org/10.62383/polygon.v2i6.292.

Y. Akbar, D. Iskandar, and F. C. W. S, “Klasifikasi Tingkat Kematangan Buah Nanas Berdasarkan Tekstur Gray Level CO- Occurencematrix dengan Metode Support Vector Machine,” Remik Ris. dan E-Jurnal Manaj. Inform. Komput., vol. 8, no. 1, pp. 371–382, 2024, doi: http://doi.org/10.33395/remik.v8i1.13403.

U. Khultsum and A. Subekti, “Penerapan Algoritma Random Forest dengan Kombinasi Ekstraksi Fitur Untuk Klasifikasi Penyakit Daun Tomat,” J. Media Inform. Budidarma, vol. 5, no. 1, pp. 186–193, 2021, doi: 10.30865/mib.v5i1.2624.

A. P. Argadianata, D. A. Fatah, and H. Sukri, “Klasifikasi Kualitas Buah Apel Menggunakan Metode Random Forest,” JATI (Jurnal Mhs. Tek. Inform., vol. 9, no. 2, pp. 2016–2022, 2025, doi: 10.36040/jati.v9i2.12854.

S. Lina, M. Sitio, S. Kom, and M. Kom, Machine Learning Berbasis Pohon Keputusan: Implementasi Decision Tree dan Random Forest di Google Colab. Cilacap: Media Pustaka Indo, 2026.

D. Rofianto, K. Amaliah, T. K. Khoerunissa, and M. Fitri, “Metode Ekstraksi Fitur dan Klasifikasi Visual Untuk Identifikasi Kualitas Pangan Lokal Berbasis Citra Digital,” J. Ilmu Komput. Agri-Informatika, vol. 12, no. 2, pp. 178–188, 2025, doi: 10.29244/jika.12.2.178-188.

E. D. Badebo and W. W. Eyesa, “Effect of Harvesting Stage and Types of Storage on the Quality and Shelf- Life of Tomato Fruit,” J. Agric. Sci. Food Res., vol. 13, no. 4, pp. 1–8, 2022, doi: 10.35248/2593-9173.22.13.501.

W. Deglas, “Pengaruh Suhu Penyimpanan dan Tingkat Kematangan terhadap Umur Simpan Buah Tomat,” J. Ilmu Pangan dan Has. Pertan., vol. 7, no. 1, pp. 49–60, 2023, doi: 10.26877/jiphp.v7vi1i.15460.

R. Fertiasari, S. Arditian, S. Yuliani, N. Nurhafiza, and P. Aryasari, “Perubahan Fisiologi Buah Tomat (Solanum Lycopersicum) terhadap Suhu Kamar dan Umur Simpan yang Memengaruhi Mutu,” J. Food Secur. Agroindustry, vol. 1, no. 3, pp. 97–104, 2023, doi: 10.58184/jfsa.v1i3.125.

R. Ramli, Evanita, and A. A. Riadi, “Classification of Rice Leaf Diseases Using Support Vector Machine with HSV and GLCM-Based Feature Extraction,” J. Appl. Informatics Comput., vol. 9, no. 5, pp. 2329–2337, 2025, doi: https://doi.org/10.30871/jaic.v9i5.10403.

A. Septiarini, H. Hamdani, Y. Khoemah, N. Puspitasari, and M. Wati, “Segmentasi Tomat Menggunakan Metode K-Means Clustering dan Pengolahan Citra Digital,” in Seminar Nasional Corisindo, 2022, pp. 113–118.

R. Dijaya, Buku Ajar Pengolahan Citra Digital, vol. 11, no. 1. Sidoarjo, 2023. [Online]. Available: https://doi.org/10.21070/2023/978-623-464-075-5

H. P. Hadi and E. H. Rachmawanto, “Ekstraksi Fitur Warna dan GLCM pada Algoritma KNN untuk Klasifikasi Kematangan Rambutan,” JIP (Jurnal Inform. Polinema), vol. 8, no. 3, pp. 63–68, 2022, doi: https://doi.org/10.33795/jip.v8i3.949.

R. P. Putra, J. Jumadi, and D. Lianda, “Pengolahan Citra Digital Untuk Mengidentifikasi Tingkat Kematangan Buah Kelapa Sawit Berdasarkan Warna RGB Dan HSV dengan Menggunakan Metode Self Organizing Map ( SOM ),” J. Media Infotama, vol. 20, no. 1, pp. 98–105, 2024, doi: 10.34128/jsi.v6i2.242.

B. Eden, W. Asrul, and M. Jumarlis, “Automated Ripeness Detection of Oil Palm Fruit Using a Hybrid GLCM-HSV-KNN Model,” J. RESTI (Rekayasa Sist. Teknol. Inf.), vol. 9, no. 5, pp. 1066–1077, 2025, doi: https://doi.org/10.29207/resti.v9i5.6683.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Klasifikasi Mutu Tomat dan Potensi Umur Simpan Berdasarkan Fitur Warna-Tekstur Menggunakan Random Forest

Dimensions Badge
Article History
Submitted: 2026-06-13
Published: 2026-07-05
Abstract View: 0 times
How to Cite
Noviyanti, I., Wijayanti, E., & Evanita, E. (2026). Klasifikasi Mutu Tomat dan Potensi Umur Simpan Berdasarkan Fitur Warna-Tekstur Menggunakan Random Forest. Journal of Information System Research (JOSH), 7(4). https://doi.org/10.47065/josh.v7i4.10295
Section
Articles