Herbal Leaf Classification Based on Shape, Color, and Texture Features Integration Using SVM and K-NN Algorithms

Authors

  • Wargijono Utomo Faculty of Engineering, Krisnadwipayana University, Indonesia
  • Nur Sucahyo Faculty of Technology, Swadharma Institute of Technology and Business, Indonesia
  • Ike Kurniati Faculty of Technology, Swadharma Institute of Technology and Business, Indonesia
  • Andy Dharmalau Faculty of Technology, Swadharma Institute of Technology and Business, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.4.5573

Keywords:

Herbal Leaf Classification, Machine Learning, SVM, KNN, Feature Extraction, shape (metric, eccentricity), color (HSV), texture (GLCM)

Abstract

Manual identification of herbal leaves often leads to errors due to visual similarities between species, variations in lighting, and morphological differences that are difficult to observe consistently. These conditions make the identification process subjective, inefficient, and less accurate, so a more reliable automated approach is needed. This study aims to evaluate and compare the performance of the Support Vector Machine (SVM) and K-Nearest Neighbor (K-NN) algorithms in classifying five types of herbal leaves using a combination of shape, color, and texture features. The dataset consists of 1,000 herbal leaf images obtained from various sources and processed through preprocessing, feature extraction of shape (metric, eccentricity), color (HSV), and texture (GLCM). The data were then normalized, divided by a ratio of 80:20, and optimized using hyperparameter tuning. Evaluation was carried out using accuracy, precision, recall, and F1-score metrics. The test results showed that SVM achieved the highest accuracy of 94.48%, outperforming K-NN which achieved an accuracy of 92.18%. SVM also showed more stable performance in handling complex feature combinations. This research contributes by presenting an effective shape–color–texture feature-based integrative classification framework for herbal leaf identification, as well as strengthening the application of machine learning in the development of plant identification systems in the field of informatics, both for desktop, web, and mobile applications.

Downloads

Download data is not yet available.

References

T. Estiasih et al., “Indonesian traditional herbal drinks: diversity, processing, and health benefits,” Journal of Ethnic Foods, vol. 12, no. 1, p. 7, 2025, doi: 10.1186/s42779-025-00267-5.

M. Shehadeh, G. Suaifan, and A. Abu-Odeh, “Plants Secondary Metabolites as Blood Glucose-Lowering Molecules,” Molecules, vol. 26, no. 14, p. 4333, 2021, doi: 10.3390/molecules26144333.

M. Cedillo-Cortezano, L. Martinez-Cuevas, J. López, I. López, S. Escutia-Perez, and V. Petricevich, “Use of Medicinal Plants in the Process of Wound Healing: A Literature Review,” Pharmaceuticals, vol. 17, no. 3, p. 303, 2024, doi: 10.3390/ph17030303.

E. A. Sianipar, “The Potential of Indonesian Traditional Herbal Medicine as Immunomodulatory Agents: A Review,” International Journal of Pharmaceutical Sciences and Research, vol. 12, no. 10, pp. 5229–5237, 2021, doi: 10.13040/IJPSR.0975-8232.12(10).5229-37.

E. Susilawati and E. Al., “Pharmacology activity, toxicity, and clinical trials of Erythrina genus plants (Fabaceae): an evidence-based review,” Frontiers in Pharmacology, vol. 14, 2023, doi: 10.3389/fphar.2023.1281150.

Reshma and K. P. S. Attwal, “A Review on Medicinal Plant identification through Leaf Image,” in 2024 Sixth International Conference on Computational Intelligence and Communication Technologies (CCICT), 2024, pp. 27–33. doi: 10.1109/CCICT62777.2024.00015.

S. Naeem et al., “The Classification of Medicinal Plant Leaves Based on Multispectral and Texture Feature Using Machine Learning Approach,” Agronomy, vol. 11, no. 2, 2021, doi: 10.3390/agronomy11020263.

Y. Qiao, “Leaf Identification Based on Convolutional Neural Networks and Data Augmentation,” Applied and Computational Engineering, vol. 164, pp. 20–27, 2025, doi: 10.54254/2755-2721/2025.po26095.

