Machine learning approaches for tuberculosis prevalence and risk factor association among high-risk groups in Kigali health facilities.
Theophilla Igihozo, Fiacre Rugamba Rugero, Emma Marie Umutoniwase, Emelie Ndoli, Emmanuel Niyonshuti, Rwubaka Eugene, Emmanuel Sibomana, Melissa Uwase,
College of Medicine and Health Sciences, University of Rwanda. · College of Business and Economics, University of Rwanda.
Key points
From the paper's conclusion- This first application of EMR-driven ML for identifying TB risk factor associations in Rwanda shows that ensemble models, combined with rigorous leakage control, achieve promising performance among high-risk populations. These tools could support national TB surveillance and screening to enhance early detection and resource allocation.
Abstract
BACKGROUND: Tuberculosis (TB) remains a major global health challenge, disproportionately affecting vulnerable populations in resource-limited settings. In Rwanda, the burden is high among high-risk groups including prisoners, mining workers, people living with HIV, and healthcare workers. Despite well-established national surveillance infrastructure, published evidence on applying machine learning (ML) to routinely collected electronic medical records (EMR) for identifying factors associated with TB in these populations remains limited. This study develops and compares multiple ML models to identify factors associated with TB among high-risk groups using national surveillance data from Kigali health facilities, while emphasizing careful feature engineering to avoid information leakage. METHODS: We conducted a retrospective, cross-sectional analysis of 2,254 high-risk patient EMR from Rwanda Biomedical Center (RBC) surveillance systems, with TB status defined by GeneXpert results. Rigorous data cleaning and preprocessing were performed, including exclusion of records with indeterminate outcomes, removal of diagnostic and operational variables that could introduce information leakage, imputation of missing values, normalization of numerical features, and one-hot encoding of categorical variables. Multiple supervised ML models were developed and evaluated using a stratified train-test split, including logistic regression (LR), balanced random forest (BRF), gradient boosting methods (XGBoost, LightGBM, and GBM), support vector machines (SVM) with a radial basis function kernel, and an EasyEnsemble classifier. Model performance was assessed using accuracy, precision, recall, F1-score, and area under the receiver operating characteristic (ROC) curve (AUC). RESULTS: After excluding indeterminate GeneXpert outcomes, 358 cases were retained for evaluation. Ensemble-based models showed consistently strong and stable performance, with BRF achieving the highest discrimination (AUC = 0.86), while GBM, SVM, and EasyEnsemble classifiers showed comparable performance across accuracy, precision, recall, and F1-score. Feature-importance analysis identified clinically meaningful factors, associated with TB, including site of disease, age, TB-related body mass index, HIV status, and diabetes status, indicating that the models relied on plausible biological and demographic risk factors rather than diagnostic artifacts. CONCLUSIONS: This first application of EMR-driven ML for identifying TB risk factor associations in Rwanda shows that ensemble models, combined with rigorous leakage control, achieve promising performance among high-risk populations. These tools could support national TB surveillance and screening to enhance early detection and resource allocation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Machine learning model for predicting tuberculosis co-infection risk among high-risk populations including HIV-Positive individualsComputer Science & IT Research Journal · 2025
- Development of an early auxiliary diagnostic model for disseminated tuberculosis in HIV-negative tuberculosis patients.Frontiers in public health · 2026
- Machine Learning for Regional Tuberculosis Analysis in Ukraine: Regression Modeling and ClusteringComputation · 2026
- Machine Learning Prediction of Unsuccessful Tuberculosis Treatment Outcomes Using National Registry Data in Malaysia, 2014-2021.Healthcare (Basel, Switzerland) · 2026
- Development and validation of an interpretable machine learning model for risk stratification among individuals with latent tuberculosis infection: a multicenter case-control study.BMC public health · 2026
- Cross-cohort TB classification using clinical data gathered in Uganda and South AfricaarXiv · 2026