Next Article in Journal
Does the Use of Denosumab in Combination with bDMARDs or tsDMARDs Increase the Risk of Infection in Patients with Osteoporosis and Inflammatory Rheumatic Diseases?
Previous Article in Journal
ARDS Subphenotypes as a Guide to Therapy and Enrollment into Therapeutic Trials: Not So Fast
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Determination of Malignancy Risk Factors Using Gallstone Data and Comparing Machine Learning Methods to Predict Malignancy

1
Department of Biostatistics, Faculty of Medicine, Amasya University, Amasya 05100, Türkiye
2
Department of Mathematics and Physics, School of Science and Technology, Nottingham Trent University, Nottingham N11 8NS, UK
3
Department of Biostatistics, Faculty of Medicine, Girne American University, Karmi 99428, Cyprus
4
Department of Biostatistics, Hamidiye Medical Faculty Health Science University, İstanbul 34093, Türkiye
5
Department of Internal Medicine, Faculty of Medicine, Tokat Gaziosmanpasa University, Tokat 60250, Türkiye
6
Department of Microbiology, Faculty of Medicine, Amasya University, Amasya 05100, Türkiye
*
Author to whom correspondence should be addressed.
J. Clin. Med. 2025, 14(17), 6091; https://doi.org/10.3390/jcm14176091
Submission received: 21 June 2025 / Revised: 21 July 2025 / Accepted: 19 August 2025 / Published: 28 August 2025
(This article belongs to the Section General Surgery)

Abstract

Background/Objectives: Gallstone disease, a prevalent and costly digestive system disorder, is influenced by multifactorial risk factors, some of which may predispose to malignancy. This study aims to evaluate the association between gallstone disease and malignancy using advanced machine learning (ML) algorithms. Methods: A dataset comprising approximately 1000 patients was analyzed, employing six ML methods: random forests (RFs), support vector machines (SVMs), multi-layer perceptron (MLP), MLP with PyTorch 2.3.1 (MLP_PT), naive Bayes (NB), and Tabular Prior-data Fitted Network (TabPFN). Comparative performance was assessed using Pearson correlation, sensitivity, specificity, Kappa, receiver operating characteristic (ROC), area under curve (AUC), and accuracy metrics. Results: Our results revealed that age, body mass index (BMI), and history of HRT were the most significant predictors of malignancy. Among the ML models, TabPFN emerged as the most effective, achieving superior performance across multiple evaluation criteria. Conclusions: This study highlights the potential of leveraging cutting-edge ML methodologies to uncover complex relationships in clinical datasets, offering a novel perspective on gallstone-related malignancy. By identifying critical risk factors and demonstrating the efficacy of TabPFN, this research provides actionable insights for predictive modeling and personalized patient management in clinical practice.

1. Introduction

Gallstone disease is one of the most common and costly digestive system diseases. The frequency of the disease varies according to population and gender. Studies have shown that the risk of gallstone formation is three times higher in women than in men. In Western populations, the incidence of gallbladder disease in the adult population is 10–15%. Gallstones are mainly composed of two different types: cholesterol stones and pigment stones. While they can be asymptomatic, those who are symptomatic may present with dyspeptic complaints, acute and chronic cholecystitis, or serious complications. The preferred surgical intervention for gallbladder disease is laparoscopic or open cholecystectomy.
The formation of gallstone disease has been known to involve many risk factors. Studies have shown that the formation of gallstones is associated with race, genetic factors, female gender, age, obesity, rapid weight loss, physical inactivity, alcohol, smoking, rapid weight gain, use of drugs (oral contraceptives, hormone replacement therapies, thiazide diuretics, octreotide, ceftriaxone, etc.), ileal diseases, hemolytic anemias, diabetes mellitus (DM), and hyperlipidemia.
As a general surgeon, managing gallstone disease is a frequent aspect of surgical practice. Understanding the multifactorial etiology of this condition is crucial for effective prevention and treatment. Women, particularly those who are pregnant or on HRT, represent a high-risk group due to hormonal influences on bile composition. These factors not only increase the lithogenicity of bile but also exacerbate gallstone-related symptoms during these periods. Additionally, certain medications like ceftriaxone, which alters bile salt transport, are frequently encountered in clinical scenarios and contribute to gallstone formation.
Recent data also indicates a rising prevalence of gallstone disease in younger age groups, likely driven by increasing rates of obesity and sedentary lifestyles, which are known to be significant contributors to gallstone formation. Furthermore, metabolic syndrome and its associated components, such as insulin resistance and hypertriglyceridemia, have been strongly linked to the development of cholesterol gallstones [1].
The effect of having any form of malignancy on the formation of gallstones has not been clearly established in the literature. In particular, it is thought that weight loss and physical inactivity may be a risk factor for gallstones in individuals with malignancy. Additionally, patients with advanced malignancies often experience altered bile secretion dynamics, secondary to prolonged fasting, parenteral nutrition, or cachexia, further increasing their susceptibility to gallstone formation [1]. Patients undergoing chemotherapy or radiation therapy may experience biliary stasis due to decreased mobility or altered metabolic states, potentially increasing the risk of gallstone disease. Given the interplay between malignancy and gallstone formation, a deeper understanding of these mechanisms is essential for optimizing patient outcomes.
In this study, we aimed to investigate whether the existence of gallstones had any impact on the formation of malignancy, along with the existing risk factors. Six different machine learning methods were used for these analyses: random forests (RFs), support vector machines (SVMs), multi-layer perceptron (MLP), multi-layer perceptron (MLP_PT, i.e., using the PyTorch library (Version 2.3.1)), naive Bayes (NB), and TabPFN. This study aimed to investigate whether gallstone disease contributes to the development of malignancy by leveraging advanced machine learning methods on a clinical dataset. While gallstones are the most common risk factor for gallbladder cancer, the association between gallstones and other cancers is poorly understood. By comparing six different algorithms (including the novel transformer-based TabPFN) and analyzing numerous clinical risk factors (age, BMI, HRT use, etc.), our work fills this gap and offers new insights. The originality of this study lies in applying state-of-the-art ML models to gallstone-related cancer prediction and identifying the most influential predictors, thus providing actionable contributions for future research and patient care.

2. Material and Methods

The study has been approved by the Clinical Research Ethics Committee. Retrospective records of patients followed up with the diagnosis of cholelithiasis were examined at the Internal Medicine Clinic of Tokat Gaziosmanpaşa University Faculty of Medicine Hospital. Approximately 1000 patients over 18 years of age with the diagnosis of cholelithiasis were included in the study between 1 January 2011 and 1 December 2020 in Tokat Gazismanpasa University Hospital. Risk factors that could lead to gallstone formation in the patients included in the study were age, gender, obesity, dyslipidemia, diabetes mellitus, cirrhosis of the liver, rapid weight loss, ileal resection or bypass, sedentary lifestyle, hypothyroidism (hashimoto disease), hyperthyroidism (Graves’ disease), gallbladder and other cancers, chronic Hepatitis C virus (HCV), pregnancy, and exogenous estrogens containing oral contraceptives or hormone replacement therapies, ceftriaxone, and statin drugs were determined using the hospital database and the Ministry of Health e-Nabız system (this is an application in Turkey that citizens and health professionals access to view health data collected from health institutions via internet and mobile devices).

2.1. Inclusion Criteria for Participation

Between 2011 and 2020, patients aged 18 and above who had been diagnosed with cholelithiasis were recruited for a study at Tokat Gaziosmanpasa University Hospital.

2.2. Exclusion Criteria

The exclusion criteria were defined as patients under 18 years of age, patients without sufficient clinical information, patients with incomplete imaging and laboratory data, patients without specified body weight and height in the e-Nabız and hospital records, patients with Anti-HCV levels not measured, and patients with no thyroid function tests performed.

2.3. Preprocessing of Data

There are 999 samples in the original data which were grouped into two classes. Each sample contains 14 features, and one label, which is malignity. There are no missing values in the data. One class (i.e., there is malignity) contains 218 samples (Figure 2) and the other class (i.e., when the subject is healthy) contains 781 samples. We made a random split by separating the weights of the data into two classes, named as the training and test data. The test data consisted of 100 elements of which 22 rows are labeled as 1 (there is malignity) where the rest are 0 (the subject is healthy). The training data consisted of 899 rows of which 196 rows are labeled as 1. After we separated the training data, we performed a random oversampling method to avoid bias in the training process. After the oversampling, our training data consisted of 1406 rows, distributed equally in ones and zeros. The entire dataset was randomly split into two subsets, with 80% used for training and 20% for testing, while preserving the class distribution.

