Published in ASMSUS 2022 [Paper]
This repository contains a PyTorch implementation of our method used in the paper above for MI classification from echocardiography videos using models pretrained on ejection fraction prediction.
Clone this repository and enter the directory:
git clone https://github.com/BioMedIA-MBZUAI/mi-classification.git
cd mi-classificationThe code is implemented for Python 3.8.10.
Install dependencies using pip:
pip install -r requirements.txt- Download the dataset from EchoNet-Dynamic website
- Run the following to extract one cardiac cycle from each video, preprocess and store it as a tensor:
cd ef
python3 echo.py path/to/EchoNet/Videos
- Download the dataset from CAMUS challenge website
- Run the following to extract one cardiac cycle from each video, preprocess and store it as a tensor:
cd ef
python3 camus.py path/to/CAMUS/files
- Download the dataset from Kaggle
- Run the following to extract one cardiac cycle from each video, preprocess and store it as a tensor:
cd mi/a4c
python3 cycle.py /path/to/A4C/videos/
cd mi/a2c
python3 cycle.py /path/to/A2C/videos/
cd mi/ef
python3 train.py
cd mi/a4c
python3 train.py --pretrained
cd mi/a2c
python3 train.py --pretrained
@inproceedings{saeed2022end,
title={End-to-End Myocardial Infarction Classification from Echocardiographic Scans},
author={Saeed, Mohamed and Yaqub, Mohammad},
booktitle={International Workshop on Advances in Simplifying Medical Ultrasound},
pages={54--63},
year={2022},
organization={Springer}
}