EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-SA 4.0

Classification of Herbal Plants Based on Leaf Images Using Gray Level Co-Occurrence Matrix and K-Nearest Neighbor

Fahmi Nur Alimsyah Purba, Fathi Athallah Z, Alfin Alfarizi, Lailan Sofinah Harahap

Journal of Artificial Intelligence and Engineering Applications (JAIEA) · 15.06.2026 · 5 (3) · 3864-3868

DOI: 10.59934/jaiea.v5i3.2291 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Artificial Intelligence and Engineering Applications (JAIEA), online erschienen am 15.06.2026. Verfasst von Fahmi Nur Alimsyah Purba und 3 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-SA 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Herbal plants have long been used as traditional medicine. However, many people struggle to tell different herbal leaves apart because they look quite similar. This study tries to build a system that can recognize two types of herbal leaves, Moringa and Katuk, simply from their photos. We used GLCM to extract texture features from the leaves, then classified them using KNN. The dataset came from Kaggle, with 480 leaf images in total. Before processing, we cropped the images, resized them to 256x256 pixels, and converted them to grayscale. GLCM features were taken from four angles (0°, 45°, 90°, 135°) and then averaged. This gave us four texture values: contrast, correlation, energy, and homogeneity. We tested KNN with k values from 1 to 15 and five different distance metrics. The best result we got was 94% accuracy, using Manhattan distance with k=1. This system could help everyday people identify medicinal plants more easily without needing lab tests.

Zitieren

APA

Purba, F. N. A., Z, F. A., Alfarizi, A., & Harahap, L. S. (2026). Classification of Herbal Plants Based on Leaf Images Using Gray Level Co-Occurrence Matrix and K-Nearest Neighbor. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 5(3), 3864-3868. https://doi.org/10.59934/jaiea.v5i3.2291

Vancouver

Purba FNA, Z FA, Alfarizi A, Harahap LS. Classification of Herbal Plants Based on Leaf Images Using Gray Level Co-Occurrence Matrix and K-Nearest Neighbor. Journal of Artificial Intelligence and Engineering Applications (JAIEA). 2026;5(3):3864-3868. doi:10.59934/jaiea.v5i3.2291

BibTeX
@article{Purba2026,
  author = {Purba, Fahmi Nur Alimsyah and Z, Fathi Athallah and Alfarizi, Alfin and Harahap, Lailan Sofinah},
  title = {Classification of Herbal Plants Based on Leaf Images Using Gray Level Co-Occurrence Matrix and K-Nearest Neighbor},
  journal = {Journal of Artificial Intelligence and Engineering Applications (JAIEA)},
  year = {2026},
  volume = {5},
  number = {3},
  pages = {3864--3868},
  doi = {10.59934/jaiea.v5i3.2291}
}
Kostenlos starten →