00
Days
00
Hrs
00
Min
00
Sec
Submit Your Paper

Machine Learning-Based Early Prediction of Opportunistic Infections Among People Living with HIV

Authors

Udoinyang G. Inyang

Department of Data Science, Faculty of Computing, University of Uyo, Nigeria (NG)

Abraham C. Inyang

Department of Data Science, Faculty of Computing, University of Uyo, Nigeria (NG)

Asukwo E Onukak

Department of Internal Medicine, University of Uyo, Nigeria (NG)

Emmanuel A. Ubong

School of Computing and Information Technology, Federal University of Technology, Ikot Abasi. Nigeria. (NG)

Article Information

DOI: 10.51583/IJLTEMAS.2026.150600135

Subject Category: Machine Learning-Based

Volume/Issue: 15/6 | Page No: 1895-1905

Publication Timeline

Submitted: 2026-07-17

Published: 2026-07-17

Abstract

The early prediction of opportunistic infections (OIs) among people living with HIV (PLWH). Despite the widespread use of antiretroviral therapy (ART), opportunistic infections remain a major cause of morbidity and mortality, particularly in low- and middle-income settings. Early identification of individuals at high risk is therefore essential for improving clinical outcomes and optimizing healthcare resource allocation. comprehensive dataset comprising 3,982 patient records and 88 clinical, demographic, laboratory, and treatment-related features was utilized. The dataset included categorical, numerical, and text-based variables capturing diverse aspects of patient health status. Principal Component Analysis (PCA) was applied for dimensionality reduction, identifying key contributing factors such as current weight, age, ART refill patterns, and engagement in enhanced adherence counseling sessions. Several machine learning algorithms were explored, with XGBoost emerging as the best-performing model. The model achieved an accuracy of 97.17%, with an AUC of 0.994 and an Average Precision score of 0.979, demonstrating strong discriminative ability. Evaluation metrics further confirmed sensitivity and specificity, with minimal false negatives, which is critical for clinical safety in HIV care.The proposed framework demonstrates the potential of machine learning to support early risk stratification and clinical decision-making for opportunistic infections in HIV-positive populations.

Keywords

HIV, Infection, Machine Learning, Opportunistic Infections, XGBoost

Downloads

References

1. Ahlström, M. G., Ronit, A., Omland, L., Vedel, S., &Obel, N. (2019). Algorithmic prediction of HIV status using nation-wide electronic registry data. EClinicalMedicine. [Google Scholar] [Crossref]

2. Bartl, L., Zeeb, M., Kälin, M., Loosli, T., Notter, J., Furrer, H., & Nemeth, J. (2025). Machine Learning-based Prediction of Active Tuberculosis in People with HIV Using Clinical Data. Clinical Infectious Diseases. [Google Scholar] [Crossref]

3. Cai, Q., Yang, L., Ling, Y., Pan, W., Zhong, Q., Wang, C., & Pan, X. (2025). Survival prediction models for people living with HIV based on four machine learning models. Scientific Reports. [Google Scholar] [Crossref]

4. Chen, H., Chen, F., Wang, Y., Cai, E., Pan, W., Li, Y., &Su, F. (2025). A Machine Learning Model for Diagnosing Opportunistic Infections in HIV Patients: Broad Applicability Across Infection Types. Journal of Cellular and Molecular Medicine. [Google Scholar] [Crossref]

5. Chen, J., Liu, L., Huang, J., Jiang, Y.-J., Yin, C., Zhang, L., & Lu, H. (2024). LSTM-Based Prediction Model for Tuberculosis Among HIV-Infected Patients Using Structured Electronic Medical Records: A Retrospective Machine Learning Study. Journal of Multidisciplinary Healthcare. [Google Scholar] [Crossref]

6. Chen, Y., Pan, K., Lu, X., Maimaiti, E., &Wubuli, M. (2025). Machine learning-based prediction of mortality risk in AIDS patients with comorbid common AIDS-related diseases or symptoms. Frontiers in Public Health. [Google Scholar] [Crossref]

