Research Article

White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories

Volume: 13 Number: 3 September 30, 2026

White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories

Abstract

Traditional microscopic assessment of leukocyte morphology remains a labor-intensive workflow that is inherently vulnerable to inter-observer variability and subjective assessment risks. Automated classification systems are increasingly used as diagnostic aids for the identification and characterization of hematological samples. This study proposes a data-efficient transformer-based framework for white blood cell (WBC) classification under limited training data and computational constraints. The proposed system employs a DeiT-Tiny backbone with a transfer learning strategy. Contrast-Limited Adaptive Histogram Equalization (CLAHE) was implemented to enhance cellular features. Model robustness and generalization capability were evaluated using a 5-fold cross-validation scheme on the Raabin-WBC and PBC datasets. The proposed framework achieved mean classification accuracies of 99.39% ± 0.20% and 99.63% ± 0.19% across 5-fold cross-validation on the Raabin-WBC and PBC datasets, respectively. For the Raabin-WBC dataset, the proposed model achieved macro-average precision, recall, and F1-score values of 98.10% ± 0.83%, 99.33% ± 0.36%, and 98.69% ± 0.48%, respectively. Similarly, for the PBC dataset, the corresponding macro-average precision, recall, and F1-score values were 99.54% ± 0.26%, 99.52% ± 0.31%, and 99.53% ± 0.28%, respectively. The results indicate that the model delivers consistent and high-level performance across all leukocyte classes. We also show additional views of the heatmaps generated by the Gradient-weighted Class Activation Mapping (Grad-CAM) technique, pointing out regions of the deep learning model’s feature maps that the network is looking at when classifying cells, and which correspond to biologically relevant parts of the cell, including the nucleus and cytoplasm. The experimental findings indicate that the proposed DeiT-Tiny framework provides highly accurate and computationally efficient leukocyte classification while reducing model complexity and maintaining stable performance across multiple microscopy datasets.

Keywords

Supporting Institution

This study did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Ethical Statement

This study utilized publicly available, anonymized datasets (Raabin-WBC and PBC) for research purposes. As the data were previously de-identified and published for open-access use, additional institutional ethics committee approval was not required for this study.

Thanks

The authors declare that no specific acknowledgement is required for this study.

References

  1. Acevedo, A., Alférez, S., Merino, A., Puigví, L., & Rodellar, J. (2019). Recognition of peripheral blood cell images using convolutional neural networks. Computer Methods and Programs in Biomedicine, 180, 105020. https://doi.org/10.1016/j.cmpb.2019.105020
  2. Acevedo, A., Merino, A., Alférez, S., Molina, Á., Boldú, L., & Rodellar, J. (2020). A dataset of microscopic peripheral blood cell images for development of automatic recognition systems. Data in Brief, 30, 105474. https://doi.org/10.1016/j.dib.2020.105474
  3. Ahmad, R., Awais, M., Kausar, N., & Akram, T. (2023). White blood cells classification using entropy-controlled deep features optimization. Diagnostics, 13(3), 352. https://doi.org/10.3390/diagnostics13030352
  4. Alqahtani, A., Alsubai, S., Sha, M., Attique Khan, M., Alhaisoni, M., & Rameez Naqvi, S. (2023). Automated White Blood Cell Disease Recognition Using Lightweight Deep Learning. Computer Systems Science and Engineering, 46(1), 107–123. https://doi.org/10.32604/csse.2023.030727
  5. Anand, V., Gupta, S., Koundal, D., Alghamdi, W. Y., & Alsharbi, B. M. (2024). Deep learning-based image annotation for leukocyte segmentation and classification of blood cell morphology. BMC Medical Imaging, 24(1), 83. https://doi.org/10.1186/s12880-024-01254-z
  6. Asghar, R., Kumar, S., Shaukat, A., & Hynds, P. (2024). Classification of white blood cells (leucocytes) from blood smear imagery using machine and deep learning models: A global scoping review. PloS One, 19(6), e0292026. https://doi.org/10.1371/journal.pone.0292026
  7. Bairaboina, S. S. R., & Battula, S. R. (2023). Ghost-ResNeXt: An Effective Deep Learning Based on Mature and Immature WBC Classification. Applied Sciences, 13(6), 4054. https://doi.org/10.3390/app13064054
  8. Balasubramanian, K., Gayathri Devi, K., & Ramya, K. (2023). Classification of white blood cells based on modified U-Net and SVM. Concurrency and Computation: Practice and Experience, 35(28), e7862. https://doi.org/10.1002/cpe.7862

Details

Primary Language

English

Subjects

Biomedical Imaging, Biomedical Diagnosis, Tissue Engineering

Journal Section

Research Article

Early Pub Date

September 23, 2026

Publication Date

September 30, 2026

Submission Date

April 16, 2026

Acceptance Date

July 24, 2026

Published in Issue

Year 2026 Volume: 13 Number: 3

APA
Yılmaz, A., & Koç, A. (2026). White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories. Gazi University Journal of Science Part A: Engineering and Innovation, 13(3), 1080-1099. https://doi.org/10.54287/gujsa.1931988
AMA
1.Yılmaz A, Koç A. White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories. GU J Sci, Part A. 2026;13(3):1080-1099. doi:10.54287/gujsa.1931988
Chicago
Yılmaz, Ayşegül, and Alpaslan Koç. 2026. “White Blood Cell Classification With Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories”. Gazi University Journal of Science Part A: Engineering and Innovation 13 (3): 1080-99. https://doi.org/10.54287/gujsa.1931988.
EndNote
Yılmaz A, Koç A (September 1, 2026) White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories. Gazi University Journal of Science Part A: Engineering and Innovation 13 3 1080–1099.
IEEE
[1]A. Yılmaz and A. Koç, “White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories”, GU J Sci, Part A, vol. 13, no. 3, pp. 1080–1099, Sept. 2026, doi: 10.54287/gujsa.1931988.
ISNAD
Yılmaz, Ayşegül - Koç, Alpaslan. “White Blood Cell Classification With Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories”. Gazi University Journal of Science Part A: Engineering and Innovation 13/3 (September 1, 2026): 1080-1099. https://doi.org/10.54287/gujsa.1931988.
JAMA
1.Yılmaz A, Koç A. White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories. GU J Sci, Part A. 2026;13:1080–1099.
MLA
Yılmaz, Ayşegül, and Alpaslan Koç. “White Blood Cell Classification With Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories”. Gazi University Journal of Science Part A: Engineering and Innovation, vol. 13, no. 3, Sept. 2026, pp. 1080-99, doi:10.54287/gujsa.1931988.
Vancouver
1.Ayşegül Yılmaz, Alpaslan Koç. White Blood Cell Classification with Data-Efficient Vision Transformer: A Multi-Dataset Evaluation on Raabin-WBC and PBC Repositories. GU J Sci, Part A. 2026 Sep. 1;13(3):1080-99. doi:10.54287/gujsa.1931988