# White blood cell classification using custom deep neural network and visualizing features of the images using heatmaps

**Authors:** Sahebgoud Hanamantray Karaddi, Hanumantharao Bitra, Sai Sambasiva Rao Bairaboina, Bharath Reddy Gudibandi

PMC · DOI: 10.1038/s41598-026-35138-9 · 2026-03-18

## TL;DR

This paper introduces a custom deep learning model for accurately classifying white blood cells in blood images, achieving high accuracy and using heatmaps to visualize the model's decisions.

## Contribution

The novel contribution is a customized deep neural network (CDNN) architecture that avoids overfitting and achieves high classification accuracy for white blood cells.

## Key findings

- The CDNN model achieved 97.97% accuracy on the Raabin dataset and 99.64% on the BCCD dataset.
- G-CAM and LIME were used to visualize and interpret the model's classification decisions effectively.

## Abstract

Blood count is a key method for diagnosing diseases by analyzing blood cell images using advanced equipment. Traditionally, this process involves invasive techniques and is time-consuming and costly. Modern approaches leverage deep learning (DL) to streamline this process, making it faster and more cost-effective. Given the similarity among blood cell images, distinguishing various blood types by sight is challenging. To address this, we propose a Customized deep neural network (CDNN) to accurately classify different types of blood cells while avoiding overfitting and degradation. CDNN uses a unique DL architecture to classify white blood cells (WBCs). We validated this architecture using the Raabin WBC and BCCD datasets. The model is optimized through preprocessing techniques such as normalization and data augmentation. Simulations were conducted with a batch size of 64, utilizing the Adam optimizer over 50 epochs. Our model achieved a high accuracy of 97.97% on the Raabin dataset and 99.64% on the BCCD dataset, outperforming existing state-of-the-art models. To understand the model’s classification process, we applied G-CAM and LIME. These results suggest that CDNN can be developed into clinically useful solutions for detecting WBCs in blood cell images, significantly improving diagnostic efficiency.

## Full-text entities

- **Diseases:** tissue injury (MESH:D017695), DL (MESH:D007859), viral infections (MESH:D014777), HSV (MESH:C536395), allergies (MESH:D004342), inflammation (MESH:D007249)
- **Chemicals:** DA (MESH:C025953)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

9 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13000309/full.md

---
Source: https://tomesphere.com/paper/PMC13000309