Mao Danhui, Liu Hao, Wang Qianshan, Ma Mingyan, Zhang Mohan, Zhao Juanjuan, Wang Xin
College of Computer Science and Technology, Taiyuan University of Technology, No. 79, Yingze West Street, Taiyuan, Shanxi, China.
School of Management, Shanxi Medical University, New South Street No. 56, Taiyuan, Shanxi, China.
Urolithiasis. 2025 Mar 7;53(1):48. doi: 10.1007/s00240-025-01711-6.
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 (χ = 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.
在尿路结石的治疗中,手术干预至关重要。尿路结石的成分和类型直接影响手术规划。然而,术前结石成分分析的研究有限。本文旨在利用临床数据术前预测尿路结石类型。收集了1020例患者的数据,包括结石成分、临床生化指标和人口统计学信息。使用余弦相似度构建结石成分图网络,以结石成分为节点,生化/人口统计学数据为节点特征。利用Louvain社区检测算法将网络划分为不同的社区以进行结石类型分类,通过模块度得分评估划分的有效性。对结石类型进行分类,并描述其在性别和年龄组中的分布。计算每个社区的临床特征平均值,并将患者分配到最相似的社区。训练六种机器学习算法(随机森林、梯度提升、支持向量机、K近邻、逻辑回归、XGBoost)来预测结石类型。评估模型性能,并对预测的临床特征重要性进行排名。确定了六种结石类型(模块度 = 0.828),即普通COM(I类)、含少量AU的COM(II类)、含高UA的COM(III类)、含MAP的COM(IV类)、高CAP - MAP(V类)和含DCPD的高COM - CAP(VI类)。在男性中,III类和I类最为常见;在女性中,V类和III类最为常见(χ = 95.066,P < 0.001)。IV类结石患者的年龄显著大于I类结石患者(P = 0.038)。梯度提升显示出最佳的预测性能,准确率为0.837,精确率为0.840,召回率为0.8366,F1分数为0.8368,ROC - AUC面积为0.941。预测的重要临床特征包括尿比重、白细胞、pH值和晶体。本文首先使用社区检测算法分析结石类别,然后使用机器学习预测类型,为尿路结石的术前手术规划提供参考。