Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5c1b2d8
Updated `create_cardiac_masks.m`
dilyeh Mar 8, 2026
7e4f901
Initial commit for `unified_phantom`
dilyeh Mar 8, 2026
8bbdedb
Updated `unified_phantom`
dilyeh Apr 13, 2026
ed04e1d
made inline documentation more consistent and changed some argument v…
dilyeh Apr 26, 2026
de37c1a
migrated brainweb to unified phantom
dilyeh May 25, 2026
3b9c4f9
fixed `verbose_unified_phantom_test` and `concise_unified_phantom_test`
dilyeh May 25, 2026
c057ccc
updated unified_phantom README
dilyeh May 25, 2026
1d20507
reorganized file tree and added AUC plots for brainweb_clone
dilyeh May 26, 2026
67691ce
Reorganizing simulations code
agentmess Jun 2, 2026
0f30a71
Refactor README.md for PK models and phantoms
agentmess Jun 2, 2026
fcc6e6d
added `cardiac_clone`
dilyeh Jun 17, 2026
e924d86
added various visualizations
dilyeh Jun 18, 2026
318468a
added figure exports
dilyeh Jun 20, 2026
b3b550c
refactored plotting of met dynamics
dilyeh Jun 20, 2026
431d3ee
moved unified phantom to simulations/anatomical_phantoms
dilyeh Jun 20, 2026
2e39f93
Enhance README with anatomical phantoms framework details
agentmess Jun 22, 2026
f06f234
Merge branch 'master' into feature/unified_phantom
agentmess Jun 22, 2026
ac0c864
made `create_cardiac_masks` more robust and regenerated cardiac masks
dilyeh Jul 3, 2026
960f3ff
Merge branch 'feature/unified_phantom' of https://github.com/LarsonLa…
dilyeh Jul 3, 2026
88a15d3
updated unified phantom usage scripts
dilyeh Jul 17, 2026
df46cff
deleted old `unified_phantom` directory
dilyeh Jul 17, 2026
db8a4e6
fixed issue where tissues masks and coil limit maps weren't being aug…
dilyeh Jul 18, 2026
6a8e4dd
added flag to include noise in the background for `mri_system`
dilyeh Jul 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions simulations/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
# Hyperpolarized Simulation Tools

## Creating Simulated Data
## Pharmacokinetic (PK) Models

This directory includes tools for simulating metabolic imaging data based on kinetic models. These include
The `pk_models` directory includes tools for simulating metabolic imaging data based on kinetic models. These include

`realistic_input_function` - create a gamma-variate function for simulating the bolus input

`simulate_Nsite_model` - simulates up to 4-site kinetic model, with input function for the substrate and inter-conversion between up to 3 products

See [Kinetic Modeling Notebook](../demo_notebooks/Test_Kinetic_Modeling.ipynb) for examples

## Metabolic Phantom
## Anatomical Phantoms

The file metabolic_phantom.m provides a matlab function for automatically generating standardized 3-dimensional perfusion and metabolism maps for simulated experiments. The script DEMO.m demonstrates the usage of this function. Examples of the resulting parameter maps are shown below.
This framework generates anatomically realistic hyperpolarized 13C MRI data by combining anatomical and PK models. This was started with brain and heart phantoms, and built modularly to accomodate multiple anatomies and kinetic models. It also includes experimental factors that incorporate the spatial resolution, SNR, and coil sensitivity profiles.

<img src="anatomical_phantoms/examples_brainweb_phantom.png" alt="Brain phantoms" style="width: 400px;"/> <img src="anatomical_phantoms/examples_cardiac_phantom.png" alt="Heart phantoms" style="width: 600px;"/>

## Metabolic Shapes Phantom

In `metabolic_shapes_phantom`, the file metabolic_phantom.m provides a matlab function for automatically generating standardized a geometric shape-based 3-dimensional perfusion and metabolism maps for simulated experiments. The script DEMO.m demonstrates the usage of this function. Examples of the resulting parameter maps are shown below.

kTRANS (perfusion) map:

<img src="metabolic_phantom/kTRANS_16.png" alt="Example kTRANS map 16 voxels" style="width: 200px;"/> <img src="metabolic_phantom/kTRANS_256.png" alt="Example kTRANS map 256 voxels" style="width: 200px;"/>
<img src="metabolic_shapes_phantom/kTRANS_16.png" alt="Example kTRANS map 16 voxels" style="width: 200px;"/> <img src="metabolic_shapes_phantom/kTRANS_256.png" alt="Example kTRANS map 256 voxels" style="width: 200px;"/>

kPL (metabolism) map:

