TrialBridge
AI-assisted clinical-trial matching that explains why a patient is eligible, possibly eligible, or not. Team project, in progress.
role
team member
context
5-person team project at VIT, in progress
Matches patients to clinical trials and shows its reasoning. A rule-based parser turns eligibility text into checkable criteria, hybrid search finds candidate trials, and a three-valued evaluator labels each one eligible, possibly eligible, or ineligible, with a 'why' for every criterion.
highlights
- Hybrid retrieval: BM25 + PubMedBERT dense search, fused with reciprocal rank fusion
- Deterministic criteria evaluator with three-valued logic, so missing data means 'unknown', not 'no'
- +43% precision@10 over search alone on the TREC Clinical Trials 2021 benchmark, without an LLM
- FastAPI backend with a React UI: patient → trials, trial → patients, a criteria parser view, and an evaluation page
the problem
Clinical-trial eligibility criteria are long, free-text lists - ages, lab thresholds, diagnoses, medications, exclusions. Matching a patient against thousands of trials by hand is slow, and black-box matching is hard to trust. TrialBridge tries to do it transparently: every match comes with the criteria it checked and the patient's value for each.
how it works
- Ingest trials from the ClinicalTrials.gov API into SQLite, alongside synthetic patients (Synthea FHIR) or free-text patient descriptions
- Parse eligibility text into predicates: sections, bullets, labs with units, age, conditions, medications, negation, time windows
- Retrieve the top 100 candidate trials with BM25 + PubMedBERT, fused with reciprocal rank fusion
- Evaluate each candidate with three-valued logic (true / false / unknown) and rank by 0.4 × retrieval + 0.6 × eligibility
design decisions
- Rules first, LLM last: ages, lab thresholds, diagnoses and medications are handled by transparent rules that are cheap, reproducible and can't hallucinate
- Missing data gives 'unknown', so trials are labelled 'possibly eligible' instead of being silently dropped or wrongly approved
- Partially parsed criteria are flagged, so they can still fail a trial but can never count as fully met
results
On TREC Clinical Trials 2021 (75 patient topics, 35,832 graded judgements), adding the criteria evaluator on top of hybrid retrieval raised precision@10 from 0.312 to 0.445 and NDCG@10 from 0.444 to 0.548 when re-ranking each topic's judged pool. Recall@100 doesn't change, because the evaluator only re-orders the shortlist.
what's next
About 39% of free-text criteria currently yield at least one executable rule. The next phase adds an LLM layer only for the residue the rules can't parse, keeping the rule-based core as the source of truth.