ABSTRACT
Many rare diseases offer limited established treatment options, leading patients to switch therapies when new medications emerge. To analyze the impact of such treatment switches within the low sample size limitations of rare disease trials, it is important to use all available data sources. This, however, is complicated when the use of measurement instruments changes during the observation period, for example when instruments are adapted to specific age ranges. The resulting disjoint longitudinal data trajectories complicate the application of traditional modeling approaches like mixed‐effects regression. We tackle this by mapping observations of each instrument to an aligned low‐dimensional temporal trajectory, enabling longitudinal modeling across instruments. Specifically, we employ a set of variational autoencoder architectures to embed item values into a shared latent space for each time point. Temporal disease dynamics and treatment switch effects are then captured through a mixed‐effects regression model applied to latent representations. To enable statistical inference, we present a novel statistical testing approach that accounts for the joint parameter estimation of mixed‐effects regression and variational autoencoders. The methodology is applied to quantify the impact of treatment switches for patients with spinal muscular atrophy. Here, our approach aligns motor performance items from different measurement instruments for mixed‐effects regression and maps estimated effects back to the observed item level to quantify the treatment switch effect. Our approach allows for model selection as well as for assessing effects of treatment switching. The results highlight the potential of modeling in joint latent representations for addressing small data challenges.
Keywords: measurement instrument alignment, mixed‐effects regression, small data, spinal muscular atrophy, statistical inference, treatment switches, variational autoencoder
1. Introduction
Rare diseases often have a limited number of established treatments, leaving patients with few therapeutic options. Thus, when new medications emerge, patients often switch treatments. However, analyzing the impact of such treatment switches longitudinally is difficult since rare disease trials are often characterized by small data challenges [1, 2, 3]. These include small sample sizes, heterogeneous data collected across different sites and varying observation frequencies. Additional difficulties arise when the preferred instruments to measure clinical outcomes change during the observation window. Such changes can occur from an evolving gold standard or measurement instruments that are tailored to patient characteristics, like age or disease severity, that may change over time. However, using data from all available sources is important to make the most of the limited study population. For example, in children affected by spinal muscular atrophy (SMA), symptom progression is monitored longitudinally using several specialized, age‐ and symptom‐specific measurement instruments that evaluate different motor function skills [4, 5, 6, 7, 8, 9]. As patients age and their disease progresses, the preferred assessment instruments are adapted accordingly. Therefore, the longitudinal record often comprises only a subset of these instruments at a given time point.
Statistical approaches, such as mixed‐effects regression, are widely used for modeling disease progression in longitudinal data [10]. They estimate both population‐level effects (fixed effects) and subject‐specific deviations (random effects) simultaneously. Applications span multiple diseases where disease progression is measured via motor function or cognitive assessments. They include neuromuscular disorders such as SMA [11, 12, 13, 14], as well as central nervous system disorders such as Parkinson's disease [15, 16], and multiple sclerosis [17, 18]. Although use cases vary in these applications, we aim to model the impact of switching between medications using a mixed‐effects regression.
However, there are two core issues with the application to disjoint data sources as encountered in SMA data. First, multidimensional measurements are usually aggregated into a single score to reduce the model complexity, which discards the information contained in individual test items [19]. Second, handling switches in measurement instruments is often circumvented by limiting analysis to time frames where a specific measurement instrument was applied. However, this does not provide generality for the whole observation window, as patients with an improving or worsening disease condition can transition to a different measurement instrument to circumvent ceiling or floor effects at the top or bottom of the test scale [4, 9]. This introduces a bias, while a reduction in sample size reduces statistical power, which already is an issue in rare disease settings to begin with. While results of different studies reporting treatment effects are usually aggregated using a meta‐analysis [20, 21, 22], aligning results from different instruments is challenging due to within‐patient correlation across instruments and different measurement scales.
Motivated by these challenges in longitudinal data, we propose an approach that combines mixed‐effects regression with an artificial neural network approach, namely variational autoencoders (VAEs) [23]. We leverage VAEs to incorporate multiple measurement instruments at the item level, to obtain a latent representation at each time point of longitudinally observed data, while linking the time points by a mixed‐effects regression model. The aim is to facilitate modeling of treatment switch effects while providing an approach that allows for statistical inference on this joint low‐dimensional latent representation. To enable statistical testing, we introduce a bootstrap knockoff variable approach which corrects for potential biases caused by fitting the mixed‐effects model within a VAE architecture. As the mappings to and from the latent space are learnable and non‐linear, the approach can also compensate for ceiling effects present in the datasets. Therefore, a continuous outcome linear regression in the latent space is sufficient. To reflect different aspects of the patient characteristics measured by different instruments and allow for a flexible embedding, we employ a latent space with several dimensions, and correspondingly consider mixed models with a multivariate outcome.
The problem of extracting similar information from different measurement instruments has been considered to some extent in the field of item response theory [24], which is typically based on factor analysis [25, 26]. This includes linear and non‐linear factor models [27], and more general latent variable models [28, 29, 30]. Yet, these often rely on strong distributional assumptions and require anchor items present across different instruments [30], which limits applicability in settings with several clinical measurement instruments. The concept of domain adaptation, developed in the machine learning community, formalizes the challenge of linking data from a source and target domain under the assumption of a shared latent space. Applications have been particularly successful for image data [31, 32, 33], such as in MR imaging [34, 35] or microscopy [36]. There, deep learning approaches are employed to learn domain‐invariant representations [37, 38, 39]. These approaches generally assume a rather large number of observations. Also, they typically do not consider time structure, and when they do, focus on time series with a large number of time points. Therefore, while the general concept of domain adaptation might be useful for longitudinal rare disease registries, there is no readily applicable approach for small numbers of patients with limited observations. In particular, a combination of domain adaptation with statistical models for longitudinal models, such as mixed‐effects regression is missing so far. While VAEs have been combined with mixed‐effects models in the context of imaging data [40, 41] and intensive care unit data [42], this does not cover changes between measurement instruments. In our own work, we have previously combined VAEs with ordinary differential equations (ODEs) for modeling disease trajectories in a lower‐dimensional representation [43, 44, 45], based on a neural differential equation framework that allows for simultaneously fitting neural networks and dynamic models [46, 47, 48]. While we have extended this to also allow for two different measurement instruments [49], the focus on ODEs as deterministic models did not allow for statistical inference so far, as needed for statistically testing the effect of treatment switches. This could be provided by combining mixed‐effects regression within VAEs that align different measurement instruments.
The manuscript is structured as follows: First, we introduce the approach in Section 2, after a brief overview of VAEs and multivariate linear mixed‐effects models. To enable statistical testing, we introduce a bootstrap knockoff variable approach which characterizes and corrects for potential biases caused by fitting the mixed‐effects model on VAE obtained latent variables. This is accompanied by an approach for quantifying effects in the latent space by mapping them back to the item representation. In Section 3, we assess the approach using data for SMA patients from the SMArtCARE registry [50]. This registry reports observations collected using five different motor performance measurement instruments, which need to be integrated to analyze the impact of treatment switches. We compare the performance of the proposed approach to a method based on a meta‐analysis over per‐measurement instrument models. Additionally, we validate the approach by evaluating results when recovering artificially added treatment switches and illustrate how to perform model selection for the latent mixed‐effects model. A discussion is provided in Section 4, including a perspective on the potential of combining latent representations with statistical modeling for jointly analyzing data in small data settings. Finally, details on the hyperparameters, dataset, and model choice are given in the Supporting Information Section 1 and Tables are provided in Section Tables 1, 2, 3.
TABLE 1.
Notation used throughout the manuscript.
| Symbol | Meaning | |
|---|---|---|
|
|
Patient index | |
|
|
Observation times | |
|
|
Measurement instrument index | |
|
|
Bootstrap samples | |
|
|
Data dimension | |
|
|
Number of observations | |
|
|
Latent dimension | |
|
|
Number of fixed and random effect coefficients | |
|
|
Difference in parameters between nested models | |
|
|
Single data/latent observation | |
|
|
Data trajectory | |
|
|
(Latent) response | |
|
|
Instrument specific data trajectory | |
|
|
Instrument specific latent trajectory | |
|
|
Latent mixed model estimation | |
|
|
Design matrices for fixed and random effects | |
|
|
Fixed effect coefficient matrix | |
|
|
Random effects | |
|
|
Residual error | |
|
|
Random effects covariance, residual covariance, precision | |
|
|
Identity matrix of dimension | |
|
|
Joint generative distribution of | |
|
|
Prior on latent variable | |
|
|
Conditional sampling distribution of given latent | |
|
|
Marginal distribution of | |
|
|
True posterior of given | |
|
|
Variational posterior of given | |
|
|
Encoder/decoder neural network | |
|
|
negative ELBO loss for VAE | |
|
|
(Restricted) ML log‐likelihood | |
|
|
Joint loss for multi‐measurement VAE + mixed model | |
|
|
Weighting of KL and alignment terms in |
TABLE 2.
Measurement instruments to assess a patient's motor function in SMArtCARE.
| Full name | Abbr. | Test description | Details | |
|---|---|---|---|---|
| Revised upper limb module [5] | RULM | Measures upper limb function and strength across tasks like reaching, lifting, and hand movements. |
Target Median age Items Max score Inputs Obs. |
Children 11.1 20 + 1 37 + 6 63 3625 |
| Hammersmith functional motor scale expanded [6] | HFMSE | Assesses gross motor skills, including activities like sitting, rolling, standing, and transitional movements. |
Target Median age Items Max score Inputs Obs. |
Children 9.6 33 + 1 66 + 6 104 3279 |
| Children's Hospital of Philadelphia infant test of neuromuscular disorders [7] | CHOP‐INTEND | Assesses neuromuscular function, concentrating on spontaneous and prompted movements. |
Target Median age Items Max score Inputs Obs. |
Infants 3.0 16 64 68 1833 |
| Hammersmith infant neurological examination, Section 2 [8] | HINE‐2 | Monitors early development, especially the attainment of motor function milestones (sitting, standing, walking). |
Target Median age Items Max score Inputs Obs. |
Infants 4.4 8 + 3 26 +3 40 4071 |
| ALS functional rating scale revised [10] | ALSFRS‐R | Covers speech, swallowing, and fine motor tasks; designed for ALS but also used for SMA. |
Target Median age Items Max score Inputs Obs. |
Adults 34.9 12 + 1 48 + 4 65 732 |
Note: Some tests contain additional items that are not used to determine the official test score. However, we still include these items to increase the amount of information.
TABLE 3.
Mean predicted item‐level differences for five motor function instruments (averaged over all patients and ten random seeds) between predictions with and without treatment switch one year after the switch took place.
| Instrument | Unmodified data | Artificial | Artificial | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Mean | SD | Percentage | Mean | SD | Mean | SD | |||
| HINE‐2 | 0.87 | 0.20 | 3.00 |
|
0.57 |
|
0.18 | ||
| RULM | 1.47 | 0.12 | 3.41 |
|
0.41 |
|
0.32 | ||
| CHOP | 0.91 | 0.31 | 1.42 |
|
0.46 |
|
0.34 | ||
| HFMSE | 1.56 | 0.38 | 2.16 |
|
0.59 |
|
0.68 | ||
| ALSFRS‐R | 0.52 | 0.30 | 1.00 |
|
0.60 |
|
0.34 | ||
Note: Results are based on a three‐dimensional latent mixed effects trajectory. Positive values indicate improved motor function compared to no switch. The SD column lists the standard deviation of patient‐level mean values across the ten random seeds. The percentage column converts absolute differences to a percentage of the instrument's maximum sum‐score to enable cross‐instrument comparability. The left block refers to the switch detected in the unaltered data; the center to an artificial switch of items per year; the right to an artificial doubling of the expected treatment switch.
2. Methods
In the following, we denote random variables by italic uppercase letters (e.g., ), their realizations by bold lowercase letters (e.g., ), their corresponding (conditional) probability distributions by uppercase with appropriate subscripts (e.g., ), and their associated probability density functions by lowercase (e.g., ). Matrices are denoted by bold uppercase letters (e.g., ). Table 1 lists the notation used throughout the manuscript.
2.1. VAEs
In this study, we use a set of variational autoencoder (VAE) [23] architectures to map data from the observation spaces of multiple measurement instruments into a shared low‐dimensional representation of patient characteristics and reconstruct them back to the original space. A variational autoencoder is a generative deep learning approach, that is, a model that allows for sampling, that learns latent representations of high‐dimensional data based on the principle of variational inference [51]. Therefore, a VAE provides tractable approximations to probability distributions without requiring restrictive distributional assumptions. In a first step, we introduce the classical VAE framework on a dataset containing i.i.d. observations from a single measurement instrument and time point, while we outline our approach to align multiple instruments and link them longitudinally via a mixed model in Section 2.3.
Consider i.i.d. observations . A VAE introduces a latent variable with in a generative model to capture the underlying characteristics of the data. Specifically, the generative process draws a sample from a prior distribution , typically a multivariate standard normal , and then generates an observation from the conditional sampling distribution . Accordingly, the density of the joint distribution factorizes as .
Within the VAE framework, the marginal likelihood of an observation, , is obtained by
| (1) |
Therefore, evaluation of the marginal likelihood involves integrating over the latent space, making the required computations analytically intractable. This intractability extends to the posterior , because Bayes' rule demands dividing by . As a result, any inference or model evaluation that relies on the exact posterior or marginal likelihood becomes unfeasible.
To circumvent this problem, VAEs employ a variational distribution , providing a tractable approximation to the true posterior. This variational distribution is chosen as a multivariate normal distribution with independent components, whose parameters are the function output of an encoder neural network parameterized by learnable neural network parameters :
| (2) |
To enable gradient‐based optimization, latent values are obtained by sampling through the reparametrization trick, with decomposition
| (3) |
such that the gradient can be obtained from the non‐random part, while is auxiliary noise drawn from a multivariate standard normal distribution , and denotes the Hadamard product between two vectors. A decoder neural network , parameterized by , maps the latent values back to the data space by modeling the parameters of the conditional sampling distribution . The parameters of the encoder and decoder neural networks are simultaneously optimized by estimating and minimizing the evidence lower bound (ELBO) function
| (4) |
where denotes the Kullback–Leibler (KL) divergence between the variational distribution and the prior and the parameter balances the KL‐divergence with the reconstruction error term [52]. Optimization of the ELBO function is performed over mini‐batches, that is, randomly selected groups of observations, using stochastic gradient descent methods.
After estimating the encoder and decoder parameters, the VAE can be used to obtain a latent representation of each observation and to reconstruct the corresponding data‐level quantity. Specifically, for a data vector , the encoder network maps it to the parameters of the posterior distribution , which in the common Gaussian case yields as output . After training a latent variable is obtained using the reparametrization trick (3), or alternatively via the posterior mean as a deterministic embedding of . The decoder network then maps a latent representation back to the data space by specifying the parameters of the conditional distribution . A reconstruction of the original observation is obtained from the decoder output, either by drawing from the defined distribution or via the conditional mean.
For patients that have longitudinal measurements, we denote their data as . The individual observations are collected at visit times .
We optimize the network weights simultaneously using all visit‐level observations for each patient . As the longitudinal dependence across time points is modeled through a latent mixed‐effects regression, as described in the following section, and the VAE encoder only needs to be used for dimension reduction, which is the same task for each time point, simultaneous optimization of the VAE for all time points does not further take into account temporal dependency structure. The VAE encoder then yields for each patient , an ‐dimensional representation , which serves as the multivariate outcome in the mixed‐effects model.
2.2. Multivariate Longitudinal Mixed‐Effects Regression
To incorporate time structure into the latent representation, we utilize multivariate mixed‐effects regression models [53, 54]. They represent a patient trajectory as a realization of a random variable , which is a linear combination of fixed effects, random effects, and residual errors:
| (5) |
Fixed effects with design matrix represent the influence of patient covariates with consistent effects across all patients. Such covariates could include age, sex, or administered medications. Interaction terms with age can model a change in influence over time.
Random effects with design matrix allow for individual‐specific deviations from the fixed group effects. Common choices include a random intercept and slope to model patient‐specific trajectories. In this study, we assume that the random effects follow a normal distribution with shared covariance matrix across patients, where denotes the vectorization function, which stacks the columns of a matrix into a vector. Residual errors account for variability not explained by fixed and random effects. Residuals are assumed to be independent across time given the random effects and across patients, . Furthermore, we assume that they follow a normal distribution , where denotes the Kronecker product between two matrices.
The marginal distribution of the response variable can be described as
| (6) |
Given observed patient trajectories of the random variable , the variance parameters and are estimated using maximum likelihood (ML) or restricted maximum likelihood (REML) estimation [55], where the log‐likelihoods can be calculated as
| (7a) |
| (7b) |
Optimization algorithms like Newton–Raphson or quasi‐Newton methods can be used to maximize the likelihood functions [56]. With an estimate of the covariance components and observed response , the realized best linear unbiased estimator (BLUE) of the fixed effects, is given by
| (8) |
The best linear unbiased predictor (BLUP) of the random effects can be obtained through
| (9) |
2.3. Joining Multiple Measurement Instruments in a Latent Representation
For incorporating data from multiple measurement instruments , where each instrument comprises test items, we use one encoder and decoder network per instrument, embedding data into a joint latent representation. Here observations are linked by multivariate mixed‐effects regression Equation (5), as schematically shown in Figure 1. We assume a patient is assessed using a subset of different measurement instruments at each time point. Denote by the observations in which measurement instrument was utilized. At the data level we obtain one trajectory per patient and observed instrument,
| (10) |
where denotes the overall number of observations for patient with measurement instrument . Measurement instrument specific encoder networks are used to obtain the parameters of the variational distributions from which we draw ‐dimensional realizations
| (11) |
FIGURE 1.

