{"title":"Preoperative classification of urinary stones based on community detection.","authors":"Danhui Mao, Hao Liu, Qianshan Wang, Mingyan Ma, Mohan Zhang, Juanjuan Zhao, Xin Wang","doi":"10.1007/s00240-025-01711-6","DOIUrl":null,"url":null,"abstract":"<p><p>In the treatment of urinary stones, surgical intervention is crucial. Urinary stones composition and type directly affect surgical planning. However, research on preoperative stone composition analysis is limited. This paper aimed to predict urinary stones types preoperatively using clinical data. Data from 1020 patients, including stone composition, clinical biochemical indicators, and demographic information, were collected. A stone composition graph network was constructed using cosine similarity, with stone composition as nodes and biochemical/demographic data as node features. The Louvain community detection algorithm was utilized to divide the network into distinct communities for the classification of stone types, with the effectiveness of the partitioning evaluated by the Modularity score. Stone types were classified, and their distribution across genders and age groups was described. Clinical feature averages were calculated for each community, and patients were assigned to the most similar community. Six machine learning algorithms (RandomForest, GradientBoosting, SVM, KNN, Logistic Regression, XGBoost) were trained to predict stone types. Model performance was evaluated, and the importance of clinical features for prediction was ranked. Six stone types were identified (Modularity = 0.828), namely common COM (Class I), COM with minor AU (Class II), COM with high UA (Class III), COM containing MAP (Class IV), high CAP-MAP (Class V), and high COM-CAP containing DCPD (Class VI). Among males, Class III and Class I were most prevalent; among females, Class V and Class III were most prevalent (χ<sup>2</sup> = 95.066, P < 0.001). Patients with Class IV stones were significantly older than those with Class I stones (P = 0.038). GradientBoosting showed the best prediction performance, with an Accuracy of 0.837, Precision of 0.840, Recall of 0.8366, F1 Score of 0.8368, and ROC-AUC area of 0.941. Significant clinical features for prediction included urine specific gravity, white blood cells, pH, and crystals. This paper first analyzed stone categories using a community detection algorithm and then predicted types using machine learning, providing a reference for preoperative surgical planning in urinary stones.</p>","PeriodicalId":23411,"journal":{"name":"Urolithiasis","volume":"53 1","pages":"48"},"PeriodicalIF":2.0000,"publicationDate":"2025-03-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Urolithiasis","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1007/s00240-025-01711-6","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"UROLOGY & NEPHROLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
In the treatment of urinary stones, surgical intervention is crucial. Urinary stones composition and type directly affect surgical planning. However, research on preoperative stone composition analysis is limited. This paper aimed to predict urinary stones types preoperatively using clinical data. Data from 1020 patients, including stone composition, clinical biochemical indicators, and demographic information, were collected. A stone composition graph network was constructed using cosine similarity, with stone composition as nodes and biochemical/demographic data as node features. The Louvain community detection algorithm was utilized to divide the network into distinct communities for the classification of stone types, with the effectiveness of the partitioning evaluated by the Modularity score. Stone types were classified, and their distribution across genders and age groups was described. Clinical feature averages were calculated for each community, and patients were assigned to the most similar community. Six machine learning algorithms (RandomForest, GradientBoosting, SVM, KNN, Logistic Regression, XGBoost) were trained to predict stone types. Model performance was evaluated, and the importance of clinical features for prediction was ranked. Six stone types were identified (Modularity = 0.828), namely common COM (Class I), COM with minor AU (Class II), COM with high UA (Class III), COM containing MAP (Class IV), high CAP-MAP (Class V), and high COM-CAP containing DCPD (Class VI). Among males, Class III and Class I were most prevalent; among females, Class V and Class III were most prevalent (χ2 = 95.066, P < 0.001). Patients with Class IV stones were significantly older than those with Class I stones (P = 0.038). GradientBoosting showed the best prediction performance, with an Accuracy of 0.837, Precision of 0.840, Recall of 0.8366, F1 Score of 0.8368, and ROC-AUC area of 0.941. Significant clinical features for prediction included urine specific gravity, white blood cells, pH, and crystals. This paper first analyzed stone categories using a community detection algorithm and then predicted types using machine learning, providing a reference for preoperative surgical planning in urinary stones.
期刊介绍:
Official Journal of the International Urolithiasis Society
The journal aims to publish original articles in the fields of clinical and experimental investigation only within the sphere of urolithiasis and its related areas of research. The journal covers all aspects of urolithiasis research including the diagnosis, epidemiology, pathogenesis, genetics, clinical biochemistry, open and non-invasive surgical intervention, nephrological investigation, chemistry and prophylaxis of the disorder. The Editor welcomes contributions on topics of interest to urologists, nephrologists, radiologists, clinical biochemists, epidemiologists, nutritionists, basic scientists and nurses working in that field.
Contributions may be submitted as full-length articles or as rapid communications in the form of Letters to the Editor. Articles should be original and should contain important new findings from carefully conducted studies designed to produce statistically significant data. Please note that we no longer publish articles classified as Case Reports. Editorials and review articles may be published by invitation from the Editorial Board. All submissions are peer-reviewed. Through an electronic system for the submission and review of manuscripts, the Editor and Associate Editors aim to make publication accessible as quickly as possible to a large number of readers throughout the world.