Machine Learning for Kidney Stone Screening and Prevention

Document Type : Descriptive & Survey

Authors

1 Department of Industrial Engineering, Faculty of Engineering Management, Kermanshah University of Technology, Kermanshah, Iran

2 Department of Urology, Faculty of Medicine, Lorestan University of Medical Sciences, Khorramabad, Iran

10.58209/hehp.14.2.317
Abstract
Aims: Preventive counseling for kidney stone disease requires accurate risk identification; however, traditional interpretation fails to capture complex metabolic interactions. This study aimed to develop a machine learning–based screening tool using routine blood and urine data to identify high-risk individuals and provide actionable insights for patient education.
Instrument & Methods: This retrospective stidy analyzed data from 952 individuals (714 stone formers and 238 controls) with 28 features. Particle Swarm Optimization was used to select features while balancing accuracy and test reduction. An XGBoost model was developed using 5-fold cross-validation. SHAP analysis was used to identify influential predictors.
Findings: Stone formers had higher body amss index, were more frequently male, and showed significant differences in serum uric acid, creatinine, 24-hour urinary calcium, and citrate compared with healthy controls (all p<0.05). The Particle Swarm Optimization-optimized model reduced the number of tests from 28 to 8 features (71% reduction) while achieving 93.49% accuracy (95% CI: 91.8–95.0%). The final panel included age, blood_phosphorus, blood_uric_acid, blood_creatinine, eGFR, urine_pH, Urine_Calcium_24h, and urine_citrate_24h. SHAP identified modifiable risk factors, including low citrate (potassium citrate), elevated calcium (dietary modification), elevated uric acid (purine reduction), and reduced eGFR (renal evaluation).
Conclusion: This tool enables noninvasive risk identification using routine data, supporting targeted preventive counseling in primary care.

Keywords

Subjects

