Identifikasi Tanaman Obat Indonesia dengan Vision Transformer dan Augmentasi Adaptif
DOI:
https://doi.org/10.37859/jf.v16i2.12326
Abstract
Manual identification of medicinal plants faces serious challenges due to morphological similarities between species, variations in lighting, and limited availability of botanists in the field. This study proposes an identification system for 100 types of Indonesian medicinal plants using the Vision Transformer (ViT) architecture with a stepwise fine-tuning approach and adaptive image augmentation. The model used is vit_base_patch16_224 initialized with ImageNet-1k pretrained weights, equipped with a classifier head consisting of a series of LayerNorm, Dropout (0.3), and Linear (768→100). The training strategy integrates stepwise freezing (freeze-unfreeze) in the first three epochs, the AdamW optimizer with a weight decay of 0.05, label smoothing (ε=0.1), and cosine-based learning rate scheduling to ensure stable convergence on medium-scale datasets. The dataset used consists of 10,000 images divided using a non-stratified random split with a ratio of 70% training data, 15% validation data, and 15% test data. The evaluation results show that the model achieved an accuracy of 97.3% on the test data, with a macro precision of 0.974, a macro recall of 0.975, and a macro F1-score of 0.973. The macro values were calculated by summing the metric values for each class separately, then dividing by the number of classes without considering the number of samples in each class. The training process lasted for 16 epochs before being terminated by the early stopping mechanism with the best validation accuracy of 97.53% at the 11th epoch. These results demonstrate that the ViT stepwise fine-tuning approach is able to address the challenges of multi-class scale classification on medium-sized datasets effectively and reproducibly.
Downloads
References
D. R. P. Mahendri and T. Y. Hadiwandra, “Implementasi Deep Learning Untuk Identifikasi Tanaman Rimpang Menggunakan Metode Convolutional Neural Network,” J. Comput. Sci. Inf. Technol., vol. 6, no. 1, pp. 1–8, 2025, doi: 10.37859/coscitech.v6i1.8943.
M. Alif Fathan, T. Sugiharto, and I. Lesmana, “Klasifikasi jenis tanaman philodendron berdasarkan citra daun menggunakan algoritma CNN,” J. Comput. Sci. Inf. Technol., vol. 6, no. 2, pp. 140–147, 2025, doi: 10.37859/coscitech.v6i2.9484.
N. Tristanti, N. T. Romadloni, and N. H. Sya’bani, “Klasifikasi Citra Buah Menggunakan Algoritma K-Nearest Neighbour (KNN) dan Metode Euclidean Distance,” RIGGS J. Artif. Intell. Digit. Bus., vol. 4, no. 3, pp. 8306–8312, 2025, doi: 10.31004/riggs.v4i3.3243.
R. Pujiati and N. Rochmawati, “Identifikasi Citra Daun Tanaman Herbal Menggunakan Metode Convolutional Neural Network (CNN),” J. Informatics Comput. Sci., vol. 3, no. 03, pp. 351–357, 2022, doi: 10.26740/jinacs.v3n03.p351-357.
B. Setiyono et al., “Identifikasi Tanaman Obat Indonesia Melalui Citra Daun Menggunakan Metode Convolutional Neural Network (CNN),” J. Teknol. Inf. dan Ilmu Komput., vol. 10, no. 2, pp. 385–392, 2023, doi: 10.25126/jtiik.20236809.
S. A. E. Albakia and R. A. Saputra, “IDENTIFIKASI JENIS DAUN TANAMAN OBAT MENGGUNAKAN METODE CONVOLUTIONAL NEURAL NETWORK (CNN) DENGAN MODEL VGG16,” J. Inform. Polinema, vol. 9, no. 4, pp. 451–460, 2023, doi: 10.33795/jip.v9i4.1420.
A. Dosovitskiy et al., “an Image Is Worth 16X16 Words: Transformers for Image Recognition At Scale,” ICLR 2021 - 9th Int. Conf. Learn. Represent., 2021, doi: https://doi.org/10.48550/arXiv.2010.11929.
C. F. Chen, Q. Fan, and R. Panda, “CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification,” Proc. IEEE Int. Conf. Comput. Vis., pp. 347–356, 2021, doi: 10.1109/ICCV48922.2021.00041.
C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, “Rethinking the Inception Architecture for Computer Vision,” Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit., pp. 2818–2826, 2016, doi: 10.1109/CVPR.2016.308.
M. S. Ikrar Musyaffa, N. Yudistira, M. A. Rahman, A. H. Basori, A. B. Firdausiah Mansur, and J. Batoro, “IndoHerb: Indonesia medicinal plants recognition using transfer learning and deep learning,” Heliyon, vol. 10, no. 23, pp. 1–34, 2024, doi: 10.1016/j.heliyon.2024.e40606.
P. S. Thakur, P. Khanna, T. Sheorey, and A. Ojha, “Explainable vision transformer enabled convolutional neural network for plant disease identification: PlantXViT,” 2022, [Online]. Available: http://arxiv.org/abs/2207.07919
A. Rachman, A. Fauzi, and B. Wijonarko, “Klasifikasi Citra Rempah-Rempah Di Indonesia Menggunakan Vision Transformer,” JTIK (Jurnal Tek. Inform. Kaputama), vol. 10, no. 1, pp. 16–27, 2026, doi: 10.59697/jtik.v10i1.1168.
Darmatasia and M. H. H, “Model Efisien Berbasis Mobile Vision Transformer (Mobilevit) Untuk Klasifikasi Jenis Tanah Dari Citra,” J. INSTEK (Informatika Sains dan Teknol., vol. 10, no. 2, pp. 518–533, 2025, doi: 10.24252/instek.v10i2.61891.
A. Hasbi and B. Tumanggor, “Implementation of the Vision Transformer ( ViT ) Method in Soil Type Classification,” J. Ilm. Sist. Inf., vol. 5, no. 1, pp. 574–583, 2026, doi: 10.1109/SCES55490.2022.9887636.
R. Uthama, B. Hendrik, M. T. Informatika, F. I. Komputer, U. P. Indonesia, and U. M. Riau, “Vision Transformer untuk Identifikasi 15 Variasi Citra Ikan Koi Rayhan,” J. Comput. Sci. Inf. Technol., vol. 5, no. 1, pp. 159–168, 2024, doi: 10.37859/coscitech.v5i1.6711.
R. R. Ar, Agusriyati, and S. Moka, “Pendeteksian Dini Stunting Pada Balita Menggunakan Vision Transformer (VIT) Berbasis Citra Tubuh,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 3S1, pp. 896–902, 2025, doi: 10.23960/jitet.v13i3S1.7888.
H. Wu et al., “CvT: Introducing Convolutions to Vision Transformers,” Proc. IEEE Int. Conf. Comput. Vis., pp. 22–31, 2021, doi: 10.1109/ICCV48922.2021.00009.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Novi Tristanti, Sunardi Sunardi, Murinto Murinto

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Jurnal FASILKOM (teknologi inFormASi dan ILmu KOMputer) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book) with the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.


