Weakly Supervised Intracranial Aneurysm Detection and Segmentation in MR angiography via Multi-task UNet with Vesselness Prior

Erin Rainville, Amirhossein Rasoulian, Hassan Rivaz, Yiming XiaoarXiv 2025

TL;DR

The Vessel-Prior UNet (VP UNet) is a novel 3D multi-task network designed to detect and segment unruptured intracranial aneurysms using only weak, spherical annotations during training. By integrating soft anatomical priors via Frangi’s vesselness filter, the model significantly reduces false positives and achieves state-of-the-art performance on time-of-flight MR angiography (TOF-MRA) scans.

What Problem Does This Paper Address?

Intracranial aneurysms (IAs)—abnormal bulges in cerebral arteries—can be life-threatening if they rupture, leading to subarachnoid hemorrhage. While time-of-flight MR angiography (TOF-MRA) is a safe, radiation-free imaging modality used to monitor these aneurysms, identifying them automatically is incredibly challenging. Aneurysms are small, sparse, and exhibit low contrast against surrounding brain tissues.

To train effective deep learning models, researchers typically need massive datasets with precise, voxel-wise manual annotations from expert radiologists. However, creating these labels is tedious, expensive, and time-consuming. This paper addresses this bottleneck by asking: Can we build a highly accurate detection and segmentation model using only weak, coarse labels (like simple spheres drawn around an aneurysm) instead of precise masks?

Methods

The authors propose VP UNet, a 3D multi-task network that combines weak supervision with structural domain knowledge.

Instead of relying solely on raw MRA images, the pipeline applies Frangi’s vesselness filter to compute a "vesselness map" that highlights tubular and blob-like vascular structures.

Figure 1. Image patch with aneurysm (left) and corresponding ves- selness map in jet colormap (right). The location of the aneurysm is indicated with red arrows.

Key architectural innovations include:

  1. Shared Encoder: Both the raw MRA patch and its corresponding vesselness map traverse the same 3D UNet encoder path. This embeds vascular priors early on without inflating the model's parameter count.
  2. Multi-Task Branching: The network splits at the bottleneck into two task-specific heads: a segmentation decoder to outline the aneurysm and an auxiliary classification head to predict patch-wise aneurysm presence (detection).
  3. Vesselness Attention Gating: At the final layer of the decoder, an Attention Block uses the encoder's vesselness features to apply soft attention to vessel-rich regions, guiding the segmentation mask away from non-vascular tissue.

The model is trained using a joint loss function combining an $\alpha$-balanced focal loss for classification with a mixture of generalized Dice and cross-entropy loss for segmentation. During inference, test-time augmentation (TTA) via geometric rotations and flips is used to smooth predictions.

Figure 2. Network architecture of the proposed multi-task VP UNet. It is composed of a 3D UNet (blue), an Attention Block in the top skip connection (orange), and the MT-UNet-based auxiliary classification branch (green). The lines depict the passing of information: the image patch (pink), the vesselness map (yellow), and the skip connections (dashed lines). The logits are used for the loss function.

Datasets

The model was trained and evaluated on two publicly available TOF-MRA datasets:

  • Lausanne Dataset: Contains 284 subjects. 246 subjects have weak labels (simplistic spheres enclosing the aneurysms) and were split into training (90%) and validation (10%). The remaining 38 subjects feature precise voxel-wise segmentations and served as the internal test set.
  • ADAM Dataset: Consists of 113 subjects (93 aneurysm-positive, 20 healthy) with precise voxel-wise segmentations. This cohort was strictly reserved as an external test set to evaluate the model's generalizability across different scanners and imaging protocols.

Key Insights and Ideas

  • Soft vs. Hard Constraints: Previous methods enforced "hard" constraints by masking out everything outside a pre-segmented vascular skeleton. However, if the skeletonization step misses a vessel, the aneurysm is lost forever. VP UNet uses a soft prior, allowing the network to learn when to trust the vesselness features, making it robust to imperfect filter outputs.
  • The Power of Weak Labels: Training on simple spheres (which are 4x faster to draw than precise masks) combined with a structural vesselness prior yields performance that approaches fully supervised upper bounds.
  • Multi-Task Synergy: Jointly optimizing for patch-level detection and voxel-level segmentation acts as a regularizer, forcing the network to learn features that benefit both localization and boundary definition.

Key Results

VP UNet outperformed several established baselines, including a standard 3D U-Net, Swin UNETR, and ResUNet, particularly in reducing false positives.

  • Detection Performance: On the internal test set, VP UNet achieved a false positive (FP) rate of 1.472 per subject with 92.9% sensitivity. On the external ADAM dataset, it maintained a low FP rate of 1.143 and 82.8% sensitivity, outperforming the competition in false-positive suppression.
  • Segmentation Performance: On the internal test set, it achieved the highest Dice coefficient (0.614) and Intersection over Union (0.456).
Figure 3. Qualitative comparison of segmentation results for two different patients (one patient per row) from the Lausanne dataset. The red label is the ground truth, and the green label represents the automatic segmentation.

Limitations and Future Work

While VP UNet excelled at reducing false positives, it showed a slight drop in boundary precision, as indicated by a marginally higher 95th-percentile Hausdorff Distance (95-HD) compared to the top-performing baseline (1.379 mm vs 1.336 mm internally).

Additionally, like all evaluated models, VP UNet experienced a performance drop when tested on the external ADAM dataset due to domain shift (differences in scan orientation and cropping). The authors plan to address these limitations in future work by exploring uncertainty-based loss functions to better balance sensitivity and specificity, as well as developing full-volume architectural changes to improve global context capture.

Summary updated

BibTeX
@misc{rainville2025weakly,
  author = {Erin Rainville and Amirhossein Rasoulian and Hassan Rivaz and Yiming Xiao},
  title = {{Weakly Supervised Intracranial Aneurysm Detection and Segmentation in MR angiography via Multi-task UNet with Vesselness Prior}},
  year = {2025},
  eprint = {2508.00235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00235},
}
Figure