soonera commited on
Commit
4700e1d
Β·
verified Β·
1 Parent(s): 204889c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +255 -3
README.md CHANGED
@@ -1,3 +1,255 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
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>&nbsp;
34
+ <a href="https://yfwang.me/">Yifan Wang</a><sup>1</sup>&nbsp;
35
+ <a href="https://lab-smile.github.io/">Ruogu Fang</a><sup>2</sup>&nbsp;
36
+ <a href="https://scholar.google.com/citations?hl=en&user=v3w4IYUAAAAJ">Haibin Ling</a><sup>1</sup>&nbsp;
37
+ <a href="https://chenyuyou.me/">Chenyu You</a><sup>1 β˜…</sup>
38
+ </p>
39
+
40
+ <p>
41
+ <sup>1</sup> Stony Brook University &nbsp;&nbsp;
42
+ <sup>2</sup> University of Florida &nbsp;&nbsp; <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>&nbsp;
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>&nbsp;
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>