We introduce a two-stage pipeline for the RibFrac challenge, automating rib fracture detection and segmentation in CT scans. Our method combines a 3D Retinanet for initial detection and a U-net for precise segmentation. We address challenges in training the Retinanet, emphasizing anchor box optimization, class imbalance, and input patching. When we assess both networks within the two-stage framework, we observe that issues encountered during Retinanet training have a detrimental effect on the performance of the U-net. However, when isolating the U-net, we present qualitative results for the U-net, underscoring the potential of our two-step approach. Future work includes addressing optimization challenges and exploring false positive detection networks.
Install and activate the conda environment.
conda create -n ribfrac python=3.7
conda activate ribfrac
We provide a tiny dataset data_dev (444 MB), which can be used for quick development. To be saved in the project directoty as data_dev/ Furthermore, it is used in notebooks/ to highlight the key components of our pipeline.
To download the competition data, you can download the competition data by first Join the challenge then visit the Dataset page. We also provide a script that downloads all the data, which can be found in jobs/.
# Preprocess the data
python preprocess.py --split val
python preprocess.py --split train
python preprocess.py --split test
# Run the detection network, the retinanet
python run.py --train --net retinanet --dataset patches --version run0
python run.py --predict --net retinanet --dataset patches --version run0
# Run the segmentation network, the 3D U-Net
python run.py --train --net unet3d --dataset boxes
python run.py --train --net unet3d --dataset boxes --data_dir ../logs/retinanet/run0 --version run0 --splits train val
python run.py --predict --net unet3d --dataset boxes --data_dir ../logs/retinanet/run0 --version run0 --splits test
jobs/Bash scripts to download data.notebooks/Notebooks that showcases how the networks can be trained.ribfrac/Contains RibFrac challenge evaluation scripts. Found from: MICCAI 2020 RibFrac Challenge.src/Source code of our implemenation
If you have questions or found a bug, send a email to eliasdubbeldam@gmail.com
