Abstract
Ischemic stroke is a medical condition that requires rapid and accurate diagnosis because it can cause permanent brain damage. Medical images, such as CT scans, can serve as a source of information to assist healthcare professionals in identifying patients' brain conditions. However, manual image analysis is time-consuming and may be affected by human limitations in image interpretation. This study aims to develop a CT scan image classification application to assist in identifying ischemic stroke using the Vision Transformer (ViT) method. The research stages include data preprocessing, patch embedding, positional encoding, transformer encoder, and classification head to classify images into two categories: stroke and normal. The dataset consists of patient CT scan images obtained from Hendra Hospital, Binjai. The system was implemented using the Python programming language and the FastAPI framework. The evaluation results show that the ViT model achieved an accuracy of 82.93% in the final testing. These results indicate that the ViT model can be used to classify CT scan images into stroke and normal categories on the dataset used in this study. This research may serve as an approach for developing deep learning-based decision support systems to assist in the analysis of medical images.
References
Ardiyansyah, M. S., Umbara, F. R., & Melina. (2025). Klasifikasi kanker payudara berbasis deep learning menggunakan Vision Transformer dengan teknik augmentasi data citra. JURIKOM (Jurnal Riset Komputer), 12(3), 241–250. https://doi.org/10.30865/jurikom.v12i3.8619
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houlsby, N. (2021). An image is worth 16 × 16 words: Transformers for image recognition at scale. International Conference on Learning Representations. https://doi.org/10.48550/arXiv.2010.11929
Firdaus, D., Sumardi, I., Chazar, C., & Dafy, M. Z. (2025). Image-based malware multiclass classification using Vision Transformer architecture. Cyber Security dan Forensik Digital, 8(1), 72–79. https://doi.org/10.14421/csecurity.2025.8.1.5107
Juniada, P. H., Asih, M. W., Margiani, N. N., Eka Putra, I. W. G. A., Martadiani, E. D., & Mahendra Wijaya, I. G. A. G. (2022). Korelasi ASPECT score dengan NIHSS, GCS, dan lama dirawat pada pasien stroke non hemoragik akut di RSUP Sanglah. E-Jurnal Medika Udayana, 11(10), 7–15. https://doi.org/10.24843/MU.2022.V11.i10.P02
Maulana, R. T. N., Via, Y. V., & Mandyartha, E. P. (2025). Implementasi Vision Transformer untuk klasifikasi penyakit pneumonia melalui citra chest X-ray. Journal CERITA: Creative Education of Research in Information Technology and Artificial Informatics, 11(2), 249–254. https://doi.org/10.33050/cerita.v11i2.3599
Pangestu, A., Purnama, B., & Risnandar. (2024). Vision Transformer untuk klasifikasi kematangan pisang. Jurnal Teknologi Informasi dan Ilmu Komputer, 11(1), 75–84. https://doi.org/10.25126/jtiik.20241117389
Puspita, M. I., Aini, V. N., Isnoviasih, S. T., & Darmawan, E. (2025). Optimizing window width and window level variations in head CT scans in hemorrhagic stroke cases. Journal of Applied Health Management and Technology, 7(2), 116–119.
Putriany, E., & Ariatmanto, D. (2025). Comparative analysis of green snake identification using head structure and body patterns with Vision Transformer. Telematika, 18(1), 61–73. https://doi.org/10.35671/telematika.v18i1.2992
Susanto, A., & Sari, A. Z. C. (2025). Non contrast head CT scan findings in stroke patients at the Radiology Department of Tiarasella Hospital Bengkulu 2024. Journal of Applied Health Management and Technology, 7(1), 27–32. https://doi.org/10.31983/jahmt.v7i1.12832
Yan, M. D., Ardiyanto, J., & Sulaksono, N. (2020). Analisa perbedaan informasi diagnostik CT scan kepala pada kasus stroke iskemik dengan pilihan kombinasi slice thickness dan interval reconstruction. Jurnal Radiografer Indonesia, 3(1), 51–55.
Yusastra, P., Indriyani, & Utama, B. (2021). Overview of the head CT-scan in stroke patients who was treated at Muhammadiyah Hospital Palembang. Muhammadiyah Medical Journal, 2(1), 24–34. https://doi.org/10.24853/mmj.2.1.24-34

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright (c) 2026 Ade Rinanda Wahyuni Hasibuan, Fatma Sari Hutagalung