Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

CardioAI: An Explainable Machine Learning System for Cardiovascular Risk Prediction and Patient Retention in Nigerian Healthcare Settings

Domain:

healthcare

Record type:

modelsoftware
Creator:
Gbo
Publisher:
ope
Host:
Abstract Background Cardiovascular disease is the leading cause of mortality in Nigeria and across sub-Saharan Africa, with rising incidence attributable to urbanisation, sedentary lifestyles, and limited access to early detection tools. Concurrently, patient dropout from rehabilitation programs remains a critical operational challenge for Nigerian clinics, with many patients failing to return after their initial consultation. Methods We developed CardioAI, an Explainable Artificial Intelligence system comprising two predictive modules. The cardiovascular risk module trained four machine learning models — Logistic Regression, Random Forest, Gradient Boosting (XGBoost), and a Multilayer Perceptron — on a combined UCI Heart Disease dataset of 1,025 patient records. A novel Lifestyle Risk Index was engineered from five modifiable clinical markers. SHAP (SHapley Additive exPlanations) was applied for per-prediction feature attribution. The patient retention module trained three classifiers on a synthetic dataset of 800 records, modelling 10 operational and behavioural dropout factors. An NLP and OCR pipeline using Tesseract v5.5 and spaCy was implemented for clinical document processing. Results The cardiovascular risk module achieved an AUC-ROC of 0.999 (XGBoost), 0.998 (Random Forest), 0.994 (MLP), and 0.927 (Logistic Regression) on the held-out test set. Cross-validated AUC with constrained tree depth was 0.97, confirming generalisation. SHAP analysis identified the Lifestyle Risk Index, ST depression, resting blood pressure, exercise-induced angina, and cholesterol as the five most influential predictors. The retention module achieved AUC-ROC of 0.66 (Logistic Regression), demonstrating the difficulty of dropout prediction with synthetic data. Conclusions CardioAI demonstrates that explainable machine learning can provide clinically actionable cardiovascular risk assessment and patient retention intelligence in a low-resource Nigerian healthcare context. The system is freely deployable, open-source, and designed for pilot validation in teaching hospitals across Lagos and Port Harcourt.

Visit

doi.org

Licenses

http://creativecommons.org/licenses/by-nc-nd/4.0/

Similar

An Operational Spatio-Temporal and Explainable Machine Learning Framework for Daily Wildfire Risk Prediction in MoroccoAn Explainable AI Framework for Neonatal Mortality Risk Prediction in Kenya: Enhancing Clinical Decisions with Machine LearningExplainable Machine Learning for Road Accident Severity PredictionExplainable Machine Learning Models for AMR Prediction in AfricaTowards an Explainable Machine Learning System for Early Detection of Pediatric Sepsis in Low-Resource Hospital Settings in Nigeria: Challenges and ApplicationsFlood risk prediction and modeling in Bauchi: Leveraging machine learning models and explainable AI for urban resilience

An Operational Spatio-Temporal and Explainable Machine Learning Framework for Daily Wildfire Risk Prediction in Morocco

This chapter introduces AI4Fire, an operational and explainable spatio-temporal machine learning fra

An Explainable AI Framework for Neonatal Mortality Risk Prediction in Kenya: Enhancing Clinical Decisions with Machine Learning

Neonatal mortality remains a critical public health challenge in Kenya, with a rate of 21 per 1,000

Explainable Machine Learning for Road Accident Severity Prediction

Initial public release of the Road Accident Severity XAI framework. This release includes: Cross

Explainable Machine Learning Models for AMR Prediction in Africa

Antimicrobial resistance (AMR) is one of the greatest threats to global health, with Africa facing u

Towards an Explainable Machine Learning System for Early Detection of Pediatric Sepsis in Low-Resource Hospital Settings in Nigeria: Challenges and Applications

Pediatric sepsis remains one of the most pressing threats to child survival in low- and middle-incom

Flood risk prediction and modeling in Bauchi: Leveraging machine learning models and explainable AI for urban resilience