Schematic illustration of the proposed approach for multiple measurement instruments: (1) The items of each measurement instrument are encoded by a dedicated encoder network and corresponding latent values are drawn. (2) The latent values are averaged across instruments at each time step, to obtain a joint latent trajectory. (3) The averaged latent values serve as outcome variable for a multivariate mixed‐effects regression, which provides BLUE and BLUP estimators. (4) Predictions from the mixed‐effects model serve as input to a dedicated decoder network for each measurement instrument, for reconstruction at the original item level. (5) Treatment switch effects can be quantified per item. (6) A likelihood‐ratio test provides statistical inference.
Denote with the index set of all measurement instruments used for patient at observation time . To obtain a unified latent trajectory for a patient, we average latent variables over all available values at the respective time points, yielding
| (12) |
We then model the longitudinal structure in the latent space using a multivariate mixed‐effects model of dimension . Here, the mixed‐effects model provides the longitudinal link between visits while the VAEs provide the instrument‐specific measurement mappings to an aligned representation.
In particular, the latent mixed‐effects model can incorporate effects of treatment switches. Let denote the time of a switch from one treatment to another. We collect the time differences relative to the switch
| (13) |
To capture group‐level trends following a treatment switch, the time since switch is included as a fixed effect. To model individual deviations from group trends, there are random effects included for the time since and the time up to a treatment switch . When multiple treatments are involved their influence can be separated into treatment specific covariates. Interaction terms with other covariates (e.g., age) can also be included in the mixed‐regression model. All decoder networks receive as input the prediction of the mixed model
| (14) |
where is the BLUE and is the BLUP (see Equations (8) and (9)), given the latent outcome .
To estimate the parameters of the encoders and decoders as well as the latent mixed‐effects model, we use an iterative approach: To obtain the encoder and decoder parameters, for , we freeze the mixed‐effect model parameters and minimize as a combination of per‐measurement instrument ELBO loss functions Equation (4) and two alignment terms over mini‐batches :
| (15) |
The first alignment term, weighted by encourages agreement with the training criterion (ML/REML) of the frozen mixed model, while the second alignment term weighted by , encourages agreement between the encoder output and the latent mixed model prediction.
Because the joint latent, serving as response to the mixed model, is the average of measurement specific latent variables , the encoders are implicitly driven to place their outputs on a common scale. Instrument‐specific shifts or a rescaling inflates the disagreement penalty , as well as reduce the mixed‐effects likelihood, and as mixed model predictions are passed to the decoder ultimately the reconstruction loss and are therefore corrected during training.
After fitting the encoder and decoder parameters for given mixed‐effect model parameters for a given amount of iterations with a gradient descent method like Adam [57], a latent representation for each trajectory is drawn. Afterwards, the mixed‐effects model is fitted using these latent representations as response, with ML or REML estimation (Equations (7a) and (7b)). Such alternating updates of the VAE and mixed‐effects model parameters are performed until the loss function no longer steeply decreases and decreases saturate. We provide a pseudo‐code for this training procedure in Algorithm 1.
ALGORITHM 1. Joint training procedure for the latent mixed model and VAEs.

With the final parameter estimates, the impact of treatment switches can be quantified on the item level by decoding from the latent trajectory with and without treatment switch. These trajectories can be obtained by calculating the BLUE and BLUP, modifying the design matrices by setting the covariates and interaction terms relating to time elapsed after treatment switches to zero and extending the covariates relating to time before treatment switches. The latent prediction of both models can be mapped back to the data level using the decoder neural networks and analyzed at the item level for differences.
2.4. Model Selection
Statistical testing based on the mixed‐effects model can be useful for further assessing the effect of treatment switches, as well as for potential model selection, for example, to decide which covariates to include for adjustment. One would normally assess the significance of a covariate by a likelihood‐ratio test [58] with test‐statistic . Here, denotes the likelihood of a model containing the covariate of interest and corresponds to the likelihood of a nested model without it. Under Wilks' theorem and standard regularity is asymptotically for a fixed effects block, with being the number of tested covariates and the dimension of the latent space.
The classical statistical model selection approach cannot be applied here as the final latent responses depend on encoder parameters that were jointly optimized with the mixed‐effects coefficients. The same data is therefore used first to pick a representation and then to test a hypothesis, which can induce a post‐selection bias [59, 60]. In this setting the reference distribution can be invalid. To correct for the intractable selection event (“the VAEs picked a particular latent representation”), we combine knockoff negative‐control covariates [61, 62] with bootstrap [59, 63]. The resulting procedure allows for inference for the joint VAE‐mixed‐effects estimator.
Let denote a ‐dimensional artificial knockoff covariate vector for individual , where is the number of generated negative‐control covariates. We assume the corresponding random variable is independent of with . For a subject with visits, these covariates are concatenated over visits as , where is either identical across visits for patient‐level knockoffs or independently redrawn for visit‐level knockoffs.
We augment the fixed effect design matrix by and test
| (16) |
where denotes the coefficient block of . Because by construction, is true with probability 1 and acts as a negative‐control predictor in the sense of the work by [61], yielding a reference statistic that captures what one should observe under the null hypothesis.
To empirically recreate the intractable selection event, we construct an empirical null distribution for the likelihood ratio (LR) test via bootstrap. For bootstrap samples , we randomly reinitialize the VAE parameters and regenerate knockoff variables . Afterwards we re‐optimize for to obtain latent responses , with which we calculate the LR statistic from the fitted full and reduced models. The empirical cumulative distribution function
| (17) |
converges in probability to as , while resampling the knockoff together with the data (via different network weights) preserves the exchangeability property that underlies false discovery rate control in the original knockoff filter [62]. Consequently, the value
| (18) |
is an unbiased estimate of .
3. Results
We use the proposed approach on data from the SMArtCARE registry [50], which tracks the disease course of patients with SMA. SMA is a genetic disorder characterized by progressively declining motor function with symptom onset at birth or within early childhood. The severity of symptom progression is influenced by patient characteristics like genetic markers (e.g., count of the SMN2 gene) or age at symptom onset and varies significantly across individuals [64]. Recently, there were advances in treating SMA [65], leading patients to switch to emerging treatments when they became available to them. Treatment assignment within the SMArtCARE registry is not randomized, yet mainly depends on the availability of a treatment in a medical center. To monitor the impact of treatment switches on disease development, longitudinal motor function assessments are conducted during semi‐regular visits. Here, movement ability is assessed using five specialized measurement instruments, the CHOP‐INTEND [7], HINE‐2 [8], HFMSE [6], RULM [5], and ALSFRS‐R [10] motor function tests. (See Table 2 for details.) In practice, infants and weak non‐sitters are evaluated with CHOP‐INTEND and motor milestone attainment in early childhood is captured with HINE‐2. When patients age, assessments transition to HFMSE to assess gross motor ability and RULM for upper‐limb performance, with ALSFRS‐R complementing motor scales in adult cohorts. Instrument changes often occur to use stage‐appropriate instruments and to avoid flooring and ceiling effects.
Our approach integrates these five different motor function measurement instruments for a cohort of 522 patients, with a median of 17 individual observations per patient and mean of 2.1 out of 5 measurement instruments used per visit. The latent mixed‐effects regression model incorporates as covariates the time elapsed since treatment switch, age, a genetic marker, specifically the SMN2 count, age at symptom onset, an indicator whether patients are currently asymptomatic for example because they were diagnosed via newborn screening, the current ventilation status, the current scoliosis status, sex of the patient and if a family member is affected by SMA. We also include interactions with age as fixed effects. Additionally, three random‐effect terms were used to allow for individual deviations from group‐level trends as random effects: a random intercept, and random slopes for the trajectory before and after the treatment switch.
After fitting our approach, we observed consistent alignment of similar motor function abilities across the five measurement instruments. We present these results in Supporting Information Figure S1.
3.1. Quantifying the Impact of Treatment Switches
A key question in the context of SMA treatment is the impact of treatment switches on the individual and the population level. To assess this effect in the light of different measurement approaches, we use the proposed approach to compare two sets of predicted disease trajectories (Equation (14)): one incorporating the treatment switch and a scenario in which the switch did not occur. We decoded the mixed‐effects model predictions from both scenarios for one year after the treatment change and compared their reconstructed motor function test item scores. The difference in total sum scores then served as our estimate of the treatment switch effect. This estimate should be interpreted as the net effect after treatment switch compared to the expected continuation of the previous treatment trajectory, meaning that the estimate does not necessarily separate the effect of the later treatment from potential carryover effects.
As seen in Table 3, there is a positive predicted improvement between and of the maximal score across the measurement instruments. Results are not deterministic as the encoder and decoder model distributions introduce additional stochasticity in the sampling and fitting process. However, assessed over ten random initializations there was no occurrence in which the aggregated treatment effect switched from positive to negative in one of the assessed instruments.
To assess sensitivity to treatment‐related changes of known direction and approximate magnitude, we performed two semi‐synthetic perturbation analyses based on the observed SMA data. First, we simulated an additional artificial treatment effect by adding a sum‐score improvement of points per year after treatment switch, distributed over randomly selected test items within each measurement instrument (see Appendix ? for details). This perturbation does not fully preserve ceiling effects, within‐observation item structure, or cross‐instrument alignment. We therefore expected the approach to detect a larger treatment‐switch effect compared with the original data, but to underestimate its magnitude. Consistent with this expectation, the estimated treatment‐switch effect increased by 0.78–1.97 items across measurement instruments, indicating correct directionality without overestimation of the imposed effect size. Second, we performed a complementary perturbation in which the covariates encoding time since treatment switch were multiplied by 0.5. Since, the same post‐switch trajectory is then represented on a time scale reduced by one half, the corresponding treatment‐switch coefficient is expected to increase approximately two‐fold. The model again recovered an increased treatment‐switch effect in the expected direction. Averaged across instruments, the estimated increase was approximately 1.6‐fold rather than the expected factor of two, indicating that the method recovered the imposed scaling but remained conservative in magnitude.
We also found that our approach reduces ceiling effects compared with a data‐level mixed model without additional parameters to account for ceiling or floor effects (see Figure 2). Because the linear latent mixed‐model predictions are transformed by decoder neural networks which models the data distribution with a ordinal distribution, samples fall naturally within a plausible score range. A similar effect within a data‐level approach would require additional parameters to model flooring and ceiling effects.
FIGURE 2.

Comparison of total HINE‐2 sum scores for five patient trajectories. Observed data trajectories are displayed in black, the respective mixed model prediction with treatment switch in red, and mixed model predictions for a hypothetical trajectory without treatment switch in blue. The reconstructed trajectories of the latent mixed model are displayed in the upper subplot and for a standard data‐level mixed model in the lower subplot.
3.2. Latent Model Selection
We evaluated the statistical significance of effects in the mixed‐effects model, such as of treatment switches, with LR tests with critical values obtained from the proposed knockoff variable bootstrap procedure (Equation (17)). The empirical distribution of the test statistic was constructed with bootstrap samples.
First, we compared the empirical null distributions with the theoretical ‐distributions that ignore the influence of the VAEs (see Figure 3). For a one‐dimensional latent representation, the empirical knockoff distribution follows the theoretical distribution closely. However, for the three‐dimensional representation that we want to use, there is a considerable difference, where the theoretical distribution would lead to an anti‐conservative test. This is seen for fixed effects as well as for random effects, where deviations are even larger.
FIGURE 3.

Empirical cumulative distribution functions of the null distributions of the likelihood ratio test statistic from artificially added knockoff variables for fixed (left column) and random effects (right column) in the mixed‐effects regression in latent representations of dimension (top row) and (bottom row). The red line represents the theoretical chi‐squared distribution that does not take into account the interdependent VAE and mixed model training procedure.
Subsequently, we conducted LR tests for the 11 fixed effects covariates in the mixed‐effects model. We indicate with the degrees of freedom the theoretical ‐test statistic would follow, consisting of the amount of differences in included fixed effect () multiplied with the latent dimension (). The effects for ventilation status (), and for treatment switches (), and disease onset () and surgery for scoliosis () showed high LR‐values, above critical values from the knockoff null distribution. Other covariates, such as sex () and family history (), did not display significant effects.
As a further check, we generated data using the generative nature of the VAEs based on the fitted latent trajectories, but without the treatment switch effect, and refitted the mixed‐effects model to this newly generated dataset. The LR for including the treatment switch parameters dropped to 18.2, which no longer exceeded the empirical significance threshold (23.6 for , meaning latent dimensions with differences in covariates, consisting of switches to two SMA medications and their interactions with age).
3.3. Comparison With Naive Meta‐Analysis
As a comparison to the proposed approach, we fit separate linear mixed‐effects models for each motor instrument at the original data level, using the same fixed and random effects as in the latent model and taking instrument‐specific sum scores as outcomes. Additionally, we added an intercept to the fixed effects as test sum scores are not centered around zero compared to latent variables in our latent mixed model. Because many instruments are not observed with sufficient pre‐ and post‐switch visits for each patient, the effective sample is smaller than for the latent approach. Whereas the latent model could use a sample size of 522 patients, the data‐level models were restricted to 308 patients for the RULM measurement instrument, 318 for HINE‐2, 239 for HFMSE, and to 158 for CHOP‐INTEND. For the ALSFRS‐R test, too few patients (61) were available to fit a mixed model using the same set of covariates.
To pool treatment switch effects across instruments while accounting for overlapping patients, we performed a correlated‐effects fixed‐effect meta‐analysis via generalized least squares, using a patient‐level bootstrap to estimate the full cross‐instrument covariance and a bootstrap calibration for inference. For the combined treatment effects, the global likelihood‐ratio statistic was with a bootstrap‐calibrated p value of (no exceedance out of 1000 null replicates). Therefore, the meta‐analysis provides strong evidence for a non‐zero treatment switch effect, consistent in magnitude with the latent mixed‐effects regression model.
When randomly sampled to a third of the original sample size, the latent approach could still reliably detect the treatment switch (), while the sample size was now often too small to get a stable fit for the data‐level approach, particularly for the CHOP‐INTEND measurement instrument.
4. Discussion
In clinical studies of rare diseases, it is essential to account for changing measurement strategies, for example, to assess treatment effects. As patient trajectories get longer and more observations become available, it becomes more likely that different measurement instruments are employed to monitor outcomes. This could be due to a changing state of the art or that measurement instruments are conditioned on patient characteristics. To exploit all historical data collected under different settings, novel methods are necessary. Here, we proposed an approach that combines VAEs with a latent longitudinal mixed‐effects regression model to capture disease progression and treatment switches in SMA data collected from multiple measurement instruments. By using encoder neural networks to map items from these instruments onto a unified latent representation, we handle systematic changes in measurement instruments during the observation period. To enable statistical inference, we introduced a knockoff variable bootstrap testing approach which allows us to correct for potential biases arising during model fitting.
This provides unique capabilities, which we demonstrated when assessing effects of treatment switches in patients with SMA. By mapping to a latent embedding via artificial neural networks, we utilize the item‐level details of observations. The learnable network mappings also handles ceiling effects and aligns measurement instruments of different scales. This allowed us to integrate observations of different measurement instruments, for example, tailored to different age ranges, to leverage a larger effective sample size compared to traditional methods that analyze each instrument separately. In other settings, power gains are particularly relevant for evaluating treatments in rare disease registries, where data is scarce. Potential bias in subsequent statistical inference, incurred by the flexibility of neural networks, could be mitigated by the proposed knockoff variable approach. At the same time, this approach allows for the detection of treatment switch effects in the SMA application, which might not have been identified otherwise.
Still there are several aspects that need to be carefully considered when utilizing the proposed approach. Although the proposed framework can reconstruct treatment‐related changes across different motor‐function instruments, the estimated treatment‐switch effects should be interpreted with caution. Unlike in classical parametric likelihood‐based models, the VAE component of our framework is primarily trained to learn a flexible latent representation with good reconstruction and generalization performance, rather than to recover uniquely identifiable data‐generating parameters. Consequently, the treatment‐switch coefficients should not be interpreted as exact quantitative parameter estimates in the classical sense, but as model‐based summaries of reconstructed treatment‐related patterns. The estimated treatment‐switch effects in our application should therefore be regarded as corresponding to approximate reconstructed patterns in the data, rather than direct estimates from a prespecified parametric model. The semi‐synthetic perturbation analyses suggest that externally imposed treatment‐related changes are recovered in the expected direction and with broadly consistent magnitude, although with some attenuation. Naturally, further validation is therefore needed before such estimates can be interpreted as quantitative treatment‐effect measures.
A related practical consideration is the choice of structural hyperparameters, in particular the latent dimension. While the projection to a low‐dimensional space reduces the number of required parameters, the latent dimensionality is still restricted to avoid over‐parametrization of the latent model, which can limit the modeled complexity of the underlying dynamics. On the other hand, choosing the latent dimension too large can increase the effects of overfitting, that is, a larger deviation of the skewed test statistic from the theoretical distribution. Thus, the number of latent dimensions needs to be carefully chosen. However, our knockoff‐bootstrap calibration accounts for the dependence between iteratively learning the latent representation and fitting the mixed‐effects regression, conditional on such structural hyperparameters being fixed a priori. Fixing such hyperparameters in the beginning, aligns with typical model selection strategies in biostatistics, for example, when fixing the number and position of knots in spline‐based regression before performing model selection with respect to non‐linear effects. Similar to such settings, model selection results have to be interpreted carefully as being conditional on initial choices. Generally, we recommend fixing structural hyperparameters based on clinical domain knowledge. When such knowledge is not available, there might be some data‐driven approaches that could still be useful, such as intrinsic‐dimension estimation for estimating the required latent dimension [66], or judging the reconstruction ability of a vanilla variational autoencoder fitted externally without the latent mixed‐effects model. In this case, one can first assess whether the chosen set of hyperparameters is able to capture the data patterns before linking observations by modeling disease progression with the proposed latent mixed‐effects model.
As datasets grow in complexity but not necessarily in size, which is typical for many rare diseases, there will be an increasing need for approaches that integrate deep learning methods and classical statistical theory. Such hybrid approaches can facilitate modeling on small but heterogeneous, high‐dimensional and multi‐modal datasets and provide answers for research questions that were previously challenging to address given the limited and complex data. As the explicit incorporation of statistical inference within deep learning frameworks is still uncommon, we therefore see this as a promising avenue of further research.
5. Software Implementation
We provide a software implementation of the proposed workflow in a GitHub repository. The repository contains a toy example illustrating the main components of the method, including training the mixed‐effects variational autoencoder, visualizing the learned latent representation, and testing fixed effects using an empirically calibrated null distribution.
Funding
This work was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) Project‐ID 499552394 SFB 1597 Small Data.
Conflicts of Interest
The authors declare no conflicts of interest.
Supporting information
Figure S1: Latent alignment across five measurement instruments. In a one‐dimensional latent space, we decoded ‐values of a one‐dimensional model using each of the five instruments and plotted the expected sum scores of the resulting decoder distributions (see Figure 1). For each instrument, we marked attainment of motor‐function milestones when more than 50% of decoded samples achieved the respective milestone. Because items do not correspond one‐to‐one across instruments, we manually matched similar motor function items while disregarding slight deviations in their meaning. For instance, “rolling” in the ALSFRS‐R test reflects the ability to turn and roll in bed, whereas in HINE‐2 it encompasses rolling from prone to supine and vice versa over one side, and in the HFMSE test it encompasses being able to roll from supine to prone and vice versa over both sides. Overall, we observe a consistent alignment of motor‐function milestones across the different measurement scales.
Table S1: Reconstruction error statistics and estimated treatment switch effects for choices of the latent dimension . For smaller values of , reconstruction quality, that is, the difference in test sum scores, decreases noticeably, while the estimated treatment effect remains unchanged in direction but becomes slightly smaller in magnitude.
Acknowledgments
Open Access funding enabled and organized by Projekt DEAL.
Data Availability Statement
Real data cannot be shared due to legal and ethical restrictions.
References
- 1. Mitani A. A. and Haneuse S., “Small Data Challenges of Studying Rare Diseases,” JAMA Network Open 3 (2020): e201965, 10.1001/jamanetworkopen.2020.1965. [DOI] [PubMed] [Google Scholar]
- 2. Whicher D., Philbin S., and Aronson N., “An Overview of the Impact of Rare Disease Characteristics on Research Methodology,” Orphanet Journal of Rare Diseases 13 (2018): 14, 10.1186/s13023-017-0755-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3. Gaasterland C. M. W., van der Weide M. C. J., du Prie–Olthof M. J., et al., “The Patient's View on Rare Disease Trial Design—a Qualitative Study,” Orphanet Journal of Rare Diseases 14 (2019): 31, 10.1186/s13023-019-1002-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Mazzone E. S., Mayhew A., Montes J., et al., “Revised Upper Limb Module for Spinal Muscular Atrophy: Development of a New Module,” Muscle & Nerve 55 (2017): 869–874, 10.1002/mus.25430. [DOI] [PubMed] [Google Scholar]
- 5. O'Hagen J. M., Glanzman A. M., McDermott M. P., et al., “An Expanded Version of the Hammersmith Functional Motor Scale for SMA II and III Patients,” Neuromuscular Disorders 17 (2007): 693–697, 10.1016/j.nmd.2007.05.009. [DOI] [PubMed] [Google Scholar]
- 6. Glanzman A. M., Mazzone E., Main M., et al., “The Children's Hospital of Philadelphia Infant Test of Neuromuscular Disorders (CHOP INTEND): Test Development and Reliability,” Neuromuscular Disorders 20 (2010): 155–161, 10.1016/j.nmd.2009.11.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Haataja L., Mercuri E., Regev R., et al., “Optimality Score for the Neurologic Examination of the Infant at 12 and 18 months of Age,” Journal of Pediatrics 135 (1999): 153–161, 10.1016/S0022-3476(99)70016-8. [DOI] [PubMed] [Google Scholar]
- 8. Cedarbaum J. M., Stambler N., Malta E., et al., “The ALSFRS‐R: A Revised ALS Functional Rating Scale That Incorporates Assessments of Respiratory Function,” Journal of the Neurological Sciences 169 (1999): 13–21, 10.1016/S0022-510X(99)00210-5. [DOI] [PubMed] [Google Scholar]
- 9. Muni‐Lofra R., Coratti G., Duong T., et al., “Assessing Disease Progression in Spinal Muscular Atrophy, Current Gaps, and Opportunities: A Narrative Review,” Neuromuscular Disorders 49 (2025): 105341, 10.1016/j.nmd.2025.105341. [DOI] [PubMed] [Google Scholar]
- 10. Laird N. M. and Ware J. H., “Random‐Effects Models for Longitudinal Data,” Biometrics 38 (1982): 963–974, 10.2307/2529876. [DOI] [PubMed] [Google Scholar]
- 11. Cavaloiu B., Simina I. E., Vilciu C., Trăilă I. A., and Puiu M., “Nusinersen Improves Motor Function in Type 2 and 3 Spinal Muscular Atrophy Patients Across Time,” Biomedicine 12 (2024): 1782, 10.3390/biomedicines12081782. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Jacqmin P., Gieschke R., Delor I., et al., “Mathematical Disease Progression Modeling in Type 2/3 Spinal Muscular Atrophy,” Muscle & Nerve 58 (2018): 528–535, 10.1002/mus.26178. [DOI] [PubMed] [Google Scholar]
- 13. Duong T., Wolford C., McDermott M., et al., “Nusinersen Treatment in Adults With Spinal Muscular Atrophy,” Neurology: Clinical Practice 11 (2021): e317–e327, 10.1212/CPJ.0000000000001033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Oskoui M., Day J. W., Deconinck N., et al., “Two‐Year Efficacy and Safety of Risdiplam in Patients With Type 2 or Non‐Ambulant Type 3 Spinal Muscular Atrophy (SMA),” Journal of Neurology 270 (2023): 2531–2546, 10.1007/s00415-023-11560-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Hanff A. M., McCrum C., Rauschenberger A., et al., “Sex‐Specific Progression of Parkinson's Disease: A Longitudinal Mixed‐Models Analysis,” Journal of Parkinson's Disease 15 (2025): 805–818, 10.1177/1877718X251339201. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Miller S. A., Mayol M., Moore E. S., Heron A., Nicholos V., and Ragano B., “Rate of Progression in Activity and Participation Outcomes in Exercisers With Parkinson's Disease: A Five‐Year Prospective Longitudinal Study,” Parkinson's Disease 2019 (2019): 5679187, 10.1155/2019/5679187. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Bralić A., Pavelin S., Pleić N., et al., “Correspondence of MRI and nTMS With EDSS in Multiple Sclerosis: Longitudinal Follow‐Up Study,” Annals of Clinical Translational Neurology 12 (2025): 1240–1255, 10.1002/acn3.70041. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Lin T. I. and Lee J. C., “A Robust Approach to t Linear Mixed Models Applied to Multiple Sclerosis Data,” Statistics in Medicine 25 (2006): 1397–1412, 10.1002/sim.2384. [DOI] [PubMed] [Google Scholar]
- 19. McNeish D. and Wolf M. G., “Thinking Twice About Sum Scores,” Behavior Research Methods 52 (2020): 2287–2305, 10.3758/s13428-020-01398-0. [DOI] [PubMed] [Google Scholar]
- 20. Pascual‐Morena C., Martínez‐Vizcaíno V., Cavero‐Redondo I., et al., “Efficacy of Risdiplam in Spinal Muscular Atrophy: A Systematic Review and Meta‐Analysis,” Pharmacotherapy 44 (2024): 97–105, 10.1002/phar.2866. [DOI] [PubMed] [Google Scholar]
- 21. Hagenacker T., Maggi L., Coratti G., et al., “Effectiveness of Nusinersen in Adolescents and Adults With Spinal Muscular Atrophy: Systematic Review and Meta‐Analysis,” Neurology and Therapy 13 (2024): 1483–1504, 10.1007/s40120-024-00653-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Kingma D. P. and Welling M., “Auto‐Encoding Variational Bayes,” 2013 arXiv Preprint, 10.48550/arXiv.1312.6114. [DOI]
- 23. Kolen M. J. and Brennan R. L., Test Equating, Scaling, and Linking: Methods and Practices (Springer, 2014), 10.1007/978-1-4939-0317-7. [DOI] [Google Scholar]
- 24. Wirth R. J. and Edwards M. C., “Item Factor Analysis: Current Approaches and Future Directions,” Psychological Methods 12 (2007): 58–79, 10.1037/1082-989X.12.1.58. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Skrondal A. and Rabe‐Hesketh S., Generalized Latent Variable Modeling: Multilevel, Longitudinal, and Structural Equation Models (Chapman and Hall/CRC, 2004), 10.1201/9780203489437. [DOI] [Google Scholar]
- 26. Bauer D. J. and Hussong A. M., “Psychometric Approaches for Developing Commensurate Measures Across Independent Studies: Traditional and New Models,” Psychological Methods 14 (2009): 101–125, 10.1037/a0015583. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Kolen M. J., “Population Invariance in Equating and Linking: Concept and History,” Journal of Educational Measurement 41 (2004): 3–14, 10.1111/j.1745-3984.2004.tb01155.x. [DOI] [Google Scholar]
- 28. Van Buuren S., Eyres S., Tennant A., and Hopman‐Rock M., “Improving Comparability of Existing Data by Response Conversion,” Journal of Official Statistics 21 (2005): 53–72. [Google Scholar]
- 29. van den Heuvel E. R., Griffith L. E., Sohel N., Fortier I., Muniz‐Terrera G., and Raina P., “Latent Variable Models for Harmonization of Test Scores: A Case Study on Memory,” Biometrical Journal 62 (2020): 34–52, 10.1002/bimj.201800146. [DOI] [PubMed] [Google Scholar]
- 30. Csurka G., “A Comprehensive Survey on Domain Adaptation for Visual Applications,” in Domain Adaptation in Computer Vision Applications, ed. Csurka G. (Springer, 2017), 1–35, 10.1007/978-3-319-58347-1_1. [DOI] [Google Scholar]
- 31. Ganin Y. and Lempitsky V., “Unsupervised Domain Adaptation by Backpropagation,” in Proceedings of the 32nd International Conference on Machine Learning, vol. 37 (PMLR, 2015), 1180–1189. [Google Scholar]
- 32. Guan H. and Liu M., “Domain Adaptation for Medical Image Analysis: A Survey,” IEEE Transactions on Biomedical Engineering 69 (2022): 1173–1185, 10.1109/TBME.2021.3117407. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Götz M., Weber C., Binczyk F., et al., “DALSA: Domain Adaptation for Supervised Learning From Sparsely Annotated MR Images,” IEEE Transactions on Medical Imaging 35 (2016): 184–196, 10.1109/TMI.2015.2463078. [DOI] [PubMed] [Google Scholar]
- 34. Ghafoorian M., Mehrtash A., Kapur T., et al., “Transfer Learning for Domain Adaptation in MRI: Application in Brain Lesion Segmentation,” in Medical Image Computing and Computer Assisted Intervention—MICCAI 2017, LNCS 10435 (Springer International Publishing, 2017), 516–524, 10.1007/978-3-319-66179-7_59. [DOI] [Google Scholar]
- 35. Becker C., Christoudias C. M., and Fua P., “Domain Adaptation for Microscopy Imaging,” IEEE Transactions on Medical Imaging 34 (2015): 1125–1139, 10.1109/TMI.2014.2376872. [DOI] [PubMed] [Google Scholar]
- 36. Chen M., Xu Z., Weinberger K. Q., and Sha F., “Marginalized Denoising Autoencoders for Domain Adaptation,” in International Conference on Machine Learning 2012 (Omnipress, 2012), 767–774. [Google Scholar]
- 37. Long M., Cao Y., Wang J., and Jordan M. I., “Learning Transferable Features With Deep Adaptation Networks,” in Proceedings of the 32nd International Conference on Machine Learning, vol. 37 (PMLR, 2015), 1180–1189, 10.1145/2783258.2788606. [DOI] [Google Scholar]
- 38. Tzeng E., Hoffman J., Saenko K., and Darrell T., “Adversarial Discriminative Domain Adaptation,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (IEEE, 2017), 2962–2971, 10.1109/CVPR.2017.316. [DOI] [Google Scholar]
- 39. Couronné R., Vernhet P., and Durrleman S., “Longitudinal Self‐Supervision to Disentangle Inter‐Patient Variability From Disease Progression,” in Medical Image Computing and Computer Assisted Intervention—MICCAI 2021 Lecture Notes in Computer Science, vol. 12902 (Springer International Publishing, 2021), 231–241, 10.1007/978-3-030-87196-3_22. [DOI] [Google Scholar]
- 40. Sauty B. and Durrleman S., “Progression Models for Imaging Data With Longitudinal Variational Auto Encoders,” in Medical Image Computing and Computer Assisted Intervention—MICCAI 2022 (Springer Nature Switzerland AG, 2022), 3–13, 10.1007/978-3-031-16431-6_1. [DOI] [Google Scholar]
- 41. Ong P., Haußmann M., Lönnroth O., and Lähdesmäki H., “Latent Mixed‐Effect Models for High‐Dimensional Longitudinal Data,” 2024 arXiv Preprint, 10.48550/arXiv.2409.11008. [DOI]
- 42. Köber G., Pooseh S., Engen H., et al., “Individualizing Deep Dynamic Models for Psychological Resilience Data,” Scientific Reports 12 (2022): 8061, 10.1038/s41598-022-11650-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43. Hackenberg M., Pechmann A., Kreutz C., Kirschner J., and Binder H., “A Statistical Approach to Latent Dynamic Modeling With Differential Equations,”. The American Statistician (2026), 10.1080/00031305.2025.2539999. [DOI] [Google Scholar]
- 44. Hackenberg M., Harms P., Pfaffenlehner M., et al., “Deep Dynamic Modeling With Just Two Time Points: Can We Still Allow for Individual Trajectories?,” Biometrical Journal 64 (2022): 1426–1445, 10.1002/bimj.202000366. [DOI] [PubMed] [Google Scholar]
- 45. Rubanova Y., Chen R. T. Q., and Duvenaud D. K., “Latent ODEs for Irregularly‐Sampled Time Series,” 2019 arXiv Preprint, 10.48550/arXiv.1907.03907. [DOI]
- 46. Fortuin V., Baranchuk D., Rätsch G., and Mandt S., “GP‐VAE: Deep Probabilistic Time Series Imputation,” in International Conference on Artificial Intelligence and Statistics, vol. 108 (PMLR, 2020), 1651–1661. [Google Scholar]
- 47. Alaa A., Mayer E., and Barahona M., “ICE‐NODE: Integration of Clinical Embeddings With Neural Ordinary Differential Equations,” in Machine Learning for Healthcare Conference 2022 (PMLR, 2022), 537–564. [Google Scholar]
- 48. Hackenberg M., Pfaffenlehner M., Behrens M., Pechmann A., Kirschner J., and Binder H., “Investigating a Domain Adaptation Approach for Integrating Different Measurement Instruments in a Longitudinal Clinical Registry,” 2023 arXiv Preprint, 10.48550/arXiv.2312.00616. [DOI] [PMC free article] [PubMed]
- 49. Pechmann A., König K., Bernert G., et al., “SMArtCARE—a Platform to Collect Real‐Life Outcome Data of Patients With Spinal Muscular Atrophy,” Orphanet Journal of Rare Diseases 14 (2019): 18, 10.1186/s13023-019-0998-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50. Blei D. M., Kucukelbir A., and McAuliffe J. D., “Variational Inference: A Review for Statisticians,” Journal of the American Statistical Association 112 (2017): 859–877, 10.1080/01621459.2017.1285773. [DOI] [Google Scholar]
- 51. Higgins I., Matthey L., Pal A., et al., “beta‐VAE: Learning Basic Visual Concepts with a Constrained Variational Framework,” in International Conference on Learning Representations (OpenReview.net, 2017), https://openreview.net/forum?id=Sy2fzU9gl. [Google Scholar]
- 52. Chipperfield J. O. and Steel D. G., “Multivariate Random Effect Models With Complete and Incomplete Data,” Journal of Multivariate Analysis 109 (2012): 146–155, 10.1016/j.jmva.2012.02.014. [DOI] [Google Scholar]
- 53. Amemiya Y., “On Multivariate Mixed Model Analysis,” IMS Lecture Notes‐Monograph Series, vol. 24., CA: Institute of Mathematical Statistics, 10.1214/lnms/1215463787. [DOI]
- 54. Pinheiro J. C. and Bates D. M., Mixed‐Effects Models in S and S‐PLUS: Methods and Practices (Springer, 2000), 10.1007/b98882. [DOI] [Google Scholar]
- 55. Latra I. N., Linuwih S., Purhadi, and Suhartono, “Estimation for Multivariate Linear Mixed Models,” International Journal of Basic and Applied Sciences 10 (2010): 79–86. [Google Scholar]
- 56. Kingma D. P. and Ba J., “Adam: A Method for Stochastic Optimization,” 2014 arXiv Preprint, 10.48550/arXiv.1412.6980. [DOI]
- 57. Wilks S. S., “The Large‐Sample Distribution of the Likelihood Ratio for Testing Composite Hypotheses,” Annals of Mathematical Statistics 9 (1938): 60–62, 10.1214/aoms/1177732360. [DOI] [Google Scholar]
- 58. Taylor J. and Tibshirani R. J., “Statistical Learning and Selective Inference,” Proceedings of the National Academy of Sciences 112 (2015): 7629–7634, 10.1073/pnas.1507583112. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59. Lee J. D., Sun D. L., Sun Y., and Taylor J. E., “Exact Post‐Selection Inference, With Application to the Lasso,” Annals of Statistics 44 (2016): 907–927, 10.1214/15AOS1371. [DOI] [Google Scholar]
- 60. Barber R. F. and Candès E. J., “Controlling the False Discovery Rate via Knockoffs,” Annals of Statistics 43 (2015): 2055–2085, 10.1214/15-AOS1337. [DOI] [Google Scholar]
- 61. Nguyen T. B., Chevalier J. A., Thirion B., and Arlot S., “Aggregation of Multiple Knockoffs,” in International Conference on Machine Learning 2020, vol. 119 (PMLR, 2020), 7283–7293. [Google Scholar]
- 62. Efron B., “Bootstrap Methods: Another Look at the Jackknife,” Annals of Statistics 7 (1979): 1–26, 10.1214/aos/1176344552. [DOI] [Google Scholar]
- 63. Kolb S. J. and Kissel J. T., “Spinal Muscular Atrophy: A Timely Review,” Archives of Neurology 68 (2011): 979–984, 10.1001/archneurol.2011.74. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64. Yeo C. J. J., Tizzano E. F., and Darras B. T., “Challenges and Opportunities in Spinal Muscular Atrophy Therapeutics,” Lancet Neurology 23 (2024): 205–218, 10.1016/S1474-4422(23)00419-2. [DOI] [PubMed] [Google Scholar]
- 65. Levina E. and Bickel P. J., “Maximum Likelihood Estimation of Intrinsic Dimension,” in Advances in Neural Information Processing Systems (MIT Press, 2005), 17. [Google Scholar]
- 66. Facco E., d'Errico M., Rodriguez A., and Laio A., “Estimating the Intrinsic Dimension of Datasets by a Minimal Neighborhood Information,” Scientific Reports 7 (2017): 12140. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Figure S1: Latent alignment across five measurement instruments. In a one‐dimensional latent space, we decoded ‐values of a one‐dimensional model using each of the five instruments and plotted the expected sum scores of the resulting decoder distributions (see Figure 1). For each instrument, we marked attainment of motor‐function milestones when more than 50% of decoded samples achieved the respective milestone. Because items do not correspond one‐to‐one across instruments, we manually matched similar motor function items while disregarding slight deviations in their meaning. For instance, “rolling” in the ALSFRS‐R test reflects the ability to turn and roll in bed, whereas in HINE‐2 it encompasses rolling from prone to supine and vice versa over one side, and in the HFMSE test it encompasses being able to roll from supine to prone and vice versa over both sides. Overall, we observe a consistent alignment of motor‐function milestones across the different measurement scales.
Table S1: Reconstruction error statistics and estimated treatment switch effects for choices of the latent dimension . For smaller values of , reconstruction quality, that is, the difference in test sum scores, decreases noticeably, while the estimated treatment effect remains unchanged in direction but becomes slightly smaller in magnitude.
Data Availability Statement
Real data cannot be shared due to legal and ethical restrictions.
