631
Views
0
CrossRef citations to date
0
Altmetric
Gastroenterology

A convenient machine learning model to predict full stomach and evaluate the safety and comfort improvements of preoperative oral carbohydrate in patients undergoing elective painless gastrointestinal endoscopy

, , , , , , , , , , & show all
Article: 2292778 | Received 30 Jun 2023, Accepted 04 Dec 2023, Published online: 18 Dec 2023

Abstract

Background and aims

Assessment of the patient’s gastric contents is the key to avoiding aspiration incidents, however, there is no effective method to determine whether elective painless gastrointestinal endoscopy (GIE) patients have a full stomach or an empty stomach. And previous studies have shown that preoperative oral carbohydrates (POCs) can improve the discomfort induced by fasting, but there are different perspectives on their safety. This study aimed to develop a convenient, accurate machine learning (ML) model to predict full stomach. And based on the model outcomes, evaluate the safety and comfort improvements of POCs in empty- and full stomach groups.

Methods

We enrolled 1386 painless GIE patients between October 2022 and January 2023 in Nanjing First Hospital, and 1090 patients without POCs were used to construct five different ML models to identify full stomach. The metrics of discrimination and calibration validated the robustness of the models. For the best-performance model, we further interpreted it through SHapley Additive exPlanations (SHAP) and constructed a web calculator to facilitate clinical use. We evaluated the safety and comfort improvements of POCs by propensity score matching (PSM) in the two groups, respectively.

Results

Random Forest (RF) model showed the greatest discrimination with the area under the receiver operating characteristic curve (AUROC) 0.837 [95% confidence interval (CI): 79.1–88.2], F1 71.5%, and best calibration with a Brier score of 15.2%. The web calculator can be visited at https://medication.shinyapps.io/RF_model/. PSM results demonstrated that POCs significantly reduced the full stomach incident in empty stomach group (p < 0.05), but no differences in full stomach group (p > 0.05). Comfort improved in both groups and was more significant in empty stomach group.

Conclusions

The developed convenient RF model predicted full stomach with high accuracy and interpretability. POCs were safe and comfortably improved in both groups, with more benefit in empty stomach group. These findings may guide the patients’ gastrointestinal preparation.

KEY MESSAGES

  • This study is the first model utilizing advanced ML techniques based on multiple clinical variables to identify full stomach. The model is suitable for patient-rich outpatient clinics, primary hospitals, remote regions, and specific clinical settings where POCUS is not available.

  • The developed convenient RF model predicted full stomach with high accuracy and interpretability. The test cohort AUROC was 0.837. We further established an online accessible individualized risk calculator and provided waterfall plots to increase the interpretability of each prediction.

  • The propensity score matching (PSM) showed that preoperative oral carbohydrate (POCs) were safe and comfortably improved in both groups, with more benefit in empty stomach group. These findings may provide information for anesthesiologists to guide patients on POCs.

Introduction

Gastrointestinal endoscopy (GIE) is the gold standard for screening many gastrointestinal diseases, and for better tolerance, most GIE procedures are sedated [Citation1–4]. Increased gastric contents may lead to pulmonary aspiration during sedation, the single most common cause of death associated with airway management [Citation5]. Aspiration mostly occurs in emergency cases, and empty stomach can be achieved by fasting in elective surgical patients [Citation6]. However, fasting is not completely reliable, especially when patients with delayed gastric emptying diseases may still be full despite fasting [Citation7]. It has been reported that the incidence of full stomach in routinely fasted elective patients is 33.7% [Citation8]. Therefore, it is necessary to identify the full stomach ahead of GIE sedation, which is the key to avoiding aspiration incidents.

Gastric point-of-care ultrasound (POCUS) is a practical imaging method for describing gastric contents and volume [Citation9]. Perlas et al. proposed a POCUS-based 3-point grading system for semi-quantitative assessment of gastric contents, and it was validated in later studies [Citation10,Citation11]. Several linear models based on the antral cross-sectional area (CSA) were developed to assess gastric fluid volume quantitatively [Citation8,Citation12–14]. However, they are limited in efficiency and require POCUS devices and skilled operators, making them difficult to popularize in patient-rich outpatient clinics, especially in primary hospitals and remote regions. And these studies were only based on traditional linear analysis methods, which have room for improvement in accuracy [Citation15]. In addition, these studies did not adequately investigate the patients’ clinical information and medical history, and substantial GIE patients combined these risk factors and presented with delayed gastric emptying [Citation7,Citation16].

In contrast, machine learning (ML) algorithms, part of artificial intelligence, are based on advanced statistical techniques to unravel the complex relationships between numerous variables and can make predictions as accurately and quickly as possible, relying on large amounts of data [Citation17]. ML models have been increasingly mentioned in personalized medicine, including the diagnosis and risk prediction of gastrointestinal diseases [Citation18,Citation19]. Its convenience and accuracy may help to overcome the limitations of POCUS. Therefore, we build an ML model to discriminate patients with empty- or full stomachs.

