Update README.md
Browse files
README.md
CHANGED
|
@@ -10,9 +10,10 @@ size_categories:
|
|
| 10 |
- 10K<n<100K
|
| 11 |
pretty_name: MedMKG
|
| 12 |
---
|
| 13 |
-
# MedMKG: Medical Multimodal Knowledge Graph
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
MedMKG is constructed via a multi-stage pipeline that accurately identifies and disambiguates medical concepts while extracting their interrelations.
|
| 17 |
To ensure the conciseness of the resulting graph, we further employ a pruning strategy based on our novel Neighbor-aware Filtering (NaF) algorithm.
|
| 18 |
|
|
@@ -21,7 +22,7 @@ To ensure the conciseness of the resulting graph, we further employ a pruning st
|
|
| 21 |
## 📂 Provided Files
|
| 22 |
|
| 23 |
This repository contains:
|
| 24 |
-
- `
|
| 25 |
- `image_mapping.csv` — image ID to **relative path** mappings
|
| 26 |
|
| 27 |
**Note:** The images themselves are **not included**. Users must download MIMIC-CXR-JPG separately and specify their local path.
|
|
@@ -57,11 +58,10 @@ To use the image data, you **must** request access and agree to the data use agr
|
|
| 57 |
Below is a demo script to load and link the knowledge graph with your local image data:
|
| 58 |
|
| 59 |
```python
|
| 60 |
-
from huggingface_hub import hf_hub_download
|
| 61 |
import pandas as pd
|
| 62 |
|
| 63 |
-
kg_path =
|
| 64 |
-
mapping_path =
|
| 65 |
|
| 66 |
# Load CSVs
|
| 67 |
kg_df = pd.read_csv(kg_path)
|
|
@@ -82,3 +82,15 @@ kg_df["Tail_Path"] = kg_df["Tail"].map(iid_to_path)
|
|
| 82 |
|
| 83 |
print(kg_df.head())
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- 10K<n<100K
|
| 11 |
pretty_name: MedMKG
|
| 12 |
---
|
|
|
|
| 13 |
|
| 14 |
+
# RADM: Radiological Multimodal Knowledge Graph
|
| 15 |
+
|
| 16 |
+
We introduce **RADM**, a a **Rad**iological **M**ultimodal Knowledge Graph that seamlessly fuses clinical concepts with medical images.
|
| 17 |
MedMKG is constructed via a multi-stage pipeline that accurately identifies and disambiguates medical concepts while extracting their interrelations.
|
| 18 |
To ensure the conciseness of the resulting graph, we further employ a pruning strategy based on our novel Neighbor-aware Filtering (NaF) algorithm.
|
| 19 |
|
|
|
|
| 22 |
## 📂 Provided Files
|
| 23 |
|
| 24 |
This repository contains:
|
| 25 |
+
- `RADM.csv` — biomedical triplets: Head, Relation, Tail, Head_Name, Tail_Name
|
| 26 |
- `image_mapping.csv` — image ID to **relative path** mappings
|
| 27 |
|
| 28 |
**Note:** The images themselves are **not included**. Users must download MIMIC-CXR-JPG separately and specify their local path.
|
|
|
|
| 58 |
Below is a demo script to load and link the knowledge graph with your local image data:
|
| 59 |
|
| 60 |
```python
|
|
|
|
| 61 |
import pandas as pd
|
| 62 |
|
| 63 |
+
kg_path = "RADM.csv"
|
| 64 |
+
mapping_path = "image_mapping.csv"
|
| 65 |
|
| 66 |
# Load CSVs
|
| 67 |
kg_df = pd.read_csv(kg_path)
|
|
|
|
| 82 |
|
| 83 |
print(kg_df.head())
|
| 84 |
|
| 85 |
+
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Benchmark Instruction
|
| 89 |
+
|
| 90 |
+
We cover codes for three downstream tasks detailed in our paper, including link prediction, knowledge-augmented visual question answering, and knowledge-augmented text-image retrieval. You may check the three folders and execute the following:
|
| 91 |
+
|
| 92 |
+
```bash
|
| 93 |
+
python main.py
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
after specifying your local paths of data files.
|