S. Gowthaman and A. Das, “Plant Leaf Identification Using Feature Fusion of Wavelet Scattering Network and CNN With PCA Classifier,” IEEE Access, vol. 13, pp. 11594–11608, 2025, doi: 10.1109/ACCESS.2025.3528992.

P. Johari, N. Arifin, M. Muzaki, and M. Utama, “Corn Leaf Diseases Classification Using CNN with GLCM, HSV, and L*a*b* Features,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 2, pp. 709–722, 2025, doi: 10.52436/1.jutif.2025.6.2.4345.

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, p. 639, 2023, doi: 10.3390/agronomy13030639.

C. Yang, “Plant Leaf Recognition by Integrating Shape and Texture Features,” Pattern Recognition, vol. 112, p. 107809, 2021, doi: 10.1016/j.patcog.2020.107809.

G. Sharma, A. Kumar, N. Gour, A. Saini, A. Upadhyay, and A. Kumar, “Cognitive Framework and Learning Paradigms of Plant Leaf Classification Using Artificial Neural Network and Support Vector Machine,” Journal of Experimental & Theoretical Artificial Intelligence, vol. 36, no. 4, pp. 585–610, 2022, doi: 10.1080/0952813x.2022.2096698.

P. 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.

E. Mangaoang and J. Samaniego, “Leaf-based Classification of Important Indigenous Tree Species by Different Feature Extraction Techniques and Selected Classification Algorithms,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 1, pp. 34–41, 2023, doi: 10.14569/ijacsa.2023.0140104.

P. Zer, F. Tambunan, R. Rosnelly, and W. Wanayumini, “Comparison of Tomato Leaf Disease Classification Accuracy Using Support Vector Machine and K-Nearest Neighbor Methods,” SinkrOn, vol. 7, no. 2, pp. 939–947, 2023, doi: 10.33395/sinkron.v8i2.12195.

N. Said, H. Madzin, S. Ali, and N. Beng, “Comparison of color-based feature extraction methods in banana leaf diseases classification using SVM and K-NN,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 24, no. 3, pp. 1523–1533, 2021, doi: 10.11591/ijeecs.v24.i3.pp1523-1533.

P. Kaur and S. Singh, “Classification of Herbal Plant and Comparative Analysis of SVM and KNN Classifier Models on the Leaf Features Using Machine Learning,” in Soft Computing for Intelligent Systems, 2021, pp. 227–239. doi: 10.1007/978-981-16-1048-6_17.

K. Islam, A. Milas, T. Abeysinghe, and Q. Tian, “Integrating UAV-Derived Information and WorldView-3 Imagery for Mapping Wetland Plants in the Old Woman Creek Estuary, USA,” Remote Sensing, vol. 15, no. 4, p. 1090, 2023, doi: 10.3390/rs15041090.

L. Tan, J. Lu, and H. Jiang, “Tomato Leaf Diseases Classification Based on Leaf Images: A Comparison between Classical Machine Learning and Deep Learning Methods,” AgriEngineering, vol. 3, no. 3, pp. 542–558, 2021, doi: 10.3390/agriengineering3030035.

V. Gautam et al., “A lightweight deep learning method for medicinal leaf image classification using feature fusion,” Scientific Reports, vol. 15, no. 34417, 2025, doi: 10.1038/s41598-025-17436-w.

B. Khan et al., “Bayesian optimized multimodal deep hybrid learning approach for tomato leaf disease classification,” Scientific Reports, vol. 14, no. 21525, 2024, doi: 10.1038/s41598-024-72237-x.

A. Kumar, S. Chakravarthi, and S. Babu, “Multiclass Support Vector Machine Based Plant Leaf Diseases Identification from Color, Texture and Shape Features,” in 2020 Third International Conference on Smart Systems and Inventive Technology (ICSSIT), 2020, pp. 1220–1226. doi: 10.1109/icssit48917.2020.9214142.

