Datasets:
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
< 1K
ArXiv:
Tags:
survival-analysis
multiple-instance-learning
optimal-transport
medical-imaging
deep-learning
pytorch
License:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,255 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: cc-by-nc-sa-4.0
|
| 4 |
+
tags:
|
| 5 |
+
- survival-analysis
|
| 6 |
+
- multiple-instance-learning
|
| 7 |
+
- optimal-transport
|
| 8 |
+
- medical-imaging
|
| 9 |
+
- deep-learning
|
| 10 |
+
- pytorch
|
| 11 |
+
model-index:
|
| 12 |
+
- name: OTSurv
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
type: survival-analysis
|
| 16 |
+
name: Survival Prediction
|
| 17 |
+
dataset:
|
| 18 |
+
type: TCGA
|
| 19 |
+
name: TCGA (BLCA, BRCA, LUAD, STAD, COADREAD, KIRC)
|
| 20 |
+
metrics:
|
| 21 |
+
- type: c-index
|
| 22 |
+
value: 0.646
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
<div align="center">
|
| 26 |
+
|
| 27 |
+
<img src="assets/otsurv_logo.png" alt="OTSurv Logo" width="300"/>
|
| 28 |
+
|
| 29 |
+
<h2>OTSurv: A Novel Multiple Instance Learning Framework for Survival Prediction with Heterogeneity-aware Optimal Transport</h2>
|
| 30 |
+
<h4>π MICCAI 2025 π</h4>
|
| 31 |
+
|
| 32 |
+
<p>
|
| 33 |
+
<a href="https://scholar.google.com.hk/citations?user=Tcg-9DcAAAAJ">Qin Ren</a><sup>1 β
</sup>
|
| 34 |
+
<a href="https://yfwang.me/">Yifan Wang</a><sup>1</sup>
|
| 35 |
+
<a href="https://lab-smile.github.io/">Ruogu Fang</a><sup>2</sup>
|
| 36 |
+
<a href="https://scholar.google.com/citations?hl=en&user=v3w4IYUAAAAJ">Haibin Ling</a><sup>1</sup>
|
| 37 |
+
<a href="https://chenyuyou.me/">Chenyu You</a><sup>1 β
</sup>
|
| 38 |
+
</p>
|
| 39 |
+
|
| 40 |
+
<p>
|
| 41 |
+
<sup>1</sup> Stony Brook University
|
| 42 |
+
<sup>2</sup> University of Florida <br>
|
| 43 |
+
β
Corresponding authors
|
| 44 |
+
</p>
|
| 45 |
+
|
| 46 |
+
<p align="center">
|
| 47 |
+
<a href="https://arxiv.org/abs/2506.20741">
|
| 48 |
+
<img src="https://img.shields.io/badge/π‘%20Paper-MICCAI-blue?style=flat-square" alt="Paper">
|
| 49 |
+
</a>
|
| 50 |
+
<a href="https://huggingface.co/Y-Research-Group/OTSurv">
|
| 51 |
+
<img src="https://img.shields.io/badge/Hugging%20Face-Model-yellow?style=flat-square&logo=huggingface" alt="Hugging Face Model">
|
| 52 |
+
</a>
|
| 53 |
+
<a href="#">
|
| 54 |
+
<img src="https://img.shields.io/badge/PyTorch-2.0-EE4C2C?style=flat-square&logo=pytorch" alt="PyTorch 2.0">
|
| 55 |
+
</a>
|
| 56 |
+
</p>
|
| 57 |
+
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
## π§ DL;TR
|
| 62 |
+
|
| 63 |
+
<p>
|
| 64 |
+
Welcome to the official repository of <b>OTSurv</b>, a novel framework that integrates
|
| 65 |
+
<b>Multiple Instance Learning (MIL)</b> with <b>Heterogeneity-aware Optimal Transport (OT)</b>
|
| 66 |
+
to tackle the challenges of survival prediction in medical imaging and clinical data.
|
| 67 |
+
</p>
|
| 68 |
+
|
| 69 |
+
<blockquote>
|
| 70 |
+
π <b>To be presented at MICCAI 2025</b><br>
|
| 71 |
+
π§ <b>Focus</b>: Survival Analysis Β· Multiple Instance Learning Β· Optimal Transport
|
| 72 |
+
</blockquote>
|
| 73 |
+
|
| 74 |
+
<div align="center">
|
| 75 |
+
<img src="docs/OTSurv_main.png" alt="OTSurv Framework Overview" width="800"/>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
## π Data Organization
|
| 79 |
+
|
| 80 |
+
### Project Structure
|
| 81 |
+
```
|
| 82 |
+
OTSurv/
|
| 83 |
+
βββ checkpoints/
|
| 84 |
+
β βββ model_blca_fold0.pth
|
| 85 |
+
β βββ model_blca_fold1.pth
|
| 86 |
+
β βββ ...
|
| 87 |
+
β
|
| 88 |
+
βββ data/
|
| 89 |
+
β βββ tcga_blca/
|
| 90 |
+
β βββ tcga_brca/
|
| 91 |
+
β βββ tcga_coadread/
|
| 92 |
+
β βββ tcga_kirc/
|
| 93 |
+
β βββ tcga_luad/
|
| 94 |
+
β βββ tcga_stad/
|
| 95 |
+
β
|
| 96 |
+
βββ result/
|
| 97 |
+
β βββ exp_otsurv_test/
|
| 98 |
+
β βββ exp_otsurv_train/
|
| 99 |
+
β βββ visualization/
|
| 100 |
+
β
|
| 101 |
+
βββ src/
|
| 102 |
+
β βββ scripts/
|
| 103 |
+
β βββ analysis/
|
| 104 |
+
β βββ ...
|
| 105 |
+
β
|
| 106 |
+
βββ docs/
|
| 107 |
+
β βββ OTSurv_main.png
|
| 108 |
+
β βββ OTSurv_heatmap.png
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
### Feature Format
|
| 112 |
+
- **H5 Format**: Features are stored in `.h5` files (directories ending with `feats_h5/`)
|
| 113 |
+
|
| 114 |
+
For patch feature extraction, please refer to [CLAM](https://github.com/mahmoodlab/CLAM).
|
| 115 |
+
|
| 116 |
+
You can download the preprocessed features from [this link](#) (link to be provided).
|
| 117 |
+
|
| 118 |
+
<br>
|
| 119 |
+
|
| 120 |
+
## π Quick Start
|
| 121 |
+
|
| 122 |
+
### Prerequisites
|
| 123 |
+
|
| 124 |
+
- Python 3.8+
|
| 125 |
+
- GPU or CPU-only
|
| 126 |
+
- Conda package manager
|
| 127 |
+
|
| 128 |
+
### Installation
|
| 129 |
+
|
| 130 |
+
```bash
|
| 131 |
+
# Clone the repository
|
| 132 |
+
git clone https://github.com/Y-Research-SBU/OTSurv.git
|
| 133 |
+
cd OTSurv
|
| 134 |
+
|
| 135 |
+
# Create conda environment
|
| 136 |
+
conda env create -f env.yaml
|
| 137 |
+
conda activate otsurv
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
### Training
|
| 141 |
+
|
| 142 |
+
```bash
|
| 143 |
+
# Training results will be saved under result/exp_otsurv_train
|
| 144 |
+
|
| 145 |
+
cd src
|
| 146 |
+
# Train on all datasets
|
| 147 |
+
bash scripts/train_otsurv.sh
|
| 148 |
+
|
| 149 |
+
# Train on TCGA-BLCA dataset specifically
|
| 150 |
+
bash scripts/train_blca.sh
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
### Evaluation
|
| 154 |
+
|
| 155 |
+
You can download pre-trained checkpoints from [this link](#) (link to be provided).
|
| 156 |
+
|
| 157 |
+
```bash
|
| 158 |
+
# Test results will be saved under result/exp_otsurv_test
|
| 159 |
+
|
| 160 |
+
cd src
|
| 161 |
+
# Test on all datasets
|
| 162 |
+
bash scripts/test_otsurv.sh
|
| 163 |
+
|
| 164 |
+
# Test on TCGA-BLCA dataset specifically
|
| 165 |
+
bash scripts/test_blca.sh
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
```bash
|
| 169 |
+
cd src
|
| 170 |
+
# Calculate performance metrics
|
| 171 |
+
python analysis/calculate_CIndex_mean_std.py
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
```bash
|
| 175 |
+
# Generated figures will be saved under result/visualization
|
| 176 |
+
|
| 177 |
+
cd src
|
| 178 |
+
# Generate survival curves
|
| 179 |
+
python analysis/plot_survival_curv.py
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
The survival curve for TCGA-BLCA looks like this:
|
| 183 |
+
<div align="center">
|
| 184 |
+
<img src="result/visulization/BLCA_km.png" alt="TCGA-BLCA Survival Curve" width="500"/>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<br>
|
| 188 |
+
|
| 189 |
+
## π Performance Results
|
| 190 |
+
|
| 191 |
+
Below are the C-Index performance results of OTSurv across different cancer types:
|
| 192 |
+
|
| 193 |
+
| Cancer Type | Mean C-Index | Std Dev |
|
| 194 |
+
|-------------|-------------|---------|
|
| 195 |
+
| **BRCA** | 0.621 | Β±0.071 |
|
| 196 |
+
| **BLCA** | 0.637 | Β±0.065 |
|
| 197 |
+
| **LUAD** | 0.638 | Β±0.077 |
|
| 198 |
+
| **STAD** | 0.565 | Β±0.057 |
|
| 199 |
+
| **COADREAD** | 0.667 | Β±0.111 |
|
| 200 |
+
| **KIRC** | 0.750 | Β±0.149 |
|
| 201 |
+
|
| 202 |
+
**Overall Performance**: Average C-Index across all datasets is **0.646**
|
| 203 |
+
|
| 204 |
+
> π‘ **Note**: C-Index (Concordance Index) is a commonly used performance metric in survival analysis, where values closer to 1.0 indicate better prediction performance.
|
| 205 |
+
|
| 206 |
+
<br>
|
| 207 |
+
|
| 208 |
+
## π Citation
|
| 209 |
+
|
| 210 |
+
If you find this work useful, please cite our paper:
|
| 211 |
+
|
| 212 |
+
```bibtex
|
| 213 |
+
@inproceedings{ren2025otsurv,
|
| 214 |
+
title={A Novel Multiple Instance Learning Framework for Survival Prediction with Heterogeneity-aware Optimal Transport},
|
| 215 |
+
author={Ren, Qin and Wang, Yifan and Fang, Ruogu and Ling, Haibin and You, Chenyu},
|
| 216 |
+
booktitle={Medical Image Computing and Computer Assisted Intervention (MICCAI)},
|
| 217 |
+
year={2025},
|
| 218 |
+
note={Accepted for publication}
|
| 219 |
+
}
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
> π **Note**: This paper has been accepted at MICCAI 2025. The citation details will be updated once the paper is officially published.
|
| 223 |
+
>
|
| 224 |
+
|
| 225 |
+
<br>
|
| 226 |
+
|
| 227 |
+
## π Acknowledgements
|
| 228 |
+
|
| 229 |
+
This work builds upon the excellent research from:
|
| 230 |
+
- [PANTHER](https://openaccess.thecvf.com/content/CVPR2024/html/Song_Morphological_Prototyping_for_Unsupervised_Slide_Representation_Learning_in_Computational_Pathology_CVPR_2024_paper.html)
|
| 231 |
+
- [MMP](https://github.com/mahmoodlab/MMP)
|
| 232 |
+
- [CLAM](https://github.com/mahmoodlab/CLAM)
|
| 233 |
+
- [PPOT](https://github.com/rhfeiyang/PPOT)
|
| 234 |
+
|
| 235 |
+
<br>
|
| 236 |
+
|
| 237 |
+
## π License
|
| 238 |
+
|
| 239 |
+
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License - see the [LICENSE.md](LICENSE.md) file for details.
|
| 240 |
+
|
| 241 |
+
<br>
|
| 242 |
+
|
| 243 |
+
## π€ Contributing
|
| 244 |
+
|
| 245 |
+
We welcome contributions to **OTSurv**! If you have suggestions, bug reports, or want to add features or experiments, feel free to:
|
| 246 |
+
|
| 247 |
+
- π Submit an issue
|
| 248 |
+
- π§ Open a pull request
|
| 249 |
+
- π¬ Start a discussion
|
| 250 |
+
|
| 251 |
+
---
|
| 252 |
+
|
| 253 |
+
<p align="center">
|
| 254 |
+
β <strong>If you find this repository helpful, please consider starring it!</strong> β
|
| 255 |
+
</p>
|