artificial intelligence prediction for the severity of acute pancreatitis

Conditions: Acute Pancreatitis; Artificial Intelligence; Outcome, Fatal

Summary: the incidence of acute pancreatitis (ap) is increasing nowadays. the diagnosis of ap is defined according to atlanta criteria with the presence of two of the following 3 findings; a) characteristic abdominal pain b) amylase and lipase values ≥3 times c) ap diagnosis in ultrasonography (usg), magnetic resonance imaging (mri), or computerized tomography (ct) imaging. while 80% of the disease has a mild course, 20% is severe and requires intensive care treatment. mortality varies between 10-25% in severe (severe) ap, while it is 1-3% in mild ap. scoring systems with clinical, laboratory, and radiological findings are used to evaluate the severity of the disease. advanced age (\>70yo), obesity (as body mass index (bmi, as kg/m2), cigarette and alcohol usage, blood urea nitrogen (bun) ≥20 mg/dl, increased creatinine, c reactive protein level (crp) \>120mg/dl, decreased or increased hct levels, ≥8 balthazar score on abdominal ct implies serious ap. according to the revised atlanta criteria, three types of severity are present in ap. mild (no organ failure and no local complications), moderate (local complications such as pseudocyst, abscess, necrosis, vascular thrombosis) and/or transient systemic complications (less than 48h) and severe (long-lasting systemic complications (\>48h); organ insufficiencies such as lung, heart, gastrointestinal and renal). although atlanta scoring is considered very popular today, it still seems to be in need of revision due to some deficiencies in the subjects of infected necrosis, non-pancreatic infection and non-pancreatic necrosis, and the dynamic nature of organ failure. even though the presence of 30 severity scoring systems (the most accepted one is the apache 2 score among them), none of them can definitely predict which patient will have very severe disease and which patient will have a mild course has not been discovered yet. today, artificial intelligence (machine learning) applications are used in many subjects in medicine (such as diagnosis, surgeries, drug development, personalized treatments, gene editing skills). studies on machine learning in determining the violence in ap have started to appear in the literature. the purpose of this study is to investigate whether the artificial intelligence (ai) application has a role in determining the disease severity in ap.

in a retrospective way, 1550 patients who were followed up at the gastroenterology clinic of bezmialem foundation university between october 2010 and february 2020 period and who were diagnosed with ap according to atlanta criteria were screened. after the removal of 216 patients with missing data, 1334 patients were included in the study for evaluation. 1. patient demographic information; \[age (yo), gender (male/female), cigarette/alcohol usage (as yes or no)\], clinical information; \[height (centimeters), weight (kilograms), bmi (as kg/m2), presence of diabetes mellitus and hypertension (yes or no)\], etiology of ap such as gallstones, alcohol, etc., and laboratory tests those taken within the first 24 hours of the admission; \[crp level (mg/dl, normally: 0-5), bun level (mg/dl, normally; 9,8 - 20,1), creatinine level (mg/dl, normally; 0,57 - 1,11), number of leukocytes (normally 4.5 to 11.0 ×109/l) and hematocrit level (%, normally: 35,5-48%)\], as well as balthazar tomographic scoring \[0: normal, 1: an increase in pancreatic size, 2: inflammatory changes in pancreatic tissue and peripancreatic fatty tissue, 3: irregularly bordered, single fluid collection, 4: irregularly bordered 2 or more fluid collections, 5 to 10 different degrees of necrosis)\], will be recorded in the excel file. 2. revised atlanta scoring will also be recorded within a week period of hospital admission as mild, moderate, and severe scores. infected pancreatic necrosis and sepsis that developed during the course of acute pancreatitis will be accepted as severe acute pancreatitis due to the inadequacy of some issues in atlanta scoring. the severity of the disease will be evaluated according to the atlanta scores. and the results of the artificial intelligence study will be matched according to the results of atlanta scoring. 3. complications are classified as 0; none, 2; local complications: pseudocyst, abscess, necrosis, thrombosis, and mesenteric panniculitis, 3; systemic complications: lung, kidney, gastrointestinal and cardiovascular complications, 4; mixed serious complications/co-morbidity situations, 5: infectious and septic complications. 4. additionally, invasive procedure requirements such as endoscopic ultrasonography (eus), endoscopic retrograde cholangiopancreatography (ercp) (as yes or no), length of hospital stay (less than 10 days or more than 11 days), intensive care unit requirement (present or not), number of future ap attacks (in duration after a month of hospital admission, as of one attack or more than one attack), and survival (death, alive) will also be recorded. machine learning algorithm is used: gradient boosted ensemble trees trees. ("greedy function approximation: a gradient boosting machine" by jerome h. friedman (1999)). the dataset has been partitioned with a 90%-10% ratio. 10% is for validation and 90% is for ai machine learning. 90% machine learning part has also been divided into two parts as 70% for ai learning and 30% for testing the learning. for this purpose, 5-fold stratified sampling has been used artificial intelligence methods of the study features used for ai machine learning: 1. gender: m/f 2. age: continuous value 3. height (cm): continuous value 4. weight (kg): continuous value 5. bmi groups: group 1: ≤ 25 kg/m2; group 2; 25-30 kg/m2; group 3: \>30,1 kg/m2 6. cigarette: 0; no, 1; yes 7. alcohol: 0; no, 1; yes 8. diabetes mellitus: 0; no, 1; yes 9. hypertension: 0; no, 1; yes 10. etiology: 1; biliary, 2; alcohol, 3; hypertriglyceridemia, 4; hypercalcemia, 5; drug, 6; congenital, 7; cryptogenic, 8; endoscopic retrograde cholangiography (ercp), 9; oddy sphincter dysfunction (osd), 10; malignity, 11; intra papillary mucinous neoplasia (ipmn), 12: primary sclerosing cholangiography (psc) 13: autoimmune, 14: multiple etiology 11. leucocyte number (wbc): n; 4,5-11x100 12. hematocrit (hct): n; %35,5-48 13. c reactive protein (crp): n: 0-5 mg/dl 14. blood urea nitrogen (bun): n: 9,8-20,1 mg/dl 15. creatinine (krea): n: 0,57-1,11 mg/dl 16. baltazar scoring (bltzr): 0; normal p, 1; increase in pancreatic size, 2; inflammatory changes in pancreatic tissue and peripancreatic fatty tissue, 3; irregularly bordered, single fluid collection, 4, irregularly bordered 2 or more fluid collections, with various degrees of necrosis (ranging between 5 and 10) in artificial intelligence, decision tree models are widely used for supervised machine learning. they may depend on the gini index, gain ratio/entropy, chi-square, regression, and so on. in ai they are preferred because they generate understandable rules for humans unlike other machine learning algorithms such as artificial neural networks and support vector machines. on the other hand, they are considered to be weak learners. that means they are highly affected by noise and outliers existing in the data set. in order to go around this handicap, models like random forest, ensemble trees, gradient boosting have been developed. random forest and ensemble trees generate rules by applying a certain decision tree algorithm to the portions of the data set vertically and horizontally. this technique dramatically reduces the error occurring in learning. after learning processes are completed, they combine weak decision trees into a strong and bigger decision tree model. ensemble learning models achieve better learning by minimizing the average value of the loss function on the training set via a f ̂(x) approximation. the idea is to apply a steepest descent step to the minimization problem in a greedy fashion. in this study, the gradient boost tree model which was proposed by friedman has been used for machine learning. this model chooses a separate optimal value for each of the tree's parts rather than a single one for the whole tree. this approach can be used to minimize any differentiable loss l(y, f) in conjunction with forwarding stage-wise additive modeling. it is reported that the gradient boosting tree model outperforms random forest and regular ensemble trees in many cases. the goal of the algorithm is to find an approximation f_m (x_i) which minimizes the expected l(y,f(x)) loss function. the algorithm may be summarized as follows: inputs: a training data set: {(x_i,y_i )} i=1 to n with n dimension and a class variable a differentiable loss function: l(y,f(x)) the number of iterations: m. output: f_m (x_i) algorithm: initialize the model with a constant value: f_0 (x)=arg min⁡∑_(i=1)\^n▒〖l(y_i,γ)〗 for m = 1 to m: compute pseudo-residuals rim r_im=-\[(∂l(y_(i,) f(x_i )))/(∂f(x_i))\] train a base learner to pseudo-residuals, using the training set: {(x_i,y_i )} i=1 to n compute multiplier γ γ=arg min⁡∑_(i=1)\^n▒〖l(y_i,f_(m-1) (x_i )+γh_m (x_i ))〗 update the model: 〖f_m (x_i)=f〗_(m-1) (x_i )+γ_m h_m (x_i ) output f_m (x_i) in the analysis, synthetic minority oversampling technique (smote) \[5\] has been used in order to avoid the disadvantage of class variable imbalance. smote is a data augmentation technique to increase data. in some cases, the class variable may not have an equal amount of values from all cases. for example, there may be much more survived patients than those who lost their lives. in this kind of situation, data are augmented. there was an imbalance in the class variables in the data set of this study. so, smote has been applied to increase the minority classes for training. the dataset has been partitioned with a 90%-10% ratio. 10% is for validation and 90% is for ai machine learning. 90% machine learning part has also been divided into two parts as 70% for ai learning and 30% for testing the learning. for this purpose, 5-fold stratified sampling has been used. knime analytic platform has been used for the ai machine learning.

Eligibility criteria:
inclusion criteria: - patients with acute pancreatitis diagnosis who admitted to er within 24 hours after the beginning of abdominal pain exclusion criteria: * patients who sign a treatment rejection form immediately after admission to the hospital and leave the hospital * patients with uncompleted data * psychiatric patients * patients with very poor general conditions

Keywords: acute pancreatitis, artificial intelligence,