Methodology

How Robertium discovers drug repurposing candidates from biomedical literature

Robertium reads peer-reviewed papers, extracts structured claims about drugs, genes, and diseases, builds a knowledge graph, and applies the Swanson ABC model to discover non-obvious cross-domain repurposing candidates. The pipeline is open-source and reproducible — every component is documented below.

Pipeline overview

The pipeline runs end-to-end across ten therapeutic domains. Each stage is independently reproducible: same input, same output. Numbers below reflect the current corpus.

Open data sources

Robertium uses only open access biomedical literature. No paywalled papers, no commercial datasets. Every source is freely available to anyone.

  • OpenAlex — Primary corpus source. Fetches metadata, abstracts, and DOIs for papers tagged with relevant biomedical concepts. We use OpenAlex concept IDs (e.g., C2780596555 for ALS) to retrieve focused, domain-specific corpora of 5,000–10,000 papers per disease.
  • PubTator (NCBI) — Biomedical entity tagger. Filters out papers without recognized biomedical entities (genes, chemicals, diseases). Typical pass rate: 50–80% per domain.
  • Custom claim extractor — Built on a modern instruction-tuned LLM with a structured YAML prompt. Extracts triples (subject, predicate, object) with entity types, polarity, and confidence scores.

Structured claim extraction

Each abstract is processed by an LLM with a controlled vocabulary of 18 predicates (inhibits, downregulates, associated_with, sensitizes_to, etc.) and 10 entity types (drug, gene, protein, pathway, phenotype, disease, biomarker, organism, cell_type, technique). The model returns JSON with strict schema validation.

Example extracted claim
{
  "subject": "verteporfin",
  "subject_type": "drug",
  "predicate": "downregulates",
  "object": "EGFR",
  "object_type": "gene",
  "context": "EGFR-mutant glioblastoma",
  "polarity": "positive",
  "confidence": 0.85
}

Across the 167,145 papers in the current corpus, we extract an average of 3.0 claims per abstract that passes the L1 biomedical-relevance filter. Total: 270,791 structured claims across ten therapeutic domains. All claims are linked to source PMIDs for verification.

Knowledge graph

Claims are imported into a Kuzu graph database. Each unique entity becomes a node; each claim becomes an edge with the predicate as label. Entities mentioned in multiple domains are merged at the lexical level (with planned upgrades to UMLS-based normalization).

160,955
unique
entities
270,791
claim
edges

This shared graph is what enables cross-domain hypothesis discovery — a protein involved in both glioblastoma and epilepsy creates a bridge between two literatures.

Swanson's ABC model for repurposing

To discover drug repurposing candidates, we apply Don R. Swanson's literature-based discovery (LBD) model. A drug A may be repurposed for disease C if there exists a mediator B such that A affects B and B is associated with C, but A and C have no direct co-mention in the literature.

A (drug) --[affects]--> B (mediator) --[associated_with]--> C (disease)
Direct A → C: 0 papers (novel)
Indirect via B: chains of evidence from multiple papers

Robertium currently surfaces hypotheses where:

  • Direct A→C evidence is zero or minimal
  • Both A→B and B→C have at least one supporting peer-reviewed paper
  • Mediator B is a meaningful biological entity (gene, protein, pathway)

Each hypothesis is scored using a logarithmic combination of A→B and B→C evidence counts, with boosts for multi-evidence chains.

The novelty filter

Robertium enforces a strict novelty constraint on the hypotheses it surfaces. Any candidate where the drug → outcome connection already appears as a direct claim in more than one paper is filtered out (max_direct_evidence = 1, see src/robertium/graph/repurposing.py:192). This is not a parameter to tune — it is the Swanson 1986 prerequisite for literature-based hidden discovery.

The catalog at /hypotheses therefore explicitly excludes the most well-known drug repurposings: ketamine → treatment-resistant depression, metformin → Alzheimer's disease, valproate → bipolar disorder, and others whose drug → outcome link has accumulated direct citation chains over decades of clinical research. These cases were filtered out at construction time.

What you see instead are connections that the published literature does not yet make explicit through direct citation — drug → mediator → outcome chains where the two halves live in separate literature pools that rarely cite each other. This is Robertium's value proposition: novelty precision, not known-repurposing reproduction. See /benchmark for empirical validation of this framing against 50 verified historical repurposings.

Cross-domain discovery

The most powerful application of the ABC model emerges when multiple disease domains share one graph. A drug studied in glioblastoma may share a molecular target with pancreatic cancer literature — pointing to a non-obvious repurposing opportunity that no single-domain literature review would surface.

osimertinib (glioblastoma lit.) --[inhibits]--> EGFR (protein)
--[associated_with]--> pancreatic ductal adenocarcinoma

Osimertinib is a third-generation FDA-approved EGFR inhibitor used in non-small-cell lung cancer and frequently studied as a glioblastoma candidate. EGFR is an established oncogenic driver in pancreatic ductal adenocarcinoma. The two literatures rarely overlap; Robertium surfaces the connection automatically through the shared mediator. Direct co-mentions of osimertinib and PDAC: zero. Indirect chain: 3 + 2 supporting papers, outreach-grade score 0.373.

The cross-domain orchestrator analyzes all 90 directional pairs across the ten therapeutic domains (glioblastoma, epilepsy, ALS, Alzheimer's, pancreatic cancer, major depressive disorder, multiple sclerosis, type 2 diabetes, rheumatoid arthritis, inflammatory bowel disease). Raw output: 24,285 candidate hypotheses. After filtering for specific mediators — generic inflammatory cytokines (TNF-α, IL-6, NF-κB) and trivial pathway terms (inflammation, cell death, autophagy) are excluded — and clean drug vocabulary (botanical extracts, undefined nano-formulations are excluded), and after collapsing 279 phrasing duplicates into their canonical entries, 1,618 hypotheses pass outreach-quality criteria, of which 197 are scored as high-confidence and 1,421 as mid-confidence. Other examples in the high-confidence tier include metformin → α-synuclein → Parkinson's disease (a neuroprotective candidate surfaced through the ALS–Alzheimer's mediator chain) and Riluzole → MMP-9 → epilepsy (an ALS drug bridging into seizure literature via matrix metalloproteinase signaling).

Validation enrichment

Each outreach-quality hypothesis is enriched with two external signals so a researcher can immediately tell what kind of candidate they are looking at.

  • Clinical trial status (via the public ClinicalTrials.gov v2 API). For each drug–outcome pair we run a query and bucket the result into active, completed, preclinical_only, none, or unknown (when the drug name is a combination, identifier, or otherwise not searchable). When trials exist, the top three NCT IDs are linked from the expanded view of the hypothesis.
  • Literature status (via PubMed E-utilities). Two queries are issued per hypothesis: a direct co-mention "{drug}"[tiab] AND "{outcome}"[tiab] and the same query restricted to repurposing/treatment/therapy. The result is bucketed into reproduces_known (≥5 repurposing-style mentions), partial_evidence, novel_signal (no repurposing mention and no more than two co-mentions), or unknown.

This lets the catalog distinguish hypotheses that reproduce known associations (a sanity check on the methodology) from genuinely novel signals worth investigating. The combination novel signal + no clinical trial is the most useful starting point — those are candidates that Robertium surfaced and that nobody appears to have followed up on yet.

Enrichment is rate-limited (5 req/s for ClinicalTrials.gov, ~2.5 req/s for PubMed without an API key), idempotent, and runs only against the outreach-quality hypotheses.

What Robertium is not

Calibrating expectations matters as much as describing capabilities. To be explicit about what this tool does and does not provide:

  • Not a replacement for systematic review. Robertium surfaces candidates worth investigating; rigorous evaluation of any specific hypothesis still requires manual literature review, expert assessment, and primary-source verification.
  • Not a clinical decision tool. Generated hypotheses describe potential biological connections, not treatment recommendations. They have not been validated experimentally and must not influence patient care.
  • Hypotheses are starting points, not findings. A high score means the evidence chain is well-supported in the published literature, not that the drug works for the proposed indication. Many high-scoring chains will turn out to be artifacts of co-mention, redundant evidence, or already-known associations.
  • Not novel by default. Some surfaced hypotheses (for example, metformin's neuroprotective effects, or valproic acid as an HDAC inhibitor) are well-established in the literature. Robertium reproduces known cross-domain bridges as a sanity check; novelty assessment requires domain expertise.
  • Not a substitute for primary literature. Each hypothesis links to source PMIDs; the burden of reading the actual papers, evaluating study design, and judging biological plausibility is on the researcher.

We make this explicit because the value of the tool depends on calibrated expectations — Robertium helps you find candidates faster, not replace the work of evaluating them.

Quality and limitations

Robertium is research infrastructure, not a clinical decision tool. Generated hypotheses require expert review and experimental validation. Known limitations:

  • Entity resolution. Lexical merging means "EGFR" and "Epidermal Growth Factor Receptor" are still separate nodes in the current graph. UMLS-based normalization is planned.
  • Extraction noise. The LLM occasionally extracts secondary mentions as primary claims (for example, a control arm drug rather than the focus drug). Precision has not been systematically evaluated; manual spot-checks of top-scored hypotheses suggest the majority capture meaningful drug–target relationships, but rigorous precision/recall measurement is planned alongside the first preprint.
  • Mediator and drug-vocabulary filters. Hypothesis ranking now incorporates a mediator-specificity filter that excludes generic inflammatory cytokines (TNF-α, IL-6, NF-κB) and trivial pathway mediators (inflammation, cell death, autophagy), plus a drug vocabulary filter that removes botanical extracts and undefined nano-formulations. See classify_outreach_quality.py in the public repo for the full logic.
  • Self-validation extensions (May 2026). Manual review of the top-20 high-confidence hypotheses surfaced several drug-name categories that were not actionable as repurposing candidates and have since been added to the excluded set: PET imaging tracers (e.g., PBB3, 18F-PI-2620), biological samples (e.g., ALS-CSF), surgical or device interventions (e.g., deep brain stimulation, focused ultrasound), internal pharma research codes without an approved common name (e.g., WSD-0922, ABBV-221), vague natural-product mixtures (e.g., "active components", slash-joined combinations), and peptide constructs identified by Greek letters or LIR/TP53INP-style identifiers. Drugs in these categories are valid mentions in the literature but are not things a researcher can repurpose, so excluding them improves the quality of the remaining catalog.
  • Direct A→C filter is heuristic. A hypothesis with one direct co-mention may still be novel if the co-mention is incidental. We surface but don't auto-exclude these.

We document these limitations openly. Methodology improvements happen in public — see GitHub for current issues.

Reproducibility

Robertium is open-source under MIT license. The full pipeline is on GitHub:

  • Source code — github.com/routewise96/robertium
  • Configuration files — YAML configs for each domain (concept IDs, filters, model settings)
  • Extracted claims — Available for download (release planned for first preprint)
  • Knowledge graph — Available as Kuzu database dump

Anyone can clone the repo, run the pipeline on a new domain, and verify our results. Contributions and replications are welcome.

View on GitHub

Provenance & reproducibility

Every hypothesis in the catalog ships with a full provenance trace: the source papers it was inferred from, the structured claims the LLM extracted from each abstract, the bridging logic that joined the chain, the embedding model and prompt version we used, and the scoring formula that produced the final tier.

We do not believe drug repurposing tools should be black boxes. We disclose:

  • LLM & prompt — model name and prompt version (bumped whenever the system prompt changes), so any rerun is byte-identical
  • Embedding model — bge-m3, 1024-dim, max-length 8192 — used only for L1 relevance filtering, never for hypothesis scoring
  • Scoring code — the exact formula score = min((log(ab+1)+log(bc+1)) · novelty / 10, 1) with novelty = 1.0 if no direct A→C evidence exists, else 0.7/(direct+1)
  • Source papers — full PMID, DOI, title, journal, publication date, plus a role tag (drug→mediator vs mediator→outcome)
  • Pipeline run — the git commit, command, host, status, and timestamps of the orchestrator invocation that produced the row
  • Completeness self-disclosure — a badge on every trace declares whether it was captured live during generation, backfilled retroactively from DB state, or has unresolvable gaps

Example: see the full trace for auranofin → TDP-43 → ALS. The JSON behind it is downloadable from a button at the bottom of the panel; you can reproduce our analysis on your own data.

View provenance schema on GitHub →

Cite this work

If you reference Robertium in a manuscript, presentation, or grant proposal, please use the citation below. The hypothesis catalog is archived on Zenodo with a permanent DOI. A formal preprint with full methodology and validation is in preparation.

Trofimov, D. (2026). Robertium hypothesis catalog: cross-domain drug repurposing candidates from biomedical literature (Version 1.0.0) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.20110977

Source code: github.com/routewise96/robertium · Web interface: robertium.com

For collaborations, dataset access, or methodology questions: daniel@robertium.com