Skip to content

Implementation of the paper: Graph Neural Networks for modelling breast biomechanical compression (Accepted at DeepBreath-MICCAI2024)

License

Notifications You must be signed in to change notification settings

hadiiiil/GNNs-BreastCompression

Repository files navigation

GNNs-BreastCompression

Folder Structure

The following is the required folder structure for this project. If any of the folders are missing, please create them:

GNNs-BreastCompression/
├── Data_Generator/
├── Environment/
├── FEA-simulations/
├── Hold-out/
├── LODO/
├── process-compressed/
├── uncompressed_nrrd/
├── mesh_data.ipynb
├── niftysim.ipynb
├── preprocessing.ipynb
└── qualitative.ipynb

Environment

To set up the environment, please refer to the instructions in the Environment folder.

Dockers

To build NiftySim Docker, please follow the instructions:

git clone https://github.com/eloygarcia/niftysim.git
cd niftysim
docker build -t niftysim:2.5 .

To build Reconstruct Phantom Docker, please follow the instructions:

git clone https://github.com/eloygarcia/RadboudCompression.git
cd "RadboudCompression/Phantom Reconstruction/Reconstruct Image"
docker build -t reconstruct-image .

Preprocessing the the uncompressed phantom

Run the following command with the right paths, in the public dataset there is a metadata CSV file that will be needed:

The isotropic spacing that was used is 0.273

python GNNs-BreastCompression/preprocessing.py <dicom_folder> <csv_file> <output_folder> <isotropic_spacing>

Running the FEA-simulations

Make sure to update the path as prompted in the notebook niftysim.ipynb. This notebook is for mesh generation, runs NiftySim simulations, and reconstructs the phantom image. Incremental simulations will be achieved by adjusting the thickness and offset of the plates with each run and manually saving the output displacements from the Niftysim Docker output.

Data Extraction

Run mesh_data.ipynb to extract the data from the uncompressed mesh, and generate the random force directions

Experiments

For Hold-out experiment, please refer to the instructions in the Hold-out folder. For Leave-one-deforamtion-out experiment, please refer to the instructions in the LODO folder.

Processing PhysGNN output

To produce qualitative results of LODO experiment, run qualitative.ipynb and make sure to update the path as prompted for reconstructing the compressed phantom.

About

Implementation of the paper: Graph Neural Networks for modelling breast biomechanical compression (Accepted at DeepBreath-MICCAI2024)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published