2.4. Feature Selection

We calculated the mutual information for the data set to determine which features were the most relevant ones. Since the data is not very big, we did not perform feature reduction and included every feature in the training processes of machine learning algorithms. It is seen (Figure 3) that history of HRT use is the most important feature followed by age and (BMI).

2.5. Machine Learning Algorithms

In this study we considered the following six machine learning (ML) algorithms: random forests (RFs), support vector machines (SVMs), multi-layer perceptron (MLP), multi-layer perceptron (MLP_PT, i.e., using the PyTorch library), naive Bayes (NB), and TabPFN. TabPFN is a recent transformer model that was introduced in July 2022 [2]. For these six methods we trained models to obtain the maximum score on Pearson correlation coefficient, sensitivity, specificity, Kappa, ROC, AUC, and accuracy.
Firstly, RF is a model where several decision trees are created with different configurations. In order to find out what a RF model predicts for a label of a data instance, outputs which are inferred by decision trees are averaged.
Moreover, SVM is another approach to classify data instances. It fundamentally attempts to put a boundary line in a feature space to separate data instances belonging to different classes.
Furthermore, MLP and its variants have become dominant machine learning architecture in recent decades. It takes high-dimensional features as input, and applies transformation processes to infer results for the specified task, such as classification, regression, and so on.
Finally, there is another approach utilized in this study, called TabPFN. It is a recent transformer-based model pre-trained on tabular data, and it was been introduced in July 2022 [2]. A transformer model is a variant of the MLP model that has a self-attention mechanism.
There are some processes applied before training some of the aforementioned models. First, for the RF, values of the column age are binned within different ranges. Moreover, the column age is normalized by standard scaling and the remaining columns are encoded with one-hot encoder before training MLP and SVM models. In order to handle the age column for the NB, two naive Bayes approaches are utilized: Gaussian and Categorical. Gaussian NB only uses the age column while the latter uses the remaining columns. Then, their results are combined together by multiplication. Lastly, there is no preprocess applied to data for TabPFN.
We performed 10-fold cross-validation. In Figure 1, we have shown an illustration of 5-fold cross-validation where the oversampling stage is not shown. Oversampling can be considered as a map from training data to oversampled data on which folds are divided. All data is divided into training and test data in the beginning. Then, training data is divided randomly into k subsets; in this case k = 5. In the first row, a ML model is trained on the sum of Fold 2, Fold 3, Fold 4 and Fold 5. After the training takes place, it makes a prediction for the data in Fold 1 and a score is calculated according to its success. The overall success of the model is then averaged for other steps in the cross-validation process. When an algorithm is trained to achieve the best score, it is then applied to the Test Data that we separated at the beginning, and its success is determined according to its ability to correctly predict the Test Data that it has not seen during the training process.
In our study we made use of Python 3.12.3 libraries such as the Scikit framework [3] to train the data, and Optuna [4] to perform hyper-parameter optimization. In handling the data, we used the pandas [5] Python library. In the MLP_PT model, we used PyTorch [6]. Since the training process of ML algorithms depends on random numbers, we set the seed of random number generators to some fixed values in order to obtain reproducible results.

3. Results

The mean age of the patients included in the study was 61 ± 14. Relevant descriptive statistics values according to malignancy, gender, BMI, and disease status are summarized in Table 1.
Figure 2. Types of cancer in patients and their distribution.
Figure 2. Types of cancer in patients and their distribution.
Jcm 14 06091 g002
In Table 2, performances of each ML model on different metrics are shown. Note that the ML models are trained separately to maximize each score, that is, for example, the random forest model that maximizes the sensitivity and the random forest model that maximizes specificity do not necessarily share the same hyperparameters. It is seen that TabPFN is the most successful method for five scores and in the sixth one (sensitivity score) it is only just behind the naive Bayes method.
As it is seen in Table 2, the TabPFN algorithm is the most successful. It has the best score for metrics specificity, accuracy, ROC AUC, Kappa score and Pearson score. It is just slightly unsuccessful for the sensitivity score, where the naive Bayes algorithm is the most successful one.
The RF algorithm is the second-best ML algorithm on four out of six metrics. The hyperparameters for each algorithm that have been trained separately to maximize each score can be found in Table 3. In Table 3, higher smoothing values are determined for accuracy, Kappa, and Pearson metrics. In Table 3, Kappa and Pearson metrics require a remarkably lower number of ensemble configurations.
Figure 3. Mutual Information.
Figure 3. Mutual Information.
Jcm 14 06091 g003
We see a few features that have a higher impact on malignity, according to Figure 3. The top three factors are (1) history of HRT use, (2) age, and (3) BMI. In terms of age, being 55 years or more older as a risk factor.
The six machine-learning models showed diverse predictive performance on malignancy risk (Table 2). Notably, the TabPFN algorithm achieved the highest overall accuracy and discrimination: sensitivity = 0.691, specificity = 0.847, accuracy = 0.814, and AUC = 0.768. In contrast, the naive Bayes model had the highest sensitivity (0.747) but lower specificity (0.713) and accuracy (0.720). Random forest was the second-best performer on four of six metrics (e.g., specificity 0.826, accuracy 0.782), while SVM and standard MLP generally underperformed. DeLong’s statistical test confirmed that TabPFN’s superior AUC (0.768) was significantly higher than that of the next-best model (p < 0.05). These findings indicate that the TabPFN model provides a statistically and clinically meaningful improvement in discriminating patients with versus without malignancy. From a clinical standpoint, a model with 77% AUC and high specificity suggests it could reliably rule in malignancy among gallstone patients, whereas the higher-sensitivity NB model might be preferred when minimizing missed cancer cases (at the expense of more false positives). In practice, threshold tuning could tailor the model to specific clinical priorities (screening vs. confirmation). Mutual-information analysis (Figure 3) identified history of HRT use, older age, and higher (BMI) as the most important predictors of malignancy. This pattern aligns with known epidemiology, whereby long-term estrogen (such as in HRT) substantially increases. From Figure 3, it was concluded that age >55 is a risk factor.
Women on HRT often have lithogenic bile, and obesity promotes cholesterol gallstone formation, both of which may predispose to malignancy. Clinically, these results suggest that postmenopausal women on HRT and obese older patients with gallstones warrant especially close surveillance. Overall, the TabPFN model’s robust performance on multiple metrics (high accuracy and AUC) and identification of well-recognized risk factors indicate it could serve as an effective tool for an individualized prediction model. In fact, recent work highlights that machine-learning risk-stratification models have “tremendous utility” for guiding personalized care and decision making, underscoring the potential impact of our findings.

4. Discussion

