Skip to content

Code for IMVIP 2024 paper "Analysing the Impact of Pre-training in ResUNet Architectures for Multiple Sclerosis Lesion Segmentation using EigenGradCAM"

License

Notifications You must be signed in to change notification settings

VishmiVishara/XAI-ResUNet

Repository files navigation

XAI-ResUNet: Analysing the Impact of Pre-training in ResUNet Architectures for Multiple Sclerosis Lesion Segmentation using EigenGradCAM

Overview

This project is an implementation of the paper "XAI-ResUNet: Analysing the Impact of Pre-training in ResUNet Architectures for Multiple Sclerosis Lesion Segmentation using EigenGradCAM," which has been accepted for the 26th Irish Machine Vision and Image Processing Conference at the University of Limerick, Ireland, from Wednesday, August 21st, 2024, to Friday, August 23rd, 2024.

Dataset

The dataset used for this paper, MSSEG-2016, can be downloaded from https://shanoir.irisa.fr/shanoir-ng/welcome.

Proposed Architecture

architecture

Results

Qualitative results so far:

  1. Rows 1 & 2 are ImageNet XAI-ResUNet trained using ImageNet-trained ResNet-50 weights for the encoder (EX1) (red)
  2. Rows 3 & 4 are RadImageNet XAI-Res-UNet trained using RadImageNet-trained ResNet-50 weights for the encoder (EX2) (green)
  3. Rows 5 & 6 are Vanilla XAI-ResUNet trained using no pre-trained weights for the encoder (EX3) (blue).

qualitative_2

Sample qualitative results including EigenGradCAM localization heatmaps overlaid on the original images where red indicates higher pixel importance and ground truth lesion contours are shown in black.

Setup

conda create -n “xai-resunet-env” python=3.10.12
pip install torchvision==0.15.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt

Download RadImageNet pretrained ResNet-50 model from here: https://github.com/BMEII-AI/RadImageNet?tab=readme-ov-file
Torch version: 2.0.0+cu117
TorchVision version: 0.15.0+cu117

Preprocess the dataset

  • XAI-ResUnet/: Root directory of the project
    • data/: Contains all the data related to the project
      • original_data/: Folder for the original dataset
        • Training/: Extract the MSSEG-2016 Training.zip here
        • Testing/: Extract the MSSEG-2016 Testing.zip here
python preprocess.py

Run XAIResUnet Experiments

python main.py --model "XAIResUnet_Imagenet" --epoch "100"
python main.py --model "XAIResUnet_Radimagenet" --epoch "100" 
python main.py --model "XAIResUnet_Vanilla" --epoch "100"

Contact

Please feel free to raise an issue or contact me at vayangi.ganepola2@mail.dcu.ie with any queries or for discussions.

Acknowledgement

Vayangi Ganepola, Prateek Mathur, Oluwabukola Adegboro, Julia Dietlmeier, Aonghus Lawlor, Noel E. O'Connor, Claudia Mazo. "XAI-ResUNet: Analysing the Impact of Pre-training in ResUNet Architectures for Multiple Sclerosis Lesion Segmentation using EigenGradCAM". 26th Irish Machine Vision and Image Processing Conference, University of Limerick, Ireland. August 21st, 2024 - August 23rd, 2024.

Releases

No releases published

Languages