Predicting Acute Biliary Pancreatitis Relapse Using CNN: The Minerva Multicentric Study

Authors

  • Adriano De Simone University of Campania "Luigi Vanvitelli" - Department of Advanced Medical and Surgical Sciences; Department of Electric Engineering and Information Technologies image/svg+xml
  • Mauro Podda University of Cagliari Department of Surgical Science, Emergency Surgery Unit image/svg+xml
  • Dario Bruzzese University of Naples Federico II Department of Public Health University of Naples Federico II image/svg+xml
  • Daniela Pacella University of Naples Federico II - Department of Public Health University of Naples Federico II image/svg+xml

DOI:

https://doi.org/10.54103/2282-0930/29441

Abstract

Introduction

Acute pancreatitis (AP) is the main pancreatic disease diagnosed in the world [1]. The etiology of AP is commonly alcoholic or related to biliary events [2,3]. Current guidelines recommend performing early cholecystectomy (EC), as surgery significantly reduces the risks of subsequent recurrence [4,5,6,7,8]. Recurrence of acute biliary pancreatitis (RBAP) is defined as a syndrome of multiple distinct acute inflammatory responses originating in individuals with genetic, environmental, traumatic, metabolic, who experienced a second episode of AP after at least 3 months [9]. To date, RBAP is a dangerous clinical complication of the pancreas, requiring emergency surgery and it can cause death if not operated on within 24 hours of onset [9]. However, due to particular patient frailties, medical-surgical conditions, or logistic problems, EC is not always performed [10]. The early identification of patients at high risk of recurrence could lead to better clinical and logistics management and provide practical recommendations for cholecystectomy priority [11,12,13,14]. Predicting and preventing RBAP can reduce costs of hospitalization and medical care and, more importantly, promote the management and prioritization of cases hospitalized with AP and potentially subject to relapse. Our recent systematic review [15] confirmed that there are no prospective studies that tried to model the prediction of RBAP. All evidence emerged through monocenter, retrospective data, was inconclusive and contradictory. The aim of the MINERVA study is 2-fold: on one hand, it aims to gather prospective data about RBAP from XX centers in Italy; on the other, it aims to develop and validate the first machine learning-based predictive model to identify patients at risk of RBAP [16].

Objective

The MINERVA (Machine learnINg for the rElapse Risk eValuation in Acute Biliary Pancreatitis) project is the first observational multicenter prospective trial designed to investigate the predictive factors of relapse in acute biliary pancreatitis using artificial intelligence (AI) and by collecting outcomes at 3 months, 6 months, and 1 year follow-up. The aim of this project is to develop a predictive model of acute biliary pancreatitis recurrence based on a convolutional neural network (CNN), using images generated from tabular clinical data from both prospective and retrospective multi-centric sources.

Methods

