Skip to content

MWod/AutoImplant_2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoImplant 2021 - AGH Team Contribution

Work In Progress

Introduction

The respository contains source code developed by AGH Team for the AutoImplant Challenge organized jointly with the MICCAI 2021 conference, and then further extended.

Our contribution scored the 1st place in all the challenge tasks.

We release the complete source code to support the open and reproducible research.

Methods

The method aims to propose a method for fully automatic cranial implant reconstruction. The input to the method is a binary mask of the skull with a cranial defect. The output of the method is an automatically calculated reconstruction of the cranial defect, or optionally the implant itself (in .nrrd format or .stl ready for 3-D printing).

Pipeline

3D

MR

The full descrption of the proposed method is presented in Link

Please find a link to a movie presenting the method outcome: The Movie

Code structure

The code structure is follows:

  • The main files:

    • pipeline.py - The main file implementing the method pipeline. This is the file you want to use to perform the defect reconstruction or the implant modeling.
    • example.py - An example how to use the pipeline.py file.
  • The utility files:

    • paths.py - The file contains the absolute and relative paths used within the training/evaluation scripts. You do not need to change the paths for using the source code. However, if you plan to reproduce the results you should replace the absolute paths at the beginning of the file.
    • utils.py - The file contains numerous simple utility functions used in all the remaining files.
  • The data pre/post-processing files:

  • The augmentation files:

    • augmentation.py - This file contains basic geometrical augmentation (affine transformation / flipping).
    • image_registration.py - This file performs the cross-case image registration to perform the offline augmentation. This augmentation is the most influential in terms of improving the method generalizability.
  • The training files:

  • The evaluation files:

    • evaluation.py - This file performs the evaluation of a given model (for the defect reconstruction / defect refinement.)
    • evaluation_metrics.py - This file contains the evaluation metrics. NOTE: File from the AutoImplant 2021 organizers.
    • run_evaluation.py - This file runs the evaluation on the full resolution for the whole processing pipeline.

How to perform the defect reconstruction

Please find a detailed example in the example.py file.

How to reproduce the results

  1. Change and create absolute paths in paths.py
  2. Use csv_creator.py to create the training/validation/testing CSV files.
  3. Use preprocessing.py to preprocess the training/validation files.
  4. (Optional) Use the image_registration.py to perform the cross-case image registration to augment the dataset. NOTE: This requires separate library and may take a lot of time (performs more than 20 000 3-D registrations). For an access to the augmented training set, please see Pretrained models
  5. (Optional) Use the vae_augmented_training_set_creation.py to perform the image generation-based data augmentation.
  6. Use the training_implant_reconstruction.py to train the defect reconstruction model.
  7. (Optional) Use the skull_refinement_training_set_creation.py to create the training set for the defect refinement.
  8. (Optional) Use the training_implant_reconstruction.py again, this time for the defect refinement.
  9. Use the pipeline.py and/or example.py to perform the defect reconstruction / implant modeling.

Exemplary experiments/evaluation files are in the Experiments and Evaluation respectively.

Pretrained models

If you just want to use the model, without reproducing the method by yourself, please contact wodzinski@agh.edu.pl for the access to the pretrained models.

Future work

In the future work we plan to perform the implant modeling directly, without the defect reconstruction, using deep reinforcment learning. Please stay tuned if you are interested in this topic.

References

If you found the source code useful please cite:

  • M. Wodzinski, M. Daniol, M. Socha, D. Hemmerling, M. Stanuch, A. Skalski, Deep Learning-based Framework for Automatic Cranial Defect Reconstruction and Implant Modeling, Computer Methods and Programs in Biomedicine, 2022, DOI: 10.1016/j.cmpb.2022.107173 Link
  • M. Wodzinski, M. Daniol, D. Hemmerling, Improving the Automatic Cranial Implant Design in Cranioplasty by Linking Different Datasets, AutoImplant 2021: Towards the Automization of Cranial Implant Design in Craniplasty II, DOI: 10.1007/978-3-030-92652-6_4 Link
  • J. Li, et. al., Towards Clinical Applicability and Computation Efficiency in Automatic Cranial Implant Design: An overview of the AutoImplant 2021 Cranial Implant Design Challenge, In Review Link

Acknowledgments

We would like to thank:

  • The AutoImplant challenge organziers for evaluating our ablation studies on the testing set - Link.
  • The MedApp S.A for giving us the access to the CarnaLife Holo technology - Link.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages