Classification of Herbal Leaves Using Support Vector Machine (SVM)
DOI:
https://doi.org/10.59934/jaiea.v5i3.2221Keywords:
Classification, Confusion Matrix, Herbal Leaves, RBF Kernel, Support Vector Machine (SVM)Abstract
Indonesia is a country with high biodiversity, including various types of herbal leaves with potential use as traditional medicine. Manual identification of herbal leaves often encounters challenges due to morphological similarities among species and the limited availability of experts, thereby necessitating a fast and accurate technology-based classification method. This study aims to classify 10 types of herbal leaves using the Support Vector Machine (SVM) algorithm with a Radial Basis Function (RBF) kernel. The dataset consists of 3,500 leaf images (350 images per class), from which color features (HSV), texture features (Gray Level Co-occurrence Matrix/GLCM), and shape features (area, perimeter, and aspect ratio) were extracted. The research process includes preprocessing, feature extraction, data splitting into training and testing sets, model training, and performance evaluation. Evaluation was conducted using a confusion matrix, with accuracy as the primary metric due to the balanced class distribution. Precision, recall, and F1-score were employed as supporting evaluation metrics. The results indicate that the SVM model with an RBF kernel successfully classified the 10 types of herbal leaves with an accuracy of 81.29%. Based on per-class analysis, the highest performance was achieved in the Papaya class with an F1-score of 90.00%, followed by Jambu Biji (89.36%) and Pandan (87.14%). In contrast, the lowest performance was observed in the Aloe Vera class with an F1-score of 65.71% and Lime with 70.00%. The model achieved an average precision of 81.16%, recall of 80.73%, and F1-score of 80.94%. Misclassifications primarily occurred among classes with high morphological similarity, such as Aloe Vera, which was frequently misclassified as Pandan (9 cases) and Basil (5 cases). The system has been implemented as a Graphical User Interface (GUI) application that allows users to upload leaf images and obtain classification results along with information regarding their herbal benefits within 1–2 seconds.
Downloads
References
S. Talib, S. Sudin, and M. Dzikrullah Suratin, “Penerapan Metode Support Vector Machine (Svm) Pada Klasifikasi Jenis Cengkeh Berdasarkan Fitur Tekstur Daun,” PROSISKO: Jurnal Pengembangan Riset dan Observasi Sistem Komputer, vol. 11, no. 1, pp. 26–34, 2024, doi: 10.30656/prosisko.v11i1.7911.
A. Arifin, J. Hendyli, and D. E. Herwindiati, “Klasifikasi Tanaman Obat Herbal Menggunakan Metode Support Vector Machine,” Computatio : Journal of Computer Science and Information Systems, vol. 5, no. 1, p. 25, 2021, doi: 10.24912/computatio.v1i1.12811.
S. Harahap, “Alkaloid and Flavonoid Phytochemical Screening on Balakka Leaves (Phyllanthus Emblica L.),” Formosa Journal of Science and Technology, vol. 2, no. 8, pp. 2069–2082, 2023, doi: 10.55927/fjst.v2i8.5691.
W. S. Sari and C. A. Sari, “Klasifikasi Bunga Mawar Menggunakan Knn Dan Ekstraksi Fitur Glcm Dan Hsv,” Skanika, vol. 5, no. 2, pp. 145–156, 2022, doi: 10.36080/skanika.v5i2.2951.
Muntiari Novita Ranti and Hanif Kharis Hudaiby, “Klasifikasi Penyakit Kanker Payudara Menggunakan Perbandingan Algoritma Machine Learning,” Jurnal Ilmu Komputer dan Teknologi, vol. 3, no. 1, pp. 1–6, 2022, [Online]. Available: http://creativecommons.org/licences/by/4.0/%0Ahttp://ejournal.uhb.ac.id/index.php/IKOMTI
E. Retnoningsih and R. Pramudita, “Mengenal Machine Learning Dengan Teknik Supervised dan Unsupervised Learning Menggunakan Python,” BINA INSANI ICT JOURNAL, vol. 7, no. 2, pp. 156–165, 2020, [Online]. Available: https://www.python.org/
P. R. Prayoga, P. Purnawansyah, T. Hasanuddin, and H. Darwis, “Klasifikasi Daun Herbal Menggunakan K-Nearest Neighbor dan Support Vector Machine dengan Fitur Fourier Descriptor,” Edumatic: Jurnal Pendidikan Informatika, vol. 7, no. 1, pp. 160–168, 2023, doi: 10.29408/edumatic.v7i1.17521.
Milton Dapamudang, Fajar Hariadi, and Raynesta Mikaela Indri Malo, “Deteksi Pose Semaphore Berbasis Deep Learning Menggunakan Metode Multi-Layer Perceptron dan MediaPipe,” Jurnal ilmiah Sistem Informasi dan Ilmu Komputer, vol. 5, no. 2, pp. 405–423, 2025, doi: 10.55606/juisik.v5i2.1386.
M. N. Fahmi, “Implementasi Mechine Learning menggunakan Python Library: Scikit-Learn (Supervised dan Unsupervised Learning),” Sains Data Jurnal Studi Matematika dan Teknologi, vol. 1, no. 2, pp. 87–96, Dec. 2023, doi: 10.52620/sainsdata.v1i2.31.
M. Meiriyama, S. Devella, and S. M. Adelfi, “Klasifikasi Daun Herbal Berdasarkan Fitur Bentuk dan Tekstur Menggunakan KNN,” JATISI (Jurnal Teknik Informatika dan Sistem Informasi), vol. 9, no. 3, pp. 2573–2584, 2022, doi: 10.35957/jatisi.v9i3.2974.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








