CohortFlow: A Steerable Clinical Cohort Curation Agent with Localized Semantic Correction

CohortFlow lets clinicians update cohort specifications locally, cutting correction time and model calls while keeping accuracy high.

CohortFlow: A Steerable Clinical Cohort Curation Agent with Localized Semantic Correction

Introduction

Clinical trial eligibility criteria often evolve, forcing researchers to re‑run costly language‑model pipelines even when only a small part of the specification changes. CohortFlow addresses this pain point by treating natural‑language edits as localized updates to a structured cohort graph. By tracking semantic dependencies, the system only recomputes the nodes that truly depend on a change, preserving prior results and dramatically speeding up the correction loop.

How Localized Semantic Steering Works

  1. Structured Cohort Specification – The original eligibility text is parsed into a graph of logical nodes (e.g., age limits, lab thresholds, diagnosis codes). Each node carries a clear semantic meaning.
  2. Persistent Execution Graph – As the model evaluates the specification, it records intermediate results alongside the graph structure. This creates a cache of already‑computed outcomes.
  3. Natural‑Language Corrections – When a user submits a correction (e.g., “increase the upper age limit to 75”), CohortFlow translates the edit into a delta that updates only the relevant node.
  4. Dependency Invalidation – The system automatically flags downstream nodes that depend on the edited node, invalidating their cached results while leaving unrelated branches untouched.
  5. Selective Re‑execution – Only the invalidated portion of the graph is re‑run, reducing the number of model calls and overall latency.

Performance Highlights

  • Accuracy – On a benchmark of 100 clinical‑trial scenarios (126 correction turns), CohortFlow achieved a micro‑F1 of 77.0 %, essentially matching the 76.4 % obtained by full regeneration.
  • Latency Reduction – Mean correction latency dropped by 64.8 % after the correction was completed and by 44.3 % during execution.
  • Model‑Call Savings – The approach required 38.1 % fewer model invocations, translating into lower compute costs and faster turnaround for researchers.
  • Robustness on Real Data – In a proof‑of‑concept run over the MIMIC‑IV database, all 13 cohort states executed without error, and the system demonstrated selective preservation of unchanged computations.

Practical Implications for Clinical Researchers

  • Iterative Design – Researchers can experiment with eligibility tweaks in real time, seeing the impact on cohort composition without waiting for a full pipeline rerun.
  • Cost Efficiency – Fewer model calls mean lower cloud‑compute expenses, an important consideration for institutions with limited AI budgets.
  • Transparency – Because each node and its dependencies are explicit, users gain insight into why a particular correction propagates, supporting auditability and regulatory compliance.
  • Scalability – The graph‑based architecture scales to large, multi‑center trial specifications, where only a handful of criteria may change between protocol amendments.

Closing Thoughts

CohortFlow illustrates that semantic awareness—knowing which parts of a specification truly depend on each other—can turn a heavyweight, monolithic language‑model workflow into a nimble, steerable assistant. By preserving valid results and recomputing only what’s necessary, the system delivers speed and cost benefits without sacrificing the high accuracy clinicians demand. As trial designs become more adaptive, tools like CohortFlow will be essential for keeping cohort curation both responsive and reliable.

Source

Read original source

Why we picked this

Introduces a steerable language‑model agent for clinical cohort curation, advancing AI applications in healthcare

← Back to all articles