A deep learning framework for glomeruli segmentation with boundary attention
Authors: Behnaz Elhaminia, Catherine King, Jiaqi Lv, Lorraine Harper, Paul Moss, Owen Cain, Dimitrios Chanouzas, Shan E Ahmed Raza
Organizations: 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 · School of Applied Health Sciences, University of Birmingham, UK · Dept. of Cellular Pathology, Queen Elizabeth Hospital Birmingham, UK
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.
Figures & tables
Figure 1: An illustration of the architecture and key processing stages. Deep features extracted by the Virchow2 foundation model are concatenated with the input image and fed into the encoder. The attention module exploits these features to extract critical boundary-related information, which helps the model segment boundaries with greater precision and focus.
Figure 2: Comparison of static and adaptive weight maps. (A) Glomeruli mask, (B) Static distance-transform weight map, and (C) Adaptive boundary weighting map. The adaptive weights assign higher importance to challenging boundaries between closely adjacent glomeruli.
HubMap
REACTIVAS
Method
PAS
HE
PAS
All
Proposed
0.9630
0.89±0.3
0.86±0.1
0.88 ± 0.01
Eff - UNet
0.9111
0.84±0.2
0.83±0.4
0.84±0.3
Tom
0.9515
0.80±0.1
0.82±0.4
0.81±0.2
Gleb
0.9507
-
-
-
WGO
0.9503
0.79±0.2
0.81±0.3
0.80±0.2
Table 1: Performance Comparison across two datasets in terms of Dice scores ( μ±σ ). For REACTIVAS, we add the results for HE and PAS separately for further insights. Training code is not available for Gleb. Therefore, we could not train Gleb on the REACTIVAS dataset.
HubMap
REACTIVAS
Method
PAS
HE
PAS
All
Proposed
0.941
0.88 ± 0.2
0.86 ± 0.3
0.87 ± 0.4
Eff - UNet
0.904
0.82± 0.1
0.81 ± 0.1
0.82 ± 0.3
Tom
0.943
0.78 ± 0.2
0.79 ± 0.4
0.78 ± 0.3
WGO
0.931
0.77 ± 0.2
0.79 ± 0.1
0.78 ± 0.6
Table 2: Performance Comparison across two datasets in terms of IoU ( μ±σ ). For REACTIVAS, we add the results for HE and PAS separately for further insights. IoU results were not available for the Gleb model.
Figure 3: Comparison of glomerulus segmentation results, with PAS images in the top row and HE images in the bottom row. (A) Ground truth, (B) Proposed model, (C) Eff-UNet, (D) TOM, and (E) WGO. The patches are taken from the test set of the REACTIVAS dataset and illustrate challenging cases with closely spaced glomeruli.
Fine-grained evaluation of glomerular pathology must distinguish normal glomeruli from abnormalities such as global and segmental glomerulosclerosis, obsolescent, ischemic, solidified, disappearing, and atubular glomeruli. Supervised classification requires labeled examples of every category, which is impractical when subtypes are rare or absent from the training cohort. One-class anomaly detection offers an alternative by modeling normal data and scoring deviations, allowing previously unseen abnormalities to be detected. We use the frozen residual U-Net backbone of Omni-Seg, pretrained to segment structurally normal renal primitives without abnormal-subtype labels. We propose NoRDeC (Normal-Reference Detection and Characterization), a framework combining Mahalanobis normal-reference scoring with layer-wise representation analysis to determine whether and where glomerular pathology is encoded, how spatial aggregation affects detection, and whether abnormalities alter inter-layer relationships differently. Using glomerular images from two institutions, we evaluate backbone layers and aggregation strategies, compare NoRDeC with PaDiM and PatchCore, and analyze representations using centered kernel alignment (CKA). Layer 4 with Center-70 aggregation achieved a pooled AUROC of 0.926±0.013. NoRDeC achieved the highest AUROC in six of seven abnormality categories and in the pooled analysis, while CKA suggested subtype-dependent changes in inter-layer relationships not captured by anomaly scores alone. The normal-reference model is fitted using only normal glomeruli; abnormality labels are used for configuration selection, evaluation, and grouping in the representation analysis. These results show that a frozen renal feature extractor can support both detection and representation-level characterization of glomerular abnormalities without using abnormal examples to fit the detector.
Greta Hasko, Rachit Saluja, Tianyu Shi +11
Cornell University, Ithaca, NY 14853, USA · Cornell Tech, New York, NY 10044, USA · Sichuan University, Chengdu, 610207, CN +6
Glomerular pathology is central to the diagnosis and prognosis of renal diseases, yet the heterogeneity of glomerular morphology and fine-grained lesion patterns remain challenging for current AI approaches. We present GloPath, an entity-centric foundation model trained on over one million glomeruli extracted from 14,049 renal biopsy specimens using multi-scale and multi-view self-supervised learning. GloPath addresses two major challenges in nephropathology: glomerular lesion assessment and clinicopathological insights discovery. For lesion assessment, GloPath was benchmarked across three independent cohorts on 52 tasks, including lesion recognition, grading, few-shot classification, and cross-modality diagnosis-outperforming state-of-the-art methods in 42 tasks (80.8%). In the large-scale real-world study, it achieved an ROC-AUC of 91.51% for lesion recognition, demonstrating strong robustness in routine clinical settings. For clinicopathological insights, GloPath systematically revealed statistically significant associations between glomerular morphological parameters and clinical indicators across 224 morphology-clinical variable pairs, demonstrating its capacity to connect tissue-level pathology with patient-level outcomes. Together, these results position GloPath as a scalable and interpretable platform for glomerular lesion assessment and clinicopathological discovery, representing a step toward clinically translatable AI in renal pathology.
Qiming He, Jing Li, Tian Guan +26
Institute of Biopharmaceutical and Health Engineering, Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen, China · Interdisciplinary Institute for Medical Engineering, Fuzhou University, Fuzhou, China · Medical Optical Technology R&D Center, Research Institute of Tsinghua, Pearl River Delta, Guangzhou, China +6
For accurate glaucoma diagnosis and monitoring, reliable retinal layer segmentation in OCT images is essential. However, existing 2D segmentation methods often suffer from slice-to-slice inconsistencies due to the lack of contextual information across adjacent B-scans. 3D segmentation methods are better for capturing slice-to-slice context, but they require expensive computational resources. To address these limitations, we propose a 2.5D segmentation framework that incorporates a novel cross-slice feature fusion (CFF) module into a U-Net-like architecture. The CFF module fuses inter-slice features to effectively capture contextual information, enabling consistent boundary detection across slices and improved robustness in noisy regions. The framework was validated on both a clinical dataset and the publicly available DUKE DME dataset. Compared to other segmentation methods without the CFF module, the proposed method achieved an 8.56% reduction in mean absolute distance and a 13.92% reduction in root mean square error, demonstrating improved segmentation accuracy and robustness. Overall, the proposed 2.5D framework balances contextual awareness and computational efficiency, enabling anatomically reliable retinal layer delineation for automated glaucoma evaluation and potential clinical applications.
Hyunwoo Kim, Heesuk Kim, Wungrak Choi +1
Department of Mechanical Engineering, Yonsei University, Seoul, 03722, South Korea · Institute of Vision Research, Department of Ophthalmology, Severance Hospital, Yonsei University, Seoul, 03722, South Korea