Skip to content
Research Article Open access CC BY 4.0

Explainable AI for Malaria Diagnosis: Comparative Analysis of ML Models Using Random Forest Feature Selection and SHAP Interpretability

David Kipngetich Chepkonga, Amos Kipkorir Langat, Ebenezer Esenogho, Mohamed Abdirahman Jama, Collins Otieno Owuor, Winnie Jepkonga Kulei, Charles Otieno Ndede, Erick Munala Sifuna, Samuel Kipsang Kaptum, Fred Junior Onyango, John Kamwele Mutinda, Aymar AKILIMALI

Asian Journal of Research in Computer Science · pp. 172–193 · Published 31 Jul 2026

10.9734/ajrcos/2026/v19i8899

Abstract

Malaria remains one of the most significant causes of morbidity and mortality in tropical and subtropical regions, and timely diagnosis is essential for effective case management. Microscopy is the traditional parasitological reference standard, while rapid diagnostic tests (RDTs) are widely used, field-deployable alternatives with product- and antigen-dependent sensitivity and specificity; both approaches are constrained by requirements for trained personnel, reagents, or equipment in resource-limited settings. This study develops and evaluates, on a simulated clinical dataset calibrated to published aggregate statistics, an explainable artificial intelligence pipeline for malaria diagnosis prediction from routinely collectable symptoms, vital signs, and haematological indices, using six machine-learning (ML) models: Logistic Regression (LR), Naive Bayes (NB), K-Nearest Neighbours (KNN), Random Forest (RF), Support Vector Classifier (SVC), and Decision Tree (DT). The Synthetic Minority Oversampling Technique (SMOTE) and Random Forest feature selection are embedded within a single leakage-safe pipeline that is refitted in every cross-validation fold. The reported best model is selected on the basis of the cross-validated F1-score rather than held-out test performance, and the test set is used exactly once for confirmatory reporting. Under this design, SVC with RF-selected features was selected (mean cross-validated F1 = 0.740), achieving a test-set accuracy of 0.906 [95% CI 0.852, 0.953], recall of 0.867 [0.667, 1.000], and ROC AUC of 0.959 [0.919, 0.988]. A paired bootstrap test found no statistically significant difference in AUC compared with the runner-up, Logistic Regression (AUC 0.956, p = 0.81). Permutation importance corroborated 8 of the top 10 impurity-based features. Parasite density, the quantity used to determine the parasitological diagnosis, was excluded from the predictor set as a precautionary safeguard against near-total label leakage. Calibration, subgroup recall by age and sex, and a class-weighting comparison are also reported. This framework illustrates, without any claim of clinical validity, how a leakage-safe ML pipeline and SHAP interpretability can be combined and rigorously self-audited; real patient-level data and external validation are required before any clinical inference is drawn.

Malaria diagnosis machine learning random forest SHAP feature selection explainable artificial intelligence simulation study resource-limited settings

Cited by 0

No indexed citations yet.

Article metrics

Real usage data collected on this platform.

40

Page views

0

PDF downloads

4

Outbound clicks

0

Citations

Views over time

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

Traffic sources

Referring site, by host.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.