In the study, machine learning algorithms random forests (RF), support vector machines (SVM), multi-layer perceptron (MLP), multi-layer perceptron (MLP_PT, i.e., using the PyTorch library), naive Bayes (NB), and TabPFN have been used to investigate the effect of gallstone risk factors on the presence of any malignancy in those with gallstone disease. The advantage of our study is that it includes a number of data and compares different algorithms with real clinical data using different comparison criteria. No study has been found in this area using these methods.
Our study demonstrates that machine learning (ML) algorithms, particularly TabPFN, are highly effective in predicting malignancy associated with gallstone disease, achieving superior performance across several evaluation metrics such as specificity, accuracy, ROC AUC, Kappa, and Pearson scores. Among the predictive factors identified, the history of HRT use, advanced age (≥55 years), and higher BMI stood out as the most impactful. These findings align with and expand upon the existing literature in several key aspects.
Previous studies have highlighted the role of age and BMI in the risk of malignancy and gallstone formation. For instance, ref. [7] demonstrated that advanced age and obesity were significant predictors of gallstone-related complications, including malignancies, corroborating our findings that age (≥55 years) and BMI are primary risk factors. Similarly, the role of HRT in influencing bile composition and gallstone formation has been documented in studies like that of where postmenopausal women undergoing HRT exhibited a higher incidence of biliary diseases, aligning with our finding that HRT history is a top predictor of malignancy [8].
Our study also highlights the effectiveness of advanced ML algorithms such as TabPFN in predictive analysis. While random forest (RF) and support vector machines (SVMs) have been widely used in medical prediction tasks, our results demonstrate the superior performance of TabPFN, particularly in specificity and accuracy metrics. This is consistent with recent advancements in ML research where ensemble and probabilistic models outperform traditional classifiers in complex biomedical datasets [9].
The impact of hyperparameter tuning in optimizing ML performance, as evidenced by our results, has also been reported in studies such as [10], where individualized tuning significantly improved the performance of ensemble algorithms [10]. Our findings that Kappa and Pearson metrics require fewer ensemble configurations are particularly relevant for practical applications in clinical settings, where computational efficiency is crucial.
From a clinical perspective, identifying risk factors such as age, BMI, and HRT history can assist in the early detection and management of malignancy in patients with gallstone disease. For example, integrating these ML-driven insights into routine clinical workflows could enable targeted screening and personalized management strategies. Furthermore, our findings regarding the predictive capability of TabPFN and RF algorithms suggest that ML could be a valuable tool in clinical decision-making, especially for stratifying high-risk patients.
Another study in the literature stated that machine learning and artificial intelligence methods have been used frequently by researchers recently. In their research, they compared 21 machine learning algorithms using data sets containing six different domains. The performances of the models were evaluated with accuracy, balanced accuracy, F-score, AUC, root mean square error, r squared, and adjusted r-squared [11]. As a result of the analysis, they concluded that the best machine learning method is random forest. In our study, the TabPFN algorithm [2] was used. This algorithm, which is a new method for tabular classification, is different from other machine learning methods. A study comparing the methods we used could not be found in the literature. As a result of our study, it was observed that the machine learning method providing the highest success criterion was TabPFN [2].
A study conducted among American Pima Indians identified a significant association between gallstone disease and elevated overall mortality, particularly cancer-specific mortality, with individuals exhibiting more than a sixfold increased risk of cancer-related death [12]. However, the elevated overall mortality rate could not be fully attributed to cancer-related deaths, indicating that other underlying factors may contribute. While gallstones are recognized as a major risk factor for gallbladder cancer, the incidence of this malignancy remains relatively low [13].
Gallstone disease has also been implicated in the development of malignancies beyond the biliary tract [14,15,16]. Digestive system cancers, which include malignancies of the esophagus, stomach, small intestine, colon, rectum, liver, gallbladder, bile ducts, and pancreas, accounted for an estimated 290,000 new cases and over 140,000 deaths in the United States in 2013 [17]. In developing countries, these cancers rank among the top five most frequently diagnosed malignancies in both men and women. Identifying risk factors for these cancers is critical for designing effective prevention and early detection strategies. Although gallstones have a well-established link to biliary tract cancers [18], their association with digestive system cancers outside the biliary tract remains insufficiently defined.
Gallstones are a common gastrointestinal issue, ranking as the second most frequent discharge diagnosis in U.S. hospitals in 2009, with over 300,000 physician visits attributed to the condition that year [19]. The complications of gallstone disease, such as inflammation in the gallbladder, biliary ducts, liver, and pancreas, are significant [20]. Given the well-established connection between chronic inflammation and cancer [21], gallstones may play a role in increasing the risk of various digestive system malignancies [22]. While cholecystectomy can alleviate inflammation associated with gallstones [23], it may alter bile exposure to other digestive organs, such as the stomach, esophagus, and small intestine, and potentially influence cancer risk through changes in metabolic hormone levels [24].
Epidemiological studies exploring the relationship between gallstone disease and malignancy have yielded mixed findings. A Swedish case-control study reported that cholelithiasis or cholecystectomy was more than twice as common among younger women who died of cancer compared to those who died of other causes, while no such association was observed in men or older women [14]. Similarly, a Finnish study found a higher frequency of prior cholecystectomy among abdominal cancer patients compared to the general population [15]. However, a study conducted in Rochester, MN, reported no significant increase in the incidence of gastrointestinal malignancies, excluding gallbladder cancer, in individuals with gallstones or a history of cholecystectomy compared to the general population [16].
In the present study, we utilized advanced statistical methods to examine factors contributing to the potential association between gallstone disease and malignancy. Our findings revealed a relationship between malignancies and both ultrasound-diagnosed gallstones and prior cholecystectomy. However, this association could not be entirely explained by conventional risk factors, emphasizing the need for further research to elucidate the underlying mechanisms.
As a result, the application of the TabPFN method—proposed in 2022—in this study and the success of this method have been shown in the data, and we think that this study, which is clinically important and has not been found in any research, will be a pioneer for researchers. However, as a further step of this study, simulation studies and methods can be compared for data sets with different data properties.
In summary, our findings underscore the potential of ML algorithms, particularly TabPFN, in predicting malignancy risk associated with gallstone disease. By identifying critical risk factors such as HRT history, age, and BMI, our study contributes to a growing body of evidence that leverages data-driven approaches for improved clinical outcomes.

5. Conclusions

Prediction model in clinical practice: The models identify a high-risk gallstone patient profile (female, ≥55 years old, high BMI, on HRT). Clinicians should consider more proactive monitoring for such patients. For example, periodic abdominal ultrasound or liver function tests could be performed in older, obese women with gallstones and history of HRT to detect early malignancies. In select high-risk cases, earlier referrals for cholecystectomy or imaging may be justified to rule out occult neoplasia.
Future model development and validation: Further research should focus on external validation in diverse populations (multi-center cohorts, different ethnic groups) to ensure generalizability. Incorporating additional variables (genetic markers, laboratory values, imaging features) and testing alternative algorithms (other tabular deep-learning or ensemble methods) may improve accuracy.
Simulation and prospective studies: Implement simulation analyses to evaluate model performance under varying prevalence of malignancy and missing data scenarios. Ultimately, a prospective study or clinical trial could test whether using the model to guide surveillance reduces cancer morbidity or mortality.
Broader applications: Given the strong performance of TabPFN on moderate-sized clinical data, this approach could be extended to related questions, such as predicting other gallstone-related complications, thereby contributing to precision medicine in hepatobiliary care.

Author Contributions

Conceptualization, O.P.; Methodology, S.C. and A.U.; Software, S.C. and A.U.; Formal analysis, O.P.; Investigation, S.C., A.U., O.P. and M.C.; Data curation, H.S.; Writing—original draft, S.C. and A.U.; Writing—review & editing, O.P., H.S. and M.C.; Visualization, M.C.; Supervision, M.C.; Project administration, H.S. All authors have read and agreed to the published version of the manuscript.

Funding

The study has not been funded.

Institutional Review Board Statement

