Wu Linghong, Liu Zengjing, Huang Hongyuan, Pan Dongmei, Fu Cuiping, Lu Yao, Zhou Min, Huang Kaiyong, Huang TianRen, Yang Li
Department of Occupational Health and Environmental Health, School of Public Health, Guangxi Medical University, Nanning, Guangxi, 530021, China.
Medical Records Data Center, The Fourth Affiliated Hospital of Guangxi Medical University, Liuzhou, Guangxi, 545000, China.
BMC Gastroenterol. 2025 Mar 11;25(1):157. doi: 10.1186/s12876-025-03697-2.
The aim of this study was to develop and internally validate an interpretable machine learning (ML) model for predicting the risk of hepatocellular carcinoma (HCC) in patients with chronic hepatitis B (CHB) infection.
We retrospectively collected clinical data from patients with HCC and CHB treated at the Fourth Affiliated Hospital of Guangxi Medical University from January 2022 to December 2022, including demographics, comorbidities, and laboratory parameters. The datasets were randomly divided into a training set (361 cases) and a validation set (155 cases) in a 7:3 ratio. Variables were screened using Least Absolute Shrinkage and Selection Operator (LASSO) and multifactor logistic regression. The prediction model of HCC risk in CHB patients was constructed based on five machine learning models, including logistic regression (LR), K-nearest neighbour (KNN), support vector machine (SVM), random forest (RF) and artificial neural network (ANN). Receiver operating characteristic (ROC) curve, calibration curve and decision curve analysis (DCA) were used to evaluate the predictive performance of the model in terms of identification, calibration and clinical application. The SHapley Additive exPlanation (SHAP) method was used to rank the importance of the features and explain the final model.
Among the five ML models constructed, the RF model has the best performance, and the RF model predicts the risk of HCC in patients with CHB in the training set [AUC: 0.996, 95% confidence interval (CI) (0.991-0.999)] and internal validation set [AUC: 0.993, 95% CI (0.986-1.000)]. It has high AUC, specificity, sensitivity, F1 score and low Brier score. Calibration showed good agreement between observed and predicted risks. The model yielded higher positive net benefits in DCA than when all participants were considered to be at high or low risk, indicating good clinical utility. In addition, the SHAP plot of the RF showed that age, basophil/lymphocyte ratio (BLR), D-Dimer, aspartate aminotransferase/alanine aminotransferase (AST/ALT), γ-glutamyltransferase (GGT) and alpha-fetoprotein (AFP) can help identify patients with CHB who are at high or low risk of developing HCC.
ML models can be used as a tool to predict the risk of HCC in patients with CHB. The RF model has the best predictive performance and helps clinicians to identify high-risk patients and intervene early to reduce or delay the occurrence of HCC. However, the model needs to be further improved through large sample studies.
本研究的目的是开发并在内部验证一种可解释的机器学习(ML)模型,用于预测慢性乙型肝炎(CHB)感染患者发生肝细胞癌(HCC)的风险。
我们回顾性收集了2022年1月至2022年12月在广西医科大学第四附属医院接受治疗的HCC和CHB患者的临床数据,包括人口统计学信息、合并症和实验室参数。数据集以7:3的比例随机分为训练集(361例)和验证集(155例)。使用最小绝对收缩和选择算子(LASSO)和多因素逻辑回归筛选变量。基于逻辑回归(LR)、K近邻(KNN)、支持向量机(SVM)、随机森林(RF)和人工神经网络(ANN)这五种机器学习模型构建CHB患者HCC风险预测模型。采用受试者工作特征(ROC)曲线、校准曲线和决策曲线分析(DCA)从识别、校准和临床应用方面评估模型的预测性能。使用SHapley加性解释(SHAP)方法对特征的重要性进行排序并解释最终模型。
在所构建的五个ML模型中,RF模型表现最佳,RF模型在训练集[AUC:0.996,95%置信区间(CI)(0.991 - 0.999)]和内部验证集[AUC:0.993,95%CI(0.986 - 1.000)]中预测CHB患者发生HCC的风险。它具有较高的AUC、特异性、敏感性、F1得分和较低的Brier得分。校准显示观察到的风险与预测风险之间具有良好的一致性。在DCA中,该模型产生的阳性净效益高于将所有参与者视为高风险或低风险时的情况,表明具有良好的临床实用性。此外,RF的SHAP图显示年龄、嗜碱性粒细胞/淋巴细胞比值(BLR)、D - 二聚体、天冬氨酸转氨酶/丙氨酸转氨酶(AST/ALT)、γ - 谷氨酰转移酶(GGT)和甲胎蛋白(AFP)有助于识别CHB患者中发生HCC高风险或低风险的患者。
ML模型可作为预测CHB患者发生HCC风险的工具。RF模型具有最佳的预测性能,有助于临床医生识别高风险患者并早期干预,以减少或延迟HCC的发生。然而,该模型需要通过大样本研究进一步改进。