XAI-ResUNet: Analysing the Impact of Pre-training in ResUNet Architectures for Multiple Sclerosis Lesion Segmentation using EigenGradCAM
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.
The dataset used for this paper, MSSEG-2016, can be downloaded from https://shanoir.irisa.fr/shanoir-ng/welcome.
Qualitative results so far:
- Rows 1 & 2 are ImageNet XAI-ResUNet trained using ImageNet-trained ResNet-50 weights for the encoder (EX1) (red)
- Rows 3 & 4 are RadImageNet XAI-Res-UNet trained using RadImageNet-trained ResNet-50 weights for the encoder (EX2) (green)
- Rows 5 & 6 are Vanilla XAI-ResUNet trained using no pre-trained weights for the encoder (EX3) (blue).
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.
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
- 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
- original_data/: Folder for the original dataset
- data/: Contains all the data related to the project
python preprocess.py
python main.py --model "XAIResUnet_Imagenet" --epoch "100"
python main.py --model "XAIResUnet_Radimagenet" --epoch "100"
python main.py --model "XAIResUnet_Vanilla" --epoch "100"
Please feel free to raise an issue or contact me at vayangi.ganepola2@mail.dcu.ie with any queries or for discussions.
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.