In addition, current gastric contents assessment methods [Citation8,Citation10–14] focus only on immediate outcomes and do not guide patients’ gastrointestinal preparation. As a new paradigm of preoperative gastrointestinal preparation, preoperative oral carbohydrates (POCs) can improve the discomfort induced by fasting, but there are different perspectives on the risk of full stomach. Some studies showed that POCs do not increase or even decrease the patient’s gastric fluid volume [Citation20–22]. Most recent practice guidelines also recommend that healthy patients take clear liquids two hours before surgery to relieve discomfort caused by excessive fasting [Citation23,Citation24]. However, a study has shown that POCs 2h before surgery in cirrhotic patients may increase the risk of regurgitation [Citation25]. Therefore, with the model outcomes, evaluating the safety and comfort improvement of POCs in different stomach risk groups could guide patients in using POCs.

In this study, we aim to develop the most convenient ML model to predict full stomach in the Chinese elective GIE cohort and evaluate patients’ safety and comfort improvements after POCs. We are dedicated to accurate prediction outcomes that will prompt anesthesiologists to pay close attention to the full stomach patients and precise the patients’ gastrointestinal preparation.

Methods

Study subjects

The study protocol complies with the declaration of Helsinki and received approval from the Nanjing First Hospital medical ethics (No. KY20220518-05-KS-01). The requirements for informed consent were waived by the ethics committee as the study was retrospective. This study follows the TRIPOD guidelines for the prediction model [Citation26].

The study was performed in Nanjing First Hospital, China. Between October 2022 and January 2023, all GIE patients who satisfied the painless GIE standard procedure requirements were prospectively recruited in this endoscopy institution, and we retrospectively collected the records of these consecutive GIE patients from the electronic medical system. In our research, the inclusion criteria were as follows: (1) patients were adults (age 18 years old or older); (2) American Society of Anesthesiologists physical status (ASA PS) I, II, III. Those who satisfied painless GIE procedure requirements would be adequately informed of the fasting requirements, including the reasons to fast for at least 8 h and refrain from drinking for at least 4 h. Patients undergoing painless colonoscopy or with missing data (including POCUS data or Visual Analogue Scale (VAS) score) were excluded from the analysis.

Data collection

In this research, we provided POCs according to the clinical diagnostic procedure, patients were in the POCs group if they used POCs before anesthesia and in the non-POCs group if they did not. GIE patients who received POCs were in the POCs group, and those without POCs were in the control group. The control group was divided into training and testing cohorts to construct and validate the model of predicting ‘full stomach’. For the POCs group, patients should drink 200 ml of 12.5% carbohydrate until 3 h before the elective painless GIE procedure. For the control group, patients would be completely fast.

All clinical data, POCUS information, and VAS score were collected by experienced researchers using a structured form. Potential predictors of full stomach were chosen from the previous studies, including basic characteristics (Age, BMI, Gender, Drinking, Smoking), preoperative management data (Fasting time, No drinking time, Preoperative diet), clinical information (Asthma, Parkinson’s disease, Coronary heart disease, Hypertension, Cirrhosis, Chronic kidney disease, Hypothyroidism, Diabetes, Neurological complications, Cerebral infarction, Sequelae of cerebral infarction, Neuromuscular disease, Gastroesophageal reflux disease (GERD), Peptic ulcer), surgical operation information (endoscopy type and history of gastrointestinal surgery). POCUS information was acquired by measuring two gastric antrum diameters (D1: the craniocaudal diameter, D2: the anteroposterior diameter) from serosa to serosa in two positions (supine and right lateral decubitus (RLD) position). VAS score which includes six items (including thirst, hunger, mouth dryness, nausea, vomiting, and fatigue score) and each item is scored on an 11-point scale (range 0–10, scores closer to 10 indicating the patient is more distressed) were collected to evaluate the psychological influence of the oral carbohydrate of the patients before GIE procedures.

Outcome

Observing gastric contents under direct gastroscopic visualization, we hypothesized that there are two states of outcome: when the gastric contents contain solids or the gastric fluid volume aspirated by gastroscopy ≥0.4 ml·kg−1, the patient is classified as full stomach, otherwise, it is considered as empty stomach. In this study, the outcome was positive when the patient was full stomach, otherwise, the outcome was negative when the patient was empty stomach.

POCUS, anesthesia method and GIE procedure

When patients enter the preoperative preparation room, patients need to accept an open right-upper limb venous pathway. An ultrasound device (SonoSite Edge) fitted with an abdominal probe (2–5 MHz) was used for the POCUS. Before the anesthesia administration, POCUS would be conducted by a trained, experienced sonographer following a standardized gastric scanning protocol. Each patient was scanned in the supine position followed by the RLD position. In both positions, three still images of the antrum were got at rest (between peristaltic contractions). And scanned items include 3-point antrum grade [Citation10] and two antrum diameters (D1 and D2). Patients were classified as follows: grade 0: the antrum appeared empty on both supine and right lateral decubitus positions; grade 1: gastric fluid was visible on the right lateral decubitus position only, suggesting a small to moderate fluid volume; and grade 2: gastric fluid was observed in the antrum in both supine and right lateral decubitus, suggesting a larger fluid volume. Only patients with grade 0 or 1 antrum can be directly performed the GIE procedure, while those with grade 2 antrum should continue waiting.

