Introduction
According to the World Health Organization (WHO) World Malaria Report 2025, an estimated 282 million malaria cases and 610,000 malaria-related deaths occurred globally in 2024 (1). The WHO African Region accounted for approximately 94% of malaria cases and 95% of malaria deaths worldwide, confirming that the region continues to bear a disproportionate share of the global malaria burden. Five countries, including Nigeria, collectively accounted for more than half of all malaria cases reported globally in 2024 (1). Timely identification remains important for preventing severe complications and supporting appropriate clinical management (2).
Malaria risk assessment can be challenging because common symptoms such as fever and headache overlap with those of other parasitic and febrile illnesses (3). Delayed diagnosis remains an important contributor to preventable morbidity and mortality in high-burden settings (3). Malaria is caused by Plasmodium parasites and is transmitted primarily through infected female Anopheles mosquitoes (1). Established diagnostic approaches include microscopy, rapid diagnostic tests and polymerase chain reaction, but access to these procedures may be constrained in some resource-limited communities by infrastructure, equipment, cost and availability of trained personnel (4, 5).
Although machine learning has increasingly been investigated for malaria prediction, an important gap remains between predictive models developed with relatively extensive clinical, demographic, environmental, laboratory, or image-based information and lightweight systems that can operate from a small number of routinely observable symptoms (6, 7, 8, 9). Many reported approaches depend on broader predictor sets, laboratory infrastructure, image acquisition, or computational resources that may not always be readily available in resource-constrained settings. There is therefore a practical engineering need for compact malaria risk-screening frameworks that minimise input requirements, support local inference without continuous internet connectivity, and remain appropriately positioned as decision-support tools rather than substitutes for confirmatory diagnosis. The present study addresses this gap by investigating whether a compact symptom-based machine learning framework can be combined with an offline mobile implementation for preliminary malaria risk assessment.
Throughout this study, the terms risk prediction and risk screening refer to estimation of malaria likelihood from the five reported symptom inputs and do not imply confirmation of malaria infection. Triage refers to the use of this preliminary screening information to support decisions about whether further clinical assessment or diagnostic testing should be sought. Diagnosis is reserved for the clinical determination of malaria using appropriate professional assessment and established confirmatory procedures. The developed model and mobile application therefore provide preliminary screening and referral support rather than a definitive malaria diagnosis.
The principal contributions of this study are threefold. First, five conventional machine learning classifiers and a compact Feedforward Neural Network (FNN) are evaluated using the same five routinely documented symptom inputs, namely fever, headache, vomiting, cold, and cough, under a common held-out evaluation framework. Second, a lightweight 5–16–32–1 FNN architecture is implemented and converted to TensorFlow Lite for offline integration into an Android application, demonstrating an end-to-end engineering pathway from clinical-record modelling to on-device malaria risk screening. Third, the study evaluates the model using complementary classification measures and explicitly considers the clinical implications of false-positive and false-negative screening outcomes, while restricting the application to risk screening, confirmatory-testing referral, and clinical decision support. The novelty therefore lies in the integration of a minimal symptom-input model, comparative machine-learning evaluation, and offline mobile deployment within a safety-conscious malaria screening framework intended for settings with limited diagnostic and connectivity resources.
Related Work
Image-Based Malaria Diagnosis
Machine learning has contributed substantially to malaria screening, particularly through convolutional neural network-based analysis of blood smear images. Several studies have reported strong classification performance under controlled laboratory conditions (6, 10). However, image-based approaches generally depend on specialised imaging equipment, well-prepared blood smears, adequately labelled datasets, and trained personnel. These requirements can restrict their practical use in rural and resource-constrained settings. The present study therefore adopts a symptom-based approach that does not depend on microscopic image acquisition or laboratory infrastructure for the initial risk assessment.
Symptom-Based Malaria Risk Prediction
Previous symptom-based machine learning studies have investigated malaria risk prediction using basic clinical information without laboratory testing, with reported performance varying across algorithms, populations, and predictor sets. Additional malaria-prediction studies have compared supervised algorithms using climatic and non-climatic predictors or text-based clinical information (11, 12). At the population level, climate variability has also been used as a predictor of malaria incidence (13). Some approaches incorporate clinical, demographic, or environmental variables (7, 8, 9), while others highlight challenges involving feature selection, class imbalance, and generalisation across populations (8, 14). Models intended for resource-constrained environments must therefore be considered not only in terms of predictive performance but also in relation to input requirements, computational demands, and the intended deployment setting. Ayoka and Nnadi (2026) applied machine learning methods to Nigerian demographic and health survey data for malaria prevalence prediction, further demonstrating the potential of data-driven approaches for malaria risk estimation and public health decision support (15).
Comparative Analysis of Machine Learning Models
Several studies have compared machine learning algorithms for malaria prediction, illustrating trade-offs among predictive performance, robustness, interpretability, and computational requirements. Random Forest (RF) has performed strongly in some clinical-data studies (9, 16), Feedforward Neural Networks (FNNs) have been used to capture nonlinear relationships in complex datasets (14), and Support Vector Machines (SVMs) have demonstrated useful classification behaviour under particular data conditions (15). These findings indicate that no single algorithm can be assumed to be optimal across datasets, and model suitability should instead be assessed in relation to the available predictors, study population, evaluation procedure, and intended deployment environment. Similar task-dependent variation in model performance has also been reported in machine-learning applications to other clinical classification problems (17).
Challenges and Limitations
Despite advances in machine learning for malaria screening, challenges remain in data quality, generalisation, interpretability, and deployment. Fairness and health equity matter when machine-learning systems are transferred across patient populations (18). Deep learning models have been applied to city-cluster data for region-specific malaria prediction (19), reinforcing the need to evaluate transferability before broader deployment. Related infectious-disease research has used machine learning to predict positive cases of waterborne diseases (20). The limited transparency of deep learning has motivated increasing attention to explainability and interpretable model behaviour (21). Recent malaria research has explored convolutional neural network-Vision Transformer architectures for malaria detection and classification (22). For resource-constrained deployment, portability and computational efficiency remain important design requirements. More broadly, machine learning applications in healthcare have demonstrated the potential of data-driven methods to support clinical decision making and improve healthcare delivery (23). Table 1 provides a structured comparison of representative machine learning studies on malaria prediction by their datasets and study settings, predictor variables, modelling approaches, reported performance, and principal limitations or methodological distinctions.
Table 1. Comparison of Representative Machine Learning Studies for Malaria Prediction.
Study | Dataset/Setting | Features | Model | Reported Performance | Main Limitation/Distinction |
|---|---|---|---|---|---|
(14) | Clinical records from malaria-endemic regions of Indonesia | Symptoms and previous malaria history | Neural Network | Accuracy: 95.76% for patients with previous malaria history; 88.48% for patients without previous malaria history | Performance varied according to previous malaria history |
(9) | 2,556 patient records from Morogoro and Kilimanjaro, Tanzania | 36 clinical symptom and demographic features | Random Forest | Accuracy: 95% in Kilimanjaro, 87% in Morogoro, and 82% for the combined dataset | Demonstrated geographical variation in predictive performance and used a comparatively broad feature set |
(8) | 200 patients from Nigeria | Demographic, environmental, behavioural, and clinical variables | Penalised Logistic Regression (LR) | Test ROC-AUC: 0.83 | Relatively small clinical dataset and dependence on several categories of patient and environmental information |
(7) | Historical district-level data from The Gambia | Meteorological, population, temporal, and malaria surveillance variables | XGBoost and C5.0 Decision Tree (DT) | Test accuracy: 93.3%; XGBoost ROC-AUC: 0.97 | Population-level malaria outbreak prediction rather than individual patient screening |
(16) | 337 patient records from Ogun State, Nigeria | Clinical symptoms and patient characteristics | (RF) | ROC-AUC: 0.869 | Combined ensemble learning with SHAP, LIME, and permutation feature importance |
(24) | Clinical records from a medical college hospital | Clinical symptoms and demographic information | Extra Trees Classifier | Mean ROC-AUC: 0.959; balanced accuracy: 0.904; recall: 0.824 | Compared multiple supervised classifiers using broader clinical and demographic information |
Note: ROC-AUC = Receiver Operating Characteristic Area Under the Curve; XGBoost = Extreme Gradient Boosting; SHAP = Shapley Additive Explanations; LIME = Local Interpretable Model-agnostic Explanations.
The studies summarised in Table 1 demonstrate considerable variation in dataset composition, predictor selection, modelling approach, and evaluation strategy. Some approaches rely primarily on clinical symptoms, while others combine demographic, environmental, epidemiological, or historical information. Their reported performance should therefore not be compared solely on numerical values because the prediction objectives, study populations, feature sets, and validation procedures differ. Collectively, these studies demonstrate the potential of machine learning for malaria prediction while also highlighting continuing challenges related to generalisability, input requirements, model interpretability, and practical deployment.
Materials and Methods
A quantitative research design was adopted to develop and evaluate a machine learning model for symptom-based malaria risk prediction. The study used retrospective clinical records to examine the predictive value of routinely documented symptoms and compared several machine learning algorithms before selecting the most suitable model for mobile implementation. The software development process followed Agile principles, allowing iterative refinement of the prediction model and Android application during development and testing. The complete study workflow, covering retrospective clinical record collection, data preprocessing, model development, internal training and validation, comparative evaluation, preliminary cross-dataset compatibility assessment, and offline Android application deployment, is illustrated in Figure 1.
Figure 1. Study workflow from retrospective record collection to offline Android deployment.
The selected FNN was subsequently subjected to a preliminary cross-dataset compatibility assessment using compatible records from the independent Tanzanian dataset before conversion to TensorFlow Lite and offline deployment within the Android application.
Data Collection and Processing
This study retrospectively analysed anonymised outpatient records obtained from two public hospitals and three primary health centres (PHC) located in malaria-endemic communities in southwestern Nigeria. The clinical records covered the period from January 2024 to April 2026. Register pages were temporarily photographed to support accurate transcription of the required information into an electronic dataset. After the entries had been verified, the images were permanently deleted. No patient names, residential addresses, telephone numbers, hospital identification numbers, or other directly identifying information were retained in the research dataset. Further details concerning institutional permission, patient confidentiality, data anonymisation, and the ethical limitations of the retrospective record review are provided in the Ethics, Consent and Data Confidentiality Considerations subsection.
The local Nigerian clinical dataset comprised 1,303 patient records. To preserve the confidentiality requested by the participating healthcare facilities, the two public hospitals and three primary health centres are identified anonymously as Hospital 1, Hospital 2, PHC 1, PHC 2, and PHC 3. Hospital 1 contributed 412 records, Hospital 2 contributed 367 records, PHC 1 contributed 218 records, PHC 2 contributed 164 records, and PHC 3 contributed 142 records, giving a total of 1,303 patient records. Of these, 631 patients (48.43%) were malaria-positive, while 672 patients (51.57%) were malaria-negative. The study population consisted of 678 females (52.03%) and 625 males (47.97%). Age information was not available in the anonymised analytical dataset and therefore could not be included in the demographic analysis. The composition of the local Nigerian clinical dataset is summarised in Table 2.
Table 2. Characteristics, Class Distribution and Data Partition of the Local Nigerian Clinical Dataset.
Characteristic | Number | Percentage (%) |
|---|---|---|
Total patient records | 1,303 | 100.00 |
Malaria-positive | 631 | 48.43 |
Malaria-negative | 672 | 51.57 |
Female | 678 | 52.03 |
Male | 625 | 47.97 |
Model-development partition | 1042 | 79.97 |
Held-out evaluation partition | 261 | 20.03 |
The held-out comparative evaluation partition comprised 135 malaria-negative cases and 126 malaria-positive cases, corresponding to 51.72% and 48.28% of the evaluation partition, respectively.
The final predictor set comprised five binary symptom variables: fever, headache, vomiting, cold and cough. For each symptom, a value of 1 represented presence and 0 represented absence. Patient sex was retained for demographic description but was not used as a predictive input, while the recorded malaria diagnostic status served as the target variable, with malaria-negative and malaria-positive outcomes encoded as 0 and 1, respectively.
Patient records were included when a recorded malaria diagnostic outcome was available and complete information was documented for the symptom variables required for the analysis. Records with an absent or indeterminate malaria outcome, incomplete information for the required predictors, or entries that could not be reliably interpreted during transcription were not considered suitable for the analytical dataset. Duplicate patient identifiers were also checked during data preparation. The resulting dataset contained 1,303 unique and complete patient records.
The local Nigerian clinical dataset should be interpreted as a facility-based clinical sample rather than as a population-representative sample of the broader malaria-endemic population. The records were obtained retrospectively from patients who attended two public hospitals and three primary health centres in southwestern Nigeria during the study period and were not collected through population-based probability sampling. Consequently, individuals who did not seek care at the participating facilities, attended other types of healthcare facilities, or lived in other geographical regions may not be adequately represented. Although the dataset included both malaria-positive and malaria-negative records and patients of both sexes, age information was unavailable in the anonymised analytical dataset, while other potentially relevant population characteristics were not consistently recorded. The findings should therefore not be generalised directly to all malaria-endemic populations. Broader validation using prospectively assembled datasets from different geographical areas, seasons, age groups, and healthcare settings will be required to establish population-level representativeness and transportability.
The malaria diagnostic status documented in the source outpatient records was used as the reference outcome for model development, with malaria-negative and malaria-positive records encoded as 0 and 1, respectively. The retrospective records available for this study did not provide sufficiently consistent information to distinguish the specific diagnostic procedure used to establish each recorded outcome. Consequently, the analytical dataset does not identify whether individual diagnostic labels were established using rapid diagnostic testing, microscopy, another laboratory procedure, or clinical assessment. The recorded diagnostic status was therefore treated as the reference label for the present retrospective analysis. No independent malaria diagnostic test was performed or retrospectively repeated by the researcher to reconfirm these labels; the analysis relied on the diagnostic status documented by the participating healthcare facilities in the source outpatient records.
Identical combinations of the five retained symptom variables were not treated as duplicate observations when they belonged to different patient records. Such symptom patterns could be associated with different recorded malaria outcomes because fever, headache, vomiting, cold, and cough are clinically non-specific and do not capture all clinical or diagnostic information underlying the facility-recorded outcome. The occurrence of different outcomes for the same reduced symptom pattern was therefore retained as a characteristic of the retrospective dataset rather than being automatically treated as a data-entry error.
The raw clinical dataset contained 45 binary symptom variables before feature reduction. Fever, headache, vomiting, cold, and cough were retained as a pragmatic five-variable input set because they were consistently represented in the available records, were routinely observable, and could be entered without specialised laboratory equipment. To quantify their individual relationships with the recorded malaria outcome, chi-square tests, Cramér’s V, and mutual-information scores were examined. The resulting univariate associations were weak: fever showed X2 = 0.03, p = 0.871 and Cramér’s V = 0.004; headache X2 = 0.99, p = 0.321 and V = 0.027; vomiting X2 = 0.10, p = 0.751 and V = 0.009; cold X2 = 3.42, p = 0.065 and V = 0.051; and cough X2 = 1.18, p = 0.277 and V = 0.030. Mutual-information scores were likewise very small, ranging from approximately 0.00001 to 0.00131. The five symptoms were therefore retained primarily for availability, clinical observability, and deployment simplicity rather than because any individual symptom demonstrated strong statistical discrimination. Patient sex was retained for demographic description but was not used as a predictive input.
The five symptoms were retained as a deliberately minimal clinical input set because they were consistently documented in the available records, can be recognised or reported without specialised equipment, and were suitable for the intended low-resource mobile screening setting. Their selection was therefore driven primarily by data availability, clinical observability, and deployment practicality rather than by strong individual statistical association with malaria. The weak chi-square, Cramér’s V, and mutual-information results reported above reinforce the need to interpret the predictors as components of a multivariable symptom pattern rather than as individually discriminative indicators of malaria.
Other clinically relevant factors were not incorporated into the predictive model because they were either unavailable in the analytical dataset or outside the retained symptom-only design. Age was not available in the anonymised records. Sex was available and is reported descriptively but was not used as an input because the implemented model was intentionally restricted to the five symptom variables. Duration of symptoms and previous malaria history were not consistently available in the retained analytical records. Geographical and seasonal variables were likewise not included as model inputs. Their exclusion limits the clinical information available to the model and may affect transportability across patient groups, locations, and transmission periods. Future validation should therefore examine whether incorporating such demographic, historical, temporal, and geographical information improves predictive reliability without undermining the simplicity required for low-resource deployment.
Separately from the local Nigerian clinical dataset used for model development and comparative evaluation, an independent Tanzanian public dataset obtained from Kaggle was examined to assess the feasibility of applying the trained model to independently sourced records. The independent dataset contained 2,556 patient records from Tanzania and differed from the local Nigerian clinical dataset in geographical population, healthcare context, and the clinical variables available for analysis. Because the FNN required five specific symptom inputs, namely fever, headache, vomiting, cold, and cough, only records containing complete information that could be directly matched to all five inputs were eligible for the cross-dataset assessment. Eight records met this compatibility requirement. The size of the subset therefore resulted from the availability of matching predictor variables rather than random sampling from the 2,556 records. These eight records were used only for a preliminary cross-dataset compatibility assessment and not as an external validation cohort.
Data Preprocessing
Data preprocessing was carried out to ensure that the clinical records were represented consistently before model development. During eligibility screening, records with an absent or indeterminate malaria outcome, incomplete information for the required symptom variables, or entries that could not be reliably interpreted during transcription were excluded from the analytical dataset. Following this screening process, the analytical dataset comprised 1,303 unique patient records with complete information for the variables required for the analysis.
The 1,303-record analytical dataset was subsequently checked for missing values, duplicate patient identifiers, inconsistent symptom coding, and irregularities in the diagnostic labels. No missing values or duplicate patient identifiers were identified in the final analytical dataset. Consequently, no statistical imputation or other missing-value replacement procedure was required.
Following data cleaning, the analytical dataset remained at 1,303 patient records. It contained 47 variables in total, comprising 45 binary symptom variables, patient sex, and malaria outcome. Of these, the 45 symptom variables constituted the candidate predictor set, while patient sex was retained for demographic description and the recorded malaria outcome served as the target variable. Feature selection was subsequently applied to the 45 candidate symptom variables, reducing the predictor set to five symptoms: fever, headache, vomiting, cold, and cough. Thus, feature selection reduced the number of candidate predictors from 45 to 5 without changing the number of patient records. The final five predictors were not selected through principal component analysis or k-means clustering. Their retention was based principally on completeness in the available retrospective records, routine clinical observability, and suitability for a deliberately minimal-input mobile screening application. The subsequent chi-square, Cramér’s V, and mutual-information analyses were used to characterise the individual statistical associations of the retained symptoms with the recorded malaria outcome rather than to determine the final predictor set.
The reduction to the five symptom variables preceded the primary 80:20 model-development/evaluation allocation. The variables were retained principally on pragmatic grounds, including completeness in the available records, routine clinical observability, and suitability for a minimal-input mobile application. The subsequently reported chi-square, Cramér’s V, and mutual-information statistics were used to describe the individual associations between the retained symptoms and the recorded malaria outcome and were not used as an optimisation criterion for ranking or selecting the five predictors. Because the feature-reduction step was not implemented within a nested resampling procedure, this aspect of the workflow is acknowledged as a potential source of selection bias and should be considered when interpreting the reported performance.
Following the stratified allocation, preprocessing-parameter estimation was restricted to the 1,042-record model-development partition. The StandardScaler was fitted only to this partition, and the resulting transformation parameters were then applied unchanged to the 261-record comparative evaluation partition. Consequently, the evaluation observations did not contribute to estimation of the scaling parameters or to FNN weight optimisation.
All symptom predictors were treated as binary indicator variables rather than ordinal or multi-category variables. For each symptom, a value of 1 indicated that the symptom was present, while a value of 0 indicated that it was absent. The raw dataset contained several symptom descriptions that were closely related or expressed using different naming conventions, and these were reviewed during data preparation to ensure consistent representation before the final predictor set was selected. Following data review and feature reduction, fever, headache, vomiting, cold, and cough were retained as the five binary predictor variables used for model development. No ordinal ranking or multi-level categorical encoding was applied to these symptom variables. The malaria diagnostic status was converted to a numerical binary label, with 0 representing non-malaria and 1 representing malaria.
The analytical dataset contained 631 malaria-positive cases (48.43%) and 672 malaria-negative cases (51.57%), indicating a nearly balanced overall class distribution. Before model preprocessing, the 1,303 records that met the inclusion criteria were checked for missing values, duplicate entries, and inconsistent coding. No missing values were identified in the analytical variables at this stage, and no additional records were removed or imputed during preprocessing.
A stratified 80:20 allocation was used to retain the majority of the available observations for model development while reserving approximately one-fifth of the dataset for a common held-out comparative evaluation. Stratification was based on the recorded malaria outcome so that the proportions of malaria-positive and malaria-negative cases were maintained as closely as possible across the two partitions. This produced a 1,042-record model-development partition comprising 505 malaria-positive and 537 malaria-negative cases, and a 261-record held-out comparative evaluation partition comprising 126 malaria-positive and 135 malaria-negative cases. The resulting class proportions were therefore similar across the two partitions.
The 261-record evaluation partition was excluded from model fitting, preprocessing-parameter estimation, and epoch-wise FNN training assessment. It was subsequently used as the common evaluation set for comparing the candidate classifiers. Because the same partition also informed selection of the FNN for mobile implementation, it is referred to throughout the manuscript as a held-out comparative evaluation partition rather than as a completely independent post-selection test cohort. Although the class imbalance was small, class weighting was applied during FNN training as a precaution against disproportionate influence of the slightly larger malaria-negative class. The exact class counts in the internal FNN training and validation subsets within the 1,042-record development partition were not preserved separately and are therefore not reconstructed retrospectively.
Model Development
The model development phase followed an iterative process involving the training and evaluation of multiple machine learning algorithms to identify the most suitable model for malaria risk prediction.
Machine Learning Model Selection
Initial tests evaluated five machine learning models: Support Vector Machine (SVM), Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), and Gradient Boosting (GB), trained on the five selected symptoms. When only fever and headache were present, all models often failed, misclassifying malaria cases. Random Forest, Decision Tree, and Gradient Boosting showed inconsistent predictions relative to the recorded clinical outcomes.
All candidate classifiers used the same five symptom predictors and were developed from the common 1,042-record model-development partition. Their comparative performance was subsequently examined using the same 261-record held-out evaluation partition. The StandardScaler was fitted using only the model-development data and applied unchanged to the evaluation data.
The principal parameters considered during model development and the implemented configurations of the candidate classifiers are summarised in Table 3. The configurations reflect the settings used in the comparative experiments and are reported to improve methodological transparency and reproducibility.
Table 3. Candidate Machine Learning Models and Implemented Configurations.
Model | Implementation | Principal parameters considered | Implemented configuration |
|---|---|---|---|
LR | scikit-learn LogisticRegression | Regularisation strength, penalty type, elastic-net mixing ratio where applicable, and class weighting | C = 0.1; L2 penalty; balanced class weighting; saga solver; maximum iterations = 5,000; standardised inputs |
SVM | scikit-learn SVC | Kernel type, regularisation parameter C, kernel coefficient γ, and class weighting | RBF kernel; C = 4; γ = 0.01; balanced class weighting; probability estimation enabled; standardised inputs |
DT | scikit-learn DecisionTreeClassifier | Maximum depth: {3, 4, 5, 6, 8}; minimum samples per leaf: {5, 10, 15, 20}; minimum samples to split: {10, 20, 30}; criterion: {Gini, entropy}; class weighting: {none, balanced}; cost-complexity pruning α: {0, 0.001, 0.005, 0.01} | Maximum depth = 5; minimum samples per leaf = 10; minimum samples to split = 20; Gini criterion; balanced class weighting; α = 0.005; splitter = best; all five features considered at each split; random seed = 42 |
RF | scikit-learn RandomForestClassifier | Number of trees, maximum depth, minimum samples per leaf, maximum features, and class weighting | 500 trees; maximum depth = 8; minimum samples per leaf = 5; maximum features = √p; balanced-subsample class weighting; bootstrap sampling; Gini criterion; random seed = 42 |
GB | scikit-learn HistGradientBoostingClassifier | Number of boosting iterations, learning rate, maximum depth, minimum samples per leaf, L2 regularisation, and class weighting | 200 iterations; learning rate = 0.05; maximum depth = 3; minimum samples per leaf = 20; L2 regularisation = 1; balanced class weighting; log-loss objective; internal early stopping |
FNN | TensorFlow 2.15.0 | Network architecture, regularisation, optimisation, and training configuration | Five inputs; hidden layers of 16 and 32 neurons; ReLU activation; dropout = 0.5; one sigmoid output neuron; Adam optimiser; learning rate = 0.001; binary cross-entropy loss; batch size = 32; fixed 10-epoch training; class weighting |
Note: The parameter settings were established during iterative model development rather than through a common exhaustive hyperparameter-optimisation procedure applied uniformly to all classifiers. The table reports the principal parameters considered during model development and the implemented configurations used in the comparative experiments. The full architecture and training configuration of the FNN are provided separately in Table 4.
Table 4. Architecture and Training Configuration of the Feedforward Neural Network (FNN).
Component/Parameter | Configuration |
|---|---|
Framework | TensorFlow 2.15.0 |
Input layer | 5 symptom variables |
Hidden layer 1 | 16 neurons, ReLU |
Hidden layer 2 | 32 neurons, ReLU |
Batch normalisation | Not used |
Dropout | 0.5 |
Output layer | 1 neuron, sigmoid activation |
Output interpretation | Model-estimated probability of malaria-positive class; formal calibration not assessed |
Parameters in hidden layer 1 | 96 |
Parameters in hidden layer 2 | 544 |
Parameters in output layer | 33 |
Total trainable parameters | 673 |
Total model-training time | 7.4 s |
Kernel initialisation | Glorot uniform |
Bias initialisation | Zeros |
Optimiser | Adam |
Learning rate | 0.001 |
Adam β1 | 0.9 |
Adam β2 | 0.999 |
Adam ε | 1 × 10⁻⁷ |
AMSGrad | False |
Loss function | Binary cross-entropy |
Batch size | 32 |
Training epochs | 10 |
Early stopping | Not used; fixed 10-epoch training |
Class weighting | Applied |
Random seed | Python random seed = 42 |
Model-development records | 1,042 |
Held-out evaluation records | 261 |
The Feedforward Neural Network was carried forward for mobile implementation because it produced the strongest observed combination of classification measures on this common evaluation partition. Since the same 261-record partition was used both to compare the candidate classifiers and to inform selection of the FNN for deployment, it should not be interpreted as a completely independent post-selection test cohort. The reported metrics therefore represent comparative performance under the implemented hold-out evaluation rather than an unbiased estimate obtained from a separate test set used only after model selection.
The candidate algorithms retained the implemented configurations summarised in Table 3. Model-specific parameter settings were established during iterative development; however, a common exhaustive hyperparameter-search procedure, nested cross-validation framework, and separate post-selection test cohort were not used uniformly across all classifiers. The comparison should therefore be interpreted as an evaluation of the implemented configurations rather than as a definitive comparison of globally optimised versions of the respective algorithms.
Transition to Feedforward Neural Network
The implemented Feedforward Neural Network (FNN) used five input neurons corresponding to the selected symptoms, followed by two hidden layers containing 16 and 32 neurons, respectively, and a single output neuron. The output layer therefore consisted of a single sigmoid-activated neuron rather than two output neurons. Its scalar output represented the estimated probability of the malaria-positive class for the binary prediction task, while binary cross-entropy was used as the training loss. Backpropagation was used to update the network weights during training, while model evaluation was performed using the held-out comparative evaluation data. The 16-to-32-neuron hidden-layer arrangement was adopted as a compact progressive representation in which the first hidden layer transforms the five symptom inputs into an intermediate nonlinear representation, while the second hidden layer provides additional representational capacity for modelling interactions among those transformed features before binary classification. The increasing hidden-layer width was therefore a deliberate architectural choice rather than an assumption that neural-network layers must decrease monotonically in size. The architecture was kept small to limit computational complexity for subsequent mobile implementation. The individual contribution of alternative hidden-layer widths was not examined through a formal ablation study, and the reported architecture is therefore interpreted as the implemented configuration rather than an empirically established optimal topology.
The choice of the FNN was not based on an assumption that a neural network is inherently preferable for a five-variable dataset. Simpler classifiers, including Logistic Regression, Decision Tree, Support Vector Machine, Random Forest, and Gradient Boosting, were evaluated using the same five symptom inputs and the same comparative evaluation partition. Under the implemented configurations, these models produced substantially lower classification performance than the FNN. The FNN was therefore retained because it provided the strongest observed balance across the evaluated classification measures while remaining computationally compact, with only 673 trainable parameters. Its small architecture also permitted straightforward conversion to TensorFlow Lite and offline execution on the target Android device. However, because the candidate models were not subjected to a uniform exhaustive hyperparameter-optimisation procedure, the observed performance difference is not interpreted as evidence that the FNN is inherently superior to simpler classifiers or that the selected architecture is globally optimal.
Model Training and Validation
Following model selection and data preprocessing, the Feedforward Neural Network was trained using the selected symptom variables and evaluated on held-out data. The evaluation was designed to determine the model's ability to distinguish between malaria-positive and malaria-negative cases and to assess its suitability for subsequent mobile deployment.
Dataset Preparation and FNN Training
The Feedforward Neural Network (FNN) was implemented using TensorFlow 2.15.0, with the five selected symptom variables serving as input features. The network consisted of an input layer receiving the five predictor variables, followed by two fully connected hidden layers containing 16 and 32 neurons, respectively. Rectified Linear Unit (ReLU) activation was applied to both hidden layers to introduce non-linearity and enable the network to learn relationships among the symptom variables. The output layer contained one neuron with sigmoid activation. This neuron produced a single scalar probability representing the model-estimated probability of the malaria-positive class; a two-neuron output layer was not used. No formal probability-calibration analysis was performed in the retained experimental evaluation. The sigmoid output should therefore be interpreted as the model-estimated probability of the malaria-positive class rather than as a clinically validated or calibrated absolute probability of malaria. Batch normalisation was not used in the implemented architecture.
The implemented FNN contained 673 trainable parameters. The first fully connected layer contained 96 parameters, comprising the weights connecting the five input variables to the 16 neurons and their associated bias terms. The second hidden layer contained 544 parameters from the connections between the 16-neuron and 32-neuron hidden layers and their associated biases, while the single-neuron output layer contained 33 parameters. The architecture, parameter distribution, and training configuration of the implemented FNN are summarised in Table 4.
As summarised in Table 4, the network was trained using the Adam optimiser with a learning rate of 0.001. The remaining Adam parameters followed the TensorFlow 2.15.0 configuration used in the implementation, with β1 = 0.9, β2 = 0.999, ε = 1 × 10⁻⁷, and AMSGrad disabled. Binary cross-entropy was used as the loss function because the task involved binary classification and the output layer consisted of a single sigmoid-activated neuron. Training was performed using a batch size of 32 for a fixed duration of 10 epochs. The 10-epoch schedule formed part of the implemented training configuration and was not selected through an early-stopping procedure or a formal epoch-number optimisation study. A dropout rate of 0.5 was applied as a regularisation measure, while class weights were used to account for the small difference in the frequencies of malaria-positive and malaria-negative cases. Batch normalisation and early stopping were not used. The Dense-layer kernels used Glorot uniform initialisation, while the corresponding bias terms were initialised to zero. A random seed of 42 was set for the Python random module to improve consistency in stochastic operations governed by that generator. No separate TensorFlow-specific random seed was documented in the retained experimental configuration; consequently, exact bitwise reproducibility of all TensorFlow stochastic operations is not claimed.
Hyperparameter configuration was determined during iterative model development rather than through a formal exhaustive grid search, random search, Bayesian optimisation, or nested cross-validation procedure. The final FNN configuration comprised two hidden layers containing 16 and 32 neurons, respectively, ReLU hidden-layer activation, a dropout rate of 0.5, Adam optimisation with a learning rate of 0.001, a batch size of 32, and a fixed training duration of 10 epochs. Binary cross-entropy was used as the optimisation objective, while class weighting was applied to reduce sensitivity to the small difference in class frequencies. The selected configuration was retained as a compact implementation suitable for subsequent TensorFlow Lite conversion and mobile deployment. Because a complete trial-by-trial hyperparameter-search log was not retained, the final configuration is reported as the implemented model setting and is not presented as a globally optimal hyperparameter combination. The total wall-clock training time for the 10-epoch FNN training run was 7.4 s on the reported development hardware. Figure 2 shows how training and validation accuracy and loss changed over the 10 training epochs.
Figure 2. Training and validation accuracy and loss over 10 epochs for the feedforward neural network.
The learning curves were examined to assess the optimisation behaviour of the FNN over the fixed 10-epoch training schedule. Training accuracy increased progressively across the epochs, while validation accuracy followed a broadly similar pattern with modest epoch-to-epoch fluctuations. Correspondingly, training loss decreased as optimisation proceeded, and validation loss showed an overall declining pattern without sustained divergence from the training loss. The observed trajectories indicate progressive optimisation across the 10-epoch schedule, with no sustained divergence between the training and validation curves during the recorded training period. These learning curves describe the behaviour of the implemented training run but do not, by themselves, establish generalisation beyond the available development data. The validation measurements were used only to examine the training behaviour of the model and were not used as the final performance estimate. The 261-record held-out evaluation partition remained separate from the epoch-wise assessment and was used only for the final comparative evaluation, on which the FNN achieved an accuracy of 96.93%.
The primary 80:20 allocation produced a 1,042-record model-development partition and a separate 261-record held-out evaluation partition. The 261 evaluation observations were not used during model fitting, preprocessing-parameter estimation, or epoch-wise training assessment. Training and validation measurements used to examine FNN optimisation were obtained only within the 1,042-record development partition. The 261-record evaluation partition was subsequently used to compare the candidate classifiers and informed selection of the FNN for mobile implementation; consequently, it is not treated as a completely independent post-selection test cohort. Following the comparative evaluation, the selected FNN was converted to TensorFlow Lite for integration into the Android application.
The FNN differed from the conventional classifiers in the way relationships among the five symptom variables were represented and optimised. Its two fully connected hidden layers allowed successive combinations of the symptom inputs to be transformed through nonlinear ReLU activations before final classification. Training with the Adam optimiser provided iterative adjustment of the network weights using the binary cross-entropy objective, while dropout was applied to reduce excessive dependence on individual hidden units and class weighting was used to limit bias arising from the small difference in class frequencies. These design choices were considered collectively rather than as independent sources of performance improvement.
Model Evaluation and Validation
The comparative evaluation used a stratified 80:20 allocation of the 1,303 eligible records in the local Nigerian clinical dataset, producing a 1,042-record model-development partition and a 261-record held-out evaluation partition comprising 135 malaria-negative and 126 malaria-positive cases. The 261 evaluation records were excluded from model fitting, Feedforward Neural Network weight optimisation, preprocessing-parameter estimation, and epoch-wise training assessment. Training and validation measurements for the Feedforward Neural Network were obtained only within the 1,042-record development partition; however, the exact internal training-validation allocation used to generate the recorded learning curves was not preserved in the retained experimental record and is therefore not reconstructed retrospectively.
All six candidate classifiers were assessed on the same 261-record held-out evaluation partition to permit comparison under a common condition. This partition also informed the choice of the Feedforward Neural Network for subsequent mobile implementation. It therefore represents a held-out comparative evaluation set rather than a completely independent post-selection test set. The reported performance measures, including the Feedforward Neural Network accuracy of 96.93%, should consequently be interpreted as observed results under the implemented evaluation procedure rather than as an unbiased post-selection estimate obtained from a separate untouched test cohort.
Model performance was evaluated using several complementary measures rather than accuracy alone. These included precision, sensitivity or recall, specificity, Negative Predictive Value (NPV), F1-score, Receiver Operating Characteristic Area Under the Curve (ROC-AUC), Matthews Correlation Coefficient (MCC), confusion-matrix outcomes, and 95% confidence intervals. ROC-AUC was used as a probability-based measure of discrimination across classification thresholds, while MCC provided a balanced measure that incorporates true-positive, true-negative, false-positive, and false-negative predictions. The confidence intervals were reported to indicate the statistical uncertainty surrounding the observed accuracy estimates.
The implemented experimental design used a single stratified hold-out evaluation rather than repeated or nested cross-validation. Repeated stratified cross-validation, nested model-selection procedures, and evaluation on a separate independent cohort are therefore required in subsequent confirmatory work to determine the stability and reproducibility of the observed performance. Future evaluations should also preserve fold assignments, preprocessing states, random seeds, trained model states, hyperparameter-selection records, and prediction-level outputs to support independent verification.
The corresponding quantitative results and complementary classification measures are presented and interpreted in the Results section. The FNN correctly classified 253 of the 261 records in the held-out evaluation set, corresponding to an overall classification accuracy of 96.93%. The model also demonstrated a stronger balance between malaria-positive and malaria-negative predictions than the conventional machine learning models evaluated under the same test condition. The trained model was subsequently converted to TensorFlow Lite for integration into the Android application.
Software Development
The malaria risk prediction application was developed in Android Studio, following an Agile approach for rapid iteration, testing, and GitHub integration.
Frontend Development and User Interface Design Considerations
The application's user interface (UI), developed using Extensible Markup Language (XML) layouts, was designed to provide a simple and accessible interaction process for users in resource-limited settings. A checklist enabled users to select the relevant symptoms, with input validation requiring at least two symptom selections before prediction. The result screen displayed the malaria risk screening output, while follow-up guidance advised users to seek confirmatory testing or further medical assessment where appropriate. The interface used clearly labelled buttons, readable text, and a layout designed to operate effectively across supported Android devices.
Backend Development and Application Architecture
The application backend was implemented in Java and integrated with the XML-based user interface through Android activity classes. The trained FNN was converted to TensorFlow Lite and packaged directly within the Android application, allowing the prediction model to operate locally on the mobile device. The application architecture consisted of four principal components: the user interface layer, input validation and preprocessing layer, TensorFlow Lite inference layer, and output presentation layer.
At the user interface layer, the user selected the presence or absence of fever, headache, vomiting, cold, and cough. The application validated the symptom selections before passing them to the preprocessing stage. The selected symptoms were then converted into the binary input format required by the trained model. These values were supplied to the embedded TensorFlow Lite interpreter, which executed the FNN locally and returned the model output for the malaria risk assessment. The resulting prediction was then passed to the output layer, where the corresponding risk-screening result and safety-oriented referral guidance were displayed to the user.
Because the TensorFlow Lite model was stored within the application package, prediction did not require communication with a remote server or cloud-based inference service. The core malaria risk assessment process could therefore be completed offline after the application had been installed on the device. This architecture was selected to reduce dependence on internet connectivity and support use in settings where mobile network access may be limited or unreliable.
Offline Inference and Mobile Testing
The mobile implementation was evaluated on a Samsung Galaxy S8+ (SM-G955U, US variant) running Android 9.0 with One UI. The device was equipped with 6 GB of random-access memory (RAM), 128 GB of internal storage, and a Qualcomm Snapdragon 835 processor. The generated Android application package (APK) had a size of 39 MB. During application testing, the average end-to-end prediction-display latency was less than 1 second (<1000 ms), measured from initiation of the prediction request to presentation of the screening output. This interval included input preparation, execution of the embedded TensorFlow Lite model, output processing, and interface update. Consequently, the isolated TensorFlow Lite inference operation was contained within this sub-second interval, although its standalone execution time was not instrumented separately.
Formal minimum Android operating-system and hardware requirements were not established in the present technical evaluation; the specifications reported here describe the device on which mobile functionality and latency were tested.
The deployed FNN contains 673 trainable parameters. With 32-bit floating-point (FP32) representation, these parameters require approximately 2.63 KiB of raw numerical storage. A single forward pass involves 624 weight-related multiply-accumulate operations (MACs), corresponding to approximately 1,248 multiplication and addition operations when counted separately, excluding activation-function and interpreter overhead. The input and principal layer outputs comprise 54 floating-point values, requiring approximately 216 bytes. Parameters and these numerical activations therefore account for a theoretical minimum numerical footprint of approximately 2.84 KiB. This value represents the neural-network numerical payload and should not be interpreted as the total runtime memory consumption of the Android application, which also includes the TensorFlow Lite interpreter, Java runtime objects, interface resources, buffers, and operating-system allocations. Application-level RAM consumption, central processing unit (CPU) utilisation, and battery consumption were not independently instrumented during the mobile evaluation.
The 39 MB value reported above represents the complete Android application package rather than the standalone TensorFlow Lite model file. The deployed FNN itself contains 673 trainable parameters, corresponding to approximately 2.63 KiB of raw FP32 parameter storage, but the final packaged TensorFlow Lite file size was not separately recorded and is therefore not reported retrospectively. The mobile evaluation focused on technical functionality, including offline execution, input handling, prediction generation, and response time. Formal usability testing involving intended community users or healthcare professionals was not conducted. Consequently, no claim is made regarding user acceptance, ease of use, clinical workflow integration, or usability in routine healthcare practice. These aspects require prospective evaluation with representative end users and healthcare personnel before wider deployment.
Software and Hardware Environment
Model development, statistical analysis, preprocessing, visualisation, and evaluation were performed in a Python 3.11 environment. The software environment included scikit-learn 1.3.2, XGBoost 2.0.3, and TensorFlow 2.15.0. The conventional machine learning classifiers and the StandardScaler preprocessing procedure reported in the comparative evaluation were implemented using scikit-learn 1.3.2, while the Feedforward Neural Network was implemented and trained using TensorFlow 2.15.0. TensorFlow Lite was subsequently used to convert and execute the trained FNN within the Android application.
Model development was performed on a computer equipped with an Intel Core i7 processor and 16 GB of RAM. Android Studio was used for mobile application development, with Java used for application logic and Extensible Markup Language (XML) for the user interface layouts.
Mobile deployment and inference testing were performed on a Samsung Galaxy S8+ (SM-G955U, US variant) running Android 9.0 with One UI. The device was equipped with 6 GB of RAM, 128 GB of internal storage, and a Qualcomm Snapdragon 835 processor. The TensorFlow Lite model operated entirely on the device, and the average time required to generate and display a malaria risk prediction was less than 1 second.
Ethics, Consent and Data Confidentiality Considerations
The study was based on a retrospective review of existing outpatient clinical records and involved no direct patient recruitment, clinical intervention, or interaction with patients during the research process. Formal permission to access the required records was obtained from the participating hospitals and primary health centres. The healthcare facilities requested that their identities remain confidential, and this requirement was respected throughout the study.
Formal Institutional Ethics Committee or Institutional Review Board approval was not obtained for the retrospective record review. Similarly, no formal ethics committee waiver of individual informed consent was issued. The study is therefore reported transparently as a retrospective analysis conducted with permission from the participating healthcare facilities rather than as an ethics-approved or ethics-exempt investigation.
Patient privacy and confidentiality were protected during data collection and analysis. Only information required for the study was transcribed from the clinical records. Patient names, telephone numbers, residential addresses, hospital identification numbers, and other directly identifying information were not retained in the analytical dataset. The information used for analysis was limited to study-specific identifiers, patient sex, symptom variables, and malaria diagnostic status.
Register pages were photographed temporarily to facilitate accurate transcription and verification of the required variables. These images were used only for the transcription process and were permanently deleted after the relevant entries had been checked. The final analytical dataset therefore contained no directly identifying patient information.
Because individual patients were not contacted or recruited during the retrospective record review, no prospective consent process was undertaken as part of the research. However, since no formal ethics committee waiver of consent was obtained, the study does not claim that informed consent was formally waived. The absence of prior independent ethics committee review is acknowledged as a limitation of the present study.
Model Evaluation Metrics
Classification models are evaluated using multiple metrics, not just accuracy, to assess overall performance. In this study, accuracy was measured to show the proportion of correct predictions in the dataset, calculated as:
(1)
where TP denotes true positives, TN denotes true negatives, FP denotes false positives, and FN denotes false negatives.
Precision, also referred to as the Positive Predictive Value (PPV), represents the proportion of cases predicted as malaria-positive that are actually positive. It therefore indicates the reliability of the model’s positive predictions and is calculated as:
(2)
where TP denotes true-positive predictions and FP denotes false-positive predictions.
Negative Predictive Value (NPV) represents the proportion of cases predicted as malaria-negative that are actually negative and is calculated as:
(3)
where TN denotes true-negative predictions and FN denotes false-negative predictions.
Recall, also called sensitivity, measures the proportion of actual malaria-positive cases that are correctly identified by the model and is calculated as:
(4)
where TP denotes true positives and FN denotes false negatives.
The F1-score combines precision and recall into a single measure and represents their harmonic mean. It is calculated as:
(5)
where Precision represents the proportion of predicted-positive cases that are correctly classified, and Recall represents the proportion of actual positive cases that are correctly identified.
Specificity, also referred to as the True Negative Rate (TNR), measures the proportion of actual malaria-negative cases that are correctly identified by the model and is calculated as:
(6)
where TN denotes true negatives and FP denotes false positives.
Receiver Operating Characteristic Area Under the Curve (ROC-AUC) was used to evaluate the ability of each model to discriminate between malaria-positive and malaria-negative cases across different classification thresholds. Values approaching 1 indicate stronger discriminatory ability, whereas a value close to 0.5 suggests limited discrimination between the two outcome classes.
Precision-recall AUC was not included in the retained experimental evaluation and is therefore not reported retrospectively. Unlike threshold-based measures derived from the confusion matrices, a valid precision-recall curve requires the corresponding prediction scores or probabilities across thresholds. Future confirmatory evaluation will preserve these prediction-level outputs to permit reporting of precision-recall AUC alongside ROC-AUC and the other classification measures.
Probability calibration was not evaluated in the retained experimental analysis. Although the FNN sigmoid output provides a model-estimated probability for the malaria-positive class, the complete prediction-level probabilities required for a valid retrospective calibration assessment were not preserved. Consequently, calibration measures are not reconstructed retrospectively, and the reported probability outputs should not be interpreted as clinically calibrated absolute malaria-risk estimates. ROC-AUC, as reported in this study, evaluates discrimination across classification thresholds and does not establish probability calibration. Future confirmatory evaluation should preserve individual prediction probabilities and assess calibration using appropriate measures such as the Brier score, calibration plots, and calibration intercept and slope, with recalibration considered where necessary.
The Matthews Correlation Coefficient (MCC) was additionally considered to provide a balanced measure of binary classification performance. Unlike accuracy, MCC incorporates true-positive, true-negative, false-positive, and false-negative predictions in a single measure and is therefore useful when evaluating the overall agreement between predicted and observed classes. MCC ranges from -1 to +1, where +1 represents perfect classification, 0 indicates no better agreement than random prediction, and -1 represents complete disagreement. It was calculated as:
(7)
where TP, TN, FP, and FN denote true positives, true negatives, false positives, and false negatives, respectively.
To provide an indication of the uncertainty surrounding the observed performance estimates, 95% confidence intervals were calculated using the Wilson score method. For overall accuracy, the interval was based on the number of correctly classified observations among all records in the evaluation set, while sensitivity and specificity intervals were calculated using the malaria-positive and malaria-negative observations, respectively. Reporting confidence intervals alongside the point estimates is particularly important for the present study because the evaluation partition contains only 261 records and high point estimates should not be interpreted as exact population-level performance.
To assess whether the large observed accuracy differences between the FNN and the strongest conventional classifiers could reasonably be attributed to chance on the common held-out comparative evaluation partition, a conservative exact McNemar analysis was also considered for the comparisons with Gradient Boosting and Random Forest. The archived aggregate results provided the total numbers of correct and incorrect predictions for each classifier, although the complete case-level paired prediction vectors were not retained. Consequently, the discordant-cell counts were evaluated using the pairing that yields the largest possible two-sided exact McNemar p-value while remaining consistent with the reported aggregate totals. This approach provides a conservative upper bound on the paired significance level: if the resulting value remains below 0.05, every other feasible pairing consistent with the reported totals would also indicate a statistically significant difference.
Together, these metrics were used to assess the models’ ability to distinguish malaria-positive and malaria-negative cases, identify performance weaknesses, examine the balance between the two classes, and guide model selection.
Results
This section presents the predictive performance of the evaluated machine learning models and examines their ability to distinguish between malaria-positive and malaria-negative cases. Particular attention is given to the balance between sensitivity and specificity, the comparative performance of the candidate classifiers, and the suitability of the selected FNN for mobile implementation.
Performance Evaluation of Tested Models
All model evaluations presented in this section were based on the same 261-record held-out comparative evaluation partition derived from the local Nigerian clinical dataset, comprising 135 malaria-negative and 126 malaria-positive cases. Accordingly, the support values, confusion matrices, accuracy, precision, recall, specificity, F1-score, Matthews Correlation Coefficient, and associated confidence intervals were evaluated using this common test population. ROC-AUC is reported separately as a probability-based measure of model discrimination across classification thresholds.
Because the held-out evaluation partition was nearly balanced, with 135 malaria-negative cases (51.72%) and 126 malaria-positive cases (48.28%), overall accuracy remains a useful descriptive measure of the proportion of correctly classified observations. It is not, however, interpreted in isolation. Sensitivity, specificity, precision, Negative Predictive Value, F1-score, ROC-AUC, MCC, confusion-matrix outcomes, and confidence intervals are considered alongside accuracy to identify possible differences in performance between the two classes.
The performance values reported to two decimal places should be interpreted as descriptive point estimates for this 261-record held-out sample rather than as estimates of equivalent precision in the wider patient population. The accompanying confidence intervals and the stated limitation of a single held-out partition are therefore important when interpreting the reported differences among models. Figure 3 shows the confusion matrices for all six classifiers. Figure 4 compares their ROC curves across classification thresholds.
Logistic Regression
Class 0 (No Malaria): Precision was 0.52, recall was 0.52, and the F1-score was 0.52, indicating that the Logistic Regression model identified malaria-negative cases with moderate but limited reliability.
Class 1 (Malaria): Precision was 0.49, recall was 0.49, and the F1-score was 0.49, showing a similar level of performance for malaria-positive cases.
Overall: Accuracy was 0.51, with macro and weighted F1-scores of approximately 0.51. The relatively similar performance across both classes suggests that the model did not strongly favour either diagnostic class, although its overall discrimination remained limited. Macro-averaged and weighted precision and recall were each 0.51.
Decision Tree
Class 0 (No Malaria): Precision was 0.53, recall was 0.53, and the F1-score was 0.53, indicating moderate identification of malaria-negative cases.
Class 1 (Malaria): Precision was 0.49, recall was 0.49, and the F1-score was 0.49, showing slightly weaker classification of malaria-positive cases.
Overall: Accuracy was 0.51, with macro and weighted F1-scores of approximately 0.51. The Decision Tree produced relatively balanced performance across the two classes, although the overall classification accuracy remained modest. Macro-averaged and weighted precision and recall were each 0.51.
Support Vector Machine (SVM)
Class 0 (No Malaria): Precision was 0.54, recall was 0.48, and the F1-score was 0.51. This indicates that the SVM was moderately precise when predicting malaria-negative cases but failed to identify a substantial proportion of the actual negative cases.
Class 1 (Malaria): Precision was 0.50, recall was 0.56, and the F1-score was 0.53, indicating slightly better sensitivity to malaria-positive cases than to malaria-negative cases.
Overall: Accuracy was 0.52, with macro and weighted F1-scores of approximately 0.52. The model showed a slight tendency toward improved detection of malaria-positive cases, although the overall predictive performance remained limited. Macro-averaged and weighted precision and recall were each 0.52.
Gradient Boosting
For the malaria-negative class, the Gradient Boosting classifier produced a precision of 0.54, recall of 0.73, and F1-score of 0.62. For the malaria-positive class, precision was 0.54, recall was 0.34, and the F1-score was 0.42. The model achieved an overall accuracy of 0.54, with macro- and weighted-average F1-scores of approximately 0.52. Its comparatively higher recall for malaria-negative cases indicates that the classifier identified negative cases more effectively than malaria-positive cases (Figure 3d). Macro-averaged and weighted precision were both 0.54. Macro-averaged recall was 0.53 and weighted recall was 0.54.
(a) Logistic regression | (b) Decision tree |
|---|---|
(c) Support vector machine | (d) Gradient boosting |
(e) Random forest | (f) Feedforward neural network |
Figure 3. Confusion matrices for the six classifiers on the 261 held-out records. Rows show recorded malaria status and columns show predicted status.
Random Forest
For the malaria-negative class, the Random Forest classifier produced a precision of 0.54, recall of 0.47, and F1-score of 0.50. For the malaria-positive class, precision was 0.50, recall was 0.56, and the F1-score was 0.53. The model achieved an overall accuracy of 0.52, with macro- and weighted-average F1-scores of approximately 0.52. Unlike Gradient Boosting, Random Forest showed a moderately higher recall for malaria-positive cases than for malaria-negative cases. Macro-averaged and weighted precision and recall were each 0.52.
Performance of the Selected Feedforward Neural Network (FNN) Model
The Feedforward Neural Network (FNN) was selected for deployment because it provided the best balance of predictive performance and reliability among the evaluated models. The FNN achieved a ROC-AUC of 0.92 (Figure 4f), which summarises discrimination across thresholds. Accuracy, sensitivity, specificity, precision, F1-score and MCC were calculated at the selected classification threshold.
Class 0 (No Malaria): Precision was 0.97, recall was 0.97, and the F1-score was 0.97, indicating strong classification of malaria-negative cases with only a small number of false-positive predictions.
Class 1 (Malaria): Precision was 0.97, recall was 0.97, and the F1-score was 0.97, demonstrating similarly strong identification of malaria-positive cases and a low false-negative rate.
Overall: The Feedforward Neural Network correctly classified 253 of the 261 observations in the held-out evaluation set. Based on the confusion matrix, which contained 131 true negatives, 4 false positives, 4 false negatives, and 122 true positives, the overall accuracy was 253/261 = 0.96935, corresponding to 96.93%. The positive-class precision was 0.9683, while sensitivity was 0.9683. Specificity was 0.9704, and the Negative Predictive Value was 0.9704. The resulting F1-score was approximately 0.9683, while the Matthews Correlation Coefficient was approximately 0.9386.
These values round to approximately 0.97 for precision, sensitivity, specificity, NPV, and F1-score and approximately 0.94 for MCC. The 95% Wilson confidence interval was approximately 0.94–0.98 for accuracy, 0.92–0.99 for sensitivity, and 0.93–0.99 for specificity. Although the corresponding point estimates are high, these intervals reflect the uncertainty associated with the finite evaluation sample and should be considered when interpreting the reported performance. The derived performance measures were therefore consistent with the confusion matrix and the reported 96.93% test accuracy. Macro-averaged and weighted precision, recall and F1-score were each 0.97.
The FNN confusion matrix (Figure 3f) shows 131 true-negative, 122 true-positive, 4 false-positive, and 4 false-negative predictions. Of the 135 malaria-negative cases in the held-out comparative partition, 131 were correctly classified, while 4 were incorrectly classified as malaria-positive. This corresponds to a false-positive rate of approximately 2.96% and a specificity of approximately 97.04%. Of the 126 malaria-positive cases, 122 were correctly identified and 4 were incorrectly classified as malaria-negative, giving a false-negative rate of approximately 3.17% and a sensitivity of approximately 96.83%. Overall, 8 of the 261 evaluation observations were misclassified.
(a) Logistic regression | (b) Decision tree |
|---|---|
(c) Support vector machine | (d) Gradient boosting |
(e) Random forest | (f) Feedforward neural network |
Figure 4. Receiver operating characteristic (ROC) curves for the six classifiers on the held-out evaluation set. The dashed diagonal indicates chance discrimination.
The two types of error have different implications for the intended screening application. The four false-negative cases are of particular clinical concern because an individual who actually has malaria could receive a negative screening output, potentially creating false reassurance and delaying confirmatory testing, professional assessment, and appropriate treatment. The four false-positive cases present a different risk: individuals without a malaria-positive record could be incorrectly flagged as being at risk, potentially leading to unnecessary concern, additional diagnostic testing, or inappropriate self-medication. Since fever, headache, vomiting, cold, and cough are not specific to malaria and may also occur in other febrile or infectious illnesses, a positive model output cannot establish that malaria is the underlying cause of the symptoms.
The relatively similar numbers of false-positive and false-negative predictions in the reported held-out evaluation are consistent with the observed balance between sensitivity and specificity. Nevertheless, the presence of errors in both directions reinforces the intended role of the FNN as a preliminary risk-screening and referral-support tool rather than an autonomous diagnostic system. A positive prediction should prompt appropriate clinical assessment and confirmatory testing where indicated, while a negative prediction should not discourage further medical evaluation when symptoms persist or clinical suspicion remains.
Comparative Analysis of Model Performance
On the common 261-record held-out evaluation set, Logistic Regression and Decision Tree each achieved an accuracy of 0.51. Support Vector Machine and Random Forest each achieved 0.52, while Gradient Boosting had the highest accuracy among the conventional classifiers at 0.54. Macro-average and weighted-average F1-scores were both 0.51 for Logistic Regression and Decision Tree and 0.52 for the other three classifiers. These results indicate limited classification performance with the five symptom predictors under the evaluated configurations.
For malaria-negative and malaria-positive cases, respectively, F1-scores were 0.52 and 0.49 for Logistic Regression, 0.53 and 0.49 for Decision Tree, 0.51 and 0.53 for Support Vector Machine, and 0.50 and 0.53 for Random Forest. Gradient Boosting showed the largest difference between classes, with an F1-score of 0.62 for malaria-negative cases and 0.42 for malaria-positive cases.
The confusion matrices showed how Gradient Boosting and Random Forest differed. Gradient Boosting correctly classified 98 of 135 malaria-negative cases and 43 of 126 malaria-positive cases, yielding a specificity of 0.73 and a sensitivity of 0.34. Random Forest correctly classified 64 negative and 71 positive cases, giving it lower specificity (0.47) but higher sensitivity (0.56) than Gradient Boosting. Specificity was 0.52 for Logistic Regression, 0.53 for Decision Tree and 0.48 for Support Vector Machine.
The Feedforward Neural Network (FNN) achieved the highest overall accuracy, correctly classifying 253 of 261 records (96.93%). Its F1-score was 0.97 for each class, and its macro-average and weighted-average F1-scores were also 0.97.
The FNN achieved higher F1-scores for both classes than the conventional classifiers, but the size of its performance advantage warrants cautious interpretation. All six classifiers were developed using the same five binary symptom predictors and evaluated on the same 261 held-out records. The StandardScaler was fitted on the model-development partition and applied to the held-out records using those fitted parameters. The comparison therefore used a common predictor set and evaluation population, with scaling parameters estimated solely from the development data.
To verify that the observed difference did not arise from unequal evaluation conditions, all six classifiers were compared using the same five predictor variables and the same 261-record held-out comparative evaluation partition. The evaluation observations were not used for model fitting, preprocessing-parameter estimation, or FNN weight optimisation, and the StandardScaler was fitted only on the 1,042-record model-development partition before being applied unchanged to the evaluation data. The large difference in observed performance therefore did not result from the classifiers being evaluated on different data partitions or from preprocessing information being estimated from the held-out observations. Nevertheless, because feature reduction preceded the primary data split, model-specific configurations were established through iterative development, and the same held-out partition also informed final model selection, the 96.93% FNN accuracy should be interpreted as an observed comparative result under the implemented evaluation procedure rather than as an independently confirmed estimate of population-level generalisation.
The models nevertheless differed in their learning formulations and implemented training configurations. The FNN used two successive nonlinear hidden representations together with Adam optimisation, dropout regularisation, and class weighting, whereas the conventional classifiers followed their respective learning procedures. These differences may influence model behaviour, but the present experiments do not establish that any one of them, individually or collectively, explains the magnitude of the observed performance gap. A uniform exhaustive hyperparameter-optimisation procedure and component-level ablation analysis were not performed, and the result should therefore not be interpreted as evidence that the FNN architecture is inherently superior to the conventional algorithms.
The unusually large difference also needs to be considered in relation to the limited information contained in the five binary symptom variables. Fever, headache, vomiting, cold, and cough are non-specific, and identical symptom combinations may occur in records with different malaria outcomes. Consequently, nonlinear representation alone should not be assumed to provide a complete explanation for the observed difference. The 96.93% FNN accuracy is therefore reported as the observed result under the implemented experimental configuration, while the magnitude of the difference relative to the conventional classifiers requires independent confirmation.
The training and validation curves did not show sustained divergence during the fixed 10-epoch training schedule, which provides some evidence regarding optimisation behaviour within the model-development data. However, learning curves alone cannot exclude all forms of overfitting or optimistic performance estimation, nor can they establish the absence of every possible source of bias. Repeated stratified evaluation with fully preserved fold assignments, preprocessing states, model states and prediction-level outputs, together with evaluation on substantially larger independent cohorts, is required to determine whether the observed performance difference is stable and reproducible.
To provide a broader comparison of the candidate classifiers and account for uncertainty in the observed accuracy estimates, 95% confidence intervals were calculated for each model. The resulting performance measures are summarised in Table 5.
Table 5. Summary of Key Model Performance Metrics.
Model | Accuracy | Precision | Sensitivity | Specificity | F1-score | NPV | ROC-AUC | MCC | 95% CI Accuracy |
|---|---|---|---|---|---|---|---|---|---|
LR | 0.51 | 0.49 | 0.49 | 0.52 | 0.49 | 0.52 | 0.49 | 0.01 | 0.45–0.57 |
DT | 0.51 | 0.49 | 0.49 | 0.53 | 0.49 | 0.53 | 0.48 | 0.02 | 0.45–0.57 |
SVM | 0.52 | 0.50 | 0.56 | 0.48 | 0.53 | 0.54 | 0.50 | 0.04 | 0.46–0.58 |
GB | 0.54 | 0.54 | 0.34 | 0.73 | 0.42 | 0.54 | 0.48 | 0.07 | 0.48–0.60 |
RF | 0.52 | 0.50 | 0.56 | 0.47 | 0.53 | 0.54 | 0.49 | 0.04 | 0.46–0.58 |
FNN | 0.9693 | 0.97 | 0.97 | 0.97 | 0.97 | 0.97 | 0.92 | 0.94 | 0.94–0.98 |
Note: NPV = Negative Predictive Value; ROC-AUC = Receiver Operating Characteristic Area Under the Curve; MCC = Matthews Correlation Coefficient; CI = confidence interval.
Table 5 provides a common set of evaluation measures for all six classifiers, allowing their performance to be considered beyond overall accuracy. The conventional classifiers produced relatively modest values across precision, sensitivity, specificity, F1-score, Negative Predictive Value (NPV), ROC-AUC, and Matthews Correlation Coefficient (MCC). Their ROC-AUC values ranged from approximately 0.48 to 0.50, indicating limited discrimination across classification thresholds, while their MCC values remained close to zero. Gradient Boosting showed the highest specificity among the conventional classifiers at approximately 0.73 but substantially lower sensitivity of approximately 0.34. In contrast, Support Vector Machine and Random Forest produced higher sensitivities of approximately 0.56 but lower specificities of approximately 0.48 and 0.47, respectively.
The Feedforward Neural Network produced the highest observed values across the reported measures, with an accuracy of 96.93%, precision, sensitivity, specificity, F1-score and NPV of approximately 0.97, ROC-AUC of 0.92, and MCC of approximately 0.94. These complementary measures are considered together rather than relying on accuracy alone, particularly because false-positive and false-negative predictions have different implications in a malaria risk-screening context.
The Feedforward Neural Network achieved the highest observed performance, correctly classifying 253 of the 261 held-out observations, corresponding to an accuracy of 96.93%. Gradient Boosting correctly classified 141 observations, corresponding to an accuracy of approximately 54.02%, while Random Forest correctly classified 135 observations, corresponding to approximately 51.72%. The resulting accuracy differences relative to the FNN were approximately 42.91 and 45.21 percentage points, respectively. The FNN also produced precision, sensitivity, specificity, and F1-score values of approximately 0.97, with a 95% Wilson confidence interval for accuracy of approximately 0.94 to 0.98.
For the paired statistical comparison, the FNN produced only eight incorrect predictions. Under the most conservative feasible pairing of the reported aggregate results, the discordant counts for FNN versus Gradient Boosting were 120 cases favouring the FNN and 8 cases favouring Gradient Boosting. The corresponding two-sided exact McNemar p-value was approximately 8.99 × 10-27. For FNN versus Random Forest, the most conservative discordant counts were 126 cases favouring the FNN and 8 cases favouring Random Forest, giving a two-sided exact McNemar p-value of approximately 2.04 × 10-28. Because these values represent the largest possible p-values consistent with the reported aggregate correct and incorrect totals, all other feasible pairings would produce equal or stronger statistical evidence. Both comparisons therefore remained statistically significant at p < 0.001.
These findings indicate that the observed performance differences between the FNN and the two strongest conventional comparators were unlikely to have arisen from sampling variation within the present held-out evaluation partition. This statistical result should nevertheless be interpreted as evidence specific to the current dataset and evaluation condition rather than as proof of general superiority across other populations, datasets, or clinical settings.
Malaria Possible Prediction (MPP)
The trained FNN was integrated into the Malaria Possible Prediction Android app. Figure 5 shows how users enter their symptoms. Figure 6 shows how the app displays the screening result and follow-up guidance.
Splash Screen
The app opens with a non-interactive splash screen displaying the title “Malaria Possible Prediction” and the abbreviation “MPP,” providing visual feedback while the model loads (Figure 5a).
Symptom Input Screen
The Symptom Input Screen of the MPP app allows users to enter clinical information for malaria risk assessment. It presents a checklist of five symptoms: fever, headache, cold, cough, and vomiting, which serve as inputs for the Feedforward Neural Network (Figure 5b). Users tap the “PREDICT” button to run the analysis, and input validation requires at least two symptoms to be selected before prediction. Because these inputs are entered by the user rather than extracted from a contemporaneous clinical record, their interpretation and reporting may differ from the symptom documentation used during model development and evaluation.
(a) Splash screen | (b) Symptom input |
|---|
Figure 5. Malaria Possible Prediction app. The splash screen (a) appears while the model loads. The symptom input screen (b) records the five model inputs.
Result Screen
The result screen displays the malaria risk prediction generated by the FNN (Figure 6a). A positive screening output indicates that the symptom pattern entered by the user is consistent with an increased predicted risk of malaria and directs the user to seek confirmatory testing and professional medical assessment. A negative output indicates that the model did not identify the entered symptom pattern as malaria-positive, but the user is advised to seek further medical evaluation if symptoms persist or worsen. The result displayed by the application is therefore presented as a screening outcome rather than a confirmed clinical diagnosis.
Recommendation Screen
The Recommendation Screen (Figure 6b) provides safety-oriented follow-up guidance based on the screening result. When an increased malaria risk is indicated, the application advises the user to attend an appropriate healthcare facility for confirmatory testing and professional medical assessment. The screen does not name or recommend a specific antimalarial medicine, dosage, or treatment regimen, and users are explicitly advised not to begin treatment solely on the basis of the screening output. When symptoms persist or worsen, further medical assessment is recommended regardless of the application result. This design ensures that the application functions as a screening and referral-support tool rather than as a prescribing system.
(a) Result | (b) Recommendation |
|---|
Figure 6. Screening output in the Malaria Possible Prediction app. The result screen (a) reports the predicted risk, and the recommendation screen (b) provides follow-up guidance.
The complete prediction workflow was executed locally using the TensorFlow Lite model embedded within the Android application. After the user selected the relevant symptoms and initiated the prediction, the application prepared the required model input, performed inference on the device, and displayed the resulting screening output without requiring an internet connection. Testing on the Samsung Galaxy S8+ produced an average prediction time of less than 1 second, demonstrating that the application could provide rapid feedback on the test device. The offline implementation is particularly relevant to the intended use of the system in communities where internet connectivity may be intermittent or unavailable.
Mobile Deployment Performance
The deployment characteristics were examined to complement the predictive evaluation of the FNN. The application package occupied 39 MB, and the complete prediction workflow operated locally without requiring communication with an external server. On the Samsung Galaxy S8+ test device, the average end-to-end prediction-display latency remained below 1 second. Since this measurement covered input preparation, TensorFlow Lite execution, prediction processing, and display of the result, it is reported as application-level latency rather than isolated TensorFlow Lite inference time.
The computational requirements of the neural component were also derived from the implemented 5-16-32-1 architecture. The 673 trainable parameters require approximately 2.63 KiB when represented as 32-bit floating-point values, while a forward prediction requires 624 weight-related multiply-accumulate operations. The numerical activations associated with the input and principal layer outputs require approximately 216 bytes, giving a theoretical minimum numerical footprint of approximately 2.84 KiB for parameters and these activations. These calculated values indicate that the FNN itself is computationally compact; however, they do not represent the total memory occupied by the Android application during execution. Table 6 summarises the measured and calculated deployment characteristics together with metrics that require separate device-level profiling.
Table 6. Mobile Deployment Evaluation and Computational Characteristics of the FNN-Based Android Application.
Deployment Parameter | Value/Status |
|---|---|
Test device | Samsung Galaxy S8+ (SM-G955U, US variant) |
Operating system | Android 9.0 with One UI |
Processor | Qualcomm Snapdragon 835 |
Device RAM | 6 GB |
Internal storage | 128 GB |
Inference framework | TensorFlow Lite |
Inference mode | On-device and offline |
APK size | 39 MB |
End-to-end prediction-display latency | <1000 ms on average |
Isolated TensorFlow Lite inference time | <1000 ms upper bound; not separately timed |
FNN trainable parameters | 673 |
Raw FP32 parameter memory | ~2.63 KiB |
Activation numerical storage | ~216 bytes |
Theoretical minimum FNN numerical footprint | ~2.84 KiB |
Weight-related computation per prediction | 624 MACs |
Approximate multiply/add operations | ~1,248 operations |
Application runtime RAM usage | Not independently measured |
CPU utilisation | Not independently measured |
Battery consumption | Not independently measured |
Internet required for prediction | No |
Discussion
Justification for Choosing the Feedforward Neural Network
The comparative results presented in Table 5 informed the selection of the Feedforward Neural Network for mobile implementation. Within the experimental conditions of this study, the FNN provided the strongest combination of predictive accuracy, sensitivity, specificity, and F1-score among the evaluated classifiers. Its compact five-input architecture also permitted efficient conversion to TensorFlow Lite and integration into the Android application. The selection of the FNN therefore reflects its performance in the present dataset and its compatibility with the intended mobile deployment environment, rather than an assumption of general superiority over other machine learning algorithms.
Performance and Clinical Relevance
The held-out evaluation showed that the FNN provided the strongest reported balance between malaria-positive and malaria-negative classification among the models considered in this study. Rather than interpreting this result solely from the overall accuracy, the pattern across sensitivity, specificity, F1-score, MCC, and ROC-AUC was considered jointly. The approximately balanced sensitivity and specificity indicate that the model did not achieve its reported performance simply by favouring one diagnostic class, while the ROC-AUC provides a complementary assessment of discrimination across classification thresholds.
From a clinical perspective, the consequences of the two principal types of classification error are different. A false-negative prediction is particularly important because a malaria-positive individual could receive a reassuring screening output and consequently delay confirmatory testing or professional assessment. False-positive predictions may instead lead to unnecessary concern, additional testing, or inappropriate self-medication. These consequences mean that a symptom-based malaria model should not be assessed on accuracy alone, even when the observed overall performance is high.
The findings should also be interpreted in relation to the information available to the model. Fever, headache, vomiting, cold, and cough are common clinical manifestations but are not specific to malaria and may occur in several febrile and infectious illnesses. Consequently, the FNN output represents a learned risk estimate based on the available symptom pattern rather than confirmation of malaria infection. In addition, because formal probability calibration was not evaluated, the numerical model output should not be interpreted as a validated absolute probability of malaria in an individual patient. The reported predictive performance therefore supports the technical feasibility of the model within the present dataset and experimental setting, but it does not remove the requirement for appropriate clinical assessment and confirmatory diagnostic testing. The absence of age, symptom duration, previous malaria history, geographical variables, and seasonal information from the model further limits the clinical context represented by the five symptom inputs and should be considered when assessing its applicability beyond the present dataset.
Preliminary Cross-Dataset Compatibility Assessment
To examine whether the trained FNN could be applied to independently sourced records containing the required input structure, the independent Tanzanian public dataset obtained from Kaggle was examined. The dataset contained 2,556 patient records from Tanzania and represented a geographical and healthcare context distinct from that of the southwestern Nigerian population used for model development. The available variables were not completely identical to those in the local Nigerian clinical dataset. Because the FNN required fever, headache, vomiting, cold, and cough as its five inputs, only records containing complete information that could be directly mapped to all five predictors were considered compatible. Eight records met this requirement.
The eight compatible records were processed by the trained model to examine whether independently sourced observations containing the required five-variable input structure could be passed through the established prediction pipeline. Given the very small sample size and compatibility-based selection of these cases, however, this observation should not be interpreted as evidence of external predictive performance. No population-level accuracy, sensitivity, specificity, predictive value, confidence interval, or generalisability estimate was inferred from the eight observations. The subset may not represent the clinical characteristics or outcome distribution of the complete Tanzanian dataset because inclusion depended on the availability of all five predictor variables.
Differences in malaria prevalence and symptom presentation across geographical regions, patient populations, seasons, transmission periods, and healthcare settings may influence the relationship between the five symptom inputs and recorded malaria outcomes. Seasonal changes in malaria transmission may alter disease prevalence and the proportion of symptomatic patients presenting for care, while differences in patient characteristics, symptom-reporting practices, healthcare-seeking behaviour, diagnostic practices, and facility type may further affect the observed symptom patterns. Consequently, predictive performance observed in the local Nigerian clinical dataset should not be assumed to remain unchanged in other populations, seasons, geographical areas, or healthcare settings. These effects cannot be meaningfully evaluated using the eight compatible Tanzanian observations. Establishing external validity will therefore require substantially larger independent cohorts containing the same predictor variables and representing different geographical regions, seasons, patient populations, and healthcare environments.
Mobile Implementation and Technical Feasibility
The compact FNN architecture permitted conversion to TensorFlow Lite and integration into the Malaria Possible Prediction Android application. The resulting application had an APK size of 39 MB and executed the complete prediction workflow offline on the Samsung Galaxy S8+ test device, with an average end-to-end response time below 1000 ms. The FNN itself contains only 673 trainable parameters, corresponding to approximately 2.63 KiB of raw FP32 parameter storage, and requires 624 weight-related multiply-accumulate operations per prediction. These characteristics demonstrate that the neural-network component is computationally compact and that offline execution is technically feasible on the tested smartphone. However, application-level RAM consumption, CPU utilisation, battery consumption, and isolated TensorFlow Lite execution time were not independently profiled. The present implementation is therefore regarded as an offline mobile proof of concept demonstrating technical feasibility on the tested smartphone rather than evidence of readiness for routine clinical deployment. Broader device-level profiling, prospective clinical evaluation, larger independent cross-dataset assessment, and testing under real-world healthcare conditions would be required before clinical deployment could be considered.
Clinical Utility, Patient Safety, and Intended Use
The Malaria Possible Prediction application is intended to function as an early malaria risk screening and decision support tool. It is not designed to establish a definitive clinical diagnosis and should not replace established laboratory procedures such as rapid diagnostic tests, microscopy, or polymerase chain reaction. In practical use, the application may assist individuals or frontline healthcare workers in identifying symptom combinations that warrant further clinical assessment, particularly in settings where immediate access to laboratory facilities is limited.
A positive screening result should indicate that the individual may have an increased likelihood of malaria based on the symptoms entered into the application. Such an output should prompt further assessment by a qualified healthcare professional and confirmation using an appropriate malaria diagnostic test before treatment decisions are made. Similarly, a negative screening result should not be interpreted as proof that malaria is absent, particularly when symptoms persist, worsen, or are accompanied by other clinical signs not considered by the model.
The application does not provide the name of a specific antimalarial medicine, dosage instruction, or treatment regimen. This restriction is important because a symptom-based screening result alone does not provide sufficient clinical information to determine an appropriate drug, dose, treatment duration, contraindication, or possible interaction with other medicines. Providing pharmaceutical treatment advice without professional assessment could encourage self-medication, inappropriate dosing, or treatment of an illness that has been incorrectly attributed to malaria. Similar symptoms may occur in other infectious conditions, including viral illnesses, COVID-19 and typhoid fever, and premature treatment based solely on the application output could delay identification and management of the actual condition. Accordingly, the application directs users with a positive screening result to seek confirmatory malaria testing and professional medical assessment before treatment is considered.
The limited specificity of the five symptom inputs is an important clinical limitation of the proposed screening approach. Fever, headache, vomiting, cold and cough are not unique to malaria and may also occur in influenza, typhoid fever, COVID-19 and other viral or bacterial illnesses. The same symptom combination may therefore arise from different underlying conditions, particularly when information on symptom duration, severity, patient history, physical examination and laboratory findings is unavailable. The application output should consequently be interpreted as an estimate of malaria risk based on the entered symptoms rather than as evidence that malaria is the underlying cause of illness.
The false-positive and false-negative outcomes observed in the confusion matrix also require consideration in relation to the intended clinical use of the application and the non-specific nature of the five symptom inputs. A false-positive malaria prediction could cause unnecessary concern or encourage a user to seek or take antimalarial medication when the symptoms are caused by another illness. Apart from the risk of inappropriate self-medication and delayed recognition of the actual condition, unnecessary antimalarial use is undesirable from a public-health perspective because inappropriate drug use can contribute to the selection and spread of antimalarial drug resistance (1, 25). Conversely, a false-negative prediction may provide false reassurance to an individual who actually has malaria, potentially delaying confirmatory testing, professional assessment and appropriate treatment. A negative malaria prediction also does not exclude another potentially important illness producing a similar symptom pattern. These limitations reinforce the requirement that both positive and negative application outputs be interpreted together with clinical assessment and appropriate diagnostic testing.
To reduce these risks, the application output is intended to encourage appropriate follow-up rather than autonomous treatment decisions. Users should be advised to seek professional medical assessment when malaria is predicted or when symptoms persist despite a negative screening result. The application should therefore be regarded as a supplementary screening aid that can support early risk assessment and referral, while definitive diagnosis and treatment remain the responsibility of qualified healthcare professionals using established clinical and laboratory procedures.
Comparison with Previous Malaria Prediction Studies
The previous studies summarised in Table 1 provide useful context for interpreting the findings of the present study. However, substantial differences in study populations, predictor sets, diagnostic definitions, prediction objectives, and evaluation procedures limit direct numerical comparison of reported performance. The findings of the present study should therefore be considered in relation to the methodological characteristics of earlier investigations rather than solely on the basis of accuracy or ROC-AUC values.
Bria et al. (14) developed symptom-based neural-network classifiers and reported accuracies of 95.76% for patients with a previous history of malaria and 88.48% for those without such a history. Mariki et al. (9) used a substantially broader set of 36 clinical symptom and demographic variables obtained from 2,556 patients in Tanzania, with their Random Forest model achieving accuracies of 95% in Kilimanjaro, 87% in Morogoro, and 82% for the combined dataset. These studies demonstrate the predictive value of clinical information while also showing how patient characteristics and geographical differences may influence reported model performance.
Other investigations have incorporated information extending beyond clinical symptoms. Ojurongbe et al. (8) combined demographic, environmental, behavioural, and clinical variables for malaria prediction in Nigeria and reported a test ROC-AUC of 0.83 using penalised Logistic Regression. Khan et al. (7) approached malaria prediction from a population-level perspective using meteorological, population, temporal, and malaria surveillance variables, reporting a test accuracy of 93.3% and an XGBoost ROC-AUC of 0.97. Although these approaches demonstrate the potential value of richer predictor sets, their objectives and input requirements differ from those of individual symptom-based mobile screening.
More recent studies have also placed greater emphasis on model interpretation and broader comparative evaluation. Awe et al. (16) reported a Random Forest ROC-AUC of 0.869 using clinical symptoms and patient characteristics and incorporated SHAP, LIME, and permutation feature importance to improve interpretability. Ruban et al. (24) compared several supervised learning algorithms using clinical symptoms and demographic information and reported a mean ROC-AUC of 0.959 and balanced accuracy of 0.904 for the Extra Trees classifier.
The present study differs from many previous investigations principally in its use of only five routinely observable symptoms: fever, headache, vomiting, cold, and cough. Although the FNN produced higher reported performance than the conventional classifiers in the local held-out evaluation, direct numerical comparison with previous studies is limited by differences in predictor sets, populations, diagnostic definitions, and validation procedures. The reported results should therefore not be interpreted as evidence of universal superiority over models developed using richer clinical, demographic, environmental, or epidemiological information.
The comparison instead highlights a practical trade-off between predictive information and deployment simplicity. Restricting the model to five symptom inputs reduces the information required for preliminary screening and permits compact offline Android implementation, but broader clinical variables may provide substantially greater diagnostic information. The engineering contribution of the present framework is therefore the demonstration of a lightweight on-device screening pathway, while larger independent cohorts and more informative clinical predictors remain necessary before routine clinical use can be considered.
Explainability and Clinical Interpretability
Clinical interpretability is an important consideration when machine learning models are used to support health-related decisions. Although the Feedforward Neural Network produced the strongest predictive performance among the evaluated classifiers, its internal decision process is less directly interpretable than that of models such as Logistic Regression or Decision Tree.
The present FNN uses only five explicitly defined clinical inputs: fever, headache, vomiting, cold, and cough. The univariate statistical analysis showed only weak individual associations between these symptoms and the recorded malaria outcome, indicating that their inclusion should be understood primarily as a practical minimal-input design choice rather than evidence that they are individually strong predictive indicators of malaria risk. This compact predictor set provides input-level transparency because the variables supplied to the model are directly observable clinical symptoms rather than latent or automatically extracted features. However, visibility of the input variables should not be interpreted as equivalent to formal model explainability. In particular, the relative contribution of each symptom to an individual FNN prediction cannot be determined directly from the network output.
Formal post-hoc explainability analysis was not included in the present experimental evaluation. Consequently, no quantitative claim is made regarding the relative importance or causal contribution of individual symptoms to the FNN predictions. This limitation is relevant to the clinical interpretation of the model because a high classification score alone does not explain why a particular combination of symptoms produced a given risk estimate.
Several complementary approaches can be used to address this limitation in subsequent validation. Shapley Additive Explanations (SHAP) can be used to quantify the direction and magnitude of individual symptom contributions at both global and case-specific levels. Local Interpretable Model-agnostic Explanations (LIME) can provide local approximations of individual predictions, while permutation feature importance can evaluate the change in predictive performance when the information associated with each symptom is disrupted. Symptom-level sensitivity analysis can further examine how predicted malaria risk changes when individual symptom inputs are systematically varied while the remaining inputs are held constant. Used together, these approaches would provide complementary evidence on global feature relevance, local prediction behaviour, and the stability of the model response to changes in individual symptoms.
The importance of such analysis is particularly relevant for a symptom-based malaria screening application because the five predictors are clinically non-specific and may occur in several febrile illnesses. Explainability should therefore be used to support interpretation of the model rather than to transform the screening output into a definitive diagnostic conclusion. Future validation of the FNN will incorporate SHAP, LIME, permutation feature importance, and symptom-level sensitivity analysis to examine whether the model relies on clinically plausible symptom combinations and whether the resulting explanations remain stable across patient groups and independent datasets.
Recent malaria-focused artificial intelligence research has similarly incorporated formal explainability techniques (16). Parveen et al. employed SHAP, LIME, and Gradient-weighted Class Activation Mapping (Grad-CAM) within a deep learning framework for malaria classification (26), while other malaria prediction studies have used feature-importance approaches to improve interpretation of model outputs. Although those studies differ from the present symptom-based FNN in data type and modelling design, they demonstrate the increasing importance of combining predictive performance with transparent model interpretation in healthcare-related machine learning.
Accordingly, the current Android application should be regarded as a malaria risk-screening and decision-support tool rather than an autonomous diagnostic system. Its prediction should be interpreted together with clinical judgement and, where appropriate, confirmed using established malaria diagnostic procedures such as rapid diagnostic tests, microscopy, or polymerase chain reaction.
Summary and Study Limitations
The FNN achieved the strongest observed balance of the evaluated performance measures on the held-out comparative evaluation partition derived from the local Nigerian clinical dataset and was subsequently integrated into the mobile application. However, the findings should be interpreted in light of several important limitations.
First, the local Nigerian clinical dataset was relatively modest, comprising 1,303 retrospective patient records obtained from two public hospitals and three primary health centres in southwestern Nigeria. The facility-based sampling approach was not population-based, and individuals who did not attend the participating healthcare facilities were not represented. In addition, the reduction from 45 symptom variables to the five retained predictors was completed before the primary model-development/evaluation split and was not embedded within a nested resampling procedure. These factors may introduce selection bias and limit the representativeness and generalisability of the observed performance.
Second, external assessment was very limited. Although the independently sourced Tanzanian public dataset contained 2,556 patient records, only eight records contained complete information that could be directly mapped to all five predictor variables required by the trained FNN. These eight observations were therefore used only for a preliminary cross-dataset compatibility assessment and do not constitute formal external validation or establish cross-population generalisability.
Third, the five retained symptoms, fever, headache, vomiting, cold, and cough, are clinically non-specific. They may occur in malaria as well as in other febrile and infectious illnesses, including influenza, typhoid fever, COVID-19, and other conditions. Identical five-symptom combinations were also observed among both malaria-positive and malaria-negative records. The model output should therefore be interpreted as a symptom-based risk estimate rather than as confirmation of malaria or identification of the underlying cause of a patient’s symptoms.
Finally, the model and mobile application have not undergone prospective clinical validation in representative patient populations or independent healthcare settings using a consistently documented laboratory reference standard. The present Android implementation should therefore be regarded as a screening-oriented technical proof of concept rather than a clinically validated diagnostic system. Prospective multi-site evaluation across different patient populations, geographical areas, seasons, and healthcare settings will be required before routine clinical deployment can be considered.
Conclusion
This study developed a symptom-based Feedforward Neural Network for malaria risk prediction and integrated the trained model into the Malaria Possible Prediction Android application for rapid offline screening in resource-limited settings. The system uses five routinely documented symptoms, fever, headache, vomiting, cold, and cough, and is intended strictly as an early risk-screening and decision-support tool rather than a substitute for laboratory confirmation or professional clinical diagnosis. Positive screening results should prompt confirmatory testing and clinical assessment, while persistent or worsening symptoms require medical attention irrespective of a negative prediction. Accordingly, the application does not recommend specific antimalarial medicines or dosages.
The findings should be interpreted in light of several important limitations. The five symptoms are clinically non-specific and may occur in malaria as well as influenza, typhoid fever, COVID-19, and other infectious illnesses. Identical five-symptom combinations were also observed among both malaria-positive and malaria-negative records, indicating that the reduced input space does not uniquely determine malaria status. False-positive predictions may therefore encourage unnecessary testing or inappropriate antimalarial use, with potential implications for drug resistance (1, 25), whereas false-negative predictions may provide false reassurance and delay appropriate care. In addition, model development relied on retrospectively documented symptoms, whereas real-world application use depends on user-entered symptoms; differences in symptom recognition and reporting may therefore affect deployment performance.
The eight compatible records obtained from the independent Tanzanian dataset served only as a preliminary cross-dataset compatibility assessment and do not establish external validity or cross-population generalisability. The retrospective records also did not consistently identify the diagnostic procedure underlying each malaria outcome, and future validation should therefore use prospectively collected cases with a clearly defined laboratory reference standard. Formal independent ethics committee approval was not obtained for the retrospective record review; although healthcare-facility permission was granted and directly identifying information was not retained, future prospective or expanded studies should undergo formal ethics review.
The comparative evaluation used a single stratified 261-record held-out partition that was excluded from model fitting and preprocessing-parameter estimation but was also used to compare the candidate classifiers and inform selection of the FNN for deployment. The reported performance should therefore be interpreted as comparative performance under the implemented evaluation condition rather than as an unbiased post-selection estimate of population-level generalisation. Subsequent validation should use repeated stratified or nested cross-validation together with a separate independent test cohort, while preserving data partitions, preprocessing states, random seeds, trained model states, and prediction-level outputs for reproducibility. Future validation should also assess probability calibration before numerical risk estimates are interpreted clinically or presented as absolute malaria-risk probabilities within the mobile application. Formal explainability approaches, including SHAP, LIME, permutation feature importance, and symptom-level sensitivity analysis, should also be incorporated. The present Android implementation should therefore be regarded as a technically demonstrated mobile screening prototype rather than a clinically validated system ready for routine deployment.
Acknowledgments
The author thanks the participating hospitals and primary health centres for their institutional support and for providing access to anonymised clinical records for this research. Their identities remain confidential at their request.
Ethics approval and consent to participate
The study involved a retrospective review of existing outpatient clinical records, with formal permission from the participating hospitals and primary health centres. No direct patient recruitment, intervention or interaction occurred. Formal ethics committee approval was not obtained, no formal waiver of individual informed consent was issued, and no prospective consent process was undertaken. The study is therefore reported as a retrospective analysis conducted with permission from the participating healthcare facilities rather than as an ethics-approved or ethics-exempt investigation. Facility identities remained confidential, directly identifying patient information was not retained in the analytical dataset, and temporary record photographs were permanently deleted after transcription and verification.
Conflict of interest
The author declares no conflict of interest.
Funding
This research received no external funding.
Data availability
The anonymised, processed feature dataset is available from the corresponding author upon reasonable request.
References
1. World Health Organization. World malaria report 2025: addressing the threat of antimalarial drug resistance. Geneva: World Health Organization; 2025.
2. Jiménez-Morillas F, Gil-Mosquera M, García-Lamberechts EJ, Miguens-Blanco I, Alvarez-Manzanares J, Portillo-Cano M, et al. Fever in travelers returning from the tropics. Med Clin (Barc). 2019;153(5):205-212.
3. Akafity G, Kumi N, Ashong J. Diagnosis and management of malaria in the intensive care unit. J Intensive Med. 2024;4(1):3-15. doi:10.1016/j.jointm.2023.09.002.
4. Slater L, Ashraf S, Zahid O, Ali Q, Oneeb M, Akbar MH, et al. Current methods for the detection of Plasmodium parasite species infecting humans. Curr Res Parasitol Vector Borne Dis. 2022;2:100086.
5. Kavanaugh MJ, Azzam SE, Rockabrand DM. Malaria Rapid Diagnostic Tests: Literary review and recommendation for a Quality Assurance, Quality Control Algorithm. Diagnostics (Basel). 2021;11(5):768.
6. Rajaraman S, Antani SK, Poostchi M, Silamut K, Hossain MA, Maude RJ, et al. Pre-trained convolutional neural networks as feature extractors toward improved malaria parasite detection in thin blood smear images. PeerJ. 2018;6:e4568.
7. Khan O, Ajadi JO, Hossain MP. Predicting malaria outbreak in The Gambia using machine learning techniques. PLoS One. 2024;19(5):e0299386.
8. Ojurongbe TA, Afolabi HA, Bashiru KA, Sule WF, Akinde SB, Ojurongbe O, et al. Prediction of malaria positivity using patients’ demographic and environmental features and clinical symptoms to complement parasitological confirmation before treatment. Trop Dis Travel Med Vaccines. 2023;9(1):24.
9. Mariki M, Mkoba E, Mduma N. Combining clinical symptoms and patient features for malaria diagnosis: Machine learning approach. Appl Artif Intell. 2022;36(1):2031826.
10. Tek FB, Dempster AG, Kale I. Computer vision for microscopy diagnosis of malaria. Malar J. 2009;8:153.
11. Adamu YA, Singh J. Malaria prediction model using machine learning algorithms. Turk J Comput Math Educ. 2021;12(10):7488-7496.
12. Sahu P, Priyadarshini P, Tripathy S, Das Y, Pradhan S. Machine Learning Strategies for Malaria Risk Prediction based on Text-based Clinical Information [preprint]. Research Square; 2023. doi:10.21203/rs.3.rs-2938711/v1.
13. Nkiruka O, Prasad R, Clement O. Prediction of malaria incidence using climate variability and machine learning. Inform Med Unlocked. 2021;22:100508.
14. Bria YP, Yeh C, Bedingfield S. Machine Learning Classifiers for Symptom-Based Malaria Prediction. In: 2022 International Joint Conference on Neural Networks (IJCNN). IEEE; 2022. p. 1-6.
15. Ayoka TO, Nnadi CO. Application of machine learning models in predicting malaria prevalence in Nigeria: an analysis of the 2015-2020 demographic and health surveys. J Parasit Dis. 2026;50(2):431-443. doi:10.1007/s12639-025-01880-6.
16. Awe OO, Mwangi PN, Goudoungou SK, Esho RV, Oyejide OS. Explainable AI for enhanced accuracy in malaria diagnosis using ensemble machine learning models. BMC Med Inform Decis Mak. 2025;25:162.
17. Spathis D, Vlamos P. Diagnosing asthma and chronic obstructive pulmonary disease with machine learning. Health Informatics J. 2019;25(3):811-827.
18. Rajkomar A, Hardt M, Howell MD, Corrado G, Chin MH. Ensuring fairness in machine learning to advance health equity. Ann Intern Med. 2018;169(12):866-872.
19. Barboza MFX, De Carvalho MKH, Rodrigues IR, Santos GL, Monteiro WM, Figueira EAG, et al. Prediction of malaria using deep learning models: A case study on city clusters in the state of Amazonas, Brazil, from 2003 to 2018. Rev Soc Bras Med Trop. 2022;55:e0420.
20. Hussain M, Cifci MA, Sehar T, Nabi S, Cheikhrouhou O, Maqsood H, et al. Machine learning based efficient prediction of positive cases of waterborne diseases. BMC Med Inform Decis Mak. 2023;23(1):11.
21. Razavi S. Deep learning, explained: Fundamentals, explainability, and bridgeability to process-based modelling. Environ Model Softw. 2021;144:105159.
22. Ahishakiye E, Kanobe F, Taremwa D, Nantongo BA, Nkalubo L, Ahimbisibwe S. Enhancing malaria detection and classification using convolutional neural networks-vision transformer architecture. Discov Appl Sci. 2025;7:612.
23. Javaid M, Haleem A, Singh RP, Suman R, Rab S. Significance of machine learning in healthcare: Features, pillars and applications. Int J Intell Netw. 2022;3:58-73.
24. Ruban S, Vinay V, Shanthini H, Rai S, Kannan Subramani S. Leveraging machine learning for symptom-based malaria diagnosis: A predictive model approach. Neural Comput Appl. 2026;38(13):566.
25. Cheah PY, Parker M, Day NPJ. Ethics and antimalarial drug resistance. In: Jamrozik E, Selgelid MJ, editors. Ethics and drug resistance: collective responsibility for global public health. Cham: Springer; 2020. p. 55-73.
26. Parveen R, Qui B, Song W, Al-Kahtani N, Jamjoom MM, Mostafa SM, et al. Trustworthy deep learning for malaria diagnosis using explainable artificial intelligence. Sci Rep. 2025;15:45037.


