A machine learning–based approach to establish predictors of recurrent tuberculosis in the Guelmim region of Morocco
Despite sustained global efforts, tuberculosis (TB) remains a major public health challenge. Recurrent TB, frequently occurring within two years after treatment completion, poses serious concerns for disease control and patient prognosis. Early identification of individuals at high risk of recurrence is therefore critical to improving outcomes and reducing disease transmission. This study aimed to develop a machine learning-based predictive model for recurrent TB in the Guelmim region of Morocco. A random forest-based method was applied for feature selection, followed by the development of seven machine learning models, including logistic regression, random forest, support vector machine, k-nearest neighbours, extreme gradient boosting (XGBoost), light gradient boosting machine (LightGBM), and gradient boosting machine (GBM). Models were trained on 80% of the data using five-fold cross-validation and evaluated on an independent 20% test set, with performance assessed using several metrics, particularly AUROC and PR-AUC. Key predictors of recurrence included weight (12.54%), age (12.07%), and household size (8.57%). Among the seven machine learning models evaluated, XGBoost achieved the highest discriminative performance (AUROC = 63.4%), while LightGBM demonstrated the highest sensitivity (88.6%), and Random Forest yielded the best precision (19%), F1-score (21.6%), and PR-AUC (12.9%).
Authors
- Slimane Mehdad (ORCID: https://orcid.org/0000-0002-3800-6817)
- Souad Benaich (ORCID: https://orcid.org/0000-0003-2329-9095)
- Ahmed Oubaasri (ORCID: https://orcid.org/0000-0002-8479-5212)
- Rachida Hassikou (ORCID: https://orcid.org/0000-0002-6025-3371)
- Aicha Madkour (ORCID: https://orcid.org/0000-0002-7904-3489)
- Asmae Labyad
- Fatima Zahra El Mskini (ORCID: https://orcid.org/0000-0002-0686-2627)
Institutions
- Mohammed V University (MA)
Publication Details
- Journal
- Biostatistics & Epidemiology
- Published
- 2026-08-17
- DOI
- https://doi.org/10.1080/24709360.2026.2715243
- Primary Topic
- Tuberculosis Research and Epidemiology
- Type
- article
- Field-Weighted Citation Impact
- 0.00