Using Large Language Models to Predict Advanced Liver Fibrosis in Metabolic Dysfunction-Associated Steatotic Liver Disease (MASLD): A Proof-of-Concept Analysis

Read full text
Authors: Basile Njei, Nelvis Njei, Sarpong Boateng, Omar Al Ta'ani, Yazan Al-Ajlouni
Cited by: 1
References: 29

Abstract

BACKGROUND: Metabolic dysfunction-associated steatotic liver disease (MASLD) is a prevalent condition linked to type 2 diabetes and other metabolic risk factors. Timely detection of advanced fibrosis (≥F3) in MASLD patients is critical for effective clinical management. Traditional risk scores, such as the Fibrosis-4 Index (FIB-4) and NAFLD Fibrosis Score (NFS), have limitations, prompting the exploration of machine learning models for improved risk prediction. OBJECTIVES: This proof-of-concept study evaluates the feasibility of using large language models (LLMs), specifically GPT-4 and GPT-3.5 (OpenAI, Inc., San Francisco, United States), to predict advanced liver fibrosis in individuals with MASLD using only structured clinical variables from the National Health and Nutrition Examination Survey (NHANES). METHODS: We used NHANES 2017-2020 data, including 162 participants with MASLD. GPT-4 and GPT-3.5 were accessed via application programming interface (API) to predict fibrosis risk using variables such as age, BMI, aspartate aminotransferase (AST), alanine aminotransferase (ALT), platelet count, and HbA1c. Performance was evaluated using sensitivity, specificity, area under the receiver operating characteristic curve (AUROC), and Brier score, with model thresholds set at 40.5% for GPT-4 and 45% for GPT-3.5 based on Youden's index. RESULTS: GPT-4 achieved an AUROC of 0.91 (95% CI: 0.86-0.96), while GPT-3.5 demonstrated an AUROC of 0.90 (95% CI: 0.85-0.95). Both models showed strong calibration, with GPT-4 maintaining superior specificity (0.86 vs. 0.82). The models' performance outpaced traditional risk scores, such as FIB-4. CONCLUSIONS: GPT-based LLMs show strong potential for predicting advanced fibrosis in MASLD, offering a scalable, interpretable tool for clinical use. Further validation across diverse populations and clinical settings is needed to confirm generalizability and refine the approach before clinical adoption.

Fields of Study & Subjects

Liver Disease Diagnosis and Treatment Hepatitis C virus research Genetic Associations and Epidemiology

Publication details

Journal / source
Cureus
Publisher
Springer Science and Business Media LLC
Volume
18
Issue
2
Pages
e102777–e102777
Publication date
1 February 2026
Language
EN