AI-based prediction of gallstone formation after bariatric surgery: insights into BMI thresholds and metabolic risk profiles
Özlem Beydaş, Gülsüm Arı, Abdullah K. Zengin, Pelin Şengüder, Melissa S. Duran, Ahmet M. DobrucalıBackground:
Gallstone formation is a common postoperative outcome of bariatric surgery, influenced by factors beyond weight loss, such as lipid metabolism and metabolic status. This study aimed to identify predictos of clinically detected postoperative cholelithiasis and develop an artificial intelligence (AI) model integrating clinical and biochemical data.
Methods:
This retrospective study included 383 patients who underwent sleeve gastrectomy, Roux-en-Y gastric bypass, or one-anastomosis gastric bypass between May 2016 and April 2025. Patients with prior or concomitant cholecystectomy were excluded. Clinical, anthropometric, and laboratory parameters were analyzed. Eleven machine learning algorithms were compared, and SHapley Additive exPlanations (SHAP) analysis was used for model explainability and cut-off determination. An additional leakage-free sensitivity analysis was performed using an untouched test set consisting exclusively of original patient records.
Results:
Clinically detected postoperative cholelithiasis was diagnosed in 67 patients (17.5%). Preoperative body mass index (BMI) was higher in patients who developed gallstones (
Conclusion:
Gallstone formation after bariatric surgery appears to be influenced by both weight-loss dynamics and metabolic complexity. A postoperative BMI > 26.2 kg/m 2 with elevated triglycerides identifies an exploratory high-risk profile, and the AI model provides an exploratory framework for personalized risk stratification.