Abstract
Disease progression models are instrumental in predicting individual-level health trajectories and understanding disease dynamics. Existing models are capable of providing either accurate predictions of patients' prognoses or clinically interpretable representations of disease pathophysiology, but not both. In this paper, we develop the phased attentive state space (PASS) model of disease progression, a deep probabilistic model that captures complex representations for disease progression while maintaining clinical interpretability. Unlike Markovian state space models which assume memoryless dynamics, PASS uses an attention mechanism to induce "memoryful" state transitions, whereby repeatedly updated attention weights are used to focus on past state realizations that best predict future states. This gives rise to complex, non-stationary state dynamics that remain interpretable through the generated attention weights, which designate the relationships between the realized state variables for individual patients. PASS uses phased LSTM units (with time gates controlled by parametrized oscillations) to generate the attention weights in continuous time, which enables handling irregularly-sampled and potentially missing medical observations. Experiments on data from a real-world cohort of patients show that PASS successfully balances the tradeoff between accuracy and interpretability: it demonstrates superior predictive accuracy and learns insightful individual-level representations of disease progression.
Introduction
Managing chronic conditions like Cystic Fibrosis (CF) or cancer requires forecasting patient trajectories with high precision while maintaining a clear understanding of the underlying disease mechanisms. Historically, clinical modeling has faced a significant tradeoff between accuracy and interpretability. Recurrent Neural Networks (RNNs) offer high predictive performance but function as "black boxes," where hidden states lack direct clinical meaning. Conversely, Hidden Markov Models (HMMs) are highly interpretable, modeling transitions between discrete disease stages, but suffer from the "memoryless" Markov assumption—ignoring a patient's specific clinical history and assuming the future depends only on the current state.
The Phased Attentive State Space (PASS) Model
To bridge this gap, we propose the Phased Attentive State Space (PASS) model. PASS combines the structured, interpretable latent states of an HMM with the predictive power and memory of deep learning.
Attentive State Transitions
The core innovation of PASS is the replacement of fixed transition probabilities with an attention mechanism. This mechanism generates weights ($\alpha$) that quantify the influence of past states on the current transition. By focusing on relevant past realizations, the model captures non-stationary, "memoryful" dynamics. For instance, a previous complication or a specific treatment response from years ago can be identified as a primary driver of a current decline.
Handling Irregular Medical Records
Electronic Health Record (EHR) data is often irregularly sampled and contains missing observations. PASS addresses this by employing Phased LSTM (pLSTM) units. These units utilize a rhythmic "time gate" controlled by parametrized oscillations, allowing the model to update hidden representations in continuous time. This approach naturally handles the gaps between clinical visits without requiring biased data imputation.
Capturing History-Dependent Dynamics
Disease progression is inherently non-stationary; two patients in the same "stage" may have vastly different outlooks based on their path to that stage. PASS captures this nuance by weighting the entire patient history. To maintain computational efficiency during non-Markovian inference, the model "lumps" consecutive states into "super-states," enabling the use of efficient classical algorithms like the Forward-Backward algorithm while retaining the benefits of deep temporal dependencies.
Experimental Results
The model was evaluated using data from the UK Cystic Fibrosis Registry, comprising 10,263 patients and over 60,000 hospital visits. The dataset included 90 variables, such as lung function biomarkers (FEV1), treatments, comorbidities, and infections.
Predictive Accuracy
PASS consistently outperformed standard RNNs, HMMs, and Multi-Layer Perceptrons (MLPs) across multiple prognostic tasks. For example, in predicting Aspergillus infection, PASS achieved an AUC-ROC of 0.640, significantly higher than the HMM (0.620) and MLP (0.601).
Clinical Interpretability
The model discovered three distinct progression stages in CF that aligned with established clinical guidelines. Specifically, "Stage III" identified by the model corresponded to a lung function (FEV1) of less than 30%, the threshold typically used for lung transplant referrals. Furthermore, the attention weights provide a "paper trail" for clinicians, explaining individual prognoses. In one case study, the model identified that a specific drug (Ivacaftor) was associated with increased risk for a patient due to a "remembered" history of liver disease, demonstrating the model's ability to perform actionable clinical reasoning.
Conclusion
The PASS model successfully balances the tension between predictive accuracy and clinical interpretability. By integrating attention mechanisms and phased LSTMs into a state-space framework, it provides a powerful tool for forecasting individualized disease trajectories from complex, real-world medical data. Future work will explore extending this framework to other multi-morbid conditions such as cardiovascular disease and cancer.
Summary updated