USCNet: Transformer-Based Multimodal Fusion with Segmentation Guidance for Urolithiasis Classification
Authors: Changmiao Wang, Songqi Zhang, Yongquan Zhang, Yifei Wang, Liya Liu, Nannan Li, Xingzhi Li, Jiexin Pan, +4 more
Organizations: C. Wang and X. Wan are with Shenzhen Research Institute of Big Data, Shenzhen 518172, China · Y. Zhang, S. Zhang, and Y. Wang are with Zhejiang University of Finance and Economics, Hangzhou 310018, China · L. Liu is with Anhui University of Finance and Economics, Anhui 233000, China · N. Li is with the School of Computer Science and Engineering, Macau University of Science and Technology, Macao 999078, China · X. Li, J. Pan, and Y. Jiang are with The Second Affiliated Hospital of Chinese University of Hong Kong (Longgang District People’s Hospital of Shenzhen), Shenzhen 518172, China · H. Wang is with the School of Engineering and Energy and Harry Butler Institute, Murdoch University, Perth, WA6150, Australia · A. Elazab is with Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen 518055, China
Kidney stone disease ranks among the most prevalent conditions in urology, and understanding the composition of these stones is essential for creating personalized treatment plans and preventing recurrence. Current methods for analyzing kidney stones depend on postoperative specimens, which prevents rapid classification before surgery. To overcome this limitation, we introduce a new approach called the Urinary Stone Segmentation and Classification Network (USCNet). This innovative method allows for precise preoperative classification of kidney stones by integrating Computed Tomography (CT) images with clinical data from Electronic Health Records (EHR). USCNet employs a Transformer-based multimodal fusion framework with CT-EHR attention and segmentation-guided attention modules for accurate classification. Moreover, a dynamic loss function is introduced to effectively balance the dual objectives of segmentation and classification. Experiments on an in-house kidney stone dataset show that USCNet demonstrates outstanding performance across all evaluation metrics, with its classification efficacy significantly surpassing existing mainstream methods. This study presents a promising solution for the precise preoperative classification of kidney stones, offering substantial clinical benefits. The source code has been made publicly available: https://github.com/ZhangSongqi0506/KidneyStone.
Figures & tables
Fig. 1: The architecture of the USCNet: (a) the visual and textual transformation module, (b) the ViT-UNetSeg module, (c) the MSAF feature fusion module, (d) the classification module, (e) the Transformer encoder block, and (f) the cross-attention principle.
Fig. 2: ROC curve comparison of diagnostic accuracy between USCNet and established methods for infectious urolithiasis classification.
Fig. 3: Confusion matrices comparison of USCNet versus multimodal baseline methods, quantitatively evaluating classification performance for infectious urolithiasis diagnosis.
Fig. 4: Comparison of 3D multi-planar segmentation results (original images, ground truth annotations, nnUnet and USCNet outputs).
Loss Function Components
Classification
Segmentation
CT
Clinical
CEA
SMA
DW
Acc ↑ (%)
F1 ↑ (%)
Rec ↑ (%)
Pre ↑ (%)
AUC ↑ (%)
Dice ↑ (%)
IoU ↑ (%)
HD95 ↓ (mm)
-
✓
-
-
-
63.97 ±3.38
59.17 ±3.26
65.14 ±4.37
54.20 ±5.25
64.16 ±3.82
-
-
-
✓
-
-
-
-
-
-
-
-
-
82.27 ±1.02
69.18 ±1.25
3.88 ±0.51
✓
✓
-
-
-
70.56 ±4.88
66.90 ±5.62
74.33 ±5.27
60.90 ±6.15
70.16 ±4.84
78.33 ±1.73
64.30 ±1.73
7.42 ±0.87
✓
✓
✓
-
-
89.71 ±1.86
87.16 ±2.27
87.16 ±1.69
87.16 ±3.39
89.28 ±1.79
82.19 ±0.93
69.54 ±0.93
4.31 ±0.30
✓
✓
✓
✓
-
89.34 ±1.38
86.64 ±1.52
86.24 ±2.06
87.04 ±1.78
88.82 ±1.40
81.44 ±0.95
68.34 ±0.95
4.03 ±0.43
TABLE II: Ablation studies of the proposed dynamic loss function with different components.
Feature Comb.
Classification
Segmentation
Z3
Z6
Z9
Z12
Acc ↑ (%)
F1 ↑ (%)
Rec ↑ (%)
Pre ↑ (%)
AUC ↑ (%)
Dice ↑ (%)
IoU ↑ (%)
HD95 ↓ (mm)
-
-
-
✓
91.91 ± 1.42
90.00 ± 1.74
90.83 ± 0.94
89.19 ± 3.13
91.73 ± 1.30
83.98 ± 1.09
72.12 ± 1.42
3.73 ± 0.82
-
-
✓
-
90.44 ± 1.54
88.29 ± 1.91
89.91 ± 1.51
86.73 ± 3.22
90.35 ± 1.44
81.93 ± 0.99
69.49 ± 0.99
4.66 ± 0.56
-
✓
-
-
90.07 ± 2.00
87.78 ± 2.34
88.99 ± 2.02
86.61 ± 3.50
89.89 ± 1.93
82.29 ± 0.96
69.71 ± 0.96
4.18 ± 0.49
✓
-
-
-
87.87 ± 2.10
84.93 ± 2.43
85.32 ± 2.14
84.55 ± 3.02
87.45 ± 2.05
79.98 ± 1.07
66.67 ± 1.07
5.33 ± 0.25
✓
✓
-
-
89.71 ± 1.82
87.39 ± 2.13
88.99 ± 1.14
85.84 ± 3.75
89.59 ± 1.64
82.05 ± 1.02
69.47 ± 1.02
4.59 ± 0.43
TABLE III: Ablation studies of segmentation-assisted classification with different feature combinations.
Loss Function
Classification
Segmentation
LBCE
LFocal
LDice
Acc ↑ (%)
F1 ↑ (%)
Rec ↑ (%)
Pre ↑ (%)
AUC ↑ (%)
Dice ↑ (%)
IoU ↑ (%)
HD95 ↓ (mm)
✓
−
✓
91.54 ± 1.55
89.50 ± 1.85
89.91 ± 1.72
89.09 ± 3.01
91.27 ± 1.49
82.43 ± 1.25
70.11 ± 1.58
4.19 ± 0.49
−
✓
✓
91.18 ± 1.20
88.68 ± 1.35
86.24 ± 2.38
91.26 ± 1.75
90.36 ± 1.30
83.02 ± 2.17
70.96 ± 2.32
4.02 ± 1.59
✓
✓
✓
91.91 ± 1.42
90.00 ± 1.74
90.83 ± 0.94
89.19 ± 3.13
91.73 ± 1.30
83.98 ± 1.09
72.12 ± 1.42
3.73 ± 0.82
TABLE IV: Ablation studies of different loss functions for segmentation-assisted classification.
Class. / Seg.
Classification
Segmentation
Acc ↑ (%)
F1 ↑ (%)
Rec ↑ (%)
Pre ↑ (%)
AUC ↑ (%)
Dice ↑ (%)
IoU ↑ (%)
HD95 ↓ (mm)
0.1 / 0.9
82.35 ± 2.23
77.14 ± 2.59
74.31 ± 2.66
80.20 ± 3.84
81.02 ± 2.11
78.86 ± 1.18
66.67 ± 1.18
5.66 ± 0.35
0.3 / 0.7
86.40 ± 1.39
83.41 ± 1.36
85.32 ± 1.65
81.58 ± 3.18
86.22 ± 1.14
81.96 ± 1.11
69.00 ± 1.11
4.38 ± 0.64
0.5 / 0.5
89.34 ± 1.38
86.64 ± 1.52
86.24 ± 2.06
87.04 ± 1.78
88.82 ± 1.40
81.44 ± 0.95
68.34 ± 0.95
4.03 ± 0.43
0.7 / 0.3
89.71 ± 1.90
87.27 ± 2.29
88.07 ± 1.46
86.49 ± 3.65
89.44 ± 1.78
82.04 ± 1.20
69.25 ± 1.20
4.18 ± 0.58
0.9 / 0.1
90.44 ± 1.67
88.39 ± 1.93
90.83 ± 1.21
86.09 ± 3.67
90.50 ± 1.47
82.11 ± 1.02
69.47 ± 1.02
4.78 ± 0.31
TABLE V: Effect of the adaptive loss functions on the classification and segmentation performances of the USCNet model.
Subgroup
Performance
N
Acc ↑ (%)
F1 ↑ (%)
Rec ↑ (%)
Pre ↑ (%)
AUC ↑ (%)
Age Groups
< 40 years
91.80
87.80
94.74
81.82
96.99
61
40-60 years
90.11
88.00
86.84
89.19
94.09
91
> 60 years
91.18
88.00
91.67
84.62
94.32
34
Gender
TABLE VI: Performance analysis of USCNet across different patient subgroups.
Fig. 5: Empirical validation of the dynamic loss threshold through systematic sensitivity analysis.
Chronic kidney disease (CKD) is a silent disease. Its progression may not significantly hamper a person's daily routine. Human kidney function can be classified as normal or as one of the five stages of CKD. Early detection of the CKD stage can help patients understand the functional status of their kidneys and follow medical advice to slow CKD progression. In this paper, we propose XEns-CKD, a novel ensemble vision transformer-based scheme for CKD stage classification using ultrasound images. Three ViTs were trained on a private ultrasound image dataset using different training parameters. The performance of each ViT was evaluated using macro sensitivity, macro specificity, macro precision, macro F1-score, macro Youden index, the Matthews correlation coefficient (MCC), and macro balanced accuracy. The ensemble model achieved an overall classification accuracy of 86.36%. This work also emphasizes identifying and interpreting kidney regions affected by CKD progression. Explainable artificial intelligence techniques, including LIME, LRP, Attention-Min, and Attention-Max, were used to improve model transparency and clinical trust. An attention map combining the Attention-Min and Attention-Max results effectively identified and interpreted kidney regions affected during CKD progression from one stage to another. The attention map also highlighted the effects of CKD progression in these regions. Compared with existing methods, the proposed method classified the five CKD stages and normal kidney status with a 4% improvement in accuracy.
Rehan Ahmad, Gousia Habib, Muhammad Shaban +1
SVKM’s, NMIMS, Mukesh Patel School of Technology Management and Engineering, Shirpur, Maharashtra, India. · *2FCAI Fellow University of Helsinki and ELLIS Institute Helsinki, Finland · COER University, Roorkee, India +1
Radiology reports describe kidney lesions by type, size, enhancement, and attenuation, yet existing 3D methods predict only at the patient or organ level. We reformulate kidney CT characterization as a per-lesion set-prediction task: one model emits a variable number of lesions per kidney, each with four clinical attributes. We curated 2,619 CT volumes from 788 patients at one academic medical center, with multi-granularity side- and per-lesion labels, and used KiTS23 (489 cases) for zero-shot external validation. We propose LesionDETR, a DETR-style architecture with size-distance Hungarian matching and a hierarchical loss that aggregates per-slot outputs to side-level objectives. Across four input representations and six encoder initializations, two design choices dominate: a segmentation mask as an input channel, and same-domain abdominal pretraining (SuPreM); generic large-corpus pretraining is no better than random initialization. LesionDETR reaches bilateral side-level abnormality AUC 0.799±0.009 on UF-Health and 0.817±0.072 on KiTS23. A count-conditioned variant reaches per-lesion mAP 0.190±0.083 on cystic lesions; rare solid-lesion AP stays at the noise floor, pointing to targeted data collection, not architecture, as the next bottleneck. The framework yields verified per-lesion predictions for downstream structured report generation.
Renjie Liang, Zhengkang Fan, Jinqian Pan +4
Department of Health Outcomes and Biomedical Informatics, University of Florida, 2004 Mowry Road, Gainesville, 32611, FL, USA · Department of Biostatistics and Health Data Science, Indiana University School of Medicine, 340 West 10th Street, Indianapolis, 46202, IN, USA · Center of Biomedical Informatics, 1101 W 10th St, Indianapolis, Indianapolis, 46202, IN, USA +1
Accurate detection and segmentation of glomeruli in kidney tissue are essential for diagnostic applications. Traditional deep learning methods primarily rely on semantic segmentation, which often fails to precisely delineate adjacent glomeruli. To address this challenge, we propose a novel glomerulus detection and segmentation model that emphasises boundary separation. Leveraging pathology foundation models, the proposed U-Net-based architecture incorporates a specialised attention decoder designed to highlight critical regions and improve instancelevel segmentation. Experimental evaluations demonstrate that our approach surpasses state-of-the-art methods in both Dice score and Intersection over Union, indicating superior performance in glomerular delineation.
Behnaz Elhaminia, Catherine King, Jiaqi Lv +5
Tissue Image Analytics (TIA) Centre, Dept. of Computer Science, University of Warwick, UK · Dept. of Immunology and Immunotherapy, University of Birmingham, UK · Renal Unit, Queen Elizabeth Hospital Birmingham, UHB NHS Foundation Trust, UK +2