Predicting non-alcoholic fatty liver disease (NAFLD) using machine learning algorithms: Evidence from a large-scale community cohort in Taiwan
Closely associated with metabolic disorders, non-alcoholic fatty liver disease (NAFLD) substantially increases the risk of hepatocellular carcinoma. This study aimed to apply machine learning (ML) algorithms to a community-based cohort in southern Taiwan to identify key risk factors for NAFLD and to develop predictive models with clinical applicability. Data were derived from community health examinations, and eighteen clinical and demographic features were analyzed. Five ML algorithms were evaluated: logistic regression (LR), random forest (RF), K-nearest neighbors (KNN), adaptive boosting (AdaBoost), and extreme gradient boosting (XGBoost). Model performance was assessed using accuracy, precision, recall, F1 score, and area under the receiver operating characteristic curve (AUROC). A total of 7,510 participants were included (38.8% male; mean age 50.9 ± 15.0 years). The dataset was randomly divided into training (80%) and testing (20%) subsets, with no significant differences observed between groups in most independent variables. The Synthetic Minority Over-sampling Technique (SMOTE) was employed to balance NAFLD and non-NAFLD groups in the training dataset. Among all models, XGBoost achieved the highest performance, with an accuracy of 83.48%, precision of 84.31%, recall of 81.21%, F1 score of 82.72%, and AUROC of 92.85%. Feature importance analysis identified low-density lipoprotein cholesterol (LDL-C), body mass index (BMI), waist circumference, fasting plasma glucose (FPG), and triglycerides (TG) as the most influential predictors of NAFLD. ML algorithms, particularly XGBoost, demonstrated high accuracy in predicting NAFLD and effectively identified key clinical predictors. These findings may enhance early diagnosis and facilitate the development of targeted intervention strategies in the management of NAFLD.
Authors
- Chun‐Yao Huang (ORCID: https://orcid.org/0000-0002-8978-7879)
- Chih‐Wen Wang (ORCID: https://orcid.org/0000-0002-4720-599X)
- Huang Jee-Fu
- Yu-Ju Wei
- Wan-Long Chuang
- Hsieh My
- Po-Cheng Liang
- Chih-Wen Wang
- Hon-Yi Shi
- Yi-Hung Lin
- Chia-Yen Dai
- Ming-Lung Yu
- Pei-Chien Tsai
- Ming-Lun Yeh
- Zu-Yau Lin
- Tzu-Chun Lin
Institutions
- National Sun Yat-sen University (TW)
- Kaohsiung Medical University (TW)
- National Pingtung University of Science and Technology (TW)
- China Medical University (TW)
- Kaohsiung Medical University Chung-Ho Memorial Hospital (TW)
- Ministry of Health and Welfare (TW)
- China Medical University Hospital (TW)
Publication Details
- Journal
- BioScience Trends
- Published
- 2026-02-26
- DOI
- https://doi.org/10.5582/bst.2025.01323
- Primary Topic
- Liver Disease Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Sun Yat-sen University
- National Pingtung University of Science and Technology
- National Science Council
- Sun Yat-sen University
- Kaohsiung Medical University
- Kaohsiung Medical University Chung-Ho Memorial Hospital
- Taiwan Liver Research Foundation
- National Science and Technology Council