Downloads · 30 days
0
SageLabUHN/DT_Lung
DT_Lung is a machine learning model from SageLabUHN. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-nd-4.0.
<h1 align="center" <span style="font-size:32px" Digital Twins of Ex Vivo Human Lungs </span </h1
Downloads · 30 days
0
Access
Public
Updated Aug 13, 2025
Repo size
44.1 MB
Likes
1
Public
Click a slice to open those files.
.pkl33.2 MB · 75%
From the Hugging Face model README
This is the official model repository that accompanies Digital Twin of Ex Vivo Human Lungs Project. This repository contains a full collection of multi-modal models for creating digital twins of ex vivo human lungs.
Authors
<div align="center"> <span style="font-size:16px"> Xuanzi Zhou MHSc¹⁻³, Bo Wang PhD⁴⁻⁷, Yiyang Wei BCS¹⁻³, Serena Hacker MScAC<sup>1,2,4</sup>, Sumin Kim MSc<sup>1,2,4</sup>, Thomas Borrillo MHSc<sup>1,2</sup>, Abby McCaig BSc¹⁻³, Haaniya Ahmed<sup>1,2</sup>, Youxue Ren MSc<sup>1,2</sup>, Olivia Hough PhD<sup>1,2</sup>, Luca Orsini MD<sup>1,2,8</sup>, Bonnie T. Chao PhD<sup>1,2</sup>, Micheal McInnis MD⁹, Marcelo Cypel MD<sup>1-3,10</sup>, Mingyao Liu MD<sup>1-3,10</sup>, Jonathan C. Yeung MD<sup>1-3,10</sup>, Lorenzo Del Sorbo MD<sup>1,2,8</sup>, Shaf Keshavjee* MD<sup>1-3,10</sup>, and Andrew T. Sage* PhD<sup>1-3,10</sup> </span> </div> <div align="center"> <span style="font-size:14px"> 1. Latner Thoracic Research Laboratories, Toronto General Hospital Research Institute, University Health Network, Toronto, ON, Canada <br> 2. Toronto Lung Transplant Program, Ajmera Transplant Centre, University Health Network, Toronto, ON, Canada <br> 3. Institute of Medical Science, University of Toronto, Toronto, ON, Canada <br> 4. Department of Computer Science, University of Toronto, Toronto, ON, Canada <br> 5. Peter Munk Cardiac Centre, University Health Network, Toronto, ON, Canada <br> 6. Department of Laboratory Medicine and Pathobiology, University of Toronto, Toronto, ON, Canada <br> 7. Vector Institute, Toronto, ON, Canada <br> 8. Interdepartmental Division of Critical Care Medicine, Medical and Surgical Intensive Care Unit, University Health Network, Toronto, ON, Canada <br> 9. Department of Medical Imaging, Temerty Faculty of Medicine, University of Toronto, University Health Network, Toronto, ON, Canada <br> 10. Department of Surgery, Temerty Faculty of Medicine, University of Toronto, Toronto, ON, Canada <br> </span> </div> <div align="center"> <small>*Co-Senior authors</small> </div>The DT model is built using two machine learning model architectures: gated recurrent unit (GRU) and XGBoost (XGB).
DT_Lung/GRU
A1F50_A2F50 – Collection of GRU models for static digital lung forecasting (Forecast 2<sup>nd</sup> hour lung function using 1<sup>st</sup> hour baseline data)A1F50_A3F50 – Collection of GRU models for static digital lung forecasting (Forecast 3<sup>rd</sup> hour lung function using 1<sup>st</sup> hour baseline data)A1F50A2F50_A3F50 – Collection of GRU models for dynamic digital lung forecasting (Forecast 3<sup>rd</sup> hour lung function using 1<sup>st</sup> and 2<sup>nd</sup> hour observed data)Legend: A = assessment period, F = first breaths, numbers = the number of breaths included <br>
Note: everything before _ is included as input to the model, and everything after _ is forecasted by the model. <br>
Each folder contains the best-performing GRU models resulting from our hyperparameter tuning for the specified digital lung setup.
XGBoost Tabular Regressors
Each folder below contains the best-performing XGBoost models resulting from our hyperparameter tuning for the specified lung function parameters for each digital lung setup.
DT_Lung/XGB – Collection of XGBoost models for multiple data modalities
Hourly – XGBoost models for predicting hourly lung functional parameters (e.g., oxygenation level, compliance, pH, etc.)
H1_to_H2: Models for static digital lung forecasting (Forecast 2nd hour lung function using 1st hour baseline data)H1_to_H3: Models for static digital lung forecasting (Forecast 3rd hour lung function using 1st hour baseline data)H1_H2_to_H3: Models for dynamic digital lung forecasting (Forecast 3rd hour lung function using 1st and 2nd hour observed data)Protein – XGBoost models for predicting protein markers (e.g., interleukin-8, interleukin-6, etc.)
H1_to_H2: Models for static digital lung forecasting (Forecast 2nd hour lung function using 1st hour baseline data)H1_to_H3: Models for static digital lung forecasting (Forecast 3rd hour lung function using 1st hour baseline data)H1_predH2_to_H3: Models for static digital lung forecasting (Forecast 3rd hour lung function using 1st hour baseline data and predicted 2nd hour data)H1_H2_to_H3: Models for dynamic digital lung forecasting (Forecast 3rd hour lung function using 1st and 2nd hour obsereved data)Transcriptomics – XGBoost models for predicting transcriptomic pathways (e.g., TGF-β, apoptosis, etc.)
static_forecasting: Models for static digital lung forecasting of gene enrichment scores (Forecast post-perfusion gene enrichment scores using baseline data)dynamic_forecasting: Models for dynamic digital lung forecasting of gene enrichment scores (Forecast post-perfusion gene enrichment scores using hourly observed data)DT_Lung/XGB_PC – Collection of XGBoost models for lung x-ray images
models_static – XGBoost models to create static digital lung image features (Forecast 3<sup>rd</sup> hour lung X-ray derived features using 1<sup>st</sup> hour baseline data)models_dynamic – XGBoost models to create dynamic digital lung image features (Forecast 3<sup>rd</sup> hour lung X-ray derived features using 1<sup>st</sup> and 2<sup>nd</sup> hour observed data).tar.gz extension are provided to make model download and distribution easier. Their contents are identical to those in the corresponding folders without the .tar.gz extension.from huggingface_hub import hf_hub_download
gru_model_dir = hf_hub_download(
repo_id="SageLabUHN/DT_Lung",
filename="GRU/A1F50_A2F50/Dy_comp.pt", # example path, please modify accordingly
local_dir="DT_Lung/models" # example path, specify your local directory
)
print(f"Model downloaded to: {gru_model_dir}")
from huggingface_hub import snapshot_download
model_dir = snapshot_download(
repo_id="SageLabUHN/DT_Lung",
local_dir="DT_Lung/Model", # make sure the Model folder is in the project root dir
)
print(f"Models downloaded to: {model_dir}")
Alternatively, you can manually download the models from the Hugging Face repository page.
Intended for
Not for
This repository and all model weights are released under the Creative Commons Attribution‑NonCommercial‑ShareAlike 4.0 International (CC BY‑NC‑SA 4.0) license.
Commercial use is prohibited.