Automated white blood cell differential from blood-smear images: Segmentation accuracy and cross-laboratory generalisation on public datasets

https://doi.org/10.55529/jpdmhd.62.43.53

Authors

  • Anuj Gaba Department of Forensic Medicine and Toxicology, AIIMS Kalyani, West Bengal, India. https://orcid.org/0009-0000-6483-9647
  • Dhara Andipara Department of Dentistry, Geetanjali Dental and Research Institute, Udaipur, Rajasthan, India. https://orcid.org/0009-0005-0068-1154
  • Atabekov Tenirberdi Department of Public Health and Family Medicine, Jalal-Abad International University, 720906, 24 Kurmanbek Str., Manas, Kyrgyzstan.

Keywords:

White Blood Cell Differential, Leucocyte Classification, Domain Shift, Stain Normalisation, Haematology, Diagnostic Imaging

Abstract

Background: The white blood cell (WBC) differential is central to the diagnosis of infection, allergy and haematological disease, and automated image-based systems promise to make it available where trained morphologists are scarce. Their reliability across laboratories is rarely tested.

Objective: To evaluate the within-dataset and cross-dataset performance of automated nucleus segmentation and WBC classification, and to test whether common remedies restore transferability.

Methods: Two public datasets of real stained blood-smear images with expert nucleus and cytoplasm annotations, acquired with different staining and imaging systems, were used (299 and 97 cells of four types: neutrophils, lymphocytes, monocytes and eosinophils). Five unsupervised nucleus segmentation methods were compared with expert masks. An interpretable random forest on 14 morphological and colour features and a compact convolutional neural network (CNN) were evaluated within each dataset by cross-validation and across datasets by training on one and testing on the other. Colour augmentation, scale-harmonised crops and Reinhard stain normalisation were tested as remedies. Results: K-means clustering in CIELAB space segmented nuclei with a mean Dice coefficient of 0.947 and 0.960 on the two datasets, outperforming all thresholding methods (p < 10⁻⁶ in most comparisons). Within a dataset, the CNN reached a balanced accuracy of up to 0.95 and the random forest 0.86; both reproduced the differential within 1–2 percentage points. Across datasets, CNN balanced accuracy fell to 0.30–0.46 (chance 0.25), with systematic errors such as reporting 1% neutrophils in a population with 59%; none of the remedies restored performance. The morphology-based random forest transferred better (balanced accuracy 0.49 and 0.71) but still mis-estimated the differential by 13–14 percentage points on average.

References

B. J. Bain, “Diagnosis from the blood smear,” New England Journal of Medicine, vol. 353, no. 5, pp. 498–507, 2005. https://doi.org/10.1056/NEJMra043442

P. W. Barnes, S. L. McFadden, S. J. Machin, and E. Simson, “The international consensus group for hematology review: Suggested criteria for action following automated CBC and WBC differential analysis,” Laboratory Hematology, vol. 11, no. 2, pp. 83–90, 2005. https://doi.org/10.1532/LH96.05019

A. Kratz et al., “Digital morphology analyzers in hematology: ICSH review and recommendations,” International Journal of Laboratory Hematology, vol. 41, no. 4, pp. 437–447, 2019. https://doi.org/10.1111/ijlh.13042

S. H. Rezatofighi and H. Soltanian-Zadeh, “Automatic recognition of five types of white blood cells in peripheral blood,” Computerized Medical Imaging and Graphics, vol. 35, no. 4, pp. 333–343, 2011. https://doi.org/10.1016/j.compmedimag.2011.01.003

L. Putzu, G. Caocci, and C. Di Ruberto, “Leucocyte classification for leukaemia detection using image processing techniques,” Artificial Intelligence in Medicine, vol. 62, no. 3, pp. 179–191, 2014. https://doi.org/10.1016/j.artmed.2014.09.002

