Development of UroSAM: A Machine Learning Model to Automatically Identify Kidney Stone Composition from Endoscopic Video
- 1 August 2024
- journal article
- research article
- Published by SAGE Publications in Journal of Endourology
- Vol. 38 (8) , 748-754
Abstract
Introduction: Chemical composition analysis is important in prevention counseling for kidney stone disease. Advances in laser technology have made dusting techniques more prevalent, but this offers no consistent way to collect enough material to send for chemical analysis, leading many to forgo this test. We developed a novel machine learning (ML) model to effectively assess stone composition based on intraoperative endoscopic video data. Methods: Two endourologists performed ureteroscopy for kidney stones ≥ 10 mm. Representative videos were recorded intraoperatively. Individual frames were extracted from the videos, and the stone was outlined by human tracing. An ML model, UroSAM, was built and trained to automatically identify kidney stones in the images and predict the majority stone composition as follows: calcium oxalate monohydrate (COM), dihydrate (COD), calcium phosphate (CAP), or uric acid (UA). UroSAM was built on top of the publicly available Segment Anything Model (SAM) and incorporated a U-Net convolutional neural network (CNN). Discussion: A total of 78 ureteroscopy videos were collected; 50 were used for the model after exclusions (32 COM, 8 COD, 8 CAP, 2 UA). The ML model segmented the images with 94.77% precision. Dice coefficient (0.9135) and Intersection over Union (0.8496) confirmed good segmentation performance of the ML model. A video-wise evaluation demonstrated 60% correct classification of stone composition. Subgroup analysis showed correct classification in 84.4% of COM videos. A post hoc adaptive threshold technique was used to mitigate biasing of the model toward COM because of data imbalance; this improved the overall correct classification to 62% while improving the classification of COD, CAP, and UA videos. Conclusions: This study demonstrates the effective development of UroSAM, an ML model that precisely identifies kidney stones from natural endoscopic video data. More high-quality video data will improve the performance of the model in classifying the majority stone composition.Keywords
This publication has 19 references indexed in Scilit:
- Urine and stone analysis for the investigation of the renal stone former: a consensus conferenceUrolithiasis, 2020
- Dusting versus fragmentation for renal stones during flexible ureteroscopyArab Journal of Urology, 2019
- Dusting versus Basketing during Ureteroscopy–Which Technique is More Efficacious? A Prospective Multicenter Trial from the EDGE Research ConsortiumJournal of Urology, 2018
- Metabolic Evaluation and Recurrence Prevention for Urinary Stone Patients: EAU GuidelinesEuropean Urology, 2015
- Deep sparse feature selection for computer aided endoscopy diagnosisPattern Recognition, 2015
- Medical Management of Kidney Stones: AUA GuidelineJournal of Urology, 2014
- Micro-computed tomography for analysis of urinary calculiUrological Research, 2010
- Predictive value of kidney stone composition in the detection of metabolic abnormalitiesThe American Journal of Medicine, 2003
- PROPORTIONAL REDUCTION OF URINE SUPERSATURATION DURING NEPHROLITHIASIS TREATMENTJournal of Urology, 2001
- Role of Stone Analysis in Metabolic Evaluation and Medical Treatment of NephrolithiasisJournal of Endourology, 2001