In the endoscopy room, patients who satisfied the GIE procedure were transitioned from the RLD position to the left lateral decubitus position, connected to an anesthesia monitor to monitor pulse oximeter oxygen saturation (SpO2), electrocardiogram, and blood pressure (BP) of the left upper limb. Patients were given nasal catheter oxygen inhalation, maintaining an oxygen flow rate of 3–5 L min−1 for 3 min. In the process of anesthesia induction, patients received an intravenous injection of remifentanil 0.2 μg kg−1, then an intravenous injection of propofol 1–2mg kg−1 until the MOAA/S score ≤2. The gastric fluid volume was suctioned under gastroscopic vision, measured accurately to ml, and recorded. If patients in this process occur body movement, it is need to append propofol of 30–50mg under the GIE procedure. After the GIE procedure, patients were transferred to the post-anesthesia care unit when their MOAA/S score was ≥4.

Data processing

First, to prevent the data leakage problem, we divided the control group into a training cohort and a testing cohort with a ratio of 7:3. In this study, ‘data leakage problem’ referred to a narrow ‘data leakage problem’, particularly referring to the problem of ‘train-test contamination’. For example, due to incorrect handling of the relationship between training and testing data in the data preprocessing, the model showed over-optimistic performance in the model validation but showed poor generalization ability when used for new datasets [Citation27,Citation28].

Training cohort was used to construct prediction models and tune hyper-parameters. And the testing cohort was used to verify the generalization of the model [Citation27,Citation28]. Second, we excluded the variables with more than 25% missing data and those samples without POCUS data. Then, K-Nearest Neighbor (KNN) was used to impute the missing continuous variables, and mode imputation was applied to impute the missing categorical variables. Next, univariable analysis was performed to select the variables associated with full stomach (p-value <0.05). These variables associated with full stomach would be entered into multivariable logistical regression, then those significant variables would be further entered in the stepwise forward regression analysis for feature selection. One-hot encoding is a preprocessing method that maps non-numerical variables into binary vectors. Moreover, all continuous variables underwent preprocessing for Z-score normalization, and all categorical variables were transformed by One-hot encoding.

Model development

We constructed two types of ML models including clinical data ML models and POCUS ML models under two positions. For these two types of ML models, we built the following five ML models: logistic regression classifier (LR), random forest classifier (RF), support vector machine classifier (SVC), extreme gradient boosting classifier (XGB), and multiple layer perception (MLP).

With the training cohort, the Grid Search algorithm with 10-fold cross-validation was applied to select the hyper-parameters of each model. 10-fold cross-validation randomly divided the data set into 10 equal parts, nine of which were used to estimate the model, and the remaining was used to evaluate the model. The hyper-parameters of each model were selected to maximize the area under the receiver operating characteristic curve (AUROC). And we used the Delong test to evaluate statistical differences between two AUROCs in these five models. The performance of these models was evaluated by the metrics of discrimination, calibration, and clinical usefulness. The discrimination ability was assessed by AUROC, the area under the precision-recall (PR) curve (AUPRC), accuracy, precision, recall, F1. And AUPRC is more useful for un-balanced datasets to evaluate the performance of binary classifiers than AUROC. F1 score provides a comprehensive evaluation of precision and recall and presents the capture ability of correct positive results. Besides, the indicators of the discrimination ability were ultimately obtained using 10-fold cross-validation calculated the average values of the training and testing sets. The closer these indicators get to 1, the better accuracy the model reaches. The calibration ability was assessed by brier-score. The closer brier-score gets to 0, the better the calibration ability of the model runs. The clinical usefulness of the model was evaluated by decision curve analysis (DCA). Additionally, the You-den index (sensitivity + specificity − 1) determined the optimal cut-off, which enabled the model to have the maximum total predictive ability to detect true positive and negative samples. Accordingly, these metrics also should be verified in the testing cohort at this threshold. Thus, the optimal machine learning model we ultimately selected can accurately predict full stomach in clinical practice.

Model interpretation

Furthermore, we employed the SHapley Additive exPlanations (SHAP) method to gain insight into the final selected model [Citation29]. The impact degree of the features was explored by visualizing the SHAP values.

Statistical analysis

First, Shapiro–Wilk Test was used to evaluate the normality of continuous variables. Continuous variables were described as mean ± standard deviation (SD) or median ± interquartile range (IQR), using the student t-test or Mann–Whitney U test for comparison. And categorical variables were expressed as count (frequency), using the chi-square test or Fisher’s exact test for comparison. A value of p < 0.05 was considered significant in all tests.

Propensity score matching