7. Emegano, D., Duwa, B., Usman, A. G., Ahmad, H., Ozsahin, D., Askar, S. S., & America, A. (2025). A comparative study on TB incidence and HIVTB coinfection using machine learning models on WHO global TB dataset. Scientific Reports. [Google Scholar] [Crossref]

8. Gilliland, S., &Mbuagbaw, L. (2025). The Applications of Machine Learning to Prognostic Modeling for Human Immunodeficiency Virus: A Protocol for a Scoping Review. Health Science Reports. [Google Scholar] [Crossref]

9. Girma, D., Dejene, H., Geleta, L. A., Tesema, M., &Bati, F. (2022). Time to occurrence, predictors, and patterns of opportunistic infections incidence among HIV-positive patients attending Antiretroviral Therapy Clinic of Salale University Comprehensive Specialized Hospital: A retrospective cohort study. Medicine. [Google Scholar] [Crossref]

10. Gruber, S., Krakower, D., Menchaca, J. T., Hsu, K., Hawrusik, R., Maro, J. C., &Klompas, M. (2020). Using electronic health records to identify candidates for human immunodeficiency virus pre‐exposure prophylaxis: An application of super learning to risk prediction when the outcome is rare. Statistics in Medicine. [Google Scholar] [Crossref]

11. Henderson, H., Napravnik, S., Kosorok, M., Gower, E. W., Kinlaw, A. C., Aiello, A., & van Duin, D. (2022). Predicting Risk of Multidrug-Resistant Enterobacterales Infections Among People With HIV. Open Forum Infectious Diseases. [Google Scholar] [Crossref]

12. Huang, L., Xie, B., Zhang, K., Xu, Y., Su, L., Lv, Y., &Lv, J. (2023). Prediction of the risk of cytopenia in hospitalized HIV/AIDS patients using machine learning methods based on electronic medical records. Frontiers in Public Health. [Google Scholar] [Crossref]

13. Ichwan, W. W., Tandra, P. A., Qomariyah, N. N., Meirawan, R. F., &Setiawan, F. (2025). Machine Learning-Based Prediction of Seropositive Toxoplasma Gondii from Lifestyle Factors. International Conferences on Information Science and System. [Google Scholar] [Crossref]

14. Ijaiya, M. A., Troncoso, E., Mutloatse, M., Ifeanyi, D., Obasa, B., Emerenini, F., &Curran, K. (2025). Use of machine learning in predicting continuity of HIV treatment in selected Nigerian States. PLOS Global Public Health. [Google Scholar] [Crossref]

15. Kurniawan, A., Marthabakti, C., Putri, L. M., Suyono, B. C., &Alisiah, R. A. (2026). Performance Evaluation of Machine Learning Algorithms for AIDS-Infected Patient Classification. JurnalKesehatanVokasional. [Google Scholar] [Crossref]

16. Li, L., Shi, C., Liu, X., Li, W., Luo, Y., Zhang, H., & Shen, L. (2025). A diagnostic model for NTM disease in HIV-positive patients: a machine learning-based analysis with novel inflammatory markers. Frontiers in Immunology. [Google Scholar] [Crossref]

17. Mamo, D., Yilma, T., Fekadie, M., Sebastian, Y., Bizuayehu, T., Melaku, M., &Walle, A. D. (2023). Machine learning to predict virological failure among HIV patients on antiretroviral therapy in the University of Gondar Comprehensive and Specialized Hospital, in Amhara Region, Ethiopia, 2022. BMC Medical Informatics and Decision Making. [Google Scholar] [Crossref]

18. Marcus, J., Hurley, L., Krakower, D., Alexeeff, S. E., Silverberg, M., & Volk, J. E. (2019). Use of electronic health record data and machine learning to identify potential candidates for HIV preexposure prophylaxis: a modelling study. The Lancet HIV. [Google Scholar] [Crossref]

19. Masur, H., Brooks, J., Benson, C., Holmes, K., Pau, A., & Kaplan, J. (2014). Prevention and treatment of opportunistic infections in HIV-infected adults and adolescents: Updated Guidelines from the Centers for Disease Control and Prevention, National Institutes of Health, and HIV Medicine Association of the Infectious Diseases Society of America. Clinical Infectious Diseases. [Google Scholar] [Crossref]

20. Ngiam, K., & Khor, I. W. (2019). Big data and machine learning algorithms for health-care delivery. The Lancet Oncology. [Google Scholar] [Crossref]

21. Orwa, J., Oduor, P., Okelloh, D., Gethi, D., Agaya, J., Okumu, A., &Wandiga, S. (2023). Comparison of logistic regression with regularized machine learning methods for the prediction of tuberculosis disease in people living with HIV: cross-sectional hospital- based study in Kisumu County, Kenya. medRxiv. [Google Scholar] [Crossref]

22. Rubaihayo, J., Tumwesigye, N., Konde-Lule, J., &Makumbi, F. (2016). Forecast analysis of any opportunistic infection among HIV positive individuals on antiretroviral therapy in Uganda. BMC Public Health. [Google Scholar] [Crossref]

23. Russom, S., Kollias, D., & Zhang, Q. (2025). Proactive HIV Care: AI-Based Comorbidity Prediction from Routine EHR Data. 2025 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW). [Google Scholar] [Crossref]

24. Sah, A., Elshaikh, R., Shalabi, M., Abbas, A. M., Prabhakar, P. K., Babker, A. M., &Agarwal, S. (2025). Role of Artificial Intelligence and Personalized Medicine in Enhancing HIV Management and Treatment Outcomes. Life. [Google Scholar] [Crossref]

25. Scott, I. (2021). Demystifying machine learning: a primer for physicians. Internal Medicine Journal (Print). [Google Scholar] [Crossref]

26. Singh, Y. (2017). Machine Learning to Improve the Effectiveness of ANRS in Predicting HIV Drug Resistance. Healthcare Informatics Research. [Google Scholar] [Crossref]

27. Sui, Q., Li, G., Peng, Y., Zhang, J., Zhang, Y., & Zhao, R. (2025). Scalable and robust machine learning framework for HIV classification using clinical and laboratory data. Scientific Reports. [Google Scholar] [Crossref]

28. Wu, L., Xia, D., & Xu, K. (2023). Multi-Clinical Factors Combined with an Artificial Intelligence Algorithm Diagnosis Model for HIV-Infected People with Bloodstream Infection. Infection and Drug Resistance. [Google Scholar] [Crossref]

29. Xu, X.-H., Ge, Z., Chow, E., Yu, Z., Lee, D. M., Wu, J., & Zhang, L. (2022). A Machine-Learning-Based Risk-Prediction Tool for HIV and Sexually Transmitted Infections Acquisition over the Next 12 Months. Journal of Clinical Medicine. [Google Scholar] [Crossref]

30. Yang, X.-D., Su, B., Zhang, X., Liu, Y., Wu, H., & Zhang, T. (2020). Incomplete immune reconstitution in HIV/AIDS patients on antiretroviral therapy: Challenges of immunological non‐responders. Journal of Leukocyte Biology. [Google Scholar] [Crossref]

31. Zhan, B., Wei, W., Xie, Z., Meng, S., Bao, X., He, X., & Liang, H. (2024). Machine learning-based prognostic prediction for hospitalized HIV/AIDS patients with cryptococcus infection in Guangxi, China. BMC Infectious Diseases. [Google Scholar] [Crossref]

32. Zhou, J., Yang, Y., Xie, Z., Lu, D., Huang, J., Lan, L., & Huang, J. (2023). Dysbiosis of gut microbiota and metabolites during AIDS: implications for CD4+ T cell reduction and immune activation. AIDS (London). [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles

© 2026 IJLTEMAS · RSIS International. All rights reserved. ISSN 2278-2540.