MORPHA: Morphology-Constrained Training and the Limits of Cross-Acquisition Transfer in Low-Resource Malaria Microscopy
Authors: Favour Okechukwu Igwezeke, Chikodili Helen Ugwuishiwu, Joseph Uzochukwu Emesiani, Samuel Ifebuche Agada, Ekenechukwu Lilian Anozie, Mary Ofuru Kama, Adaobi Chiazor Emegoakor
Organizations: Faculty of Pharmaceutical Sciences, University of Nigeria, Nsukka, Nigeria · Department of Computer Science, University of Nigeria, Nsukka, Nigeria · Department of Radiology, National Hospital Abuja, Nigeria · Department of Computer Science, State University of Medical and Applied Sciences, Igbo-Eno, Enugu State, Nigeria · Department of Software Engineering, Veritas University, Abuja, Nigeria · Department of Radiology, Nnamdi Azikiwe University Teaching Hospital, Nnewi, Anambra State, Nigeria
In low-resource malaria microscopy, a model trained on one smear preparation routinely meets images from another, and how well morphology-based constraints transfer across this acquisition gap is unclear. We study this on real African field microscopy from Uganda (Lacuna), asking where encoding measured parasite morphology as a training constraint improves cross-acquisition transfer and where generic regularisation suffices. We present MORPHA, a morphological consistency constraint that derives stage-conditional statistics from the stage-annotated BBBC041 dataset and penalises predictions that deviate from them. Defined uniformly across binary, object-level, and stage-aware regimes without changing architecture or inference, it shapes training in the binary regime. The detection regime is a mapped boundary. On transfer from thin-smear cells to thick-smear field images, the constraint reduces the binary-classification generalisation drop by 30.8% (F1 0.578 to 0.699) at negligible within-domain cost and lowers in-distribution calibration error by 49% (ECE 0.0162 to 0.0082). A content-free control applying the identical constraint to random statistics recovers less of the drop (25.3% vs 30.8%), indicating the measured content, not constraining alone, contributes to the gain. Two standard confidence regularisers exceed the constraint on raw transfer, locating where morphology adds value and where generic regularisation suffices. We map two deployment-relevant boundaries: thin-smear statistics do not transfer to thick-smear detection (trophozoite [email protected] falls to 0.000), and cross-acquisition pseudo-labelling fails before filtering applies. Together these yield a morphology-grounded consistency signal and evidence-based guidance for malaria dataset and model design in low-resource settings.
Figures & tables
Figure 1: Smear preparation creates a visual domain shift across the three datasets. (a) NIH thin-smear individual cell crop with binary labels. (b) BBBC041 thin-smear field image with stage-annotated boxes. (c) Lacuna thick-smear African field microscopy, the primary transfer target.
Figure 2: Overview of MORPHA. (a) Stage-conditional morphology statistics (area, aspect ratio, intensity) are derived from BBBC041 annotations and stored as per-class Gaussians. (b) For a predicted positive region r , a Mahalanobis consistency score d(r) to the nearest stage distribution is added to the task loss as a soft penalty, without changing architecture or inference. (c) The constraint acts directly in the binary regime, is a mapped boundary in detection (fixed ground-truth boxes, no gradient), and is evaluated under cross-acquisition transfer from thin-smear sources to Lacuna African field microscopy.
Stage
N
BB Area px 2
Asp. Ratio
Rel. RBC
Intensity
Uninfected RBC
77,420
11,678 ± 2,610
1.019 ± 0.157
1.000
0.529 ± 0.129
Ring
353
15,239 ± 3,064
1.006 ± 0.176
1.305
0.509 ± 0.087
Trophozoite
1,473
17,919 ± 4,746
1.026 ± 0.250
1.534
0.515 ± 0.100
Schizont
179
20,377 ± 4,562
1.009 ± 0.237
1.745
0.593 ± 0.102
Gametocyte
144
17,270 ± 3,316
1.027 ± 0.228
1.479
0.513 ± 0.083
Leukocyte
103
16,549 ± 8,092
1.029 ± 0.170
1.417
0.350 ± 0.106
Table 1: Morphological statistics from BBBC041. Rel. RBC = stage area / uninfected-RBC area. Mean ± SD.
Model
Source
Target
Within
Cross
Drop
Binary-UC
NIH
Lacuna
0.9739
0.5783
0.3956
Binary-MC
NIH
Lacuna
0.9729
0.6992
0.2737
Stage-UC
BBBC041
Lacuna
0.832 ‡
0.000
0.832
Stage-MC †
BBBC041
Lacuna
0.832 ‡
0.000 †
0.832 †
Table 2: Cross-dataset generalisation (thin-smear to Lacuna). Drop = within − cross. ‡ BBBC041 trophozoite mAP50. † predicted, not measured.
Model
NIH F1
NIH ECE
Lac F1
Lac ECE
Reduction
Binary-UC
0.9739
0.0165
0.5783
0.4827
—
Binary-MC
0.9729
0.0084
0.6992
0.3517
30.8%
Binary-MC-Random
0.9768
0.0071
0.6813
0.2974
25.3%
Binary-LS (label smoothing)
0.9692
0.0367
0.7570
0.2001
46.4%
Binary-CP (confidence penalty)
0.9741
0.0031
0.7404
0.2530
40.9%
Table 3: Content-free (random) ablation and two regularisers. Lacuna matched set ( n=2,432 ). Reduction = relative drop reduction vs Binary-UC. Single-pass ECE.
Automated malaria diagnosis from thin blood-smear microscopy could meaningfully reduce the burden on under-resourced laboratories, but a model that maximises accuracy on clean laboratory images fails badly the moment an inexpensive smartphone camera introduces sensor noise. This paper introduces MalariaCascade, a two-stage inference system in which a lightweight MobileNetV2 sentinel (2,225,153 parameters) makes confident classifications at low compute cost and escalates uncertain cases to an EfficientNet-B3 expert (10,697,769 parameters) that sees only clean, standardised images regardless of how corrupted the incoming frame is. Structural isolation of the expert stage, not learned robustness, is the mechanism. The sentinel is trained under a safety-score objective that places an explicit floor on Recall(Parasitised) (>=0.95) and Recall(Uninfected) (>=0.40) before precision is optimised, ensuring the checkpoint satisfies clinical safety constraints by construction. On the NIH Malaria Cell Images Dataset (27,558 cells), the cascade reaches Accuracy=0.9736, Recall(Parasitised)=0.9570, Precision(Parasitised)=0.9912, F1=0.9738, and AUROC=0.9955 on the clean test set. Under Gaussian sensor noise at full severity, cascade Recall(Parasitised) degrades by only 2.4 pp (0.9570 to 0.9329), while the flat single-model baseline collapses by 63.0 pp (0.9584 to 0.3281). McNemar's test confirms the cascade improvement is statistically significant (chi^2=11.14, p=0.00085). An ablation isolating the structural property shows that routing clean images to the expert is responsible for a 16.8 pp Recall(Parasitised) advantage under sensor noise relative to a cascade where the expert also sees corrupted inputs.
J. T. Hagbe, Michel Emel
African School of Economics, Abomey-Calavi, Benin · African Institute for Mathematical Sciences (AIMS), Cameroon
Automated malaria diagnosis from blood smear microscopy is a critical challenge in global health AI; in resource-limited settings, the scarcity of expert microscopists remains the primary bottleneck to timely and accurate diagnosis. Three compounding failure modes prevent reliable clinical deployment of existing deep learning systems. First, end-to-end detectors treat unannotated cells as background during training, producing recall figures that are strongly influenced by annotation completeness rather than reflecting true cell recovery. Second, Non-Maximum Suppression tends to suppress valid detections in dense smear regions where infection counts matter most. Third, existing whole-slide detection pipelines lack per-cell spatial evidence for clinical audit, despite image-level explainability methods such as Grad-CAM having been applied to malaria image classification tasks. We present MalariAI, a two-stage decoupled framework that addresses all three failure modes in a unified pipeline. Stage 1 applies an annotation-agnostic distance-transform guided watershed algorithm to isolate every cell in a full 1600x1200 blood smear image, recovering 75.95% of ground-truth cells by centroid localisation across the 120-image NIH BBBC041 test set without any ground-truth input. Stage 2 fine-tunes EfficientNet-B0 with Focal Loss (gamma = 2.0, per-class inverse-frequency weights) on 64x64 crops, achieving 98.36% overall classification accuracy with 87.5% and 75.0% per-class accuracy on the rare schizont and gametocyte stages, compared to only 24.57% and 25.95% AP for a Faster R-CNN baseline on the same classes. Grad-CAM++ heatmaps generated per detected cell provide instance-level spatial evidence for clinical audit, enabling microscopists to verify model predictions at the individual parasite level without sacrificing classification performance.
Kaysarul Anas Apurba, Md Hasibul Hasan, Mohammed Ali +1
Department of Electrical and Computer Engineering, North South University, Dhaka 1229, Bangladesh · Department of Computer Science and Engineering, International University of Business Agriculture and Technology (IUBAT), Dhaka 1230, Bangladesh
Malaria remains a leading cause of mortality in resource-limited settings, where expert microscopists are scarce. Automated diagnosis based on microscopy images thus has strong potential to improve care delivery. But for an algorithm to deploy, a necessary requirement is that it meet a suite of non-obvious (from a machine learning (ML) perspective) clinical constraints. Therefore, in close consultation with a national health center we developed a malaria diagnosis pipeline which addresses key requirements listed by the health care center but typically ignored in the ML malaria literature. In particular, it includes: (i) stopping criteria (to reduce image acquisition and time-to-result); (ii) human-in-the-loop functionality (for review and accountability); (iii) multi-species discrimination (since treatment varies by species); (iv) thick film detection (standard for microscopy); (v) computationally-efficient uncertainty calculations (to aid clinician review); and (vi) an edge device platform (since internet can be spotty in this catchment area). The mobile system performs all inference on-device using YOLOv13n deployed via TensorFlow Lite. It detects four species and white blood cells from Giemsa-stained thick blood smear images, aggregating per-image detections into slide-level parasitemia with World Health Organization (WHO)-standard quantification. This paper highlights these various clinical constraints and offers methods to address them. Evaluated on 2,739 annotated images across all four species, the system achieves [email protected] of 0.863, per-image parasite count correlation of r = 0.812, slide-level r = 0.951 (soft counting, 10 images/slide), and runs entirely offline with a pipeline time of 10.27 +- 1.65 s per image.
Idaya Seidu, Ahmed Tahiru Issah, Charles B. Delahunt +1
Carnegie Mellon University Africa, Kigali Innovation City, Kigali, Rwanda · University of Washington, Seattle, Washington, USA