An Explainable Vision Transformer Model Based White Blood Cells Classification and Localization

dc.contributor.authorKatar, Oguzhan
dc.contributor.authorYildirim, Ozal
dc.date.accessioned2026-08-12T18:08:40Z
dc.date.issued2023
dc.departmentFırat Üniversitesi
dc.description.abstractWhite blood cells (WBCs) are crucial components of the immune system that play a vital role in defending the body against infections and diseases. The identification of WBCs subtypes is useful in the detection of various diseases, such as infections, leukemia, and other hematological malignancies. The manual screening of blood films is time-consuming and subjective, leading to inconsistencies and errors. Convolutional neural networks (CNN)-based models can automate such classification processes, but are incapable of capturing long-range dependencies and global context. This paper proposes an explainable Vision Transformer (ViT) model for automatic WBCs detection from blood films. The proposed model uses a self-attention mechanism to extract features from input images. Our proposed model was trained and validated on a public dataset of 16,633 samples containing five different types of WBCs. As a result of experiments on the classification of five different types of WBCs, our model achieved an accuracy of 99.40%. Moreover, the model's examination of misclassified test samples revealed a correlation between incorrect predictions and the presence or absence of granules in the cell samples. To validate this observation, we divided the dataset into two classes, Granulocytes and Agranulocytes, and conducted a secondary training process. The resulting ViT model, trained for binary classification, achieved impressive performance metrics during the test phase, including an accuracy of 99.70%, recall of 99.54%, precision of 99.32%, and F-1 score of 99.43%. To ensure the reliability of the ViT model's, we employed the Score-CAM algorithm to visualize the pixel areas on which the model focuses during its predictions. Our proposed method is suitable for clinical use due to its explainable structure as well as its superior performance compared to similar studies in the literature. The classification and localization of WBCs with this model can facilitate the detection and reporting process for the pathologist.
dc.identifier.doi10.3390/diagnostics13142459
dc.identifier.issn2075-4418
dc.identifier.issue14
dc.identifier.orcid0000-0002-5628-3543
dc.identifier.pmid37510202
dc.identifier.scopus2-s2.0-85171601567
dc.identifier.scopusqualityQ2
dc.identifier.urihttps://doi.org/10.3390/diagnostics13142459
dc.identifier.urihttps://hdl.handle.net/11508/63178
dc.identifier.volume13
dc.identifier.wosWOS:001035148900001
dc.identifier.wosqualityQ1
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.indekslendigikaynakPubMed
dc.language.isoen
dc.publisherMdpi
dc.relation.ispartofDiagnostics
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/openAccess
dc.snmzKA_WoS_20260511
dc.subjectvision transformers
dc.subjectwhite blood cells
dc.subjectexplainable AI models
dc.subjectdeep learning
dc.subjectScore-CAM
dc.titleAn Explainable Vision Transformer Model Based White Blood Cells Classification and Localization
dc.typeArticle

Dosyalar