M. Keivani, J. Mazloum, E. Sedaghatfar, and M. Tavakoli, “Automated Analysis of Leaf Shape, Texture, and Color Features for Plant Classification,” Traitement du Signal, vol. 37, no. 1, pp. 17–28, 2020, doi: 10.18280/ts.370103.

N. Rani, B. R, I. Jacob, P. R, B. Bj, and A. Prabhu, “CISCS: Classification of inter-class similarity based medicinal plant species groups with machine learning,” MethodsX, vol. 15, no. 103652, pp. 2215–0161, 2025, doi: 10.1016/j.mex.2025.103652.

H. Putra, M. Ma’ady, and B. Lidiawaty, “Experimenting Data Augmentation Using Image Data Generator and OpenCV for Melon Leaf Diseases Classification,” in 2025 International Seminar on Intelligent Technology and Its Applications (ISITIA), 2025, pp. 625–630. doi: 10.1109/isitia66279.2025.11137456.

T. Nguyen, T. Nguyen, and B. Ngo, “A VGG-19 Model with Transfer Learning and Image Segmentation for Classification of Tomato Leaf Disease,” AgriEngineering, vol. 4, no. 4, pp. 871–887, 2022, doi: 10.3390/agriengineering4040056.

Y. Ferdinand and W. Maki, “Broccoli leaf diseases classification using support vector machine with particle swarm optimization based on feature selection,” International Journal of Advances in Intelligent Informatics, vol. 8, no. 3, pp. 337–348, 2022, doi: 10.26555/ijain.v8i3.951.

B. Patil and V. Burkpalli, “Performance Evaluation of the Classifiers Based on Features from Cotton Leaf Images,” Multimedia Tools and Applications, vol. 84, no. 30, p. 37167, 2025, doi: 10.1007/s11042-025-20670-z.

G. Saleem, M. Akhtar, N. Ahmed, and W. Qureshi, “Automated Analysis of Visual Leaf Shape Features for Plant Classification,” Computers and Electronics in Agriculture, vol. 157, pp. 270–280, 2019, doi: 10.1016/j.compag.2018.12.038.

R. Perez-Udell, A. Udell, and S. Chang, “An automated pipeline for supervised classification of petal color from citizen science photographs,” Applications in Plant Sciences, vol. 11, no. 1, p. e11505, 2023, doi: 10.1002/aps3.11505.

N. Iqbal, R. Mumtaz, U. Shafi, and S. M. H. Zaidi, “Gray Level Co-occurrence Matrix (GLCM) Texture Based Crop Classification Using Low Altitude Remote Sensing Platforms,” PeerJ Computer Science, vol. 7, p. e536, 2021.

H. Hamdani, A. Septiarini, N. Puspitasari, A. Tejawati, and F. Alameka, “The color features and k-nearest neighbor algorithm for classifying betel leaf image,” IAES International Journal of Robotics and Automation (IJRA), vol. 13, no. 3, pp. 330–337, 2024, doi: 10.11591/ijra.v13i3.pp330-337.

A. Amriana, A. Ilham, A. Achmad, and Y. Yusran, “Optimization of Herbal Plant Classification Using Hybrid Method Particle Swarm Optimization With Support Vector Machine,” JOIV : International Journal on Informatics Visualization, vol. 9, no. 1, pp. 396–406, 2025, doi: 10.62527/joiv.9.1.2576.

I. Raji, K. Thyagharajan, T. Vignesh, and G. Kalaiarasi, “Classifying Indian Medicinal Leaf Species Using LCFN-BRNN Model,” KSII Transactions on Internet and Information Systems, vol. 15, no. 10, pp. 3708–3728, 2021, doi: 10.3837/tiis.2021.10.013.

S. Kiran and D. Chandrappa, “Plant Leaf Disease Detection Using Efficient Image Processing and Machine Learning Algorithms,” Journal of Robotics and Control (JRC), vol. 4, no. 6, pp. 840–848, 2023, doi: 10.18196/jrc.v4i6.20342.

