Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Apr 11;25(1):162.
doi: 10.1186/s12911-025-02874-3.

Explainable AI for enhanced accuracy in malaria diagnosis using ensemble machine learning models

Affiliations

Explainable AI for enhanced accuracy in malaria diagnosis using ensemble machine learning models

Olushina Olawale Awe et al. BMC Med Inform Decis Mak. .

Abstract

Background: Malaria, an infectious disease caused by protozoan parasites belonging to the Plasmodium genus, remains a significant public health challenge, with African regions bearing the heaviest burden. Machine learning techniques have shown great promise in improving the diagnosis of infectious diseases, such as malaria.

Objectives: This study aims to integrate ensemble machine learning models and Explainable Artificial Intelligence (XAI) frameworks to enhance the diagnosis accuracy of malaria.

Methods: The study utilized a dataset from the Federal Polytechnic Ilaro Medical Centre, Ilaro, Ogun State, Nigeria, which includes information from 337 patients aged between 3 and 77 years (180 females and 157 males) over a 4-week period. Ensemble methods, namely Random Forest, AdaBoost, Gradient Boost, XGBoost, and CatBoost, were employed after addressing class imbalance through oversampling techniques. Explainable AI techniques, such as LIME, Shapley Additive Explanations (SHAP) and Permutation Feature Importance, were utilized to enhance transparency and interpretability.

Results: Among the ensemble models, Random Forest demonstrated the highest performance with an ROC AUC score of 0.869, followed closely by CatBoost at 0.787. XGBoost, Gradient Boost, and AdaBoost achieved ROC AUC scores of 0.770, 0.747, and 0.633, respectively. These methods evaluated the influence of different characteristics on the probability of malaria diagnosis, revealing critical features that contribute to prediction outcomes.

Conclusion: By integrating ensemble machine learning models with explainable AI frameworks, the study promoted transparency in decision-making processes, thereby empowering healthcare providers with actionable insights for improved treatment strategies and enhanced patient outcomes, particularly in malaria management.

Keywords: Binary classification; Malaria diagnosis; Nigeria; Prediction; Symptoms.

PubMed Disclaimer

Conflict of interest statement

Declarations. Ethics approval and consent to participate: Not applicable. Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
Research design flowchart. Source: Author
Fig. 2
Fig. 2
Correlation matrix of malaria dataset
Fig. 3
Fig. 3
Target classes before balancing
Fig. 4
Fig. 4
Target classes after oversampling
Fig. 5
Fig. 5
Random Forest before balancing
Fig. 6
Fig. 6
CatBoost before balancing
Fig. 7
Fig. 7
XGBoost before balancing
Fig. 8
Fig. 8
AdaBoost before balancing
Fig. 9
Fig. 9
GradientBoost before balancing
Fig. 10
Fig. 10
Random Forest after oversampling
Fig. 11
Fig. 11
CatBoost after oversampling
Fig. 12
Fig. 12
XGBoost after oversampling
Fig. 13
Fig. 13
AdaBoost after oversampling
Fig. 14
Fig. 14
GradientBoost after oversampling
Fig. 15
Fig. 15
ROC curve after oversampling
Fig. 16
Fig. 16
LIME Random Forest
Fig. 17
Fig. 17
LIME CatBoost
Fig. 18
Fig. 18
SHAP individual
Fig. 19
Fig. 19
SHAP overall
Fig. 20
Fig. 20
PFI Random Forest
Fig. 21
Fig. 21
PFI CatBoost

Similar articles

References

    1. Bhardwaj R, Nambiar AR, Dutta D. A study of machine learning in healthcare. In: 2017 IEEE 41st annual computer software and applications conference (COMPSAC). Turin: IEEE; 2017. vol. 2. pp. 236–41. 10.1109/COMPSAC.2017.164.
    1. Shickel B, Tighe PJ, Bihorac A, Rashidi P. Deep EHR: a survey of recent advances in deep learning techniques for electronic health record (EHR) analysis. IEEE J Biomed Health Inform. 2017;22(5):1589–604. - PMC - PubMed
    1. Rajkomar A, Dean J, Kohane I. Machine learning in medicine. N Engl J Med. 2019;380(14):1347–58. - PubMed
    1. Cabitza F, Rasoini R, Gensini GF. Unintended consequences of machine learning in medicine. Jama. 2017;318(6):517–8. - PubMed
    1. Awe OO, Adepoju JM, Boniface E, Awe OD. Comparative Analysis of Random Forest and Neural Networks for Anemia Prediction in Female Adolescents: A LIME-Based Explainability Approach. In: Practical Statistical Learning and Data Science Methods: Case Studies from LISA 2020 Global Network, USA. STEAM-H: Science, Technology, Engineering, Agriculture, Mathematics & Health Practical Statistical Learning and Data Science Methods. Switzerland: Springer Nature; 2024. pp. 555–73.