Introduction

Acute pancreatitis (AP) is the most common principal gastrointestinal discharge diagnosis [1], with the year global incidence of 34/100000 [2]. The occurrence of an acute inflammatory process of the pancreatic parenchyma induced by mass of tumor has been reported [3]. As a doubling in the global annual number of pancreatic cancer diagnosed in the past two decades [4], tumor such as pancreatic cancer is becoming an increasing problem of pancreatitis-related hospitalization. However, international consensus guidelines on the diagnosis and management of tumor-induced AP do not yet specifically exist, and the effects of clinical characteristic and pathogenesis of tumor-induced AP on prognostic evaluation still remain controversial.

Tumor is easy to be misdiagnosed at the first admission due to the similar clinical characteristics of AP caused by whichever etiology [3]. It is a challenging dilemma, and meant to increase times and length of hospitalization, lead to serious complications [5], or even shorten the survival of AP patients. Significantly, there has been a growing appreciation of tumor-induced AP in recent years. It is crucial to timely identify tumor as the cause of this entity, and initiate a tailored treatment plan. In the present study, a reliable clinical prediction model was established by three machine learning algorithms. Multiple logistic regression model was developed to verify these predictors. In this way, we seek to highlight the clinical characteristics and pathogenesis on diagnosis and treatment of tumor-induced AP.

Methods

Patients selection

The data for the prevalence of tumor-induced AP came from retrospective studies. Patients firstly diagnosed AP at the First Affiliated Hospital of Zhengzhou University between 1 January 2013 and 31 December 2021 were enrolled in this study. Clinical medical information was obtained at the admission when AP and tumor diagnosis synchronously happened from the electronic medical record management system. AP patients induced by tumor were pathologically confirmed by histological examination of surgical specimens or fine needle biopsy, which were the tumor group. In contrast, 360 cases were random sampled from those AP patients with other etiologies using R software and the sample was used as the non-tumor group. Given the different primary origins, the tumor group was subdivided into the biliary group, the pancreas group and the ampulla group. Exclusions were made for the whole individuals with: (1) incomplete electronic medical records; (2) under 14 years old; (3) pregnant woman; (4) pancreatic and ampullary surgery and (5) history of pre-existing chronic pancreatitis; exclusions for the tumor group: (1) patients with incomplete pathological diagnosis information; (2) metastatic tumor. The follow-up was calculated from the date of histological diagnosis to 31 January 2022 or death. The study was approved by Ethical Committee of the First Affiliated Hospital of Zhengzhou University (2022-KY-0134).

Diagnostic criteria

AP can be diagnosed if at least two of the following three criteria were fulfilled: (1) abdominal pain (acute onset of persistent and severe epigastric pain, often radiating to the back); (2) serum lipase (or amylase) activity at least three times the upper limit of normal; (3) or characteristic findings of AP on contrast-enhanced CT or, less often, MRI or transabdominal ultrasonography [6]. Severity of AP was classified into MAP, MSAP and SAP, based on the Revised Atlanta classification [7]. Recurrent acute pancreatitis was defined as one or more new episodes of acute pancreatitis at least 3 months after the first episode [8] and absence of morphological criteria for chronic pancreatitis [9]. The numerical rating scale (NRS) was used to assess pain. The TNM stage was evaluated according to the American Joint Commission on Cancer (8th Edition).

Pancreatic duct dilation was defined as the maximum diameter was greater than 3 mm, meanwhile, bile duct dilation was considered as the maximum diameter was greater than 7 mm [10]. Vascular invasion on CT was defined as the fat disappears between the mass and adjacent vessels, the mass wrapped around the adjacent vessel at > 180° and the presence of blocked blood vessels and stenosis [11]. All imaging studies were interpreted by two experienced radiologists who were unaware of the assignments.

Statistical analysis

After filtering the data based on the exclusion criteria, percentages of tumor-induced AP among AP were annually calculated from 2013 to 2021. The etiological composition of patients with AP from 2019 to 2021 was further analyzed by horizontally comparing tumor to other etiologies.

The demographic differences of patients in tumor group were compared to those in non-tumor group. The LASSO regression model with the “lambda.1se” criterion, XGB and random forest were used for the selection of predictive variables. A 75:25 training and test split was used to train and evaluate independent predictors for tumor-induced AP. The randomized data division was developed to avoid data bias and ensure a balanced distribution in both the training and test sets. Performance of these multivariable models was evaluated with receiver-operating characteristic curves (ROC) and calibration. Multiple logistic regression analyses were used to calculate Relative Risk (RR) and corresponding 95% confidence intervals (CIs). A nomogram model was built to evaluate the probability of tumor-induced AP based on the selected predictors. Additional analyses were performed in individuals sorted by the different tumor locations to summarize the differences.

Quantitative variables were presented as mean ± standard deviation (SD) for normal distribution and median (P25P75) for non-normal distribution. Categorical variables were presented as absolute numbers and percentages. t-test was used for continuously normally distributed variables of two groups, one-way ANOVA was used among three groups and SNK method was used for further pair comparison. Wilcoxon test was used to evaluate non-normally distributed quantitative variables of two groups, Kruskal–Wallis H test was used among three groups and Wilcoxon test was used for further pair comparison. Bonferroni was used to correct P. Chi-square test was performed on categorical variables. The cut-off value of the intervals from first episode of AP to tumor diagnosis was defined as the Optimal Operating Point of the ROC. The tumor specific survival curve was drawn using Kaplan–Meier method and assessed using the log-rank test. Statistical significance was set at a two-sided p-value equal to 0.05. All statistical analyses were performed by using SPSS software version 25 (IBM, USA, Version 22.0) and R software (University of Auckland, New Zealand, Version 4.1.1).

Results

Epidemiology

A total amount of 8970 patients were admitted for AP during the study period, and 8637 AP patients were enrolled in the study. The incidence of tumor-induced AP was 1.16% (100/8637), and the incidence was increasing year by year. Up to now, the annual incidence rates of tumor-induced AP from 2013 to 2021 were 0.29% (2/680), 0.14% (1/713), 0.25% (2/805), 0.23% (2/852), 0.46% (5/1090), 0.34% (4/1187), 0.81% (8/983), 3.82% (40/1046) and 2.81% (36/1281).

Among 3310 patients with AP from 2019 to 2021, miscellaneous causes included cholelithiasis (52.5%), hypertriglyceridemia (16.7%), idiopathic (12.7%), diet-related (9.5%), and infection (0.8%), alcohol (1.4%), autoimmune (0.4%), operation (1.5%), dialysis (0.1%), trauma (0.5%), congenital (0.1%), thrombosis (0.0%; 2 cases), pancreatolithiasis (0.5%), poisoning (0.2%), drugs (0.1%), tumor (2.4%), metastasis (0.2%), type 1 diabetes (0.0%; 2 cases), friction of drainage tube (0.0%; 2 cases), ileus (0.0%; 1 case), biliary hemorrhage after cholecystectomy (0.0%; 1 case) and familial adenomatous polyposis (0.0%; 2 cases).

Baseline clinical features

In total, 100 individuals in tumor group and 360 admissions in the non-tumor group were enrolled (mean age 56.67 ± 11.03 versus 56.36 ± 10.70 years, p = 0.000) (Table 1). Compared with the control group, the tumor group was less likely to have gallstone-related episodes as the past history. More individuals in the tumor group had multiple episodes of AP than those in the non-tumor group (59% vs 13.3%, p = 0.000). More frequent attacks of AP were in the tumor group than the control group (Z = 8.403, p = 0.000). It took 8.57 (4.29 20.36) weeks from the first episode of AP to tumor diagnosis. The diagnosis rates at 1, 2, 3 months after the first admission were 37%, 58% and 70%. When comparing to the non-tumor group, the length of stay in the tumor group was longer (Z = 5.275, p = 0.005) and the median cost during the hospitalization was more (Z = 5.474, p = 0.001), respectively.

Table 1 Distribution of baseline characteristics in the tumor group and in the non-tumor group

In tumor group, progressively aggravated intense pain in the upper abdomen was special symptom of 88 patients. Of them, 23 (26.1%) patients had previous attacks of pancreatic pain before first admission. Obstructive jaundice was in 14 patients which may result from tumor itself. MAP was observed in 90 cases, MSAP in 9 cases and SAP in one case.

87 patients (87%) underwent computed tomography (CT), 69 patients (69%) underwent ultrasound (US), 47 patients (47%) underwent magnetic resonance cholangiopancreatography (MRCP), 9 patients (9%) underwent endoscopic ultrasonography (EUS) and 11 patients (11%) underwent positron emission tomography-computed tomography (PET-CT). The sensitivities of CT, US, MRCP, EUS and PET-CT were 97.7%(85/87), 84.1%(58/69), 95.7%(45/47), 100%(9/9) and 81.8%(9/11), which assessed the rate of the number of tumors detected by imaging modalities to the number of exact cases. The presentation under CT was diffuse or focal volume enlargement of the pancreas and diffuse, segmental and cystic expansion of the pancreatic ducts. US showed diffuse enlargement of pancreatic volume, reduced internal echo and unclear boundary. The sensitivity and specificity of pancreatic duct dilation were 68.0% and 91.3%. And the sensitivity and specificity of bile duct dilation were 63.3% and 92.5%. The sensitivity and specificity of double duct sign (DDS) which represented co-existence of pancreatic and bile duct dilation were 51.0% and 96.5%.

Baseline parameters of patients with different tumors

There were 73 cases located in pancreas, 13 cases in ampulla and 14 cases in extrahepatic bile duct. The clinical characteristics of patients with tumor in different sites were summarized in Table 2. Table 3 summarized the indexes with statistically significant differences by pairwise comparison. Pancreatic duct dilation was more likely to be seen in the pancreas group than the ampulla group. The sizes of the pancreas group were significantly larger than those of the biliary and ampulla group. Albumin in the pancreas group was higher than the biliary group and CEA in the pancreas group was higher than the ampulla group (all p < 0.05).

Table 2 Clinicopathological features of tumor-induced AP in different sites
Table 3 Pairwise comparison of characteristics of different origin tumor

In the pancreas group, tumors mostly located in head and neck (56/73) while partly in body and tail (17/73). The comparisons of tumor characteristics in different parts of pancreas were shown in Table 4. According to pathological classification, there were 59 adenocarcinomas, 7 mucinous cystadenomas, 2 acinar cell carcinomas, 1 squamous cell carcinoma, 2 small cell carcinomas, 1 solid pseudopapilloma and 1 intraductal papilloma. Vascular invasion was observed in 14 cases. 5 cases synchronously violated portal vein and mesenteric vessels, 1 case synchronously violated liver and pancreas itself (body and tail) as well as 1 case synchronously violated psoas major and ilium. Single organ metastases included liver (17 cases), duodenum (3 cases), bone (1 case) and common bile duct (1 case). There are 27 cases (37.0%) in stage IV, 19 cases (26.0%) in stage III, 10 cases (13.7%) in stage II (3 case stage IIB and 7 case stage IIA), 17 cases (23.3%) in stage I (14 case stage IB and 3 case stage IA).

Table 4 Demographics and clinical characteristics of patients with pancreatic tumor-induced AP

In the ampulla group, there were 6 villous tubular adenomas and 7 adenocarcinomas. Liver metastasis was observed in 1 case and biliary duct was involved in two cases. There were 3 cases (23.1%) in stage IV, 1 case (7.7%) in stage IIB and 3 cases (23.1%) in stage IB. In the biliary group, there were 12 adenocarcinomas, 1 high-grade neoplasia with canceration and 1 villous adenoma with canceration. Vascular invasion was observed in 2 cases. Single organ metastases included pancreas (1 case), duodenum (1 case) and liver (2 cases). And there were 2 cases (14.3%) in stage IV, 3 cases (21.4%) in stage III, 6 cases (42.9%) in stage II (3 case stage IIB and 3 case stage IIA) and 1 case (7.1%) in stage IB.

Totally, 32% cases were IV stage, 22% cases were III stage, 17% cases were II stage (7 case IIB and 10 case IIA) and 21% cases were I stage (18 case IB and 3 case IA). The differences among the three groups were statistically significant (p = 0.000).

Predictors for tumor-induced AP

All available features with statistical significance in Table 1 except C-reactive protein (CRP) which had many missing values, cost and time were trained by LASSO regression (Figs. 1, 2), XGB (Fig. 3) and random forest model (Fig. 4). Calibration plots and receiver operator characteristic curves were used to evaluate the model. Interestingly, all three methods revealed that age, recurrent attacks, pancreatic duct dilation, bile duct dilation, white blood cell count and percentage of neutrophils were predictors of tumor-induced AP. These variables, as age (1.05 [1.01 1.10], p = 0.013), recurrent attacks (6.19 [1.91 22.05], p = 0.003), pancreatic duct dilation (13.74 [4.04 53.29], p = 0.000), bile duct dilation (8.99 [2.42 36.57], p = 0.001), white blood cell count (0.81 [0.66 0.97], p = 0.032) and percentage of neutrophils (0.96 [0.92 1.00], p = 0.108) were calculated in logistic regression analysis and then used to develop a nomogram (Fig. 5).

Fig. 1
figure 1

Selection of risk factors of tumor-induced AP using the LASSO logistic regression algorithm. A LASSO coefficient profiles of the 15 candidate variables. Vertical line was plotted at the given lambda, selected by tenfold cross-validation with minimum classification error and minimum classification error plus 1 standard error, respectively. For the optimal lambda that gives minimum classification error plus 1 standard error, 6 features with a non-0 coefficient were selected. B Penalization coefficient lambda in the LASSO model was tuned using tenfold cross-validation and the “lambda.1se” criterion. Area under the curve (AUC) metrics (y-axis) were plotted against log (lambda) (bottom x-axis). Top x-axis indicates the number of predictors for the given log (lambda). Red dots indicate average AUC for each model at the given lambda, and vertical bars through the red dots show the upper and lower values of the AUC according to the 10-fold cross-validation. Vertical black lines define the optimal lambda that gives the minimum classification error plus 1 standard error

Fig. 2
figure 2

Performance of the logistic regression algorithm in tumor-induced AP prediction. (A, B) Receiver-operating characteristic curves; (C, D) calibration curves

Fig. 3
figure 3

A Feature correlations and distributions of feature importance for the XGBoost model. Model input variables are ranked in descending order of feature importance. B The receiver operating characteristic curve was plotted though the test set evaluated the trained model. ALP: alkaline phosphatase; DBil: direct bilirubin

Fig. 4
figure 4

Development and assessment of the random forest algorithm in tumor-induced AP prediction. A Relationship between out-of-bag error and number of trees. In total, 139 trees are selected to establish a random forest model; B feature importance; (C, D) Receiver-operating characteristic curves; (E, F) calibration curves

Fig. 5
figure 5

Nomogram of tumor-induced AP prediction was developed using the multivariate logistic regression model. Value assigned to each factor was scored on a scale of 0–100. By adding scores for each factor, one can obtain a total score. On the basis of the total score, the probability of tumor-induced AP is displayed by projecting the score to the bottom risk axis. *: p < 0.05; **: p < 0.01; ***: p < 0.001

Treatment and survival analysis

Endoscopic ultrasound-guided fine-needle biopsy (EUS-FNA) has performed in 7 patients. 38 patients underwent CT-guided biopsy to confirm the diagnosis. 41 patients were managed with pancreaticoduodenectomy, 13 patients underwent distal pancreatectomy, 2 underwent endoscopic ultrasound and endoscopic resection, 1 underwent endoscopic resection and stent implantation, 1 underwent nasojejunal feeding tube implement under endoscopy, 2 underwent cholangiography and drainage tube placement and 1 underwent percutaneous transhepatic cholangial drainage (PTCD). 7 patients merely received chemotherapy. 14 patients received surgical procedures combined with systemic chemotherapy.

There was significantly lower 3 year survival rate for no less than 3 months from AP onset to tumor diagnosis than < 3 months (p = 0.047; Fig. 6). The 1, 2, 3 and 4 year cumulative survival rates of patients with tumor-induced AP were 58.9%, 44.6%, 34.4% and 17.2%. The median overall survival was 495 days (interquartile range 190.12–799.88 days).

Fig. 6
figure 6

Kaplan–Meier curve for tumor specific survival of patients by whether the time from first attack of AP to tumor diagnosis was longer than 3 months or not

Discussion

Correctly diagnosing AP etiology is a crucial step to prescribe the most appropriate therapy and prevent recurrent attacks [12].The distribution of etiologies of AP differs by (1) region, with gallstone and alcohol as the leading causes in the United States and a predominance of gallstones in southern Europe [13], (2) period, with increased non-gallstone-related AP incidence in the early 1990s and decreased incidence in the mid-1990s to mid-2000s [14]. It is noted that tumor as currently common etiology of AP patients in China is increasingly recognized. As the overlap in clinical and imaging features of tumor-induced AP and AP from other etiologies, controversy regarding tumor-induced AP diagnosis (including clinical symptoms, biochemical and morphologic) renders differential diagnosis challenging. For comparison against the LASSO regression, more structurally complex XGB and Random forest were used to investigate predictors of tumor-induced AP in the single center cohort. A new nomogram model that consisted of age, white blood cell count, percentage of neutrophils, pancreatic or bile duct dilation and recurrent attacks was built to create a high predictive value.

A series of events with regard to mass, ranging from pancreatic-duct obstruction, and/or stasis of pancreatic juice, appear to play a fundamental role in the pathogenesis of tumor-induced AP. Mujica et al. also speculated these pathophysiological events may trigger a series of cascading events causing acinar cell disruption, intracellular activation of proteolytic enzymes, pancreatic parenchymal edema, and peripancreatic inflammation and even pancreatic enzymes were activated directly by tumor tissue [15]. Compared with previous studies [16, 17], this study concentrated on three anatomically adjacent locations, pancreas, the papilla Vater and distal bile duct, to assess whether the tumor location influenced the differences in pathogenesis. Pancreas was the main tumor location, especially the head and neck of pancreas, followed by distal bile duct and ampulla. Among the tumors from different sites, pancreatic tumor diameter was significantly larger than the other two groups, suggesting that bile tract and ampullary tumor may have a higher rate of misdiagnosis, and need close follow-up and comprehensive imaging monitor.

With pathology providing the most robust evidence to confirm the etiology, adenocarcinoma, adenoma and mucinous tumor has become common histological types of tumor with recurrent AP as the initial symptom. Squamous cell carcinoma [18], non-Hodgkin’s lymphoma [19] and adenomyoma [20] can also be seen. In this study, both benign and malignant tumor associated AP could induce abdominal effusion, but malignant ascites was mostly related to metastasis. Previous studies have reported that ascites with high amylase content was usually associated with benign tumors [21]. Therefore, ascites biochemical and abscisic cytology examination are of great significance for the comprehensive diagnosis of AP.

Smoking, alcohol consumption and diabetes were shared risk factors of AP and tumor [22], however, there was no significant difference between two groups. Notably, patients with tumor-induced AP were more likely to be older, male and mild entity compared to AP patients with other etiologies. The tumor group mostly presented with intermittently progressive epigastric pain which may result in the difficulty for individual first diagnosis. Furthermore, the time from initial AP to tumor diagnosis seemed to be delayed as Omid et al. described [8] and there were more episodes compared to the non-tumor group. The factors that interfere with an early diagnosis and cause recurrent attacks include that a mild course [7], ineffective imaging screening to distinguish between inflammatory edema and tumorous mass [23] and not very valuable information associated with tumor-induced AP owing to low sensitivity. Both age and recurrent attacks were the independent predictors.

Most cases were MAP which was associated with absence of organ dysfunction [24] and local or systemic complications. The suspicion appeared strengthened when MAP was combined with lower infection index including the white blood cell count, percentage of neutrophils and serum CRP. The white blood cell count was proved to be an independent predictor in the model. Percentage of neutrophils was of importance in ensemble learning, but it was validated to be not significant in the multiple logistic regression (p = 0.108). The effect of percentage of neutrophils needs to be further explored.

In tumor group, lipase was significantly higher than that in the control group while amylase was not. The elevated serum lipase was also seen in pancreatic and ampullary acinar cell carcinoma [25, 26] and it was an additional tool for determinations of recurrence or treatment response as Kruger suggested [27]. Significantly elevated alkaline phosphatase and direct bilirubin have been associated with biliary obstruction in tumor group. There was a persistent increase trend in specific tumor makers, such as CEA, CA199, and CA125. The level of CEA in the pancreas group was higher than the ampulla group, which confirmed malignancies accounted for majority.

Our findings reinforce the widely held belief that precise imaging should be performed when the diagnosis is compounded and patients fail to clinically improve after 2–3 days [28, 29]. CT is widely performed for the assessment of AP severity, however, its contribution to the etiologic diagnosis should not be overlooked [30]. Cho et al. suggested that patients with idiopathic AP should complete CT within 3 months after discharge to exclude occult tumors [31]. When CT does not reassure us against occult malignancy, MRI and MRCP offer alternatives with higher sensitivity but more cost, and EUS has no false positive mass detections when compared with final histopathological diagnosis. Moreover, endoscopic retrograde cholangiopancreatography (ERCP) can diagnose intraductal lesions, relieve obstruction by placing a stent and prevent recurrence until an established diagnosis and more definitive treatment can be offered [32]. We believe that abdominal appearance on imaging should be incorporated into the decision algorithm for early diagnosis of tumor-induced AP.

Radiologic features include but are not limited to focal or diffuse volume enlargement, peripancreatic fluid collections. The classical features of tumor-induced AP involve pancreatic duct dilation [23]. What’s more, co-existence of pancreatic and bile duct dilation (DDS) can improve the diagnostic specificity. Both of them were independent predictors of tumor-induced AP. In this study, pancreatic duct dilation was more likely to occur in pancreatic tumor, especially the head and neck of pancreas. No difference of bile duct dilation was identified among the three groups. DDS is more common in pancreatic head-neck tumor than body-tail tumor as mass obstructs ducts causing marked dilation of upstream duct [17]. DDS has long been considered ominous given its presence in cases of periampullary malignancy. Of note, dilated pancreatic or bile duct in high risk patients with clinical signs require comprehensive workup and careful evaluation of the entire gland and surrounding abdominal structures [33].

When comparing to AP from other etiologies, tumors not only prolong hospitalization of AP patients, but also increase financial burden. The initial management of tumor-induced AP is similar to the others; nevertheless, exact clinical treatment has not been found to improve the whole disease course. Inflammation can increase the difficulty of surgery and postoperative complications by aggravating tissue adhesion and edema, thus affecting surgical efficacy. Timely control of inflammation progression is critical for subsequent treatment [34]. Pancreaticoduodenectomy is the key treatment for malignant tumors in this region [9]. Endoscopic treatment is feasible for small, benign tumors [9], or patients with greater surgical risk than benefit.

Earlier recognition of tumor after the first episode of AP is associated with a less advanced cancer and increases the probability of surgery with curative intent [8]. Patients had low prevalence of distant organ metastasis at diagnosis (26.2%) and high resection frequencies (60.7%) in this study. Although MAP was not generally associated with mortality [35], the 4-year cumulative survival rate of patients with tumor-induced AP was 17.2%. It may be related to the fact that most entities were aggressive (e.g. Stage III/IV tumors accounted for 54% of the patients) and partly preformed palliative. The survival analysis revealed that the outcomes of patients with an interval of less than 3 months between the first episode of AP and tumor diagnosis were more favorable than those of patients with an interval of more than 3 months. Based on poor prognosis of periampullary and pancreatic tumor-induced AP [36], pathogenesis contributes to determinate individualized management strategies and improve prognosis.

However, there are still some limitations to this study. First, it is a retrospective study that is unavoidable to be affected by selection bias. Second, the data, such as the stage about adenoma and high-grade neoplasia, was not included in the study. Third, since it is a single-centre study, it limits the generalization of our findings to other institutions or populations with different resources. Prospective, multicenter and larger scale researches are still needed to confirm the differences in survival outcomes which caused by the initial concerns. The present work supported the value of machine learning methods for exploring for etiology of AP. There remains significant room to develop, validate and implement machine learning based AP diagnostic tools in clinical settings.

Conclusion

More cases of tumor-induced AP than expected have been confirmed, and more standardized guidelines for investigating tumor-induced AP should be put in place. Early elaborate examination of pancreas bile and ampulla is essential for tumor-induced AP. The elderly, recurrence attacks, white blood cell count, percentage of neutrophils and pancreatic or bile ducts dilatation are pretty reliable predictors for diagnosis of tumor-induced AP, thus they should be considered in etiology exploration and the ongoing individualized management of tumor-induced AP.