Explainable Deep Learning for Malaria Parasite Detection and Species Differentiation in Thick Blood Smear Images: A Pilot Feasibility Study
Organizations: Department of Information Technology, Injibara University, Ethiopia · Department of Computer Science, Injibara University, Ethiopia · Department of Mathematics, Injibara University,Ethiopia · Department of Information Science, Injibara University,Ethiopia
Abstract
Species-level differentiation of Plasmodium falciparum (PF) and P. vivax (PV) determines treatment, yet deep learning detectors rarely test whether their explanations are reliable. In this pilot feasibility study of TRACE-Mal, a research prototype combining YOLOv8n-seg detection and a six-model soft-voting ensemble, we examined whether agreement among three post-hoc explanation methods (Grad-CAM, LIME and SHAP) is associated with the correctness of species calls. the study analysed 2,847 parasite crops from 250 thick smears within publicly available Lacuna Malaria Datasets. The model achieved an mAP50 score of 0.79 and the ensemble had a macro F1 of 0.84 (PF recall 0.86; PV recall 0.74). Unadjusted analyses of crops revealed that predictions explained by greather than or equal to 2 methods were more accurate (86.2% vs 78.9%; difference 7.3 percentage points; 95% CI 3.5-11.1) compared to those explained by less than 2 methods. As the number of explanatory methods increased so did prediction accuracy (from 73.8% for no methods to 89.5% for all three methods). When performing a cluster-bootstrap analysis of 60 test images, again there was a positive consensus difference (7.3 percentage points; 95% CI 2.9-11.8). Further, incorporating explanation information into a model's prediction confidence enhanced its error differentiation ability (AUROC 0.024; 95% CI 0.008-0.041). PF and PV parasite crops have distinct morphologies. Although based on one unvalidated public data source, these findings demonstrate proof-of-concept and should not be taken as a measure of diagnostic capability.
Figures & tables
| Stage | Images | Crops | Used for |
|---|---|---|---|
| Detector training | 200 | — | Training YOLOv8n-seg |
| Detector validation | 50 | — | Evaluating mAP@50 and selecting the checkpoint |
| Ensemble training | 150 | 1,708 | Training the six classifiers (with image-disjoint data) |
| Development / tuning | 40 | 456 | Tuning , IoU thresholds, and early stopping |
| Held-out test | 60 | 683 | Evaluating held-out data and performing image-clustered inference |
| Total | 250 | 2,847 | Complete pilot cohort across disjoint partitions |
| Model | Parameters | Pretraining |
|---|---|---|
| Custom CNN | 0.6 M | None |
| VGG16 | 138 M | ImageNet |
| DenseNet121 | 8 M | ImageNet |
| InceptionV3 | 24 M | ImageNet |
| MobileNetV2 | 3.5 M | ImageNet |
| ResNet50 | 25.6 M | ImageNet |
| No. | Feature | Type | Morphological interpretation |
|---|---|---|---|
| 1 | Circularity | Float [0,1] | Compactness; high ( ) in rings or WBCs |
| 2 | Aspect ratio | Float | Elongation; values above suggest pf gametocytes |
| 3 | Eccentricity | Float [0,1] | Ellipse axis ratio; high values indicate a crescent shape |
| 4 | Solidity | Float [0,1] | Convexity; values below suggest amoeboid Pv |
| 5 | is_round | Bool | Circularity greater than |
| 6 | is_elongated | Bool | Aspect ratio greater than |
| Metric | Value |
|---|---|
| Detector mAP@50 (YOLOv8n-seg) | 0.79 |
| Extracted crops | 2,847 |
| Ensemble macro-F1 | 0.84 |
| pf recall | 0.86 |
| pv recall | 0.74 |
| Negative specificity | 0.91 |
| Comparison | Mean IoU | Spearman |
|---|---|---|
| Grad-CAM vs. annotation ( Pf ) | 0.79 | 0.68 |
| Grad-CAM vs. annotation ( Pv ) | 0.73 | 0.62 |
| Grad-CAM vs. LIME | 0.63 | 0.57 |
| Grad-CAM vs. SHAP | 0.57 | 0.51 |
| LIME versus SHAP | 0.54 | 0.48 |
| Mean agreement across pairs | 0.58 | 0.52 |
| Stratum | Accuracy | 95% CI | |
|---|---|---|---|
| Explanation-supported | 1,984 | 0.862 | 0.841–0.882 |
| Explanation-discordant | 863 | 0.789 | 0.754–0.823 |
| Gap (supported discordant) | — | 0.073 | 0.035–0.111 |
| Stratum | Supporting methods | Accuracy | 95% CI | vs. three-way (pp) | |
|---|---|---|---|---|---|
| Grad-CAM + LIME + SHAP | 3 | 712 | 0.895 | 0.872–0.916 | — |
| Grad-CAM + LIME (SHAP dissents) | 2 | 543 | 0.868 | 0.838–0.896 | |
| Grad-CAM + SHAP (LIME dissents) | 2 | 489 | 0.845 | 0.811–0.876 | |
| LIME + SHAP (Grad-CAM dissents) | 2 | 240 | 0.788 | 0.734–0.837 | |
| Single method only | 1 | 612 | 0.810 | 0.777–0.841 | |
| No method supporting | 0 | 251 | 0.738 | 0.681–0.791 |
| Feature | pf ( ) | pv ( ) | -value | Effect size |
|---|---|---|---|---|
| Circularity | ||||
| Aspect ratio | ||||
| Eccentricity | ||||
| Solidity | ||||
| Blue–purple fraction | 0.002 | |||
| Dark fraction |
| Model condition | Mixed recall (95% CI) | Misclassified as pf ( ) | Misclassified as pv ( ) |
|---|---|---|---|
| Full model (mixed output) | 0.61 (0.46–0.75) | 8 | 3 |
| Ablation without mixed output | 0.09 (0.02–0.20) | 34 | 6 |
Explainable Medical Image Analysis
Explainable Medical Image Analysis develops methods that make medical image predictions understandable, verifiable, and useful for clinical review.
See all 287 papers