Introduction
Thrombotic Microangiopathies (TMAs) represent a group of critical conditions characterized by microscopic blood clots within the small vessels of the kidney. Accurate diagnosis is essential but challenging due to significant morphological overlap with "mimickers" such as severe hypertension or vasculitis. Digital pathology offers a solution for objective diagnosis, yet it faces hurdles like structural complexity—particularly for tiny, disease-distorted arterioles—and "domain shift," where variations in staining and scanning across different laboratories degrade model performance.
This research introduces a robust deep learning pipeline designed to segment key diagnostic structures—arteries, arterioles, and glomeruli—in renal biopsies. By integrating a Swin Transformer-based Mask R-CNN with a novel "Dynamic Confidence Thresholding" (DCT) technique, the system achieves high accuracy and generalizability across diverse institutional datasets.
Methods
The proposed workflow consists of a multi-stage process to handle the scale and complexity of whole slide images (WSIs).
Segmentation Pipeline
The pipeline begins with Tissue Detection using a lightweight U-Net variant to isolate tissue from the slide background, which is particularly useful for messy "Jones silver" stains. Following this, the tissue is tiled for Instance Segmentation. The core model is a Mask R-CNN utilizing a Swin Transformer backbone. Unlike traditional CNNs, the Swin Transformer employs hierarchical self-attention, allowing it to capture both fine-grained details of small vessels and the broader context of larger structures.
Dynamic Confidence Thresholding (DCT)
To address domain shift, the authors developed DCT. Standard models typically use a fixed confidence threshold (e.g., 0.5) to validate detections. However, optimal thresholds vary between labs due to staining differences. The researchers trained a Multi-Layer Perceptron (MLP) to analyze the distribution of confidence scores for a specific slide and predict an optimized threshold dynamically. This allows the model to adapt to new "domains" without retraining.
Dataset and Experimental Setup
The study utilized 60 renal biopsies from three international institutions: the University Hospital of Cologne (Germany), the University of Turin (Italy), and Weill-Cornell Medical Center (USA). The dataset included 29 TMA cases and 31 mimickers, covering four standard nephropathological stains: Hematoxylin-eosin (HE), Periodic acid-Schiff (PAS), Jones silver, and Trichrome. The training set comprised over 160,000 instance annotations across nearly 27,000 image tiles.
Results
The model demonstrated strong performance across the three target compartments, with the Swin Transformer backbone proving highly effective at multi-scale feature extraction.
As shown in the table above, the Dynamic thresholding approach consistently outperformed fixed thresholds in most categories, particularly on the validation set.
- Glomeruli: Achieved the highest accuracy with a mean F1-score (mF1) of 0.896 on validation and 0.860 on the unseen test set.
- Arteries: Reached an mF1 of 0.704 (Val) and 0.663 (Test).
- Arterioles: Remained the most challenging due to their small size and disease-induced distortion, yielding an mF1 of 0.490 (Val) and 0.363 (Test).
Qualitative analysis confirmed that the model could segment structures even when severely affected by necrosis or inflammation, common features in TMA.
Discussion and Future Work
While the results for glomeruli and arteries are excellent, the lower performance on arterioles highlights a need for further refinement, possibly through higher-resolution imaging or targeted data augmentation. Occasional false positives occurred where severely damaged tubules were misidentified as arterioles.
Future work will focus on expanding the model to include cortex and medulla compartments. The ultimate goal is to develop an end-to-end clinical pipeline that transitions from automated segmentation to disease classification and prognosis, providing pathologists with a powerful tool for navigating complex renal vasculopathies.
Summary updated