Construction of a predictive model for severe hypertriglyceridemia-associated acute pancreatitis using machine learning
Shichuan Feng1, Guangzhu Wang1, Ying Zhou1
1Department of General Practice, Hanzhong Central Hospital Hanzhong 723000, Shaanxi, China.
Objective:
To identify critical risk factors distinguishing severe hypertriglyceridemia-associated acute pancreatitis (SAP-HTG) from its non-severe form (N-SAP-HTG). Machine learning techniques were used to develop predictive models and compare them to conventional scoring systems, aiming to enhance early diagnosis and risk stratification of SAP-HTG.
Methods:
A retrospective analysis was conducted on 514 patients with acute pancreatitis admitted to HanZhong Central Hospital between August 2018 and June 2024, including 90 SAP-HTG and 424 N-SAP-HTG cases. Key baseline characteristics, scoring indices (APACHE II, Ranson), and laboratory data (fasting blood glucose (FBG), triglycerides (TG), C-reactive protein (CRP)) were collected. LASSO regression was used to identify key predictors, and multivariate logistic regression was applied to assess their associations. Four predictive models - logistic regression, random forest (RF), support vector machine (SVM), and XGBoost - were developed. Model performance was evaluated using the confusion matrix, receiver operating characteristic (ROC) curves, area under the curve (AUC), and SHAP analysis, with comparisons to APACHE II and Ranson scores. Statistical analyses were conducted with SPSS 26.0 and R 4.3.3.
Results:
Nine predictors were identified: age, diabetes history, FBG, TyG index, amylase (AMY), TG, total cholesterol (TC), CRP, and Ca2+. CRP (OR = 8.787, P < 0.001) and TG (OR = 7.548, P < 0.001) were significant risk factors, whereas Ca2+ and age were protective (OR = 0.258 and 0.290, respectively). Among the models, XGBoost and RF achieved the highest discriminatory power, with AUCs of 0.959 and 0.955, surpassing logistic regression (0.924), SVM (0.926), and traditional scoring systems (P < 0.002). SHAP analysis revealed CRP, TG, and TyG index as the most influential factors.
Conclusion:
Machine learning models effectively identified SAP-HTG risk factors, with XGBoost showing superior performance over conventional scoring systems. These models provide a valuable tool for early diagnosis and risk stratification of SAP-HTG in clinical settings.
Related Concept Videos
Acute Pancreatitis II: Clinical Manifestations and Management
Acute Pancreatitis I: Introduction
Acute pancreatitis is characterized by rapid inflammation of the pancreas, often caused by factors like gallstone blockage or excessive alcohol consumption. Chronic pancreatitis, on the other hand, is a slow, progressive inflammation that may result from long-term alcohol abuse, obstructions in the pancreatic duct, or genetic factors.
The causes of acute pancreatitis include:
Chronic Pancreatitis II: Collaborative Care
Assessment:
Chronic Pancreatitis I: Introduction
Pancreatitis is the inflammation of the pancreas, which occurs when the immune system becomes active and causes swelling, pain, and disruptions in organ function. Pancreatitis can manifest as either an acute or chronic condition.
Acute pancreatitis arises suddenly and lasts for a brief duration, while chronic pancreatitis is a long-term affliction...


