StatAgentWeekly email

Extract design attributes from a protocol or SAP into a summary table

AI pulls design, population, comparator and sample size from long protocol documents into a table with quoted evidence. One small published test found good extraction but some errors.

Reported in literatureMedium risk

Task
SAP and protocol
Roles
Statistician, Programmer, Manager
Assistants
Microsoft 365 Copilot, ChatGPT, Claude
Last reviewed

Evidence

Reported in literature. Shin et al. 2025 (Clin Pharmacol Ther) tested GPT-4o in ChatGPT on 15 registered trial protocols: disease, intervention and comparator correct in all 15, sample size in 14. Other errors: one trial phase not identified. Overall correctness 95% against protocols, 80% against ClinicalTrials.gov. Graded by one author; the quote requirement here was not tested.

Steps

  1. Paste the relevant protocol or SAP sections.
  2. Run the extraction prompt with a quote requirement.
  3. Check each row against the quoted text.
  4. Resolve planned versus actual values.
  5. Record the document version used.

Prompt

This is the prompt, typed out. No assistant reply is shown.

You
Extract the following into a table: disease, intervention, comparator, design (blinding, randomization, parallel/crossover), planned sample size, primary endpoint, key analysis sets, test sidedness. For each row quote the exact source sentence and its section number. If a value is not stated write NOT STATED. Do not combine values from different versions. Rules: use ONLY the input below. Tag anything the input does not state as OPEN QUESTION. Never invent numbers; use placeholders such as xx. Do not claim anything is verified. INPUT: [paste input here]

Verify before you use it

How it fails

Right-looking values drawn from an outdated version, or planned and actual numbers mixed.

Data rule: No confidential protocols or SAPs under NDA or in-house; check your employer's policy. Use ClinicalTrials.gov attachments.

Sources

Related

How we check. Back to the directory.