A COMPUTER VISION APPROACH FOR CLASSIFYING CALIFORNIA PAPAYA RIPENESS USING K-NEAREST NEIGHBOR

Authors

  • Tyas Wulandari Universitas Tiga Serangkai, Indonesia
  • Iwan Ady Prabowo Universitas Tiga Serangkai, Indonesia
  • Yustina Retno Wahyu Utami Universitas Tiga Serangkai, Indonesia
  • Bayu Dwi Raharja Universitas Tiga Serangkai
  • Hendro Wijayanto Universitas Tiga Serangkai

DOI:

https://doi.org/10.30646/tikomsin.v14i1.1091

Keywords:

California papaya, ripeness classification, image processing, HSV, K-Nearest Neighbor

Abstract

Determining the ripeness level of California papaya is important for harvest decisions, sorting, distribution, and spoilage control. In practice, ripeness identification is still commonly performed visually and is therefore subjective. This study aims to develop a digital image-based classification system for California papaya ripeness using the K-Nearest Neighbor (K-NN) algorithm with Hue and Saturation features in the Hue Saturation Value (HSV) color space. The dataset consists of 90 primary images, divided into 60 training images and 30 testing images, with four ripeness classes: unripe, half-ripe, ripe, and rotten. All images were captured using a Xiaomi Mi A2 Lite smartphone and cropped to 1436 × 1000 pixels. Classification was conducted using Euclidean distance. The value of k was selected empirically through trial and error in the original study, and k = 9 was retained because it produced the most stable result on the available data while reducing the potential for class ties. The evaluation produced 22 correct predictions out of 30 test images, resulting in an accuracy of 73.33%. This revised manuscript strengthens the methodological reporting by clarifying parameter selection, documenting the data distribution and providing a literature-based comparison with alternative methods, such as Support Vector Machine (SVM) and Convolutional Neural Network (CNN). The findings suggest that K-NN with HSV features remains a feasible, low-cost baseline, although its performance should be improved through larger datasets, per-class evaluation reporting, and head-to-head comparisons on the same dataset.

References

H. Miftah et al., “Implementasi Rantai Pasok Pepaya California Yang Berpihak Pada Petani Gabungan Kelompok Tani (Gapoktan),†Jurnal Qardhul Hasan, vol. 8, no. 1, pp. 20–25, Apr. 2022, doi: http://dx.doi.org/10.20961/agritexts.v46i2.67123.

K. Utama Putra, W. Yosfand, and A. Ramadhanu, “Klasifikasi Kematangan Buah Pepaya Berdasarkan Warna Menggunakan Convolutional Neural Network,†JITSI : Jurnal Ilmiah Teknologi Sistem Informasi, vol. 6, no. 1, pp. 1–6, Mar. 2025, doi: 10.62527/jitsi.6.1.283.

L. A. Wardani, G. Pasek, S. Wijaya, and F. Bimantoro, “Klasifikasi Jenis Dan Tingkat Kematangan Buah Pepaya Berdasarkan Fitur Warna, Tekstur Dan Bentuk Menggunakan Support Vector Machine,†Jurnal Teknologi Informasi, Komputer dan Aplikasinya, vol. 4, no. 1, pp. 75–85, Mar. 2022, doi: 10.29303/JTIKA.V4I1.171.

M. Rizzo, M. Marcuzzo, A. Zangari, A. Gasparetto, and A. Albarelli, “Fruit ripeness classification: A survey,†Mar. 01, 2023, KeAi Communications Co. doi: 10.1016/j.aiia.2023.02.004.

Z. F. R. Ahmed, A. K. Abdalla, N. Kaur, and F. Wu, “Insights into recent developments and obstacles in automated fruit ripeness classification,†Apr. 01, 2026, KeAi Communications Co. doi: 10.1016/j.grets.2025.100302.

R. Saktriawindarta and K. Kusrini, “Metode Klasifikasi Tingkat Kematangan Buah dan Sayuran : Tinjauan Sistematis,†G-Tech: Jurnal Teknologi Terapan, vol. 8, no. 4, pp. 2344–2354, Oct. 2024, doi: 10.70609/gtech.v8i4.5067.

Ellif, S. H. Sitorus, and R. Hidayati, “Klasifikasi Kematangan Pepaya Menggunakan Ruang Warna HSV Dan Metode Naive Bayes Classifier,†Jurnal Komputer dan Aplikasi, vol. 09, no. 01, pp. 66–75, 2021, doi: https://doi.org/10.26418/coding.v9i01.45906.

N. Nurmalasari, Y. A. Setiawan, W. Astuti, M. R. R. Saelan, S. Masturoh, and T. Haryanti, “Classification for Papaya Fruit Maturity Level With Convolutional Neural Network,†Jurnal Riset Informatika, vol. 5, no. 3, pp. 331–338, Jun. 2023, doi: 10.34288/jri.v5i3.225.

M. Sayyidin, H. #1, and I. Muhimmah, “Aplikasi Pendeteksi Tingkat Kematangan Pepaya menggunakan Metode Convolutional Neural Network (CNN) Berbasis Android,†JEPIN (Jurnal Edukasi dan Penelitian Informatika), vol. 10, no. 1, pp. 162–170, Apr. 2024.

R. M. Maito, M. Qamal, and Fajriana, “Identification of Papaya Ripeness Using the Support Vector Machine Algorithm,†International Journal of Engineering, Science and Information Technology, vol. 5, no. 1, pp. 272–277, 2025, doi: 10.52088/ijesty.v5i1.710.

N. Aherwadi, U. Mittal, J. Singla, N. Z. Jhanjhi, A. Yassine, and M. S. Hossain, “Prediction of Fruit Maturity, Quality, and Its Life Using Deep Learning Algorithms,†Electronics (Switzerland), vol. 11, no. 24, Dec. 2022, doi: 10.3390/electronics11244100.

N. Ismail and O. A. Malik, “Real-time visual inspection system for grading fruits using computer vision and deep learning techniques,†Information Processing in Agriculture, vol. 9, no. 1, pp. 24–37, Mar. 2022, doi: 10.1016/j.inpa.2021.01.005.

F. Xiao, H. Wang, Y. Li, Y. Cao, X. Lv, and G. Xu, “Object Detection and Recognition Techniques Based on Digital Image Processing and Traditional Machine Learning for Fruit and Vegetable Harvesting Robots: An Overview and Review,†Agronomy, vol. 13, no. 3, pp. 1–29, Mar. 2023, doi: 10.3390/agronomy13030639.

Downloads

Additional Files

Published

2026-04-30

Citation Check