BPG is committed to discovery and dissemination of knowledge
Retrospective Study
Copyright: ©Author(s) 2026.
World J Gastroenterol. Jan 28, 2027; 33(4): 123515
Published online Jan 28, 2027. doi: 10.3748/wjg.123515
Figure 1
Figure 1 Design of machine learning algorithms. Overview of the machine learning pipeline used to predict primary biliary cholangitis and primary sclerosing cholangitis. Clinical variables and environmental exposome features were integrated as input variables. After data preprocessing and feature selection, the dataset was divided into training and testing sets. Multiple machine learning algorithms, including random forest and eXtreme Gradient Boosting, were applied to develop prediction models, and model performance was evaluated using standard classification metrics. PBC: Primary biliary cholangitis; PSC: Primary sclerosing cholangitis; RF: Random forest; XGBoost: EXtreme Gradient Boosting.
Figure 2
Figure 2 Flowchart of the study cohorts. The primary biliary cholangitis and primary sclerosing cholangitis cohorts were selected by review of the electronic health record of patients who received care at Mayo Clinic. All patients met diagnostic criteria defined by the American Association for the Study of Liver Diseases and the European Association for the Study of the Liver. Diagnosis was confirmed by: (1) Biochemical evidence of cholestasis lasting at least six months; (2) Positive antimitochondrial antibody with compatible histology for primary biliary cholangitis or characteristic cholangiographic or histologic findings for primary sclerosing cholangitis; and (3) Exclusion of secondary causes of cholestasis. Controls were selected from the same source population without a history of primary biliary cholangitis, primary sclerosing cholangitis, or other chronic liver disease. Standard exclusion criteria were applied, including inability to provide informed consent, incarceration, data inconsistencies, and selected medical conditions among controls. PBC: Primary biliary cholangitis; PSC: Primary sclerosing cholangitis.
Figure 3
Figure 3 Receiver operating characteristic curves for primary biliary cholangitis and primary sclerosing cholangitis. Receiver operating characteristic curves illustrating the performance of machine learning models in predicting primary biliary cholangitis (PBC) and primary sclerosing cholangitis (PSC). Model discrimination was evaluated using the area under the curve. The curves demonstrate the predictive performance of models incorporating both clinical variables and environmental exposure features. Panels represent the following models: A: Random forest for PBC; B: EXtreme Gradient Boosting (XGBoost) for PBC; C: Random forest for PSC; D: XGBoost for PSC. AUC: Area under the curve.
Figure 4
Figure 4 SHapley Additive exPlanations value for primary biliary cholangitis. SHapley Additive exPlanations (SHAP) analysis illustrating the relative contribution of environmental and clinical features to the prediction models for primary biliary cholangitis (PBC). Each point represents the SHAP value for an individual observation. The X-axis shows the SHAP value, representing the contribution of that feature to the predicted probability of PBC for that patient. Positive SHAP values increase the predicted probability of PBC, whereas negative SHAP values decrease it. Dot color represents the original feature value, with red indicating higher values and blue indicating lower values. Blue does not indicate a negative effect by itself; the direction of contribution is determined by the dot’s position on the X-axis. Features are ranked by mean absolute SHAP value, reflecting their overall contribution to model predictions across the cohort. PBC: Primary biliary cholangitis; XGBoost: EXtreme Gradient Boosting; SHAP: SHapley Additive exPlanations; AST: Aspartate aminotransferase; ALP: Alkaline phosphatase; LDL: Low density lipoprotein; MCV: Mean corpuscular volume; PM: Particulate matter; SO2: Sulfur dioxide; NO2: Nitrogen dioxide; CO: Carbon monoxide.
Figure 5
Figure 5 SHapley Additive exPlanations value for primary sclerosing cholangitis. SHapley Additive exPlanations (SHAP) analysis illustrating the relative contribution of environmental and clinical features to the prediction models for primary sclerosing cholangitis (PSC). Each point represents the SHAP value for an individual observation. The X-axis shows the SHAP value, representing the contribution of that feature to the predicted probability of PSC for that patient. Positive SHAP values increase the predicted probability of PSC, whereas negative SHAP values decrease it. Dot color represents the original feature value, with red indicating higher values and blue indicating lower values. Blue does not indicate a negative effect by itself; the direction of contribution is determined by the dot’s position on the X-axis. Features are ranked by mean absolute SHAP value, reflecting their overall contribution to model predictions across the cohort. XGBoost: EXtreme Gradient Boosting; SHAP: SHapley Additive exPlanations; PSC: Primary sclerosing cholangitis; O3: Ozone; PM: Particulate matter; SO2: Sulfur dioxide; CO: Carbon monoxide; NO2: Nitrogen dioxide; AST: Aspartate aminotransferase; ALK: Anaplastic lymphoma kinase; RDW: Red cell distribution width.


Write to the Help Desk