Next Article in Journal
Counting the CHIPs: The High-Stakes Role of Clonal Hematopoiesis in Multiple Myeloma
Next Article in Special Issue
Recent Advances in Automated Mitosis Detection in Digital Pathology: A PRISMA-Guided Systematic Review with Evaluation-Regime Stratification (2018–2025)
Previous Article in Journal
Embryonic Lead Acetate Exposure Induces Seizure-like Activity in Zebrafish Larvae
Previous Article in Special Issue
Automated Early Detection of Skin Cancer Using a CNN-ViT-Attention-Based Hybrid Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

CT-Malaria Detection via Adaptive-Weighted Deep Learning Models

1
Department of Computer Science, College of Computer and Information Sciences, Jouf University, Sakaka 72388, Saudi Arabia
2
Faculty of Computing and Information, Al-Baha University, Al-Baha 65528, Saudi Arabia
3
ReDCAD Laboratory, University of Sfax, Sfax 3038, Tunisia
4
Department of Information System, College of Computer and Information Sciences, Jouf University, Sakaka 72388, Saudi Arabia
5
Department of Information Technology, College of Computing and Information Technology at Khulais, University of Jeddah, Jeddah 21959, Saudi Arabia
6
Department of Physics, College of Science, Jouf University, Sakaka 72341, Saudi Arabia
*
Author to whom correspondence should be addressed.
Biomedicines 2026, 14(4), 898; https://doi.org/10.3390/biomedicines14040898
Submission received: 5 March 2026 / Revised: 6 April 2026 / Accepted: 13 April 2026 / Published: 15 April 2026

Abstract

Context: In numerous low- and middle-income nations, malaria remains a significant issue due to the challenges associated with diagnosing it through thin blood smears. The appearance of images can vary significantly depending on the microscope type, magnification, lighting conditions, slide preparation methods, and staining techniques. Due to the delicate morphology of parasites, false negatives might adversely affect patient care. Objective: To achieve optimal outcomes from validation, it is essential to construct a robust and easily replicable process. This pipeline should integrate the optimal elements of classical machine learning and end-to-end deep learning, enhance reliability by pairwise ensembling, and select ensemble weights in a logical, data-driven manner. Method: To achieve our objective, we propose two tracks. The initial track encompasses real-time augmentation, convolution-based feature extraction, and the training of calibrated classical classifiers. The second module focuses on training many convolutional networks from inception to completion. Subsequently, we construct paired ensembles and employ a hybrid methodology to select convex weights for combining the findings. This method initially evaluates a set of candidate weights and then refines them to maximise validation accuracy. Results: The precision of the two-track architecture consistently improves, transitioning from conventional baselines to end-to-end models. Optimal and consistent enhancements are achieved through weighted ensembling. Utilising optimised fusion reduces the incidence of false negatives for subtle parasites and false positives caused by staining artefacts. This yields an accuracy of 96.35% on the reserved data and reduced variance across folds. Conclusions: The integration of augmentation, multiple modelling tracks, and optimal pairwise ensembling yields the highest accuracy in categorising malaria smears. It facilitates further enhancements by incorporating supplementary models, multi-class extensions, and operating-point calibration.

1. Introduction

Malaria remains a significant parasite disease worldwide, with elevated morbidity and mortality rates in tropical and subtropical regions [1]. Expert microscopy of Giemsa-stained blood smears is a significant component of clinical protocols. This approach can identify species-level differences, but it is time-consuming, requires considerable expertise, and is susceptible to variations in staining and image quality, complicating large-scale quality-assured screening. Expedited diagnostic methods might accelerate the process; nevertheless, their efficacy can decrease in cases of low parasitemia or infections not attributable to falciparum. Microscopy is a crucial component of numerous programs and laboratory networks [2]. The issue of generalisation for algorithms trained in limited environments is further exacerbated in practice, as images increasingly originate from diverse sources, including standard microscopes with varying optics and configurations, as well as those captured on cell phones [3]. The optical systems of conventional microscopes differ.
In the last ten years, machine learning (ML) and deep learning (DL) have emerged as potentially effective instruments for analysing malaria-related images [4]. These systems operate efficiently in curated datasets; however, they frequently face issues related to stain/device variability and class imbalance [5,6].
Conventional machine learning techniques have demonstrated the feasibility of automated malaria screening; however, they often face challenges in preprocessing and feature generation [7]. Errors in segmentation within packed fields and staining variability can distort color and texture descriptors. This can alter decision boundaries and diminish performance when microscopes or slide preparation techniques are modified [5]. Reviews indicate that the evolution of imaging pipelines requires recalibrating features and thresholds. This not only increases maintenance costs, but also complicates the addition of additional locations [6]. Employing non-imaging machine learning for incidence forecasting underscores that distributions are dynamic and that thorough validation must account for changes in data-generating methods. The data indicate that malaria CAD has become a distribution-shift issue. This implies that models must maintain stability throughout variations in staining, optics, and processes, rather than excelling solely on a singular curated dataset.
Contemporary CNN backbones have significantly reduced discrepancies between automated and expert analyses by directly learning features from pixel data and employing transfer learning to modify pre-trained filters for RBC morphology [3,8]. Comparative and application studies indicate that residual and efficient families offer significant trade-offs between accuracy and efficiency, which is crucial in resource-constrained scenarios [9]. Hybrid multi-branch architectures that integrate EfficientNet-style stems with Dense, Residual, and Inception blocks can more effectively delineate the configuration of local parasites and the context of larger cells. This results in scores deemed superior on publicly available thin-smear datasets. Surveys indicate that the domain shift persists in laboratories, the quality of the labels varies, and insufficient validation can lead to metric inflation if split leakage is poorly managed within the laboratory. Empirical assessments indicate that even reliable backbones may lose robustness beyond the training distribution. This has led to the development of solutions that integrate complementary talents rather than relying on a single model [8,10]. Research on deployment highlights the necessity for compact models and pragmatic augmentation in scenarios with limited memory or computational resources. This illustrates the significance of selecting the appropriate approach for the field [11].
We propose an ensemble that integrates multiple CNN backbones and employs non-uniform weighting to ensure that the most credible experts govern each distribution. For pragmatic purposes, a lightweight metaheuristic may be used to optimise mixture weights on a reserved validation subset. This enables the ensemble to focus on complementary error patterns without altering the backbones themselves. This weighting method works with classification-aware experts that require improved masks and efficient backbones for resource-constrained deployments, thus balancing accuracy, robustness, and efficiency [12]. These design decisions directly tackle the documented issues of domain transitions, acquisition unpredictability, and deployment limitations, while remaining adaptable to more robust frameworks identified in the literature [10].
The remainder of this document is structured as follows: Section 2 offers an extensive review of current studies on malaria detection. In Section 3, we present our proposed framework, which comprises a comprehensive account of preprocessing procedures, data augmentation techniques, feature extraction methods, and an ensemble learning architecture that employs deep classifiers and an optimisation algorithm. Section 4 discusses the experimental setup, encompassing the dataset, evaluation metrics, and baseline configurations. Section 5 presents the empirical findings. This entails evaluating individual models against our ensemble method and assessing the efficacy of the hybrid attributes. In conclusion, Section 5 encapsulates the principal contributions and discusses potential avenues for future research.

2. Related Work

Automated malaria diagnosis has advanced through two primary approaches that complement each other effectively. Conventional machine learning (ML) techniques use manually generated features extracted from segmented smear images. These features are small and easily comprehensible; yet they frequently deteriorate as the stain or device changes. Deep learning (DL) algorithms can learn features effectively and typically achieve greater accuracy than alternative methods. However, when used across multiple imaging modalities and laboratories, a single backbone may have limitations. We examine both of these streams. This incremental synthesis underpins our methodology: integrating complementary CNN specialists, optimising their weights, and training them through ensemble learning to preserve and enhance the architecture.

2.1. Machine Learning (Classical Pipelines, Features, and Non-Imaging Analytics)

We will commence with the traditional pipeline preprocessing segment, which will be utilised to organise handcrafted features. This section demonstrated not only the feasibility of the idea but also identified the points of brittleness under actual laboratory conditions. Ross et al. (2006) [13] established that integrating automated RBC segmentation with colour and texture descriptors can distinguish between infected and uninfected cells in thin smears. This establishes initial assumptions regarding the efficacy of computer-aided diagnosis (CAD) using curated data.
Tek et al. [14] emphasised parasite-centric attributes computed within segmented cells to overcome the limitations of fundamental thresholding. This resulted in enhanced specificity and demonstrated how little alterations in staining and illumination can influence subsequent attributes. The objective of this was to reiterate the prior instruction. Similarly, Das et al. [15] integrated colour and texture fingerprints with conventional learning algorithms. Their precision was commendable during continuous acquisition; however, it deteriorated with variations in magnification or staining. Subsequent investigations corroborated this inclination.
Muralidharan et al. [16] underscore the significance of the robustness of the feature stage. Subsequently, they assessed various feature selection methods and found that stringent dimensionality reduction significantly improves the stability of SVM/KNN selection with limited data. This indicates that the pre-classifier curation phase may be equally significant as the classifier itself. In conjunction with this optimisation perspective, Gezahegn et al. [5] examined machine learning pipelines and documented the significance of segmentation quality. They found that inadequately segmented or overlapping cells distorted handcrafted descriptors and modified decision boundaries, rendering performance dependent on mask integrity.
In alignment with this perspective, Kunwar et al. [7] presented an extensive classical system that includes illumination stabilisation, RBC segmentation, texture and morphology extraction, and statistical classification. This method demonstrated that textural cues facilitate the differentiation between slides while remaining attuned to variations in slide preparation. This thus rendered robust normalisation and stringent separation methods far more essential. Kalkan and Sahingoz [17], however, began to obscure the distinction between machine learning and deep learning by using learnt filters. They found that as the volume of labelled data increases, learnt representations surpass handcrafted descriptors.
Narayanan et al. [18] conducted a comprehensive comparative evaluation of machine learning and deep learning architectures using cell-level images. The researchers discovered that, when rigorously validated, robust convolutional neural networks (CNNs) outperform conventional models. This breakthrough facilitated the community’s advancement towards representation learning while maintaining conventional preprocessing techniques. Delgado-Ortet and associates [12] demonstrated that an enhanced segmentation front-end utilising deep learning can significantly improve classical detection by concentrating on precise RBC regions. Their research demonstrated the accurate measurement of the impact of mask quality on subsequent accuracy.
Zhao et al. [11] proposed lightweight screening stacks tailored for low-resource settings to address deployment limitations. They demonstrated that pragmatic preprocessing and compact models can provide valuable baselines on constrained hardware, a significant practical consideration despite advancements in deep learning. Paul and Batra [6] conducted a study on concurrent machine learning and deep learning methodologies. They determined that whereas traditional machine learning remains competitive on controlled datasets, it requires significant retuning when methodologies are altered. This highlights a generalisation gap that representation learning seeks to mitigate.
Finally, Odu et al. [19] employed a feature-engineered pipeline, utilising K-means for outlier removal and XGBoost for classification, to model malaria incidence in relation to environmental parameters. This was conducted to demonstrate the prudence required in machine learning with respect to geographical disparities and to emphasise that assessment design must consider the potential for a distribution shift. Their methodology closely resembled that employed in microscopy. Collectively, these machine learning research indicate consistent issues: reliance on segmentation, variability in stains/devices, and the challenge of retuning. Consequently, they advocate transitioning to deep learning to enhance the reliability of data-driven features while adhering to deployment regulations.

2.2. Deep Learning (End-to-End RBC Analysis, Hybrids, and Comparative Studies)

In this setting, deep learning reconceptualises computer-assisted malaria diagnosis as end-to-end representation learning. CNN backbones ingest RBC patches and generate hierarchical filters that can detect morphological and texture features induced by parasites. At the outset of this phase, Quinn et al. [20] demonstrated the viability of microscopy-based point-of-care diagnostics. They indicated that learnt features can outperform hand-crafted descriptors, even in constrained circumstances. Liang et al. identified RBC patch classification as a fundamental deep learning task for malaria diagnosis, facilitating the standardisation of experimental protocols with thin-smear images [21]. This was executed similarly.
Dong et al. [22] evaluated various CNN architectures to determine the optimal design efficacy. They concentrated on the functionalities of depth, receptive-field architecture, and the training methodology. Therefore, they implored the community to document systematic ablations alongside key performance indicators. Rajaraman et al. [23] employed pre-trained convolutional neural networks (CNNs), including AlexNet, VGG-16, Xception, ResNet-50, and DenseNet-121, as feature extractors. They demonstrated that transfer learning is effective in scenarios with few labels or when the labels are highly dissimilar. The connection between machine learning and deep learning is very intimate.
Yang et al. [24] extended their research from thin smears to the detection of thick streaks using cellphones. They demonstrated that cellphones can detect thick stains, despite differing optics from those employed in laboratory microscopes. This improvement employs deep learning within realistic field limitations. In a similar vein of problem diversification, Abdurahman et al. [25] created YOLOv3/YOLOv4 to detect parasites in thick blood films. This adaptation denotes the object-detection branch that enhances patch classification. Relatedly, Cınar and Yıldırım [26] conducted a comparative analysis of backbones, revealing a correlation between correctness, architectural depth, and multi-scale design. This resulted in the incorporation of Inception-style and residual-style biases.
Boit and Patil [2] developed EDRI, a hybrid CNN (EfficientNetB2 combined with Dense, Residual, and Inception branches) that achieved an accuracy of approximately 97.7 percent and an area under the curve (AUC) of about 99.76 percent using NIH thin-smear data. This suggests that multi-branch models integrating local and global cues may outperform single-stream backbones. Loddo et al. validated the reliability of residual networks as baselines, necessitating a thorough assessment. In contrast, Alharbi et al. demonstrated that transfer learning and careful tuning may sustain cross-dataset performance, thereby determining which experts should be included in an ensemble [8,10].
Further broadening the technical repertoire, studies explored advanced regularisation and optimisation techniques [27,28], two-stage pipelines that differentiate localisation and classification [29], and Inception-V3 as a multi-scale alternative [30], all supporting the premise that diversity in architectural and training strategies provides advantages amidst variability. Akkasaligar et al. [31] noted that even older architectures such as VGG-16 can remain competitive with appropriate transfer learning during this process. They suggested that ensembles should comprise “modern efficient” and “well-established classic” specialists to achieve a diverse set of errors.
Saha et al. [4] conducted an evaluation of deep learning methodologies from a synthesis perspective, highlighting unresolved challenges. These issues encompass transitions between microscopes or laboratories, an excessive number of classes, inadequate label quality, and constraints on deployment. These challenges require variance reduction through ensembling and privacy-preserving collaboration when data centralisation is impractical. In a study addressing analogous challenges, Jdey et al. [1] contrasted machine learning and deep learning pipelines, emphasising the need for them to be comprehensible, validated, and applicable across multiple sites. They emphasised the significance of ensembles capable of adapting to changes rather than depending on a solitary backbone. Finally, Sarfaraj et al. [9] conducted a comprehensive comparison demonstrating that residual/efficient families consistently exhibit robustness across various datasets. They provided valuable advice on selecting complementary specialists before understanding the optimal weights.
The literature reveals a persistent reality in both areas: individual models struggle during domain transitions, and data governance limits central aggregation. This is the deployment situation under discussion. Consequently, our architecture integrates heterogeneous backbones (residual, efficient, and inception-like), obtains non-uniform mixture weights to ensure that the most reliable experts dominate each distribution, and trains under optimal ensemble learning, as evidenced in prior research.

3. Proposed Approach for Malaria Detection

We propose a dual-track pipeline: (A) Data augmentation → CNN feature extraction → classical machine learning classification; and (B) end-to-end deep models → paired ensembles → weighted fusion, with weights optimised by a hybrid Whale Optimisation Algorithm (WOA) and Genetic Algorithm (GA).
Our approach, presented in Figure 1, integrates neural representations, traditional machine learning decision functions, contemporary deep architectures, and systematic ensemble optimisation to achieve robust, reproducible malaria detection from thin blood smear images. Significant data augmentation is applied at the beginning of the pipeline to mitigate the effects of class imbalance, microscopy variability, and staining alterations. Track A either immobilises or refines the CNN backbone based on validation signals after extracting discriminative features. It provides a range of machine learning classifiers, including SVM, KNN, Random Forest, Gradient Boosting, Logistic Regression, AdaBoost, Decision Tree, Gaussian Naive Bayes, and MLP, with fixed-length embeddings. In concurrent training, Track B trains multiple advanced deep neural networks from inception to completion, with each network providing calibrated class probabilities. To optimise the models’ disparities, we construct pairwise ensembles and use a convex combination to aggregate the probabilities.
p ^ = w 1 p ^ ( 1 ) + w 2 p ^ ( 2 ) , w 1 , w 2 0 , w 1 + w 2 = 1 .
We utilise a hybrid meta-heuristic model to optimise weights, defining fitness as the ratio of validation accuracy to the area under the receiver operating characteristic curve (F1/ROC-AUC). Initially, WOA is employed to cultivate a high-quality populace in proximity to potential places. Subsequently, GA adjusts the weights to converge towards a robust local optimal solution. This incremental optimisation technique accelerates convergence and reduces the likelihood of issues arising from random initialisation. The final report includes ablations (with or without augmentation; single versus ensemble) and comprehensive diagnostics (confusion matrix, ROC/PR curves, Cohen’s kappa, and MCC). The study additionally contrasts Track A and Track B under identical splits.

3.1. Dataset Description

