Application of K-Nearest Neighbor Method and Support Vector Machine for Noni Fruit Ripeness Classification

Siti Gayatri Hehanussa (1) , Sony Hartono Wijaya (1) , Toto Haryanto (1)
(1) School of Science Data, Mathematics, and Informatics, Faculty of Mathematics and Natural Sciences, IPB University, Indonesia

Abstract

Noni fruit (Morinda citrifolia) is one of Indonesia’s export commodities. It is available year-round and is well known for its numerous health benefits. Native to Southeast Asia, including Indonesia, noni fruit is widely used in traditional medicine. Typically, the ripeness of noni fruit is determined manually based on visual inspection, which can lead to subjective judgments and inconsistent results. Therefore, this study aims to develop a machine-learning model to classify the ripeness levels of noni fruit. The classification methods employed are K-Nearest Neighbor (KNN) and Support Vector Machine (SVM), utilizing Hue-Saturation-Intensity (HSI) color features and Local Binary Pattern (LBP) texture features. Experimental results show that the KNN algorithm outperforms the SVM algorithm in terms of classification accuracy. The highest accuracy achieved using KNN was 88.62% at k = 11, whereas the best accuracy obtained with SVM using a polynomial kernel was 87.80%, with parameters set to C = 0.1, Gamma = 1, Degree = 5, and coef0 = 1.0. These results were achieved using an 80:20 split ratio for training and testing data.

Full text article

Generated from XML file

Authors

Siti Gayatri Hehanussa
Sony Hartono Wijaya
sony@apps.ipb.ac.id (Primary Contact)
Toto Haryanto
Application of K-Nearest Neighbor Method and Support Vector Machine for Noni Fruit Ripeness Classification. (2025). Jurnal Ilmu Komputer Dan Agri-Informatika, 12(1), 25-37. https://doi.org/10.29244/jika.12.1.25-37

Article Details

How to Cite

Application of K-Nearest Neighbor Method and Support Vector Machine for Noni Fruit Ripeness Classification. (2025). Jurnal Ilmu Komputer Dan Agri-Informatika, 12(1), 25-37. https://doi.org/10.29244/jika.12.1.25-37

K-Nearest Neighbor for Phrases to Support the Decision to Find the Best Teacher

Januardi Nasir, Roni Saputra, Gustri Efendi, April Zahmi, Yasha Langitta Setiawan
Abstract View : 602
Download :864

Sentiment Analysis of Twitter Users on COVID-19 Vaccination Program in Indonesia using Support Vector Machine Algorithm

Qarry Atul Chairunnisa, Yeni Herdiyeni, Medria Kusuma Dewi Hardhienata, Julio Adisantoso
Abstract View : 1003
Download :1233