The Journal of Algorithmic Digital Engineering and Networks (JADEN)
Vol. 1 No. 1 (2025): The Journal of Algorithmic Digital Engineering and Networks

Feature-Based Pistachio Classification: A 28-Dimensional Dataset with KNN

Steven Alexander Pasaribu Pasaribu (Universitas Katolik Santo Thomas)
Reza permana Olivera Simbolon (Universitas Katolik Santo Thomas)
Bonfilio Delatersia Nainggolan (Universitas Katolik Santo Thomas)



Article Info

Publish Date
06 Jul 2025

Abstract

Pistachio (Pistacia vera L.) is a high-value horticultural crop in which accurate variety classification is essential for quality assurance and trade. Conventional classification methods relying on visual inspection are subjective, labor-intensive, and inadequate for large-scale industrial deployment. This study evaluates the effectiveness of the k-Nearest Neighbors (KNN) algorithm for pistachio variety classification using a feature-based dataset comprising 2,148 samples and 28 morphological and color descriptors. Experimental results indicate that the optimized KNN configuration (k = 5, Euclidean distance metric, distance-based weighting) attained a test accuracy of 97% and a macro F1-score of 0.97, while both ROC-AUC and average precision values approached 0.99. The confusion matrix demonstrated only marginal misclassifications, confirming the high discriminative capability of the handcrafted features. These findings underscore that feature-based approaches remain competitive with, and in some contexts superior to, deep learning methods by providing interpretable, computationally efficient, and robust solutions. The proposed model offers practical potential for integration into industrial pistachio sorting systems and broader agricultural informatics applications, supporting scalable and cost-effective automation in crop quality assessment

Copyrights © 2025






Journal Info

Abbrev

jaden

Publisher

Subject

Computer Science & IT Control & Systems Engineering

Description

The Journal of Algorithmic Digital Engineering and Networks (JADEN) is a scientific journal committed to publishing high-quality research articles in the fields of algorithmic studies, digital engineering, and network systems. Manuscripts submitted through the Online Journal System (OJS) must align ...