A Machine Learning-based Model to Recognize Kidney Stone Diseases

Document Type : Original Article

Authors

1 Faculty of Pharmacy, Ayatollah Amoli Branch, Islamic Azad University, Amol, Iran

2 Department of Toxicology and Pharmacology, Faculty of Pharmacy, Ayatollah Amoli Branch, Islamic Azad University, Amol, Iran

3 Faculty of Pharmacy, Tehran University of Medical Sciences, Tehran, Iran

10.30491/hpr.2026.513489.1485
Abstract
Background: Kidney stones significantly raise healthcare expenses due to the requirement for specialized treatments and frequent hospital visits. Kidney stones lower workforce productivity because affected individuals frequently miss work or are less efficient due to pain and the necessity of treatment. In society, kidney stones lead to reduced productivity and quality of life, affecting both individuals and the broader economy.
Objectives: The primary objective of this study is to analyze the influence of urine-based biochemical and physical parameters on kidney stone formation and to develop a high-accuracy machine learning model for early kidney stone prediction.
Methods: In this paper, data analytics methods are used to investigate kidney stones based on urea analysis and uncover valuable insights from the relationship between various factors. Additionally, a predictive model is developed by integrating deep learning with Particle swarm optimization (PSO) algorithms, where PSO is utilized to tune the model hyperparameters.
Results: This model boasts an impressive 98.1% accuracy in predicting kidney stones. Such a proactive approach can significantly enhance patient outcomes by preventing the onset of painful and debilitating kidney stones.
Conclusion: In this research, it was shown that early prediction allows for timely medical intervention, reducing symptom severity and preventing complications like urinary tract infections or kidney damage. Consequently, the need for emergency treatments and hospitalizations is minimized, lowering healthcare costs.

Keywords


