Fine Tuning Swin Transformer Based Pretrained Model for Microscopic Fungi Images Classification
Accurate image classification of microscopic pathogenic fungi is a challenge in the field of mycology. This study proposes a Swin Transformer-based approach to automate the identification process. The Swin Transformer model, known for its ability to capture complex spatial interactions, is adapted from ImageNet’s pre-trained model. The adaptation process is focused on fine-tuning the final classification layer to match the 5 classes of fungi present in the dataset. This classification layer is replaced by a new fully-connected layer that has the number of output according to the number of fungal classes. The weights on these layers are randomly initialized and trained in conjunction with several final convolutional layers. In addition, regularization techniques such as dropouts are applied to prevent overfitting. Adaptation using 5-fold cross-validation was carried out to find the best fold with hyperparameters including AdamW optimizer with a learning rate of 10<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">−3</sup>, StepLR scheduler, batch size of 128 images, and a total of 9 epochs / iterations. After that, fine-tuning is carried out on the best fold with hyperparameters including AdamW optimizer with a learning rate of 10<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">−5</sup>, StepLR scheduler, batch size of 32 images, and a total of 100 epochs / iterations. The final result showed excellent performance, with accuracy, precision, recall and an average F1-score of 95%. These results show the potential of the Swin Transformer in becoming an effective tool for mycologists.
Authors
- Arya Adhyaksa Waskita (ORCID: https://orcid.org/0000-0001-9552-1658)
- Achmad Hindasyah Achmad Hindasyah
- Julfa Muhammad Amda
- Muchamad Galih Anggara
Institutions
- Universitas Pamulang (ID)
- National Research and Innovation Agency (ID)
Publication Details
- Published
- 2024-10-09
- DOI
- https://doi.org/10.1109/ic3ina64086.2024.10732255
- Citations
- 3
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 0.71