This repository contains the source for the paper Inter-Intra Hypergraph Computation for Survival Prediction on Whole Slide Images
accepted by IEEE TPAMI
by Xiangmin Han
, Huijian Zhou
, Zhiqiang Tian
, Shaoyi Du
, Yue Gao
.
In this repository, we provide the training code for Intra-Hypergraph and Inter-Hypergraph models, along with various methods for hypergraph structure modeling. The dataset includes a sample list from publicly available datasets, which can be downloaded directly from TCGA.
- DIR: config
xx.yaml
(your train/test config file)
- DIR: get_feature
sampled_vis
(sampled patches, only for visualization)patch_ft
(deep features extracted via CNN models)patch_coor
(coordinates of the sampled patches, only for visualization)
This script will generate three types of files: sampled_vis
, patch_ft
, and patch_coor
.
WSI_sample_patch.py
You can train the Intra-HGNN
model to obtain intra-embeddings and intra-risk.
Note that this module can be used independently.
python train_stage1_intra.py
You can train the Inter-HGNN
model to fuse intra- and inter-risks for the final result.
Note that if you have defined the feature vectors of inter-vertices in the
inter-hypergraph
, you can train this module without the first stage.
python train_stage2_inter.py
If you find our work useful in your research, please consider citing:
@article{han2025iihgc,
title={Inter-intra hypergraph computation for survival prediction on whole slide images},
author={Xiangmin, Han and Huijian, Zhou and Zhiqiang, Tian and Shaoyi, Du and Yue, Gao},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2025},
publisher={IEEE}
}
IIHGC is maintained by iMoon-Lab, Tsinghua University. If you have any questions, please feel free to contact us via email: Xiangmin Han.