arXiv:2608.24793cs.CVAug 2026

Manuscript Offprint

arXiv:2608.24793

EMFE: A lightweight, explainable machine learning framework for malaria cell classification

Md Abdullah Al Kafi, Walayat Hussain, Mousumi Karmakar, Sumit Kumar Banshal, Ahmed Al Marouf

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Automated malaria diagnosis from stained blood-smear microscopy is dominated by deep convolutional neural networks that are accurate but computationally expensive, poorly interpretable, and rarely validated with patient-level rigor. We present EMFE (Efficient Mathematical Feature Extraction), a five-feature mathematical feature-extraction framework for classifying single red-blood-cell images as parasitized or uninfected, combining Gray World color normalization, adaptive green-channel thresholding, and morphological spot detection with classical machine learning classifiers. Using the National Institutes of Health (NIH) Lister Hill National Center for Biomedical Communications (LHNCBC) malaria dataset (27,558 images, 200 patients), we evaluate three classifiers, namely Random Forest, Histogram Gradient Boosting, and Support Vector Machine, under a patient-grouped nested cross-validation protocol ( Kouter=20K_{outer} = 20, Kinner=3K_{inner} = 3) that keeps every patient's cells confined to a single fold, eliminating a leakage risk common in this literature. The optimized Random Forest achieves 94.6% pooled out-of-fold accuracy (95% CI [93.6, 95.7]), corroborated by an untouched 40-patient holdout test (94.3%) and a patient-level permutation test (p < 0.001, 1,000 permutations). A controlled ablation isolates each feature's and each pipeline stage's contribution. A hardware-matched comparison against retrained DenseNet121, ResNet50, and MobileNetV2 baselines quantifies the accuracy-efficiency trade-off with a properly powered paired statistical test. A synthetic imaging-perturbation study characterizes three specific failure modes, and a full explainability analysis identifies spot saturation as the dominant discriminative feature. We further report a patient-level aggregation analysis quantifying the sensitivity-specificity trade-off and false-positive accumulation when per-cell predictions are pooled into a per-patient call. Together, these results provide a statistically rigorous, mathematically transparent, and computationally lightweight alternative to deep learning for this task, with quantified limitations on where that evidence holds.

1 Introduction

Malaria remains one of the most burdensome mosquito-borne diseases worldwide, concentrated in Sub-Saharan Africa and Southeast Asia, where the causative Plasmodium parasite continues to cause hundreds of thousands of deaths annually [1]. The reference diagnostic standard, microscopic examination of Giemsa-stained thin blood smears, is accurate but slow, requires a trained microscopist, and is difficult to scale in the low-resource settings where malaria transmission is highest [2]. These constraints have motivated a large body of work on automated, image-based malaria cell classification.

The dominant approach in this literature is deep convolutional neural networks (CNNs) [3], which learn discriminative features directly from raw pixel data and, on the NIH LHNCBC single-cell dataset used throughout this study, routinely report accuracies in the high 90s [4]. This accuracy, however, comes with three recurring costs that are the specific motivation for the present work.

First, CNNs are computationally expensive, requiring large model files, substantial memory, and, typically, GPU acceleration for practical inference throughput. Diagnostic settings in malaria-endemic regions frequently lack reliable power, GPU hardware, or stable connectivity, making GPU-dependent pipelines difficult to deploy at the point of care [5].

Second, CNNs are largely uninterpretable. A prediction is a function of millions of learned weights with no direct correspondence to a clinically meaningful quantity, which limits the trust a health worker can place in an individual prediction and complicates auditing a model's failure modes [6].

Third, and most consequently for the validity of reported accuracy figures, the NIH dataset, and datasets like it, contain multiple cell images per patient. A cross-validation split performed at the image level, without grouping by patient, allows a given patient's cells to appear in both the training and test partitions of the same fold. A model can then partially learn patient- or slide-specific characteristics (staining batch, illumination, imaging artifacts) rather than transferable morphological features, inflating the apparent accuracy relative to what a model would achieve on an unseen patient. Two of the very few studies in this literature that explicitly measure this effect directly report the difference: cell-level accuracy of 98.6% falling to 95.9% at the patient level in one case [4], and 96.9% falling to 78.0% in another [7]. Many published classical-feature malaria-classification studies do not report whether their evaluation was patient-grouped, which makes it difficult to know from the published record alone how much of their headline accuracy reflects generalization versus partial leakage.

Classical, handcrafted-feature approaches offer a potential answer to the first two costs: hand-engineered morphological, textural, and color features are inexpensive to compute, run in milliseconds on a CPU, and, because each feature has an explicit mathematical definition, are directly inspectable [8–10]. This literature has generally lacked rigor on the third point: patient-grouped evaluation, adequately powered statistical significance testing, and a controlled, hardware-matched comparison against deep-learning alternatives rather than an assumed or partial one. A common substitute for proper significance testing in this literature is a one-sample test against a chance baseline, which incorrectly treats non-independent cross-validation folds as independent observations.

We address these three gaps with a five-feature mathematical descriptor set, Efficient Mathematical Feature Extraction (EMFE), built around Gray World color normalization and adaptive green-channel spot detection. It substantially extends our own preliminary, non-peer-reviewed investigation of this general idea [11], which used a minimal two-feature descriptor evaluated with an image-level, non-patient-grouped train/test split and a single significance test. Here we expand to a five-feature descriptor set with an explicit biological rationale for each feature, replace the image-level split with the patient-grouped nested cross-validation protocol described below, and add the full statistical validation stack, ablation study, robustness characterization, explainability analysis, and patient-level aggregation analysis that the preliminary work lacked. Beyond fixing the specific statistical and leakage problems identified above, we provide the full mathematical formulation and biological rationale for every processing stage and every feature, a companion ablation study isolating each feature's and stage's individual contribution, a synthetic robustness characterization, a full explainability analysis, and a patient-level aggregation analysis. Collectively, these form a methodologically complete account of what this feature set does, why each design choice was made, and precisely where its validated evidence ends.

References (20)