1- Sassanarakkit S, Hadpech S, Thongboonkerd V. Theranostic roles of machine learning in clinical management of kidney stone disease. Comput Struct Biotechnol J. 2023;21:260-6.
2- Nedbal C, Adithya S, Naik N, Gite S, Juliebø-Jones P, Somani BK. Can machine learning correctly predict outcomes of flexible ureteroscopy with laser lithotripsy for kidney stone disease? Results from a large endourology university centre. Eur Urol Open Sci. 2024;64:30-7.
3- He Z, Zhou J, Dong C, Song C, Liao W, Xiong Y, et al. Machine learning and 4D-LFQ quantitative proteomic analysis explore the molecular mechanism of kidney stone formation. Heliyon. 2024;10(14):e34405.
4- Rao NJ, Girish H, Gowrishankar MC, Kumar S, Kumar N. A two-stage deep learning framework for kidney stone detection and clinical severity grading in CT imaging. Inform Med Unlocked. 2025;59:101704.
5- Javid M, Ilangovan AK, Ganapathy R, Sivalingam S, Selvaraj S, Prasad S, et al. Role of posterior acoustic shadow width in ultrasound in determining stone size in urolithiasis. Cureus. 2023;15(11):e49254.
6- Zhu Q, Cheong-Iao Pang P, Chen C, Zheng Q, Zhang C, Li J, et al. Automatic kidney stone identification: An adaptive feature-weighted LSTM model based on urine and blood routine analysis. Urolithiasis. 2024;52(1):145.
7- Kavoussi NL, Floyd C, Abraham A, Sui W, Bejan C, Capra JA, et al. Machine learning models to predict 24 hour urinary abnormalities for kidney stone disease. Urology. 2022;169:52-7.
8- Harianto S, Nursalam N, Maryam D. The effect of health education on treatment compliance in breast cancer patients. Health Educ Health Promot. 2024;12(3):505-11.
9- Liao SH, Chu PH, Hsiao PY. Data mining techniques and applications–A decade review from 2000 to 2011. Expert Syst Appl. 2012;39(12):11303-11.
10- Remeseiro B, Bolon-Canedo V. A review of feature selection methods in medical applications. Comput Biol Med. 2019;112:103375.
11- Saeys Y, Inza I, Larrañaga P. A review of feature selection techniques in bioinformatics. Bioinformatics. 2007;23(19):2507-17.
12- Al Dhuhli R, Al Riyami N, Al Farsi F, Al Khamyasi A, Al Saadi H, Al Alawi S, et al. Comparison of conventional formulas and machine learning models for estimating serum low-density lipoprotein cholesterol. Pract Lab Med. 2026;49:e00524.
13- Wang X, Huang J, Xi J, Liu H, Yuan Y. A complete blood count-based machine learning model for rapid differentiation of aplastic anemia, immune thrombocytopenia, and myelodysplastic syndromes in routine clinical practice. Pract Lab Med. 2026;50:e00526.
14- Mahmoodi F, Andishgar A, Mahmoudi E, Monsef A, Bazmi S, Tabrizi R. Predicting symptomatic kidney stones using machine learning algorithms: insights from the Fasa adults cohort study (FACS). BMC Res Notes. 2024;17(1):318.
15- Shabaniyan T, Parsaei H, Aminsharifi A, Movahedi MM, Jahromi AT, Pouyesh S, et al. An artificial intelligence-based clinical decision support system for large kidney stone treatment. Australas Phys Eng Sci Med. 2019;42(3):771-9.
16- Rashidi E, Langarizadeh M, Sayadi M, Sarkarian M. Machine learning models for predicting the type and outcome of ureteral stones treatments. Adv Biomed Res. 2023;12:234.
17- Mortazavi M, Atapour A, Mohammadi M, Sattari M. Predicting the cause of kidney stones in patients using random forest, support vector machine and neural network. Tehran Univ Med J. 2021;79(9):706-14. [Persian]
18- Bijli MK, Verma P, Singh AP. A systematic review on the potency of swarm intelligent nanorobots in the medical field. Swarm Evol Comput. 2024;86:101524.
19- Mafarja MM, Mirjalili S. Hybrid whale optimization algorithm with simulated annealing for feature selection. Neurocomputing. 2017;260:302-12.
20- Chen Y, Ding W, Hua Q, Yang J, Zhou T, Fu F. A survey on feature selection techniques for biomedical data: Methods and applications. Neurocomputing. 2026;670:132534.
21- Soladoye AA, Joseph TS, Sobowale AA, Bello OJ, Analikwu CC, Olawade DB. Particle swarm optimization in medical applications: A systematic review of data dimension reduction and algorithmic configuration. Intell Hosp. 2026;2(2):100052.
22- Zhang Y, Wang S, Ji G. A comprehensive survey on particle swarm optimization algorithm and its applications. Math Probl Eng. 2015;2015(1):931256.
23- Sengupta S, Basak S, Peters RA. Particle swarm optimization: A survey of historical and recent developments with hybridization perspectives. Mach Learn Knowl Extr. 2019;1(1):157-91.
24- Mohtasham F, Pourhoseingholi M, Hashemi Nazari SS, Kavousi K, Zali MR. Comparative analysis of feature selection techniques for COVID-19 dataset. Sci Rep. 2024;14(1):18627.
25- Enayati E, Hassani Z, Moodi M. The application of an evolutionary model using Fuzzy logic on health literacy data. Health Educ Health Promot. 2019;7(3):139-45.
26- Nopour R, Kazemi-Arpanahi H, Shanbehzadeh M. Discovering the clinical knowledge about breast cancer diagnosis using rule-based machine learning algorithms. Health Educ Health Promot. 2022;10(1):89-97.
27- Ayaad O, Ibrahim R, AlBaimani K, AlGhaithi MM, Sawaya ZG, AlHasni NS, et al. Predicting and classifying the perceptions of learning needs importance in cancer patients; A machine learning approach. Health Educ Health Promot. 2024;12(4):649-60.
28- Sun B, Wei HL. A novel ensemble machine learning approach for interpretable modeling, feature extraction and selection with applications to medical and biomedical signals and data. Concurr Comput Pract Exp. 2026;38(8):e70697.
29- Abbasi T, Pinky L. Personalized prediction in nephrology: A comprehensive review of artificial intelligence models using biomarker data. BioMedInformatics. 2025;5(4):67.
30- Barlett JE, Kotrlik J, Higgins C. Organizational research: Determining appropriate sample size in survey research. Inf Technol Learn Perform J. 2001;19.
31- Rostami M, Berahmand K, Nasiri E, Forouzandeh S. Review of swarm intelligence-based feature selection methods. Eng Appl Artif Intell. 2021;100:104210.
32- Zhao W, Meng H, Dai Z, Zhang L, Cheng Z, Song Y, et al. Prediction of patients with high-risk osteosarcoma on the basis of XGBoost algorithm using transcriptome and methylation data from SGH-OS cohort. JCO Precis Oncol. 2025;9:e2400732.
33- Friedman JH. Greedy function approximation: A gradient boosting machine. Ann Statist. 2001;29(5):1189-232.
34- Lundberg S, Lee SI. A unified approach to interpreting model predictions. arXiv: 1705.07874 [Preprint]. 2017 [cited Dec 30, 2017]. Available from: https://arxiv.org/abs/1705.07874
35- Chen H, Covert IC, Lundberg SM, Lee SI. Algorithms to estimate Shapley value feature attributions. Nat Mach Intell. 2023;5(6):590-601.
36- Altman DG, Bland JM. Measurement in medicine: The analysis of method comparison studies. J Royal Stat Soc Ser D. 1983;32(3):307-17.