Views
No views yet

1@article{dai2026epigraph,
2 title={EpiGraph: Building Generalists for Evidence-Intensive Epilepsy Reasoning in the Wild},
3 author={Dai, Yuyang and Chen, Zheng and Pradeepkumar, Jathurshan and Matsubara, Yasuko and Sun, Jimeng and Sakurai, Yasushi and Dong, Yushun},
4 journal={arXiv preprint arXiv:2605.09505},
5 eprint={2605.09505},
6 archivePrefix={arXiv},
7 url={https://arxiv.org/abs/2605.09505},
8 year={2026}
9}| Component | What it gives you |
|---|---|
| EpiKG | A lightweight builder for an epilepsy knowledge graph from literature and clinical resources |
| Graph-RAG | Retrieval over graph neighborhoods with PPR ranking and serialized reasoning paths |
| EpiBench | Five benchmark tasks spanning QA, EEG reports, precision medicine, treatment recommendation, and research planning |
| Metrics | Task-specific evaluation utilities aligned with the paper |
| Project page | A GitHub Pages-ready site with an interactive KG explorer and benchmark overview |
Interactive knowledge graphExplore a compact EpiGraph subgraph directly in the browser. Search nodes, inspect evidence paths, and view relation metadata used by Graph-RAG.
|
Plug-and-play evaluationRun the same task scripts with your own model, retriever, prompts, or local data exports. EpiBench is designed for fast model testing and fair ablation.
|
Five clinically grounded tasksEvaluate models on epilepsy diagnosis, EEG impression generation, biomarker-driven medication selection, treatment recommendation, and deep research planning.
|
Private-data-aware releaseThe Harvard EEG task is supported through a local schema adapter, so the evaluation logic is reproducible without redistributing restricted data.
|


| Signal | Scale in the paper |
|---|---|
| Literature corpus | 48,166 papers |
| Knowledge graph entities | 24,324 entities |
| Knowledge graph triplets | 32,009 triplets |
| Benchmark tasks | 5 tasks |
| Core setting | Evidence-intensive epilepsy reasoning |
| Folder | Purpose | Example access |
|---|---|---|
epigraph/ and tasks/ | Code release for EpiKG construction, Graph-RAG retrieval, metrics, and five EpiBench task runners | Clone or browse on the Hub |
docs/ | Project page source, assets, and interactive KG demo | Browse the static files |
datasets/EpiKG/ | EpiKG triplets, reasoning chains, and demo graph | datasets/EpiKG/triplets.json |
datasets/EpiBench/ | Public EpiBench task files and private-data-safe T2 schema | datasets/EpiBench/t1_clinical_decision_accuracy_mcq.json |
datasets/ repo, load the JSON files directly by URL:1from datasets import load_dataset
2
3kg = load_dataset(
4 "json",
5 data_files="https://huggingface.co/RAI-Lab/EpiGraph/resolve/main/datasets/EpiKG/triplets.json",
6 split="train",
7)
8
9mcq = load_dataset(
10 "json",
11 data_files="https://huggingface.co/RAI-Lab/EpiGraph/resolve/main/datasets/EpiBench/t1_clinical_decision_accuracy_mcq.json",
12 split="train",
13)1RAI-Lab/EpiGraph
2 README.md
3 LICENSE
4 CODE_MANIFEST.md
5 requirements.txt
6 configs/
7 docs/
8 index.html
9 styles.css
10 app.js
11 assets/
12 data/demo_graph.json
13 epigraph/
14 build_kg.py
15 common.py
16 metrics.py
17 retrieval.py
18 tasks/
19 t1_clinical_decision_accuracy.py
20 t2_clinical_report_generation.py
21 t3_biomarker_precision_medicine.py
22 t4_treatment_recommendation.py
23 t5_deep_research_planning.py
24 datasets/
25 EpiKG/
26 triplets.json
27 reasoning_chains.json
28 demo_graph.json
29 EpiBench/
30 t1_clinical_decision_accuracy_mcq.json
31 t1_clinical_decision_accuracy_openqa.json
32 t2_harvard_local_schema.jsonl
33 t3_biomarker_precision_medicine.json
34 t5_lay_summaries_public.json
35 t5_deep_research_planning_seed_papers.jsondocs/. It contains:| Page feature | Included |
|---|---|
| Responsive hero section | PC, laptop, tablet, and mobile friendly |
| Interactive KG explorer | Search, presets, clickable nodes, clickable edges, evidence inspector |
| EpiBench overview | Five task cards with metrics |
| Quick-start commands | Copy-ready evaluation command |
| Downloads | README, manifest, T2 schema, demo graph, license |
1Settings -> Pages -> Deploy from a branch
2Branch: main
3Folder: /docs1git clone https://huggingface.co/RAI-Lab/EpiGraph
2cd EpiGraph
3python -m venv .venv
4source .venv/bin/activate
5pip install -r requirements.txt
6export OPENROUTER_API_KEY="your_key_here"1python tasks/t1_clinical_decision_accuracy.py \
2 --dataset datasets/EpiBench/t1_clinical_decision_accuracy_mcq.json \
3 --triplets datasets/EpiKG/triplets.json \
4 --model openai/gpt-4o \
5 --mode graph_rag \
6 --out runs/t1_mcq_graph_rag.jsonChatClient implementation in epigraph/common.py with your local inference wrapper or point it to an OpenAI-compatible local endpoint.1python -m epigraph.build_kg \
2 --pmc_dir /path/to/pmc_xml \
3 --out_dir data/epikg1data/epikg/triplets.json
2data/epikg/paper_metadata.json1{
2 "head": "SCN1A",
3 "relation": "caused_by_gene",
4 "tail": "Dravet syndrome",
5 "head_layer": "gene",
6 "tail_layer": "syndrome",
7 "paper_count": 12,
8 "paper_ids": ["pmc_..."]
9}| Task | Name | What it measures | Main metrics |
|---|---|---|---|
| T1 | Clinical Decision Accuracy | Epilepsy-specific MCQ and open-ended clinical QA | Top-1 accuracy, BLEU-1, ROUGE-L, Token-F1 |
| T2 | Clinical Report Generation | EEG description and patient context to neurologist-style impression | ROUGE-L, Token-F1, report alignment |
| T3 | Biomarker Precision Medicine | Gene variant and phenotype to antiseizure medication selection | Top-1 accuracy, drug safety score |
| T4 | Treatment Recommendation | Guideline-consistent therapy choice under patient-specific constraints | Top-1 accuracy, drug safety, KG evidence coverage |
| T5 | Deep Research Planning | Literature-grounded research question and feasible study-plan generation | ROUGE-L, Token-F1, LLM-as-judge dimensions |
1python tasks/t1_clinical_decision_accuracy.py \
2 --dataset datasets/EpiBench/t1_clinical_decision_accuracy_mcq.json \
3 --triplets datasets/EpiKG/triplets.json \
4 --model openai/gpt-4o \
5 --mode graph_rag \
6 --out runs/t1_mcq_graph_rag.json{"patient_history":"...","eeg_description":"...","bandpower":{"delta":0.31},"spike_rate":2.4,"impression":"..."}1python tasks/t2_clinical_report_generation.py build \
2 --raw_jsonl data/private/harvard_eeg/local_export.jsonl \
3 --out data/epibench/t2/harvard_preview.json
4
5python tasks/t2_clinical_report_generation.py eval \
6 --dataset data/epibench/t2/harvard_preview.json \
7 --triplets datasets/EpiKG/triplets.json \
8 --model medgemma-4b-it \
9 --mode graph_rag1python tasks/t3_biomarker_precision_medicine.py build \
2 --out data/epibench/t3/bpm_mcq.json
3
4python tasks/t3_biomarker_precision_medicine.py eval \
5 --dataset datasets/EpiBench/t3_biomarker_precision_medicine.json \
6 --triplets datasets/EpiKG/triplets.json \
7 --model openai/gpt-4o \
8 --mode graph_rag1python tasks/t4_treatment_recommendation.py build \
2 --out data/epibench/t4/medqa_epilepsy.json \
3 --max_items 200
4
5python tasks/t4_treatment_recommendation.py eval \
6 --dataset data/epibench/t4/medqa_epilepsy.json \
7 --triplets datasets/EpiKG/triplets.json \
8 --model openai/gpt-4o \
9 --mode graph_rag1python tasks/t5_deep_research_planning.py build \
2 --lay_summaries datasets/EpiBench/t5_lay_summaries_public.json \
3 --out data/epibench/t5/research_planning.json
4
5python tasks/t5_deep_research_planning.py eval \
6 --dataset data/epibench/t5/research_planning.json \
7 --triplets datasets/EpiKG/triplets.json \
8 --model openai/gpt-4o \
9 --mode graph_rag1EpiGraph_code_release/
2 configs/default.json
3 datasets/
4 EpiKG/
5 EpiBench/
6 docs/
7 index.html
8 styles.css
9 app.js
10 data/demo_graph.json
11 epigraph/
12 build_kg.py
13 common.py
14 metrics.py
15 retrieval.py
16 tasks/
17 t1_clinical_decision_accuracy.py
18 t2_clinical_report_generation.py
19 t3_biomarker_precision_medicine.py
20 t4_treatment_recommendation.py
21 t5_deep_research_planning.py
22 CODE_MANIFEST.md
23 LICENSE
24 README.md
25 requirements.txt