Journal of Shandong University (Health Sciences) ›› 2026, Vol. 64 ›› Issue (11): 29-39.doi: 10.6040/j.issn.1671-7554.0.2025.0473

• Biomarkers and Regulatory Mechanisms of Lung Injury and Lung Tumors • Previous Articles    

Establishment and evaluation of a prediction model for tuberculosis occurrence in HIV-positive patients based on XGBoost

ZHOU Lu1,2, LI Qiujing1, LI Haiwen3, ZHAO Jun4, DAI Jingyi1,2   

  1. 1. Department of Public Laboratory and Emerging Infectious Diseases, Kunming Third Peoples Hospital / Yunnan Clinical Medical Center for Infectious Diseases, Kunming 650041, Yunnan, China;
    2. School of Public Health, Dali University, Dali 671000, Yunnan, China;
    3. Department of Science and Education, Kunming Third Peoples Hospital, Kunming 650041, Yunnan, China;
    4. School of Public Health and Health Management, Hubei University of Medicine, Shiyan 442000, Hubei, China
  • Published:2026-11-20

Abstract: Objective To predict the risk of tuberculosis in HIV-positive patients using machine learning models. Methods Clinical data of 937 HIV-positive patients with pulmonary infections hospitalized at Kunming Third Peoples Hospital from April 2020 to December 2024 were retrospectively analyzed. A total of 56 clinical variables were included. Feature variables were selected using LASSO regression, and an XGBoost algorithm was employed to construct a predictive model. Model performance was evaluated using receiver operating characteristic(ROC)curves, calibration curves, and decision curve analysis, with sensitivity, specificity, and accuracy calculated. Additionally, the SHAP algorithm was applied to quantify and attribute the importance of each feature. Results Among the 937 study subjects, 258 were diagnosed with pulmonary tuberculosis and 679 with non-tuberculous pulmonary infections, resulting in an overall tuberculosis prevalence of 27.5%. LASSO regression identified 9 key feature variables, including lymphocyte count, lymphocyte percentage, hemoglobin, urea, erythrocyte sedimentation rate, partial thromboplastin time, high-sensitivity C-reactive protein, age, and history of alcohol consumption. The XGBoost prediction model constructed based on these 9 variables achieved area under the curve(AUC)values of 0.862(0.836-0.889)in the training set and 0.702(0.616-0.788)in the test set. Combined with the SHAP analysis, a longer partial thromboplastin time, higher levels of hypersensitive C-reactive protein and erythrocyte sedimentation rate, as well as a history of alcohol consumption, were associated with a higher likelihood of developing pulmonary tuberculosis. Additionally, middle-aged population, lower urea level, decreased hemoglobin, and lower lymphocyte count and percentage were also identified as risk factors warranting vigilance for the occurrence of pulmonary tuberculosis. Conclusion The XGBoost-based model for predicting pulmonary tuberculosis in HIV-positive patients demonstrates good predictive performance and can effectively identify high-risk individuals and related risk factors, providing a scientific basis for early intervention.

Key words: Human immunodeficiency virus, Tuberculosis, Risk assessment, XGBoost, SHAP

CLC Number: 

  • R181