According to the optimal cut-off, the final model would classify the dataset as empty- and full stomach groups whether the control or the POCs groups. Patients in both empty- and full stomach groups may receive POCs or fasting. Given the differences in the baseline characteristics between the control and POCs groups, propensity score matching (PSM) was performed in both the empty- and full stomach groups to reduce the influence of selection bias caused by covariables, respectively. And PSM was performed based on the stepwise forward regression algorithm result and demographic information using a 1:1 nearest neighbor matching algorithm with a caliper of 0.05. Balance in covariates was evaluated by the standardized mean difference (SMD). An SMD of <0.1 indicates a better balance.

Results

Study subjects

We analyzed data obtained from 1586 consecutive patients with GIE procedures between October 2022 and January 2023 in Nanjing First Hospital, and our study cohort finally consisted of 1386 patients who met the inclusion criteria to establish the ML models. The study process is specifically shown in , and this study outcome full stomach was defined as the presence of solid particles and/or the gastric volume >0.4 ml kg−1. The median age of our whole sample was 54 yr (42–64yr), and 55.1% were male (Table S1). We divided the whole population into a control group (n = 1090) and a POCs group (n = 296) based on whether POCs were taken or not. The con­trol group was then divided into the training cohort (70%, n = 752) and the testing cohort (30%, n = 338). In these two cohorts, the incidence of full stomach was 39.5% (297/752) and 36.7% (124/338) in the training and testing cohorts, respectively. And baseline characteristics of these two cohorts were well-balanced (Table S2). And then, the training cohort was used to construct the ML models and tune the best-fitted hyper-parameters of the model. The testing cohort was used to validate the robustness ability of the ML model.

Figure 1. The overall workflow of the entire process is represented as a schematic diagram.

Figure 1. The overall workflow of the entire process is represented as a schematic diagram.

Feature selection

Our study collected 25 features related to the outcome full stomach. Univariate analysis () describes that 7 features were significantly associated with the outcome full stomach. Given that there may be a collinearity problem, we further performed multivariable logistical regression and stepwise forward regression to reduce the redundant information of features. Finally, the six features () were entered to construct the ML models.

Figure 2. Forest plot of the six significant predictors of full stomach. GERD: gastroesophageal reflux disease.

Figure 2. Forest plot of the six significant predictors of full stomach. GERD: gastroesophageal reflux disease.

Table 1. Baseline characteristics of GIE patients in training (n = 752) and testing (n = 338) cohorts.

Model performance

These six features were used to establish the following five ML models: LR, SVM, RF, XGB, and MLP. indicated that the RF model has the greatest discriminatory performing ability (the highest AUROC, the second highest F1) among these five ML models in the training cohort. In addition, we validated the robustness ability of those established models according to the determined optimal cut-off in the testing cohort (), and RF still presented satisfactory performance (). The optimal values of the hyper-parameters for each classifier could be specifically viewed in Table S3. A comparison of the AUROC using the Delong test showed no significant differences (Table S4). As for the calibration ability, RF had the lowest Brier score of 15.2% () among all models. In , the DCA curves revealed no obvious differences among all models. Therefore, we finally selected the RF model representing the clinical ML model to predict the risk of full stomach. For POCUS ML models, the SVM model based on RLD position performs best in this series of POCUS ML models and shows a strong discriminatory ability (Table S5).

Figure 3. ROC curve and PRC curve for full stomach. ROC curves (a, b) and PRC curves (c, d) for the training and testing cohort, respectively. AUROC: area under the receiver operating characteristic curve; ROC: receive operating characteristic; AUPRC: area under the precision-recall curve; PRC: precision-recall curve.

Figure 3. ROC curve and PRC curve for full stomach. ROC curves (a, b) and PRC curves (c, d) for the training and testing cohort, respectively. AUROC: area under the receiver operating characteristic curve; ROC: receive operating characteristic; AUPRC: area under the precision-recall curve; PRC: precision-recall curve.

Figure 4. Calibration curve and DCA curve for full stomach. Calibration curve (a) and DCA curve (b) for the testing cohort. DCA: decision curve analysis.

Figure 4. Calibration curve and DCA curve for full stomach. Calibration curve (a) and DCA curve (b) for the testing cohort. DCA: decision curve analysis.

Table 2. Performance metrics of the five different clinical data ML models in the training and testing cohorts.

Model interpretation

We calculated the feature importance using the average absolute SHAP values for the RF model, which had the greatest discriminatory ability. depicts the top 6 features in descending order, and shows an overview of the positive or negative impact of features on the RF model.

Figure 5. SHAP summary plots of interpretation for the six significant predictors contributing to RF model. Bar chart of the average absolute SHAP value for each significant predictor (a) and dot chart of each significant predictor contributing to RF model. SHAP: SHapley Addictive explanation; RF: random forest.

Figure 5. SHAP summary plots of interpretation for the six significant predictors contributing to RF model. Bar chart of the average absolute SHAP value for each significant predictor (a) and dot chart of each significant predictor contributing to RF model. SHAP: SHapley Addictive explanation; RF: random forest.

PSM results

