Abstract
Hepatocellular carcinoma (HCC) frequently coexists with portal hypertension, significantly increasing the risk of hepatic decompensation (HD) and variceal bleeding during systemic therapy. We developed a machine learning based hepatic safety score (MHSS) using data from 2026 patients with unresectable HCC to predict clinically significant portal hypertension (CSPH) and prognosis. A random forest model was trained in a derivation cohort (n = 1262) and validated in an independent cohort (n = 764). The MHSS demonstrated robust performance (AUROC 0.840) in CSPH and predicting HD. Stratification revealed that high MHSS patients faced significantly elevated risks of HD (HR 3.25), variceal bleeding (VB, HR 4.90), and mortality (HR 2.21). Crucially, while atezolizumab-bevacizumab offered a survival advantage in low MHSS patients, it was associated with high bleeding risk and no survival benefit in the high MHSS group compared to other regimens. A simulation of MHSS guided treatment selection demonstrated a 24% reduction in HD, a 40% reduction in VB, and a 26% reduction in mortality. In conclusion, the MHSS effectively predicts CSPH, decompensation, and survival in patients with HCC prior to systemic therapy. By enabling individualized risk stratification, the MHSS may guide personalized treatment selection between bevacizumab-containing and alternative regimens, ultimately improving patient outcomes. Clinical trial number: not applicable.
Acknowledgements
This research was supported by the Korea Health Technology R&D Project through the Korea Health Industry Development Institute (KHIDI), funded by the Ministry of Health & Welfare, Republic of Korea (grant number RS-2024-00406716 to J.W.H.).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Han, J.W., Lee, J., Yang, K. et al. Machine learning based hepatic safety score predicts decompensation in hepatocellular carcinoma systemic therapy. npj Digit. Med. (2026). https://doi.org/10.1038/s41746-026-02802-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41746-026-02802-3