Anatomically-guided Masked Autoencoder Pre-training for Aneurysm Detection

Alberto M. Ceballos Arroyo, Jisoo Kim, Chu-Hsuan Lin, Lei Qin, Geoffrey S. Young, Huaizu Jiang

TL;DR

This paper introduces an anatomically-guided masked autoencoder (MAE) pre-training strategy for 3D Vision Transformers to improve the detection of intracranial aneurysms. By incorporating artery distance maps and focusing masking on arterial regions, their method significantly enhances aneurysm detection performance, especially on out-of-distribution data, addressing the challenge of limited annotated medical data.

What Problem Does This Paper Address?

Intracranial aneurysms (IAs) are dangerous vascular abnormalities that can lead to life-threatening sub-arachnoid hemorrhages. While automated detection systems are highly desirable to assist radiologists, developing them is hampered by the scarcity of large, annotated medical datasets. Existing deep learning models, particularly those relying on supervised learning, often struggle with generalization to data from different medical centers or equipment due to overfitting on limited training sets. While self-supervised learning methods like MAE have shown promise in other domains, their direct application to 3D medical imaging like CT scans for aneurysm detection faces challenges related to computational cost and the need for domain-specific adaptations.

Methods

The core of this work is a novel pre-training strategy for 3D Vision Transformers (ViTs) designed to overcome the limitations of existing methods. Key innovations include:

  • Anatomically-Guided Masking: Instead of random masking, the MAE approach prioritizes masking patches in regions close to brain arteries. This forces the model to learn representations that are sensitive to the anatomical context where aneurysms are likely to occur.
  • Artery Distance Map Reconstruction: The model is trained to reconstruct not only the CT scan intensity values but also continuous artery distance maps. These maps indicate the distance of each voxel to the nearest artery, providing the model with explicit information about vascular proximity.
  • Factorized 3D Self-Attention: To make 3D attention computationally feasible for large datasets, the authors employ a factorized self-attention mechanism. This involves computing attention within 2D slices first, followed by attention across slices, significantly reducing memory and training time requirements.
  • Transformer-Only Pipeline: The entire detection pipeline, from feature extraction to detection, is built upon Transformer architectures, leveraging a pre-trained encoder and a query-based Transformer decoder inspired by DETR.

Datasets

The paper utilizes a combination of datasets for pre-training and fine-tuning:

  • Pre-training: A large dataset of 6,796 head CT scans from various public sources (Sino-CT, CQ500, MosMED, TopCoW) was used. These scans encompass both low and high resolutions and are largely unannotated for aneurysms.
  • Fine-tuning: The Bo et al.'s Large IA Segmentation dataset was used for fine-tuning. This dataset includes internal training and evaluation partitions, as well as an external evaluation partition from different hospitals. Additionally, the CMHA dataset and a privately annotated dataset from the US were used for evaluation.

Key Insights and Ideas

  • Anatomical Priors are Crucial for Medical MAE: The success of their method strongly suggests that incorporating domain-specific anatomical information (like vessel proximity) into self-supervised pre-training is key to achieving high performance in medical imaging tasks, especially when annotated data is scarce.
  • Focusing on Arteries Improves Detection: By strategically masking areas near arteries, the model is implicitly guided to learn features that are more relevant for identifying aneurysms, which are inherently vascular abnormalities.
  • Artery Distance Maps Enhance Representations: Reconstructing artery distance maps alongside CT intensity provides the model with a richer understanding of the spatial relationships within the vasculature, leading to more robust feature learning.
  • Transformer Architectures are Scalable for 3D Medical Imaging: The paper demonstrates that a Transformer-only architecture, with efficient attention mechanisms, can effectively handle 3D medical data and benefit significantly from self-supervised pre-training.

Key Results

The proposed anatomically-guided MAE pre-training strategy, when applied to a Transformer-only detection pipeline, achieved state-of-the-art results:

  • Improved Sensitivity: The model consistently achieved higher lesion-level sensitivity compared to strong baselines (CPM-Net, nnDet, Deformable) across multiple datasets. Specifically, it achieved a +2-7% absolute Sensitivity improvement at a false positive rate (FPr) of 0.5.
  • Out-of-Distribution Performance: The method showed a significant advantage on out-of-distribution datasets, highlighting its superior generalization capabilities.
  • Qualitative Success: Figure 4 demonstrates the model's ability to accurately detect aneurysms of various sizes and locations, with some false positives being difficult even for radiologists to identify.
  • Efficiency: The inference runtime was competitive, being faster than some strong baselines and fast enough for potential clinical deployment.

Limitations and Future Work

  • Small Aneurysm Detection: The model showed slightly worse performance on small aneurysms, which the authors attribute to the fixed input resolution potentially missing finer details. This suggests future work could explore multi-resolution approaches or finer patch sizes.
  • Out-of-Distribution Private Dataset: While the model still outperformed baselines on the private out-of-distribution dataset, its performance was lower than on other test sets. This underscores the challenge of adapting to populations with significantly different data distributions and suggests the need for more robust domain adaptation strategies.
  • Vessel Segmentation Accuracy: The reliance on an nn-UNet for artery segmentation means that potential segmentation errors could impact pre-training. However, the authors note that the segmentation masks are generally accurate enough, and the model's robustness to minor errors is a benefit.
  • Future Directions: The authors envision combining CTA scans with electronic health records for more personalized clinical applications and exploring longitudinal analyses. The Transformer-only architecture also opens doors for future work in multimodal integration.

Summary updated

BibTeX
@inproceedings{arroyo2026anatomically,
  author = {Alberto M. Ceballos Arroyo and Jisoo Kim and Chu-Hsuan Lin and Lei Qin and Geoffrey S. Young and Huaizu Jiang},
  title = {{Anatomically-guided Masked Autoencoder Pre-training for Aneurysm Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure