No project description provided
Project description
SUPER IVIM-DC
Intra-voxel incoherent motion (IVIM) analysis of fetal lungs Diffusion-Weighted MRI (DWI) data shows potential in providing quantitative imaging bio-markers that reflect, indirectly, diffusion and pseudo-diffusion for non-invasive fetal lung maturation assessment. However, long acquisition times, due to the large number of different 'b-value' images required for IVIM analysis, precluded clinical feasibility.
We introduce SUPER-IVIM-DC a deep-neural-networks (DNN) approach which couples supervised loss with a data-consistency term to enable IVIM analysis of DWI data acquired with a limited number of b-values.
We demonstrated the added-value of SUPER-IVIM-DC over both classical and recent DNN approaches for IVIM analysis through numerical simulations, healthy volunteer study, and IVIM analysis of fetal lung maturation from fetal DWI data.
Our numerical simulations and healthy volunteer study show that SUPER-IVIM-DC estimates of the IVIM model parameters from limited DWI data had lower normalized root mean-squared error compared to previous DNN-based approaches. Further, SUPER-IVIM-DC estimates of the pseudo-diffusion fraction parameter from limited DWI data of fetal lungs correlate better with gestational age compared to both to classical and DNN-based approaches (0.555 vs. 0.463 and 0.310).
SUPER-IVIM-DC has the potential to reduce the long acquisition times associated with IVIM analysis of DWI data and to provide clinically feasible bio-markers for non-invasive fetal lung maturity assessment.
Usage
Install the package using pip install super-ivim-dc
In order to use the function fit_least_squares_BOBYQA, the package nlopt is required, which requires libnlopt-dev.
sudo apt install libnlopt-dev
pip install "super-ivim-dc[BOBYQA]"
We also have a sample notebook on Google Colab.
Run training, generate .pt files
from super_ivim_dc.train import train
import numpy as np
working_dir: str = './working_dir'
super_ivim_dc_filename: str = 'super_ivim_dc' # do not include .pt
ivimnet_filename: str = 'ivimnet' # do not include .pt
bvalues = np.array([0,15,30,45,60,75,90,105,120,135,150,175,200,400,600,800])
snr = 10
sample_size = 100
train(
SNR=snr,
bvalues=bvalues,
super_ivim_dc=True,
ivimnet=True,
work_dir=working_dir,
super_ivim_dc_filename=super_ivim_dc_filename,
ivimnet_filename=ivimnet_filename,
verbose=False
)
This will create the following files:
- ivimnet_init.json, super_ivim_dc_init.json - contains the initial values used in the training
- ivimnet.pt, super_ivim_dc.pt - the pytorch models
Generate a random signal and test the generated model
from super_ivim_dc.infer import test_infer
test_infer(
SNR=snr,
bvalues=bvalues,
work_dir=working_dir,
super_ivim_dc_filename=super_ivim_dc_filename,
ivimnet_filename=ivimnet_filename,
save_figure_to=None, # if set to None, the figure will be shown in the notebook
sample_size=sample_size,
)
Generate signal
from super_ivim_dc.IVIMNET import simulations
IVIM_signal_noisy, Dt, f, Dp = simulations.sim_signal(
SNR=snr,
bvalues=bvalues,
sims=sample_size
)
Dt, f, Dp = np.squeeze(Dt), np.squeeze(f), np.squeeze(Dp)
Run inference on the generated signal
from super_ivim_dc.infer import infer_from_signal
Dp_ivimnet, Dt_ivimnet, Fp_ivimnet, S0_ivimnet = infer_from_signal(
signal=IVIM_signal_noisy,
bvalues=bvalues,
model_path=f"{working_dir}/{ivimnet_filename}.pt",
)
Dp_superivimdc, Dt_superivimdc, Fp_superivimdc, S0_superivimdc = infer_from_signal(
signal=IVIM_signal_noisy,
bvalues=bvalues,
model_path=f"{working_dir}/{super_ivim_dc_filename}.pt",
)
Citation
If you find this code useful in your research, please consider citing:
@inproceedings{korngut2022super,
title={SUPER-IVIM-DC: Intra-voxel incoherent motion based Fetal lung maturity assessment from limited DWI data using supervised learning coupled with data-consistency},
author={Korngut, Noam and Rotman, Elad and Afacan, Onur and Kurugol, Sila and Zaffrani-Reznikov, Yael and Nemirovsky-Rotman, Shira and Warfield, Simon and Freiman, Moti},
booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
pages={743--752},
year={2022},
organization={Springer}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file super_ivim_dc-1.2.0.tar.gz.
File metadata
- Download URL: super_ivim_dc-1.2.0.tar.gz
- Upload date:
- Size: 60.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d453f5ed272087a3f5c0128abb5230a398b66ba56d8af1ca84588ac5d54d32dd
|
|
| MD5 |
5e0f320a34c9066ce40beee77792d4b3
|
|
| BLAKE2b-256 |
1697397d41f6eeb2bc5a3e1f6706186b9fecf37e5c7c021f6c0eb0e2c418540a
|
Provenance
The following attestation bundles were made for super_ivim_dc-1.2.0.tar.gz:
Publisher:
pypi.yml on TechnionComputationalMRILab/SUPER-IVIM-DC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
super_ivim_dc-1.2.0.tar.gz -
Subject digest:
d453f5ed272087a3f5c0128abb5230a398b66ba56d8af1ca84588ac5d54d32dd - Sigstore transparency entry: 319280930
- Sigstore integration time:
-
Permalink:
TechnionComputationalMRILab/SUPER-IVIM-DC@423186b2ed54b8eb55f5efaca5f0ffdd760782ed -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/TechnionComputationalMRILab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@423186b2ed54b8eb55f5efaca5f0ffdd760782ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file super_ivim_dc-1.2.0-py3-none-any.whl.
File metadata
- Download URL: super_ivim_dc-1.2.0-py3-none-any.whl
- Upload date:
- Size: 66.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86d34f4aff1fa59c68ee8005ae823e121a80b4ced5a4180a644a16641f6b55be
|
|
| MD5 |
de2cd525ab8bc5ea53fa52b6860eba96
|
|
| BLAKE2b-256 |
7eca893334f8270395f56b89e785c61218413301a194c6d9d8024f21e159a73d
|
Provenance
The following attestation bundles were made for super_ivim_dc-1.2.0-py3-none-any.whl:
Publisher:
pypi.yml on TechnionComputationalMRILab/SUPER-IVIM-DC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
super_ivim_dc-1.2.0-py3-none-any.whl -
Subject digest:
86d34f4aff1fa59c68ee8005ae823e121a80b4ced5a4180a644a16641f6b55be - Sigstore transparency entry: 319280934
- Sigstore integration time:
-
Permalink:
TechnionComputationalMRILab/SUPER-IVIM-DC@423186b2ed54b8eb55f5efaca5f0ffdd760782ed -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/TechnionComputationalMRILab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@423186b2ed54b8eb55f5efaca5f0ffdd760782ed -
Trigger Event:
push
-
Statement type: