Research Article

Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation

Volume: 10 Number: 1 June 1, 2025
EN TR

Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation

Abstract

Gastric cancer remains one of the most prevalent and deadly forms of cancer worldwide, necessitating advanced computational methods for early and accurate detection. This study explores the effectiveness of Vision Transformers (ViTs) in feature extraction for gastric cancer image classification. A publicly available dataset was sourced from Kaggle, consisting of three categories: Normal, Stage-1, and Stage-2 gastric cancer images. Using a pre-trained Google Vision Transformer model, 1000 deep features were extracted from the fully connected head layer without additional training. These extracted features were then used as input for various classical classifiers, including Support Vector Machines (SVM), k-Nearest Neighbors (KNN), Decision Trees, and Random Forest, to evaluate their classification performance. The effectiveness of these classifiers was assessed based on classification accuracies. Comparative analysis of classifier results demonstrated the impact of feature extraction via Vision Transformers on improving gastric cancer detection. The findings highlight the potential of Vision Transformers in medical image analysis and emphasize the role of feature-based classification in aiding early diagnosis. This study provides insights into the applicability of deep learning models in feature extraction and their integration with traditional machine learning classifiers for medical diagnostics.

Keywords

References

  1. Ajani, J. A., D’Amico, T. A., Almhanna, K., Bentrem, D. J., Chao, J., Das, P., ... & Yoon, S. S. (2022). Gastric Cancer, Version 2.2022, NCCN Clinical Practice Guidelines in Oncology. Journal of the National Comprehensive Cancer Network, 20(2), 167-192.
  2. Bray, F., Ferlay, J., Soerjomataram, I., Siegel, R. L., Torre, L. A., & Jemal, A. (2018). Global cancer statistics 2018: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA: A Cancer Journal for Clinicians, 68(6), 394-424.
  3. Correa, P. (2016). Gastric cancer: Overview. Gastroenterology Clinics of North America, 45(3), 413-420. Dalmaz, O., Yurt, M., & Çukur, T. (2022). ResViT: residual vision transformers for multimodal medical image synthesis. IEEE Transactions on Medical Imaging, 41(10), 2598-2614.
  4. Demiroğlu, U. (2025). Diagnosis of the Skin Cancer by Vision Transformers. Duzce University Journal of Science and Technology, 13(1), 588-598. https://doi.org/10.29130/dubited.1572317 Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., ... & Houlsby, N. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
  5. Gao, L., & Guan, L. (2023). Interpretability of machine learning: Recent advances and future prospects. IEEE MultiMedia, 30(4), 105-118.
  6. He, K., Gan, C., Li, Z., Rekik, I., Yin, Z., Ji, W., ... & Shen, D. (2023). Transformers in medical image analysis. Intelligent Medicine, 3(1), 59-78.
  7. Henry, E. U., Emebob, O., & Omonhinmin, C. A. (2022). Vision transformers in medical imaging: A review. arXiv preprint arXiv:2211.10043.
  8. Hirasawa, T., Aoyama, K., Tanimoto, T., Ishihara, S., Fujishiro, M., & Ozawa, T. (2018). Application of artificial intelligence using convolutional neural networks for detecting gastric cancer in endoscopic images. Gastrointestinal Endoscopy, 87(3), 610-617. https://doi.org/10.1016/j.gie.2017.10.010

Details

Primary Language

English

Subjects

Computer Vision, Machine Learning (Other), Artificial Intelligence (Other)

Journal Section

Research Article

Publication Date

June 1, 2025

Submission Date

March 6, 2025

Acceptance Date

March 20, 2025

Published in Issue

Year 2025 Volume: 10 Number: 1

APA
Demiroğlu, U., & Şenol, B. (2025). Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation. Computer Science, 10(1), 92-100. https://doi.org/10.53070/bbd.1652603
AMA
1.Demiroğlu U, Şenol B. Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation. JCS. 2025;10(1):92-100. doi:10.53070/bbd.1652603
Chicago
Demiroğlu, Uğur, and Bilal Şenol. 2025. “Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation”. Computer Science 10 (1): 92-100. https://doi.org/10.53070/bbd.1652603.
EndNote
Demiroğlu U, Şenol B (June 1, 2025) Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation. Computer Science 10 1 92–100.
IEEE
[1]U. Demiroğlu and B. Şenol, “Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation”, JCS, vol. 10, no. 1, pp. 92–100, June 2025, doi: 10.53070/bbd.1652603.
ISNAD
Demiroğlu, Uğur - Şenol, Bilal. “Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation”. Computer Science 10/1 (June 1, 2025): 92-100. https://doi.org/10.53070/bbd.1652603.
JAMA
1.Demiroğlu U, Şenol B. Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation. JCS. 2025;10:92–100.
MLA
Demiroğlu, Uğur, and Bilal Şenol. “Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation”. Computer Science, vol. 10, no. 1, June 2025, pp. 92-100, doi:10.53070/bbd.1652603.
Vancouver
1.Uğur Demiroğlu, Bilal Şenol. Gastric Cancer Detection Using Vision Transformers: Feature Extraction and Classical Classifier Performance Evaluation. JCS. 2025 Jun. 1;10(1):92-100. doi:10.53070/bbd.1652603

The Creative Commons Attribution 4.0 International License 88x31.png is applied to all research papers published by JCS and

A Digital Object Identifier (DOI) Logo_TM.png is assigned for each published paper