您的位置:山东大学 -> 科技期刊社 -> 《山东大学学报(医学版)》

山东大学学报 (医学版) ›› 2026, Vol. 64 ›› Issue (11): 29-39.doi: 10.6040/j.issn.1671-7554.0.2025.0473

• 肺损伤与肺部肿瘤的生物标志物及调控机制 • 上一篇    

基于XGBoost的HIV阳性患者肺结核发生的预测模型的建立与评价

周璐1,2,李秋静1,李海雯3,赵军4,戴静毅1,2   

  1. 1.昆明市第三人民医院/云南省传染病临床医学中心公共实验室暨新发传染病研究部, 云南 昆明 650041;2.大理大学公共卫生学院, 云南 大理 671000;3.昆明市第三人民医院科教科, 云南 昆明 650041;4.湖北医药学院公共卫生与健康学院, 湖北 十堰 442000
  • 发布日期:2026-11-20
  • 通讯作者: 戴静毅. E-mail:daijingyidjy@163.com
  • 基金资助:
    昆明市卫生科技人才培养项目[2023-SW-(技)-28];云南省级临床医学中心科研项目(2024YNLCYXZX0205)

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

摘要: 目的 利用机器学习模型预测HIV阳性患者发生结核病的风险。 方法 回顾性分析2020年4月至2024年12月在昆明市第三人民医院住院的937例HIV合并肺部感染患者的临床资料,共纳入56个临床变量。通过LASSO回归筛选特征变量,并采用XGBoost算法构建预测模型。利用受试者工作特征(receiver operating characteristic, ROC)曲线、校准曲线和决策曲线评估模型性能,输出灵敏度、特异度和准确度指标。同时,应用SHAP算法对各特征的重要性进行量化和归因分析。 结果 937例研究对象中确诊肺结核258例、非肺结核679例,总体肺结核患病率为27.5%。LASSO回归筛选出9个关键特征变量,包括淋巴细胞计数、淋巴细胞百分比、血红蛋白、尿素、血沉水平、部分凝血酶原时间、超敏C反应蛋白、年龄、饮酒史。基于这9个变量构建的XGBoost预测模型在训练集和测试集中的曲线下面积分别为0.862(0.836~0.889)和0.702(0.616~0.788)。结合SHAP分析显示,更长部分凝血酶原时间、更高超敏C反应蛋白水平、血沉较大值及有饮酒史时并发肺结核的可能性较大;中年人群、尿素水平低、血红蛋白下降、淋巴细胞计数及淋巴细胞百分比较低值时也需警惕肺结核发生风险。 结论 基于XGBoost的HIV阳性患者肺结核发生预测模型具有良好的预测性能,能够有效识别高危人群及相关危险因素,为早期干预提供科学依据。

关键词: 人类免疫缺陷病毒, 肺结核, 危险性评估, XGBoost, SHAP

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

中图分类号: 

  • 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] 张蒙,马伟. 1990—2019年中国人类免疫缺陷病毒/获得性免疫缺陷综合征流行趋势及疾病负担[J]. 山东大学学报 (医学版), 2023, 61(5): 84-89.
[2] 田庆,刘永鹏,张晶晶,刘洪庆. ARIMA乘积季节模型在山东省肺结核发病预测中的应用[J]. 山东大学学报 (医学版), 2021, 59(7): 112-118.
[3] 张倍,张修磊, 巴桑片多,尼玛次仁,石大春,次仁加布,尹亭亭,胡军. 日喀则市2011至2018年肺结核空间流行特征及预测分析[J]. 山东大学学报 (医学版), 2021, 59(2): 108-113.
[4] 阎庆虎,崔嘉,杨传彬,王武章,于德新,柴象飞. CT放射组学分析空洞特征在鉴别非结核分枝杆菌肺病与肺结核中的价值[J]. 山东大学学报 (医学版), 2020, 58(6): 41-46.
[5] 刘晓迪,马洁,修璟威,崔庆霞,李望晨,王在翔. 乘积季节模型在我国肺结核疫情预测中的应用[J]. 山东大学学报 (医学版), 2018, 56(9): 71-76.
[6] 李晓非,黄山,欧阳兵,余婷婷,梁桂亮,王霖. 利福平耐药实时荧光定量核酸扩增技术在肺结核临床路径中的应用[J]. 山东大学学报 (医学版), 2018, 56(6): 35-40.
[7] 尹小芳,葛海波. 住院肺结核合并糖尿病患者流行病学特征[J]. 山东大学学报(医学版), 2016, 54(1): 58-61.
[8] 李山成, 张磊, 李道堂, 许良, 王飞. 肺癌合并肺结核39例临床分析[J]. 山东大学学报(医学版), 2014, 52(S1): 51-52.
[9] 师晓林1,康殿民2,黄鹏翔2,廖玫珍2, 陶小润2,王国永2,苏生利2,王振宏3. 山东某市社区新型毒品吸食者梅毒感染状况及其影响因素分析[J]. 山东大学学报(医学版), 2013, 51(12): 107-110.
[10] 赵秀秀,徐凌忠,郭振,杨平. 肺结核患者确诊延迟及影响因素分析[J]. 山东大学学报(医学版), 2012, 50(11): 122-125.
[11] 张加胜1,孙强1,边学峰1,2,闫赟1,李文婧1,李仁忠3,陈诚3,张慧3. 耐多药肺结核患者在专科医院治疗后的就医流向及管理现状研究[J]. 山东大学学报(医学版), 2011, 49(2): 125-.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!