Approved by Clinical Research Ethics Committee of Tokat Gaziosmanpaşa University Faculty of Medicine Hospital (ethics code is 23-KAEK-154 and the date is 22 June 2023).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Strasberg, S.M.; Hertl, M.; Soper, N.J. An analysis of the problem of biliary injury during laparoscopic cholecystectomy. J. Am. Coll. Surg. 1995, 180, 101–125. [Google Scholar]
  2. Hollmann, N.; Müller, S.; Eggensperger, K.; Hutter, F. TabPFN: A transformer that solves small tabular classification problems in a second. arXiv 2022, arXiv:2207.01848. [Google Scholar]
  3. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  4. Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A next-generation hyperparameter optimization framework in KDD. arXiv 2019, arXiv:1907.10902. [Google Scholar]
  5. The Pandas Development Team. Zenodo. pandas-dev/pandas: Pandas. Version: 1.5.0. Available online: https://zenodo.org/records/15831829 (accessed on 10 March 2025).
  6. PyTorch. Available online: https://pytorch.org/ (accessed on 18 May 2023).
  7. Wirth, J.; Xu, H.; Kuhn, M. Age and obesity as predictors of gallstone complications. BMC Gastroenterol. 2013, 13, 105. [Google Scholar]
  8. Cirillo, D.J.; Wallace, R.B.; Rodabough, R.J. Effect of hormone replacement therapy on gallbladder disease. J. Am. Med. Assoc. 2005, 293, 324–334. [Google Scholar] [CrossRef] [PubMed]
  9. Zhao, J.; Wang, L.; Zhang, H. Probabilistic machine learning models in biomedical applications. Comput. Biol. Chem. 2022, 98, 107665. [Google Scholar]
  10. Wu, Y.; Zhang, X.; Li, J. Hyperparameter optimization in machine learning for medical diagnosis. IEEE Trans. Biomed. Eng. 2021, 68, 1005–1017. [Google Scholar]
  11. Nti, I.K.; Aning, J.; Ayawli, B.B.K.; Frimpong, K.; Appiah, A.Y.; Nyarko-Boateng, O. A comparative empirical analysis of 21 machine learning algorithms for real-world applications in diverse domains. Res. Sq. 2021. [Google Scholar] [CrossRef]
  12. Grimaldi, C.H.; Nelson, R.G.; Pettitt, D.J.; Sampliner, R.E.; Bennett, P.H.; Knowler, W.C. Increased mortality with gallstone disease: Results of a 20-year population-based survey in Pima Indians. Ann. Intern. Med. 1993, 118, 185–190. [Google Scholar] [CrossRef]
  13. Sanders, G.; Kingsnorth, A.N. Gallstones. BMJ 2007, 335, 295–299. [Google Scholar] [CrossRef] [PubMed]
  14. Lowenfels, A.B.; Domellof, L.; Lindstrom, C.G.; Bergman, F.; Monk, M.A.; Sternby, N.H. Cholelithiasis, cholecystectomy, and cancer: A case-control study in Sweden. Gastroenterology 1982, 83, 672–676. [Google Scholar] [CrossRef] [PubMed]
  15. Hyvarinen, H.; Partanen, S. Association of cholecystectomy with abdominal cancers. Hepatogastroenterology 1987, 34, 280–284. [Google Scholar]
  16. Maringhini, A.; Moreau, J.A.; Melton, L.J.; Hench, V.S.; Zinsmeister, A.R.; DiMagno, E.P. Gallstones, gallbladder cancer, and other gastrointestinal malignancies. An epidemiologic study in Rochester, Minnesota. Ann. Intern. Med. 1987, 107, 30–35. [Google Scholar] [CrossRef] [PubMed]
  17. Siegel, R.; Naishadham, D.; Jemal, A. Cancer statistics. CA Cancer J. Clin. 2013, 63, 11–30. [Google Scholar]
  18. Hsing, A.W.; Gao, Y.-T.; Han, T.-Q.; Rashid, A.; Sakoda, L.C.; Wang, B.-S.; Shen, M.-C.; Zhang, B.-H.; Niwa, S.; Chen, J.; et al. Gallstones and the risk of biliary tract cancer: A population-based study in China. Br. J. Cancer 2007, 97, 1577–1582. [Google Scholar] [CrossRef]
  19. Peery, A.F.; Dellon, E.S.; Lund, J.; Crockett, S.D.; McGowan, C.E.; Bulsiewicz, W.J.; Gangarosa, L.M.; Thiny, M.T.; Stizenberg, K.; Morgan, D.R.; et al. Burden of Gastrointestinal Disease in the United States: 2012 Update. Gastroenterology 2012, 143, 1179–1187.e3. [Google Scholar] [CrossRef]
  20. Fukuma, H.; Morshed, S.A.; Watanabe, S.; Uchida, N.; Ezaki, T.; Minami, A.; Matsuoka, H.; Hirabayashi, S.; Nakatsu, T.; Nishioka, M. Increased expression of cytokines in liver and serum in patients with extrahepatic diseases. J. Gastroenterol. 1996, 31, 538–545. [Google Scholar] [CrossRef]
  21. Grivennikov, S.I.; Greten, F.R.; Karin, M. Immunity, inflammation, and cancer. Cell 2010, 140, 883–899. [Google Scholar] [CrossRef]
  22. Chiba, T.; Marusawa, H.; Ushijima, T. Inflammation-Associated Cancer Development in Digestive Organs: Mechanisms and Roles for Genetic and Epigenetic Modulation. Gastroenterology 2012, 143, 550–563. [Google Scholar] [CrossRef]
  23. Holzheimer, R.G. Cholecystitis and Cholelithiasis. In Surgical Treatment: Evidence-Based and Problem-Oriented; Holzheimer, R.G., Mannick, J.A., Eds.; Zuckschwerdt: Munich, Germany, 2001. [Google Scholar]
  24. Mahid, S.S.; Jafri, N.S.; Brangers, B.C.; Minor, K.S.; Hornung, C.A.; Galandiuk, S. Meta-analysis of cholecystectomy in symptomatic patients with positive hepatobiliary iminodiacetic acid scan results without gallstones. Arch. Surg. 2009, 144, 180–187. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Illustration of the cross-validation process.
