Skip to content
Open access

Interpretable and explainable predictive machine learning models for gastric retention before gastroscopy

Aug 2026 · Frontiers in Medicine · Vol 13 · 1 citation · 34 references
Medicine

TL;DR

This study establishes an interpretable GR risk stratification model using routinely available preoperative variables that may serve as an auxiliary screening aid for pre-gastroscopy risk assessment.

Abstract

Background Early detection of gastric retention (GR) is challenging in clinical practice. We aimed to develop and validate interpretable machine learning (ML) models for predicting GR risk using routinely available clinical features. Methods This retrospective study enrolled 3,233 consecutive patients (training cohort: n = 2,263; validation cohort: n = 970) who underwent gastroscopy between January 2022 and December 2024. To address class imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) was applied prior to model development. Optimal features were selected via least absolute shrinkage and selection operator (LASSO) regression within the SMOTE-enhanced training cohort, with different predictive models constructed using nine machine learning (ML) algorithms. Ten-fold cross-validation on SMOTE-enhanced training cohort was used for hyperparameter tuning. Model performance was primarily assessed on the validation cohort using the area under the receiver operating characteristic curve (AUC), calibration plots, and decision curve analysis (DCA). Results LASSO regression identified 12 clinically actionable predictors from 19 candidate variables, which were subsequently used to develop nine ML models. Among these models, the extreme gradient boosting (XGBoost) model achieved the highest AUC value of 0.710 (95% CI: 0.681–0.738) in the validation cohort. Decision curve analysis revealed that the XGBoost model exhibited superior clinical utility compared to other models. Shapley Additive Explanations (SHAP) identified the use of anticholinergic drugs, pyloric obstruction, analgesic use, systemic diseases, and a history of gastrointestinal surgery as the top five important predictive features. Conclusions This study establishes an interpretable GR risk stratification model using routinely available preoperative variables. The model may serve as an auxiliary screening aid for pre-gastroscopy risk assessment.

Read PDF

Similar papers

Open access Sep 2026

Performance comparison of different machine learning models to predict the risk of postcraniotomy nausea and vomiting: a retrospective study

LightGBM shows the best overall performance for risk stratification of PONV after craniotomy, and SHAP visualization endows the model with favorable clinical interpretability to facilitate individualized risk prediction.

Ling-Yi Wu, Hong-Ying Pan, Yi-Hong Xu et al. · 0 citations
Open access Sep 2026

Interpretable Machine Learning Models Based on Blood Cell-Derived Inflammatory Indices for Identifying Colorectal Neoplasia: A Retrospective Study

Purpose Noninvasive approaches for the risk assessment of colorectal neoplasia remain limited, particularly in terms of interpretability and clinical applicability. This study aimed to develop and validate interpretable machine learning models using blood cell-derived inflammatory indices to identify colorectal adenoma...

Xin-Yao Zeng, Zong-Shou Li, Lu-Lu Cai et al. · 0 citations
Open access Oct 2026

Development and internal validation of a predictive model for clinical deterioration in newly diagnosed lung cancer patients based on interpretable machine learning

Objective To develop and validate an interpretable machine learning–based model for the early identification of the risk of clinical deterioration during hospitalization in newly diagnosed lung cancer patients. Methods Clinical data of patients with newly diagnosed lung cancer admitted between July 2023 and December 20...

Hui-Ling Li, Yin Li, Xiao-Min Huang et al. · 0 citations
Open access Aug 2026

Development and validation of an explainable XGBoost model for early mortality prediction in pediatric sepsis

Objective To develop and internally validate an explainable machine learning model for early mortality prediction in pediatric sepsis using routinely available clinical variables, to support clinical risk stratification and decision-making. Methods A total of 752 children with sepsis admitted to the Pediatric Intensive...

Hong-Mei Chen, Li-Nong Wang, Yan-Bing Fu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.