Clinical tabular data from the retrospective MANCTRA [17] and prospective MINERVA [16] datasets were merged to obtain 2413 instances appropriately preprocessed to manage missing values, normalizations and prevent errors. A strong imbalance was regulated applying the adasyn algorithm [18], to increase the minority class (initially 8% of the total) with artificial instances. The final dataset was made by 3630 subjects divided in 1441 with relapse and 2189 without it. The selected predictors were divided in numerical: the patient’s age, BMI, white blood cell (per mm3), neutrophil (per mm3), platelet (per mm3), international normalized ratio, protein c-valuesreactive, aspartate aminostrasferase (units/liter), alanine aminostrasferase (unit/liter), total birylubin (mg/dl), direct conjugated birylubin, gamma glutamyl transpeptidase (units/liter), serum amylase (units/liter), lipasis (units/liter), the lactate dehydrogenase (units/liter); and categorical: sex of the patient, previous episodes of pancreatitis, clinical history of diabetes, clinical history of chronic lung disease, hypertension, atrial fibrillation, chronic kidney disease, disease of the hematopoietic system, immunosuppressive drugs at the time of admission, cholodulelithiasis, acute cholangitis, department of hospitalization and Endoscopic Retrograde Colangiography-Pancreatography. Then, using the PCA-based Deepinsight algorithm [19], the features have been mapped to pixels with a grid size equal to 128; To process the images, we designed a CNN consisting of 3 reduction blocks with ReLU and MaxPooling activation, followed by 2 fully connected layers: the first with ReLU and Dropout, the second with sigmoid activation for binary classification (RBAP: yes/no). we used Adam optimizer (L2 adjustment) and binary cross-entropy loss. Data were divided into training (70%), validation (15%) and test sets (15%), and AUC, F1-score and accuracy were used for evaluation. We used an adaptive variable learning rate (LR) starting from 0.001, a batch size(BS) between 16 and 32, the number of periods incrementally validated according to a trial and error approach, and then fixed by early stopping (ES) technique. A classical non-parametric bootstrap approach, based on 50-iterations, was adopted to estimate the variability of performance metrics by evaluating greater robustness and reliability of the predictive capabilities compared to fluctuations in baseline data. The python code took about 30 minutes to run on a PC with Processor 12th Gen Intel(R) Core(TM) i5-12400F (12CPUs) 2.5 GHz, Operating System Microsoft Windows 11 Pro and RAM from 32GB, equipped with NVIDIA GeForce RTX 4060.

Results

The model showed good predictive performance in validation phases with an AUC of (84.38 ± 1.76)%, while on test AUC is 82.25% . Parameters as follows: BS=32, LR=0.001, ES at 60 epochs and weight decay equal to 0.0001.

Figure 1. Structure of the implemented CNN (A), Calibration Plot  (B) and Roc Curve Plot (C) of the model.

Conclusion

This study presents the first AI model developed specifically for the prediction of RBAP. The integration of clinical data from complementary sources and the application of CNN techniques demonstrate the feasibility and clinical potential of this approach in an area that has been little explored so far. The results of this work are promising and the testing of AI to support the management of cases of relapse of acute biliary pancreatitis can prove a beneficial factor in supporting the medical clinic.

Downloads

Download data is not yet available.

References

Xiao A.Y., Tan M.L., Wu L.M. et al., Global incidence and mortality of pancreatic diseases: a systematic review, meta-analysis, and meta-regression of population-based cohort studies. Lancet Gastroenterol Hepatol, 2016; 1(1):45–55. DOI: https://doi.org/10.1016/S2468-1253(16)30004-8

Roberts S.E., Morrison-Rees S., John A. et al., The incidence and aetiology of acute pancreatitis across Europe. Pancreatology, 2017; 17(2):155–65. DOI: https://doi.org/10.1016/j.pan.2017.01.005

Zilio M.B., Eyff T.F., Azeredo-Da-Silva A.L. et al., A systematic review and meta-analysis of the aetiology of acute pancreatitis. HPB, 2019; 21(3):259–67. DOI: https://doi.org/10.1016/j.hpb.2018.08.003

Tenner S., Vege S.S., Sheth S.G. et al., American college of gastroenterology guidelines: management of acute pancreatitis. Am J Gastroenterol, 2024; 119(3):419–37. DOI: https://doi.org/10.14309/ajg.0000000000002645

Crockett S.D., Wani S., Gardner T.B. et al., American gastroenterological association institute guideline on initial management of acute pancreatitis. Gastroenterology, 2018; 154(4):1096–101. DOI: https://doi.org/10.1053/j.gastro.2018.01.032

Besselink M., van Santvoort H., Freeman M. et al., IAP/APA evidence-based guidelines for the management of acute pancreatitis. Pancreatology, 2013; 13(4 Suppl 2):E1–15. DOI: https://doi.org/10.1016/j.pan.2013.07.063

Leppäniemi A., Tolonen M., Tarasconi A. et al., 2019 WSES guidelines for the management of severe acute pancreatitis. World J Emerg Surg, 2019; 14:1–20. DOI: https://doi.org/10.1186/s13017-019-0247-0

UK W., UK guidelines for the management of acute pancreatitis. Gut, 2005; 54(Suppl 3):iii1. DOI: https://doi.org/10.1136/gut.2004.057026

Guda N.M., Muddana V., Whitcomb D.C. et al., Recurrent acute pancreatitis: international state-of-the-science conference with recommendations. Pancreas, 2018; 47(6):653-66. DOI: https://doi.org/10.1097/MPA.0000000000001053

Podda M., Di Martino M., Ielpo B. et al., The 2023 MANCTRA acute biliary pancreatitis care bundle: a joint effort between human knowledge and artificial intelligence (ChatGPT) to optimize the care of patients with acute biliary pancreatitis in western countries. Ann Surg, 2024; 279(2):203–12. DOI: https://doi.org/10.1097/SLA.0000000000006008

Umans D.S., Hallensleben N.D., Verdonk R.C. et al., Recurrence of idiopathic acute pancreatitis after cholecystectomy: systematic review and meta-analysis. Br J Surg, 2020; 107(3):191–99. DOI: https://doi.org/10.1002/bjs.11429

Gimberg K., Enochsson L., Sandblom G., Mortality and recurrence risk after a first episode of acute pancreatitis in the elderly: population-based study. Br J Surg, 2023; 110(8):905–7. DOI: https://doi.org/10.1093/bjs/znac374

Stevens C.L., Abbas S.M., Watters D.A., How does cholecystectomy influence recurrence of idiopathic acute pancreatitis? J Gastrointest Surg, 2016; 20:1997–2001. DOI: https://doi.org/10.1007/s11605-016-3269-x

Van Geenen E.J.M., Van Der Peet D.L., Mulder C.J.J. et al., Recurrent acute biliary pancreatitis: the protective role of cholecystectomy and endoscopic sphincterotomy. Surg Endosc, 2009; 23:950–6. DOI: https://doi.org/10.1007/s00464-009-0339-0

Pacella D., De Simone A., Pisanu A. et al., A systematic review of the predictive factors for the recurrence of acute pancreatitis. World J Emerg Surg, 2025; 20(1):32. DOI: https://doi.org/10.1186/s13017-025-00601-x

Podda M., Pisanu A., Pellino G. et al., Machine learning for the rElapse risk eValuation in acute biliary pancreatitis: The deep learning MINERVA study protocol. World J Emerg Surg, 2025; 20(1):17. DOI: https://doi.org/10.1186/s13017-025-00594-7

Podda M., Pacella D., Pellino G. et al., coMpliAnce with evideNce-based cliniCal guidelines in the managemenT of acute biliaRy pancreAtitis): The MANCTRA-1 international audit. Pancreatology, 2022; 22(7):902-16. DOI: https://doi.org/10.1016/j.pan.2022.07.007

Dey I., Pratap V, A comparative study of SMOTE, borderline-SMOTE, and ADASYN oversampling techniques using different classifiers. In: 2023 3rd international conference on smart data intelligence (ICSMDI). IEEE, 2023; pp. 294-302 DOI: https://doi.org/10.1109/ICSMDI57622.2023.00060

Sharma A., Vans E., Shigemizu D. et al., DeepInsight: A methodology to transform a non-image data to an image for convolution neural network architecture. Sci Rep, 2019; 9(1):11399. DOI: https://doi.org/10.1038/s41598-019-47765-6

Published

2025-09-08

How to Cite

1.
De Simone A, Podda M, Bruzzese D, Pacella D. Predicting Acute Biliary Pancreatitis Relapse Using CNN: The Minerva Multicentric Study. ebph [Internet]. 2025 [cited 2026 Feb. 6];. Available from: https://riviste.unimi.it/index.php/ebph/article/view/29441

Issue

Section

Congress Abstract - Section 2: Epidemiologia Clinica