A software package for efficient patient trajectory analysis applied to analyzing bladder cancer development

PLOS Digit Health. 2023 Nov 22;2(11):e0000384. doi: 10.1371/journal.pdig.0000384. eCollection 2023 Nov.

Abstract

We present the Patient Trajectory Analysis Library (PTRA), a software package for explorative analysis of patient development. PTRA provides the tools for extracting statistically relevant trajectories from the medical event histories of a patient population. These trajectories can additionally be clustered for visual inspection and identifying key events in patient progression. The algorithms of PTRA are based on a statistical method developed previously by Jensen et al, but we contribute several modifications and extensions to enable the implementation of a practical tool. This includes a new clustering strategy, filter mechanisms for controlling analysis to specific cohorts and for controlling trajectory output, a parallel implementation that executes on a single server rather than a high-performance computing (HPC) cluster, etc. PTRA is furthermore open source and the code is organized as a framework so researchers can reuse it to analyze new data sets. We illustrate our tool by discussing trajectories extracted from the TriNetX Dataworks database for analyzing bladder cancer development. We show this experiment uncovers medically sound trajectories for bladder cancer.

Grants and funding

This research received funding from the Flemish Government (AI Research Program). This research also received funding from Flanders Innovation & Entrepreneurship (VLAIO) via the ATHENA project with grant number HBC.2019.2528. CH, ED, RW, and WV are employees of IMEC vzw, Belgium; MA and FV are employees of the University Hospitals Leuven, Leuven, Belgium. VV and WB are employees of Janssen Pharmaceutica. The specific role of each author is articulated in the "author contributions" section.