Development and validation of an interpretable machine learning model for predicting the risk of hepatocellular carcinoma in patients with chronic hepatitis B: a case-control study.

IF 2.5 3区 医学 Q2 GASTROENTEROLOGY & HEPATOLOGY
Linghong Wu, Zengjing Liu, Hongyuan Huang, Dongmei Pan, Cuiping Fu, Yao Lu, Min Zhou, Kaiyong Huang, TianRen Huang, Li Yang
{"title":"Development and validation of an interpretable machine learning model for predicting the risk of hepatocellular carcinoma in patients with chronic hepatitis B: a case-control study.","authors":"Linghong Wu, Zengjing Liu, Hongyuan Huang, Dongmei Pan, Cuiping Fu, Yao Lu, Min Zhou, Kaiyong Huang, TianRen Huang, Li Yang","doi":"10.1186/s12876-025-03697-2","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>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.</p><p><strong>Methods: </strong>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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusion: </strong>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.</p>","PeriodicalId":9129,"journal":{"name":"BMC Gastroenterology","volume":"25 1","pages":"157"},"PeriodicalIF":2.5000,"publicationDate":"2025-03-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11899164/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"BMC Gastroenterology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1186/s12876-025-03697-2","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"GASTROENTEROLOGY & HEPATOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Background: 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.

Methods: 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.

Results: 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.

Conclusion: 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)和多因素逻辑回归筛选变量。基于logistic回归(LR)、k近邻(KNN)、支持向量机(SVM)、随机森林(RF)和人工神经网络(ANN)等5种机器学习模型构建CHB患者HCC风险预测模型。采用受试者工作特征(ROC)曲线、校准曲线和决策曲线分析(DCA)对模型在识别、校准和临床应用方面的预测性能进行评价。使用SHapley加性解释(SHAP)方法对特征的重要性进行排序并解释最终模型。结果:在构建的5个ML模型中,RF模型表现最好,在训练集[AUC: 0.996, 95%可信区间(CI)(0.991-0.999)]和内部验证集[AUC: 0.993, 95% CI(0.986-1.000)]中,RF模型预测CHB患者发生HCC的风险。AUC高,特异度高,灵敏度高,F1评分高,Brier评分低。校正显示观察到的风险和预测的风险之间有很好的一致性。与所有参与者被认为处于高风险或低风险时相比,该模型在DCA中产生了更高的正净效益,表明良好的临床效用。此外,RF的SHAP图显示,年龄、嗜碱性粒细胞/淋巴细胞比值(BLR)、d -二聚体、天冬氨酸转氨酶/丙氨酸转氨酶(AST/ALT)、γ-谷氨酰转移酶(GGT)和甲胎蛋白(AFP)可以帮助识别CHB患者发生HCC的高风险或低风险。结论:ML模型可作为预测慢性乙型肝炎患者发生HCC风险的工具。RF模型具有最好的预测性能,可以帮助临床医生识别高危患者,早期干预,减少或延缓HCC的发生。然而,该模型需要通过大样本研究进一步完善。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
BMC Gastroenterology
BMC Gastroenterology 医学-胃肠肝病学
CiteScore
4.20
自引率
0.00%
发文量
465
审稿时长
6 months
期刊介绍: BMC Gastroenterology is an open access, peer-reviewed journal that considers articles on all aspects of the prevention, diagnosis and management of gastrointestinal and hepatobiliary disorders, as well as related molecular genetics, pathophysiology, and epidemiology.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信