Herbal Plant Image Retrieval Using HSV Color Histogram and Random Forest Algorithm
Abstract
Herbal plants have significant importance in traditional medicine and are often useful in various natural health products. Visual identification of these plants is usually carried out based on the shape of the leaves and often encounters difficulties in distinguishing species due to similarities in shape and color. Therefore, a system capable of automatically and efficiently recognizing and searching for herbal plant images is needed. This study aims to implement an image search engine for herbal plants based on leaf color similarity. The method used includes color feature extraction using an HSV (Hue, Saturation, Value) histogram with an 8×8×8 bin configuration, resulting in a 512-dimensional feature vector. This histogram feature is then used as input for the Random Forest classification algorithm to group images based on the type of herbal plant. The dataset used consists of 450 herbal leaf images from 9 different classes, obtained through direct image capture using a digital camera. The test results indicates that the developed system is able to classify types of herbal plants with an accuracy of 95.56%. In addition, the computation time and system response during both training and testing processes are relatively fast and efficient. The advantage of this system lies in the simplicity of feature extraction while still being able to provide high classification performance. This system has great potential to be used as an educational tool as well as an initial component in the development of mobile applications for automatic herbal plant identification.
Keywords
Full Text:
PDFReferences
Chugh, H., Gupta, S., Garg, M., Gupta, D., Mohamed, H. G., Noya, I. D., Singh, A., & Goyal, N. (2022). An Image Retrieval Framework Design Analysis Using Saliency Structure and Color Difference Histogram. Sustainability (Switzerland), 14(16). https://doi.org/10.3390/su141610357
Falah, F., & Hadiwibowo, N. (2017). Species Identification of Traditional Medicine Plants for Women’s Health in East Kalimantan: Lesson Learned from Local Wisdom. Indonesian Journal of Forestry Research, 4, 49–68. https://doi.org/10.20886/ijfr.2017.4.1.49-68
Gonzalez, R. C., & Woods, R. E. (2018b). Digital Image Processing (4th ed.). Pearson.
Harjanti, T. W., Madenda, S., Harlan, J., & Lussiana, E. T. P. (2020). Study and Research on the Identification of the Leaves of Indonesian Herbal Medicines Using Manhattan Distance and Neural Network Algorithms. 2020 Fifth International Conference on Informatics and Computing (ICIC), 1–6. https://doi.org/10.1109/ICIC50835.2020.9288564
Iskandar, B. S., Iskandar, J., Partasasmita, R., & Irawan, B. (2020). Various medicinal plants traded in the village market of karangwangi village, southern cianjur, west java, indonesia. Biodiversitas, 21(9), 4440–4456. https://doi.org/10.13057/biodiv/d210963
Ismail, N., & Malik, O. A. (2022). Real-time visual inspection system for grading fruits using computer vision and deep learning techniques. Information Processing in Agriculture, 9(1), 24–37. https://doi.org/https://doi.org/10.1016/j.inpa.2021.01.005
Izquierdo-Horna, L., Kahhat, R., & Vázquez-Rowe, I. (2025). Applying random forest to forecast municipal solid waste generation from household fuel consumption. Resources, Conservation & Recycling Advances, 27, 200264. https://doi.org/https://doi.org/10.1016/j.rcradv.2025.200264
Jadid, N., Kurniawan, E., Himayani, C. E. S., Andriyani, Prasetyowati, I., Purwani, K. I., Muslihatin, W., Hidayati, D., & Tjahjaningrum, I. T. D. (2020). An ethnobotanical study of medicinal plants used by the Tengger tribe in Ngadisari village, Indonesia. PLOS ONE, 15(7), e0235886-. https://doi.org/10.1371/journal.pone.0235886
Li, Z., Lu, S., Yuan, Z., Hou, B., & Bian, J. (2025). Interactive Instance Search: User-Centered Enhanced Image Retrieval with Learned Perceptual Image Patch Similarity. Electronics (Switzerland), 14(9). https://doi.org/10.3390/electronics14091766
N.S Abinaya, D., S., & S., R. K. (2021). Naive Bayesian fusion based deep learning networks for multisegmented classification of fishes in aquaculture industries. Ecological Informatics, 61, 101248. https://doi.org/https://doi.org/10.1016/j.ecoinf.2021.101248
Pandey, A., & Vir, R. (2024). An Improved Approach to Classify Plant Disease using CNN and Random Forest. 2024 IEEE 3rd World Conference on Applied Intelligence and Computing (AIC), 795–805. https://doi.org/10.1109/AIC61668.2024.10730901
Priya, P., Kumar, D. A. N., Rithika, M., Sanjay, S., & Jeyamary, J. S. (2025). Enhancing Human Safety through Modesty Guard: A Comprehensive Review of OpenCV-Based Surveillance Systems. 2025 International Conference on Artificial Intelligence and Data Engineering (AIDE), 484–491. https://doi.org/10.1109/AIDE64228.2025.10987301
Rahayu, Y. Y. S., Araki, T., & Rosleine, D. (2020). Factors affecting the use of herbal medicines in the universal health coverage system in Indonesia. Journal of Ethnopharmacology, 260. https://doi.org/10.1016/j.jep.2020.112974
Vishnoi, V. K., Kumar, K., Kumar, B., & Bhutiani, R. (2024). A stacking ensemble machine learning based approach for classification of plant diseases through leaf images. Environment Conservation Journal, 25(3), 767–778. https://doi.org/10.36953/ECJ.28742840
Wu, G., Haider, A., Tian, X., Loweimi, E., Chan, C. H., Qian, M., Muhammad, A., Spence, I., Cooper, R., Ng, W. W. Y., Kittler, J., Gales, M., & Wang, H. (2024). Multi-modal video search by examples—A video quality impact analysis. IET Computer Vision, 18(7), 1017–1033. https://doi.org/https://doi.org/10.1049/cvi2.12303
Yuan, H., Xiong, Z., & Chen, B. (2024a). Phenotypic Analysis and Variety Classification of Waxy Corn Seeds Based on Machine Vision. 2024 International Conference on Image Processing, Computer Vision and Machine Learning (ICICML), 912–915. https://doi.org/10.1109/ICICML63543.2024.10958153
Yuan, H., Xiong, Z., & Chen, B. (2024b). Phenotypic Analysis and Variety Classification of Waxy Corn Seeds Based on Machine Vision. 2024 International Conference on Image Processing, Computer Vision and Machine Learning (ICICML), 912–915. https://doi.org/10.1109/ICICML63543.2024.10958153
Yunitarini, R., & Widiaswanti, E. (2024a). Analysis and Design of Indonesian Traditional Medicine (Jamu) Information System by using Prototyping Model (Case Study: Madura Island). E3S Web of Conferences, 483. https://doi.org/10.1051/e3sconf/202448303012
Yunitarini, R., & Widiaswanti, E. (2024b). Analysis and Design of Indonesian Traditional Medicine (Jamu) Information System by using Prototyping Model (Case Study: Madura Island). E3S Web of Conferences, 483. https://doi.org/10.1051/e3sconf/202448303012
Zhang, J., Hou, Y., & Han, H. (2023). Hybrid evolutionary robust optimization-based optimal control for time-delay nonlinear systems. Information Sciences, 647, 119395. https://doi.org/https://doi.org/10.1016/j.ins.2023.119395
DOI: https://doi.org/10.30596/jcositte.v6i2.26495
Refbacks
- There are currently no refbacks.




.png)

