Methodology · classifier stop-reasons/2.1.0
How TrialTrace reads the evidence
TrialTrace turns public registry records into an auditable answer to one question: has this drug–disease hypothesis already been tested, and what happened? It uses deterministic rules, not a language model, so every label can be traced back to the exact words or numbers that produced it, and the same input always gives the same output.
1Finding trials
Trials come live from the ClinicalTrials.gov API v2. The search covers interventional studies only, using the registry’s own synonym expansion for drug and condition terms (so a brand name like “Glucophage” also finds metformin trials). Up to 3,000 trials are analysed per drug, target or disease search and 1,000 per drug × disease or target × disease search. If more exist, the dossier says so. Every dossier records the registry’s data timestamp.
Searching by target. A target search (a gene or protein, such as PCSK9) starts from the drugs Open Targets lists as acting on it, its “drugs and clinical candidates”. Salts count as their parent drug, and up to 100 drugs are kept, furthest-developed first. The registry is searched for any of their names, and each trial is then judged for every one of those drugs it names, exactly as in a drug search. A target alone is laid out like a drug search, by condition; a target with a disease is laid out like a disease search, by drug. A drug search for a name Open Targets knows only as a target (“EGFR”) is run as a target search, and says so. Two cautions: a drug that acts on several targets is listed under each of them (brigatinib, an ALK inhibitor, also appears under EGFR), so some of its trials are about another target; and a trial that names a drug only by a development code Open Targets doesn’t list is missed.
2Is the drug actually being tested?
A registry search for “metformin” returns thousands of trials, and in many of them metformin is just background therapy or only mentioned in the eligibility criteria. TrialTrace looks at every trial’s interventions and arm assignments and gives the drug one role:
- Tested drug: in the experimental arm(s), single-arm, or a dose-comparison of the drug itself.
- Background therapy: given in every arm alongside another tested drug, so the trial cannot tell you anything about it.
- Active comparator: only in active-comparator arms.
- Not an intervention: returned by search, but no listed intervention names the drug.
Only tested-drug trials are counted by default. You can include the others with one click. Drug names are matched against every ChEMBL synonym, trade name and salt form as whole words, tolerating one typo in long names (registries contain “Hydroxycloroquine”).
3Is it repurposing?
Each drug is resolved through the Open Targets Platform, which serves ChEMBL’s drug records, to its parent molecule, its salts, and any approved forms recorded separately. Its approved indications are the diseases it has reached approval for, on any of these forms (from drug labels, or phase 4 trials, the same convention as ChEMBL’s “max phase 4”). Diseases are matched to the trials’ MeSH conditions by MeSH cross-reference, or failing that by exact name or synonym; nothing is matched loosely. If Open Targets is unavailable, ChEMBL’s own API is used instead. On twelve commonly searched drugs, this finds about 90% of the approved indications ChEMBL lists. A missed one shows as off-label: simvastatin trials coded only as “Dyslipidemias” are an example. The trial’s condition is then compared through the MeSH hierarchy:
- Approved indication: the condition is an approved indication.
- Subtype of approved: the condition sits below an approved indication in MeSH (e.g. type 1 diabetes under “Diabetes Mellitus”). Often still off-label in practice, so shown separately and never silently counted as approved.
- Off-label: unrelated to any approved indication. These are the repurposing attempts.
The comparison uses the lineage of the specific condition (the one searched for, or the trial’s first-listed condition), so a trial of ALS with frontotemporal dementia doesn’t make a dementia drug “approved for ALS”.
In a target search each drug is compared against its own approvals. A trial counts as off-label when the approved drugs it tests are not approved for its condition. Trials that test only unapproved drugs are development, not repurposing, and get no approval label.
4Why did it stop?
The free-text why stopped field is classified with published regular-expression rules into 11 categories. The classifier is multi-label, negation-aware (“not related to safety” is not a safety stop) and returns the exact matched spans, which the app highlights in the original text.
When several reasons are present, the most scientifically informative one (in the order above) drives the outcome. The rules are unit-tested against a gold set of real registry texts (src/lib/classify/stopReasons.test.ts) and measured against 3,747 texts labelled by experts; see section 6.
5From record to outcome
| Registry record | Outcome |
|---|---|
| Recruiting, not yet recruiting, active, enrolling by invitation | Ongoing |
| Suspended | Ongoing, unless the stated reason is safety, which gives Stopped for safety |
| Terminated or withdrawn, reason mentions safety / adverse events / toxicity | Stopped for safety (withdrawn + outside evidence → Superseded) |
| Terminated, reason mentions futility / lack of efficacy | Stopped for futility (if it cites other trials, or the trial was withdrawn → Superseded) |
| Terminated, reason mentions early benefit / met endpoint | Stopped for benefit |
| Terminated or withdrawn, reason cites new outside evidence or changed practice | Superseded |
| Terminated or withdrawn for recruitment, funding, business, regulatory, logistics or COVID-19 | Never answered |
| Withdrawn with no usable reason | Never answered |
| Terminated with no usable reason | Stopped, reason unclear (counted as unknown, not as never answered) |
| Completed, every posted superiority primary analysis p ≥ 0.05 | Null primary result |
| Completed, any posted primary analysis p < 0.05 | Significant difference (direction not interpreted) |
| Completed, only descriptive or non-inferiority results, or a linked publication | Outcome reported (read it) |
| Completed, no results or linked publication, but a PubMed paper cites its NCT number | Outcome reported (read it) |
| Completed, no results, no linked or citing publication | Silent |
| Status unknown (not verified for 2+ years) | Lapsed (or Outcome reported if a paper is linked or found) |
About p-values. “Significant difference” means a posted primary analysis had p < 0.05. It doesn’t mean the drug helped: the effect may favour the comparator, the comparison may be dose against dose, and multiple comparisons are not adjusted. Non-inferiority and equivalence analyses are not interpreted. A null result from a trial that stopped early is reported as underpowered, not as a failure.
About papers found in PubMed. For completed or lapsed trials with no posted results and no linked paper, TrialTrace searches PubMed for papers whose databank list, title or abstract carries the trial’s NCT number. Reviews, meta-analyses, commentary and protocols are skipped, because they cite a trial without reporting it. A found paper is marked “Found in PubMed”. It may report a secondary analysis rather than the primary result, so read it.
6How accurate is it?
We measured the stop-reason rules against the Open Targets clinical trial stop reasons dataset: 3,747 registry “why stopped” texts, each labelled by experts (Razuvayevskaya O, Lopez I, Dunham I, Ochoa D. Genetic factors associated with reasons for clinical trial stoppage. Nat Genet. 2024;56:1862–1867.). The texts were split in half by a fixed hash. The rules were tuned by reading mistakes in one half only. The numbers below come from the other 1,892 texts, which were never inspected one by one.
The two taxonomies differ, so results are compared on the decision a reader sees. The experts’ safety and lack-of-efficacy labels count as evidence against; success and endpoint-met as signal; recruitment, business, logistics, staff, regulatory and COVID-19 as never answered. Texts the experts labelled only as study design, another study, or no context have no clear family and are left out of the accuracy figure, but they are shown below.
| Experts said ↓ · TrialTrace said → | Evidence against | Signal | Never answered | No clear reason |
|---|---|---|---|---|
| Evidence against | 175 | 1 | 27 | 88 |
| Signal | 2 | 4 | 6 | 14 |
| Never answered | 21 | 0 | 1,093 | 105 |
| No clear reason | 32 | 0 | 134 | 190 |
| Stop reason | Expert-labelled | Precision | Recall |
|---|---|---|---|
| Safety / tolerability | 97 | 71.7% | 73.2% |
| Lack of efficacy / futility | 206 | 79.5% | 47.1% |
| Early benefit | 30 | 80.0% | 13.3% |
| Recruitment / enrollment | 542 | 77.5% | 95.8% |
| Business / funding | 388 | 71.3% | 77.6% |
| Logistics / personnel / supply | 232 | 58.8% | 54.7% |
| Regulatory / ethics | 64 | 55.4% | 79.7% |
| COVID-19 disruption | 89 | 98.9% | 100.0% |
What this means. Non-scientific stops are recognised well. Failures are harder: many are described in words the rules miss, and many say only “stopped after an interim analysis” or “on the data monitoring committee’s recommendation”. The experts counted those as negative. TrialTrace does not infer a reason that isn’t written down, so it shows them as Stopped, reason unclear, grouped with the unknowns rather than with “never answered”. Early benefit is rarely stated in words; posted p-values are a better guide. 9.3% of failed trials are still labelled “never answered”. In the tuning half these were texts that phrase the scientific reason in words the rules miss, while an operational word (“enrollment”, “feasibility”) is caught. That is why every label shows the original text with the matched words highlighted.
| Version | Right family | Failed → “never answered” | Non-scientific → “evidence against” |
|---|---|---|---|
1.0.0 | 70.9% | 8.2% | 2.4% |
2.0.0 | 83.0% | 10.3% | 1.7% |
2.1.0 | 82.8% | 9.3% | 1.7% |
How often the held-out half was used. Every version scored on the held-out texts is listed above: 3 so far. Nobody read them one by one, but each score says a little about them, and a rule change made after seeing a score is slightly fitted to it. Version 2.0.0 cut most errors but raised false “never answered” labels; 2.1.0 is a targeted fix for that, developed and checked on the tuning half before this half was scored once more. A fresh set of recently labelled texts would give a fully clean test.
On the half used for tuning, the rules score 92.7%. The gap to the held-out 82.8% shows how much they fit the examples they were written from; the held-out figure is the honest one. Classifier stop-reasons/2.1.0, dataset revision 2c6c468. Reproduce with npm run eval.
7What this cannot see
- Trials registered only outside ClinicalTrials.gov (EU CTR/CTIS, ChiCTR, CTRI, ISRCTN, …). Links to search them are in every dossier.
- Unregistered studies, case reports and series, preprints and conference abstracts.
- Results that exist only in a paper which never cites the NCT number.
- Preclinical and animal studies, where many repurposing hypotheses fail first.
- Reasons sponsors don’t state. “Business decision” sometimes hides weak efficacy.
So a missing result doesn’t mean the idea was never tried. A trial labelled “Never answered” means the registry gives no scientific reason for stopping; it doesn’t prove the hypothesis is still viable.
8Sources and licences
- ClinicalTrials.gov, U.S. National Library of Medicine. Public domain. Linked publications are the registry’s RESULT and NLM auto-linked (DERIVED) references.
- Open Targets Platform. Its own data is CC0; the drug records it serves come from ChEMBL and other sources and keep their licences. Used live for drug identity, approvals, and the drugs acting on a target.
- ChEMBL, EMBL-EBI. CC BY-SA 3.0. The origin of the drug records, and queried directly when Open Targets is unavailable. Used live with attribution; no derived database is redistributed.
- PubMed, via NCBI E-utilities, U.S. National Library of Medicine. Used live to find papers that cite a trial’s NCT number; only titles, authors and PMIDs are shown, with links back to PubMed.
- MeSH, U.S. National Library of Medicine. Used for condition codes, hierarchy and therapeutic areas.
- Open Targets clinical trial stop reasons, Apache-2.0. Used only to measure the classifier; not redistributed.
TrialTrace is open source under the MIT licence. It is a research tool, not medical advice, and must not be used for clinical decisions.