TrialCompass: Visual Analytics for Enhancing the Eligibility Criteria Design of Clinical Trials

Rui Sheng, Xingbo Wang, Jiachen Wang, Xiaofu Jin, Zhonghua Sheng, Zhenxing Xu, Suraj Rajendran, Huamin Qu, Fei Wang

TL;DR

TrialCompass is a visual analytics system designed to help clinicians navigate the "combinatorial explosion" of clinical trial eligibility criteria. By integrating historical Electronic Health Record (EHR) data with interactive visualizations, it allows researchers to balance the trade-offs between recruiting enough patients and ensuring the trial's safety and efficacy.

What Problem Does This Paper Address?

Clinical trials are the backbone of modern medicine, but they are staggeringly expensive (averaging $2.87 billion per trial) and prone to failure. A primary reason for failure—accounting for 86% of cases—is the inability to recruit enough suitable participants.

Designing eligibility criteria is a "Goldilocks" problem: if criteria are too strict, you can't find enough patients; if they are too relaxed, you risk patient safety or "noise" that masks the treatment's effectiveness. Clinicians currently lack tools to explore the vast space of potential criteria combinations (often numbering in the thousands) or to see how these choices impact long-term patient health trends rather than just single-point snapshots.

Methods

TrialCompass introduces a dual-pathway workflow to bridge the gap between human expertise and data-driven simulation:

  1. Knowledge-Driven Exploration: Clinicians use their expertise to set specific criteria (e.g., "patients over 60 with no history of heart surgery") and immediately see the simulated outcome.
  2. Outcome-Driven Exploration: The system presents a wide array of "criterion candidates." Clinicians can select high-performing groups (e.g., those with the best Hazard Ratio) and work backward to see which criteria combinations produced those results.

Technical Backbone: * Propensity Score Matching (PSM): To ensure a fair comparison, the system uses PSM to create "treatment" and "control" groups from historical data that are statistically similar in terms of confounding factors like age and gender. * Cox Proportional-Hazards Model: This standard statistical model is used to calculate the Hazard Ratio (HR), a key metric for determining if a treatment is actually working. * Visual Components: The system features a Criterion View (interactive sliders), an Outcome View (a scatter plot of metrics), and a Detailed Characteristic View that shows temporal trends (how kidney or liver function changes over the course of the trial). * History Tracking: A dedicated Exploration View records every step of the clinician’s journey, allowing them to compare different "stages" of their design process.

Datasets

The authors evaluated TrialCompass using the MIMIC-IV dataset, a massive, publicly available database containing de-identified EHR data from over 100,000 ICU patients. They focused on two complex medical scenarios:

  • Septic Shock: Evaluating the efficacy of hydrocortisone.
  • Sepsis-associated Acute Kidney Injury (AKI): Studying the effects of aspirin.

Key Insights and Ideas

  • The "Obesity Paradox": During the septic shock case study, an expert discovered that including obese patients actually improved the trial's hazard ratio. This aligned with the "obesity paradox" seen in some medical literature, where higher BMI is sometimes associated with lower mortality in specific ICU contexts.
  • Temporal Nuance vs. Aggregated Scores: A key "aha moment" occurred when clinicians realized that a "safe" aggregate risk score could hide dangerous mid-term dips in organ function. TrialCompass’s ability to show line charts of kidney/liver function over time allowed clinicians to reject criteria that looked good on paper but were risky in practice.
  • Managing Combinatorial Explosion: By using a matrix-based history view, the system helps clinicians keep track of how changing one variable (like a GCS score) impacts others, preventing them from getting lost in the thousands of possible permutations.

Key Results

  • Recruitment Gains: In the AKI case study, an expert was able to refine criteria to increase the potential patient pool 5-fold (from 1,000 to 5,000 patients) while maintaining a favorable hazard ratio (0.72).
  • Outcome Optimization: In the septic shock study, the clinician successfully shifted the trial design from a hazard ratio > 1 (indicating the treatment was ineffective for that group) to < 1 (indicating a positive effect) by narrowing the criteria to patients on mechanical ventilation.
  • Usability: Experts rated the system highly on the NASA Task Load Index, particularly praising the "performance" (1.7/7, where 1 is best) and low "frustration" (1.8/7).

Limitations and Future Work

  • Metric Breadth: The current version only tracks five primary outcome metrics. Future versions could incorporate more specific cardiovascular or respiratory risk factors.
  • Scalability: While the scatter plot works for thousands of candidates, the authors acknowledge that as the search space grows into the millions, they will need to implement smarter sampling techniques to prevent visual clutter.
  • Automated Recommendations: Experts suggested that the system should eventually move from "evaluating" criteria to "recommending" them—using AI to suggest optimal thresholds that the clinician can then validate.

Summary updated

BibTeX
@article{sheng2026trialcompass,
  author = {Rui Sheng and Xingbo Wang and Jiachen Wang and Xiaofu Jin and Zhonghua Sheng and Zhenxing Xu and Suraj Rajendran and Huamin Qu and Fei Wang},
  title = {{TrialCompass: Visual Analytics for Enhancing the Eligibility Criteria Design of Clinical Trials}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2026},
  doi = {10.1109/tvcg.2025.3634803},
}
Figure