Forecast-Scored k-Means over Time-Aligned Progression Curves

When a clinic follows a few dozen patients with a progressive disease, two questions matter most. Which kind of decline is this patient on, and where will they be in two years? The usual tool for the first question is k-means, which groups patients by how similar their measurements look. It ignores where each patient goes next, so two people who look alike today but diverge later end up in the same group. The tools for the second question are deep sequence models, and these need hundreds or thousands of patients. We propose a k-means variant in which each cluster center is a whole disease course: a monotone curve of a biomarker against disease time. Each patient is placed onto a center with a personal onset shift and a personal speed. The patient's own later visits play the role that outcome labels play in supervised clustering. Everything else about the method is chosen to fit a small cohort: a few visits per patient, irregular spacing, and no labels.

The claim is narrow and testable. With fewer than about 150 patients, clusters fit to whole observed trajectories, with centers that cannot reverse, will forecast held-out future visits better and reproduce more stably than three alternatives: clusters of baseline snapshots, clusters of per-patient fitted slopes, and a deep predictive clustering model trained on the same data. We also test whether the number of clusters chosen by forecast error is ever greater than one. A cohort may differ only in onset and speed, and if so a single shared curve is the honest answer.

Where this sits

The closest work is Temporal Phenotyping using Deep Predictive Clustering of Disease Progression, called AC-TPC. It motivates this proposal. AC-TPC shows that outcome-blind k-means mixes patients with different futures, and it fixes this by training an encoder, a cluster selector and an outcome predictor with actor-critic reinforcement learning against explicit future comorbidity labels. On 5,171 cystic fibrosis registry patients it reports an adjusted Rand index of 0.602 against 0.440 for a k-means-based predictive baseline, and an AUROC of 0.843 for comorbidity prediction. We keep its central point, that a cluster should be defined by its future, and drop its two expensive parts. Instead of labels we use later measurements of the same biomarker. Instead of a neural encoder and a reinforcement-learning assigner we use a closed-form k-means alternation that has very few parameters to overfit.

Two papers supply pieces of the method. Conditional Neural ODE for Longitudinal Parkinson's Disease Progression Forecasting, called CNODE, models cortical thinning in 161 PPMI patients with irregular visits. It places every patient on one shared continuous trajectory using a learned onset shift $\tau$ and speed $\gamma$. We borrow this alignment but allow several trajectories, and we estimate the shift and speed by direct search rather than with neural regressors. Three irreversibility papers constrain the shape of the centers. Learning the irreversible progression trajectory of Alzheimer's disease (RMLP) penalizes predicted risk that falls between visits. Longitudinal Pooling & Consistency Regularization adds a consistency loss with the same aim. Forecasting Irreversible Disease via Progression Learning writes future disease status as current status plus a non-negative residual. All three put monotonicity on one scalar output. We put it on the cluster centers themselves, so no group's average course can improve under an irreversible disease.

Representing Alzheimer's Disease Progression via Deep Prototype Tree builds ordered prototypes and a spanning tree over them. It does so from cross-sectional snapshots grouped by predefined diagnostic stages, whereas we work within-subject and without stage labels. Finally, Unveiling COVID-19 from Chest X-ray with deep learning found that in small cohorts, embeddings tend to group patients by data source and that shallower networks beat deeper ones. This finding constrains our design: it argues for low capacity, and for checking whether clusters line up with acquisition site.

One honest caveat on novelty. Statistical models that infer disease subtypes and stages together, and latent-class mixed models, already exist in neurology and biostatistics. The research file contains none of them. Our contribution is therefore not "subtypes plus stages" in general. It is three specific choices: scoring clusters by the forecast of withheld future visits, imposing monotone centers inside a k-means alternation, and running a systematic small-sample comparison against both deep and two-stage alternatives. A latent-class or subtype-and-stage model is included as a baseline below.

Core Mechanism

Patient $i$ has visits at irregular times $t_{ij}$ with feature vectors $x_{ij}$, for example regional cortical thickness or cognitive scores. Each cluster $k$ has a center curve $m_k(s)$, where $s$ is disease time. Each coordinate of $m_k$ is constrained to move in one clinically fixed direction, for instance thickness can only fall. A patient is described by a cluster label $c_i$, an onset shift $\tau_i$ and a speed $\gamma_i$. The method alternates two steps:

$$ (c_i,\tau_i,\gamma_i)=\arg\min_{k,\tau,\gamma}\sum_{j}\lVert x_{ij}-m_k(\gamma(t_{ij}-\tau))\rVert^2+\rho(\tau,\gamma), \qquad m_k=\arg\min_{m\ \text{monotone}}\sum_{i:c_i=k}\sum_j\lVert x_{ij}-m(\gamma_i(t_{ij}-\tau_i))\rVert^2 . $$

The first step is the assignment. The term $\rho$ is a weak penalty that pulls shift and speed toward the cohort's typical values, which keeps patients with only two visits from being fit with extreme alignments. With a few dozen patients, the search over $(\tau,\gamma)$ can be done on a grid. The second step is the update. It is isotonic regression on spline coefficients, so it has a closed-form or near-closed-form solution. Both steps lower the same objective, so the alternation converges just as Lloyd's k-means does. We seed the centers in the spirit of k-means++ and use several restarts.

The predictive part comes from how we choose and evaluate. Each patient's visits are split into early ones and later ones. Clusters are fit on whole trajectories, so later divergence can pull apart patients who looked alike early. That hindsight is how the later visits act as an outcome without any labels. At evaluation, a new patient is assigned using only their early visits, and the matched center, shifted and stretched to that patient, forecasts their later visits. The number of clusters $k$, including $k=1$, is chosen by this held-out forecast error, never by the in-sample objective. The design carries a risk: clusters found with hindsight may not be recognizable from early visits alone. We measure that gap directly rather than assume it away.

Research Program

We first build the method for tabular and derived-imaging features. This means cortical thickness in PPMI, and regional volumes plus cognitive scores in ADNI. We do not process raw images. That choice follows the evidence from How Good are Foundation Models in Longitudinal MRI Disease Progression Reasoning?, which found that current models detect where a scan changed but not which way it changed (Trend-F1 0.19 to 0.63) or by how much (under 16% accuracy). Direction and magnitude are exactly what a monotone center curve encodes.

The main analysis uses subsampling. ADNI has far more patients than the small-cohort regime. AC-TPC used 1,346, and RMLP used thousands of MRI timepoints. We fit every method on random subsets of 30, 60 and 120 patients and test on disjoint held-out patients. The full-cohort solution of each method serves as a reference partition. This lets us measure two things at small sample sizes: whether a method recovers the structure it finds with plenty of data, and how much its solutions vary between subsamples. PPMI, with 161 patients, gives a second disease with naturally irregular visits. OASIS-2, one of the cohorts in the time-aware MRI benchmark, gives a third check where volumetric features can be derived.

Baselines

The naive reference points are last-observation-carried-forward and a single population-mean curve with no alignment. These set the forecast error any method must beat. Next is k-means on baseline features, the static phenotyping approach used in studies such as Clinical Phenotypes in Hypertension and three phenotypes in hemodialysis patients. Here each cluster forecasts using its members' mean change.

The strongest simple competitor is a two-stage method. We fit a linear mixed model to every feature, take each patient's intercept and slope, and run k-means on those. It shares our method's low capacity, and with only two or three visits per patient it may be very hard to beat.

The strongest published deep competitor is AC-TPC, trained on the same subsets. Its outcome labels are conversion to a worse diagnostic stage, which gives it supervision our method does not have. Its reported numbers come from the cystic fibrosis registry: ARI 0.602 and AUROC 0.843. No reported result for AC-TPC on ADNI was found on Lacuna, so we reproduce it ourselves. CNODE is the single-trajectory continuous-time competitor. No reported numeric result for CNODE was found on Lacuna, because the file gives no table values, so it too is rerun. RMLP is the monotone supervised comparator for conversion prediction. A latent-class mixed model or subtype-and-stage model is included as the classical statistical competitor, with no reported result on Lacuna for these cohorts.

Fairness rules apply to every method. All methods see identical patient subsets and identical early/later visit splits. All receive the same budget of hyperparameter configurations, tuned on inner cross-validation folds inside the training subset only. All are given the same feature set.

Three ablations isolate our ingredients. The first removes the monotonicity constraint. The second removes time alignment by fixing $\tau=0$ and $\gamma=1$. The third assigns training patients from early visits only, removing hindsight. Beating a baseline means a lower held-out forecast error on later visits at $N\le 120$, with paired bootstrap intervals that exclude zero. It also means not losing on conversion AUROC, and showing higher subsample stability.

Why not just…?

Why not just run k-means on fitted slopes and intercepts? This is the real threat. With two or three visits per patient, a straight line may capture almost everything a curve could. Our method differs in two places. Aligning patients by onset lets people at different points on the same curved course share one center, where a slope-based method would split them by how far along they are. The monotone centers also cannot extrapolate into recovery. The subsampling experiment settles which matters. If two-stage k-means ties our method at $N=30$, we will report that as the finding and identify the visit count and sample size at which alignment starts to pay.

Why not just train AC-TPC on the small cohort? AC-TPC needs future diagnostic labels, and its reinforcement-learning loop trains an LSTM from scratch. It was evaluated only on cohorts of thousands. The small-data warnings of Tartaglione et al. suggest it will be unstable at this scale. We nonetheless give it the label advantage and run it. If it still wins on forecast error at $N=60$, the case for our method narrows to the setting where no labels exist.

Why not just use one shared trajectory with personal onset and speed, as CNODE does? If the cohort varies only in timing, more clusters merely fit noise. We guard against this by letting forecast error choose $k=1$. Our model with $k=1$ and a spline center is essentially CNODE's assumption without the neural ODE. If $k=1$ is selected consistently, that is a substantive result: subtypes are not supported at this sample size.

Why not just fit a latent-class mixed model? It is the closest classical tool and could well perform similarly. What it lacks by default is monotone centers and time alignment. We run it as a baseline. If it matches our method, the contribution shrinks to the evaluation protocol and the irreversibility constraint, and we will say so.

Decisive Checks

The primary outcome is held-out later-visit forecast error at $N=30$, 60 and 120 on ADNI subsets and on PPMI, assigning each test patient from early visits only. Secondary outcomes are three. The first is ARI between each small-sample solution and that same method's full-cohort solution, together with ARI across bootstrap replicates. The second is AUROC for conversion from mild cognitive impairment to Alzheimer's disease, using cluster membership plus aligned stage. The third is the rate of predicted reversals, the violation measure from RMLP.

Two further checks decide whether the clusters mean anything. We test whether cluster labels predict acquisition site, or scanner where it is recorded, better than chance. Clusters that track site would repeat the shortcut failure that Tartaglione et al. describe. We also compare clusters fit with hindsight against clusters fit from early visits only. A large gap would mean that later-visit "outcomes" create groups no clinician could identify at intake. The method would then be useful for retrospective description rather than prospective triage.