Abstract
Automated classification of blood cells from microscopic images is an interesting research area owing to advancements of efficient neural network models. The existing deep learning methods rely on large data for network training and generating such large data could be time-consuming. Further, explainability is required via class activation mapping for better understanding of the model predictions. Therefore, we developed a Siamese twin network (STN) model based on contrastive learning that trains on relatively few images for the classification of healthy peripheral blood cells using EfficientNet-B3 as the base model. Hence, in this study, a total of 17,092 publicly accessible cell histology images were analyzed from which 6% were used for STN training, 6% for few-shot validation, and the rest 88% for few-shot testing. The proposed architecture demonstrates percent accuracies of 97.00, 98.78, 94.59, 95.70, 98.86, 97.09, 99.71, and 96.30 during 8-way 5-shot testing for the classification of basophils, eosinophils, immature granulocytes, erythroblasts, lymphocytes, monocytes, platelets, and neutrophils, respectively. Further, we propose a novel class activation mapping scheme that highlights the important regions in the test image for the STN model interpretability. Overall, the proposed framework could be used for a fully automated self-exploratory classification of healthy peripheral blood cells.
Graphical abstract
The whole proposed framework demonstrates the Siamese twin network training and 8-way k-shot testing. The values indicate the amount of dissimilarity.







Similar content being viewed by others
References
Ceelie H, Dinkelaar RB, van Gelder W (2007) Examination of peripheral blood films using automated microscopy; evaluation of Diffmaster Octavia and Cellavision DM96. J Clin Pathol 60:72. https://doi.org/10.1136/JCP.2005.035402
Rümke CL (1985) Imprecision of ratio-derived differential leukocyte counts. Blood Cells 11(311–4):315
Acevedo A, Alférez S, Merino A et al (2019) Recognition of peripheral blood cell images using convolutional neural networks. Comput Methods Programs Biomed 180:105020. https://doi.org/10.1016/J.CMPB.2019.105020
Krizhevsky A, Sutskever I, Hinton GE (2012) ImageNet classification with deep convolutional neural networks. In: Proceedings of the 24th International Conference on Neural Information Processing Systems. Curran Associates, Inc., New York, NY, pp 1097–1105. https://dl.acm.org/doi/10.5555/2999134.2999257
Tan C, Sun F, Kong T et al (2018) A survey on deep transfer learning. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 11141 LNCS:270–279. https://doi.org/10.1007/978-3-030-01424-7_27
Pathak Y, Shukla PK, Tiwari A et al (2022) Deep transfer learning based classification model for COVID-19 disease. Ing Rech Biomed 43(2):79–92. https://doi.org/10.1016/J.IRBM.2020.05.003
Minaee S, Kafieh R, Sonka M et al (2020) Deep-COVID: predicting COVID-19 from chest X-ray images using deep transfer learning. Med Image Anal 65:101794. https://doi.org/10.1016/J.MEDIA.2020.101794
Long F, Peng JJ, Song W et al (2021) BloodCaps: a capsule network based model for the multiclassification of human peripheral blood cells. Comput Methods Prog Biomed 202:105972. https://doi.org/10.1016/J.CMPB.2021.105972
Ucar F (2020) Deep learning approach to cell classification in human peripheral blood. 5th international conference on computer science and engineering. UBMK 2020:383–387. https://doi.org/10.1109/UBMK50275.2020.9219480
Baydilli YY, Atila Ü (2020) Classification of white blood cells using capsule networks. Comput Med Imaging Graph 80:101699. https://doi.org/10.1016/J.COMPMEDIMAG.2020.101699
Shahin AI, Guo Y, Amin KM, Sharawi AA (2019) White blood cells identification system based on convolutional deep neural learning networks. Comput Methods Programs Biomed 168:69–80. https://doi.org/10.1016/J.CMPB.2017.11.015
Kutlu H, Avci E, Özyurt F (2020) White blood cells detection and classification based on regional convolutional neural networks. Med Hypotheses 135:109472. https://doi.org/10.1016/J.MEHY.2019.109472
Almezhghwi K, Serte S (2020) Improved classification of white blood cells with the generative adversarial network and deep convolutional neural network. Comput Intell Neurosci 2020:649079. https://doi.org/10.1155/2020/6490479
Medela A, Picon A, Saratxaga CL et al (2019) Few shot learning in histopathological images: reducing the need of labeled data on biological datasets. Proc Int Symp Biomed Imaging 2019-April:1860–1864. https://doi.org/10.1109/ISBI.2019.8759182
Puch S, Sánchez I, Rowe M (2019) Few-shot learning with deep triplet networks for brain imaging modality recognition. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 11795 LNCS:181–189. https://doi.org/10.1007/978-3-030-33391-1_21
Chen X, Yao L, Zhou T et al (2021) Momentum contrastive learning for few-shot COVID-19 diagnosis from chest CT images. Pattern Recog 113:107826. https://doi.org/10.1016/J.PATCOG.2021.107826
Chopra S, Hadsell R, LeCun Y (2005) Learning a similarity metric discriminatively, with application to face verification. Proceedings - 2005 IEEE computer society conference on computer vision and pattern recognition, CVPR 2005 I:539–546. https://doi.org/10.1109/CVPR.2005.202
Weinberger KQ, Saul LK (2009) Distance metric learning for large margin nearest neighbor classification. J Mach Learn Res 10:207–244. https://doi.org/10.5555/1577069
Tummala S (2021) Deep learning framework using Siamese neural network for diagnosis of autism from brain magnetic resonance imaging. In: 2021 6th international conference for convergence in technology (I2CT). IEEE, Maharashtra, India, pp 1–5. https://doi.org/10.1109/I2CT51068.2021.9418143
Madhu G, Lalith Bharadwaj B, Rohit B et al (2021) Convolutional Siamese networks for one-shot malaria parasite recognition in microscopic images. In: Demystifying big data, machine learning, and deep learning for healthcare analytics. Elsevier, pp 277–306. https://doi.org/10.1016/B978-0-12-821633-0.00007-6
Rossi A, Hosseinzadeh M, Bianchini M et al (2021) Multi-modal siamese network for diagnostically similar lesion retrieval in prostate MRI. IEEE Trans Med Imaging 40:986–995. https://doi.org/10.1109/TMI.2020.3043641
Li MD, Chang K, Bearce B et al (2020) Siamese neural networks for continuous disease severity evaluation and change detection in medical imaging. npj Digit Med 3(1):1–9. https://doi.org/10.1038/s41746-020-0255-1
Wang J, Fang Z, Lang N et al (2017) A multi-resolution approach for spinal metastasis detection using deep Siamese neural networks. Comput Biol Med 84:137–146. https://doi.org/10.1016/J.COMPBIOMED.2017.03.024
Zhou B, Khosla A, Lapedriza A et al (2015) Learning deep features for discriminative localization. Proceedings of the IEEE computer society conference on computer vision and pattern recognition 2016-December:2921–2929. https://doi.org/10.1109/CVPR.2016.319
Selvaraju RR, Cogswell M, Das A et al (2016) Grad-CAM: visual explanations from deep networks via gradient-based localization. Int J Comput Vision 128:336–359. https://doi.org/10.1007/s11263-019-01228-7
Chattopadhyay A, Sarkar A, Howlader P, Balasubramanian VN (2017) Grad-CAM++: improved visual explanations for deep convolutional networks. Proceedings - 2018 IEEE winter conference on applications of computer vision, WACV 2018 2018-January:839–847. https://doi.org/10.1109/WACV.2018.00097
Yoo TK, Choi JY, Kim HK (2021) Feasibility study to improve deep learning in OCT diagnosis of rare retinal diseases with few-shot classification. Med Biol Eng Compu 59:401–415. https://doi.org/10.1007/S11517-021-02321-1/FIGURES/12
Chen L, Chen J, Hajimirsadeghi H, Mori G (2020) Adapting Grad-CAM for embedding networks. Proceedings - 2020 IEEE winter conference on applications of computer vision. WACV 2020:2783–2792. https://doi.org/10.1109/WACV45572.2020.9093461
Tan M, Le QV (2019) EfficientNet: rethinking model scaling for convolutional neural networks. 36th international conference on machine learning, ICML 2019 2019-June:10691–10700
Acevedo A, Merino A, Alférez S et al (2020) A dataset of microscopic peripheral blood cell images for development of automatic recognition systems. Data Brief 30:105474. https://doi.org/10.1016/J.DIB.2020.105474
Dauphin YN, De Vries H, Bengio Y (2015) RMSProp and equilibrated adaptive learning rates for non-convex optimization. Adv Neural Inf Process Syst 2015:1504–1512
Kingma DP, Ba JL (2014) Adam: a method for stochastic optimization. arXiv:1412.6980. https://doi.org/10.48550/arXiv.1412.6980
Dozat T (2016) Incorporating Nesterov Momentum into Adam. In: Proceedings of the 4th International Conference on Learning Representations. Workshop Track, San Juan, Puerto Rico, pp 1–4
Zeiler MD (2012) ADADELTA: an adaptive learning rate method. arXiv:1212.5701. https://doi.org/10.48550/arXiv.1212.5701
Wang Y, Cao Y (2020) A computer-assisted human peripheral blood leukocyte image classification method based on Siamese network. Med Biol Eng Comput 58(7):1575–1582. https://doi.org/10.1007/S11517-020-02180-2
Acknowledgements
We would like to thank Hospital Clinic Barcelona for providing the dataset and SRM University—AP for providing the research infrastructure.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Ethics approval
This research study was conducted retrospectively using human subject data made available in open access by Hospital Clinic Barcelona. Ethical approval was not required as confirmed by the license attached with the open access data.
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Below is the link to the electronic supplementary material.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Tummala, S., Suresh, A.K. Few-shot learning using explainable Siamese twin network for the automated classification of blood cells. Med Biol Eng Comput 61, 1549–1563 (2023). https://doi.org/10.1007/s11517-023-02804-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11517-023-02804-3