We use a public NIH malaria dataset with Infected/Uninfected classes (27,558 images) to ensure comparability and accessibility.
The dataset comprises 27,558 RGB cell images, categorised into two files: “Infected” and “Uninfected.” This dataset is sourced from the National Institutes of Health’s malaria repository (https://ceb.nlm.nih.gov/repositories/malaria-datasets/ accessed on 1 December 2025). It is commonly used as a standard for comparing parasitised cells with non-parasitised cells. To expedite the onboarding process and prevent prolonged downloads from the main website, we utilise a mirrored copy of the website. The images exhibit various alterations in cellular shape, magnification, focus, staining intensity, and artefacts. This diversity compels us to select augmentation and robust modelling. We typically employ the following methodologies: stratified train/validation/test divides, patient-level de-duplication when feasible, and uniform pre-processing. Utilising a public dataset enables objective comparisons with prior research and facilitates the replication of results through standardised protocols and seeds. We maintain comprehensive file lists for each split to ensure that future studies may be consistently replicated with various model families and ensemble configurations.
To ensure a reliable and unbiased assessment of our proposed framework, the dataset is partitioned into three distinct subsets: 70% for training, 10% for validation, and 20% for testing. The training subset is used to optimize the model parameters, while the validation subset supports hyperparameter tuning and early stopping. Importantly, the test subset is kept completely separate from the training process and is not used in any form of model optimization. This strict separation allows the test set to serve as a realistic benchmark, providing an accurate reflection of how the model would perform on previously unseen data in real-world diagnostic scenarios.

3.2. Data Augmentation

Augmentation is the process of incorporating additional data types, such as geometry, colour, and texture. This enhances generalisation across slides, microscopes, and staining conditions.
We employ a meticulously designed, balanced augmentation policy customised to our requirements for blood smear imaging. Geometric modifications include refractions, minor scaling or zooming, slight affine perturbations, and arbitrary rotations. Random rotations measure around x degrees. These algorithms replicate genuine acquisition settings, encompassing slide inclination, camera misalignment, and slight focus discrepancies. They precisely replicate these conditions. Photometric modifications, including regulated brightness and contrast adjustments, HSV and saturation adjustments, and per-channel noise, can effectively simulate staining discrepancies and illumination variations while preserving the morphology of chromatin and parasitic structures, which is crucial for precise identification. We also utilise Random Erasing, also known as small occlusions, to reduce the model’s reliance on artificial pixels confined to specific locations. The validation pipeline controls the intensity of these enhancements, as excessive blending can obscure minor parasite characteristics.

3.3. Ensemble Machine Learning for Malaria Detection

Classical machine learning ensembles, when utilised with CNN embeddings, establish robust baselines that require less computational effort and are more comprehensible.
We can train several machine learning classifiers with partially related errors by utilising CNN features as static embeddings. This approach is advantageous when computational or memory resources are limited or when elucidating the model’s functionality is crucial, for example, when evaluating feature importance in tree models or analysing margins in support vector machines.

3.3.1. Feature Extraction Based on CNN

We convert images into compact, distinctive vectors with a CNN backbone. Subsequently, we either freeze or slightly adjust the vectors to balance stability and task specificity. Images are resized (e.g., to 224 × 224 ), normalised, and then processed by a truncated CNN prior to the classifier head. To obtain a fixed-length embedding (512–2048 dimensions), we use pooled feature maps obtained via global average pooling. To mitigate noise and enhance the efficacy of subsequent machine learning training, we can use a bottleneck (e.g., 256–512 dimensions) with dropout. We standardise embeddings and subsequently store them on disc for reproducible machine learning studies.

3.3.2. Classification Based on ML Models

We train several complementary ML classifiers on the CNN features and calibrate their outputs to obtain reliable probability estimates.
  • Support Vector Machine (SVM): It achieves this by maximising the margin in the embedding space. Utilising RBF kernels facilitates the capture of non-linear boundaries, while class weighting helps maintain balance. Support Vector Machines (SVMs) are robust to small amounts of noise in the samples and often produce distinct decision boundaries.
Primal (soft-margin, linear):
min w , b , ξ 1 2 w 2 + C i = 1 N ξ i s . t . y i ( w x i + b ) 1 ξ i , ξ i 0 .
Kernel decision:
f ( x ) = sign i α i y i k ( x i , x ) + b .
K-Nearest Neighbours (KNN):
A non-parametric baseline utilising local neighbourhoods in feature space; this baseline is straightforward and performs effectively when embeddings are appropriately clustered. The distance measurements and k are adjusted to balance bias and variation. In feature space, the distance-weighted vote, sometimes referred to as the majority vote:
y ^ = arg max c i N k ( x ) 1 [ y i = c ] , w i = 1 d ( x , x i ) + ε , y ^ = arg max c i N k ( x ) w i 1 [ y i = c ] .
Decision Tree:
Hierarchical splits that are comprehensible and exhibit feature thresholds; although these splits may tend to overfit independently, they are valuable for identifying significant dimensions and for employing weak learners. Split by impurity minimization:
Split = arg min s j { L , R } n j n I ( D j ) ( D j ) , I Gini ( p ) = c p c ( 1 p c ) , I Ent ( p ) = c p c log p c .
Random Forest (RF):
An ensemble of bagged trees that reduces variation through averaging; it accommodates non-linearities and feature interactions, and includes inherent out-of-bag validation for stability assessment. Bagged trees with feature sub-sampling:
P ^ ( y = c x ) = 1 T t = 1 T P ^ t ( y = c x ) , y ^ = arg max c P ^ ( y = c x ) .
Gradient Boosting (GB):
With stringent regularisation (depth, learning rate, and subsampling), sequential trees that address prior residuals perform effectively on tabular embeddings.
Additive model via pseudo-residuals:
F m ( x ) = F m 1 ( x ) + ν γ m h m ( x ) ,
with r i ( m ) = / F | F m 1 , and γ m line-searched.
  • AdaBoost: Emphasizes previously misclassified samples via adaptive weights; effective when weak learners add orthogonal information.
Exponential loss, reweighting:
α m = 1 2 ln 1 ε m ε m , w i ( m + 1 ) w i ( m ) exp α m y i h m ( x i ) , H ( x ) = sign m = 1 M α m h m ( x ) .
Gaussian Naive Bayes (GNB): Fast, probabilistic baseline assuming conditional independence; valuable as a lightweight reference for calibration and error analysis.
Class-conditional independence:
P ( y = c x ) P ( y = c ) j = 1 d N ( x j μ c j , σ c j 2 ) .
Logistic Regression (LR): Strong linear classifier with calibrated probabilities; with L1/L2 regularisation provides a sparse, interpretable decision surface.
Linear log-odds with cross-entropy:
P ( y = 1 x ) = sigmoid ( w x + b ) , L = i y i log p ^ i + ( 1 y i ) log ( 1 p ^ i ) + λ w 2 2 .
MLP Classifier: A shallow, fully connected network utilising embeddings can capture minor non-linearities without the full complexity of end-to-end CNN training. Feed-forward network with softmax head:
h ( l ) = ϕ ( W ( l ) h ( l 1 ) + b ( l ) ) , p ^ = softmax ( W ( L ) h ( L 1 ) + b ( L ) ) .

3.4. Ensemble Deep Learning for Malaria Detection

We extensively train many contemporary CNN architectures from inception to completion, utilising paired ensembles and optimal weight fusion. We then utilise the distinction among these designs.
We employ a collection of deep models characterised by varying receptive fields, depths, and design paradigms to obtain the most complementary errors. Each model generates a calibrated probability. Various augmentations, seeds, and minor modifications to the training protocol (optimizers/schedules) enhance the complexity. We combine ensemble models, initially using identical weights and subsequently employing optimised weights (Section 3.4.2).
  • Generic CNN block. Convolution → normalization → nonlinearity:
Y = ϕ BN ( X × K ) .
  • ResNet-50/101V2:
Residual skip connections mitigate disappearing gradients, facilitating the stable training of deeper networks. Bottleneck blocks enhance efficiency; however, multi-stage downsampling balances detail and context, proving advantageous for diminutive parasitic structures. V2 variations enhance pre-activation and normalisation sequencing, resulting in improved gradients [32].
Skip connections ease optimization:
y = x + F ( x ; Θ ) , F = Conv 1 × 1 Conv 3 × 3 Conv 1 × 1 .
VGG-16:
A basic arrangement of three-by-three convolutions accompanied by maximum pooling. It has several parameters yet provides robust baselines and comprehensible layer activations. It is a straightforward model that performs effectively against contemporary concepts [33].
x input R 224 × 224 × 3 VGG - 16 ( x ) = Softmax ( W 3 · ReLU ( W 2 · ReLU ( W 1 · Flatten ( C 5 ) ) + b 2 ) + b 3 )
where the convolutional base ( C 5 ) is a sequence of blocks (Conv(F) denotes a 3 × 3 convolution with F filters, followed by ReLU, and MaxPool denotes 2 × 2 max pooling):
  • Block 1:  [ Conv ( 64 ) ] × 2 MaxPool
  • Block 2:  [ Conv ( 128 ) ] × 2 MaxPool
  • Block 3:  [ Conv ( 256 ) ] × 3 MaxPool
  • Block 4:  [ Conv ( 512 ) ] × 3 MaxPool
  • Block 5:  [ Conv ( 512 ) ] × 3 MaxPool = C 5
And the final classification head uses these steps:
  • Flatten ( C 5 ) : Flattens the final feature map ( 7 × 7 × 512 ) into a vector.
  • FC-1: Fully Connected layer (4096 units, with weights W 1 , b 1 ) + ReLU.
  • FC-2: Fully Connected layer (4096 units, with weights W 2 , b 2 ) + ReLU.
  • FC-3: Fully Connected layer (1000 units, with weights W 3 , b 3 ) + Softmax activation.
  • InceptionV3: Factorised convolutions and “Inception” blocks with many branches effectively capture features at varying scales. This is beneficial when the parasite’s morphology changes in size and contrast across images [34].
Multi-branch factorization for multi-scale capture:
y   =   b B F b ( x ) , is channel concatenation .
Xception:
Depthwise separable convolutions separate spatial and channel dimensions, thereby enhancing computational efficiency and improving feature extraction. These convolutions are pretty effective at smearing, producing subtle textural patterns [35,36].
Depthwise separable convolutions:
SepConv ( x ) = PWConv DWConv k × k ( x ) ,
stacked within residual blocks.
  • MobileNetV2:
Incorporating inverted residuals and linear bottlenecks enables the creation of lightweight models that are sufficiently effective for practical use [37]. Despite its low FLOPs, it maintains considerable accuracy due to depthwise operations.
Inverted residual with linear bottleneck:
y = x + PW linear DWConv ( ϕ ( PW expand ( x ) ) ) .
DenseNet121
Dense connections frequently perform effectively on medical images with limited data, as they enhance feature reuse and gradient propagation. Fine-grained characteristics can transition across levels [38].
Dense connectivity for feature reuse:
x = H [ x 0 , , x 1 ] .
NASNetMobile:
The mobile version strikes an effective balance between speed and accuracy, enhancing the ensemble’s architectural diversity. The architecture was identified by neural search [39].
Searched cells (normal/reduction) forming the macro-net:
y = Cell normal × n Cell reduction × m ( x ) .
EfficientNet-B0/B7 & EfficientNetV2-B0/V2-S: It is remarkable how effectively Fused-MBConv blocks (V2) and compound scaling (depth/width/resolution) harmonise accuracy and efficiency [40]. Elevated resolutions (B7, V2-S) might encompass a more comprehensive background when variations increase [41].
Compound scaling:
d = α ϕ , w = β ϕ , r = γ ϕ s . t . α β 2 γ 2 κ , α , β , γ > 0 ,
With MBConv/Fused-MBConv and squeeze–excitation.
  • ConvNeXt-Large: A modernized ConvNet with transformer-inspired design cues (large kernels, layer scaling, simpler stems), often yielding excellent performance on vision tasks while remaining CNN-like [42].
Modernized ConvNet with large kernels:
y = x + λ Conv 7 × 7 LN ( ϕ ( PWConv ( x ) ) ) .

3.4.1. Ensemble Learning

We amalgamate probabilities and create aligned ensembles to mitigate volatility and optimise complimentary strengths.
We initiate the procedure of enumerating paired ensembles and determining the fused probability, denoted as P = α P A + ( 1 α ) P B , utilising deep models independently trained. With a value of α set at 0.5, equal weights establish a robust baseline that enhances calibration and stability due to error decorrelation. We employ a validation split to evaluate each pair and identify combinations that consistently perform optimally, such as EfficientNetV2S and ConvNeXtLarge. Ensembles typically enhance ROC-AUC, PR-AUC, and Specificity without compromising Sensitivity, which is advantageous for screening applications. We additionally affirm that the enhancements remain consistent despite minor test-time augmentations (TTA) and when comparing folds. To prevent overfitting the validation set, we either employ layered validation or maintain a tiny tuning subset exclusively for weight selection. This systematic pairing provides the candidate set for weight optimisation, which will be discussed in the subsequent section.
Given two calibrated predictors with probabilities p ^ ( 1 ) and p ^ ( 2 ) , we use
p ^ = w 1 p ^ ( 1 ) + w 2 p ^ ( 2 ) , w 1 , w 2 0 , w 1 + w 2 = 1 , y ^ = arg max c p ^ c .
Equal weights ( w 1 = w 2 = 0.5 ) serve as a strong baseline; optimized weights are obtained in Section 3.4.2.

3.4.2. Weight Selection for Ensemble Learning Based on Optimization Algorithm

We employ constrained optimisation to select our weights, utilising accuracy as the fitness metric, and apply the F1 and ROC-AUC criterion to resolve ties.
We seek weights ( w 1 , w 2 ) on the simplex defined by w 1 + w 2 = 1 , with each w i constrained to the interval [0, 1]. This is accomplished using a model pair (A, B). When multiple weights achieve equivalent accuracy, we select the one with superior accuracy to achieve an optimal balance between precision and recall. The fitness is denoted by Accuracy ( w 1 , w 2 ) for a specific system in the partitioning validation. Our approach emphasises robust operational points rather than overly confident ones. To prevent oscillations, we restrict the step size or mutation range and terminate early when improvements stabilise. The resulting weights are evaluated on an unused test set to obtain an impartial assessment of their efficacy.
max w 1 , w 2 Acc w 1 , w 2 s . t . w 1 , w 2 0 , w 1 + w 2 = 1 .

3.4.3. WOA and GA Hybridization

The Weight Optimisation Algorithm (WOA) generates a superior weight population, while the Genetic Algorithm (GA) enhances and utilises this population to identify more optimal solutions.
The Whale Optimisation Algorithm (WOA) is inspired by the hunting techniques of humpback whales utilising bubble nets. The objective is to achieve a balance between exploration (seeking numerous alternatives) and exploitation (concentrating on optimal choices). It employs encircling, spiral bubble-net manoeuvres, and random search with diminishing control parameters over time to transition from exploration to exploitation and refine viable solutions. In our context, WOA can rapidly identify intriguing locations on the simplex represented as ( w 1 , w 2 ) . This results in the establishment of a diverse and high-quality initial population. A standard, complete WOA runs until full convergence, meaning all N WOA whales have essentially landed on w . This algorithm is designed to run only for a fixed number of iterations ( T WOA ). By stopping after T WOA iterations, the population of whales will have moved into a promising region, but they will not have fully collapsed onto a single point yet.
The Genetic Algorithm (GA) evolves populations over time through selection, crossover, and mutation processes. It accomplishes this by aggregating the weights of highly fit individuals to identify children with superior fitness. The genetic algorithm (GA) excels at local exploitation within favourable basins through elitism and adaptive mutation. It can also escape shallow local optima.
We initiate our hybridisation method by executing WOA for a limited number of iterations to generate a population concentrated on promising weight combinations. This cohort is the inaugural batch utilised by genetic algorithms (GAs) for targeted exploitation. Selection prioritises individuals with superior precision, crossover facilitates the amalgamation of complementary weights, and mutation seeks minor alterations within the simplex while ensuring that w 1 + w 2 = 1 . The WOA→GA pipeline minimises the impact of random initialisations on outcomes, accelerates convergence, and establishes stable weights applicable for both validation and testing. The next step involves utilising the selected ( w 1 , w 2 ) to amalgamate probabilities during inference. Subsequently, we present the whole array of metrics, including accuracy, precision, recall/sensitivity, specificity, F1 score, ROC-AUC, PR-AUC, Cohen’s kappa, and the Matthews correlation coefficient (MCC). We also present confusion matrices to aid elucidation.
Unlike existing malaria detection studies that rely on simple majority voting or fixed averaging of CNN models, our method introduces a two-branch architecture that unifies CNN based embeddings with classical ML and diverse deep networks into a single framework. Furthermore, we integrate a hybrid WOA→GA mechanism for continuous convex weight optimization. This model presented by the Algorithm 1. WOA explores wide regions of the weight simplex to identify high quality candidate solutions, while GA refines these solutions through elitism and adaptive mutation. This hybrid strategy improves convergence smoothness, avoids grid search discretization bias, and yields more stable operating points compared with Bayesian or grid based tuning methods.
Algorithm 1 Hybrid Weight Selection for Pairwise Ensemble (WOA → GA)
Require: Validation set V ; probabilities p ^ ( 1 ) , p ^ ( 2 ) ; sizes N WOA , N GA ; iterations T WOA , T GA
 
 1: Fitness: for w [ 0 , 1 ] , Fit ( w ) = Accuracy arg max c w p ^ ( 1 ) + ( 1 w ) p ^ ( 2 ) c ; V
 
 2: Initialize WOA whales { w i ( 0 ) } i = 1 N WOA [ 0 , 1 ] uniformly
 
 3: for t = 1 to T WOA do
▹ WOA exploration/exploitation
 4:       Evaluate Fit ( w i ( t 1 ) ) ; let w be the best
 
 5:        a 2 2 t / T WOA ; draw r 1 , r 2 U ( 0 , 1 ) ; A = 2 a r 1 a , C = 2 r 2
 
 6:       for each whale i do
 
 7:             if | A | < 1 then
▹ encircling best
 8:                w i ( t ) w A · | C · w w i ( t 1 ) |
 
 9:             else
▹ random search
 10:                pick random w rand ; w i ( t ) w rand A · | C · w rand w i ( t 1 ) |
 
 11:           end if
 
 12:           With prob. p, spiral update: w i ( t ) | w w i ( t ) | e b l cos ( 2 π l ) + w
 
 13:           Project w i ( t ) min ( 1 , max ( 0 , w i ( t ) ) )
 
 14:      end for
 
 15: end for
 
 16: Initialize GA population { w i } i = 1 N GA by sampling from final WOA whales
 
 17: for t = 1 to T GA do
▹ GA exploitation
 18:      Evaluate fitness and select parents (e.g., tournament)
 
 19:      Crossover: w child η w p 1 + ( 1 η ) w p 2 , η U ( 0 , 1 )
 
 20:      Mutation: w child min ( 1 , max ( 0 , w child + δ ) ) , δ N ( 0 , σ 2 )
 
 21:      Elitism: keep top-k individuals
 
 22: end for
 
 23: return w * arg max w final GA population Fit ( w )
 
 24: ( w 1 * , w 2 * ) ( w * , 1 w * )
 

4. Results and Discussion

The proposed framework for malaria detection was rigorously evaluated across four experimental phases, as detailed in the following subsections. Section 4.1 establishes a baseline using prevalent machine learning algorithms, including Support Vector Machines (SVMs), Random Forests (RFs), and k-Nearest Neighbours (k-NN). These classical models could generalise only to a limited set of complex parasitic cell topologies, albeit with a reasonable level of realism. Section 4.2 details how deep learning architectures such as VGG16, ResNet50, and EfficientNet significantly outperformed standard models. These designs might autonomously acquire multiscale spatial and textural features, thereby improving sensitivity and F1-score. Section 4.3 addresses ensemble learning. This entails aggregating the probabilistic outputs of multiple deep models to enhance their stability and robustness. This ensemble technique outperformed others on Receiver Operating Characteristic (ROC) and Cohen’s Kappa, indicating greater model concordance and lower variance. Finally, Section 4.4 presents a method for selecting weights that uses an optimisation strategy to determine each classifier’s contribution to the ensemble. This ensures the optimal equilibrium between precision and generalisation.
To quantitatively assess performance, seven well-known evaluation metrics were employed: Accuracy, Precision, Recall (Sensitivity), Specificity, F1-score, ROC-AUC, and Cohen’s Kappa. Let T P , T N , F P , and F N denote true positives, true negatives, false positives, and false negatives, respectively. The mathematical definitions of these metrics are given as follows:
Accuracy =   T P + T N T P + T N + F P + F N ,
Precision =   T P T P + F P ,
Recall ( Sensitivity ) =   T P T P + F N ,
Specificity =   T N T N + F P ,
F 1 - score =   2 × Precision × Recall Precision + Recall .
The Receiver Operating Characteristic–Area Under the Curve (ROC-AUC) quantifies the model’s ability to distinguish between positive and negative classes by integrating the true positive rate (TPR) and the false positive rate (FPR) over all decision thresholds.
AUC = 0 1 TPR ( FPR ) d ( FPR ) .
Cohen’s Kappa coefficient, which evaluates the agreement between the predicted and actual labels while adjusting for chance agreement, is defined as:
κ = p o p e 1 p e ,
where p o is the observed accuracy and p e is the expected accuracy due to random chance.

4.1. Machine Learning for Malaria Detection

This phase of the approach employed deep feature extraction alongside standard machine learning algorithms to build a hybrid classification framework. The utilisation of Convolutional Neural Networks (CNNs) as feature extractors enabled the automatic generation of high-level representations from thin blood smear pictures. These representations precisely captured spatial and textural indicators relevant to malaria diagnosis. Subsequently, these distinctive features were integrated into various conventional machine learning classifiers, yielding a CNN-based hybrid architecture. This architecture was designed to leverage the representational capabilities of deep learning while maintaining the interpretability and efficiency of classical models.
The results presented in Table 1 demonstrate the efficacy of the hybrid CNN–ML approach for malaria identification. The CNN-based feature extraction method markedly improved the discriminative power of all traditional classifiers compared to the use of CNN-based feature extraction on manually generated features. Despite the detailed nature of CNN embeddings, simpler techniques such as Gaussian Naïve Bayes and Support Vector Machines (SVMs) generally exhibit lower accuracy, ranging from 63% to 69%. This is due to their inability to represent non-linear decision boundaries fully. Conversely, ensemble methods such as Random Forest and Gradient Boosting achieved accuracies exceeding 82%, non-parasitised and ROC-AUC values of approximately 0.91. These methods were advantageous as they could integrate multiple weak learners and replicate intricate relationships among CNN features. Logistic Regression and the MLP classifier achieved the highest predictive accuracies, with values of 0.8714 and 0.8828, respectively. The Cohen’s Kappa scores were 0.7427 and 0.7656, indicating substantial agreement between the labels. The MLP exhibited the highest overall ROC-AUC (0.9549) and Specificity (0.9343), indicating superior performance in accurately rejecting non-parasitized samples. The results suggest that employing CNN-based deep feature extraction alongside traditional machine learning models yields a robust hybrid solution that harmonises interpretability, efficiency, and predictive performance. Therefore, further exploration of authentic deep architectures and ensemble fusion techniques is essential, as detailed in the following subsections.
We examined many classifiers, including Support Vector Machine (SVM), K-Nearest Neighbours (KNN), Decision Tree (DT), Random Forest (RF), Gradient Boosting (GB), AdaBoost (AB), Gaussian Naïve Bayes (GNB), Logistic Regression (LR), and Multi-Layer Perceptron (MLP). Each model utilised the feature vectors generated by the CNN as input. A stratified 10-fold cross-validation method was used during training to ensure the models’ robustness. The grid search optimisation method was employed to reduce bias and variance by tuning hyperparameters. The objective of this hybrid approach was to evaluate the efficacy of traditional models in utilising CNN-derived embeddings to differentiate between red blood cells infected with parasites and those that are uninfected.

4.2. Deep Learning Model for Malaria Classification

We developed and analysed various deep convolutional neural network (CNN) architectures to classify blood smear images as either infected with malaria or not. This phase utilised comprehensive deep learning models that independently execute feature extraction and classification within a unified framework. In the final section, we discus a hybrid CNN–ML pipeline. This differs from independent models. The weights for each model were initially trained on ImageNet and subsequently fine-tuned using the malaria dataset. This was implemented to accelerate convergence and prevent overfitting to a limited set of medical samples. To enhance generality, we employed various data augmentation techniques, including rotation, horizontal flipping, contrast normalisation, and others. The Adam optimiser was employed to improve the procedure. This optimiser had an adjustable learning rate, used categorical cross-entropy loss, and incorporated an early-stopping criterion based on validation performance.
The evaluated models include ResNet50, EfficientNetB0, EfficientNetV2B0, InceptionV3, Xception, MobileNetV2, DenseNet121, NASNetMobile, ResNet101V2, EfficientNetB7, EfficientNetV2S, ConvNeXtLarge, and VGG16. These architectures represent various CNN families designed to balance model depth, parameter efficiency, and receptive-field size. Their comparative performance metrics are summarized in Table 2.
The results in Table 2 and in Figure 2 indicate that all deep CNN architectures performed exceptionally well in classification tasks. All architectures achieved accuracies exceeding 93% and area under the curve (AUC) scores exceeding 0.98. The findings indicate that contemporary CNN designs are proficient at distinguishing individuals with malaria from those without. The ConvNeXtLarge model achieved the highest overall accuracy (0.9579), F1 Score (0.9581), and ROC AUC (0.9918) among all evaluated models. This is demonstrated by its ability to accurately depict intricate cellular classifying malaria images, therebymorphology and hierarchical spatial patterns. The EfficientNet family performed admirably, particularly EfficientNetV2S and EfficientNetB7, which achieved Kappa values over 0.91 and accuracies exceeding 0.954. This demonstrates the efficacy of these models in balancing performance and computational cost.
Legacy architectures such as VGG16, InceptionV3, and Xception exhibit marginally inferior metrics (around 0.93–0.94 accuracy) because of their greater number of parameters and less adaptable scaling techniques. The metrics produced by these architectures were slightly worse. Deep learning effectively reduces both false positives and false negatives, thereby achieving reliable diagnostic sensitivity, as evidenced by the consistently high Precision and Recall across all models. The inclusion of the PR-AUC, Kappa, and MCC metrics further substantiates the model’s stability and concordance with ground-truth annotations. In conclusion, the findings indicate that deep convolutional neural networks (CNNs) significantly outperform conventional machine learning baselines in the classification of malaria images, hence demonstrating enhanced reliability and generalisability. These findings encourage the implementation of ensemble and optimisation approaches, which will be detailed in the following subsections, to improve robustness and interpretability.

4.3. Ensemble Learning for Malaria Detection

Upon concluding our evaluation of the efficacy of several deep learning architectures, we explored ensemble learning to enhance categorisation stability and prediction reliability. The primary objective was to combine the probabilistic outputs (posterior probabilities) of two separately trained CNN models using pairwise averaging. This would enable the acquisition of complimentary feature representations from diverse architectures. This stage is an intermediate fusion level that preserves the diversity of base learners while ensuring computational efficiency.
The final forecast was obtained by averaging the softmax probabilities of both models. We amalgamated each pair of models with equal weights ( w 1 = w 2 = 0.5) to obtain the final forecast. This straightforward yet effective combination operates on the premise that different designs discern distinct attributes of cell morphology, such as texture, colour, and structural cues. Integrating their assessments helps mitigate overfitting and enhance generality. Table 3 presents a summary of all the pairwise ensembles created during the process. We employed the same test partition and performance metrics for each ensemble. The metrics employed were accuracy, precision, recall, F1-score, ROC-AUC, and PR-AUC. This was executed to ensure uniformity across all elements.
The statistics in Table 3 indicate that ensemble fusion resulted in a consistent enhancement in performance relative to standalone deep neural networks. ROC-AUC values beyond 0.99 demonstrated that the majority of pairwise combinations attained accuracies exceeding 95%, hence validating the complimentary characteristics of the aforementioned CNN architectures. The combination of EfficientNetV2S and ConvNeXtLarge achieved commendable performance, with the highest overall accuracy (0.9632) and F1 Score (0.9631). Comparable high-performing pairs, such as EffNetV2B0 + ConvNeXtLarge and ResNet101V2 + EfficientNetV2S, exhibit robust ROC-AUC values (exceeding 0.992) and stable Precision–Recall AUC scores. The findings indicate that these couples exhibit resilience despite the disparity in class status.
It is particularly crucial to emphasise that ensembles comprising models from diverse architectural families, such as residual (ResNet) and compound-scaled (EfficientNet) networks, outperformed those consisting of closely related variants. This indicates the need to present a diverse array of models to reduce the incidence of interconnected errors. Ensemble averaging optimally leverages each network’s capabilities to produce a more stable and generalisable classifier. This is evidenced by improvements across all performance indicators (Accuracy, Precision, Recall, F1, ROC-AUC, and PR-AUC). We observed an increase in all performance metrics. The paired findings formed the basis for the subsequent phase of the optimisation procedure, which uses adaptive weight selection to further enhance the ensemble’s performance.

4.4. Explainability Analysis Using Grad-CAM

To further validate the reliability of the proposed models and ensure that their decisions are guided by clinically meaningful image regions, we employed Gradient-weighted Class Activation Mapping (Grad-CAM) to visualize the spatial attention of each deep network. Grad-CAM produces a heatmap from the final convolutional layer, highlighting the areas that most strongly influence the model’s prediction. As shown in Figure 3, these quantitative findings are further supported by the Grad-CAM visualizations, which confirm that the models focus on biologically meaningful regions.
For Uninfected samples, the Grad-CAM visualizations consistently showed weak and diffuse activation, primarily concentrated around the red blood cell boundary. This indicates that the models do not mistakenly focus on irrelevant intra-cellular regions, and correctly identify the absence of parasite-like structures. The low-intensity response across the interior of healthy cells confirms that no false parasite patterns were detected. In contrast, for Parasitized samples, the heatmaps revealed strong, highly localized activation corresponding to canonical morphological patterns of Plasmodium infection. Bright yellow and red regions typically aligned with chromatin dots, ring forms, and other parasite-induced features within the cell cytoplasm. This demonstrates that the CNNs learned to rely on parasite-specific regions rather than staining artifacts or background noise, which improves the interpretability and trustworthiness of the system. Among all evaluated architectures, EfficientNetV2S and ConvNeXtLarge exhibited the most concentrated and biologically coherent activation patterns. Their heatmaps showed precise focus on intra-cellular parasite regions, reflecting their superior classification performance. Since these two models constitute the final hybrid ensemble, their Grad-CAM results effectively represent the interpretability of the overall system. As ensemble fusion operates at the probability level, the hybrid model has no convolutional layers of its own; therefore, Grad-CAM cannot be computed directly on the ensemble. Instead, the attention maps of the constituent CNNs serve as the interpretable explanation of the hybrid classifier. Overall, the Grad-CAM visualizations confirm that the proposed models do not act as “black boxes.” Rather, they base their predictions on medically relevant parasite structures, thereby enhancing confidence in the diagnostic decisions produced by the hybrid deep learning framework.

4.5. Weight Selection for Ensemble Learning

To surpass simple averaging, we learn the contribution of two top-performing CNNs—EfficientNetV2S and ConvNeXtLarge—via an optimized Algorithm. Let p V 2 S ( y = 1 x ) and p ConvNeXt ( y = 1 x ) denote the posterior probabilities for the positive class. The fused probability is a convex combination
p ens ( y = 1 x ) = w p V 2 S ( y = 1 x ) + ( 1 w ) p ConvNeXt ( y = 1 x ) , with w [ 0 , 1 ] .
We formulate weight learning as a single-variable constrained optimization:
max w [ 0 , 1 ] J ( w ) , J ( w ) F 1 ( val ) ( w ) ,
The optimisation approach maintains a set of potential weights, selects those exhibiting optimal fitness, merges parent solutions (crossover) to explore promising regions, and introduces stochastic alterations (mutation) to prevent premature convergence. This search approach is practical in the continuous space w [ 0 , 1 ] and yields a solution that approximates the optimal one without employing derivatives.
Table 4 presents a summary of the optimal individuals from each generation of the Genetic Algorithm (GA) retained throughout the adaptive weight optimisation for EfficientNetV2S and ConvNeXtLarge. Each item corresponds to the weight pair ( w EffNetV 2 S , w ConvNeXt ) recognised for its exceptional performance within a population. The results indicate a distinct evolutionary pattern: the initial generations explore a broad spectrum of weight choices, but subsequent generations progressively converge on a small optimal range centred around w EffNetV 2 S [ 0.43 , 0.49 ] . This indicates that the search process is robust and the fitness landscape is substantial.
Throughout all stored populations, accuracy gradually increases, reaching a maximum of 0.9635% at convergence. In the initial generations, it was approximately 0.958 percent. The F1-scores for the optimal solution ( w EffNetV 2 S = 0.449 , w ConvNeXt = 0.551 ) exhibit a consistent pattern, attaining a value of 0.9635 . The ROC-AUC and PR-AUC scores remain exceptionally high, at 0.9918 and 0.9926, respectively. Most of the enhancements result from minor adjustments to the equilibrium among Precision, Recall, and Specificity, rather than from significant changes in separability. The genetic algorithm appears to have identified a globally stable region rather than an overfitted local extremum, as evidenced by the narrow plateau observed at the optimal value.
Furthermore, the evolutionary archive indicates that further generations yield minimal performance variations (<0.001) when the algorithm reaches this plateau, so validating the convergence criterion and demonstrating the reproducibility of the selected weights. The GA-based ensemble tuning is reliable, comprehensible, and reliably convergent. This makes it a reliable method for adaptively weighting multiple deep networks for effective malaria diagnosis. The results of this evolutionary selection indicate that the optimal choice is a harmonious equilibrium between the discriminative capabilities of ConvNeXtLarge and the efficient feature encoding attributes of EfficientNetV2S.
The data in Table 4 indicates that the test performance is evaluated across a substantial quantity of weights. The landscape exhibits a broad optimal zone centred on w 0.45 0.49 . This indicates that ConvNeXtLarge provides a significantly greater contribution. The optimal accuracy occurs at w = 0.449 and w = 0.469   ( Acc = 0.9635 ; F 1 = 0.9635 ) , whereas the highest PR-AUC is seen for w [ 0.408 , 0.429 ]   ( PR - AUC = 0.9937 ) . The ROC-AUC will be effectively maximised at approximately 0.9930 across the whole ideal plateau. This indicates that separability will remain robust at all times. The equal-weight baseline w = 0.5 demonstrates commendable performance, with an Accuracy of 0.9630 and a F1 score of 0.9629. Adjusting it with optimal results in a modest yet consistent increase in both Accuracy and F1, while preserving exceptional calibration (PR-AUC).
In our practical application, we utilise the value of w = 0.449 (specifically, w V 2 S = 0.449 and w ConvNeXt = 0.551 ), which yields Acc = 0.9635 , F 1 = 0.9635 , ROC-AUC = 0.9930, and PR-AUC = 0.9937. The results indicate that optimised weight selection is an effective method for improving the performance of equal averaging and single-model baselines. This results in a robust operating point characterised by balanced Precision and Recall, together with persistent Specificity.

4.6. Validation of the Proposed Approach Using a Large Thick and Thin-Smear Dataset

We used the Malaria Dataset from the Nelson Mandela African Institution of Science and Technology (NM-AIST) [43] to do a full evaluation of the adaptive-weighted ensemble architecture we showed. This was to prove that it works and is reliable. This dataset, released in 2024, comprises 3544 images acquired using two smear preparation techniques: thick films (2210 images) and thin films (1334 images). The thick-smear subset enables a thorough, unbiased evaluation because it has a balanced class distribution (Thick-Infected = 1139; Thick-Uninfected = 1071). Even though it is slightly unbalanced (Thin-Infected = 1064 and Thin-Uninfected = 270), the thin-smear subgroup provides additional information on cell shape needed for a full multimodal evaluation.
Table 5 shows examples of thick and thin smear microscopy images that are typical of the total. In thick smears that have been infected, you can usually see little chromatin foci that are darkly stained and clustered parasite remains that are embedded in dense proteinaceous material. You can see parasite parts because these structures are either purple or blue and stand out against a background that is not very clear. Thick smears that are not infected, on the other hand, have diffuse stain deposits, platelet-like particles, or non-parasitic debris without any visible chromatin signals. The NM-AIST dataset contains thin-smear images showing staining patterns different from those seen in typical Giemsa thin films, and was used in the first part of our research. The NM-AIST thin smears don’t always preserve the full shape of each red blood cell, as shown in the example image and in Figure 4.
On the other hand, the smear frequently exhibits partially lysed or deformed red blood cells, resulting in sections that are cloudy, diffuse, and characterised by varying background density. You may see parasite chromatin as small, purple or blue dots scattered across these diffuse regions. However, compared with the best thin-smear preparations, the parasite chromatin within intact erythrocytes is less clear. Uninfected NM-AIST thin smears exhibit heterogeneous staining and amorphous material, rather than clearly defined RBC boundaries. These traits suggest that the “Thin” subset in NM-AIST is more like a weakly lysed preparation than a standard monolayer thin film. Consequently, it serves as an additional component of the thick-smear subset, providing a second smear type that is also visually distinct. The first dataset we used in our research came from thin blood smears; thick films have quite different morphological and optical properties. Thick smears purposefully lyse red cells, creating a granular, heterogeneous matrix characterised by increased stain density and heightened background variability. Thin smears, on the other hand, preserve the shape of red blood cells, making the edges of cells crisper and the shapes of parasites more structured. Images from thin smears show the parasite’s internal phases, whereas images from thick smears show the concentrated parasite chromatin against a thicker background. To ensure the adaptive ensemble model works well across different microscopy modes and preparation techniques, the suggested method should be tested on a specific thick-film dataset. These inherent disparities among smear types emphasise the need to evaluate the proposed procedure.
Thick smears present unique diagnostic challenges due to their disrupted cellular structure, varied background appearance, and increased parasite density. Testing the proposed methodology on this dataset allows us to evaluate its efficacy in both realistic and visually complex scenarios. The data in Table 6 indicates that the adaptive-weighted ensemble frequently outperforms its individual deep components. It has superior accuracy, precision, recall, and agreement coefficients (Kappa and MCC). The results indicate that the ensemble framework effectively integrates complementary deep representations, thereby facilitating the differentiation of thick-film malaria detection.
The trial results utilising the NM-AIST thick-smear dataset illustrate the robustness and efficacy of the adaptive-weighted deep ensemble developed for malaria parasite detection. Thick-film microscopy introduces significant variability in staining density, background texture, and parasite concentration, rendering automated analysis in this domain particularly challenging. Nonetheless, the group consistently performed well across all rating criteria. EfficientNetV2S and ConvNeXtLarge are two complementary backbone architectures, each possessing distinct advantages that synergise effectively. These strengths significantly influenced the observed performance. ConvNeXtLarge offers enhanced specificity and stability across many backgrounds, whereas EfficientNetV2S exhibits increased sensitivity to even the most nuanced parasite characteristics. The enhanced algorithmic weighting may effectively integrate these strengths into a unified decision-making mechanism, resulting in superior overall performance.
The results indicate that the ensemble is not significantly reliant on the feature space of a singular model. Rather, it maximises the interactions among multiple profound representations. In thick-film analysis, where visual intricacy may diminish the accuracy of individual models, this adaptability is crucial as it enhances control over the results. The findings indicate that adaptive ensemble learning may be a reliable method for screening for thick-smear malaria.

4.7. Evaluation of the Combined Thick–Thin Training Strategy

To evaluate the efficacy of the proposed adaptive-weighted ensemble in diverse imaging conditions, we performed an extensive experiment using both thick and thin blood-smear pictures from the NM-AIST dataset for concurrent training and assessment. This was executed to demonstrate that the ensemble can accommodate various image conditions. The model undergoes significant alterations in staining, morphology, background structure, and parasite appearance when used in this combinatorial arrangement, compared with research that relies solely on a single smear-preparation technique. Thin smears preserve the integrity of red blood cell membranes and reveal intracellular parasitic species characterised by distinct ring or chromatin structures. Thick smears, conversely, lyse red blood cells, resulting in dense backgrounds and freely floating chromatin puncta. Training the network on this multimodal distribution equips the model with a broader array of discriminative features that can accommodate variations in morphology and staining.
The entire dataset was divided into three segments: 70% for training, 10% for validation, and 20% for testing. This was executed to ensure an adequate mixture of infected and uninfected samples within each subset. Label stratification was maintained throughout the entire process. Data augmentation was utilised just during the training phase to improve generalisation and reduce overfitting. We trained two advanced convolutional backbones, EfficientNetV2S and ConvNeXtLarge, using the same methodology. Subsequently, we integrated their outputs utilising our genetic algorithm (GA)-optimized adaptive weighting method.
Table 7 illustrates the performance of each model and the optimised ensemble. EfficientNetV2S achieved an accuracy of 95.63%, a precision of 98.35%, and a recall of 94.56%. Conversely, ConvNeXtLarge achieved an accuracy of 95.07% and a slightly superior recall. The proposed GA-optimised ensemble regularly outperformed individual models, achieving 96.62% accuracy, 97.25% F1-score, and improved agreement metrics (Kappa = 0.9287, MCC = 0.9291). The results indicate that the ensemble effectively harnesses the strengths of the various models rather than merely averaging their deficiencies.
Further insight into the ensemble’s predictive behaviour is provided by the confusion matrix in Figure 5, which shows excellent discrimination between the two classes. Out of 710 test images, the ensemble correctly classified 262 uninfected and 424 infected samples, resulting in only 24 misclassifications (7 false positives and 17 false negatives). The very low false-positive rate is particularly important in clinical screening scenarios, as it minimizes unnecessary follow-up tests on healthy individuals.
These findings strongly indicate that training on a combined Thick–Thin dataset improves the model’s ability to generalize across diverse smear preparation techniques and imaging characteristics. The adaptive-weighted fusion further enhances robustness by integrating complementary recognition patterns from EfficientNetV2S and ConvNeXtLarge. Overall, the results confirm that the proposed ensemble architecture offers a reliable and scalable solution for malaria parasite detection across heterogeneous microscopy data.

4.8. Limitations and Future Work

Despite the positive results on the NM-AIST dataset, it is essential to acknowledge certain limitations. Although it is one of the largest publicly accessible datasets of thick-film microscopy, it is limited to data from a single location and employs uniform staining procedures, microscope apparatus, and acquisition parameters. Secondly, thick smears fail to reveal red blood cell morphology, and patterns may vary significantly depending on dye concentration, illumination, and slide preparation quality. The current evaluation may not fully demonstrate performance disparities across laboratories or variations in clinical workflows. Due to the absence of standardised acquisition data, it is unfeasible to examine how these factors influence the model’s behaviour or generate latent biases.
Moreover, while effective, the application of optimisation techniques incurs additional computational costs during the offline weight search phase. Nonetheless, this expenditure occurs only once, and the ultimately deployed ensemble necessitates no additional effort beyond standard inference.
The current study focuses solely on classifying diseases into two distinct categories. In the real world, diagnostic tests may require additional capabilities, such as staging parasites, quantifying them, or differentiating them by species. The existing thick-smear datasets are insufficient for the comprehensive annotations required for these activities.
Future research will investigate multi-centre thick-smear collections, focusing on the evaluation of generalisability across various acquisition contexts: (i) domain adaptation methods to reduce sensitivity to staining and imaging variability; (ii) lightweight model compression for deployment in resource-constrained environments; (iii) extension to species-level detection; and (iv) enhanced interpretability through advanced explainability frameworks beyond Grad-CAM. These represent other domains of inquiry now under investigation.

4.9. Comparative Analysis with Existing Malaria Detection Approaches

To contextualise the hybrid and optimised ensemble architecture we developed, we juxtapose our findings with contemporary research on automated detection of malaria using microscopic blood smear images. Utilising handcrafted features such as texture descriptors, colour histograms, or morphological traits in conjunction with classifiers 85% to 90% in conventional machine learning pipelines. Despite their apparent simplicity, these procedures are fraught with numerous issues. For instance, their efficacy depends on the quality of feature engineering, and they cannot capture deep spatial hierarchies in cellular images.
As shown in Table 8, deep learning has significantly enhanced the efficacy of convolutional neural networks (CNNs) such as VGG16, InceptionV3, and ResNet50 in object detection. These CNNs have achieved accuracy rates of 93% to 95%. Although these structures may autonomously extract multiscale visual features, their efficacy may still be compromised by overfitting and differences across datasets. Recent experiments utilising lightweight or compound-scaled designs, such as MobileNetV2 and EfficientNetB0, have demonstrated improved computational efficiency. However, this augmentation typically results in a slight decrease in overall precision and recall.
Compared with these established approaches, our results demonstrate a significant performance improvement. The proposed combination of EfficientNetV2S and ConvNeXtLarge, optimised by a Genetic Algorithm for weight selection, achieves an overall Accuracy of 0.9635, F1 score of 0.9635, ROC-AUC of 0.9930, and PR-AUC of 0.9937. This approach surpasses individual CNN models and previous ensembles that used static averaging or voting, which often yield ROC-AUC values below 0.985. The enhancement results from the collaboration of three synergistic components. The components are: (i) CNN-based feature extraction, which identifies robust spatial patterns; (ii) ensemble fusion, which reduces variance and enhances generalisation; and (iii) adaptive genetic weighting, which maintains balanced contributions from the model.
Furthermore, our architecture demonstrates greater consistency across all assessment criteria than hybrid frameworks reported in the literature that combine CNN-extracted features with traditional classifiers. It also demonstrates excellent specificity (exceeding 96%), an essential factor in reducing false positives in medical diagnostics. The results indicate that employing evolutionary optimisation on deep model ensembles represents a significant advancement in automated malaria detection. This advancement yields more reliable diagnoses, improved generalisation across diverse sample types, and a valuable foundation for therapeutic applications in resource-limited settings.

5. Conclusions

This paper developed a unified, replicable framework for malaria detection from thin blood smear images, integrating two complementary modelling methods and a systematic ensemble methodology. The initial track utilises fixed convolutional embeddings to train calibrated classical classifiers. This provides robust and comprehensible baselines that utilise a standard augmentation method. The second track trains many end-to-end convolutional networks that are more adept at detecting subtle morphological cues and generalising more effectively than a singular model. We subsequently utilise the discrepancies among models to amalgamate their probabilities using convex weights. We established weight selection as a limited optimisation problem addressed by a hybrid meta-heuristic model. A Whale Optimisation phase identifies suitable candidates, while a Genetic Algorithm phase enhances them. This method consistently enhanced performance and stability across identical divisions of the NIH dataset (27,558 images; Infected/Uninfected), with the optimal ensemble attaining an accuracy of 96.35% on reserved data.
We intend to incorporate federated learning into this pipeline in the future to address data governance, privacy, and representativeness issues at scale. In numerous health systems, digitised smear images are stored separately in hospitals and regional laboratories, and governance regulations complicate their consolidation. A federated protocol would enable training shared models across all participating locations without transmitting raw images. It would employ secure aggregation to maintain the confidentiality of updates and differential privacy to mitigate information leakage. Personalisation layers or meta-learning could enable the global model to function with various staining techniques and microscopes across different locations. Effective aggregation and drift detection would help address the non-IID distributions prevalent in clinical data. To ensure that smaller or resource-constrained centres are not adversely affected during training, it is imperative to implement updates that are readily communicable, establish client selection methodologies, and set objectives that prioritise equity. We want to develop a scalable, privacy-preserving system that learns from a diverse population, complies with legal standards, and enhances real-world generalisation without centralising sensitive patient data. We will integrate the suggested ensembling and weight-optimization techniques with federated orchestration.

Author Contributions

Conceptualization, K.G., M.K. and A.A.; Methodology, K.G., M.K. and A.A.; software, K.G., S.A. (Sahar Almenwer) and S.Y.; validation, K.G., A.A. and S.A. (Sahar Almenwer); formal analysis, K.G. and M.K.; investigation, K.G., S.A. (Sarah Almaghrabi) and S.Y.; resources, K.G., M.K., A.A., S.Y.; data curation, K.G., S.Y.; writing—original draft preparation, K.G., M.K. and A.A.; writing—review and editing, S.A. (Sarah Almaghrabi), M.K. and S.Y.; visualization, K.G., S.A. (Sarah Almaghrabi); supervision, K.G. and M.K.; project administration, K.G. and A.A.; funding acquisition, K.G. 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-2025-FC-01067).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this study are openly accessible at the following link: https://www.kaggle.com/datasets/iarunava/cell-images-for-detecting-malaria (accessed on 1 December 2025), https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/O2WVWA (accessed on 20 March 2026).

Conflicts of Interest

The authors declare there are no conflicts of interest.

References

  1. Jdey, I.; Hcini, G.; Ltifi, H. Deep Learning and Machine Learning for Malaria Detection: Overview, Challenges and Future Directions. Int. J. Inf. Technol. Decis. Mak. 2024, 13, 1745–1776. [Google Scholar] [CrossRef] [Scilit]
  2. Boit, S.; Patil, R. An Efficient Deep Learning Approach for Malaria Parasite Detection in Microscopic Images. Diagnostics 2024, 14, 2738. [Google Scholar] [CrossRef] [Scilit]
  3. Mujahid, M.; Rustam, F.; Shafique, R.; Caro Montero, E.; Silva Alvarado, E.; de la Torre Diez, I.; Ashraf, I. Efficient deep learning-based approach for malaria detection using red blood cell smears. Sci. Rep. 2024, 14, 13249. [Google Scholar] [CrossRef] [Scilit]
  4. Saha, M.; Basu, M.T.; Bhaumik, R.; Pagadala, P.K.; Ranganath, A. A Comprehensive Survey of Deep Learning Techniques in Malaria Diagnosis. In Proceedings of the 2024 IEEE 6th International Conference on Cybernetics, Cognition and Machine Learning Applications (ICCCMLA), Hyderabad, India, 6–8 December 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
  5. Gezahegn, Y.G.; Medhin, Y.H.G.; Etsub, E.A.; Tekele, G.N.G. Malaria Detection and Classification Using Machine Learning Algorithms. In Lecture Notes of the Institute for Computer Sciences, Social-Informatics and Telecommunications Engineering; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar] [CrossRef] [Scilit]
  6. Paul, S.; Batra, S. A Review on Computational Methods Based on Machine Learning and Deep Learning Techniques for Malaria Detection. In Proceedings of the 2021 9th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), Noida, India, 3–4 September 2021; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  7. Kunwar, S.; Shrestha, M.; Shikhrakar, R.M. Malaria Detection Using Image Processing and Machine Learning. arXiv 2018, arXiv:1801.10031. [Google Scholar] [CrossRef] [Scilit]
  8. Loddo, A.; Fadda, C.; Di Ruberto, C. An Empirical Evaluation of Convolutional Networks for Malaria Diagnosis. J. Imaging 2022, 8, 66. [Google Scholar] [CrossRef] [Scilit]
  9. Sarfaraj, S.; Mishra, A.R.; Chauhan, S.S. Malaria Detection Using Deep Learning: An In-Depth Comparison of Techniques. In Proceedings of the 2025 3rd International Conference on Disruptive Technologies (ICDT), Greater Noida, India, 21–22 March 2025. [Google Scholar]
  10. Alharbi, A.H.; Alshahrani, A.; Alghamdi, A.; Alqarni, M.; Alzahrani, F. Detection of Peripheral Malarial Parasites in Blood Smears Using Deep Learning Models. Comput. Intell. Neurosci. 2022, 3922763. [Google Scholar] [CrossRef] [Scilit]
  11. Zhao, O.S.; Dlamini, N.; Cooper, S.; Meyer, J.; Tshabalala, M.; Nxumalo, Z.; Mabuza, A.; Vilakazi, T. Convolutional neural networks to automate the screening of malaria in low-resource countries. PeerJ 2020, 8, e9674. [Google Scholar] [CrossRef] [Scilit]
  12. Delgado-Ortet, M.; Molina, A.; Alférez, S.; Rodellar, J.; Merino, A. A deep learning approach for segmentation of red blood cell images and malaria detection. Entropy 2020, 22, 657. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Ross, N.E.; Pritchard, C.J.; Rubin, D.M.; Duse, A.G. Automated image processing method for the diagnosis and classification of malaria on thin blood smears. Med. Biol. Eng. Comput. 2006, 44, 427–436. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Tek, F.B.; Dempster, A.G.; Kale, I. Parasite detection and identification for automated thin blood film malaria diagnosis. Comput. Vis. Image Underst. 2010, 114, 21–32. [Google Scholar] [CrossRef] [Scilit]
  15. Das, D.K.; Ghosh, M.; Pal, M.; Maiti, A.K.; Chakraborty, C. Machine learning approach for automated screening of malaria parasite using light microscopic images. Micron 2013, 45, 97–106. [Google Scholar] [CrossRef] [Scilit]
  16. Muralidharan, V.; Dong, Y.; Pan, W.D. A comparison of feature selection methods for automatic malarial cell recognition. In Proceedings of the 2016 IEEE-EMBS International Conference on Biomedical and Health Informatics (BHI), Las Vegas, NV, USA, 24–27 February 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 216–219. [Google Scholar]
  17. Kalkan, S.C.; Sahingoz, O.K. Deep learning based classification of malaria from slide images. In Proceedings of the 2019 Medical Technologies Congress (TIPTEKNO/EBBT), Istanbul, Turkey, 3–5 October 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–4. [Google Scholar]
  18. Narayanan, B.N.; Ali, R.; Hardie, R.C. Performance analysis of ML and DL architectures for malaria detection on cell images. In Proceedings of the SPIE 11139, Applications of Machine Learning, San Diego, CA, USA, 11–15 August 2019; p. 111390W. [Google Scholar]
  19. Odu, N.; Prasad, R.; Clement, O. Prediction of malaria incidence using climate variability and machine learning. Inform. Med. Unlocked 2021, 22, 100508. [Google Scholar] [CrossRef] [Scilit]
  20. Quinn, J.A.; Nakasi, R.; Mugagga, P.K.; Byanyima, P.; Lubega, W.; Tadeo, J. Deep convolutional neural networks for microscopy-based point of care diagnostics. In Proceedings of the Machine Learning for Healthcare Conference (MLHC), Los Angeles, CA, USA, 19–20 August 2016; pp. 271–281. [Google Scholar]
  21. Liang, Z.; Powell, A.; Ersoy, I.; Poostchi, M.; Silamut, K.; Palaniappan, K.; Guo, P.; Ma, Y. CNN-based image analysis for malaria diagnosis. In Proceedings of the 2016 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Shenzhen, China, 15–18 December 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 493–496. [Google Scholar]
  22. Dong, Y.; Jiang, Z.; Shen, H.; Pan, W.D.; Williams, L.A.; Reddy, V.V.; Benjamin, W.H.; Bryan, A.W. Evaluations of deep convolutional neural networks for automatic identification of malaria infected cells. In Proceedings of the 2017 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), Orlando, FL, USA, 16–19 February 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 101–104. [Google Scholar]
  23. Rajaraman, S.; Jaeger, S.; Antani, S.K. Pre-trained convolutional neural networks as feature extractors toward improved malaria parasite detection. PeerJ 2018, 6, e4568. [Google Scholar] [CrossRef] [Scilit]
  24. Yang, F.; Poostchi, M.; Yu, H.; Zhou, Z.; Silamut, K.; Yu, J.; Maude, R.J.; Jaeger, S.; Antani, S. Deep learning for smartphone-based malaria parasite detection in thick blood smears. IEEE J. Biomed. Health Inform. 2019, 24, 1427–1438. [Google Scholar] [CrossRef] [Scilit]
  25. Abdurahman, F.; Fante, K.A.; Aliy, M. Malaria parasite detection in thick blood smear microscopic images using modified YOLOV3 and YOLOV4 models. BMC Bioinform. 2021, 22, 112. [Google Scholar] [CrossRef] [Scilit]
  26. Çinar, A.; Yildirim, M. Classification of malaria cell images with deep learning architectures. Ing. Des Syst. D’inform. 2020, 25, 35. [Google Scholar] [CrossRef] [Scilit]
  27. Siłka, W.; Wieczorek, M.; Siłka, J.; Woźniak, M. Malaria detection using advanced deep learning architecture. Sensors 2023, 23, 1501. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Kumar, Y.; Singh, A.; Verma, R.; Sharma, P.; Patel, S. Enhancing parasitic organism detection in microscopy images through deep learning and a fine-tuned optimizer. Sci. Rep. 2024, 14, 5753. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Sukumarran, D.; Loh, E.S.; Khairuddin, A.S.M.; Ngui, R.; Sulaiman, W.Y.W.; Vythilingam, I.; Divis, P.C.S.; Hasikin, K. Automated identification of malaria-infected cells and classification of human malaria parasites using a two-stage deep learning technique. IEEE Access 2024, 12, 135746–135763. [Google Scholar] [CrossRef] [Scilit]
  30. Minarno, A.E.; Aripa, L.; Azhar, Y.; Munarko, Y. Classification of Malaria Cell Image using Inception-V3 Architecture. JOIV Int. J. Inform. Vis. 2023, 7, 273–278. [Google Scholar] [CrossRef] [Scilit]
  31. Akkasaligar, P.T.; Pattar, S.; Gupta, S.; Barker, D.; Gunayyanavarmath, B. Classification of blood smear images using CNN and pretrained VGG16: Computer aided diagnosis of malaria disease. In Proceedings of the 2024 First International Conference on Technological Innovations and Advance Computing (TIACOMP), Bengaluru, India, 12–13 April 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 349–354. [Google Scholar]
  32. Mukti, I.Z.; Biswas, D. Transfer learning based plant diseases detection using ResNet50. In Proceedings of the 2019 4th International Conference on Electrical Information and Communication Technology (EICT), Khulna, Bangladesh, 20–22 December 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–6. [Google Scholar]
  33. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar] [CrossRef] [Scilit]
  34. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 2818–2826. [Google Scholar]
  35. Chollet, F. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 1251–1258. [Google Scholar]
  36. Mahanty, C.; Kumar, R.; Mishra, B.K.; Barna, C. COVID-19 detection with X-ray images by using transfer learning. J. Intell. Fuzzy Syst. 2022, 43, 1717–1726. [Google Scholar] [CrossRef] [Scilit]
  37. Gulzar, Y. Fruit image classification model based on MobileNetV2 with deep transfer learning technique. Sustainability 2023, 15, 1906. [Google Scholar] [CrossRef] [Scilit]
  38. Huang, G.; Liu, Z.; Van Der Maaten, L.; Weinberger, K.Q. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4700–4708. [Google Scholar]
  39. Hestiningsih, I.; Thohari, A.N.A.; Kamarudin, N.D.; Prabowo, A.; Setiawan, A.; Rahman, M.A. Mobile skin disease classification using MobileNetV2 and NASNetMobile. Int. J. Adv. Sci. Eng. Inf. Technol. 2023, 13. [Google Scholar] [CrossRef] [Scilit]
  40. Gehlot, M.; Gandhi, G.C. “EffiNet-TS”: A deep interpretable architecture using EfficientNet for plant disease detection and visualization. J. Plant Dis. Prot. 2023, 130, 413–430. [Google Scholar] [CrossRef] [Scilit]
  41. Ramyashree, K.; Sharada, B.; Bhairava, R. Comparative Analysis of Balanced and Imbalanced Datasets of Human Peripheral Blood Cells Using EfficientNet B0-B7 Models. In Proceedings of the International Conference On Innovative Computing and Communication, New Delhi, India, 23–24 February 2025; Springer: Singapore; pp. 27–45.
  42. Farooq, M.O.; Alve, M.A.K.; Kanta, K.F.; Sarker, M.R.; Hossain, M.S. Efficient and Explainable Skin Lesion Classification: A Single ConvNeXt-Large Surpassing ConvNeXt Ensembles with Grad-CAM. Ph.D. Thesis, Brac University, Dhaka, Bangladesh, 2025. [Google Scholar]
  43. Lufyagila, B.; Mgawe, B.; Sam, A.; Sangawe, A.; Mang’wena, T.; Moshi, S.; Ngajilo, T.; Ruambo, F. The Nelson Mandela African Institution of Science and Technology Malaria Dataset. Harvard Dataverse. 2024. Available online: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/O2WVWA (accessed on 20 March 2026).
  44. Pratiwi, N.K.C.; Ibrahim, N.; Fuâ, Y.N.; Rizal, S.; Hidayat, R.; Putra, A.; Santoso, B. Deteksi Parasit Plasmodium pada Citra Mikroskopis Hapusan Darah dengan Metode Deep Learning. Elkomika J. Tek. Energi Elektr. Tek. Telekomun. Tek. Elektron. 2021, 9, 306. [Google Scholar] [CrossRef] [Scilit]
  45. Prakash, S.S.; Kovoor, B.C.; Visakha, K. Convolutional neural network based malaria parasite infection detection using thin microscopic blood smear samples. In Proceedings of the 2020 Second International Conference on Inventive Research in Computing Applications (ICIRCA), Coimbatore, India, 15–17 July 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 308–313. [Google Scholar]
  46. Abubakar, A.; Ajuji, M.; Yahya, I.U. DeepFMD: Computational analysis for malaria detection in blood-smear images using deep-learning features. Appl. Syst. Innov. 2021, 4, 82. [Google Scholar] [CrossRef] [Scilit]
  47. Shekar, G.; Revathy, S.; Goud, E.K. Malaria detection using deep learning. In Proceedings of the 2020 4th International Conference on Trends in Electronics and Informatics (ICOEI)(48184), Tirunelveli, India, 15–17 June 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 746–750. [Google Scholar]
  48. Shal, A.; Gupta, R. A comparative study on malaria cell detection using computer vision. In Proceedings of the 2022 12th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India, 27–28 January 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 548–552. [Google Scholar]
