filo-cena/Patient_digital-twin
0
This Space hosts a Streamlit app that demonstrates a clinical digital twin:
- A 3D anatomical avatar rendered via
<model-viewer>(GLB models). - A rule-based “LLM-style” interview agent that collects demographics and lifestyle factors and updates a toy clinical twin (organ risk indices, BMI, global health score).
- An imaging-driven organ progression viewer that:
- Loads volumetric CT/MRI-like data (NIfTI or
.npyarrays). - Extracts organ meshes via marching cubes.
- Colours the mesh with a risk field derived from intensities.
- Simulates future trajectories by deforming high-risk regions.
The goal is to provide a blueprint for human digital twins that fuse:
- Generic anatomical reference models (Human Reference Atlas organs),
- Longitudinal imaging data, and
- Simple behavioural / lifestyle parameters.
🚀 How to run this Space
This is a Streamlit Space:
- Ensure the Space SDK is set to Streamlit.
- Place your main app file at the repository root as
app.py(or changeapp_fileabove). - Commit:
app.pyrequirements.txtREADME.md- the
assets/folder (see below). - The Space will automatically install dependencies and start the app.
To run locally instead:
pip install -r requirements.txt
streamlit run app_advanced.py