Skip to content

MI2DataLab/agg2exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aggregated Attributions for Explanatory Analysis of 3D Segmentation Models

This is the official code for the paper "Aggregated Attributions for Explanatory Analysis of 3D Segmentation Models," accepted in the first round at the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) 2025.

Abstract

Analysis of 3D segmentation models, especially in the context of medical imaging, is often limited to segmentation performance metrics that overlook the crucial aspect of explainability and bias. Currently, effectively explaining these models with saliency maps is challenging due to the high dimensions of input images multiplied by the ever-growing number of segmented class labels. To this end, we introduce Agg$^2$Exp, a methodology for aggregating fine-grained voxel attributions of the segmentation model's predictions. Unlike classical explanation methods that primarily focus on the local feature attribution, Agg$^2$Exp enables a more comprehensive global view on the importance of predicted segments in 3D images. Our benchmarking experiments show that gradient-based voxel attributions are more faithful to the model's predictions than perturbation-based explanations. As a concrete use-case, we apply Agg$^2$Exp to discover knowledge acquired by the Swin UNEt TRansformer model trained on the TotalSegmentator v2 dataset for segmenting anatomical structures in computed tomography medical images. Agg$^2$Exp facilitates the explanatory analysis of large segmentation models beyond their predictive performance.

Model

Model used for our experiments was trained on selected and joined thorax classes from TotalSegmentator-V2 (TSV2) dataset. Code used for training and inference of our Swin Unetr is available at model folder. With the following files/folders:

Explanations

Code used for explanations, aggregations and visualizations is available at explanations folder. Files/folders explanations:

Example aggregations

Example aggregated explanations are available at data/tsv2_test_aggregated_sg_explanations_with_dice.csv file.

Example Global Aggregated Attributions

Citation

ArXiv preprint can be found here.

If you find this repository useful, please consider citing this paper:

@article{chrabaszcz2024agg2exp,
      title={Aggregated Attributions for Explanatory Analysis of 3D Segmentation Models}, 
      author={Maciej Chrabaszcz and Hubert Baniecki and Piotr Komorowski and Szymon Płotka and Przemyslaw Biecek},
      year={2024},
      eprint={2407.16653},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2407.16653}, 
}

Acknowledgments

This work was financially supported by the Polish National Center for Research and Development grant number INFOSTRATEG-I/0022/2021-00. We thank Mateusz Krzyzinski and Paulina Tomaszewska for valuable feedback on the initial version of this work.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published