[Paper Review] On the in vivo recognition of kidney stones using machine learning
This study proposes an in-vivo machine learning approach for classifying kidney stones during ureteroscopy using endoscopic images, comparing shallow learning methods and deep learning architectures. The Inception v3 model achieved the highest performance with a weighted F1-score of 0.97, while XGBoost with optimized color and texture features reached 0.96 F1-score, demonstrating that handcrafted features can rival deep learning in clinical settings with uncontrolled imaging conditions.
Determining the type of kidney stones allows urologists to prescribe a treatment to avoid recurrence of renal lithiasis. An automated in-vivo image-based classification method would be an important step towards an immediate identification of the kidney stone type required as a first phase of the diagnosis. In the literature it was shown on ex-vivo data (i.e., in very controlled scene and image acquisition conditions) that an automated kidney stone classification is indeed feasible. This pilot study compares the kidney stone recognition performances of six shallow machine learning methods and three deep-learning architectures which were tested with in-vivo images of the four most frequent urinary calculi types acquired with an endoscope during standard ureteroscopies. This contribution details the database construction and the design of the tested kidney stones classifiers. Even if the best results were obtained by the Inception v3 architecture (weighted precision, recall and F1-score of 0.97, 0.98 and 0.97, respectively), it is also shown that choosing an appropriate colour space and texture features allows a shallow machine learning method to approach closely the performances of the most promising deep-learning methods (the XGBoost classifier led to weighted precision, recall and F1-score values of 0.96). This paper is the first one that explores the most discriminant features to be extracted from images acquired during ureteroscopies.
Motivation & Objective
- To develop and evaluate machine learning models for real-time, in-vivo classification of kidney stones during ureteroscopy using endoscopic images.
- To compare the performance of shallow machine learning methods and deep learning architectures on in-vivo images acquired under uncontrolled clinical conditions.
- To identify the most effective feature spaces (e.g., color, texture) that enhance classification accuracy without relying solely on deep neural networks.
- To construct a clinically relevant database of in-vivo kidney stone images across the four most frequent types: whewellite, weddellite, uric acid dihydrate, and struvite.
- To assess the feasibility of automating kidney stone type recognition to support personalized treatment and reduce recurrence rates in urology.
Proposed method
- Collected 1,058 in-vivo endoscopic images of kidney stones from ureteroscopies across four common types: Type I (whewellite), Type II (weddellite), Type IIIb (uric acid dihydrate), and Type IVc (struvite).
- Preprocessed images using multiple color spaces (RGB, HSV, HSI) and extracted texture features using Local Binary Patterns (LBP) and Gray-Level Co-occurrence Matrix (GLCM).
- Trained six shallow learning models (e.g., XGBoost, Random Forest, SVM) and three deep learning models (Inception v3, ResNet-101, DenseNet-121) on the dataset for multi-class classification.
- Evaluated models using weighted precision, recall, and F1-score across all classes, with UMAP visualization to interpret feature space clustering and model behavior.
- Integrated UMAP visualizations into an interactive tool (Iva) to explore model predictions and class separability across mixed and pure stone types.
- Optimized hyperparameters using cross-validation and evaluated generalization on surface, section, and mixed surface/section image types.
Experimental results
Research questions
- RQ1Can shallow machine learning models achieve high classification accuracy on in-vivo kidney stone images under uncontrolled acquisition conditions?
- RQ2How do deep learning models compare to shallow learning models in classifying kidney stone types from endoscopic images in real clinical settings?
- RQ3Which color space and texture features significantly improve classification performance for kidney stone recognition?
- RQ4What are the main challenges in distinguishing between morphologically similar stone types (e.g., weddellite vs. uric acid, whewellite vs. weddellite) in clinical images?
- RQ5To what extent do model performance and class separability vary across different image types (surface, section, mixed) in real ureteroscopic videos?
Key findings
- The Inception v3 deep learning model achieved the highest performance with a weighted F1-score of 0.97, precision of 0.97, and recall of 0.98 across all four kidney stone types.
- The XGBoost classifier, using optimized color and texture features, achieved a weighted F1-score of 0.96, demonstrating that shallow learning can closely match deep learning performance.
- The model performance was lowest for weddellite (Type II) and brushite (Type IVd), with lower recall values, indicating morphological similarity causes classification difficulty.
- Uracil acid dihydrate (Type IIIb) was the most consistently classified type, with high precision and recall across all models.
- UMAP visualizations confirmed that class separability was highest for uric acid dihydrate and lowest for weddellite and brushite, aligning with quantitative performance metrics.
- The use of HSV and HSI color spaces improved model robustness and reduced the need for large deep networks, suggesting potential for faster inference in clinical deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.