Predictive modelling of urinary stone composition using machine learning and clinical data: implications for treatment strategies and pathophysiological insights

J Endourol. 2023 Nov 17. doi: 10.1089/end.2023.0446. Online ahead of print.

Abstract

Purpose: Preventative strategies and surgical treatment for urolithiasis depend on stone composition. However, stone composition is often unknown until the stone is passed or surgically managed. Given that stone composition likely reflects the physiological parameters during its formation, we used clinical data from stone formers to predict stone composition.

Material and methods: Stone composition, 24-hour urine, serum biochemistry, patient demographic and medical history were prospectively collected from 777 kidney stone patients. Data were used to train gradient boosted machine and logistic regression models to distinguish calcium vs non-calcium, calcium oxalate monohydrate vs dihydrate, and calcium oxalate vs calcium phosphate vs uric acid stone types. Model performance was evaluated using kappa score and the influence of each predictor variable was assessed.

Results: The calcium vs non-calcium model successfully differentiated stone types with a kappa of 0.5231. The most influential predictors were 24-hour urine calcium, blood urate and phosphate. The calcium oxalate monohydrate vs dihydrate model is the first of its kind and could discriminate stone types with a kappa of 0.2042. The key predictors were 24-hour urine urea, calcium, and oxalate. The multiclass model had a kappa of 0.3023 and the top predictors were age, and 24-hour urine calcium and creatinine.

Conclusions: Clinical data can be leveraged with machine learning algorithms to predict stone composition, which may help urologists determine stone type and guide their management plan before stone treatment. Investigating the most influential predictors of each classifier may improve the understanding of key clinical features of urolithiasis and shed light on the pathophysiology.