RF model divides both the control group (n = 982) and the POCs group (n = 262) into empty-stomach and full stomach groups at the threshold of 0.468. In the control group, the empty stomach group includes 792 patients, while the full stomach group includes 190 patients. Meanwhile, in the POCs group, the empty stomach group consists of 240 patients, while the full stomach group contains 22 patients. After applying the PSM method according to the items listed in the method section, in the empty stomach group, 229 patients in the POCs group were compared with 229 patients in the control group (). shows the incidence rate of full stomach, Thirst score, Mouth dryness score, and Nausea score of the VAS score item in the POCs group are significantly lower in the POCs group compared with the control group. In the same way, we also applied the PSM method in the full stomach group of both the control group and the oral carbohydrate group. The result () reveals that the incidence rate of full stomach and VAS score items except the Thirst score were no significant differences between the control and the POCs groups.

Table 3. Demographics and variables included in the RF model before and after PSM in the empty stomach cohort between the control and POCs groups.

Table 4. Demographics and variables included in the RF model before and after PSM in the high-risk cohort between the control and oral carbohydrate groups.

Construct the web calculator

To facilitate the promotion and utilization in clinical practice, we further deployed the RF model on the web. Researchers and clinicians can visit the website (https://medication.shinyapps.io/RF_model/), and fill in relevant patient information in several seconds. They will obtain a corresponding risk stratification result and a lime plot explaining the degree of each feature contributes to the overall outcome of each patient ().

Figure 6. The web calculator was constructed based on RF model. RF: random forest.

Figure 6. The web calculator was constructed based on RF model. RF: random forest.

Discussion

Considering that an efficient, inexpensive, and accurate method is clinically needed to assess the full stomach, we built the ML models in this study. Five ML algorithms performed well for both the clinical data ML models and the POCUS ML models including antrum diameters, with an average AUROC of 0.829 and 0.903, respectively. Among the five clinical data ML models, RF was the best performer. The test cohort AUROC was 0.837 and had good precision and recall with an F1 value of 71.5%, showing a low level of risk overestimation and less leakage, which was consistent with the calibration curve. The developed RF model predicted full stomach with good accuracy and interpretability, and the more convenient clinical data ML model is recommended in patient-rich outpatient clinics, primary hospitals, remote regions, and specific clinical settings where POCUS is not available.

The established RF model showed good predictive performance and was reliable. This model had a similar AUROC to the POCUS-based linear model (AUROC of 0.84) proposed by Bouvet and colleagues [Citation8] for the same outcome (solid particles and/or fluid volume >0.4 ml kg−1), which showed that the performance of ML model with clinical data only is comparable to the POCUS-based linear model when semi- quantifying gastric fluid volume. In addition, our study has several advantages compared to the previous traditional linear analysis method. First, the dataset is split into training and validation cohorts to prevent overfitting, ensuring that the model can be generalized beyond the specific patient cohort used to train this algorithm. This method has not been used in previous linear regression studies. Second, multiple risk factors affecting gastric contents were investigated, which we believe more accurately reflects the realities of anesthesiologists rapidly assessing real-world patient cohorts when POCUS is absent, as complex medical histories and clinical characteristics can affect overall patient outcomes. Third, the RF is an excellent integrated learning algorithm consisting of many decision trees (base evaluators) that are all independent. RF averages the predictions of the base evaluators or uses the majority voting principle to determine the outcome and thus has better classification performance than individual evaluators [Citation30–32].

The RF model is convenient to use and has excellent clinical applicability. Although the POCUS ML model had the highest AUROC, POCUS is not routine in elective GIE outpatients, which requires extra time and cost to use the model. In contrast, the clinical data ML model avoided POCUS and the variables included were routine and easily available, which allowed the RF model to be conveniently and efficiently applied with an acceptable reduced performance. In addition, based on the RF algorithm model, an online accessible web calculator was created to facilitate clinical use. As the variables in the RF model were readily available, the web calculator can be integrated with hospital electronic patient records to form a supported prediction system. In practice, the supported prediction system would access the patients’ clinical information and feed the required variables to the web calculator, automatically calculating the patient’s risk of a full stomach. Moreover, based on each patient’s actual profile, waterfall plots were provided to explain the contribution of each variable to the overall outcome, which increased the interpretability of the model and provided more information to the anesthesiologists.

The model can assist anesthesiologists in guiding patients in the use of POCs. The American Society of Anesthesiologists (ASA) strongly recommends that healthy infants, children, and adults who have oral clear liquids 2 h before surgery should maintain anesthesia and sedation, and POCs can alleviate discomfort due to long fasting [Citation23,Citation24]. According to our findings, POCs did not increase the stomach risk in full stomach patients, as demonstrated in several non-inferiority studies [Citation20,Citation33,Citation34]. Second, the stomach risk was lower in empty stomach POCs patients than in empty stomachs with complete fasting. Some studies had similar findings, especially in pediatric patients, for whom preoperative 1h carbohydrate has been proposed [Citation22,Citation35–37]. Third, comfort was variously improved in empty stomach and full stomach patients after POCs, and the improvement was more obvious in the empty group, probably because empty stomach patients had more rapid gastric emptying with earlier and more intense discomfort during fasting. These model-based analysis results may provide information for anesthesiologists to guide patients on POCs.

Multivariate logistic regression determined six independent risk factors to predict full stomach. Among them, age, male, diabetes, and GERD have been reported in some studies [Citation16,Citation38]. In our dataset, fasting time and general diet were significant predictors, rarely mentioned in fasted patients. In a survey of pediatric patients, each hour of fasting was associated with lower odds of full stomach (OR = 0.79) [Citation39]. Some studies also found that despite fasting, some adult patients were still full [Citation7,Citation8]. This indicates that for patients with delayed gastric emptying, an 8-h fasting time may not be sufficient. It has been shown that the general diet empties more slowly than liquid or semi-fluid foods [Citation40], and we found that the gastric fluid volume still differed between patients with different diets after fasting up to 8h. This is correlated with the patient’s actual gastrointestinal preparation, who are usually told to eat a liquid or semi-liquid diet the night before. Based on this, the model may help anesthesiologists guide patients’ diets by quantifying the contribution of a general diet to full stomach, which requires further study.

There are some limitations of this study. First, our dataset emerged from a single organization, and the generalization of the best-performing model needs to be tested in other centers. The web calculator we provided may help address this, as researchers worldwide can access and validate it. Second, diabetic patients were not loaded with POCs due to elevated glycemic risk, and we could not explore the risks and benefits of POCs in this population. Diabetic patients exceed 15% of surgical patients [Citation41], whose perioperative gastrointestinal preparation deserves attention. There has been some evidence that POCs loading may be safe and effective in diabetic patients [Citation42,Citation43], but most studies assessing the efficacy of POCs excluded them. Finally, the model was developed in GIE patients, and its suitability for nonoperating room anesthesia patients other than GIE (e.g. bronchoscopy) and operating room patients is unknown, which requires further study.

Conclusions

In conclusion, this study demonstrated the potential of the ML model in predicting the full stomach in patients undergoing elective GIE. The model and its web calculator should be used in specific settings where demand efficiency or POCUS is unavailable to enhance clinical judgment and support daily decision-making. Analysis of POCs based on model outcomes showed that POCs did not increase the stomach risk in full stomach patients, they even decrease stomach risk in empty stomach patients. Both groups had improved comfort, and the benefit may be greater in empty stomach group. These findings may aid the anesthesiologist in precise the patients’ gastrointestinal preparation using the model.

Author contributions

Study conception/design: Yanna Si, Jianjun Zou, Libo Yan; Data acquisition: Mingtao Ma, Yaoyi Guo, Yue Feng, Yi Zhong; Data analysis and model construction: Yuzhan Jin, Huaming Xia; Interpreting results: Yuzhan Jin, Yuqing Yan, Mingtao Ma; Initial drafting of manuscript: Yuzhan Jin, Yuqing Yan, Mingtao Ma; Critical revision of manuscript: Yanna Si, Jianjun Zou, Chen Chen, Kaizong Huang, Yuzhan Jin, Yuqing Yan, Mingtao Ma.

Supplemental material

Supplemental Material

Download MS Word (27.4 KB)

Disclosure statement

No potential conflict of interest was reported by the author(s).

Data availability statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Additional information

Funding

This work was supported by the National Natural Science Foundation of China [Grant Number 81873954, 82173899], the Six Talent Peaks Project of Jiangsu [Grant Number WSW-106], Nanjing Medical Science and Technical Development Foundation [Grant Number ZKX22030], Jiangsu Pharmaceutical Association [Grant Number H202108, A2021024, Q202202, JY202207].

References

  • Samuel R, Bilal M, Tayyem O, et al. Evaluation and management of non-variceal upper gastrointestinal bleeding. Dis Mon. 2018;64(7):1–14. doi: 10.1016/j.disamonth.2018.02.003.
  • Chang S, Malter L, Hudesman D. Disease monitoring in inflammatory bowel disease. World J Gastroenterol. 2015;21(40):11246–11259. doi: 10.3748/wjg.v21.i40.11246.
  • Finocchiaro M, Cortegoso Valdivia P, Hernansanz A, et al. Training simulators for gastrointestinal endoscopy: current and future perspectives. Cancers. 2021;13(6):1427. doi: 10.3390/cancers13061427.
  • Nishizawa T, Suzuki H. Propofol for gastrointestinal endoscopy. United European Gastroenterol J. 2018;6(6):801–805. doi: 10.1177/2050640618767594.
  • Cook TM, Woodall N, Frerk C, Fourth National Audit Project. Major complications of airway management in the UK: results of the fourth national audit project of the royal college of anaesthetists and the difficult airway society. Part 1: anaesthesia. Br J Anaesth. 2011;106(5):617–631. doi: 10.1093/bja/aer058.
  • American Society of Anesthesiologists. Practice guidelines for preoperative fasting and the use of pharmacologic agents to reduce the risk of pulmonary aspiration: application to healthy patients undergoing elective procedures: an updated report by the American Society of Anesthesiologists Task Force on preoperative fasting and the use of pharmacologic agents to reduce the risk of pulmonary aspiration. Anesthesiology. 2017;126:376–393.
  • Phillips S, Liang SS, Formaz-Preston A, et al. High-risk residual gastric content in fasted patients undergoing gastrointestinal endoscopy: a prospective cohort study of prevalence and predictors. Anaesth Intensive Care. 2015;43(6):728–733. doi: 10.1177/0310057X1504300610.
  • Bouvet L, Mazoit JX, Chassard D, et al. Clinical assessment of the ultrasonographic measurement of antral area for estimating preoperative gastric content and volume. Anesthesiology. 2011;114(5):1086–1092. doi: 10.1097/ALN.0b013e31820dee48.
  • Rocha C, Kamada LMK, Andrade Filho PH, et al. Ultrasonographic evaluation of gastric content and volume: a systematic review. Rev Assoc Med Bras. 2020;66(12):1725–1730. doi: 10.1590/1806-9282.66.12.1725.
  • Perlas A, Davis L, Khan M, et al. Gastric sonography in the fasted surgical patient: a prospective descriptive study. Anesth Analg. 2011;113(1):93–97. doi: 10.1213/ANE.0b013e31821b98c0.
  • Van de Putte P, Perlas A. Gastric sonography in the severely obese surgical patient: a feasibility study. Anesth Analg. 2014;119(5):1105–1110. doi: 10.1213/ANE.0000000000000373.
  • Perlas A, Mitsakakis N, Liu L, et al. Validation of a mathematical model for ultrasound assessment of gastric volume by gastroscopic examination. Anesth Analg. 2013;116(2):357–363. doi: 10.1213/ANE.0b013e318274fc19.
  • Schmitz A, Thomas S, Melanie F, et al. Ultrasonographic gastric antral area and gastric contents volume in children. Paediatr Anaesth. 2012;22(2):144–149. doi: 10.1111/j.1460-9592.2011.03718.x.
  • Spencer AO, Walker AM, Yeung AK, et al. Ultrasound assessment of gastric volume in the fasted pediatric patient undergoing upper gastrointestinal endoscopy: development of a predictive model using endoscopically suctioned volumes. Paediatr Anaesth. 2015;25(3):301–308. doi: 10.1111/pan.12581.
  • Rajula HSR, Verlato G, Manchia M, et al. Comparison of conventional statistical methods with machine learning in medicine: diagnosis, drug development, and treatment. Medicina. 2020;56(9):455. doi: 10.3390/medicina56090455.
  • Bouvet L, Desgranges FP, Aubergy C, et al. Prevalence and factors predictive of full stomach in elective and emergency surgical patients: a prospective cohort study. Br J Anaesth. 2017;118(3):372–379. doi: 10.1093/bja/aew462.
  • Jordan MI, Mitchell TM. Machine learning: trends, perspectives, and prospects. Science. 2015;349(6245):255–260. doi: 10.1126/science.aaa8415.
  • Liu Y, Lin D, Li L, et al. Using machine-learning algorithms to identify patients at high risk of upper gastrointestinal lesions for endoscopy. J Gastroenterol Hepatol. 2021;36(10):2735–2744. doi: 10.1111/jgh.15530.
  • Shung DL, Au B, Taylor RA, et al. Validation of a machine learning model that outperforms clinical risk scoring systems for upper gastrointestinal bleeding. Gastroenterology. 2020;158(1):160–167. doi: 10.1053/j.gastro.2019.09.009.
  • Cho EA, Huh J, Lee SH, et al. Gastric ultrasound assessing gastric emptying of preoperative carbohydrate drinks: a randomized controlled noninferiority study. Anesth Analg. 2021;133(3):690–697. doi: 10.1213/ANE.0000000000005411.
  • Shin HJ, Koo BW, Lim D, et al. Ultrasound assessment of gastric volume in older adults after drinking carbohydrate-containing fluids: a prospective, nonrandomized, and noninferiority comparative study. Can J Anaesth. 2022;69(9):1160–1166. doi: 10.1007/s12630-022-02262-9.
  • Song IK, Kim HJ, Lee JH, et al. Ultrasound assessment of gastric volume in children after drinking carbohydrate-containing fluids. Br J Anaesth. 2016;116(4):513–517. doi: 10.1093/bja/aew031.
  • Ljungqvist O, Scott M, Fearon KC. Enhanced recovery after surgery: a review. JAMA Surg. 2017;152(3):292–298. doi: 10.1001/jamasurg.2016.4952.
  • Joshi GP, Abdelmalak BB, Weigel WA, et al. 2023 American Society of Anesthesiologists practice guidelines for preoperative fasting: carbohydrate-containing clear liquids with or without protein, chewing gum, and pediatric fasting Duration-A modular update of the 2017 American Society of Anesthesiologists practice guidelines for preoperative fasting. Anesthesiology. 2023;138(2):132–151. doi: 10.1097/ALN.0000000000004381.
  • Wang Y, Tu Y, Liu Z, et al. Effects of preoperative oral carbohydrate on cirrhotic patients under endoscopic therapy with anesthesia: a randomized controlled trial. Biomed Res Int. 2021;2021:1405271. doi: 10.1155/2021/1405271.
  • Collins GS, Reitsma JB, Altman DG, et al. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD statement. Ann Intern Med. 2015;162(1):55–63. doi: 10.7326/M14-0697.
  • Vodencarevic A, Weingärtner M, Caro JJ, et al. Prediction of recurrent ischemic stroke using registry data and machine learning methods: the Erlangen Stroke Registry. Stroke. 2022;53(7):2299–2306. doi: 10.1161/STROKEAHA.121.036557.
  • Yang M, Zhu JJ, McGaughey A, et al. Predicting extraction selectivity of acetic acid in pervaporation by machine learning models with data leakage management. Environ Sci Technol. 2023;57(14):5934–5946. doi: 10.1021/acs.est.2c06382.
  • Nohara Y, Matsumoto K, Soejima H, et al. Explanation of machine learning models using Shapley additive explanation and application for real data in hospital. Comput Methods Programs Biomed. 2022;214:106584. doi: 10.1016/j.cmpb.2021.106584.
  • Esmaily H, Tayefi M, Doosti H, et al. A comparison between decision tree and random Forest in determining the risk factors associated with type 2 diabetes. J Res Health Sci. 2018;18:e00412.
  • Ellis K, Kerr J, Godbole S, et al. A random Forest classifier for the prediction of energy expenditure and type of physical activity from wrist and hip accelerometers. Physiol Meas. 2014;35(11):2191–2203. doi: 10.1088/0967-3334/35/11/2191.
  • Breiman L. Random forests. Machine Learn. 2001;45(1):5–32. doi: 10.1023/A:1010933404324.
  • Itou K, Fukuyama T, Sasabuchi Y, et al. Safety and efficacy of oral rehydration therapy until 2 h before surgery: a multicenter randomized controlled trial. J Anesth. 2012;26(1):20–27. doi: 10.1007/s00540-011-1261-x.
  • Choi YS, Cho BW, Kim HJ, et al. Effect of preoperative oral carbohydrates on insulin resistance in older adults who underwent total hip or knee arthroplasty: a prospective randomized trial. J Am Acad Orthop Surg. 2022;30(20):971–978. doi: 10.5435/JAAOS-D-21-00656.
  • Yildiz H, Gunal SE, Yilmaz G, et al. Oral carbohydrate supplementation reduces preoperative discomfort in laparoscopic cholecystectomy. J Invest Surg. 2013;26(2):89–95. doi: 10.3109/08941939.2012.699998.
  • Schmidt AR, Buehler P, Seglias L, et al. Gastric pH and residual volume after 1 and 2 h fasting time for clear fluids in children†. Br J Anaesth. 2015;114(3):477–482. doi: 10.1093/bja/aeu399.
  • Huang X, Zhang H, Lin Y, et al. Effect of oral glucose water administration 1 hour preoperatively in children with cyanotic congenital heart disease: a randomized controlled trial. Med Sci Monit. 2020;26:e922642. doi: 10.12659/MSM.922642.
  • Tandon K, Khalil C, Castro F, et al. Safety of large-volume, same-day oral bowel preparations during deep sedation: a prospective observational study. Anesth Analg. 2017;125(2):469–476. doi: 10.1213/ANE.0000000000001805.
  • Leviter J, Steele DW, Constantine E, et al. “Full stomach" despite the wait: point-of-care gastric ultrasound at the time of procedural sedation in the pediatric emergency department. Acad Emerg Med. 2019;26(7):752–760. doi: 10.1111/acem.13651.
  • Carmona BM, Almeida CCA, Vieira WB, et al. [Ultrasound dynamics of gastric content volumes after the ingestion of coconut water or a meat sandwich. A randomized controlled crossover study in healthy volunteers]. Braz J Anesthesiol. 2018;68(6):584–590. doi: 10.1016/j.bjan.2018.06.008.
  • Thompson BM, Stearns JD, Apsey HA, et al. Perioperative management of patients with diabetes and hyperglycemia undergoing elective surgery. Curr Diab Rep. 2016;16(1):2. doi: 10.1007/s11892-015-0700-8.
  • Breuer JP, von Dossow V, von Heymann C, et al. Preoperative oral carbohydrate administration to ASA III-IV patients undergoing elective cardiac surgery. Anesth Analg. 2006;103(5):1099–1108. doi: 10.1213/01.ane.0000237415.18715.1d.
  • Laffin MR, Li S, Brisebois R, et al. The use of a pre-operative carbohydrate drink in patients with diabetes mellitus: a prospective, non-inferiority, cohort study. World J Surg. 2018;42(7):1965–1970. doi: 10.1007/s00268-017-4413-9.