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
Open Access
- 11 March 2025
- journal article
- research article
- Published by Springer Nature in BMC Gastroenterology
- Vol. 25 (1) , 157
Abstract
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.Keywords
Funding Information
- Guangxi Zhuang Autonomous Region Health and Family Planning Commission self-funded research project (Z20210032)
This publication has 54 references indexed in Scilit:
- Comprehensing the role of serum GGT in colorectal carcinoma: cancer risk, prognostic and diagnostic significanceClinical and Translational Oncology, 2024
- An Insight Into the Role of Alpha-Fetoprotein (AFP) in the Development and Progression of Hepatocellular CarcinomaMolecular Biotechnology, 2023
- Repeat hepatectomy versus percutaneous ablation for recurrent hepatocellular carcinoma: emphasis on the impact of early or late recurrenceJournal of Cancer Research and Clinical Oncology, 2023
- Untargeted plasma metabolomics for risk prediction of hepatocellular carcinoma: A prospective study in two Chinese cohortsInternational Journal of Cancer, 2022
- Development of a Machine Learning Model Using Electronic Health Record Data to Identify Antibiotic Use Among Hospitalized PatientsJAMA Network Open, 2021
- Prognostic value of preoperative carcinoembryonic antigen and D-dimer concentrations in patients undergoing curative resection for colorectal cancerSurgery Today, 2021
- Cost effectiveness of regorafenib as second‐line therapy for patients with advanced hepatocellular carcinomaCancer, 2017
- World‐wide relative contribution of hepatitis B and C viruses in hepatocellular carcinomaHepatology, 2015
- γ‐Glutamyltransferase and cancer risk: The Korean cancer prevention studyInternational Journal of Cancer, 2015
- Joint effects of coffee consumption and serum gamma‐glutamyltransferase on the risk of liver cancer†Hepatology, 2008