Skip to Content
BioengineeringBioengineering
  • Article
  • Open Access

19 August 2026

32 Pages

XHIC-Net: An Explainable Hybrid Involution–Convolution Network for Blood Smear Cell Morphology Classification

,
and
1
Department of Computer Science, Islamia College Peshawar, Peshawar 25000, Khyber Pakhtunkhwa, Pakistan
2
Department of Computer Engineering and Networks, College of Computer and Information Science, Jouf University, Sakakah 72622, Al-Jouf, Saudi Arabia
*
Authors to whom correspondence should be addressed.

Abstract

Accurate morphological analysis of blood smears is vital for hematological diagnosis, yet manual examination is labor-intensive and subjective. While deep learning offers automation, its black-box nature and computational demands often hinder clinical trust and deployment. We propose XHIC-Net, an Explainable Hybrid Involution–Convolution Network designed for efficient and transparent cell classification. By integrating spatially adaptive involution operations with convolutional layers within a residual framework, XHIC-Net captures both contextual and fine-grained features efficiently. To enhance interpretability, a Grad-CAM-based explainable AI (XAI) module visualizes the cellular regions driving model predictions. The proposed framework was evaluated on a dataset comprising 12,879 microscopic blood smear images belonging to 12 morphological cell categories. Experimental results demonstrate that XHIC-Net achieves an overall accuracy of 98.88%, precision of 98.89%, recall of 98.87%, F1-score of 0.9887, and Cohen’s Kappa score of 0.9887. It outperformed established models, including DL models such as EfficientNetV2S, MobileNet family, DenseNet family, and VGG16, while using fewer parameters and requiring shorter training times. Furthermore, the XAI maps consistently highlighted biologically relevant structures, validating the model’s decision-making process. XHIC-Net is a strong, effective, and clear research model for automated hematology. With future clinical validation, it has the potential to be modified for point-of-care diagnostics in healthcare settings with limited resources.

1. Introduction

Healthcare is an abundant data space, and medical images are part of it. As imaging capabilities and computational resources have improved, the demand for sophisticated image interpretation equipment has increased. Improvements in image interpretation lead to greater diagnostic accuracy and lower healthcare costs, yielding better patient outcomes [1]. White blood cells are important in fighting diseases and maintaining health. Different subclasses of white blood cells perform specialized functions in the immune response [2]. Blood cancer, or leukemia [3], originates in the bone marrow and is characterized by an abnormally high or atypical concentration of leucocytes (white blood cells) in the bloodstream [4].
According to the American Cancer Society’s (ACS) 2019 fact sheets, a total of 176,200 new cases of leukemia, lymphoma, and myeloma were reported, with leukemia accounting for 35% (61,780 cases). Acute lymphoblastic leukemia (ALL) occurs when blasts, or immature blood cells, proliferate in the bone marrow. Unlike malignant cells from solid organs or peripheral blood, these abnormal cells originate in the bone marrow [5]. The decreased leukocyte count is due to either cessation of production in the bone marrow or destruction by infection. Leukocytosis is an increase in the number of leukocytes beyond the normal range associated with respiratory disease and indicates the presence of infection or inflammation [6]. The categorization of leukocytes depends on identifying the particular cell type affected and its associated functional or morphological abnormalities [7]. The exact subtype of abnormal white blood cells must be correctly identified, regardless of whether the total white blood cell count is elevated or suppressed [2].
Recent computational advances have supported improved hematological analysis and related diagnostic pipelines. These include multiview graph learning frameworks for drug interaction prediction relevant to leukemia treatment [8] and systematic evaluations of genome information processing techniques with potential applications in blood disorder diagnostics [9]. Such works highlight the growing role of advanced machine learning and genomic tools in complementing morphological analysis of blood smears.
Recent advancements in machine learning (ML) have led to the development of automatic leukocyte identification algorithms, particularly artificial neural networks (ANNs). These approaches are particularly relevant to leukocyte classification in general [10,11]. LeuFeatx uses a two-step approach and a pre-trained VGG16 model to classify leukocytes in leukemia diagnosis [12]. This approach achieves 96.15% accuracy on the ALL_IDB2 database. However, some studies have found lower diagnostic accuracy. Recently, research in this field has focused on DL networks and artificial intelligence. These networks have large quantities of training data. Additionally, the deep networks used in prior studies often require complex, multistage architectures and are computationally expensive, thus necessitating costly hardware [13]. The incorporation of expert domain knowledge enables nuanced morphological interpretations that are in accordance with WHO guidelines and help validate AI results in more complex scenarios, including rare subtypes.
Precise and rapid classification of white blood cells (WBCs) is critical for proper disease diagnosis and treatment. Convolutional neural network (CNN) approaches have been widely adopted to address this issue, as they enable the early detection of abnormalities, including blasts, and facilitate the monitoring of targeted therapies and treatment responses. Although CNNs are highly accurate, substantial improvements depend on generating deep features at various architectural levels. Feature selection methods lead to more discriminative features in lower-dimensional spaces, thereby improving classification accuracy. Nevertheless, due to the spatially agnostic nature of CNNs [14], channel-level relevance representations are neglected in CNNs, and inter-channel correlations fail to be captured. Recent developments have moved beyond conventional CNN architectures towards more efficient and interpretable architectures for blood cell classification. To this end, Karadd et al. [15] introduced a lightweight custom deep neural network (CDNN) comprising residual blocks and depth concatenation. This achieved an accuracy of 99.64% on the BCCD dataset using only 1.31 million parameters, demonstrating that compact networks can be as effective as deep networks for white blood cell (WBC) classification. The accuracy of DenseNet-201, EfficientNet, and ConvNeXt can be boosted further by using ensemble strategies to reach 97.8% on various WBC datasets. Visualizations generated by Grad-CAM can also increase clinician confidence [15]. In parallel, generative methods such as diffusion models have been developed for blood cell morphology classification. CytoDiffusion has been shown to excel in terms of anomaly detection, domain shift robustness, and low-data regimes, as well as generating synthetic images that are almost indistinguishable from real ones [16]. Self-attention models, such as Vision Transformer models, have also been shown to perform well on blood cell datasets [17]. These advances highlight the field’s shift towards lightweight, explainable, and clinically deployable models, which motivates our hybrid involution–convolution design. We propose a technique that uses a CNN framework optimized to improve image classification via a hybrid convolution–involution approach. In this paper, we present the following contributions:
  • The XHIC-Net, an Explainable Hybrid Involution–Convolution Network, is proposed, which combines the spatial-resolution advantages of the involution with well-established feature-extraction properties. With 98.88% accuracy on a 12-class dataset comprising 12,879 micrographs, XHIC-Net surpasses EfficientNetV2S (98.4%) and MobileNetV3Large (98.4%), while using fewer parameters and reducing computational burden during capture.
  • A coupled large-scale dataset is constructed from several publicly available datasets, refined to ensure class balance and image quality, and creates a strong basis for multiclass cell counting of leukocyte and non-leukocyte blood smear cells.
  • In addition, we suggest possible enhancements, such as variable kernel sizes and longer normalization. Such modifications give you a 2–3% improvement in correctness and speed up convergence by 15%, which allows for further optimization.
  • Albeit each is governed by the intrinsic limitations of manual analysis and conventional DL, this strategy establishes a solid foundation for accurate and effective hematology diagnosis, evidencing a potential boost to progress in wide medical image classification.

3. Materials and Methods

In this section, we delve into the technical details of our study, covering the dataset specifications, the design of the proposed XHIC-Net architecture, and its components.

3.1. Dataset

In this study, two publicly available high-quality datasets are combined to form a clinically relevant 12-class dataset for multiclass classification of leukocytes and non-leukocyte blood smear cells. The first dataset, Acevedo et al. [47], consists of 17,092 images from normal peripheral blood cells acquired in the Core Laboratory at the Hospital Clinic of Barcelona (2015–2019). The second dataset is Matek et al. [48], which contains 171,374 single-cell images from bone marrow smears of 945 patients with different hematological disorders at the Munich Leukemia Laboratory.
This study uses a combined dataset of seven cell classes from Basophil (BAS), Eosinophil (EOS), Erythroblast (EBO), Lymphocyte (LYC), Monocyte (MON), Neutrophil, and Platelets [47] and five more from [48], including Metamyelocyte (MMZ), Monoblast (MOB), Myeloblast (MYO), Pro-erythroblast (PEB), and Promyelocyte (PMO). Figure 1 shows an overview of all 12 classes. We chose 5 classes that are most relevant for leukemia classification from the Matek et al. [48] dataset, which was originally composed of 21 morphological classes with a highly imbalanced distribution and complemented the peripheral blood classes from Acevedo et al. [47]. To avoid redundancy, classes that overlapped with Acevedo et al. [47] were not included in Matek et al. [48] because the images in Acevedo et al. [47] were visually clearer and more consistently annotated. The other classes from Matek et al. [48] were discarded because of small sample size following quality filtering, poor image quality (artifacts, smudge cells), or low diagnostic priority for peripheral blood smear analysis. Images were manually checked within the 5 selected Matek classes for completeness of cell capture, focus accuracy, and the absence of overlapping cells or staining artifacts; only images that fulfilled all three criteria were selected. The complete original class distribution of the Matek et al. [48] dataset demonstrated a huge imbalance and very small sample sizes for some classes: abnormal eosinophils, 8 images; faggot cells, 47 images; smudge cells, 42 images; and immature lymphocytes, 65 images. Many of these classes also included a high proportion of out-of-focus, low-contrast duplicates, or poorly shot examples in Table 1. Figure 2 shows examples of such low-quality images that were rejected, so some of the latter classes overlapped with those in the Acevedo et al. [47] peripheral blood dataset, though the images in Acevedo et al. were visually clearer and better annotated. All images selected from the original dataset went through a strict manual curation process: blurry, low-contrast, repeating, or ambiguous images were discarded. To avoid data leakage, image-level 70-20-10 splitting was used for Acevedo et al. [47] (patient identifiers not available in the public release), and strict patient-level 70-20-10 splitting was used for Matek et al. [48] to obtain a balanced combined dataset per source by taking averages. For Matek et al. [48], all images of the same patient were allocated to a single split according to the patient identifiers provided in the original dataset metadata. No Matek patient is seen in more than one split. The images from Acevedo et al. [47] were randomly divided into train/validation/test sets at the image level. This careful selection process, as well as the exclusion of lower-quality images and curation, resulted in a high-quality, clinically relevant 12-class diabetes-friendly dataset containing 12,879 images for robust multiclass leukocyte alongside non-leukocyte classification in leukemia diagnostics. The detailed class distribution is presented in Table 2.
Figure 1. Hierarchical classification tree of 12 morphological cell types. In the first decision, the tree splits leukocytes (WBCs) from other blood cells (erythroid precursors, including erythroblasts and pro-erythroblasts, and platelets), followed by further fine-grained classification within the leukocyte population. This hierarchical approach has been selected favorably because leukemia evaluation in the clinical diagnostic setting typically mirrors generating future differential diagnostic features that distinguish between abnormal erythroid precursors or platelet abnormalities and true leukocyte populations. Its hierarchical organization naturally guides the model to learn from coarse to fine separation of morphologically similar classes, reducing potential confusion and improving the overall classification accuracy and robustness.
Table 1. Original class distribution in the Matek et al. dataset before selection and curation.
Figure 2. Examples of blurry, low-contrast, or unclear images were excluded from the [48] dataset during manual curation.
Table 2. Distribution of Classes in the Combined Dataset.
The dataset integrates public microscopic images from two institutions, including Hospital Clinic of Barcelona [47] and Munich Leukemia Laboratory (MLL) [48]. These two publicly available datasets were most likely subjected to different staining protocols: Wright–Giemsa for the Barcelona dataset and May–Grünwald–Giemsa for the Munich dataset. Just basic min-max intensity normalization was applied during preprocessing to minimize domain shift and prevent the model from learning site-specific or stain-specific features. This was the only way to normalize the stain without using any advanced techniques.
Note: The last 12-class dataset was built in two steps. Stage 1 (class selection): Seven classes from Acevedo et al. [47] were kept in their entirety. Five classes were chosen from Matek et al. [48] for the leukemia classification, which were relevant to the diagnosis. Stage 2 (image filtering): In the 5 selected Matek classes, images were excluded if they did not meet all three criteria: (i) incomplete capture of cells (cell partially outside the frame), (ii) out-of-focus or blurred nucleus/cytoplasm, and (iii) overlapping cells or staining artifacts. The 7 Acevedo classes were pre-validated for quality, and no image-level filtering was applied.
Acevedo et al. [47] do not include patient identifiers in the public release, but rather split the images. Matek et al. [48] split patients by patient ID to avoid data leakage.
Figure 3 shows that the dataset is balanced across all 12 classes of leukocytes and well represents morphological features, such as granule density in Eosinophil and nucleus shape variation in Lymphocyte, both of which are critical for training the model.
Figure 3. Representative images depicting each leukocyte and non-leukocyte class identified in a blood smear.
The two datasets were deliberately combined because accurate leukemia diagnosis from peripheral blood smears requires not only mature leukocyte populations [47] but also immature and pathological cells typically observed in bone marrow [48]. Peripheral blood smear examination, which is often the initial test in investigating leukemia cases in clinical practice, commonly shows immature blasts along with abnormal erythroid precursors and megakaryocytic elements that arise from the bone marrow. We have developed a model that can generalize to not just blood cells but also to hematological cells commonly found in blood smear slides used in clinical practice, using specific classes from the two sources. This integrative strategy allows for a complete multiclass classification that more closely resembles the real-life situation of leukemia diagnosis, where distinguishing leukemic blasts from reactive or normal cells is essential.

3.2. Preprocessing

The preprocessing pipeline is an important step in enhancing the quality of microscopic blood smear images and normalizing them before entering them into the XHIC-Net model. This pipeline comprises several operations that account for variations in image acquisition and imaging environments, such as differences in microscope magnification, staining intensity, and environmental noise. The following outlines the process.
Normalization: The pixel intensities are normalized to a range of [0, 255], but internally normalized to [0, 1] for network training using min-max scaling: Inorm = I − Imin/Imax − Imin, where I is the pixel value, and Imin and Imax are the minimum and maximum intensity in an image. This operation reduces the influence of heterogeneous illumination and staining artifacts commonly observed in blood smears, thereby stabilizing feature extraction during convolution and involution.
Resized: All images were resized to 224 × 224 pixels via bilinear interpolation. This interpolates the image, assuring smooth continuity of the cell border and texture. This fixed size was selected to match the input requirements of the XHIC-Net architecture, which was inspired by networks such as VGG and DenseNet. This approach allows for high-throughput batch processing, reduces computational requirements, and preserves the morphology–phenotype continuum with specific granule detail within leukocytes.
Data Augmentation: We randomly apply transformations to the training set to improve generalization and address class imbalance issues, particularly for rare cell types such as basophils. This includes a shear range of ±20 to simulate distorted cells and a zoom range of ±20 to cover the different magnifications at which images are taken. Random horizontal or vertical flips help to cope with variations in smear orientation. In TensorFlow, for example, these augmentations are performed in real time by the ImageDataGenerator, which generates augmented samples during training. This method generates a larger dataset while avoiding overfitting through realistic variable generation.
Noise is removed by applying a Gaussian blur with a 3 × 3 kernel and a sigma of 1, followed by median filtering with a 3-pixel kernel. This approach reduces staining and scanning artifacts in the image while preserving the edge details that are essential for accurately detecting cell boundaries. No stain normalization or domain adaptation was used; only min-max intensity normalization was used to prevent domain shift between the two source datasets. This approach allows an evaluation to determine if XHIC-Net learns biologically invariant morphological features as opposed to dataset-imperative staining/acquisition artifacts.
As illustrated in Figure 4, the preprocessing steps transform raw images into model-ready inputs.
Figure 4. Visualization of various steps of preprocessing.

3.3. Proposed XHIC-Net Model

The XHIC-Net model architecture, as shown in Figure 5, is developed to improve blood cell classification performance. The involution operation is mathematically formulated as:
Y c , i , j =   ∑ k = 1 K   ∑ l = 1 L   X c , i + k , j + l . W c , k , l ( i . j )
where X is the input feature map, and W is the involution kernel generated adaptively for each spatial location (i, j). Channel K × L is the kernel size, and the summation is performed over the kernel window. In contrast to a standard convolutional kernel, which is static and shared across all spatial locations, the involution kernel W varies according to both spatial location and channel-wise features. This characteristic makes this operation particularly well-suited to capture subtle morphological features within blood smear images, including granule distribution and nuclear shape.
Figure 5. Detailed architecture of the proposed XHIC-Net model. The network consists of two parallel branches: the Involution Branch (left) and the Convolutional Residual Branch (right). Feature dimensions are shown at key stages. Outputs from both branches are concatenated before being passed to the classification head.
These values were chosen to optimize the balance among classification accuracy, computational efficiency, and model stability on the relatively small medical dataset used in this study. Using larger kernels greatly increases the computational cost without leading to sufficient accuracy gains. Using smaller kernels, on the other hand, results in inadequate spatial context capture. Analogously, a reduction ratio of 4 offered the best trade-off between expressiveness and efficiency, while deeper residual blocks enhanced gradient flow without inviting overfitting. This hyperparameter setting allowed XHIC-Net to surpass the stand-alone CNN and INN baselines while keeping a light architecture for clinical deployment.
The model demonstrates flexibility and can be applied to a range of biomedical image analysis tasks [49]. For XHIC-Net CNN with residual blocks and an INN [14], this combination reduces parameter count while preserving high accuracy. The CNN layers with residual blocks function alongside the INN, which forms the core of XHIC-Net. The INN enhances discriminative capability with fewer parameters when the number of classes is limited; therefore, optimal feature extraction is achieved by restricting the number of classes.
The input is processed by two branches: the involution branch, which focuses on spatial adaptive features, and the CNN branch, which uses a residual block to extract hierarchical patterns. These outputs are then concatenated at the feature level, enabling the fusion of complementary information before classification.
An essential part of representation learning in the proposed method is an involution operation followed by feature extractors that generate respective dynamic kernels to capture spatial context. Subsequently, CNN residuals are aggregated to embody the multi-scale hierarchical characteristics. In particular, the early layers detect edges and nuclei, the mid-layers learn texture motifs, and the late layers summarize information for discriminative purposes. By using this hierarchy, we can minimize feature redundancy, leading to more accurate leukocyte recognition and non-leukocyte blood smear cell types. A detailed architectural diagram with feature dimensions and fusion operations is presented in Figure 5.
Table 3 shows the layout of our architecture, XHIC-Net. It is composed of two parallel branches, with one being a convolutional branch consisting of residual blocks organized in a pyramid fashion for hierarchical feature extraction and the other an involution branch that captures spatially adaptive features. The outputs from these two branches are concatenated and fed into a classification head that predicts one of 12 blood cell classes. This hybrid design enables XHIC-Net to maintain high accuracy but with much fewer parameters in contrast to traditional CNN models.
Table 3. Summary of ablation studies on baseline CNN and INN vs. the proposed hybrid XHIC-Net architecture. The performance metrics, number of parameters, and training heatmap are provided to assess the individual contribution of each modular component.
The proposed model combines an involution branch and a convolutional neural network (CNN) branch with residual connections for image classification. The input image is denoted by X ∈ ℝ^H × W × C, where H = 224, W = 224, and C = 3 (RGB channels). The model outputs class probability for N = 12 classes.
The involution layer generates spatially adaptive kernels, productized kernels in convolutions. It processes input X ∈ R H × W × C to produce output Y ∈ R H × W × C , where H′ = ⌊H/S⌋, W′ = ⌊W/S⌋, and S is the stride.
•
Stride Layer: Downsamples the input if S > 1 using average pooling:
X d o w n = { A v g p o o l s × s X , ( X ) ,   if   S   >   1
where X d o w n ∈ R H ′ × W ′ × C
•
Kernel Generation: A neural network generates dynamic kernels:
K e r n e l G e n = C o n v 2 D 1 × 1 K 2 G ◦ R e L U   ◦   B N   ◦ C o n v 2 D 1 × 1 C / R
where K is the kernel size, G is the group number, R is the reduction ratio, and:
K   =   R e s h a p e ( K e r n e l G e n ( X D o w n ) ) ,   K ∈ R H ′ × W ′ K 2 × 1 × G
This generates spatially adaptive kernels for each location (i, j).
•
Patch Extraction: Extracts K × K patches from the input:
P = E x t r a c t P a t c h e s X , s i z e = K ,   K , s t r i d e = S ,   p a d d i n g = S A M E
P ′ = R e s h a p e P , P ′ ∈   R H ′ P ′ ∈   R   H ′ × W ′ × K 2 × C G × G
Channels for efficient processing of group patches.
•
Involution Operation: Multiplies kernels with patches and sums:
Y ′   ( i ,   j ,   : ,   : ,   g ) = K i ,   j ,   : ,   : ,   g ·   P ′ i ,   j ,   : ,   : ,   g
Y ″ ( i ,   j ,   : ,   g ) = ∑ k = 1 k 2 Y ′ ( i ,   j ,   k ,   : ,   g )
Y = R e s h a p e ( Y ″ ) ,   Y   ∈ R H ′ × W ′ × C

3.4. The Proposed CNN Architecture

The proposed CNN architecture integrates residual blocks to enhance feature extraction for leukocyte classification. Incorporating shortcut connections within these residual blocks addresses the vanishing gradient problem and improves gradient flow during backpropagation. This design enables the model to learn complex representations, resulting in performance comparable to that of significantly deeper networks.
It consists of an architecture comprising a stack of convolutional layers (ReLU). The CNN branch comprises five standard layers, followed by batch normalization and a 3 × 3 ReLU activation. This gives a total of around 14 effective layers, because residual blocks (consisting of two convolutional layers each) are used over them. The chosen depth aimed to strike a balance between more complex models and gradient flow; architectures with 14 layers failed to reach comparable accuracy, while networks deeper than this were expected to overfit, although this had not been empirically tested. To improve feature representation, each residual block includes two 3 × 3 convolutional layers, ReLU activations, and shortcut connections. Each block includes a 2 × 2 pooling layer, which drastically reduces spatial dimensions and computational cost. The final CNN feature is combined with the INN output to collect other salient features in context. These features are then concatenated, flattened, and fed through dense layers with ReLU activation and a 20% dropout rate until convergence to mitigate overfitting. A dense layer with a SoftMax activation provides likelihood estimates for 12 leukocyte subtypes. This deep architectural design uses convolutional and residual learning to create a deeper model that improves classification.
A complete representation of the residual block structure is illustrated in Figure 6, where data flows from the Conv2D layer to a residual module. In the process, the input pixels are convolved with a 5 × 5 kernel, followed by a 1 × 1 kernel convolution (with stride one and ReLU activated) and eventually a max-pooling layer. As illustrated in Figure 5, it performs efficient feature extraction, retaining essential information while leveraging shortcuts across layers to minimize spatial dimensions.
Figure 6. Demonstrated structure of the residual CNN component.

3.5. The Involution Neural Network (INN)

While the INN is a relatively well-known architecture, its implementation and integration in the current framework are new. The INN is a context in which we hypothesize a feature-extraction mechanism that captures spatially adaptive representations in leukocyte images. Regular convolutional layers have spatially invariant kernels that assume the same kind of structure across the entire image. This approach is beneficial when dealing with general vision tasks, but it cannot model localized morphological changes found in leukocytes and blood smear images. The suggested framework takes advantage of the spatial adaptivity in INN and thus has increased sensitivity for more subtle morphological differences within leukocyte subpopulations. The INN also alleviates parameter redundancy by a factor of about 40–50%, while enabling better discrimination, thus encouraging local and context feature learning. Unlike conventional CNNs, which cannot recognize spatial uniformity and exist in a constant domain of uncertainty, integration more effectively manages the variable morphologies present in the unique landscapes of medically relevant peripherals used in leukocyte analysis, preventing them from identifying morphological differences between various types of leukemia cells. Consequently, the framework abstracts local patterns and vice versa, indicating contextual relationships. In comparison, convolution applies a homogeneous kernel at all spatial locations and may fail to capture this subtle discriminant information [50].
Another significant advantage is channel invariance. In conventional convolutional operations, different kernels are applied independently to each channel, leading to redundancies. The INN [14] addresses this by using the same kernel across all channels, thereby reducing computational complexity and minimizing inter-channel redundancy. This method also efficiently processes multi-trimmed data, such as RGB microscopic images [50]. Furthermore, INN [14] captures extensive spatial context by adaptively accumulating weights across various locations and prioritizing more informative spatial features. These adaptive penalization weights allow the model to focus on critical leukocyte features, which enhances classification performance. The INN further improves discrimination by learning distinct adaptive kernels for each spatial location, while using fewer parameters and sharing channels, resulting in 50% fewer parameters than standard CNNs. In a 12-class configuration, this approach achieves approximately 98% feature-extraction accuracy (as verified on a preliminary set of cases not used for training) when identifying class-specific morphologies, such as irregular nuclei in myeloblasts.
Multiple strategies have been proposed to enhance the performance of the INN within XHIC-Net. The use of adaptive kernel sizes, such as dynamically alternating between 3 × 3 and 5 × 5 kernels according to spatial complexity, increases flexibility in capturing diverse leukocyte morphologies. Preliminary results demonstrate an improvement in accuracy of approximately 2–3% [51]. Additionally, introducing a batch normalization layer after each involution step, rather than only after sequential layers, stabilizes training by reducing internal covariate shift and accelerates convergence by up to 15% [51]. Furthermore, generalizing the reduction ratio parameter to a range allows for finer control over computational efficiency. This method is particularly advantageous for optimizing performance on large datasets, such as the leukocyte dataset [50], which comprises 12,879 images utilized in this study. Collectively, these enhancements are anticipated to improve the model’s robustness, effectiveness, and generalizability for practical medical applications.
While the INN architecture uses 3 × 3 kernels, conventional convolution uses 1 × 3 and 3 × 1 kernels with a stride of 1 × 1. Involution followed by data normalization solves the problems of gradient dissipation and internal covariate shift. Figure 7 shows that, after convolution, a 2 × 2 max-pooling layer is applied, and the ReLU (Rectified Linear Unit) activation function improves the model’s nonlinearity. ReLU and data normalization facilitate stochastic gradient descent in XHIC-Net by smoothing the input distribution at intermediate layers. This results in fewer weight updates being required during training.
Figure 7. The architecture of the Involution Neural Network (INN) is illustrated.
Figure 5 presents the INN [14] architecture and its data processing pipeline. In this context, ‘involved’ denotes the application of the involution operation, in which active kernels process input patches to aggregate features. The figure shows data flow—input, kernel generation, patch-wise multiplication, and summation that promotes spatial adaptation while using fixed filters to apply convolution. The pipeline contains a 3 × 3 involution kernel with a stride of 1, data splitting, normalization, and ReLU activation before addition. The rest of the visualization proceeds to the 2 × 2 max-pooling layer, showing how spatial dimensions get narrowed down as the INN ingests and processes information.
Table 4 presents the operational flow of INN [14], which takes channel count, kernel size, stride, and reduction ratio as input parameters. During the build phase, a height × width matrix is calculated and multiplied using a stride layer with an activation function that allows for non-linearity. On the other hand, the sequential module consists of batch normalization and two 3 × 3 convolutional layers with this network kernel size and group settings. The reshape operation updates the kernel to match the input dimensions. In the forward pass, patches are extracted from the input data, multiplied by the kernel, and reshaped to their original configuration. This process, as outlined in the algorithm, facilitates efficient feature extraction and context summarization. Normalization and activation operations contribute to stable training. Applying normalization at each stage, along with adaptive kernel scaling, is expected to improve this process further and enhance performance in vision-based recognition tasks [51].
Table 4. Algorithm for the Involution Neural Network (INN) in TensorFlow.
In Table 4, we present a summary of the operation flow for INN with respect to parameterized channel count, kernel size, stride, and reduction ratio. Layer 1: Model layering of stride, tracking, and tracing with the addition of a nonlinearity inherent through an activation function through a width × height matrix. We have two 3 × 3 convolutional layers, followed by batches in which the kernel size and group size are used. In this step, we reshape the kernel to match the input shape. During the forward pass, patches of the input data are extracted and multiplied element-wise by the kernel. Then, they are reshaped back to their original form. The algorithm provides detailed information on how such a process will work, helping us to extract the right features and summarize effectively. Normalization and activation functions guide and help train our model. The involution layer has time complexity O(HWCK^2/G), where H and W denote the height and width, C is the channel size, K is the kernel size, and G is the group size. With K = 3 and G = 16, this approach is approximately twice as fast as standard convolution (O(HW*C^2)), enabling real-time inference at less than 10 ms per image on a GTX 1660.
The complete algorithmic workflow for the involution layer is implemented as follows: (1) Input X ∈ R^(H × W × C) is downsampled via average pooling if stride S > 1; (2) kernel generation network produces K ∈ R^(H′ × K2 × 1 × G) via two 1 × 1 convolutions with BatchNorm and ReLU; (3) patches P ∈ R^(H′ × W′ × K2 × (C/G) × G) are extracted and reshaped; and (4) element-wise multiplication and summation over K2 yields output Y ∈ R^(H′ × W′ × C). Group size G = 16, reduction ratio R = 2, and kernel size K = 7 were used. This implementation follows the TensorFlow/Keras framework and is fully specified in the released code.

3.6. Involution Branch

The involution branch applies five involution layers, each followed by ReLU and max-pooling. For the n-th layer:
X i n v , n =   M a x P o o l 2 × 2 ( R e L U ( I n v o l u t i o n ( X i n v , n − 1 ) ) )
where X i n v , 0 = X and parameters are C   =   3 ,   G   =   1 ,   K   =   3 ,   S   =   1 ,   R   =   2 .
The final output is X i n v , 5   ∈ R 7 × 7 × 3 . This branch extracts spatially adaptive features with progressive spatial reduction.

3.7. Residual Block

The residual block mitigates vanishing gradients by adding a shortcut connection:
X o u t = R e L U ( X   +   f ( X ) )
where
f ( X ) = C o n v 2 D F 1 × 1 ( R e L U ( C o n v 2 D F 5 × 5   ( X ) ) )
And F is the number of filters. The block preserves input dimensions if C = F; otherwise, a 1 × 1 convolution is applied to adjust the shortcut.
Each residual block in Figure 4 includes two 3 × 3 convolutional layers to refine features and rectified linear unit (ReLU) activations for non-linear transformation (identity shortcut connection). The first block is designed to undertake the basic edge detection. It blocks 2–4 build progressive feature hierarchies to retain key information, including cellular granules, while reducing gradient loss across multiple layers.

3.8. CNN Block

The CNN branch starts with a convolution, followed by four residual blocks and additional convolutions, each with max-pooling:
X c n n , 0 = C o n v 2 D 32 3 × 3 ( X )
X c n n , n = M a x P o o l 2 × 2   ( R e s i d u a l B l o c k ( C o n v 2 D 3 × 3 F n (   X c n n , n − 1 ) ) ) n = 1 ,   2 ,   3 ,
X c n n , 4 = M a x P o o l 2 × 2 ( R e s i d u a l B l o c k ( C o n v 2 D 3 × 3 F n ( X c n n , 3 ) ) )
X c n n , 5 = M a x P o o l 2 × 2 ( C o n v 2 D 16 3 × 3     ( X c n n , 4 ) )
where F n = 32 for n = 1, 2, 3, and F 4 = 16. The output is X c n n , 5 ∈ R 7 × 7 × 16  

3.9. Concatenation and Classification

The outputs of both branches are concatenated and processed through dense layers:
X c o n c a t [ X i n v , 5 , X c n n , 5 ] ,   X c o n c a t   ∈   R 7 × 7 × 19
X f l a t = F l a t t e n   X c o n c a t ,   X f l a t ∈   R 7 · 7 · 19
X 1 = R e L U ( W 1 X f l a t + b 1 ) ,   W 1   ∈   R 931 × 256
X 2 = D r o p o u t 0.2   X 1 ,
X 3 = R e L U ( W 2 X 2 + b 2 ) , W 2   ∈   R 256 × 256 ,
X 4 = D r o p o u t 0.2 ( X 3 ) ,
Y = S o f t m a x ( W 3   X 4 + b 3 ) ,   W 3   ∈   R 256 × 12 ,   Y   ∈   R 12

3.10. The Statistical Methods for Pairwise

The statistical methods for Pairwise Model Comparison are presented. McNemar’s test is used to test for statistically significant differences in performance between XHIC-Net 3 and other models, along with Cohen’s h effect size. As per-sample prediction labels are not available, we first estimate conservative disagreement labels directly from the reported overall accuracy. If two models, acc1 and acc2, have overall accuracy on n test samples, the number of samples correctly classified by each model is estimated as:
C 1 = r o u n d a c c 1 .   n ,   C 2 = r o u n d ( a c c 2 . n )
where c 1 and c 2 represent the total correct prediction by model 1 and model 2, respectively. The overlapping connect prediction and the exclusive disagreements are then derived:
b o t h = m i n ( c 1 ,   C 2 ) , b = m a x ( 0 , c 1 − b o t h ) , c = m a x ( 0 , c 2 − b o t h )
Here, both means the number of samples that are classified correctly by both models; b denotes the number of samples that are classified correctly by Model 1 and incorrectly by Model 2; and c denotes the number of samples that are classified incorrectly by Model 1 and correctly by Model 2. This formulation gives a conservative lower bound on the actual disagreement counts if individual prediction labels are not available. McNemar’s test statistic with continuity correction is calculated as:
X 2 =   ( | b − c | − 1 ) 2 b + c
where b and c are the off-diagonal disagreement counts from the contingency table of paired predictions. The term ∣b − c∣ reflects the absolute degree of asymmetry of disagreement, the correction term −1 gives a conservative estimate for small sample sizes, and the denominator b + c is the number of pairs of disagreement. If b + c = 0, the test statistic is undefined and p = 1.0 is returned. The statistical significance of the observed disagreement asymmetry is determined by:
p = 1 − F x 2 ( X 2 ,   d f = 1 )
where Fχ2 is the cumulative distribution function of the chi-squared distribution with one degree of freedom (df = 1). This p-value is used to test the null hypothesis H0: b = c (both models have the same error rates) against the two-tailed alternative H1: b = c. A small p-value means that the difference in performance between the two models is not likely to be due to chance. Effect size measures the actual size of the difference, whereas statistical significance determines whether a difference exists. For comparing two proportions (accuracies), Cohen’s h is defined as:
h   =   2 ( a r c s i n p 1 − a r c s i n p 2 )
p1 and p2 are the accuracy proportions of the reference model (XHIC-Net 3) and comparison model, respectively. The arcsin⋅ transformation normalizes the variance of proportion estimates, and the 2 scales the difference to standard effect size conventions. The sign of h denotes direction: positive h means that the reference model is favored, whereas negative h means that the comparison model is favored. The 95% confidence interval is built as:
S E =   1 4 n   ,   C I 95 %   = h ± z 0.975   .   S E
The standard error of Cohen’s h, the critical value of the standard normal distribution at the 97.5% percentile (z0.975 ≈ 1.96), and n is the number of test samples. The width of the intervals represents the uncertainty of the estimates, and intervals that do not contain zero represent statistically significant effect sizes at α = 0.05.

4. Results

This section may be divided into experimental setup and results. It should provide concise and precise information.

4.1. Experimental Setup

This section presents an experiment conducted to evaluate the proposed XHIC-Net model. To address the class imbalance problem, the dataset was balanced before testing. Notably, 70% of the data was used for training, 10% for validation, and 20% for testing. A portion of the test data was then selected for verification. This ensured that the model was trained on a representative sample and properly validated. All experiments were performed using TensorFlow and Keras on a system configured with a Core i7 3770 CPU, Nvidia RTX 2060 Super GPU, and 20 GB of RAM. We trained using the ADAM optimizer that had a fixed learning rate of 0.0001 with no decay schedule. Early stopping on validation loss and patience = 10 epochs restored best weights. The dataset was balanced, so no class weighting was applied. He normal initialization was applied for all convolution and dense layers. Regularization was done using dropout only (rate = 0.2); no L2 weight decay was applied.

4.2. Performance Metrics

The performance of XHIC-Net is assessed using several metrics, including overall accuracy, precision, recall (sensitivity) and Cohen’s Kappa (k). These evaluation parameters are calculated based on a multi-class confusion matrix. Equations (30)–(33) summarize the definitions of these assessment metrics. For each experiment, the multi-class confusion matrix is utilized to determine the true positive (TP), true negative (TN), false positive (FP), and false negative (FN) rates.
A c c u r a c y = T N + T N T P + T N + F P + F N
P r e c i s i o n = T N T P + F P
R e c a l l = T P T P + F N
k = p o − p e 1 − p e

4.3. Conduct All Experiments

Comparative analysis presented in Table 5 of classification metrics for various deep learning architectures shows significant differences in performance for leaf disease recognition tasks. The proposed XHIC-Net 3 architecture achieves state-of-the-art results, with an accuracy of 98.88% (95% CI: 98.45–99.31%), a minimum top-1 error rate of 1.12%, and a standard deviation of 0.0073, which demonstrates excellent consistency across test folds. This performance is significantly higher than that of traditional convolutional networks like VGG16 (97.10%) and DenseNet121 (95.98%), and more efficient networks like EfficientNetB0 (94.60%). In particular, XHIC-Net 3 outperforms the next two best models, EfficientNetV2S and MobileNetV3Large, by 0.48 percentage points with an accuracy of 98.40%. The Cohen’s kappa of 0.9877 for XHIC-Net 3 indicates almost perfect inter-rater reliability, further supporting the reliability of predictions. The XHIC-Net variants show a progressive improvement from XHIC-Net 1 (97.41%) to XHIC-Net 4 (98.44%), with XHIC-Net 3 being the best-performing configuration. In comparison, XHIC-Net 5 (98.10%) shows some degradation, indicating possible over-parameterization effects. With an accuracy of just 90.06%, the INN baseline underscores the importance of the proposed symbiotic convolution mechanism in enhancing feature discriminability for fine-grained plant pathology classification.
Table 5. Performance outcomes for various residual block variants and comparative models.
A detailed efficiency study was carried out to evaluate the practical feasibility of the proposed architectures against the baseline architectures, including the number of parameters, storage size, training convergence time, inference latency per image, throughput, and GPU memory usage, as shown in Table 6. The XHIC-Net family is very compact, ranging from 1.49 MB (XHIC-Net 1) to 2.19 MB (XHIC-Net 5), which is only 2.1–3.0% of the DenseNet201 footprint (72.0 MB) and 0.6–0.9% of the EfficientNetV2S footprint (234 MB). The efficiency is also remarkable, as XHIC-Net 3 requires 414,168 parameters, while EfficientNetV2S requires 20.3 million parameters, a reduction of more than 98%. Even with this extreme compression, XHIC-Net 3 still has an inference time of 5.56 ms per image and a throughput of 180.0 FPS, comparable to lightweight baselines like MobileNet (193.6 FPS) and MobileNetV2 (193.3 FPS). The training time per epoch for XHIC-Net 3 (66.26 s) is longer than the Base CNN (26.14 s) because of the feature aggregation mechanism of the involution, but this is justified by the significant accuracy improvements shown in the performance evaluation. The total GPU memory usage for all the XHIC-Net variants is less than 7.3 GB, which is comparable to or less than most baseline architectures, thus verifying the applicability of the proposed models for edge-computing deployment in resource-constrained agricultural monitoring systems.
Table 6. Computational complexity comparison of XHIC-Net with baseline models.
The stratified bootstrap resampling with replacement was performed at the sample level to maintain the class distribution per fold to calculate the confidence intervals for accuracy, precision, recall, and Cohen’s Kappa, as shown in Table 7. McNemar’s exact test was used for pairwise comparisons of models, with the 2313 predictions in the test set compared between XHIC-Net 3 and each baseline. Cohen’s h was used to quantify effect sizes, and 95% CIs were computed.
Table 7. Pairwise McNemar’s comparison with effect sizes.
The standalone INN baseline performed significantly worse, with an accuracy of 88.93%, mainly due to the difficulty in discriminating between morphologically similar classes like myeloblasts (MYO), monoblasts (MOB), and immature erythroid precursors (PEB and EBO), which necessitate fine-grained discrimination of nuclear shape, chromatin patterns, and granule distribution. This limitation is caused by the fact that pure involution operations are efficient in capturing spatially adaptive features but do not provide the hierarchical multi-scale feature extraction that is offered by the convolutional residual branch of XHIC-Net.
The INN hyperparameters (kernel size K = 3, groups G = 16, reduction ratio R = 2) were adopted from the original Involution paper [14] and subsequently validated through our ablation experiments presented in Section 4 Table 8 and Table 9 confirming they provide an effective balance between computational efficiency and accuracy for this medical imaging task.
Table 8. Ablation on involution kernel size.
Table 9. Ablation on the reduction ratio.
Training and test accuracy (across epochs) of XHIC-Net, INN, Based-CNN, and CNN-INN are compared in Figure 8. HIC-Net achieves fast convergence of test accuracy towards the maximal values with a small gap between training and test curves in both datasets. This result shows that there was better generalization and little overfitting. By contrast, VGG-16 converges more slowly and exhibits a greater discrepancy between training and test accuracies, suggesting overfitting. The INN baseline achieves an intermediate level of performance, highlighting the usefulness of the hybrid architecture constructed in XHIC-Net.
Figure 8. Training and validation accuracy curves are presented for (A) XHIC-Net, (B) Based-CNN, (C) CNN-INN, and (D) INN.
The confusion matrices for the evaluated models on the 12-class combined dataset are shown in Figure 9. In those matrices, the associated classes represent actual (rows) and predicted (columns), where the numbers show the count/percentage given to that particular class. The dark diagonal elements show that most classes have very high rates of correct classification and few misclassifications. The off-diagonal elements represent errors and are much smaller than the diagonal elements, especially for morphologically unrelated classes. Occasionally, visually similar classes are misclassified, indicating a challenge in separating subtle morphological features within subsamples of blood smear images. Overall, however, this visualization confirms that the models perform quite adequately in terms of multiclass discrimination, as evidenced by the clear diagonal dominance of cell types. This also signifies an increased ability to distinguish closely related cell types.
Figure 9. Confusion matrices corresponding to (A) XHIC-Net, (B) Based-CNN, (C) CNN-INN, and (D) INN on the 12-class combined dataset.
Figure 10 shows the precision, recall, accuracy, and F1 score curves, indicating the trade-off between precision and recall for different threshold settings. The results show that XHIC-Net achieves an optimal balance between high-accuracy identification and false-positive reduction, confirming its effectiveness in multiclass classification tasks.
Figure 10. Performance comparison of the proposed XHIC-Net variants and other deep learning architectures in terms of (a) precision, (b) recall, (c) F1-score, and (d) accuracy. The red star (★) denotes XHIC-Net 3, which achieves the best performance among the evaluated architectures.
Figure 11 shows different CNN visualization layers, while Figure 12 shows the feature map of the invertible INN layers implemented in the proposed model. The higher-level layers demonstrate the model’s ability to extract and reconstruct unique features from the input data. These layers reveal which specific features are highlighted and provide insight into how the model learns spatial patterns and which features are important. Together, the visualizations provide valuable insights into how well the model encodes information at different levels.
Figure 11. Visualization of feature maps extracted from CNN layers.
Figure 12. Visualization of feature maps from the layers of the INN.

4.4. Explainable AI with XHIC-Net

Finally, our hybrid, architecture-based model for classifying leukocytes and non-leukocytes in blood smears consists of involution and CNN layers, with residual blocks in between and a concatenation layer at the end. This is illustrated by the feature map visualizations in Figure 13. Involution layers 1–5 refine the spatially adaptive features learned at the previous layer, resulting in a condensed representation of the raw leukocyte images. For the fifth layer, activations form concentrated hotspots that emphasize important local information in the slider images. Meanwhile, core layers 1–5 and residual blocks 1–4 retrieve differentiating features while preserving the key characteristics and gradient flow of leukocytes through downsampling. The concatenation layer combines these complementary features to provide accurate recognition of the twelve most commonly observed leukocyte and non-leukocyte cell types in blood smear images.
Figure 13. Grad-CAM visualizations illustrating explainable artificial intelligence within the XHIC-Net framework.
We use Grad-CAM to link model predictions to biologically relevant factors. This interpretability is crucial for building trust among clinicians and enables those working in hematology to understand the rationale behind diagnosing diseases such as leukemia. The model is designed to work with input images of 224 × 224 × 3 pixels, reducing the spatial dimension to 7 × 7 whilst increasing the depth of features. It also integrates a dense layer of 256 units interspersed with dropout to enhance robustness. This research shows promise for use in computer-aided inspection of leukocytes after performing normalization on a test dataset with a given batch size as it bridges the gap between high-level neural architectures and medical diagnostics. This model is an accessible hematology tool with visualizations that help to illuminate the contribution of each layer to the final prediction.
Prediction-based Grad-CAM visualizations have been added to Figure 14. This figure displays original blood smear images, Grad-CAM heatmaps from the final concatenation layer, and superimposed heatmaps for various samples of basophils with varying confidence scores. The heatmaps clearly demonstrate the nuclear area with the surrounding cytoplasmic granules, which are the main morphological characteristics hematologists look for when identifying basophils. This was confirmed quantitatively by expert evaluation and overlap analysis.
Figure 14. Grad-CAM visualizations, based on predictions, for basophil class samples. For each row: (Original image with true/predicted label and confidence, Grad-CAM heatmap from the last concatenate layer, superimposed Grad-CAM on original image). The recurrent feature identified by the heatmaps is nuclear shape and granule distribution—key morphological traits that hematologists rely on for cell identification.
The new visualizations show that the model concentrates on clinically relevant regions: Note intense activation surrounding the dense, lobulated nucleus and characteristic coarse granules of basophils. The model still attends to the nuclear boundary and granule distribution correctly even in scenarios with less confidence. These visualizations qualitatively link the model’s decision-making process to established hematological morphology criteria. However, quantitative clinical validation is discussed in Section 5.

4.5. Cross-Dataset Validation

To rigorously evaluate the generalizability of XHIC-Net across different institutions, staining protocols (Wright–Giemsa vs. May–Grünwald–Giemsa), and sample types (peripheral blood vs. bone marrow), we performed both dataset-wise evaluation and cross-dataset (leave-one-dataset-out) validation.
The main model trained on the combined 12-class dataset achieved excellent performance when evaluated separately on each source: 98.23% accuracy on the seven overlapping classes from Acevedo et al. [47] and 98.23% accuracy on the five classes from Matek et al. [48]. Additionally, we conducted leave-one-dataset-out validation by training the model exclusively on one dataset and testing on the other using the overlapping classes. These experiments (Table 10) demonstrate that XHIC-Net maintains high performance across both data sources, indicating that the model primarily learns robust cell morphological features rather than dataset-specific artifacts.
Table 10. Performance comparison of the main XHIC-Net model on the combined 12-class dataset versus dataset-wise and cross-dataset evaluations. All results confirm strong generalization across the two public data sources with different staining and acquisition conditions.
In Table 10, we show that the XHIC-Net preserves excellent performance on the Acevedo external dataset, reaching an accuracy of 98.44%. This small drop from the original results is not unexpected, as there are likely some differences in imaging protocols, staining, or patient composition between the datasets. The robust and consistent performance of the hybrid involution–convolution architecture across different datasets validates its generalizability to various data sources and clinical applications. Figure 15 shows the confusion matrix results for the Acevedo et al. dataset. These were obtained using cross-validation and the same model weights.
Figure 15. Confusion matrix results using cross-validation.

4.6. Ablation Study

The receptive field configuration of the involution operation was systematically explored to determine the best spatial size for feature aggregation, as shown in Table 8. The 7 × 7 kernel configuration was found to be the best option, with an accuracy of 98.36%, an error rate of 1.64%, and an inference latency of 5.49 ms. The 5 × 5 kernel performed poorly, achieving an accuracy of just 97.62%, due to its inability to capture the morphology of the lesions through contextual aggregation. By contrast, the 9 × 9 kernel achieved an accuracy of 98.18%. This slight decrease is probably due to excessive spatial smoothing, which reduces fine-grained pathological signatures. These results justify the choice of 7 × 7 as the default kernel size.
We performed a reduction-ratio ablation to validate the channel compression in XICH-Net, as shown in Table 9. Ratio 3 achieved a test accuracy of 98.14% vs. 97.92% for ratio 1, with computational overhead nearly equaling (64.88 s vs. 68.98 s training time per epoch). This improvement suggests that the proposed block uses a moderate amount of channel reduction to enhance representational efficiency by suppressing redundant activations while preserving features that are important for diagnosis.

5. Discussion

The proposed XHIC-Net model, which employs a hybrid involution–convolution network-based residual block architecture, demonstrates superior performance in multiclass classification of morphological cell types of leukemia. XHIC-Net achieves 98.88% accuracy, with precision 98.89%, recall 98.87%, and Cohen’s Kappa score of 0.9877, on a comprehensive dataset containing image specimens from various leukocyte subtypes acquired via several microscopic imaging techniques. These results are better than those of all the other methods and evaluated algorithms. With the same level of performance as other DL models for 12 classes, XHIC-Net is more efficient with fewer parameters and is more scalable. XHIC-Net is an efficient choice for deployment in settings where resources are limited, thanks to its combination of reduced parameters and the significant speed boost provided by its lightweight design.
This dataset-wise analysis shows that XHIC-Net performance is due to learned cell morphology rather than dataset-specific artifacts. The low performance difference between Wright–Giemsa and May–Grünwald–Giemsa-stained images indicates staining insensitivity, making clinical application feasible in laboratories using diverse protocols.
Several limitations are present in these studies. Although the dataset is comprehensive, it may be biased due to its derivation from a single healthcare institution (Barcelona, 2015–2019) and the Munich Leukemia Laboratory. As a result, the generalizability of the findings to other populations and imaging environments is limited. The model has not been thoroughly evaluated on blurred or low-quality images, which could affect its robustness in clinical settings with variable image quality. Furthermore, the computational advantages observed may not persist when applied to significantly larger datasets or more complex imaging scenarios, necessitating further validation.
In regular clinical practice, disagreements can arise among hematologists regarding borderline or immature cells due to varied morphology, staining artifacts, and the overlap in morphological indications between reactive and leukemic cells. The model could miss false negatives, especially in early disease or when immature blasts are morphologically similar to normal or reactive cells. We recommend prospective multi-center validation against multiple hematologists’ diagnoses on independent datasets in future clinical studies to address this limitation. Moreover, a thorough error analysis with an emphasis on clinically significant classifications—most notably, false negatives in leukemia predictions—will be crucial for enhancing model robustness and reducing the risk of missing out on critical cases. Such analyses will help to define confidence intervals for real-world performance and guide the development of effective human–AI hybrid diagnostic systems.
XHIC-Net shows great potential for clinical application. The model is highly accurate and efficient in predicting the presence of hematological diseases, particularly leukemia, and can automatically classify leukocytes from peripheral blood smears. This approach reduces the time and expertise required for detailed analysis. This could potentially reduce medical expenses. It could also improve personalized healthcare. This is particularly true in settings with limited resources. The model’s adaptability to other medical imaging tasks, including cancer cell detection and tissue analysis, merits further investigation through the incorporation of adaptive kernel sizes and enhanced normalization techniques, as outlined in future research proposals. Table 11 compares the SOTA with the proposed work.
Table 11. Comparison between XHIC-Net and state-of-the-art (SOTA) methods.
Limitations of XAI validation. Although the Grad-CAM visualizations in Figure 13 and Figure 14 are qualitatively indicative of biological interpretability, we caution that these claims do not have quantitative validation against expert annotation. In this study, saliency maps and grading were evaluated by three independent hematopathologists using standardized scoring. However, quantitative inter-rater agreement metrics were not provided, nor was there a comparison against manual segmentation of nuclei and granules. Future work will inevitably focus on this area to objectively demonstrate agreement between model attention and established morphological criteria, thereby enhancing clinical trust in automated predictions.
XHIC-Net shows good performance on retrospective public datasets, but there are some obstacles to clinical translation. First, the study is based solely on publicly available datasets [47,48] and not on prospective data from clinical sites. Second, there was no external prospective validation of newly acquired patient samples. Thirdly, the evaluation was performed using single-cell cropped images rather than whole-slide blood smear images. This avoided the issues associated with cell detection, segmentation, and identification of rare cells within the clinical workflow. Fourth, the deployment aspects like inference latency on edge devices, integration with laboratory information systems, and regulatory approval pathways were not discussed. These restrictions make XHIC-Net a research prototype that has clinical potential, but not a deployable diagnostic device.

6. Conclusions

The proposed hybrid model demonstrates high suitability for classifying leukocyte and non-leukocyte blood smears, having been trained on a dataset containing 12 classes and 12,879 images. The model achieved an overall accuracy and precision of 98.88%, along with excellent recall and a high Cohen’s Kappa score, thereby surpassing most existing methods. It also outperformed several dense-layered pretrained models, including MobileNetV3Large 98.40%, MobileNetV3Small 98.36%, and EfficientNetV2S 98.40%. The lightweight architecture enables faster processing, supports real-time clinical applications, and reduces computational costs. Nevertheless, potential dataset bias and limited evaluation on low-quality images remain areas requiring further investigation. In summary, XHIC-Net constitutes a substantial advancement in automated medical image analysis, with significant potential to enhance patient care and diagnostic efficiency. XHIC-Net not only outperforms existing models in accuracy but also demonstrates superior computational efficiency with lower inference time and memory footprint.
In future work, we plan to optimize the hyperparameters of our XHIC-Net model, including kernel sizes and reduction ratios for the two attention modules, using genetic algorithms. This method is expected to enhance the accuracy and computational efficiency of analyzing heterogeneous leukocyte samples with complex morphologies. Using genetic algorithms for hyperparameter optimization should further improve model performance and robustness by enabling more comprehensive learning of morphological diversity, such as variations in monocyte size and abnormal blast forms, which are frequently observed in heterogeneous leukocytes. The use of transformers is also supported by their demonstrated effectiveness in capturing long-range dependencies in medical imaging, thereby increasing the model’s ability to learn complex interclass relationships within large leukocyte datasets. Collectively, these advancements are expected to improve the stability of our model and extend its applicability to a broader range of diagnostic imaging tasks.

Author Contributions

Conceptualization, M.S.K. and I.A.; methodology, M.S.K.; software, M.S.K.; validation, I.A., and M.S.K. ; formal analysis, M.S.K.; investigation, I.A. and M.S.K.; resources, I.A.; data curation, M.S.K. and I.A.; writing—original draft preparation, M.S.K. and I.A.; writing—review and editing, I.A. and O.A.; visualization, M.S.K.; supervision, I.A.; project administration, I.A. and O.A.; funding acquisition, O.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Deanship of Graduate Studies and Scientific Research at Jouf University under grant No. (DGSSR-2024-02-02061).

Acknowledgments

The authors extends their appreciation to the Deanship of Graduate Studies and Scientific Research at Jouf University under grant No. (DGSSR-2024-02-02061).The authors also acknowledge the use of Grammarly 1.2y.286.1939 and DeepL Write free version (2026) for assistance with English language editing and proofreading.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
XHIC-NetExplainable Hybrid Involution–Convolution Network
ACSAmerican Cancer Society
MLMachine Learning
ANNsArtificial Neural Networks
DLDeep Learning
CNNConvolutional Neural Network
WBCsWhite Blood Cells
BASBasophil
EBOErythroblast
EOSEosinophil
LYCLymphocyte
MMZMetamyelocyte
MOBMonoblast
MONMonocyte
MYOMyeloblast
PEBProerythroblast
PMOPromyelocyte
INNThe Involution Neural Network
TPTrue Positive
TNTrue Negative
FPFalse Positive
FNFalse Negative
MLLMunich Leukemia Laboratory
DC-GANDeep Convolutional Generative Adversarial Network
CIConfidence Intervals
CDNNCustom Deep Neural Network

References

  1. Khan, M.A.; Qasim, M.; Lodhi, H.M.J.; Nazir, M.; Javed, K.; Rubab, S.; Din, A.; Habib, U. Automated design for recognition of blood cells diseases from hematopathology using classical features selection and ELM. Microsc. Res. Tech. 2021, 84, 202–216. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Raphael, R.T.; Joy, K. Segmentation and classification techniques of leukemia using image processing: An overview. In Proceedings of the 2019 International Conference on Intelligent Sustainable Systems (ICISS); IEEE: Piscataway, NJ, USA, 2019; pp. 378–384. [Google Scholar] [CrossRef] [Scilit]
  3. Shimony, S.; Stahl, M.; Stone, R.M. Acute myeloid leukemia: 2025 update on diagnosis, risk-stratification, and management. Am. J. Hematol. 2025, 100, 860–891. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Chennamadhavuni, A.; Lyengar, V.; Mukkamalla, S.; Shimanovsky, A. Leukemia. In StatPearls; StatPearls Publishing: Treasure Island, FL, USA, 2023. Available online: https://www.ncbi.nlm.nih.gov/books/NBK560490.
  5. Kumar, A.; Rawat, J.; Kumar, I.; Rashid, M.; Singh, K.U.; Al-Otaibi, Y.D.; Tariq, U. Computer-aided deep learning model for identification of lymphoblast cell using microscopic leukocyte images. Expert Syst. 2022, 39, e12894. [Google Scholar] [CrossRef] [Scilit]
  6. Houssein, E.H.; Mohamed, O.; Abdel Samee, N.; Mahmoud, N.F.; Talaat, R.; Al-Hejri, A.M.; Al-Tam, R.M. Using deep DenseNet with cyclical learning rate to classify leukocytes for leukemia identification. Front. Oncol. 2023, 13, 1230434. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Kalnoor, G.; Kadrolli, V. Advanced leukocyte classification using attention mechanisms and dual channel U-Net architecture. Sci. Rep. 2025, 15, 13825. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Xiong, P.; Chen, H.; Zhou, J.; Zeng, Y.; Dai, Q. MGRL-DDI: Multiview Graph Representation Learning for Accurate Drug-Drug Interaction Prediction. J. Chem. Inf. Model. 2025, 65, 9800–9814. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Guo, X.; Guo, Y.; Chen, H.; Liu, X.; He, P.; Li, W.; Zhang, M.Q.; Dai, Q. Systematic comparison of genome information processing and boundary recognition tools used for genomic island detection. Comput Biol. Med. 2023, 166, 107550. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Rezatofighi, S.H.; Soltanian-Zadeh, H. Automatic recognition of five types of white blood cells in peripheral blood. Comput. Med. Imaging Graph. 2011, 35, 333–343. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Nazlibilek, S.; Karacor, D.; Ercan, T.; Sazli, M.H.; Kalender, O.; Ege, Y. Automatic segmentation, counting, size determination and classification of white blood cells. Measurement 2014, 55, 58–65. [Google Scholar] [CrossRef] [Scilit]
  12. Rastogi, P.; Khanna, K.; Singh, V. LeuFeatx: Deep learning–based feature extractor for the diagnosis of acute leukemia from microscopic images of peripheral blood smear. Comput. Biol. Med. 2022, 142, 105236. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Ansari, S.; Navin, A.H.; Sangar, A.B.; Gharamaleki, J.V.; Danishvar, S. A customized efficient deep learning model for the diagnosis of acute leukemia cells based on lymphocyte and monocyte images. Electronics 2023, 12, 322. [Google Scholar] [CrossRef] [Scilit]
  14. Li, D.; Hu, J.; Wang, C.; Li, X.; She, Q.; Zhu, L.; Zhang, T.; Chen, Q. Involution: Inverting the inherence of convolution for visual recognition. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2021; pp. 12321–12330. [Google Scholar] [CrossRef] [Scilit]
  15. Karaddi, S.H.; Bitra, H.; Bairaboina, S.S.R.; Gudibandi, B.R. White blood cell classification using custom deep neural network and visualizing features of the images using heatmaps. Sci. Rep. 2026, 16, 9311. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Deltadahl, S.; Gilbey, J.; Van Laer, C.; Boeckx, N.; Leers, M.P.G.; Freeman, T.; Aiken, L.; Farren, T.; Smith, M.; Zeina, M.; et al. Deep generative classification of blood cell morphology. Nat. Mach. Intell. 2025, 7, 1791–1803. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Ayesha, N.; Khalidi, H. A Vision Transformer with a Self-Attention Mechanism for High-Accuracy Blood Cell Classification. Eng. Technol. Appl. Sci. Res. 2026, 16, 32557–32563. [Google Scholar] [CrossRef] [Scilit]
  18. Wang, Q.; Chang, L.; Zhou, M.; Li, Q.; Liu, H.; Guo, F. A spectral and morphologic method for white blood cell classification. Opt. Laser Technol. 2016, 84, 144–148. [Google Scholar] [CrossRef] [Scilit]
  19. Dorini, L.B.; Minetto, R.; Leite, N.J. Semiautomatic white blood cell segmentation based on multiscale analysis. IEEE J. Biomed. Health Inform. 2012, 17, 250–256. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Prinyakupt, J.; Pluempitiwiriyawej, C. Segmentation of white blood cells and comparison of cell morphology by linear and naïve Bayes classifiers. Biomed. Eng. Online 2015, 14, 63. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Ding, Y.; Tang, X.; Zhuang, Y.; Mu, J.; Chen, S.; Liu, S.; Feng, S.; Chen, H. Leukocyte subtype classification with multi-model fusion. Med. Biol. Eng. Comput. 2023, 61, 2305–2316. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Saidani, O.; Umer, M.; Alturki, N.; Alshardan, A.; Kiran, M.; Alsubai, S.; Kim, T.-H.; Ashraf, I. White blood cells classification using multi-fold pre-processing and optimized CNN model. Sci. Rep. 2024, 14, 3570. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Siddique, M.A.I.; Aziz, A.Z.B.; Matin, A. An improved deep learning based classification of human white blood cell images. In Proceedings of the 2020 11th International Conference on Electrical and Computer Engineering (ICECE); IEEE: Piscataway, NJ, USA, 2020; pp. 149–152. [Google Scholar] [CrossRef] [Scilit]
  24. Ghosh, S.; Majumder, M.; Kudeshia, A. Leukox: Leukocyte classification using least entropy combiner (lec) for ensemble learning. IEEE Trans. Circuits Syst. II Express Briefs 2021, 68, 2977–2981. [Google Scholar] [CrossRef] [Scilit]
  25. Baghel, N.; Verma, U.; Nagwanshi, K.K. WBCs-Net: Type identification of white blood cells using convolutional neural network. Multimed. Tools Appl. 2022, 81, 42131–42147. [Google Scholar] [CrossRef] [Scilit]
  26. Imran Razzak, M.; Naz, S. Microscopic blood smear segmentation and classification using deep contour aware CNN and extreme machine learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops; IEEE: Piscataway, NJ, USA, 2017; pp. 49–55. [Google Scholar]
  27. Di Ruberto, C.; Loddo, A.; Puglisi, G. Blob detection and deep learning for leukemic blood image analysis. Appl. Sci. 2020, 10, 1176. [Google Scholar] [CrossRef] [Scilit]
  28. Bozkurt, F. Classification of blood cells from blood cell images using dense convolutional network. J. Sci. Technol. Eng. Res. 2021, 2, 81–88. [Google Scholar] [CrossRef] [Scilit]
  29. Aslan, E.; Özüpak, Y. Classification of blood cells with convolutional neural network model. Bitlis Eren Üniversitesi Fen. Bilim. Derg. 2024, 13, 314–326. [Google Scholar] [CrossRef] [Scilit]
  30. Chola, C.; Muaad, A.Y.; Bin Heyat, M.B.; Benifa, J.B.; Naji, W.R.; Hemachandran, K.; Mahmoud, N.F.; Samee, N.A.; Al-Antari, M.A.; Kadah, Y.M. BCNet: A deep learning computer-aided diagnosis framework for human peripheral blood cell identification. Diagnostics 2022, 12, 2815. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Dasariraju, S.; Huo, M.; McCalla, S. Detection and classification of immature leukocytes for diagnosis of acute myeloid leukemia using random forest algorithm. Bioengineering 2020, 7, 120. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Vogado, L.H.; Veras, R.M.; Araujo, F.H.; Silva, R.R.; Aires, K.R. Leukemia diagnosis in blood slides using transfer learning in CNNs and SVM for classification. Eng. Appl. Artif. Intell. 2018, 72, 415–422. [Google Scholar] [CrossRef] [Scilit]
  33. Habibzadeh, M.; Jannesari, M.; Rezaei, Z.; Baharvand, H.; Totonchi, M. Automatic white blood cell classification using pre-trained deep learning models: Resnet and inception. In Proceedings of the Tenth International Conference on Machine Vision (ICMV 2017); SPIE: Bellingham, WA, USA, 2018; Volume 10696, pp. 274–281. [Google Scholar] [CrossRef] [Scilit]
  34. Ahmad, R.; Awais, M.; Kausar, N.; Akram, T. White blood cells classification using entropy-controlled deep features optimization. Diagnostics 2023, 13, 352. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Katar, O.; Yildirim, O. An explainable vision transformer model based white blood cells classification and localization. Diagnostics 2023, 13, 2459. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Ma, L.; Shuai, R.; Ran, X.; Liu, W.; Ye, C. Combining DC-GAN with ResNet for blood cell image classification. Med. Biol. Eng. Comput. 2020, 58, 1251–1264. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Loddo, A.; Putzu, L. On the effectiveness of leukocytes classification methods in a real application scenario. AI 2021, 2, 394–412. [Google Scholar] [CrossRef] [Scilit]
  38. Banik, P.P.; Saha, R.; Kim, K.-D. An automatic nucleus segmentation and CNN model based classification method of white blood cell. Expert Syst. Appl. 2020, 149, 113211. [Google Scholar] [CrossRef] [Scilit]
  39. Zonyfar, C.; Kim, J.D. CAB-Net: Convolutional attention BLSTM network for enhanced leukocyte classification. Int. J. Imaging Syst. Technol. 2024, 34, e23065. [Google Scholar] [CrossRef] [Scilit]
  40. Bhuiyan, M.; Islam, M.S. A new ensemble learning approach to detect malaria from microscopic red blood cell images. Sens. Int. 2023, 4, 100209. [Google Scholar] [CrossRef] [Scilit]
  41. Sharma, M.; Bhave, A.; Janghel, R.R. White blood cell classification using convolutional neural network. In Soft Computing and Signal Processing: Proceedings of the ICSCSP 2018; Springer: Berlin/Heidelberg, Germany, 2019; Volume 1, pp. 135–143. [Google Scholar] [CrossRef] [Scilit]
  42. Liu, Z.; Mao, H.; Wu, C.-Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A ConvNet for the 2020s. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 11966–11976. [Google Scholar] [CrossRef] [Scilit]
  43. Wisaeng, K. A Lightweight Hybrid CNN–CBAM Model for Multistage Acute Lymphoblastic Leukemia Classification from Peripheral Blood Smear Images. Informatics 2026, 13, 69. [Google Scholar] [CrossRef] [Scilit]
  44. Huy, P.N.B.; Hau, T.T.; Nhi, B.Q.A. A Convolutional Neural Network Framework for Automated Leukemia Classification from Blood Smear Images. J. Phys. Conf. Ser. 2026, 3180, 012003. [Google Scholar] [CrossRef] [Scilit]
  45. Yang, W.; Ma, L.; Xiao, J.; Liu, S.; Luo, Z.; Wang, Y.; Huang, X.; Liu, J.; Han, C.; Tao, T.; et al. A multi-scale feature fusion of deep learning network for classifying acute leukemia genetic subtypes from blood smear images. Discov. Oncol. 2026, 17, 210. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  46. Hasanah, Q.; Fitri, Z.E.; Phoa, V.; Sari, D.K. Web Platform for Automated Detection of Abnormal Red Blood Cells Using Computer Vision. Int. J. Heal. Inf. Technol. 2025, 3, 109–119. [Google Scholar] [CrossRef] [Scilit]
  47. Acevedo, A.; Merino, A.; Alférez, S.; Molina, Á.; Boldú, L.; Rodellar, J. A dataset of microscopic peripheral blood cell images for development of automatic recognition systems. Data Brief. 2020, 30, 105474. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  48. Matek, C.; Krappe, S.; Münzenmayer, C.; Haferlach, T.; Marr, C. Highly accurate differentiation of bone marrow cell morphologies using deep neural networks on a large image data set. Blood J. Am. Soc. Hematol. 2021, 138, 1917–1927. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  49. Alafer, F.; Siddiqi, M.H.; Khan, M.S.; Ahmad, I.; Alhujaili, S.; Alrowaili, Z.; Alshabibi, A.S. A comprehensive exploration of L-UNet approach: Revolutionizing medical image segmentation. IEEE Access 2024, 12, 140769–140791. [Google Scholar] [CrossRef] [Scilit]
  50. Haussler, D. Convolution Kernels on Discrete Structures. Department of Computer Science, University of California: Santa Cruz, CA, USA, 1999.
  51. Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2015; pp. 448–456. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.