[1] 蒙志好, 吕建楠. HIV/AIDS患者合并结核分枝杆菌感染综合治疗进展[J]. 中国艾滋病性病, 2024, 30(1): 94-97. Meng Zhihao, Lyu Jiannan. Progress on the comprehensive treatment of HIV/AIDS patients co-infected with Mycobacterium tuberculosis[J]. Chinese Journal of AIDS & STD, 2024, 30(1): 94-97.
[2] van Schalkwyk C, Mahy M, Johnson L F, et al. Updated data and methods for the 2023 UNAIDS HIV estimates[J]. J Acquir Immune Defic Syndr, 2024, 95(1S): e1-e4.
[3] 屈燕, 李涛, 马文斌, 等. 世界卫生组织《2025年全球结核病报告》解读[J]. 结核与肺部疾病杂志, 2025, 6(6): 613-623. Qu Yan, Li Tao, Ma Wenbin, et al. Interpretation of the World Health Organizations Global Tuberculosis Report 2025[J]. Journal of Tuberculosis and Lung Disease, 2025, 6(6): 613-623.
[4] 姜雪, 白云龙, 马建军. 2016—2022年吉林省TB/HIV双重感染筛查及治疗情况分析[J]. 中国卫生工程学, 2024, 23(5): 598-601. Jiang Xue, Bai Yunlong, Ma Jianjun. Screening and treatment of TB/HIV co-infection in Jilin Province from 2016 to 2022 [J]. Chinese Journal of Public Health Engineering, 2024, 23(5): 598-601.
[5] Wahab N H A, Hasikin K, Lai K W, et al. Systematic review of predictive maintenance and digital twin technologies challenges,opportunities,and best practices[J]. PeerJ Comput Sci, 2024, 10: e1943. DOI: doi: 10.7717/peerj-cs.1943
[6] Zhang Y, Zhang X, Razbek J, et al. Opening the black box: interpretable machine learning for predictor finding of metabolic syndrome[J]. BMC Endocr Disord, 2022, 22(1): 214. DOI: 10.1186/s12902-022-01121-4
[7] Ali S, Akhlaq F, Imran A S, et al. The enlightening role of explainable artificial intelligence in medical & healthcare domains: a systematic literature review[J]. Comput Biol Med, 2023, 166: 107555. DOI: 10.1016/j.compbiomed.2023.107555
[8] 中华医学会感染病学分会艾滋病学组, 中国疾病预防控制中心. 中国艾滋病诊疗指南(2024版)[J]. 协和医学杂志, 2024, 15(6): 1261-1288. Chinese Society of Infectious Diseases of Chinese Medical Association, Chinese Center for Disease Control and Prevention. Chinese guidelines for the diagnosis and treatment of HIV/AIDS(2024 edition)[J]. Medical Journal of Peking Union Medical College Hospital, 2024, 15(6): 1261-1288.
[9] 中华人民共和国国家卫生和计划生育委员会. WS288—2017肺结核诊断[J]. 结核与肺部疾病杂志, 2024, 5(4): 376-378.
[10] Sia J K, Rengarajan J. Immunology of Mycobacterium tuberculosis Infections[J]. Microbiol Spectr, 2019, 7(4): 10. DOI: 10.1128/microbiolspec.GPP3-0022-2018
[11] Gu Z, Liu B, Yu X, et al. Association of blood neutrophil-lymphocyte ratio with short-term prognosis and severity of tuberculosis meningitis patients without HIV infection[J]. BMC Infect Dis, 2023, 23(1): 449. DOI: 10.1186/s12879-023-08438-y
[12] Calderwood C J, Marambire E T, Larsson L, et al. HIV, malnutrition, and noncommunicable disease epidemics among tuberculosis-affected households in east and southern Africa: a cross-sectional analysis of the ERASE-TB cohort[J]. PLoS Med, 2024, 21(9): e1004452. DOI:10.1371/journal.pmed.1004452
[13] Wondmeneh T G, Mekonnen A T. The incidence rate of tuberculosis and its associated factors among HIV-positive persons in Sub-Saharan Africa:a systematic review and meta-analysis[J]. BMC Infect Dis, 2023, 23(1): 613. DOI: 10.1186/s12879-023-08533-0
[14] Harding B N, Whitney B M, Nance R M, et al. Anemia risk factors among people living with HIV across the United States in the current treatment era:a clinical cohort study[J]. BMC Infect Dis, 2020, 20(1): 238. DOI:10.1186/s12879-020-04958-z
[15] Belew H, Wubie M, Tizazu G, et al. Predictors of tuberculosis infection among adults visiting anti-retroviral treatment center at east and west Gojjam, northwest, Ethiopia, 2017[J]. BMC Infect Dis, 2020, 20(1): 593. DOI:10.1186/s12879-020-05290-2
[16] 刘日红, 汪胤, 梁春艳, 等. 血清腺苷脱氨酶、糖类抗原199、红细胞沉降率与活动性肺结核患者病情严重程度及预后的关系研究[J]. 现代生物医学进展, 2023, 23(23): 4590-4595. Liu Rihong, Wang Yin, Liang Chunyan, et al. Study on the relationship between serum adenosine deaminase, carbohydrate antigen 199, erythrocyte sedimentation rate and the severity and prognosis of patients with active pulmonary tuberculosis[J]. Progress in Modern Biomedicine, 2023, 23(23): 4590-4595.
[17] Cobre A F, Morais A A, Selege F, et al. Use of biochemical tests and machine learning in the search for potential diagnostic biomarkers of COVID-19, HIV/AIDS, and pulmonary tuberculosis[J]. J Braz Chem Soc, 2024, 35(7): e-20240020. DOI:10.21577/0103-5053.20240020
[18] 柳丽娟, 赵敏, 郑丽萍, 等. 艾滋病合并真菌感染患者NK细胞的亚群分布及细胞因子表达分析[J]. 现代中西医结合杂志, 2017, 26(36): 4002-4005. Liu Lijuan, Zhao Min, Zheng Liping, et al. Analysis of NK cell subset distribution and cytokine expression in AIDS patients complicated with fungal infection[J]. Modern Journal of Integrated Traditional Chinese and Western Medicine, 2017, 26(36): 4002-4005.
[19] 印薇薇, 胡小芳, 张艳. 血清白细胞介素-34、巨噬细胞移动抑制因子、骨桥蛋白、超敏C反应蛋白在活动性肺结核的诊断及预后评估价值[J]. 中国呼吸与危重监护杂志, 2023, 22(12): 868-872. Yin Weiwei, Hu Xiaofang, Zhang Yan. Value of serum interleukin-34, macrophage migration inhibitory factor, osteopontin, and high-sensitivity C-reactive protein in the diagnosis and prognosis assessment of active pulmonary tuberculosis[J]. Chinese Journal of Respiratory and Critical Care Medicine, 2023, 22(12): 868-872.
[20] Okoroiwu I L, Obeagu E, Anaebo Q B N, et al. Evaluation of activated partial thromboplastin time and prothrombin time in HIV and TB patients in Owerri Metropolis[J]. J Pharm Res Int, 2022, 34(3A): 29-34.
[21] Andrade A C, Cotter B R. Endothelial function and cardiovascular diseases in HIV infected patient[J]. Braz J Infect Dis, 2006, 10(2): 139-145.
[22] Maiga M, Abaza A, Bishai W R. Current tuberculosis diagnostic tools & role of urease breath test[J]. Indian J Med Res, 2012, 135(5): 731-736.
[23] 侯学静, 刘树荣, 孙培培, 等. 高分辨率CT评分联合血清IL-34、ESR对活动性肺结核抗结核治疗患者预后的评估价值[J]. 山东医药, 2022, 62(34): 53-56. Hou Xuejing, Liu Shurong, Sun Peipei, et al. Value of high-resolution CT score combined with serum IL-34 and ESR in evaluating the prognosis of patients with active pulmonary tuberculosis receiving anti-tuberculosis treatment[J]. Shandong Medical Journal, 2022, 62(34): 53-56.
[24] Onsu E O, Addo I Y, Adjei B N, et al. Prevalence, treatment outcomes and determinants of TB-HIV coinfection: a 10-year retrospective review of TB registry in Kwabre East Municipality of Ghana[J]. BMJ Open, 2023, 13(3): e067613. DOI:10.1136/bmjopen-2022-067613
[25] Morojele N K, Shenoi S V, Shuper P A, et al. Alcohol use and the risk of communicable diseases[J]. Nutrients, 2021, 13(10): 3317. DOI:10.3390/nu13103317
[26] New-Aaron M, Kang M, Yeligar S M. Pulmonary symptoms associated with heavy alcohol consumption among people living with HIV:an analysis of the NHANES 1999-2010[J]. Alcohol Alcohol, 2024, 59(3): agae021. DOI:10.1093/alcalc/agae021
[1] LIAO Yuan, MEN Dan, LI Yifan, LI Huaichen, LONG Fei, LIU Yi. Short-term effect of PM2.5 on the incidence of tuberculosis based on individual precise exposure assessment [J]. Journal of Shandong University (Health Sciences), 2026, 64(3): 116-123.
[2] WANG Ying, LI Huaichen, LONG Fei, LIU Yi. Association between long-term mixed air pollution exposure and the risk of drug-resistant tuberculosis based on three statistical models [J]. Journal of Shandong University (Health Sciences), 2025, 63(7): 92-101.
[3] WANG Suwei, LIU Yigang, AN Yuqin, YUAN Shuhua, HAO Haiyan, DING Tingting. Health risk assessment of cadmium and lead in a certain county with multi-pathways from 2018 to 2022 [J]. Journal of Shandong University (Health Sciences), 2024, 62(7): 106-113.
[4] LIU Chao, DIAO Tingting, ZHANG Hongji, LIU Hongwei, YANG Yongrui, LI Xiaofei. Application value of matrix-assisted laser desorption ionization time-of-flight mass spectrometry in the detection of drug resistance of Mycobacterium tuberculosis [J]. Journal of Shandong University (Health Sciences), 2024, 62(4): 61-67.
[5] JING Rui, ZHANG Wenqian, DONG Hui, DONG Yiran, YU Shengnan, DUAN Yong, YAN Qin, ZHAO Chuanlu, LI Xiujun, WANG Weibing. Current status of tuberculosis prevention and control knowledge, attitude and practice and the influencing factors of behavior among freshmen in colleges and universities in Jinan, Shandong Province [J]. Journal of Shandong University (Health Sciences), 2024, 62(2): 101-107.
[6] TANG Yuying, WANG Baozhen, XIAO Peirui, ZHAI Yuting, WANG Kebo, CHEN Chen, CHU Zunhua. Heavy metal pollution status and dietary exposure risk of marketed vegetables in Yantai City [J]. Journal of Shandong University (Health Sciences), 2024, 62(1): 95-101.
[7] ZHANG Meng, MA Wei. Trend and disease burden of human immunodeficiency virus/acquired immunodeficiency syndrome in China from 1990 to 2019 [J]. Journal of Shandong University (Health Sciences), 2023, 61(5): 84-89.
[8] LI Yanli, LI Yan, SHE Kaili, LIU Ying, LIU Weijuan, LI Xiujun, LIU Yinghui. Prevalence and risk factors of latent tuberculosis infection among nursing staff in some designated hospitals in Shandong Province [J]. Journal of Shandong University (Health Sciences), 2022, 60(4): 107-112.
[9] TIAN Qing, LIU Yongpeng, ZHANG Jingjing, LIU Hongqing. Application of ARIMA multiplicative seasonal model in the prediction of pulmonary tuberculosis incidence in Shandong Province [J]. Journal of Shandong University (Health Sciences), 2021, 59(7): 112-118.
[10] ZHANG Bei, ZHANG Xiulei, BASANG Pianduo, NIMA Ciren, SHI Dachun, CIREN Jiabu, YIN Tingting, HU Jun. Spatial epidemiological characteristics and prediction of tuberculosis in Shigatse City from 2011 to 2018 [J]. Journal of Shandong University (Health Sciences), 2021, 59(2): 108-113.
[11] DU Yanjun, BAN Jie, SUN Qinghua, ZHANG Yi, WANG Qing, CHEN Chen, LIU Yuanyuan, LI Tiantian. Interpretation of the “Technical Guide for Environmental Health Risk Assessment of Chemical Exposure” [J]. Journal of Shandong University (Health Sciences), 2021, 59(12): 20-23.
[12] PENG Xiumiao, WANG Xuefeng, GONG Weimei, ZHANG Yang, ZHOU Jingwen, CUI Liangliang. Concentration changes and health risk of 8 heavy metals in drinking water in Jinan from 2016 to 2020 [J]. Journal of Shandong University (Health Sciences), 2021, 59(12): 24-32.
[13] PAN Lu, WANG Bingling, WANG Yin, ZHANG Xiuqin, XU Chunsheng, LI Dandan, DUAN Haiping. Health risk assessment of drinking water in Qingdao from 2014 to 2019 [J]. Journal of Shandong University (Health Sciences), 2021, 59(12): 42-49.
[14] YANG Siyu, YAN Xiaona, PENG Jing, ZHANG Jie, WANG Yongxing, ZHANG Xinye, ZHANG Shufang. Pollution characteristics and health risk assessment of metals and metalloids in PM2.5 in two districts of Zhengzhou [J]. Journal of Shandong University (Health Sciences), 2021, 59(12): 70-77.
[15] SUN Chengyao, TANG Dajing, CHEN Fengge, ZHAO Chuan, GUAN Mingyang. Trend and health risk assessment of chemical components in atmospheric PM2.5 in Shijiazhuang City from 2016 to 2020 [J]. Journal of Shandong University (Health Sciences), 2021, 59(12): 78-86.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!