Y. Xu et al., “Small-Sample Authenticity Identification and Variety Classification of Anoectochilus roxburghii (Wall.) Lindl. Using Hyperspectral Imaging and Machine Learning,” Plants, vol. 14, no. 8, p. 1177, 2025, doi: 10.3390/plants14081177.

N. Ahmad, H. Asif, G. Saleem, M. Younus, S. Anwar, and M. Anjum, “Leaf Image-Based Plant Disease Identification Using Color and Texture Features,” Wireless Personal Communications, vol. 121, pp. 1139–1168, 2021, doi: 10.1007/s11277-021-09054-2.

P. Sekharamantry, M. Rao, Y. Srinivas, and A. Uriti, “PSR-LeafNet: A Deep Learning Framework for Identifying Medicinal Plant Leaves Using Support Vector Machines,” Big Data and Cognitive Computing, vol. 8, no. 12, p. 176, 2024, doi: 10.3390/bdcc8120176.

Y. Y. S. Rahayu, T. Araki, and D. Rosleine, “Factors Affecting the Use of Herbal Medicines in the Universal Health Coverage System in Indonesia,” Journal of Ethnopharmacology, vol. 260, p. 112974, 2020, doi: 10.1016/j.jep.2020.112974.

M. Arif et al., “Phytochemical Analysis of Curry Leaf Extract (Murraya koenigii L.) as a Potential Animal Feed and Medicinal Ingredient,” Pharmacognosy Journal, vol. 16, no. 2, pp. 471–477, 2024, doi: 10.5530/pj.2024.16.75.

N. M. D. Nayaka et al., “Piper betle (L): Recent Review of Antibacterial and Antifungal Properties, Safety Profiles, and Commercial Applications,” Molecules, vol. 26, no. 8, p. 2321, 2021, doi: 10.3390/molecules26082321.

N. Kurniawan, R., P. Saputra, S., and N. Kresnapati, “Effectiveness of Bay Leaf Decoction (Syzygium polyanthum) on Reducing Blood Glucose Levels in Paok Motong, Masbagik, East Lombok,” Current Biochemistry, vol. 10, no. 2, pp. 52–61, 2024, doi: 10.29244/cb.10.2.2.

H. Huynh, P. Nargotra, H. Wang, C. Shieh, Y. Liu, and C. Kuo, “Bioactive Compounds from Guava Leaves (Psidium guajava L.): Characterization, Biological Activity, Synergistic Effects, and Technological Applications,” Molecules, vol. 30, no. 6, p. 1278, 2025, doi: 10.3390/molecules30061278.

S. Fitrasyah, S. Ningsih, N. Rahman, A. Rakhman, A. Ariani, and U. Aiman, “Phytochemical compounds, vitamin C levels, and antioxidant activity of soursop leaves (Annona muricata Linn) tea powder under various drying durations,” Nutr. Clínica y Dietética Hosp., vol. 45, no. 1, pp. 391–399, 2025, doi: 10.12873/451fitrasyah.

P. Kashyap et al., “Recent Advances in Drumstick (Moringa oleifera) Leaves Bioactive Compounds: Composition, Health Benefits, Bioaccessibility, and Dietary Applications,” Antioxidants, vol. 11, no. 2, p. 402, 2022, doi: 10.3390/antiox11020402.

C. Zhang, Y. Liu, and N. Tie, “Forest Land Resource Information Acquisition with Sentinel-2 Image Utilizing Support Vector Machine, K-Nearest Neighbor, Random Forest, Decision Trees and Multi-Layer Perceptron,” Forests, vol. 14, no. 2, p. 254, 2023, doi: 10.3390/f14020254.

Additional Files

Published

2026-08-15

How to Cite

[1]
W. . Utomo, N. Sucahyo, I. Kurniati, and A. Dharmalau, “Herbal Leaf Classification Based on Shape, Color, and Texture Features Integration Using SVM and K-NN Algorithms ”, J. Tek. Inform. (JUTIF), vol. 7, no. 4, pp. 3384–3397, Aug. 2026.