收稿日期: 2025-09-17
修回日期: 2025-11-14
录用日期: 2025-12-02
网络出版日期: 2026-04-13
基金资助
广西科技重大专项(编号:桂科AA22096027);广西医疗卫生适宜技术开发与推广应用项目(S2023050)
Constructing a differential diagnosis model for lung cancer and pulmonary tuberculosis using machine learning
Received date: 2025-09-17
Revised date: 2025-11-14
Accepted date: 2025-12-02
Online published: 2026-04-13
目的 运用机器学习方法构建预测模型,用于肺癌与肺结核的鉴别诊断。 方法 回顾性分析2020年7月至2023年5月在广西壮族自治区胸科医院就诊的585例患者临床资料,年龄14 ~ 90岁,其中男457例,女128例。根据临床最终诊断结果,将585例病例分为肺癌组和肺结核组。比较两组病例肿瘤标志物检测结果的差异。运用Lasso和单因素logistic回归分析筛选肺癌与肺结核鉴别诊断的特征变量。构建随机森林模型,并对重要预测变量因素进行排序。构建Lasso-logistic回归模型;通过ROC曲线分析比较随机森林模型和Lasso-logistic回归模型的预测效能。 结果 肺癌组血清肿瘤标志物CA125、CEA、CYFRA21-1、NSE、SCCA明显高于肺结核组,差异有统计学意义(P < 0.05)。Lasso/单因素logistic回归分析筛选出肺癌与肺结核鉴别诊断的特征变量为性别、年龄、CA125、CEA、CYFRA21-1、NSE、SCCA。通过随机森林模型对特征变量进行重要预测变量排序,依次为CYFRA21-1、CEA、SCCA、NSE、CA125、年龄、性别;Lasso-logistic回归分析结果显示,CYFRA21-1、CEA、NSE水平和年龄是区分肺癌与肺结核的独立危险因素(P <0.05);随机森林模型和Lasso-logistic回归模型鉴别诊断肺癌与肺结核的AUC、灵敏度、特异度、准确度、约登指数分别为0.938、90.38%、87.50%、0.888、0.779和0.958、86.54%、92.19%、0.879、0.787。 结论 肿瘤标志物CA125、CEA、CYFRA21-1、NSE、SCCA检测在肺癌和肺结核鉴别诊断中具有重要临床意义,本研究构建的随机森林模型和Lasso-logistic回归模型均能很好地区分肺癌和肺结核;Lasso-logistic回归模型确定,CYFRA21-1、CEA、NSE水平和年龄是鉴别肺癌与肺结核的独立危险因素。
周游 , 陈纪飞 , 何希 , 刘爱梅 , 杨小兵 , 黄一芳 . 运用机器学习构建肺癌与肺结核鉴别诊断模型[J]. 实用医学杂志, 2026 , 42(7) : 1158 -1164 . DOI: 10.3969/j.issn.1006-5725.2026.07.006
Objective To develop a predictive model for differentiating lung cancer and pulmonary tuberculosis, machine learning methods were employed. Methods A retrospective analysis was conducted on the clinical data of 585 patients who visited Guangxi Chest Hospital from July 2020 to May 2023. The patients' ages ranged from 14 to 90 years old, with 457 males and 128 females. Based on the final clinical diagnosis results, the 585 cases were divided into the lung cancer group and the pulmonary tuberculosis group. The differences in tumor marker test results between the two groups of cases were compared. Lasso and single-factor logistic regression analysis were used to screen feature variables for differentiating lung cancer from pulmonary tuberculosis. A random forest model was constructed, and the important predictive variables were ranked. A Lasso-logistic regression model was constructed. The predictive efficacy of the random forest model and the Lasso-logistic regression model was compared through ROC curve analysis. Results The levels of serum tumor markers CA125, CEA, CYFRA21-1, NSE, and SCCA in the lung cancer group were significantly higher than those in the pulmonary tuberculosis group, showing statistically significant differences(P < 0.05). Lasso and single-factor logistic regression analysis was conducted to identify the following characteristic variables for differentiating lung cancer from pulmonary tuberculosis: sex, age, CA125, CEA, CYFRA21-1, NSE, and SCCA. A random forest model was used to rank these variables by importance as follows: CYFRA21-1, CEA, SCCA, NSE, CA125, age, and sex. The results of Lasso-logistic regression analysis indicated that the levels of CYFRA21-1, CEA, NSE, and age were independent risk factors for differentiating lung cancer from pulmonary tuberculosis(P < 0.05). The AUC, sensitivity, specificity, accuracy, and Youden index of the Random Forest model and the Lasso-logistic regression model for the differential diagnosis of lung cancer and pulmonary tuberculosis were 0.938, 90.38%, 87.50%, 0.888, 0.779 and 0.958, 86.54%, 92.19%, 0.879, 0.787, respectively. Conclusions The tumor markers CA125, CEA, CYFRA21-1, NSE, and SCCA hold significant clinical value in the differential diagnosis of lung cancer and pulmonary tuberculosis. The random forest model and Lasso-logistic regression model developed in this study can effectively discriminate between lung cancer and pulmonary tuberculosis. The Lasso - logistic regression model identified that the levels of CYFRA21-1, CEA, NSE, and age were independent risk for differentiating lung cancer from pulmonary tuberculosis.
| [1] | SUNG H, FERLAY J, SIEGEL R, et al. Global Cancer Statistics 2020: GLOBOCAN Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries[J]. CA-Cancer J Clin, 2021, 71(3): 209-249. doi: 10.3322/caac.21660 . |
| [2] | 中华医学会肿瘤学分会. 中华医学会肺癌临床诊疗指南(2024版)[J]. 中华医学杂志, 2024, 104(34): 3175-3213. doi: 10.3760/cma.j.cn112137-20240511-01092 . |
| [3] | 郑荣寿, 陈茹, 韩冰峰, 等. 2022年中国恶性肿瘤流行情况分析[J]. 中华肿瘤杂志, 2024, 46(3): 221-231. doi: 10.3760/cma.j.cn112152-20240119-00035 . |
| [4] | CHEN Z, WANG T, DU J, et al. Decoding the WHO global tuberculosis report 2024: A critical analysis of global and Chinese key data[J]. Zoonoses (Burlingt), 2025, 5(1): 1-16. doi: 10.15212/zoonoses-2024-0061 . |
| [5] | PARKER C S, SIRACUSE C G, LITLE V R. Identifying lung cancer in patients with active pulmonary tuberculosis[J]. J Thorac Dis, 2018, 10(S28): S3392-S3397. doi: 10.21037/jtd.2018.07.11 . |
| [6] | 郭成茂, 肖景兴, 王东, 等. PET/CT在肺癌诊断中的应用进展[J]. 海南医学, 2020, 31(1): 111-114. doi: 10.3969/j.issn.1003-6350.2020.01.032 . |
| [7] | 肺结核诊断W S288-2017[J]. 中国感染控制杂志, 2018, 17(7): 642-652. doi: 10.3969/j.issn.1671-9638.2018.07.019 . |
| [8] | 黄银霞, 潘丽萍, 张宗德. 结核病实验室诊断技术研究进展[J]. 北京医学, 2023, 45(10): 893-898. doi: 10.15932/j.0253-9713.2023.10.013 . |
| [9] | 杨波, 陈洋, 关静文, 等. 五项肿瘤标志物与非小细胞肺癌患者临床病理特征及预后的相关性研究[J]. 广州医科大学学报, 2023, 51(1): 40-44. doi: 10.3969/j.issn.2095-9664.2023.01.07 . |
| [10] | ZENG J, ZENG J, LIN K, et al. Development of a machine learning model to predict early recurrence for hepatocellular carcinoma after curative resection[J]. Hepatobil Surg Nutr, 2022, 11(2): 176-187. doi: 10.21037/hbsn-20-466 . |
| [11] | PERA M, GIBERT J, GIMENO M, et al. Machine learning risk prediction model of 90-day mortality after gastrectomy for cancer[J]. Ann Surg, 2022, 276(5): 776-783. doi: 10.1097/SLA.0000000000005616 . |
| [12] | 中华医学会呼吸病学分会. 早期肺癌诊断中国专家共识(2023年版)[J]. 中华结核和呼吸杂志, 2023, 46(1): 1-18. doi: 10.3760/cma.j.cn112147-20220712-00592 . |
| [13] | 李萍, 王学东, 建奇伟, 等. 血清肿瘤标志物在肺癌诊断中的价值[J]. 国际检验医学杂志, 2025, 46(13): 1586-1590, 1596. doi: 10.3969/j.issn.1673-4130.2025.13.009 . |
| [14] | 廉芳, 林翀, 李学鸿, 等. 血清肿瘤标志物在肺结核初治患者中的临床意义[J]. 中国热带医学, 2019, 19(7): 683-687. doi: 10.13604/j.cnki.46-1064/r.2019.07.20 . |
| [15] | 林梵, 张欢, 王卓才. 肿瘤标志物联合中性粒细胞/淋巴细胞比值在肺癌诊断中的应用价值[J]. 现代肿瘤医学, 2023, 31(1): 81-85. doi: 10.3969/j.issn.1672-4992.2023.01.014 . |
| [16] | HUANG Y, MA S F, OLDHAM J M, et al. Machine Learning of Plasma Proteomics Classifies Diagnosis of Interstitial Lung Disease[J]. Am J Respir Crit Care Med, 2024, 210(4): 444-454. doi: 10.1164/rccm.202309-1692OC . |
| [17] | MEI J, DESROSIERS C, FRASNELLI J. Machine Learning for the Diagnosis of Parkinson's Disease: A Review of Literature[J]. Front Aging Neurosci, 2021, 13: 633752. doi: 10.3389/fnagi.2021.633752 . |
| [18] | 吕勇峰, 王钰婧, 张乐怡, 等. 基于随机森林的冠状动脉狭窄风险识别模型[J]. 中山大学学报(医学科学版), 2025, 46(1): 138-146. doi: 10.13471/j.cnki.j.sun.yat-sen.univ(med.sci).2025.0116 . |
| [19] | NAIR S S, DEVI V N M, BHASI S. Enhanced lung cancer detection: Integrating improved random walker segmentation with artificial neural network and random forest classifier[J]. Heliyon,2024, 10(7): e29032. doi: 10.1016/j.heliyon.2024.e29032 . |
| [20] | WANG W, YUAN H, HAN J,et al.PCLassoLog: A protein complex-based, group lasso-logistic model for cancer classification and risk protein complex discovery[J]. Comput Struct Biotechnol J, 2023, 21: 365-377. doi: 10.1016/j.csbj.2022.12.005 . |
| [21] | WEI S, ZHANG H, LI H, et al. Establishment and validation of predictive model of ARDS in critically ill patients[J]. J Transl Med, 2025, 23(1): 64. doi: 10.1186/s12967-024-06054-1 . |
| [22] | DUAN Y, DU Y, MU Y, et al. Development and validation of a novel predictive model for postpancreatectomy hemorrhage using lasso-logistic regression: An international multicenter observational study of 9631 pancreatectomy patients[J]. Int J Surg, 2025, 111(1): 791-806. doi: 10.1097/JS9.0000000000001883 . |
| [23] | SIEGEL R L, KRATZER T B, GIAQUINTO A N, et al. Cancer statistics, 2025[J]. CA Cancer J Clin, 2025, 75(1): 10-45. doi: 10.3322/caac.21871 . |
| [24] | 谢惠杰, 邹红, 吴赓, 等. 血常规炎症指标联合血清肿瘤标志物在肺癌诊断中的价值分析[J]. 检验医学与临床, 2023, 20(6): 758-763. doi: 10.3969/j.issn.1672-9455.2023.06.010 . |
| [25] | 李琛, 严磊, 鲁一帆, 等. 基于列线图探讨血清学标志物在肺癌和肺结核鉴别诊断价值[J]. 临床肺科杂志, 2023, 28(1): 16-20. doi: 10.3969/j.issn.1009-6663.2023.01.004 . |
| [26] | 冀波, 沈冬花, 赵冬雪, 等. 基于logistic回归与随机森林算法构建甲状腺乳头状癌颈部淋巴结转移预测模型的对比研究[J]. 临床超声医学杂志, 2024, 26(9): 735-740. doi: 10.3969/j.issn.1008-6978.2024.09.008 . |
| [27] | TENG X, HAN K, JIN W, et al. Development and validation of an early diagnosis model for bone metastasis in non-small cell lung cancer based on serological characteristics of the bone metastasis mechanism[J]. EClinicalMedicine, 2024, 72: 102617. doi: 10.1016/j.eclinm.2024.102617 . |
/
| 〈 |
|
〉 |