PhysioTwin4D
A collection of methods, workflows, tutorials, and CLI tools for creating personalized physiological digital twins.
PhysioTwin4D typically begins with a 3D medical image of a subject, extracts anatomic models from that image, and then uses AI surrogates to estimate the subject's physiological processes — initially focusing on cardiac and respiratory motion, and expanding to electrophysiology, blood flow, and organ perfusion. The package provides methods for forming these physiological AI surrogates and for finetuning the segmentation and registration AI methods that power them, with special emphasis on statistical shape models: they capture subject-specific characteristics that help determine subject-specific physiological function, and establish correspondence across subjects to aid AI surrogate generalization and simplify the application of traditional solvers.
PhysioTwin4D is not validated for clinical use. It is a research and visualization toolkit, not a medical device, and must not be used for diagnosis, treatment planning, or clinical decision-making.
Documentation
https://project-monai.github.io/physiotwin4d/ is the primary entry point for users and contributors. Key sections:
- Installation and Quickstart
- Tutorials — runnable end-to-end workflows and their datasets
- CLI & Scripts Guide — command-line tools for conversion, segmentation, registration, and USD workflows
- API Reference — workflow, registration, segmentation, and USD classes
- Developer Guides — architecture, extension points, and implementation conventions
- Contributing and Testing
- FAQ and Troubleshooting
Highlights
- Personalized digital twins: build subject-specific anatomic models and physiological AI surrogates from 3D/4D medical images
- Statistical shape models: capture subject-specific anatomy and establish cross-subject correspondence, aiding AI surrogate generalization and simplifying traditional solver setup
- Simplified workflows on industry-leading open-source tools: ICON and Greedy for registration; MONAI with TotalSegmentator and Simpleware for segmentation; scikit-learn for statistical shape modeling; ITK for image processing; PyVista and OpenUSD/Omniverse for geometry manipulation; CuPy for accelerated computing; and PhysicsNeMo for AI surrogates
- Extensible class hierarchy: add new segmentation and registration methods, and extend to new data types, organs, and physiological processes, without reworking the workflow layer
- Physiological motion: cardiac and respiratory motion today, expanding to electrophysiology, blood flow, and organ perfusion
- NVIDIA Omniverse as the simulation hub: the end goal for simulation — a simulation-information hub and gateway to other engines (e.g., Ansys solvers), interactive simulations for treatment planning (e.g., Isaac Sim, Newton), visualization systems (e.g., AR/VR devices), and physical systems (e.g., robots via ROS)
- CLI and Python API: installed command-line tools and workflow classes for repeatable, scriptable pipelines
Quick Start
Install
uv pip install "physiotwin4d[all]"
See the installation guide for GPU setup, source installs, and optional extras (PhysicsNeMo).
Download Tutorials
The tutorials are not installed by pip. They live in this repository. Clone it to run them:
git clone https://github.com/Project-MONAI/physiotwin4d.git
Download Tutorial Data
Tutorial 1 (heart) runs on the public Slicer-Heart 4D CT sample. We provide automated download for multiple datasets via a CLI. However, one key dataset from DirLab requires manual download, see data/DirLab-4DCT/README.md.
IMPORTANT: Run the download from the top level of the clone. The tutorials resolve their inputs against the repository root, so downloading elsewhere puts the data where they will not find it.
cd physiotwin4d
physiotwin4d-download-data Slicer-Heart-CT --directory data/Slicer-Heart-CT
Run Tutorial 01: Gated CT to USD
python tutorials/tutorial_01_heart_gated_ct_to_usd.py
Explore the Code
That tutorial builds the same workflow the Python API exposes:
import itk
from pathlib import Path
from physiotwin4d import (
RegisterImagesICON,
SegmentChestTotalSegmentatorWithContrast,
WorkflowConvertImageToUSD,
)
frame_files = sorted(Path("data/Slicer-Heart-CT").glob("slice_???.mha"))
time_series_images = [itk.imread(str(path)) for path in frame_files]
workflow = WorkflowConvertImageToUSD(
time_series_images=time_series_images,
reference_image=time_series_images[int(0.7 * len(time_series_images))],
output_directory="./results",
usd_project_name="cardiac_model",
registration_method=RegisterImagesICON(), # or RegisterImagesGreedy()
segmentation_method=SegmentChestTotalSegmentatorWithContrast(),
)
results = workflow.process()
Explore the CLIs
The Tutorial 01 workflow and many of the workflows in this toolkit are also available as command-line tools but CLIs provide fewer options for customization:
physiotwin4d-convert-image-to-usd cardiac_4d.nrrd --contrast --output-dir ./results
Next Steps
See the quickstart and tutorials for full walkthroughs covering segmentation, registration, statistical shape modeling, and USD export.
Contributing
See the contributing guide for code style, testing, IDE setup, and pull request conventions.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Additionally, NVIDIA Omniverse is distributed under its own custom license, which makes it free for academic and commercial use. https://docs.omniverse.nvidia.com/ov/latest/common/NVIDIA_Omniverse_License_Agreement.html
Non-commercial Licenses (optional)
- NVIDIA Segment CT MRI AI weights (used in the SegmentNVSegmentCTMRI class, are restricted from commercial use. https://github.com/NVIDIA-Medtech/NV-Segment-CTMR
- TotalSegmentator includes the optional use of some of their research-only models. Using those models assumes that you have
the appropriate license key install, otherwise an error occurs. Those models can be disabled by calling
set_has_academic_license(False)member function of theSegmentChestTotalSegmentatorclass.
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 physiotwin4d-2026.8.0.tar.gz.
File metadata
- Download URL: physiotwin4d-2026.8.0.tar.gz
- Upload date:
- Size: 305.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed6bbc4cf504db979d40aae55e800b9e96797c60aabe5c759858216b72770db
|
|
| MD5 |
48107e9f801e1e1efa272d44f39755fd
|
|
| BLAKE2b-256 |
166c2a82efec5908c8f1d1b5d34cde140737f94a76912fe3f96006d8e23e8f25
|
Provenance
The following attestation bundles were made for physiotwin4d-2026.8.0.tar.gz:
Publisher:
release.yml on Project-MONAI/physiotwin4d
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physiotwin4d-2026.8.0.tar.gz -
Subject digest:
1ed6bbc4cf504db979d40aae55e800b9e96797c60aabe5c759858216b72770db - Sigstore transparency entry: 2467559145
- Sigstore integration time:
-
Permalink:
Project-MONAI/physiotwin4d@52b4808b3f508b1b43d3865db02911d5d2e08792 -
Branch / Tag:
refs/tags/2026.08.0 - Owner: https://github.com/Project-MONAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52b4808b3f508b1b43d3865db02911d5d2e08792 -
Trigger Event:
release
-
Statement type:
File details
Details for the file physiotwin4d-2026.8.0-py3-none-any.whl.
File metadata
- Download URL: physiotwin4d-2026.8.0-py3-none-any.whl
- Upload date:
- Size: 339.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f880504f2fb3ac0001223591760138a3b9ab3fa818d06a160b39068f1b459fcf
|
|
| MD5 |
120fe6bc9b04644e93e28e4f115e08f1
|
|
| BLAKE2b-256 |
445144b1bedd0b0591ff3deb88120fcb394804929cc1fc26618a4cac5371fdb6
|
Provenance
The following attestation bundles were made for physiotwin4d-2026.8.0-py3-none-any.whl:
Publisher:
release.yml on Project-MONAI/physiotwin4d
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physiotwin4d-2026.8.0-py3-none-any.whl -
Subject digest:
f880504f2fb3ac0001223591760138a3b9ab3fa818d06a160b39068f1b459fcf - Sigstore transparency entry: 2467559153
- Sigstore integration time:
-
Permalink:
Project-MONAI/physiotwin4d@52b4808b3f508b1b43d3865db02911d5d2e08792 -
Branch / Tag:
refs/tags/2026.08.0 - Owner: https://github.com/Project-MONAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52b4808b3f508b1b43d3865db02911d5d2e08792 -
Trigger Event:
release
-
Statement type: