Abstract
Progressive disorders are highly heterogeneous. Symptom-based clinical classification of these disorders may not reflect the underlying pathobiology. Data-driven subtyping and staging of patients has the potential to disentangle the complex spatiotemporal patterns of disease progression. Tools that enable this are in high demand from clinical and treatment-development communities. Here we describe the pySuStaIn software package, a Python-based implementation of the Subtype and Stage Inference (SuStaIn) algorithm. SuStaIn unravels the complexity of heterogeneous diseases by inferring multiple disease progression patterns (subtypes) and individual severity (stages) from cross-sectional data. The primary aims of pySuStaIn are to enable widespread application and translation of SuStaIn via an accessible Python package that supports simple extension and generalization to novel modelling situations within a single, consistent architecture.
Introduction
Progressive disorders like Alzheimer’s, Multiple Sclerosis (MS), and COPD are notoriously heterogeneous. Two patients with the same clinical diagnosis might have vastly different underlying biological patterns and rates of decline. Traditional disease progression models often assume every patient follows a single, linear path from early to late stages. The SuStaIn algorithm was developed to solve this by disentangling subtypes (spatial patterns) from stages (temporal progression). This paper introduces pySuStaIn, a Python-based implementation designed to be faster, more accessible, and easily extensible for novel modeling scenarios.
Software Architecture and Methods
The core of pySuStaIn is an object-oriented framework built around an AbstractSustain class. This architecture allows researchers to "plug in" different data likelihood models depending on their data type:
ZScoreSustain: For continuous data, modeling progression as biomarkers reaching specific z-score thresholds.MixtureSustain: Uses mixture models to define the probability of a biomarker being "normal" vs. "abnormal."OrdinalSustain: Designed for discrete, categorical data like visual ratings.
The algorithm works iteratively: it starts by finding the best one-subtype model using greedy Expectation Maximization (EM). It then attempts to split that subtype into two, then three, and so on, until it reaches a user-defined maximum.
To quantify uncertainty, it uses Markov Chain Monte Carlo (MCMC) sampling to generate Positional Variance Diagrams (PVDs), which visualize the confidence level in the inferred order of disease events.
Applications and Results
The software has been validated using simulated datasets to prove that the algorithm can accurately recover "ground truth" subtypes and stages from noisy data. Additionally, SuStaIn has been applied to real-world clinical data in several high-impact studies:
- Alzheimer’s Tau PET: Identified four distinct tau subtypes across over 1,100 individuals.
- Multiple Sclerosis: MRI-based data used to identify subtypes associated with disability progression.
- COPD: Identified "tissue-early" vs. "airway-early" damage patterns.
pySuStaIn is substantially faster than the original MATLAB version due to code optimizations and the use of the Pathos package for parallelizing EM start-points.
Discussion
While pySuStaIn provides a robust framework for disease modeling, it remains computationally demanding. Choosing the "correct" number of subtypes requires significant researcher discretion and domain expertise, supported by tools like the Cross-Validation Information Criterion (CVIC). The authors anticipate that making this tool open-source in Python will lead to its adoption in wider clinical trial stratification and personalized medicine.
Summary updated