Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Observational Study
. 2022 Jun;12(6):e842.
doi: 10.1002/ctm2.842.

EASY-APP: An artificial intelligence model and application for early and easy prediction of severity in acute pancreatitis

Affiliations
Observational Study

EASY-APP: An artificial intelligence model and application for early and easy prediction of severity in acute pancreatitis

Balázs Kui et al. Clin Transl Med. 2022 Jun.

Abstract

Background: Acute pancreatitis (AP) is a potentially severe or even fatal inflammation of the pancreas. Early identification of patients at high risk for developing a severe course of the disease is crucial for preventing organ failure and death. Most of the former predictive scores require many parameters or at least 24 h to predict the severity; therefore, the early therapeutic window is often missed.

Methods: The early achievable severity index (EASY) is a multicentre, multinational, prospective and observational study (ISRCTN10525246). The predictions were made using machine learning models. We used the scikit-learn, xgboost and catboost Python packages for modelling. We evaluated our models using fourfold cross-validation, and the receiver operating characteristic (ROC) curve, the area under the ROC curve (AUC), and accuracy metrics were calculated on the union of the test sets of the cross-validation. The most critical factors and their contribution to the prediction were identified using a modern tool of explainable artificial intelligence called SHapley Additive exPlanations (SHAP).

Results: The prediction model was based on an international cohort of 1184 patients and a validation cohort of 3543 patients. The best performing model was an XGBoost classifier with an average AUC score of 0.81 ± 0.033 and an accuracy of 89.1%, and the model improved with experience. The six most influential features were the respiratory rate, body temperature, abdominal muscular reflex, gender, age and glucose level. Using the XGBoost machine learning algorithm for prediction, the SHAP values for the explanation and the bootstrapping method to estimate confidence, we developed a free and easy-to-use web application in the Streamlit Python-based framework (http://easy-app.org/).

Conclusions: The EASY prediction score is a practical tool for identifying patients at high risk for severe AP within hours of hospital admission. The web application is available for clinicians and contributes to the improvement of the model.

Keywords: acute pancreatitis; artificial intelligence; severity prediction.

PubMed Disclaimer

Conflict of interest statement

The authors do not have any conflicts of interest to declare.

Figures

FIGURE 1
FIGURE 1
The workflow of the development of the prediction model
FIGURE 2
FIGURE 2
The cross‐validated (fold = 4) receiver operating characteristic (ROC) curve of the XGBoost model. The corresponding mean area under the curve (AUC) is 0.809. The 95% confidence interval is [0.776, 0.842]
FIGURE 3
FIGURE 3
The performance of the XGBoost model trained on different sized sets. The points show the area under the curve (AUC) scores, and the bars are the corresponding confidence intervals
FIGURE 4
FIGURE 4
The performance of the model using varying numbers of attributes with the top k most important features. The importance is calculated using the SHapley Additive exPlanations (SHAP) importance. The points show the area under the curve (AUC) scores, and the bars are the corresponding confidence intervals
FIGURE 5
FIGURE 5
The predicted severity score on a selected subset of the dataset and the confidence intervals for the 10th and 90th percentiles and the 25th and 75th percentiles. The records are sorted by the severity score
FIGURE 6
FIGURE 6
A summary plot of the impact of the features on the prediction (severity score) of the model. Each patient is represented by a point in each row. The colour of the points represents the relative value of the feature, and the x‐position of the points is the SHapley Additive exPlanations (SHAP) value, that is, the impact on the model's prediction
FIGURE 7
FIGURE 7
Three examples of the local explanation of the predictions using the SHapley Additive exPlanations (SHAP) values. (A) Predicted mild acute pancreatitis (AP). (B) Predicted AP with borderline severity. (C) Predicted severe AP. Factors that push the predicted score higher compared to the base value (mean prediction) are coloured orange, and those pushing lower the prediction are shown in green
FIGURE 8
FIGURE 8
An example output of the web application for the following input parameters—age: 55 years, gender: 0 (woman), body mass index: 22, alcohol consumption: 1 (true), blood pressure/pulse: 140/75/60, body temperature: 37.0°C, respiratory rate: 25. (A) Predicted severity score. (B) Explanation of prediction. (C) The kernel density estimate plot of the distribution of the predictions

References

    1. Garber A, Frakes C, Arora Z, Chahal P. Mechanisms and management of acute pancreatitis. Gastroenterol Res Pract. 2018;2018. - PMC - PubMed
    1. Peery AF, Dellon ES, Lund J, et al. Burden of gastrointestinal disease in the United States: 2012 update. Gastroenterology. 2012;143(5):1179‐1187.e3.. - PMC - PubMed
    1. Banks PA, Bollen TL, Dervenis C, et al. Classification of acute pancreatitis—2012: revision of the Atlanta classification and definitions by international consensus. Gut. 2013;62(1):102‐111. - PubMed
    1. Hegyi P, Erőss B, Izbéki F, Párniczky A, Szentesi A. Accelerating the translational medicine cycle: the Academia Europaea pilot. Nat Med. 2021;27(8):1317‐1319. - PubMed
    1. Párniczky A, Kui B, Szentesi A, et al. Prospective, multicentre, nationwide clinical data from 600 cases of acute pancreatitis. PLoS One. 2016;11(10):e0165309. - PMC - PubMed

Publication types