C. Matek, S. Schwarz, K. Spiekermann, and C. Marr, “Human-level recognition of blast cells in acute myeloid leukaemia with convolutional neural networks,” Nature Machine Intelligence, vol. 1, no. 11, pp. 538–544, 2019. https://doi.org/10.1038/s42256-019-0101-9

A. Acevedo, A. Merino, S. Alférez, Á. Molina, L. Boldú, and J. Rodellar, “A dataset of microscopic peripheral blood cell images for development of automatic recognition systems,” Data in Brief, vol. 30, Art. no. 105474, 2020. https://doi.org/10.1016/j.dib.2020.105474

D. Tellez et al., “Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology,” Medical Image Analysis, vol. 58, Art. no. 101544, 2019. https://doi.org/10.1016/j.media.2019.101544

J. R. Zech, M. A. Badgeley, M. Liu, A. B. Costa, J. J. Titano, and E. K. Oermann, “Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study,” PLoS Medicine, vol. 15, no. 11, Art. no. e1002683, 2018. https://doi.org/10.1371/journal.pmed.1002683

C. J. Kelly, A. Karthikesalingam, M. Suleyman, G. Corrado, and D. King, “Key challenges for delivering clinical impact with artificial intelligence,” BMC Medicine, vol. 17, Art. no. 195, 2019. https://doi.org/10.1186/s12916-019-1426-2

E. Reinhard, M. Adhikhmin, B. Gooch, and P. Shirley, “Color transfer between images,” IEEE Computer Graphics and Applications, vol. 21, no. 5, pp. 34–41, 2001. https://doi.org/10.1109/38.946629

M. Macenko et al., “A method for normalizing histology slides for quantitative analysis,” in Proc. IEEE Int. Symp. Biomedical Imaging (ISBI), 2009, pp. 1107–1110. https://doi.org/10.1109/ISBI.2009.5193250

X. Zheng, Y. Wang, G. Wang, and J. Liu, “Fast and robust segmentation of white blood cell images by self-supervised learning,” Micron, vol. 107, pp. 55–71, 2018. https://doi.org/10.1016/j.micron.2018.01.010

X. Zheng, “WBC image dataset (segmentation_WBC),” GitHub repository. Accessed: Oct. 2026. github.com/zxaoyou/segmentation_WBC

N. Otsu, “A threshold selection method from gray-level histograms,” IEEE Transactions on Systems, Man, and Cybernetics, vol. 9, no. 1, pp. 62–66, 1979. https://doi.org/10.1109/TSMC.1979.4310076

A. C. Ruifrok and D. A. Johnston, “Quantification of histochemical staining by color deconvolution,” Analytical and Quantitative Cytology and Histology, vol. 23, no. 4, pp. 291–299, 2001. pubmed.ncbi.nlm.nih.gov/11531144/

S. Lloyd, “Least squares quantization in PCM,” IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129–137, 1982. https://doi.org/10.1109/TIT.1982.1056489

L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001. https://doi.org/10.1023/A:1010933404324

D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in Proc. Int. Conf. Learning Representations (ICLR), 2015. https://doi.org/10.48550/arXiv.1412.6980

A. Paszke et al., “PyTorch: An imperative style, high-performance deep learning library,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 32, 2019, pp. 8024–8035. https://doi.org/10.48550/arXiv.1912.01703

S. van der Walt et al., “scikit-image: Image processing in Python,” PeerJ, vol. 2, Art. no. e453, 2014. https://doi.org/10.7717/peerj.453

F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011. jmlr.org/papers/v12/pedregosa11a.html

Published

2026-08-08

How to Cite

Gaba, A., Andipara, D., & Atabekov, T. (2026). Automated white blood cell differential from blood-smear images: Segmentation accuracy and cross-laboratory generalisation on public datasets. Journal of Prevention, Diagnosis and Management of Human Diseases, 6(2), 43–53. https://doi.org/10.55529/jpdmhd.62.43.53