<img src="metabolic_phantom/kPL_16.png" alt="Example kPL map 16 voxels" style="width: 200px;"/> <img src="metabolic_phantom/kPL_256.png" alt="Example kPL map 256 voxels" style="width: 200px;"/>
<img src="metabolic_shapes_phantom/kPL_16.png" alt="Example kPL map 16 voxels" style="width: 200px;"/> <img src="metabolic_shapes_phantom/kPL_256.png" alt="Example kPL map 256 voxels" style="width: 200px;"/>

## Monte Carlo Simulations of Analysis Metrics

Given the experimental challenges of time, cost, and lack of ground truth for HP studies, simulations are an invaluable tool for evaluating data acquisition and analysis strategies.
This toolbox includes a Monte Carlo based simulation tool `HP_montecarlo_evaluation()` which uses a 2-site kinetic model (`simulate_Nsite_model()`) with added noise and your choice of experiment parameters (e.g. flip angles, timings) and analysis metric(s) (e.g. kPL, AUCratios).
This toolbox includes a Monte Carlo based simulation tool `HP_montecarlo_evaluation()` in `montecarlo_simulations` which uses a 2-site kinetic model (`simulate_Nsite_model()`) with added noise and your choice of experiment parameters (e.g. flip angles, timings) and analysis metric(s) (e.g. kPL, AUCratios).
It evalutes the sensitivity of this combination of experiment parameters and analysis metric to changes in kinetic rate, noise level, bolus characteristics, relaxation rates, and B1+ (e.g. flip angle).

Several examples including different acquisition schemes, different kinetic model approaches, and comparison to an AUCratio are in the `test_HP_montecarlo_evaluation.m` script, which has the expected output:
Expand All @@ -34,13 +40,15 @@ Several examples including different acquisition schemes, different kinetic mode

### Examples
```
Larson PEZ, Chen HY, Gordon JW, Korn N, Maidens J, Arcak M, Tang S, Criekinge M, Carvajal L, Mammoli D, Bok R, Aggarwal R, Ferrone M, Slater JB, Nelson SJ, Kurhanewicz J, Vigneron DB. Investigation of analysis methods for hyperpolarized 13C-pyruvate metabolic MRI in prostate cancer patients. NMR Biomed. 2018 Nov;31(11):e3997.
Larson PEZ, Chen HY, Gordon JW, Korn N, Maidens J, Arcak M, Tang S, Criekinge M, Carvajal L, Mammoli D, Bok R, Aggarwal R, Ferrone M, Slater JB, Nelson SJ, Kurhanewicz J, Vigneron DB.
Investigation of analysis methods for hyperpolarized 13C-pyruvate metabolic MRI in prostate cancer patients. NMR Biomed. 2018 Nov;31(11):e3997.
https://doi.org/10.1002/nbm.3997. Epub 2018 Sep 19. PMID: 30230646; PMCID: PMC6392436.
```
* See Figures 4-6

```
James Bankson, Peder E.Z. Larson, Analysis and visualization of hyperpolarized 13C MR data, Editor(s): Peder E.Z. Larson, Advances in Magnetic Resonance Technology and Applications, Academic Press,
James Bankson, Peder E.Z. Larson, Analysis and visualization of hyperpolarized 13C MR data,
Editor(s): Peder E.Z. Larson, Advances in Magnetic Resonance Technology and Applications, Academic Press,
Volume 3, 2021, Pages 129-155, ISSN 2666-9099, ISBN 9780128222690, https://doi.org/10.1016/B978-0-12-822269-0.00004-X
```
* Figures 6.8 and 6.9
Expand All @@ -50,7 +58,9 @@ Volume 3, 2021, Pages 129-155, ISSN 2666-9099, ISBN 9780128222690, https://doi.o
Simulates the effect of pulse sequence parameters (flip angles, phase encoding, etc) on pH measurements for HP bicarbonate studies. Based on:

```
Korenchan, DE, Gordon, JW, Subramaniam, S, et al. Using bidirectional chemical exchange for improved hyperpolarized [13C]bicarbonate pH imaging. Magn Reson Med. 2019; 82: 959–972. doi: 10.1002/mrm.27780
Korenchan, DE, Gordon, JW, Subramaniam, S, et al.
Using bidirectional chemical exchange for improved hyperpolarized [13C]bicarbonate pH imaging.
Magn Reson Med. 2019; 82: 959–972. doi: 10.1002/mrm.27780
```
https://doi.org/10.1002/mrm.27780
##
297 changes: 0 additions & 297 deletions simulations/anatomical_phantoms/brainweb_metabolic_phantom.m

This file was deleted.

Loading