Explainable Artificial Intelligence for Predicting Gastrointestinal Adverse Effects of GLP-1 Receptor Agonists
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Design
2.2. Study Population
2.3. Data Source
2.4. Data Processing
2.5. Machine Learning Model Development, Training, and Validation
2.6. Model Performance Evaluation
2.7. Features
3. Results
3.1. Characteristics of the Study Participants
3.2. Performance of ML Models for Predicting Gastrointestinal Adverse Drug Reactions
3.3. Precision–Recall Curve for Prediction of Gastrointestinal ADRs of GLP-1 RA
3.4. Explainable ML Identification of Predictors of Gastrointestinal ADRs of GLP-1 RA
4. Discussion
4.1. Strengths and Limitations of the Study
4.2. Future Directions
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ADR | Adverse Drug Reaction |
| AI | Artificial Intelligence |
| AUC | Area Under the Receiver Operating Characteristic Curve |
| BMI | Body Mass Index |
| CatBoost | Categorical Boosting |
| CD | Crohn’s Disease |
| F1-score | Harmonic Mean of Precision and Recall |
| GERD | Gastroesophageal Reflux Disease |
| GI | Gastrointestinal |
| GLP-1 RA | Glucagon-Like Peptide-1 Receptor Agonist |
| HbA1c | Hemoglobin A1c |
| IBS | Irritable Bowel Syndrome |
| LR | Logistic Regression |
| ML | Machine Learning |
| NN | Neural Network |
| NSAIDs | Nonsteroidal Anti-Inflammatory Drugs |
| PPI | Proton Pump Inhibitor |
| PR | Precision–Recall |
| RF | Random Forest |
| SHAP | SHapley Additive exPlanations |
| SVM | Support Vector Machine |
| UC | Ulcerative Colitis |
| XAI | Explainable Artificial Intelligence |
| XGBoost | Extreme Gradient Boosting |
References
- Collins, L.; Costello, R.A. Glucagon-like peptide-1 receptor agonists. In StatPearls [Internet]; StatPearls Publishing: St. Petersburg, FL, USA, 2024. [Google Scholar]
- Chiang, C.-H.; Jaroenlapnopparat, A.; Colak, S.C.; Yu, C.-C.; Xanthavanij, N.; Wang, T.-H.; See, X.Y.; Lo, S.-W.; Ko, A.; Chang, Y.-C. Glucagon-like peptide-1 receptor agonists and gastrointestinal adverse events: A systematic review and meta-analysis. Gastroenterology 2025, 169, 1268–1281. [Google Scholar] [CrossRef] [PubMed]
- Sodhi, M.; Rezaeianzadeh, R.; Kezouh, A.; Etminan, M. Risk of gastrointestinal adverse events associated with glucagon-like peptide-1 receptor agonists for weight loss. JAMA 2023, 330, 1795–1797. [Google Scholar] [CrossRef] [PubMed]
- Rodriguez, P.J.; Zhang, V.; Gratzl, S.; Do, D.; Goodwin Cartwright, B.; Baker, C.; Gluckman, T.J.; Stucky, N.; Emanuel, E.J. Discontinuation and reinitiation of dual-labeled GLP-1 receptor agonists among US adults with overweight or obesity. JAMA Netw. Open 2025, 8, e2457349. [Google Scholar] [CrossRef] [PubMed]
- Tzang, C.-C.; Wu, P.-H.; Luo, C.-A.; Chen, Z.-T.; Lee, Y.-T.; Huang, E.S.; Kang, Y.-F.; Lin, W.-C.; Tzang, B.-S.; Hsu, T.-C. Metabolic rebound after GLP-1 receptor agonist discontinuation: A systematic review and meta-analysis. eClinicalMedicine 2025, 90, 103680. [Google Scholar] [CrossRef] [PubMed]
- West, S.; Scragg, J.; Aveyard, P.; Oke, J.L.; Willis, L.; Haffner, S.J.; Knight, H.; Wang, D.; Morrow, S.; Heath, L. Weight regain after cessation of medication for weight management: Systematic review and meta-analysis. BMJ 2026, 392, e085304. [Google Scholar] [CrossRef] [PubMed]
- Xie, X.; Yang, S.; Deng, S.; Liu, Y.; Xu, Z.; He, B. Comparative gastrointestinal adverse effects of GLP-1 receptor agonists and multi-target analogs in type 2 diabetes: A Bayesian network meta-analysis. Front. Pharmacol. 2025, 16, 1613610. [Google Scholar] [CrossRef] [PubMed]
- Johnson, K.B.; Wei, W.Q.; Weeraratne, D.; Frisse, M.E.; Misulis, K.; Rhee, K.; Zhao, J.; Snowdon, J.L. Precision medicine, AI, and the future of personalized health care. Clin. Transl. Sci. 2021, 14, 86–93. [Google Scholar] [PubMed]
- Alkhanbouli, R.; Matar Abdulla Almadhaani, H.; Alhosani, F.; Simsekler, M.C.E. The role of explainable artificial intelligence in disease prediction: A systematic literature review and future research directions. BMC Med. Inform. Decis. Mak. 2025, 25, 110. [Google Scholar] [CrossRef] [PubMed]
- Sakib, S.K.; Das, A.B. Explainable vertical federated learning for healthcare: Ensuring privacy and optimal accuracy. In Proceedings of the 2024 IEEE International Conference on Big Data (BigData); IEEE: New York, NY, USA, 2024; pp. 5068–5077. [Google Scholar]
- Ismaiel, A.; Scarlata, G.G.M.; Boitos, I.; Leucuta, D.-C.; Popa, S.-L.; Al Srouji, N.; Abenavoli, L.; Dumitrascu, D.L. Gastrointestinal adverse events associated with GLP-1 RA in non-diabetic patients with overweight or obesity: A systematic review and network meta-analysis: Clinical Research. Int. J. Obes. 2025, 49, 1946–1957. [Google Scholar] [CrossRef]
- The All of Us Research Program Genomics Investigators. Genomic data in the all of us research program. Nature 2024, 627, 340–346. [Google Scholar] [CrossRef] [PubMed]
- Ramirez, A.H.; Sulieman, L.; Schlueter, D.J.; Halvorson, A.; Qian, J.; Ratsimbazafy, F.; Loperena, R.; Mayo, K.; Basford, M.; Deflaux, N. The All of Us Research Program: Data quality, utility, and diversity. Patterns 2022, 3, 100570. [Google Scholar] [CrossRef] [PubMed]
- The All of Us Research Program Investigators. The “All of Us” research program. N. Engl. J. Med. 2019, 381, 668–676. [Google Scholar] [CrossRef] [PubMed]
- Wu, J.; Chen, X.-Y.; Zhang, H.; Xiong, L.-D.; Lei, H.; Deng, S.-H. Hyperparameter optimization for machine learning models based on Bayesian optimization. J. Electron. Sci. Technol. 2019, 17, 26–40. [Google Scholar]
- Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
- Chalabianloo, N.; Ahmadi, F.; Omrani, M.A.; Abdullah, S.S.; Rostamzadeh, N.; Jafari, A.; Izzedin, L.; Sedig, K.; Muanda, F.T. Machine learning methods for predicting adverse drug events: A systematic review. Br. J. Clin. Pharmacol. 2026, 92, 422–444. [Google Scholar] [PubMed]
- Singhal, R.; Sachdeva, D.; Wortman, K., II; Lall, R. Unmasking semaglutide-induced gastroparesis: The dangers of rapid dose escalation in a diabetic patient. Cureus 2025, 17, e91679. [Google Scholar] [CrossRef] [PubMed]
- Gorgojo-Martínez, J.J.; Mezquita-Raya, P.; Carretero-Gómez, J.; Castro, A.; Cebrián-Cuenca, A.; de Torres-Sánchez, A.; García-de-Lucas, M.D.; Núñez, J.; Obaya, J.C.; Soler, M.J. Clinical recommendations to manage gastrointestinal adverse events in patients treated with Glp-1 receptor agonists: A multidisciplinary expert consensus. J. Clin. Med. 2022, 12, 145. [Google Scholar] [CrossRef] [PubMed]
- Wolff, P.; Ríos, S.A.; Gonzáles, C. Machine learning methods for predicting adverse drug reactions in hospitalized patients. Procedia Comput. Sci. 2023, 225, 22–31. [Google Scholar] [CrossRef]
- Toni, E.; Ayatollahi, H.; Abbaszadeh, R.; Fotuhi Siahpirani, A. Machine learning techniques for predicting drug-related side effects: A scoping review. Pharmaceuticals 2024, 17, 795. [Google Scholar] [CrossRef] [PubMed]
- Ajisafe, O.M.; Adekunle, Y.A.; Egbon, E.; Ogbonna, C.E.; Olawade, D.B. The role of machine learning in predictive toxicology: A review of current trends and future perspectives. Life Sci. 2025, 378, 123821. [Google Scholar] [CrossRef] [PubMed]
- Roberts-Nuttall, J.; Jones, A.M.; Castellani, M.; Pham, D. An interpretable machine learning framework for adverse drug reaction prediction from drug-target interactions. PLoS ONE 2026, 21, e0340900. [Google Scholar] [CrossRef] [PubMed]
- Noh, Y.; Yin, H.; Yu, O.H.; Bitton, A.; Azoulay, L. Glucagon-like peptide-1 receptor agonists and risk for gastroesophageal reflux disease in patients with type 2 diabetes: A population-based cohort study. Ann. Intern. Med. 2025, 178, 1268–1278. [Google Scholar] [CrossRef] [PubMed]
- Liu, B.D.; Udemba, S.C.; Liang, K.; Tarabichi, Y.; Hill, H.; Fass, R.; Song, G. Shorter-acting glucagon-like peptide-1 receptor agonists are associated with increased development of gastro-oesophageal reflux disease and its complications in patients with type 2 diabetes mellitus: A population-level retrospective matched cohort study. Gut 2024, 73, 246–254. [Google Scholar] [PubMed]
- Noguchi, Y.; Katsuno, H.; Ueno, A.; Otsubo, M.; Yoshida, A.; Kanematsu, Y.; Sugita, I.; Esaki, H.; Tachi, T.; Tsuchiya, T. Signals of gastroesophageal reflux disease caused by incretin-based drugs: A disproportionality analysis using the Japanese adverse drug event report database. J. Pharm. Health Care Sci. 2018, 4, 15. [Google Scholar] [CrossRef] [PubMed]
- Aldhaleei, W.A.; Abegaz, T.M.; Bhagavathula, A.S. Glucagon-like peptide-1 receptor agonists associated gastrointestinal adverse events: A cross-sectional analysis of the national institutes of health all of us cohort. Pharmaceuticals 2024, 17, 199. [Google Scholar] [CrossRef] [PubMed]
- Andrews, C.N.; Storr, M. The pathophysiology of chronic constipation. Can. J. Gastroenterol. Hepatol. 2011, 25, 16B–21B. [Google Scholar] [CrossRef]
- Abdalla, M.M.I. Enteric neuropathy in diabetes: Implications for gastrointestinal function. World J. Gastroenterol. 2024, 30, 2852. [Google Scholar] [CrossRef] [PubMed]
- Jalleh, R.J.; Plummer, M.P.; Marathe, C.S.; Umapathysivam, M.M.; Quast, D.R.; Rayner, C.K.; Jones, K.L.; Wu, T.; Horowitz, M.; Nauck, M.A. Clinical consequences of delayed gastric emptying with GLP-1 receptor agonists and tirzepatide. J. Clin. Endocrinol. Metab. 2025, 110, 1–15. [Google Scholar] [CrossRef]
- Shankar, A.; Sharma, A.; Vinas, A.; Chilton, R.J. GLP-1 receptor agonists and delayed gastric emptying: Implications for invasive cardiac interventions and surgery. Cardiovasc. Endocrinol. Metab. 2025, 14, e00321. [Google Scholar] [PubMed]
- Holliday, A.; Horner, K.; Johnson, K.O.; Dagbasi, A.; Crabtree, D.R. Appetite-related gut hormone responses to feeding across the life course. J. Endocr. Soc. 2025, 9, bvae223. [Google Scholar] [CrossRef] [PubMed]
- Richards, P.; Thornberry, N.A.; Pinto, S. The gut–brain axis: Identifying new therapeutic approaches for type 2 diabetes, obesity, and related disorders. Mol. Metab. 2021, 46, 101175. [Google Scholar] [CrossRef] [PubMed]
- Su, Q.J.; Ashenhurst, J.R.; Xu, W.; Tran, V.; Ryanne Wu, R.; Weldon, C.H.; Shi, J.; Hicks, B.; Abul-Husn, N.S.; Aslibekyan, S. Genetic predictors of GLP1 receptor agonist weight loss and side effects. Nature 2026, 653, 770–775. [Google Scholar] [CrossRef] [PubMed]



| Variable | No ADR (n = 3558) | ADR (n = 5139) | Total (N = 8697) | ADR (%) |
|---|---|---|---|---|
| Age (years) | 56.16 ± 12.98 | 57.36 ± 12.83 | 56.87 ± 12.91 | — |
| Gender | ||||
| Female | 2000 (23.0%) | 3376 (38.8%) | 5376 (61.8%) | 62.8 |
| Male | 1498 (17.2%) | 1679 (19.3%) | 3177 (36.5%) | 52.8 |
| Other | 60 (0.7%) | 84 (1.0%) | 144 (1.7%) | 58.3 |
| Race | ||||
| White | 2008 (23.1%) | 2730 (31.4%) | 4738 (54.5%) | 57.6 |
| Black | 668 (7.7%) | 1036 (11.9%) | 1704 (19.6%) | 60.8 |
| Asian | 88 (1.0%) | 71 (0.8%) | 159 (1.8%) | 44.7 |
| Other | 794 (9.1%) | 1302 (15.0%) | 2096 (24.1%) | 62.1 |
| Ethnicity | ||||
| Non-Hispanic | 2903 (33.4%) | 4028 (46.3%) | 6931 (79.7%) | 58.1 |
| Hispanic | 568 (6.5%) | 940 (10.8%) | 1508 (17.3%) | 62.3 |
| Other | 87 (1.0%) | 171 (2.0%) | 258 (3.0%) | 66.3 |
| Education | ||||
| College and above | 1664 (19.1%) | 1881 (21.6%) | 3545 (40.8%) | 53.1 |
| High school | 693 (8.0%) | 1283 (14.7%) | 1976 (22.7%) | 64.9 |
| No high school | 1201 (13.8%) | 1975 (22.7%) | 3176 (36.5%) | 62.2 |
| Employment (Employed) | 1531 (17.6%) | 1684 (19.4%) | 3215 (37.0%) | 52.4 |
| Income | ||||
| <25 k | 773 (8.9%) | 1473 (16.9%) | 2246 (25.8%) | 65.6 |
| 25–50 k | 566 (6.5%) | 878 (10.1%) | 1444 (16.6%) | 60.8 |
| 50–100 k | 780 (9.0%) | 1015 (11.7%) | 1795 (20.6%) | 56.5 |
| 100–200 k | 667 (7.7%) | 633 (7.3%) | 1300 (14.9%) | 48.7 |
| >200 k | 772 (8.9%) | 1140 (13.1%) | 1912 (22.0%) | 59.6 |
| Insured | 3393 (39.0%) | 4926 (56.6%) | 8319 (95.7%) | 59.2 |
| Married | 1706 (19.6%) | 2222 (25.6%) | 3928 (45.2%) | 56.6 |
| Clinical Conditions | ||||
| GERD | 822 (9.5%) | 3385 (38.9%) | 4207 (48.4%) | 80.5 |
| IBS | 56 (0.6%) | 689 (7.9%) | 745 (8.6%) | 92.5 |
| Hemorrhoids | 353 (4.1%) | 1623 (18.7%) | 1976 (22.7%) | 82.1 |
| Liver disease | 132 (1.5%) | 686 (7.9%) | 818 (9.4%) | 83.9 |
| UC | 7 (0.1%) | 74 (0.9%) | 81 (0.9%) | 91.4 |
| CD | 10 (0.1%) | 79 (0.9%) | 89 (1.0%) | 88.8 |
| Medications | ||||
| Opioid | 2827 (32.5%) | 4962 (57.1%) | 7789 (89.6%) | 63.7 |
| Anticholinergics | 783 (9.0%) | 2493 (28.7%) | 3276 (37.7%) | 76.1 |
| PPI | 1252 (14.4%) | 3834 (44.1%) | 5086 (58.5%) | 75.4 |
| NSAIDs | 1336 (15.4%) | 3172 (36.5%) | 4508 (51.8%) | 70.4 |
| Antihistamines | 1690 (19.4%) | 3973 (45.7%) | 5663 (65.1%) | 70.2 |
| Steroid | 1134 (13.0%) | 2947 (33.9%) | 4081 (46.9%) | 72.2 |
| Antidepressant | 1777 (20.4%) | 3727 (42.9%) | 5504 (63.3%) | 67.7 |
| HbA1c (%) | 7.44 ± 2.11 | 7.85 ± 2.59 | 7.68 ± 2.41 | — |
| BMI (kg/m2) | 35.87 ± 8.17 | 36.84 ± 10.07 | 36.44 ± 9.35 | — |
| Model | AUC | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|---|
| LR | 0.82 ± 0.01 | 0.74 ± 0.01 | 0.81 ± 0.01 | 0.74 ± 0.01 | 0.77 ± 0.01 |
| RF | 0.83 ± 0.01 | 0.75 ± 0.01 | 0.79 ± 0.01 | 0.79 ± 0.02 | 0.79 ± 0.01 |
| XGBoost | 0.84 ± 0.01 | 0.76 ± 0.01 | 0.79 ± 0.01 | 0.80 ± 0.02 | 0.80 ± 0.01 |
| SVM | 0.82 ± 0.01 | 0.75 ± 0.01 | 0.83 ± 0.02 | 0.73 ± 0.02 | 0.77 ± 0.01 |
| NN | 0.83 ± 0.01 | 0.75 ± 0.01 | 0.79 ± 0.01 | 0.80 ± 0.01 | 0.79 ± 0.01 |
| LightGBM | 0.83 ± 0.01 | 0.75 ± 0.01 | 0.82 ± 0.02 | 0.74 ± 0.02 | 0.78 ± 0.01 |
| CatBoost | 0.82 ± 0.01 | 0.75 ± 0.01 | 0.81 ± 0.01 | 0.74 ± 0.02 | 0.78 ± 0.01 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Abegaz, T.M.; Frietze, G.; Das, A.B. Explainable Artificial Intelligence for Predicting Gastrointestinal Adverse Effects of GLP-1 Receptor Agonists. AI Med. 2026, 1, 19. https://doi.org/10.3390/aimed1030019
Abegaz TM, Frietze G, Das AB. Explainable Artificial Intelligence for Predicting Gastrointestinal Adverse Effects of GLP-1 Receptor Agonists. AI in Medicine. 2026; 1(3):19. https://doi.org/10.3390/aimed1030019
Chicago/Turabian StyleAbegaz, Tadesse M., Gabriel Frietze, and Anindya Bijoy Das. 2026. "Explainable Artificial Intelligence for Predicting Gastrointestinal Adverse Effects of GLP-1 Receptor Agonists" AI in Medicine 1, no. 3: 19. https://doi.org/10.3390/aimed1030019
APA StyleAbegaz, T. M., Frietze, G., & Das, A. B. (2026). Explainable Artificial Intelligence for Predicting Gastrointestinal Adverse Effects of GLP-1 Receptor Agonists. AI in Medicine, 1(3), 19. https://doi.org/10.3390/aimed1030019