1.       Scales CD, Tasian GE, Schwaderer AL, Goldfarb DS, Star RA, Kirkali Z. Urinary stone disease: advancing knowledge. Patient Care, and population health. Clin J Am Soc Nephrol. 2016;11:1305-12. doi:10.2215/cjn. 13251215
2.       Daudon M, Frochot V, Bazin D, Jungers P. Drug-induced kidney stones and crystalline nephropathy: pathophysiology, prevention and treatment. Drugs. 2018;78(2):163-201. doi:10.1007/s40265-017-0853-7
3.       Ghani KR, Rojanasarot S, Cutone B, Bhattacharyya SK, Krambeck AE. Economic burden of complicated ureteral stent removal in patients with kidney stone disease in the USA. J Comp Eff Res. 2022;11(17): 1253-61. doi:10.2217/cer-2022-0153
4.       Luyckx VA, Tuttle KR, Garcia-Garcia G, Gharbi MB, Heerspink HJ, Johnson DW, et al. Reducing major risk factors for chronic kidney disease. Kidney Int Suppl. 2017;7(2):71-87. doi:10.1016/j.kisu.2017.07.003
5.       Kim WJ, Jin P, Kim WH, Kim J. Utilizing machine learning to discern hidden clinical values from big data in urology. Investig Clin Urol. 2020;61(3):239-41. doi:10.4111/icu.2020.61.3.239
6.       Zheng J, Yu H, Batur J, Shi Z, Tuerxun A, Abulajiang A, et al. A multicenter study to develop a non-invasive radiomic model to identify urinary infection stone in vivo using machine-learning. Kidney Int. 2021;100(4): 870-80. doi:10.1016/j.kint.2021.05.031    
7.       Gonz lez-Enguita C, Garc a-Gim nez R. Kidney stones: crystal characterization. Crystals. 2024;14(3): 238. doi:10.3390/cryst14030238
8.       De Coninck V, Skolarikos A, Juliebø-Jones P, Joris M, Traxer O, Keller EX. Advancements in stone classification: unveiling the beauty of urolithiasis. World J Urol. 2024;42(1):46. doi:10.1007/s00345-023-04746-9
9.       Zhou Z, Xu T, Zhang X. Empowerment of AI algorithms in biochemical sensors. TrAC Trends Anal Chem. 2024;173:117613. doi:10.1016/j.trac.2024. 117613
10.     Kazemi Y, Mirroshandel SA. A novel method for predicting kidney stone type using ensemble learning. Artif Intell Med. 2018;84:117-26. doi:10.1016/j. artmed.2017.12.001
11.     Wu Y, Mo Q, Xie Y, Zhang J, Jiang S, Guan J, et al. A retrospective study using machine learning to develop predictive model to identify urinary infection stones in vivo. Urolithiasis. 2023;51(1):84. doi:10.1007/s002 40-023-01457-z  
12.     Abraham A, Kavoussi NL, Sui W, Bejan C, Capra JA, Hsi R. Machine learning prediction of kidney stone composition using electronic health record-derived features. J Endourol. 2022;36(2):243-50. doi:10.1089/ end.2021.0211
13.     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. doi:10.1016/j.urology.2022 .07.008
14.     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. doi:10.1007/s13246-019-00780-3
15.     Qadri S. Role of machine vision for identification of kidney stones using multi features analysis. Lahore Garrison University Research Journal of Computer Science and Information Technology. 2021;5(3):1-4.
16.     Parakh A, Lee H, Lee JH, Eisner BH, Sahani DV, Do S. Urinary stone detection on CT images using deep convolutional neural networks: evaluation of model performance and generalization. Radiol Artif Intell. 2019;1(4):e180066. doi:10.1148/ryai.2019180066
17.     De Perrot T, Hofmeister J, Burgermeister S, Martin SP, Feutry G, Klein J, et al. Differentiating kidney stones from phleboliths in unenhanced low-dose computed tomography using radiomics and machine learning. Eur Radiol. 2019;29(9):4776-82. doi:10.1007/s00330-019-6004-7
18.     Caglayan A, Horsanali MO, Kocadurdu K, Ismailoglu E, Guneyli S. Deep learning model-assisted detection of kidney stones on computed tomography. Int Braz J Urol. 2022;48:830-9. doi:10.1590/S1677-5538.IBJU. 2022.0132
19.     Zhu B, Nie Y, Zheng S, Lin S, Li Z, Wu W. CT-based radiomics of machine-learning to screen high-risk individuals with kidney stones. Urolithiasis. 2024;52(1):91. doi:10.1007/s00240-024-01593-0
20.     Andrews DF, Herzberg AM. Physical Characteristics of Urines With and Without Crystals. InData: A Collection of Problems from Many Fields for the Student and Research Worker. New York, NY: Springer New York. 1985. pp. 249-252. doi:10.1007/ 978-1-4612-5098-2_45
21.     Amani MA, Sarkodie SA. Mitigating spread of contamination in meat supply chain management using deep learning. Sci Rep. 2022;12(1):5037. doi:10.1038/s41598-022-08993-5
22.     Jain NK, Nangia U, Jain J. A review of particle swarm optimization. J Inst Eng India Ser B. 2018;99(4):407-11. doi:10.1007/s40031-018-0323-y
23.     Zhu H, Wang Y, Wang K, Chen Y. Particle Swarm Optimization (PSO) for the constrained portfolio optimization problem. Expert Syst Appl. 2011;38(8): 10161-9. doi:10.1016/j.eswa.2011.02.075
24.     Deng X, Liu Q, Deng Y, Mahadevan S. An improved method to construct basic probability assignment based on the confusion matrix for classification problem. Inf Sci. 2016;340:250-61. doi:10.1016/j.ins. 2016.01.033
25.     Talukder MA, Layek MA, Kazi M, Uddin MA, Aryal S. Empowering covid-19 detection: Optimizing performance through fine-tuned efficientnet deep learning architecture. Comput Biol Med. 2024;168: 107789. doi:10.1016/j.compbiomed.2023.107789

Articles in Press, Accepted Manuscript
Available Online from 30 June 2026