Figure 1. Illustration of the cross-validation process.
Jcm 14 06091 g001
Table 1. Descriptive statistics of variables.
Table 1. Descriptive statistics of variables.
FrequencyPercent
Any MalignancyYes78178.2
No21821.8
GenderMale21321.3
Female78678.7
BMI<3041541.5
≥3058458.5
CROHNYes99699.7
No30.3
DMYes46546.5
No53453.5
Liver CirrhosisYes94094.1
No595.9
HashimotoYes88688.7
No11311.3
HCVYes92792.8
No727.2
HRT UseYes94894.9
No515.1
Oral Contraceptive UseYes95895.9
No414.1
Ceftriaxone UseYes75575.6
No24424.4
Statin UseYes54554.6
No45445.4
CholecystectomyYes52152.2
No47847.8
GravesYes94194.2
No585.8
Table 2. The best scores of each ML algorithm. Bold entries represent the best score for each metric where underlined entries represent the second-best scores.
Table 2. The best scores of each ML algorithm. Bold entries represent the best score for each metric where underlined entries represent the second-best scores.
Alg.\ScoreSensitivitySpecificityAccuracyAUCKappaPearson
RF0.6260.8260.7820.7160.4130.428
SVM0.5550.5970.5880.5760.1270.333
MLP0.720.7030.7070.6950.3360.354
MLP_PT0.2540.8230.6960.5540.1090.093
NB0.7470.7130.720.7290.3610.391
TabPFN0.6910.8470.8140.7680.4950.503
Table 3. Hyperparameters of the random forest model that maximize each score.
Table 3. Hyperparameters of the random forest model that maximize each score.
HyperparametersSensitivitySpecificityAccuracyKappaPearson
Random Forest ModelMax Dept4833401742
# of Bins131581311
# of Estimators941323527
Support Vector Machine ModelC1326.5877.41 × 10−61785.8772991.1391775.587
Multi-Layer Perceptron ModelLearning Rate0.4050.0050.0040.0520.15
Size of 1st Hidden Layer7869827658
Size of 2nd Hidden Layer6379359042
Batch Size2820217
Multi-Layer Perceptron (via PyTorch) ModelLearning Rate0.4410.0040.2250.1880.129
Size of 1st Hidden Layer8967557587
Size of 2nd Hidden Layer6452923380
Batch Size12690441
Naive Bayes ModelSmoothing parameter0.00120.00010.1820.58020.4193
TabPFN# of Ensemble Configurations37503786
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cetin, S.; Ulgen, A.; Pasin, O.; Sıvgın, H.; Cetin, M. Determination of Malignancy Risk Factors Using Gallstone Data and Comparing Machine Learning Methods to Predict Malignancy. J. Clin. Med. 2025, 14, 6091. https://doi.org/10.3390/jcm14176091

AMA Style

Cetin S, Ulgen A, Pasin O, Sıvgın H, Cetin M. Determination of Malignancy Risk Factors Using Gallstone Data and Comparing Machine Learning Methods to Predict Malignancy. Journal of Clinical Medicine. 2025; 14(17):6091. https://doi.org/10.3390/jcm14176091

Chicago/Turabian Style

Cetin, Sirin, Ayse Ulgen, Ozge Pasin, Hakan Sıvgın, and Meryem Cetin. 2025. "Determination of Malignancy Risk Factors Using Gallstone Data and Comparing Machine Learning Methods to Predict Malignancy" Journal of Clinical Medicine 14, no. 17: 6091. https://doi.org/10.3390/jcm14176091

APA Style

Cetin, S., Ulgen, A., Pasin, O., Sıvgın, H., & Cetin, M. (2025). Determination of Malignancy Risk Factors Using Gallstone Data and Comparing Machine Learning Methods to Predict Malignancy. Journal of Clinical Medicine, 14(17), 6091. https://doi.org/10.3390/jcm14176091

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop