» Articles » PMID: 38249414

Supervised Machine Learning Algorithms to Predict the Duration and Risk of Long-term Hospitalization in HIV-infected Individuals: a Retrospective Study

Overview
Specialty Public Health
Date 2024 Jan 22
PMID 38249414
Authors
Affiliations
Soon will be listed here.
Abstract

Objective: The study aimed to use supervised machine learning models to predict the length and risk of prolonged hospitalization in PLWHs to help physicians timely clinical intervention and avoid waste of health resources.

Methods: Regression models were established based on RF, KNN, SVM, and XGB to predict the length of hospital stay using RMSE, MAE, MAPE, and , while classification models were established based on RF, KNN, SVM, NN, and XGB to predict risk of prolonged hospital stay using accuracy, PPV, NPV, specificity, sensitivity, and kappa, and visualization evaluation based on AUROC, AUPRC, calibration curves and decision curves of all models were used for internally validation.

Results: In regression models, XGB model performed best in the internal validation (RMSE = 16.81, MAE = 10.39, MAPE = 0.98, = 0.47) to predict the length of hospital stay, while in classification models, NN model presented good fitting and stable features and performed best in testing sets, with excellent accuracy (0.7623), PPV (0.7853), NPV (0.7092), sensitivity (0.8754), specificity (0.5882), and kappa (0.4672), and further visualization evaluation indicated that the largest AUROC (0.9779), AUPRC (0.773) and well-performed calibration curve and decision curve in the internal validation.

Conclusion: This study showed that XGB model was effective in predicting the length of hospital stay, while NN model was effective in predicting the risk of prolonged hospitalization in PLWH. Based on predictive models, an intelligent medical prediction system may be developed to effectively predict the length of stay and risk of HIV patients according to their medical records, which helped reduce the waste of healthcare resources.

Citing Articles

AI applications in HIV research: advances and future directions.

Jin R, Zhang L Front Microbiol. 2025; 16:1541942.

PMID: 40051479 PMC: 11882587. DOI: 10.3389/fmicb.2025.1541942.

References
1.
Ramachandran A, Kumar A, Koenig H, de Unanue A, Sung C, Walsh J . Predictive Analytics for Retention in Care in an Urban HIV Clinic. Sci Rep. 2020; 10(1):6421. PMC: 7156693. DOI: 10.1038/s41598-020-62729-x. View

2.
Ekholuenetale M, Owobi O, Barrow A . Achieving the UNAIDS first '95' in prenuptial HIV/AIDS testing among reproductive-aged Rwandese women: A multilevel analysis of 2019-20 population-based data. PLOS Glob Public Health. 2023; 3(2):e0001033. PMC: 10021437. DOI: 10.1371/journal.pgph.0001033. View

3.
Fuente-Soro L, Fernandez-Luis S, Lopez-Varela E, Augusto O, Nhampossa T, Nhacolo A . Community-based progress indicators for prevention of mother-to-child transmission and mortality rates in HIV-exposed children in rural Mozambique. BMC Public Health. 2021; 21(1):520. PMC: 7970736. DOI: 10.1186/s12889-021-10568-4. View

4.
Laher A, Paruk F, Richards G, Venter W . Predictors of prolonged hospital stay in HIV-positive patients presenting to the emergency department. PLoS One. 2021; 16(4):e0249706. PMC: 8059827. DOI: 10.1371/journal.pone.0249706. View

5.
Vickers A, Elkin E . Decision curve analysis: a novel method for evaluating prediction models. Med Decis Making. 2006; 26(6):565-74. PMC: 2577036. DOI: 10.1177/0272989X06295361. View