Figure 1. Overview of the proposed hybrid deep learning ensemble framework using WOA for population seeding and GA for refinement.
Figure 1. Overview of the proposed hybrid deep learning ensemble framework using WOA for population seeding and GA for refinement.
Biomedicines 14 00898 g001
Figure 2. Comparison between deep learning model.
Figure 2. Comparison between deep learning model.
Biomedicines 14 00898 g002
Figure 3. Grad-CAM visualizations for the two best-performing CNN models. The highlighted regions correspond to the morphological locations that most influence the model’s prediction.
Figure 3. Grad-CAM visualizations for the two best-performing CNN models. The highlighted regions correspond to the morphological locations that most influence the model’s prediction.
Biomedicines 14 00898 g003
Figure 4. Confusion matrix of the optimized ensemble trained on the combined Thick–Thin dataset.
Figure 4. Confusion matrix of the optimized ensemble trained on the combined Thick–Thin dataset.
Biomedicines 14 00898 g004
Figure 5. Confusion Matrix for best ensemble learning.
Figure 5. Confusion Matrix for best ensemble learning.
Biomedicines 14 00898 g005
Table 1. Classical ML models for malaria classification using CNN-extracted features.
Table 1. Classical ML models for malaria classification using CNN-extracted features.
ModelAccuracyPrecisionRecall (Sens.)Specificity F 1 ROC AUCCohen’s Kappa
SVM0.68920.73130.59830.78010.65820.76010.3784
KNN0.74090.74650.72970.75220.73800.81580.4819
Decision Tree0.74000.74170.73660.74350.73910.74000.4800
Random Forest0.82600.83660.81020.84180.82320.90710.6520
Gradient Boosting0.82730.82970.82370.83090.82670.90680.6546
AdaBoost0.78680.78120.79680.77690.78890.86780.5737
Gaussian Naive Bayes0.62940.64060.58930.66940.61390.67440.2587
Logistic Regression0.87140.89320.84360.89910.86770.93490.7427
MLP Classifier0.88280.92680.83130.93430.87640.95490.7656
Note: We use CNN for feature extraction.
Table 2. Malaria classification performance across deep learning models.
Table 2. Malaria classification performance across deep learning models.
ModelAccuracyPrecisionRecall F 1 ROC AUCPR AUCKappaMCC
ResNet500.94340.94240.94450.94350.98680.98670.88680.8868
EfficientNetB00.95160.94690.95680.95180.98950.99010.90310.9032
EffNetV2B00.95390.95230.95570.95400.99050.99090.90780.9078
InceptionV30.93430.95070.91620.93310.98100.98080.86870.8692
Xception0.93070.96330.89550.92820.98220.98140.86140.8635
MobileNetV20.93490.95830.90930.93320.98440.98490.86970.8709
DenseNet1210.93700.92070.95650.93820.98240.98300.87410.8748
NASNetMobile0.93360.95610.90890.93190.98060.98110.86720.8683
ResNet101V20.95080.97480.92560.94960.98940.98990.90170.9028
EfficientNetB70.95460.94650.96370.95510.98950.99040.90930.9094
EfficientNetV2S0.95680.96050.95280.95660.99100.99180.91360.9137
ConvNeXtLarge0.95790.95300.96340.95810.99180.99260.91580.9159
VGG160.95070.94840.95320.95080.98660.98760.90130.9013
Table 3. Pairwise ensembles ( w 1 = w 2 = 0.5 ) with merged model cells.
Table 3. Pairwise ensembles ( w 1 = w 2 = 0.5 ) with merged model cells.
First ModelPartnerAccPrecRec F 1 ROCPR
AUCAUC
ResNet50EfficientNetB00.95410.95200.95650.95420.98990.9903
EffNetV2B00.95370.95030.95750.95390.99030.9907
InceptionV30.94940.95550.94270.94900.98730.9875
Xception0.94830.96430.93110.94740.98800.9883
MobileNetV20.94740.95800.93580.94680.98820.9885
DenseNet1210.94500.93630.95500.94560.98690.9874
NASNetMobile0.94870.95850.93800.94810.98760.9879
ResNet101V20.95390.96890.93800.95320.99010.9906
EfficientNetB70.95500.94910.96150.95530.99030.9909
EfficientNetV2S0.95700.95820.95570.95690.99120.9915
ConvNeXtLarge0.95850.95400.96340.95870.99140.9919
VGG160.95010.94610.95460.95030.98880.9894
EfficientNetB0EffNetV2B00.95630.95220.96080.95650.99120.9918
InceptionV30.95230.95680.94740.95210.98840.9886
Xception0.95340.96470.94120.95280.98910.9892
MobileNetV20.95450.96060.94780.95420.98940.9899
DenseNet1210.95070.94070.96190.95120.98840.9890
NASNetMobile0.95370.96030.94670.95340.98870.9892
ResNet101V20.95700.96980.94340.95640.99100.9917
EfficientNetB70.95610.95090.96190.95630.99110.9920
EfficientNetV2S0.95810.95990.95610.95800.99190.9927
ConvNeXtLarge0.95880.95370.96440.95900.99240.9931
VGG160.95460.95200.95750.95480.98990.9908
EffNetV2B0InceptionV30.95300.95950.94590.95270.98910.9893
Xception0.95140.96700.93470.95060.98950.9894
MobileNetV20.95450.96200.94630.95410.99020.9905
DenseNet1210.95300.94320.96410.95350.98900.9897
NASNetMobile0.95160.96080.94160.95110.98920.9894
ResNet101V20.95700.96940.94380.95640.99160.9921
EfficientNetB70.95850.95370.96370.95870.99140.9920
EfficientNetV2S0.95940.96140.95720.95930.99210.9926
ConvNeXtLarge0.96150.95950.96370.96160.99260.9932
VGG160.95650.95550.95750.95650.99040.9913
InceptionV3Xception0.94480.96470.92340.94360.98520.9846
MobileNetV20.94430.96090.92630.94330.98700.9874
DenseNet1210.94540.94520.94560.94540.98510.9852
NASNetMobile0.94360.96220.92340.94240.98480.9849
ResNet101V20.95080.96900.93140.94990.98800.9882
EfficientNetB70.95430.95730.95100.95410.98860.9889
EfficientNetV2S0.95480.96440.94450.95440.98950.9899
ConvNeXtLarge0.95770.95990.95540.95760.98980.9902
VGG160.94810.95400.94160.94780.98720.9876
XceptionMobileNetV20.93960.96580.91150.93780.98740.9877
DenseNet1210.94470.95440.93400.94410.98570.9859
NASNetMobile0.94030.96620.91260.93860.98510.9852
ResNet101V20.95010.97400.92490.94880.98910.9893
EfficientNetB70.95170.96180.94090.95120.98900.9892
EfficientNetV2S0.95520.96830.94120.95460.99020.9904
ConvNeXtLarge0.95610.96620.94520.95560.99070.9910
VGG160.94790.96180.93290.94710.98780.9884
MobileNetV2DenseNet1210.94630.94660.94590.94630.98630.9870
NASNetMobile0.94340.96430.92090.94210.98690.9871
ResNet101V20.95210.97450.92850.95090.98980.9903
EfficientNetB70.95560.95840.95250.95540.99000.9905
EfficientNetV2S0.95830.96920.94670.95780.99090.9913
ConvNeXtLarge0.96060.96520.95570.96040.99100.9915
VGG160.95120.95900.94270.95080.98750.9883
DenseNet121NASNetMobile0.94610.94730.94480.94600.98550.9861
ResNet101V20.95280.95880.94630.95250.98870.9894
EfficientNetB70.95230.94030.96590.95290.98880.9895
EfficientNetV2S0.95520.95080.96010.95540.98980.9907
ConvNeXtLarge0.95700.94710.96810.95750.99010.9910
VGG160.94810.93980.95750.94860.98690.9878
NASNetMobileResNet101V20.95340.97380.93180.95230.98840.9889
EfficientNetB70.95480.95870.95070.95460.98910.9896
EfficientNetV2S0.95850.96610.95030.95810.98950.9899
ConvNeXtLarge0.95970.96480.95430.95950.99010.9904
VGG160.95050.95790.94230.95010.98740.9879
ResNet101V2EfficientNetB70.95900.96540.95210.95870.99100.9918
EfficientNetV2S0.96060.97180.94880.96020.99180.9924
ConvNeXtLarge0.96010.96860.95100.95970.99230.9929
VGG160.95750.97050.94380.95700.99000.9907
EfficientNetB7EfficientNetV2S0.95830.95760.95900.95830.99190.9928
ConvNeXtLarge0.96100.95460.96810.96130.99230.9932
VGG160.95520.95110.95970.95540.99050.9913
EfficientNetV2SConvNeXtLarge0.96320.96440.96190.96310.99300.9936
VGG160.95740.95990.95460.95720.99110.9919
ConvNeXtLargeVGG160.96170.96020.96340.96180.99130.9922
Table 4. Weighted ensembles of EfficientNetV2S and ConvNeXtLarge with confusion-matrix counts.
Table 4. Weighted ensembles of EfficientNetV2S and ConvNeXtLarge with confusion-matrix counts.
w 1 w 2 AccuracyPrecisionRecall (Sens.) F 1 ROC AUCPR AUCKappaMCC
0.4490.5510.9635340.9637020.9633530.9635270.9930130.9936560.9270680.927068
0.4690.5310.9635340.9640390.9629900.9635140.9930090.9936480.9270680.927069
0.4290.5710.9633530.9630170.9637160.9633660.9930140.9936600.9267050.926706
0.3880.6120.9629900.9623190.9637160.9630170.9929860.9936400.9259800.925981
0.5100.4900.9629900.9646760.9611760.9629230.9930080.9936390.9259800.925986
Table 5. Representative thick-smear microscopy images illustrating infected and uninfected samples from the NM-AIST dataset.
Table 5. Representative thick-smear microscopy images illustrating infected and uninfected samples from the NM-AIST dataset.
ClassImage 1Image 2Image 3
THICK-InfectedBiomedicines 14 00898 i001Biomedicines 14 00898 i002Biomedicines 14 00898 i003
THICK-UninfectedBiomedicines 14 00898 i004Biomedicines 14 00898 i005Biomedicines 14 00898 i006
THIN-InfectedBiomedicines 14 00898 i007Biomedicines 14 00898 i008Biomedicines 14 00898 i009
THIN-UninfectedBiomedicines 14 00898 i010Biomedicines 14 00898 i011Biomedicines 14 00898 i012
Table 6. Performance of the proposed models on the NM-AIST Thick-Smear Dataset.
Table 6. Performance of the proposed models on the NM-AIST Thick-Smear Dataset.
ModelAcc.Prec.Rec.Spec. F 1 ROC-AUCPR-AUCKappaMCC
EfficientNetV2S0.95700.99060.92540.99070.95690.99570.99600.91410.9162
ConvNeXtLarge0.94340.99510.89470.99530.94230.99620.99660.88710.8920
Optimal Ensemble0.96381.00000.92981.00000.96360.99850.99860.92770.9301
Note: The bold number presents the best result.
Table 7. Performance of individual models and optimized ensemble on the combined Thick–Thin dataset.
Table 7. Performance of individual models and optimized ensemble on the combined Thick–Thin dataset.
ModelAcc.Prec.Rec.Spec. F 1 ROC-AUCPR-AUCKappaMCC
EfficientNetV2S0.95630.98350.94560.97400.96420.99580.99750.90840.9095
ConvNeXtLarge0.95070.96770.95240.94800.96000.99110.99480.89580.8960
Optimal Ensemble0.96620.98380.96150.97400.97250.99650.99790.92870.9291
Note: The bold number presents the best result.
Table 8. Comparative Analysis with Existing TB Classification Approaches.
Table 8. Comparative Analysis with Existing TB Classification Approaches.
ReferenceAccuracyRecallPrecision F 1 -Score
Pratiwi et al. [44]95.83989896
Prakash et al. [45]94949494
Abubakar et al. [46]94.88969495
Shekar et al. [47]9693
Shal and Gupta [48]94.6795.25
Dong et al. [22]95.2895.5095.10
Rajaraman et al. [23]95.9095.90
Our Approach96.3596.4096.396.35
Note: The bold number presents the best result.
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.

Share and Cite

MDPI and ACS Style

Gasmi, K.; Krichen, M.; Alanazi, A.; Almenwer, S.; Almaghrabi, S.; Yahyaoui, S. CT-Malaria Detection via Adaptive-Weighted Deep Learning Models. Biomedicines 2026, 14, 898. https://doi.org/10.3390/biomedicines14040898

AMA Style

Gasmi K, Krichen M, Alanazi A, Almenwer S, Almaghrabi S, Yahyaoui S. CT-Malaria Detection via Adaptive-Weighted Deep Learning Models. Biomedicines. 2026; 14(4):898. https://doi.org/10.3390/biomedicines14040898

Chicago/Turabian Style

Gasmi, Karim, Moez Krichen, Afrah Alanazi, Sahar Almenwer, Sarah Almaghrabi, and Samia Yahyaoui. 2026. "CT-Malaria Detection via Adaptive-Weighted Deep Learning Models" Biomedicines 14, no. 4: 898. https://doi.org/10.3390/biomedicines14040898

APA Style

Gasmi, K., Krichen, M., Alanazi, A., Almenwer, S., Almaghrabi, S., & Yahyaoui, S. (2026). CT-Malaria Detection via Adaptive-Weighted Deep Learning Models. Biomedicines, 14(4), 898. https://doi.org/10.3390/biomedicines14040898

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop