Skip to content
/ WiKG Public
forked from WonderLandxD/WiKG

[CVPR 2024] Dynamic Graph Representation with Knowledge-aware Attention for Histopathology Whole Slide Image Analysis

Notifications You must be signed in to change notification settings

lijinda22/WiKG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[CVPR 2024] Dynamic Graph Representation with Knowledge-aware Attention for Histopathology Whole Slide Image Analysis

1. Introduction

WiKG: Whole Slide Image is a Knowledge Graph

WiKG Framework

We demonstrate a novel whole slide image (WSI) analysis method based on graph representation called WiKG, which represents a WSI as a knowledge graph, cropped patches as graph nodes, and uses the head-to-tail embedding of patches to generate dynamic graph representations.

2. Reproduce WiKG

This repository is based on the Pytorch version of the WiKG code.

The easy-to-follow model code and train demo code have been released, and the details are as follows:

2.1 Data Structure

The Datasets we used can be downloaded from TCGA. How to crop WSIs into patches can refer to sdpc-for-python. And how to extract the initial features of WSIs can refer to CLAM. Assume that we have divided the dataset into 5 folds and stored them in the following structure:

DATASET/
	├── fold0
    		├── train_data.csv
            ├── val_data.csv
	├── fold1
    		├── train_data.csv
            ├── val_data.csv
	├── fold2
    		├── train_data.csv
            ├── val_data.csv
	├── fold3
    		├── train_data.csv
            ├── val_data.csv
	├── fold4
    		├── train_data.csv
            ├── val_data.csv

Where each .csv file stores the storage path of the initial features of each WSI.

2.2 Train and Test

python train.py 

The above command will train and test WiKG.

3. About Paper

Arxiv version: https://arxiv.org/abs/2403.07719

Reference

If you find our work useful in your research or if you use parts of this code please consider citing our paper

@inproceedings{li2024dynamic,
  title={Dynamic Graph Representation with Knowledge-aware Attention for Histopathology Whole Slide Image Analysis},
  author={Li, Jiawen and Chen, Yuxuan and Chu, Hongbo and Sun, Qiehe and Guan, Tian and Han, Anjia and He, Yonghong},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={11323--11332},
  year={2024}
}

Jiawen Li, H&G Pathology AI Research Team

About

[CVPR 2024] Dynamic Graph Representation with Knowledge-aware Attention for Histopathology Whole Slide Image Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%