Skip to content

Hierarchical Vision Transformers for Disease Progression Detection in Chest X-Ray Images

Notifications You must be signed in to change notification settings

PLAN-Lab/CheXRelFormer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hierarchical Vision Transformers for CXR Disease Progression Detection

Amarachi B. Mbakwe,Lyuyang Wang, Mehdi Moradi, and Ismini Lourentzou

Here, we provide the code implementation of the paper: Hierarchical Vision Transformers for CXR Disease Progression Detection.

📐 Network Architecture

image-model

🚀 Requirements

Python 3.8.0
pytorch 1.10.1
torchvision 0.11.2
einops  0.3.2

🔧 Getting Started

To run the code, create a virtual conda environment named CheXRelFormer with the following cmd:

conda create --name CheXRelFormer --file requirements.txt
conda activate CheXRelFormer

📖 Installation

Clone this repo:

git clone https://github.com/PLAN-Lab/CheXRelFormer.git
cd CheXRelFormer

📖 Training

To train the models, edit the arguments in the run_CheXRelFormer.sh in the script folder. Then run the training script by running the command sh scripts/run_CheXRelFormer.sh.

📖 Evaluation

To evaluate the models, edit the arguments in the eval_CheXRelFormer.sh in the script folder. Then run the training script by running the command sh scripts/eval_CheXRelFormer.sh.

📂 Dataset used in the paper

We used the following dataset:

"""
The dataset folder was processed in the following structure;
├─A
├─B
├─label
└─list
"""

A: previous CXR from a patient;

B:post images CXR from the same patient;

label: comparison - improved, worsened, no change;

list: contains train.txt, val.txt and test.txt, each file contains the image names.

👍 Citation

If you find this method and/or code useful, please consider citing

@inproceedings{10.1007/978-3-031-43904-9_66,
author="Mbakwe, Amarachi B. and Wang, Lyuyang and Moradi, Mehdi and Lourentzou, Ismini",
title="Hierarchical Vision Transformers for Disease Progression Detection in Chest X-Ray Images",
booktitle="Medical Image Computing and Computer Assisted Intervention -- MICCAI 2023",
year="2023",
publisher="Springer Nature Switzerland",
address="Cham",
pages="685--695"
}

About

Hierarchical Vision Transformers for Disease Progression Detection in Chest X-Ray Images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published