Introduction
Randomized Controlled Trials (RCTs) represent the gold standard for medical evidence, yet the longitudinal data they generate is often too complex for holistic analysis. Beyond primary endpoints like survival, RCTs produce a wealth of temporal data, including fluctuating lab results, adverse events, and shifting treatment responses. Traditional statistical methods often flatten this temporal richness, while existing visualization tools frequently focus on individual patients rather than cohort-level patterns.
TrialView is an AI-powered visual analytics system designed to bridge this gap. It transforms raw patient trajectories into intuitive summaries of treatment progression and biomarker influence, helping clinicians and researchers navigate the "messy middle" of clinical trial data.
Design Requirements and Task Analysis
To ensure clinical utility, TrialView was developed based on a hierarchical task analysis involving care providers and clinical researchers. The system addresses three primary goals: understanding disease history and events, providing cohort overviews, and identifying cohort patterns.
These goals are translated into specific requirements, such as visualizing individual lab test values within population distributions and identifying important baseline variables that contribute to specific patient clusters.
Technical Framework
TrialView employs a multi-layered technical stack to convert raw clinical data into actionable insights. The core of the system is a Graph AI framework that handles multi-modality data.
Graph AI Clustering
The system utilizes a Graph Transformer Autoencoder to group patients. Patients are represented as nodes in a similarity graph based on baseline features. The autoencoder learns latent representations of entire event sequences, allowing the system to identify cohorts with similar disease progressions rather than just similar starting points.
Explainable AI (XAI) and Agglomeration
To ensure transparency, TrialView implements Graph Grad-CAM to generate importance heatmaps. These heatmaps reveal which baseline lab tests (e.g., bilirubin or platelet counts) most heavily influenced a patient’s assignment to a specific cluster.
Furthermore, the system features a Status Agglomeration Algorithm. Using Jaccard similarity, this algorithm merges adjacent time blocks with similar transition patterns, simplifying 180 days of daily event data into a clean, "Sankey-style" progression view. To handle overlapping events, a "cascade trump rule" (e.g., Death > AKI > No Event) prioritizes the most clinically significant status.
Dataset and Implementation
The system was validated using data from the Alcoholic Hepatitis Network (AlcHepNet), involving 147 patients from a specific RCT (NCT04072822). The dataset included demographics, 15 lab tests (such as MELD score and Hemoglobin), drinking behaviors, and two treatment arms. The system tracks nine mutually exclusive statuses, including liver transplant, infection, and acute kidney injury (AKI).
Results and Case Study
A case study with a hepatology researcher demonstrated TrialView's utility in pattern recognition and biomarker discovery. The system successfully identified four distinct clusters:
- Cluster A: Successful treatment with no major events.
- Cluster B: Treatment failure resulting in death.
- Cluster C: Survival accompanied by adverse events.
- Cluster D: Early study discontinuation.
In the failure group (Cluster B), the XAI heatmap revealed that high Prothrombin Time (PT) and MELD scores were the primary drivers of negative outcomes. The researcher was also able to perform deep dives into individual trajectories, such as tracing a specific patient from an initial lab abnormality to an AKI event on Day 9 and a liver transplant on Day 18.
Conclusion and Future Work
TrialView provides a powerful interface for interpreting the complex temporal dynamics of clinical trials. While currently tailored to Alcoholic Hepatitis research, the underlying Graph AI and visualization principles are designed for general-purpose clinical analytics. Future work will focus on scaling the system for larger cohorts and introducing user-defined cluster models to allow researchers to test specific clinical hypotheses interactively.
Summary updated