Skip to Content
MathematicsMathematics
  • Review
  • Open Access

11 June 2026

43 Pages

A Unified Review of Statistical, Machine Learning, and Deep Learning Methods for Longitudinal Data Analysis

,
,
,
,
and
1
Department of Statistics, Faculty of Physical Sciences, University of Ilorin, Ilorin 1515, Nigeria
2
Department of Mathematics and Statistics, Kwara State University, Malete PMB 1530, Nigeria
3
Department of Biostatistics & Health Informatics, Institute of Psychiatry, Psychology and Neuroscience, King’s College London, London SE5 8AF, UK
4
Mathematics Department, Faculty of Sciences, Umm Al-Qura University, Makkah 24382, Saudi Arabia
This article belongs to the Special Issue Statistics in Medicine and Biostatistics

Abstract

Longitudinal data, characterized by repeated measurements on the same subjects over time, are ubiquitous in biomedical sciences, economics, social sciences, and engineering. Analyzing such data presents unique statistical and computational challenges, including within-subject correlation, time-varying covariates, irregular observation times, informative dropout, and high dimensionality. While traditional statistical methods, such as linear mixed-effects models and generalized estimating equations, remain foundational, they often struggle with complex nonlinear dynamics, ultra-high-dimensional feature spaces, and very large sample sizes. Over the past two decades, machine learning (ML) and artificial intelligence (AI) methods have emerged as powerful complementary approaches to address these limitations. This review provides a comprehensive survey of mathematical and computational methods for longitudinal data analysis. We cover classical statistical models, penalized regression techniques, tree-based ensemble methods, kernel machines, Bayesian hierarchical models, and modern deep learning architectures, including recurrent neural networks, temporal convolutional networks, attention-based Transformers, neural ordinary differential equations, and generative models. We propose a unified taxonomy that organizes existing methods along two primary axes: the underlying mathematical framework and the analytical objective. For each category, we present detailed mathematical formulations, discuss key theoretical properties, examine computational considerations, and summarize representative reported applications drawn from the published literature. To increase the practical value of this review, we provide a cross-cutting comparison of method families against five key challenges (within-subject correlation, irregular sampling, missing data, high dimensionality, and scalability) and offer concrete guidance on method selection according to sample size, dimensionality, and analytical objective. Finally, we critically evaluate the strengths and limitations of these approaches, with particular emphasis on interpretability, scalability, handling of missing data, robustness to covariance misspecification, and uncertainty quantification.
MSC:
62R07; 62J05; 62N01; 62P10; 68T07; 68T05

1. Introduction

1.1. Motivation and Scope

The proliferation of data acquisition technologies across scientific disciplines has catalyzed unprecedented growth in the availability of longitudinal data—datasets where measurements are collected repeatedly over time from the same observational units. These datasets arise naturally in diverse contexts: electronic health records tracking patient biomarkers during clinical visits [1,2], panel studies in economics monitoring household expenditures [3], cohort studies in epidemiology following disease progression [4], neuroimaging experiments capturing brain activation patterns [5], ecological studies monitoring populations [6], and genomic studies profiling gene expression during developmental stages [7].
Longitudinal data are inherently rich because they capture both between-subject heterogeneity and within-subject temporal dynamics, offering opportunities for scientific inquiry that cross-sectional datasets cannot provide. Informally, the data consist of N subjects, each observed repeatedly over time, so a response and a vector of covariates are recorded at each visit. The defining feature is that repeated measurements within a subject are correlated through shared subject-specific characteristics, and this intra-subject correlation must be properly accounted for [8,9]. We defer formal notation, data layout, and covariance structures to Section 2.1 to avoid duplication.
Several complexities distinguish longitudinal data from cross-sectional or independent time-series data. First, observation schedules are frequently irregular [10]. Second, missing data are ubiquitous and may be informative [11]. Third, time-varying confounders can bias treatment effect estimates [12]. Fourth, the predictor dimension p may vastly exceed N, creating the “ p ≫ N ” challenge [13,14]. Fifth, outcomes may be of mixed types, including continuous biomarkers, binary indicators, and survival times, which together require multivariate modeling frameworks [15].
Traditional approaches, principally linear mixed-effects (LME) models [8], generalized estimating equations (GEE) [16], and transition models [17], provide elegant frameworks with well-understood inferential properties. However, they assume linearity, struggle when p is large, are sensitive to misspecification of the correlation structure, and cannot easily capture complex temporal dynamics [18,19].
Machine learning and AI methods offer a fundamentally different paradigm, learning relationships directly from data without restrictive parametric assumptions [20,21]. The motivation for this shift is concrete rather than merely fashionable. Classical models presuppose a known functional form (typically linear in the covariates after a link transformation) and a small, fixed covariate set; they therefore tend to be biased and inefficient precisely in the regimes that now dominate applied longitudinal research: (i) genomic, proteomic, and neuroimaging studies in which the predictor dimension p greatly exceeds the number of subjects N, where likelihood-based estimation is ill-posed without regularization; (ii) settings with strong nonlinearities and high-order covariate–time interactions that a fixed parametric mean structure cannot represent; (iii) irregularly and densely sampled electronic health records, where discrete-time formulations require ad hoc alignment; and (iv) prediction-centered tasks at very large sample sizes, where flexible function approximation outperforms parametric extrapolation. Machine learning and especially deep learning methods, by which we mean models that comprise many layers of learned nonlinear transformations to build hierarchical representations from data, were developed to fill exactly these gaps. They trade the closed-form interpretability and inferential guarantees of classical models for flexibility, scalability, and the ability to handle heterogeneous, high-dimensional inputs. Recent developments include mixed-effect gradient boosting for high-dimensional settings [22], neural ordinary differential equations for irregular sampling [23], and Transformer architectures for capturing complex temporal dependencies [24]. Throughout, we treat “classical statistical methods” and “ML/AI methods” as the two top-level families, and within the latter we distinguish classical ML (tree-based ensembles and kernel methods) from deep-learning architectures (RNNs, LSTMs, TCNs, Transformers, neural ODEs, and generative models); the penalized and regularized methods of Section 4 sit at the interface, since they extend classical likelihoods with the regularization machinery that underpins much of modern ML.

1.2. Related Work

Several reviews address specific aspects of this area, but none provide the comprehensive, mathematically grounded coverage attempted here. On the classical statistical side, Diggle et al. [9] and Fitzmaurice et al. [25] provide authoritative treatments of mixed-effects models, GEE, and transition models, but these works predate the deep learning revolution and do not cover modern computational methods.
On the machine learning side, Hu and Szymczak [26] reviewed random forests specifically adapted for longitudinal data, providing a useful taxonomy of adaptation strategies, but not covering other ML paradigms. Shickel et al. [27] surveyed deep learning for EHR analysis, focusing on clinical applications but not on the mathematical foundations of longitudinal methodology. Lim and Zohren [28] reviewed deep learning for time-series forecasting in general, without specific attention to the panel/longitudinal structure, where repeated measurements from multiple subjects create both opportunities and challenges. Goldstein et al. [29] examined risk prediction with EHR data, highlighting practical challenges but not providing mathematical detail. Cascarano et al. [30] surveyed machine learning for longitudinal biomedical data with an applied emphasis, again without unifying mathematical formulations between paradigms. More recently, Olaniran et al. [22] introduced mixed-effect gradient enhancement for high-dimensional longitudinal data, illustrating the growing trend towards methods that rigorously combine ML flexibility with statistical structure.
Table 1 situates the present review relative to these works along four dimensions: coverage of classical statistical models, of penalized/high-dimensional methods, of modern deep learning, and the provision of unified mathematical formulations. The comparison makes the gap explicit. Existing reviews are either statistically authoritative but predate (and therefore omit) modern computational methods, or ML/DL-focused but light on the classical inferential machinery and the mathematical detail needed to see how the paradigms connect. To the best of our knowledge, no prior review provides a single, mathematically grounded survey that spans the full spectrum from classical linear models through penalized regression, ensemble learning, kernel machines, and Bayesian methods to modern deep learning; covers both low-dimensional ( p < N ) and high-dimensional ( p ≫ N ) settings; and treats both inferential and predictive objectives for longitudinal data specifically. Filling this gap is the central contribution of the present article.
Table 1. Positioning of this review relative to representative prior surveys. ✓: covered in depth; (✓): partial coverage; ✗: not covered.
Verbeke and Molenberghs [31] provide a thorough treatment of linear mixed models with an emphasis on practical modeling decisions, while Hedeker and Gibbons [19] offer an accessible introduction to longitudinal analysis across multiple outcome types; both of these works, being book-length classical treatments, again predate the deep learning developments reviewed here.

1.3. Contributions

This review makes the following contributions:
  • We propose a unified taxonomy classifying longitudinal data methods along two dimensions—mathematical framework (parametric, semi-parametric, non-parametric, deep learning) and analytical objective (prediction, inference, clustering, feature selection)—and we state explicit criteria for assigning methods to cells.
  • We provide detailed mathematical formulations for each major method class, with a consolidated notation table and, wherever an estimation or optimization procedure is involved, an explicit account of how parameters are estimated.
  • We critically analyze strengths and limitations with respect to five key challenges—within-subject correlation, irregular sampling, missing data, high dimensionality, and scalability—and we summarize these in a single cross-cutting comparison table.
  • We provide practical guidance on method selection as a function of sample size, dimensionality, and analytical goal, together with software references (R, Python, MATLAB, SAS, Stata) for each method family.
  • We survey representative reported applications across multiple domains, with emphasis on medical and biostatistical settings, and identify future research directions.

1.4. Organization

Section 2 presents the problem formulation and taxonomy. Section 3, Section 4, Section 5, Section 6, Section 7 and Section 8 review the major method classes. Section 9 covers specialized topics. Section 10 synthesizes the families through a cross-cutting comparison and practical selection guidance. Section 11 discusses emerging directions. Section 12 concludes.

2. Problem Formulation and Taxonomy

2.1. Mathematical Formulation of Longitudinal Data

Consider N independent subjects indexed by i = 1 , … , N . Subject i is observed at n i time points t i 1 < ⋯ < t i n i , where time points may differ across subjects. At time t i j , we observe response y i j ∈ R and covariates x i j = ( x i j 1 , … , x i j p ) ⊤ ∈ R p . Let Y i = ( y i 1 , … , y i n i ) ⊤ , X i be the n i × p design matrix and  n = ∑ i = 1 N n i be the total observations [8]. Throughout, we use p for the predictor dimension and reserve “high-dimensional” for the regime p ≫ N (more precisely, p growing with, and eventually exceeding, the effective sample size), in contrast to the standard low-dimensional regime p < N in which classical likelihood estimation is well posed. To keep the notation manageable across the many frameworks that follow, Table 2 collects the symbols used repeatedly in the review, and Table 3 illustrates the data layout.
Table 2. Summary of recurring notation.
Table 3. Longitudinal data structure with N subjects, variable observation times, m responses, and p predictors. The first index is the subject, the second the time point, and (for responses) the third the response component; thus, y i j k is the k-th response of subject i at time t i j , and x i j l is the l-th covariate. When a single response is considered ( m = 1 ), the third index is dropped, and we write y i j , as in the main text.
The within-subject covariance matrix V i = Var ( Y i ) is n i × n i positive definite. Common parametric forms include the following:
  • Compound Symmetry (CS):  Corr ( y i j , y i j ′ ) = ρ for all j ≠ j ′ , so V i = σ 2 [ ( 1 − ρ ) I n i + ρ J n i ] , where J n i is the n i × n i matrix of ones; a single parameter ρ implies that any two measurements on a subject are equally correlated regardless of how far apart in time they are (exchangeability).
  • First-Order Autoregressive, AR(1): The correlation decays geometrically with the time separation, Corr ( y i j , y i j ′ ) = ρ | t i j − t i j ′ | with | ρ | < 1 , so that observations close in time are strongly correlated and the correlation tends to zero for widely separated observations. AR(1) uses a single parameter ρ and is a natural choice for approximately equally spaced measurements driven by a smooth underlying process.
  • Toeplitz (Banded):  Corr ( y i j , y i j ′ ) = ρ | j − j ′ | , i.e.,  the correlation depends only on the number of steps between observations, but unlike AR(1), each delay has its own free parameter ρ 1 , ρ 2 , … (up to min ( n i , T ) − 1 of them). The Toeplitz structure, therefore, contains AR(1) as the special case ρ k = ρ k and is appropriate when the lag-1, lag-2, and higher-order correlations need not follow a geometric pattern, but the design is (close to) equally spaced.
  • Unstructured:  V i has n i ( n i + 1 ) / 2 free parameters, providing maximum flexibility but requiring the most data and only being estimable when the observation times are common across subjects.
In practice, the structure is chosen by likelihood-based information criteria (AIC/BIC) or likelihood-ratio tests on nested structures (e.g., AR(1) within Toeplitz within unstructured), balancing parsimony against fit; CS and AR(1) are robust default starting points, while unstructured forms are reserved for short, balanced series. The consequences of misspecifying V i differ by estimation philosophy and are discussed in Section 3.5.
A general modeling framework can be expressed as follows:
g E [ y i j ∣ x i j , b i ] = f ( x i j , t i j , b i ; θ ) ,
where b i represents subject-specific random effects with distribution b i ∼ G (most commonly the multivariate normal N ( 0 , D ) , although non-parametric choices for G are discussed in Section 7.3), f is a parameterized mean function of θ , and g is a known monotone link function that maps the conditional mean of y i j onto the linear or nonlinear predictor scale (the identity link for Gaussian responses, the logit for binary responses, and the log for counts). Equation (1) is a unifying template rather than a strict dichotomy: choosing f linear in ( x i j , b i ) with g the identity recovers the classical linear mixed model [31], retaining G Gaussian but letting g be a canonical link gives the generalized linear mixed model, replacing f with an ensemble of trees yields mixed-effects random forests and boosting (Section 5), and letting f be a neural network places the model in the deep learning domain [32]. Many contemporary methods deliberately blend these choices—for example, combining a neural network or boosted f with Gaussian random effects b i —so the boundary between “statistical” and “deep learning” models is better viewed as a continuum in the flexibility of f than as a sharp divide.

2.2. Proposed Taxonomy

We classify the methods according to two dimensions (Table 4): The first is the mathematical framework, defined by how the mean function f in (1) is specified: (i) parametric methods assume a finite-dimensional, pre-specified form for f (e.g., linear in the covariates); (ii) semi-parametric methods leave the part of f (typically the correlation within the subject or a smooth time effect) unspecified while keeping the regression part parametric; (iii) non-parametric methods let f be an arbitrary smooth or piecewise-constant function estimated from data (kernels, trees, ensembles); and (iv) deep learning methods take f to be a multi-layer neural network. The second dimension is the analytical objective: (a) prediction (accurate forecasts of y), (b) inference (interpretable, uncertainty-quantified parameters), (c) clustering (discovery of latent subgroups/trajectories), and (d) selection of features (identification of a sparse set of active covariates).
Table 4. Proposed taxonomy of methods for longitudinal data analysis. Methods are placed by the assumption their mean function makes (rows) and by their primary analytical objective (columns). A dagger (†) marks methods routinely used for both prediction and inference. Acronyms: LME (linear mixed-effects), GLMM (generalized linear mixed model), GEE (generalized estimating equations), GAMM (generalized additive mixed model), LCGA (latent class growth analysis), GMM (growth mixture model), EN (elastic net), MERF (mixed-effects random forest), MEGB (mixed-effect gradient boosting), GP (Gaussian process), BART (Bayesian additive regression trees), SVM (support vector machine), LSTM (long short-term memory), VAE (variational autoencoder), neural ODE (neural ordinary differential equation).
Two clarifications are warranted on the assignment criteria, since it is correctly noted that a single method can occupy more than one cell. First, a method is listed under the framework whose assumption on f it most closely matches; GEE, for instance, is semi-parametric because it specifies only the first two moments and a working correlation rather than a full likelihood, so we list it under semi-parametric and remove it from the parametric row to avoid the earlier inconsistency. Second, a method is listed under the objective(s) for which it is primarily designed and used; methods routinely used for both prediction and inference (LME, GLMM, GEE) are shown in both relevant columns, and the superscript “†” marks such dual-purpose methods. Each subsequent section explicitly states, in its opening paragraph, the taxonomy cell(s) occupying its methods.

3. Classical Statistical Models for Longitudinal Data

Unless stated otherwise, the classical models in this section are developed for the standard low-dimensional longitudinal setting in which the number of covariates is modest relative to the total number of observations ( p < N , and typically p ≪ n ), so that the likelihoods below are well posed and the estimators are uniquely defined. This is the regime for which these methods were designed and in which their inferential guarantees hold; the high-dimensional regime p ≫ N , where these estimators break down and regularization becomes necessary, is treated separately in Section 4.

3.1. Linear Mixed-Effects Models

The linear mixed-effects (LME) model [8] is the most widely used framework for continuous longitudinal outcomes:
y i j = x i j ⊤ β + z i j ⊤ b i + ε i j ,
where β ∈ R p is the fixed-effect vector, b i ∼ N ( 0 , D ) is a q-dimensional random-effect vector with q × q covariance matrix D , z i j is the random-effect design vector, and  ε i j ∼ N ( 0 , σ 2 ) is residual error independent of b i . In matrix notation,
Y i = X i β + Z i b i + ε i , V i = Var ( Y i ) = Z i D Z i ⊤ + σ 2 I n i .
The marginal log-likelihood is obtained by integrating the random effects out of the joint density. Because  b i ∼ N ( 0 , D ) enters linearly and the errors are Gaussian, the marginal distribution of Y i is itself Gaussian, with mean X i β and covariance V i = Z i D Z i ⊤ + σ 2 I n i ; summing the resulting log-densities over the N independent subjects gives
ℓ ( β , D , σ 2 ) = − 1 2 ∑ i = 1 N n i log ( 2 π ) + log | V i | + ( Y i − X i β ) ⊤ V i − 1 ( Y i − X i β ) .
The three terms are a normalizing constant, a complexity penalty log | V i | that grows as the modeled correlation increases, and a Mahalanobis goodness-of-fit term that weights residuals by the inverse covariance, respectively.
Taking the derivative with respect to β and setting it to zero yields the generalized least squares (GLS) estimator:
β ^ = ∑ i = 1 N X i ⊤ V i − 1 X i − 1 ∑ i = 1 N X i ⊤ V i − 1 Y i .
Restricted maximum likelihood (REML) provides unbiased variance component estimates by modifying the log-likelihood [33]:
ℓ R ( D , σ 2 ) = ℓ ( β ^ , D , σ 2 ) − 1 2 log ∑ i = 1 N X i ⊤ V i − 1 X i + p 2 log ( 2 π ) .
Intuitively, ordinary maximum likelihood underestimates the variance components because it does not account for the degrees of freedom “used up” in estimating the p fixed effects (the same reason the sample variance divides by n − 1 rather than n). The additional term − 1 2 log | ∑ i X i ⊤ V i − 1 X i | is exactly the log-determinant of the information matrix for β , and subtracting it removes this downward bias by basing the likelihood on residual contrasts that are orthogonal to the fixed-effect mean. In practice, REML is the recommended default when the scientific interest is in the variance components or in well-calibrated standard errors, whereas ordinary maximum likelihood must be used when comparing models with different fixed-effect structures via likelihood-ratio tests.
The best linear unbiased predictor (BLUP) of random effects is as follows [34]:
b ^ i = D Z i ⊤ V i − 1 ( Y i − X i β ^ ) ,
providing subject-specific predictions that “borrow strength” across subjects through the estimated D . The BLUP has an intuitive shrinkage interpretation: it is a precision-weighted compromise between the population mean (zero deviation) and the subject’s own data, so that subjects with few or noisy observations are pulled toward the population average, while subjects with many informative observations retain estimates close to their empirical trajectories. The factor D Z i ⊤ V i − 1 is precisely this weight, increasing with the random-effect variance D and decreasing with the residual noise embedded in V i . The conditional variance of b ^ i is
Var ( b i − b ^ i ∣ Y ) = D − D Z i ⊤ V i − 1 Z i D .
Inference on fixed effects uses Wald tests or likelihood-ratio tests with Kenward–Roger or Satterthwaite degrees-of-freedom corrections [35]. The LME model is implemented in lme4 [36] and nlme in R, PROC MIXED in SAS, and Stata’s mixed command.

3.2. Generalized Linear Mixed Models

GLMMs extend LME to non-Gaussian responses through the exponential family [37,38]:
g ( μ i j ) = x i j ⊤ β + z i j ⊤ b i , y i j ∣ b i ∼ f ( y i j ; μ i j , ϕ ) ,
where μ i j = E [ y i j ∣ b i ] , g ( · ) is a canonical link, and f belongs to the exponential family with density:
f ( y ; θ , ϕ ) = exp y θ − b ( θ ) a ( ϕ ) + c ( y , ϕ ) ,
where θ = θ ( μ ) is the natural parameter, b ( · ) determines the distribution, and  ϕ is the dispersion. The marginal likelihood requires integrating over random effects:
L ( β , D ) = ∏ i = 1 N ∫ ∏ j = 1 n i f ( y i j ∣ b i , β ) · φ ( b i ; 0 , D ) d b i ,
where φ ( · ; 0 , D ) is the multivariate normal density. Approximation methods include Gauss–Hermite quadrature [39], Laplace approximation [40], penalized quasi-likelihood (PQL) [41], and MCMC [42]. The Laplace approximation expands the integrand around its mode b ˜ i :
∫ g ( b i ) d b i ≈ ( 2 π ) q / 2 | H i | − 1 / 2 g ( b ˜ i ) ,
where H i = − ∂ 2 log g ( b i ) / ∂ b i ∂ b i ⊤ evaluated at the mode b ˜ i is the Hessian (observed information) of the negative log-integrand. Concretely, H i combines the curvature of the conditional log-likelihood of Y i given b i with the prior precision D − 1 of the random effects; its determinant | H i | measures how sharply the integrand peaks around b ˜ i and, therefore, controls the accuracy of the Gaussian approximation, which improves as n i grows. The Laplace approximation is exact for the linear Gaussian case and is the default in many GLMM implementations, with adaptive Gauss–Hermite quadrature offering higher accuracy at greater cost when n i is small. GLMMs are implemented in lme4 (glmer) and glmmTMB in R, PROC GLIMMIX in SAS, and Stata’s meglm.

3.3. Generalized Estimating Equations

GEE [16] provides a semi-parametric alternative focusing on marginal parameters:
U ( β ) = ∑ i = 1 N D i ⊤ V i − 1 Y i − μ i ( β ) = 0 ,
where D i = ∂ μ i / ∂ β ⊤ is the n i × p derivative matrix, V i = ϕ A i 1 / 2 R ( α ) A i 1 / 2 is the working covariance with A i = diag ( v ( μ i j ) ) containing variance functions, and  R ( α ) is the working correlation matrix. The GEE estimator satisfies [43]:
β ( r + 1 ) = β ( r ) + ∑ i = 1 N D i ⊤ V i − 1 D i − 1 ∑ i = 1 N D i ⊤ V i − 1 ( Y i − μ i ( r ) ) .
The sandwich (robust) variance estimator is
Var ^ ( β ^ ) = B N − 1 M N B N − 1 ,
where B N = ∑ i D i ⊤ V i − 1 D i and M N = ∑ i D i ⊤ V i − 1 e ^ i e ^ i ⊤ V i − 1 D i with residuals e ^ i = Y i − μ ^ i . Small-sample corrections include those of Mancl and DeRouen [44] and the bias-corrected estimator of Kauermann and Carroll [45]. The quadratic inference function (QIF) of Qu et al. [46] improves efficiency by combining multiple working correlations:
Q N ( β ) = g N ( β ) ⊤ C N − 1 g N ( β ) , g N ( β ) = 1 N ∑ i = 1 N D i ⊤ A i − 1 / 2 M A i − 1 / 2 ( Y i − μ i ) ,
where M stacks basis matrices for the inverse of the working correlation. GEE is implemented in the R packages geepack and gee, in SAS PROC GENMOD (REPEATED statement), and in Stata’s xtgee; QIF is available in the R package qif.
A practical point that deserves emphasis is the precise sense in which GEE is, and is not, robust to misspecifying the working correlation R ( α ) . The point estimator β ^ remains consistent for the marginal mean parameters even when R ( α ) is wrong, because consistency depends only on correct specification of the mean μ i ( β ) . What misspecification affects is efficiency and inference: a working correlation far from the truth inflates the variance of β ^ (estimates are noisier than necessary), and although the sandwich estimator (15) still targets the correct asymptotic variance, in small samples it is biased downward, so that confidence intervals can under-cover and Type I error can be inflated. The severity grows as the number of clusters N decreases and as the within-subject correlation strengthens. The practical implications are therefore as follows: choose a working correlation that plausibly reflects the design (CS for exchangeable clustering, AR(1) for ordered equally spaced visits), apply a small-sample correction [44,45] when N is small (a common rule of thumb being N < 40 ), and consider QIF [46] when efficiency is a concern.

3.4. Transition Models

Transition models decompose the joint distribution using the chain rule [17]:
f ( y i 1 , … , y i n i ∣ x i ) = f ( y i 1 ∣ x i 1 ) ∏ j = 2 n i f ( y i j ∣ y i , j − 1 , … , y i 1 , x i j ) .
A first-order Markov model conditions only on y i , j − 1 :
g ( μ i j ) = x i j ⊤ β + γ y i , j − 1 ,
where γ captures serial dependence. Estimation proceeds by conditional maximum likelihood: because the factorization (17) expresses the joint density as a product of one-step-ahead conditional densities, the contribution of subject i from the second visit onward is a standard generalized linear model in which the lagged response y i , j − 1 (and, for higher orders, y i , j − 2 , … ) enters as an additional covariate. Stacking these conditional contributions across subjects and visits yields the conditional log-likelihood
ℓ C ( β , γ ) = ∑ i = 1 N ∑ j = 2 n i log f y i j ∣ y i , j − 1 , x i j ; β , γ ,
which is maximized by ordinary iteratively reweighted least squares using existing GLM software, since conditioning on the past renders the within-subject contributions independent. Standard errors and Wald or likelihood-ratio tests for ( β , γ ) then follow from the usual GLM information matrix, and the model order (the number of lags) is selected by the AIC/BIC. A subtlety is the treatment of the initial observation y i 1 , whose conditional density is undefined: discarding it (conditioning on the observed first value) is simplest but discards information, whereas Heckman [47] proposed jointly modeling the initial conditions to avoid the incidental-parameters problem and the bias that it induces when n i is short. Transition models are fit in R with glm/geepack after constructing lagged predictors, and in SAS/Stata through the same GLM machinery; their primary strength is a direct, interpretable characterization of how the current outcome depends on recent history, while their main limitation is sensitivity to the assumed Markov order and to the handling of irregular spacing, since the meaning of “the previous observation” changes when the gaps between visits vary. Extensions include higher-order transitions and random-effects transition models [15].

3.5. Discussion of Classical Methods

Classical statistical models for longitudinal data form the theoretical bedrock upon which more modern approaches are built, and understanding their comparative strengths is essential for selecting appropriate methods in practice. LME and GLMM approaches offer both population-level (marginal) and subject-specific (conditional) inference, handle unbalanced designs naturally through the random effects structure, and yield interpretable parameters with well-understood sampling distributions [19,31]. The LME model, in particular, remains the workhorse for continuous longitudinal outcomes due to its elegant closed-form expressions for maximum likelihood estimation and BLUPs, which allow efficient computation even with moderately large datasets. GLMM extends this flexibility to non-Gaussian outcomes, albeit at the cost of requiring numerical integration for the marginal likelihood, which introduces approximation error that must be carefully managed through the choice of quadrature rules or MCMC sampling [37,40].
GEE provides a fundamentally different inferential philosophy. By focusing exclusively on marginal parameters and requiring only correct specification of the first two moments, GEE avoids distributional assumptions about random effects and provides consistent estimation of population-averaged effects even when the working correlation structure is misspecified [16]. This robustness property is particularly valuable in epidemiological and public health applications where the scientific interest centers on population-level effects rather than individual-level predictions. However, this robustness comes at a cost: the sandwich variance estimator can perform poorly in small samples (small N), and efficiency losses from correlation misspecification can be substantial [44,45]. Transition models complement these approaches by directly modeling the dynamics of change, making them natural for settings where a subject’s current outcome depends on their prior history.
Despite their theoretical elegance, all classical methods share fundamental limitations that have motivated the development of machine learning alternatives. First, they typically assume linearity in the relationship between predictors and response, or at most a known parametric transformation through a link function. This assumption can lead to biased inference and poor prediction when the true data-generating process involves complex nonlinear interactions [18]. Second, classical methods become computationally infeasible or statistically unreliable when the number of covariates p exceeds the number of subjects N, a scenario that is increasingly common in genomic, proteomic, and neuroimaging longitudinal studies. Third, the performance of these methods is sensitive to correct specification of the covariance structure and distributional assumptions, violations of which can lead to inflated Type I error rates and inaccurate confidence intervals [19]. Fourth, classical models cannot easily capture complex temporal dynamics such as regime changes, non-stationary patterns, or higher-order dependencies without substantial manual specification. These limitations have catalyzed the development of the machine learning and deep learning methods reviewed in the subsequent sections, which offer greater flexibility at the cost of reduced interpretability and weaker inferential guarantees.

4. Penalized and Regularized Methods for High-Dimensional Longitudinal Data

When p ≫ N , classical estimation fails. Penalized methods add a penalty P λ ( β ) to the objective, enabling simultaneous estimation and variable selection [48,49]. In this section, we review major penalized methods adapted for the longitudinal setting, discussing their mathematical formulations, theoretical properties, computational considerations, and relative merits.

4.1. Penalized Linear Mixed-Effects Models

The penalized LME framework modifies the standard LME likelihood by adding a penalty on the fixed-effect coefficients. The general penalized log-likelihood takes the form
Q ( β , D ) = ℓ ( β , D ; Y ) − n ∑ j = 1 p p λ ( | β j | ) ,
where p λ is a penalty function and ℓ is from (4).

4.1.1. Lasso for Mixed Models

Schelldorfer et al. [50] proposed the ℓ 1 -penalized LME:
( β ^ , D ^ , σ ^ 2 ) = arg min β , D , σ 2 − 2 ℓ ( β , D , σ 2 ; Y ) + 2 λ ∥ β ∥ 1 ,
which is equivalent to
min β , { b i } ∑ i = 1 N 1 σ 2 ∥ Y i − X i β − Z i b i ∥ 2 2 + b i ⊤ D − 1 b i + λ ∥ β ∥ 1 + ∑ i = 1 N log | V i | .
The algorithm alternates: (i) update β via coordinate descent holding b i , D fixed; (ii) compute BLUPs b ^ i via (7); (iii) update D , σ 2 via REML.

4.1.2. Adaptive Lasso and SCAD for Mixed Models

The adaptive Lasso [51] uses data-dependent weights achieving the oracle property:
P λ ( β ) = λ ∑ j = 1 p | β j | | β ^ j init | γ , γ > 0 ,
where β ^ init is an initial consistent estimator. Under regularity conditions, the adaptive Lasso identifies the true support and achieves asymptotic normality at the oracle rate [51]. The SCAD penalty [52],
p λ ′ ( | β | ) = λ I ( | β | ≤ λ ) + ( a λ − | β | ) + ( a − 1 ) λ I ( | β | > λ ) , a = 3.7 ,
reduces bias for large coefficients. Ibrahim et al. [53] developed SCAD-penalized mixed models for longitudinal data. Bondell et al. [54] proposed joint selection of fixed and random effects. In both cases, the estimator is obtained by substituting the corresponding penalty into the penalized objective (20) and minimizing it within the same alternating scheme used for the Lasso-LME in Section 4.1: holding the variance components and random effects fixed, the fixed effects are updated, and the random effects (BLUPs) and variance components are then refreshed. The only change relative to the Lasso is how the fixed-effect update is solved. For the adaptive Lasso, the weights w j = | β ^ j init | − γ are computed once from an initial n -consistent estimator (a ridge-penalized fit when p ≫ N ), after which the problem is a reweighted Lasso and is solved by the same coordinate-descent update with covariate-specific shrinkage λ w j . For the non-convex SCAD penalty, the objective is minimized by local linear (or local quadratic) approximation [55]: at the current iterate, the penalty is replaced by its first-order Taylor surrogate p λ ′ ( | β ^ j ( t ) | ) | β j | , turning each step into a weighted Lasso solved by coordinate descent, and the resulting majorize–minimize iterations converge to a stationary point. Tuning of λ (and of a for SCAD, conventionally fixed at a = 3.7 ) uses subject-level cross-validation or a BIC-type criterion, as discussed in Section 4.4.

4.1.3. Elastic Net for Longitudinal Data

The elastic net [56] combines ℓ 1 and ℓ 2 penalties:
P λ 1 , λ 2 ( β ) = λ 1 ∥ β ∥ 1 + λ 2 ∥ β ∥ 2 2 = λ α ∥ β ∥ 1 + 1 − α 2 ∥ β ∥ 2 2 ,
where α ∈ [ 0 , 1 ] controls the mixing. The  ℓ 2 component encourages grouping of correlated variables, while ℓ 1 maintains sparsity [57]. The elastic net selects at most n variables (unlike Lasso’s limit), making it particularly suited for p ≫ N genomic longitudinal data. Estimation again follows the alternating scheme of Section 4.1: with the random effects and variance components held fixed, the fixed-effect update is a strictly convex problem whose coordinate-wise solution is the soft-thresholding operator of the Lasso rescaled by the ridge term, β ^ j ← S ( z j , λ α ) / ( 1 + λ ( 1 − α ) ) , where S ( · , · ) is the soft-threshold and z j the partial residual correlation; the two tuning parameters ( λ , α ) are chosen jointly by subject-level cross-validation. The penalized mixed-model estimators of this section are implemented in the R packages glmmLasso, lmmlasso, and splmm (Lasso/SCAD for mixed models) and, for the underlying penalized GLMs, glmnet and ncvreg (SCAD/MCP).

4.2. Group and Fused Penalties

The group Lasso [58] penalizes groups jointly:
P λ ( β ) = λ ∑ g = 1 G p g ∥ β g ∥ 2 ,
ensuring entire groups are selected or eliminated. In longitudinal settings, groups correspond to covariate effects across time [59]. The sparse group Lasso [60] adds within-group sparsity:
P λ 1 , λ 2 ( β ) = λ 1 ∥ β ∥ 1 + λ 2 ∑ g = 1 G p g ∥ β g ∥ 2 .
The fused Lasso [61] encourages temporal smoothness:
P λ 1 , λ 2 ( β ) = λ 1 ∑ j = 1 p | β j | + λ 2 ∑ j = 2 p | β j − β j − 1 | .
Olaniran et al. [62] developed Bayesian approaches with tapered spectral estimation for panel data, demonstrating the power of penalized Bayesian methods for complex longitudinal econometric structures.

4.3. Penalized GEE

Penalized GEE (PGEE) [63] solves
∑ i = 1 N D i ⊤ V i − 1 ( Y i − μ i ) = n · q λ ( β ) ,
where q λ ( β ) = ( sign ( β j ) p λ ′ ( | β j | ) ) j = 1 p . PGEE inherits GEE’s robustness to correlation misspecification while performing variable selection. Fan et al. [64] combined sure independence screening with PGEE for ultra-high-dimensional longitudinal data. Table 5 summarizes these methods.
Table 5. Summary of penalized methods for high-dimensional longitudinal data.

4.4. Discussion of Penalized Methods

The penalized methods reviewed above collectively address the fundamental challenge of variable selection in high-dimensional longitudinal data, but they do so with distinct mathematical mechanisms that lead to different practical trade-offs. The standard Lasso-LME offers simplicity and computational efficiency through coordinate descent, but its ℓ 1 penalty applies uniform shrinkage to all coefficients, which can produce biased estimates for large true effects and inconsistent variable selection when covariates are highly correlated—a common scenario in genomic longitudinal studies where groups of genes may be co-regulated [50]. The adaptive Lasso addresses selection inconsistency by using data-dependent weights that penalize small coefficients more aggressively than large ones, achieving the oracle property under appropriate regularity conditions [51]. However, the quality of the initial estimator β ^ init critically determines performance, and obtaining a reliable initial estimator when p ≫ N requires careful consideration; often, a ridge regression estimator is used as a first step.
The elastic net’s combination of ℓ 1 and ℓ 2 penalties provides a particularly attractive solution for longitudinal data with correlated predictors, as the ℓ 2 component encourages joint selection of correlated features while the ℓ 1 component maintains sparsity [56,57]. This grouping effect is especially relevant in applications such as longitudinal gene expression studies, where pathway-level effects involve coordinated changes across multiple genes. The group Lasso and fused Lasso extend this idea by explicitly encoding domain-specific structural assumptions such as grouped variable selection and temporal smoothness, respectively, into the penalty function.
A critical practical consideration across all penalized methods is the selection of tuning parameters ( λ , α , or multiple penalties). Cross-validation is the standard approach, but its implementation in the longitudinal setting requires care: standard K-fold cross-validation that splits observations ignores the within-subject correlation, potentially leading to overly optimistic performance estimates and suboptimal tuning parameter selection. Subject-level cross-validation, where entire subjects rather than individual observations are held out, preserves the correlation structure and provides more reliable model selection [49]. We emphasize this point because naive observation-level cross-validation is one of the most common and consequential mistakes in applied longitudinal modeling: when observations from the same subject appear in both the training and validation folds, the model can exploit subject-specific information that will not be available for genuinely new subjects, yielding optimistically biased error estimates and mistuned penalties. The same caution applies to every predictive method in this review, not only penalized models, and we return to it for tree ensembles and deep networks in Section 5.4 and Section 8.7. Furthermore, the computational cost of cross-validation grows substantially with the number of tuning parameters, making methods with multiple penalties (such as elastic net or sparse group Lasso) considerably more expensive to tune than single-penalty methods.
The PGEE approach offers an important alternative that inherits GEE’s robustness to correlation misspecification while performing variable selection [63]. This robustness is particularly valuable in exploratory analyses where the true correlation structure is unknown. However, the sandwich variance estimator used in GEE and PGEE can exhibit substantial small-sample bias, particularly with few clusters ( N < 40 ), necessitating corrections [44]. The combination of sure independence screening with PGEE [64] represents a promising direction for ultra-high-dimensional settings, reducing the computational burden while maintaining theoretical guarantees.

5. Tree-Based and Ensemble Methods for Longitudinal Data

Decision tree-based methods and their ensemble extensions have become highly popular in machine learning due to their ability to capture complex nonlinear relationships, handle mixed data types, and provide interpretable models. In the taxonomy of Section 2.2 these methods are non-parametric and are used primarily for prediction (with variable-importance measures serving feature selection). Unlike the penalized methods of Section 4, which were specifically designed for the high-dimensional p ≫ N regime, tree-based ensembles are general-purpose: they apply across the dimensional spectrum and are most commonly used in moderate-dimensional settings ( p < N ) with large numbers of observations, although boosting with built-in feature selection (and screening front-ends) also scales to high-dimensional inputs. We make this scope explicit because, as noted, the intended data regime was previously ambiguous. However, standard implementations of random forests, gradient boosting, and related methods assume independent observations, which is violated in longitudinal data. This section reviews adaptations and extensions that account for the correlated nature of longitudinal measurements, ranging from simple feature engineering strategies to rigorous structural modifications that embed mixed-effects components within the ensemble framework.

5.1. Random Forests for Longitudinal Data

The standard random forest [65] builds B decision trees { T b } b = 1 B on bootstrap samples with random feature subsampling, predicting f ^ ( x ) = B − 1 ∑ b = 1 B T b ( x ) . For longitudinal data, Hu and Szymczak [26] identified four adaptation strategies: (a) naive (ignoring correlation), (b) subject-level summaries, (c) conditional (lagged variables), and (d) structural modifications. The conditional inference forest [66] provides principled splitting via permutation tests.
A key advancement is the mixed-effects random forest (MERF) of Hajjem et al. [67]:
y i j = f ( x i j ) + z i j ⊤ b i + ε i j , b i ∼ N ( 0 , D ) , ε i j ∼ N ( 0 , σ 2 ) ,
where f is estimated non-parametrically via random forests. The EM-like algorithm iterates as follows:
  • E-step: Compute BLUPs b ^ i = D ^ Z i ⊤ V ^ i − 1 ( Y i − f ^ ( X i ) ) .
  • M-step: Fit random forest to partial residuals y ˜ i j = y i j − z i j ⊤ b ^ i to obtain f ^ new ; update D ^ and σ ^ 2 from
    D ^ = 1 N ∑ i = 1 N b ^ i b ^ i ⊤ + Var ( b i − b ^ i ∣ Y ) , σ ^ 2 = ∑ i = 1 N ∥ Y i − f ^ ( X i ) − Z i b ^ i ∥ 2 ∑ i = 1 N n i .
Capitaine et al. [68] established convergence properties. Random survival forests [69] extend to time-to-event outcomes.

5.2. Gradient Boosting for Longitudinal Data

Gradient boosting [70] builds an ensemble sequentially. At iteration m,
F ^ m ( x ) = F ^ m − 1 ( x ) + ν · h m ( x ) , h m = arg min h ∑ i , j L y i j , F ^ m − 1 ( x i j ) + h ( x i j ) ,
where ν ∈ ( 0 , 1 ] is the learning rate. For squared error loss L ( y , F ) = ( y − F ) 2 / 2 , the pseudo-residuals are r i j ( m ) = y i j − F ^ m − 1 ( x i j ) .

5.2.1. Mixed-Effect Gradient Boosting (MEGB)

A critical recent advancement is the mixed-effect gradient boosting (MEGB) framework of Olaniran et al. [22], which rigorously integrates gradient boosting with LME for high-dimensional longitudinal data:
y i j = F ( x i j ) + z i j ⊤ b i + ε i j , b i ∼ N ( 0 , D ) , ε i j ∼ N ( 0 , σ 2 ) ,
where F ( · ) is the gradient-boosting component capturing nonlinear fixed effects, and b i captures subject-specific deviations. The MEGB estimation procedure follows an alternating optimization:
The MEGB framework was demonstrated on high-dimensional longitudinal genomic data, showing substantial improvements over both standard gradient boosting (which ignores correlation) and standard LME (which cannot capture nonlinearities) [22]. The key mathematical insight is that the conditional distribution of Y i given F and variance components is
Y i ∣ F ∼ N F ( X i ) , Z i D Z i ⊤ + σ 2 I n i ,
which allows the random effects to be profiled out at each boosting iteration, maintaining computational tractability.
Two points deserve explicit treatment here, to avoid presenting MEGB more favorably than competing methods: First, regarding computational complexity and convergence, each outer iteration of Algorithm 1 costs one gradient-boosting fit (linear in the number of observations n and the number of weak learners per round) plus the random-effects update, whose dominant cost is the per-subject solve of an n i × n i system, i.e., O ( ∑ i n i 3 ) in the worst case, but typically negligible because n i is small in longitudinal designs; the overall cost is therefore driven by the boosting component and scales to large N. The alternating scheme is a block coordinate-descent/generalized-EM procedure: each block update does not increase the (profiled) objective, so the algorithm converges to a stationary point, but, as with EM for non-convex problems, convergence to a global optimum is not guaranteed, the solution can depend on the initialization b ^ i ( 0 ) , D ^ ( 0 ) , and the number of boosting iterations M acts as an additional regularizer that must be tuned (by subject-level cross-validation) to avoid overfitting. Second, regarding limitations, MEGB inherits the standard weaknesses of tree ensembles; it cannot extrapolate beyond the observed covariate range, its variable-importance scores are biased toward high-cardinality predictors, and it provides no closed-form inference for the fixed-effect function F; it also assumes Gaussian random effects and homoscedastic errors, and its tuning surface (learning rate, tree depth, M, and the variance-component updates) is larger than that of a single LME. These caveats apply equally to the closely related MERF and GPBoost frameworks, and we note them so that the choice among ensemble methods is made on balanced grounds rather than based on reported best-case performance.
Algorithm 1 Mixed-Effect Gradient Boosting (MEGB) [22]
Require: Data { ( y i j , x i j , z i j ) } , learning rate ν , number of iterations M
   1:
Initialize: F ^ ( 0 ) ( x i j ) = y ¯ , b ^ i ( 0 ) = 0 , D ^ ( 0 ) = I q
   2:
for  t = 1 , … , M  do
   3:
Compute working residuals: r i j ( t ) = y i j − F ^ ( t − 1 ) ( x i j ) − z i j ⊤ b ^ i ( t − 1 )
   4:
Fit gradient boosting step to { ( x i j , r i j ( t ) ) } to obtain h t ( · )
   5:
Update: F ^ ( t ) ( x i j ) = F ^ ( t − 1 ) ( x i j ) + ν · h t ( x i j )
   6:
Update random effects via BLUP:
b ^ i ( t ) = D ^ ( t ) Z i ⊤ Z i D ^ ( t ) Z i ⊤ + ( σ ^ 2 ) ( t ) I n i − 1 Y i − F ^ ( t ) ( X i )
   7:
Update variance components via REML:
D ^ ( t ) = 1 N ∑ i = 1 N b ^ i ( t ) ( b ^ i ( t ) ) ⊤ + C i ( t ) , ( σ ^ 2 ) ( t ) = ∑ i ∥ e ˜ i ( t ) ∥ 2 ∑ i n i
    where C i ( t ) = D ^ ( t ) − D ^ ( t ) Z i ⊤ ( V ^ i ( t ) ) − 1 Z i D ^ ( t )
   8:
end for
   9:
return  F ^ ( M ) , { b ^ i ( M ) } , D ^ ( M ) , ( σ ^ 2 ) ( M )

5.2.2. GPBoost and Related Approaches

Sigrist [71] proposed GPBoost, extending MEGB by allowing Gaussian process components:
y i j = F ( x i j ) + z i j ⊤ b i + ξ ( s i j ) + ε i j ,
where ξ ( · ) ∼ GP ( 0 , k ( · , · ) ) is a Gaussian process. Estimation parallels MEGB but replaces the discrete random-effect block with a latent Gaussian field: at each boosting round, the tree ensemble F is updated on the working residuals, and the covariance parameters of the combined random-effect/GP term together with the latent values are obtained by maximizing the (Laplace-approximated, for non-Gaussian responses) marginal likelihood of the Gaussian process, with the function F profiled out exactly as in (34). The Fisher-scoring updates for the covariance parameters and the predictive equations coincide with those of a standard GP (Section 6.1), so GPBoost can be read as MEGB in which the subject random effects are generalized to a kernel-based spatial/temporal process; this added flexibility comes at the GP’s O ( n 3 ) cost unless sparse or Vecchia approximations are used. XGBoost [72] and LightGBM [73] provide scalable implementations adaptable through feature engineering and appropriate cross-validation [74,75]. The methods of this section are available in the R/Python packages MEGB (MEGB), gpboost (GPBoost), LongituRF (MERF), and BART/dbarts (BART).

5.3. BART for Longitudinal Data

BART [76] defines y i = ∑ k = 1 K g k ( x i ; T k , M k ) + ε i , where each g k is a regression tree with structure T k and leaf parameters M k . The prior on tree structure uses P ( split at node d ) = α ( 1 + d ) − γ with typical α = 0.95 , γ = 2 . Leaf parameters have the prior μ ℓ ∼ N ( 0 , σ μ 2 ) . Tan and Roy [77] developed semi-parametric BART incorporating random effects. BART provides posterior credible intervals via MCMC. Table 6 summarizes tree-based methods.
Table 6. Summary of tree-based and ensemble methods for longitudinal data.

5.4. Discussion of Tree-Based Methods

Tree-based ensemble methods bring several important advantages to longitudinal data analysis: they handle mixed covariate types naturally without requiring preprocessing such as dummy coding, are robust to outliers, capture nonlinear effects and complex interactions without explicit specification, and scale well computationally to large datasets [26]. The key methodological distinction among the approaches reviewed above lies in how they account for within-subject correlation. Naive application of standard random forests or gradient boosting treats each observation as independent, which can produce overly optimistic performance estimates during cross-validation and may lead to models that overfit to within-subject patterns rather than learning generalizable population-level relationships [26,74].
The MERF and MEGB frameworks represent principled solutions that decompose the response into a non-parametric population-level component and subject-specific random effects, alternating between estimating each component in an EM-like procedure [22,67]. This decomposition preserves the flexibility of tree-based methods for capturing complex mean structures while leveraging the well-established mixed-effects machinery for handling correlation. The MEGB framework [22] is particularly notable for integrating gradient boosting, which provides sequential function approximation with strong convergence guarantees, with BLUP-based random-effects estimation and REML-based variance-component updates, thereby addressing nonlinearity and correlation simultaneously (its empirical performance is discussed in Section 5.2).
BART provides a complementary Bayesian perspective that offers automatic regularization through tree priors and full posterior uncertainty quantification via MCMC [76]. The Bayesian framework is particularly attractive for longitudinal applications where uncertainty in predictions is as important as the point predictions themselves, such as clinical decision support. However, BART’s reliance on MCMC sampling can be computationally prohibitive for large datasets, and extensions to the longitudinal setting through random effects are still relatively recent [77].
A critical limitation shared by all tree-based methods is their inability to extrapolate beyond the observed covariate and time range, in contrast to parametric models that can project forward based on assumed functional forms. This limitation is particularly relevant for longitudinal prediction tasks where the goal is to forecast future trajectories based on observed data. Furthermore, while tree-based methods handle irregular time points through feature engineering (e.g., incorporating the time since the last observation as a covariate), they do not model the continuous-time dynamics as naturally as Gaussian processes or neural ODEs, which we discuss in subsequent sections. Their behavior degrades in a specific and predictable way under sparse or highly irregular sampling. Because splits are made on engineered time features rather than on a model of the underlying process, subjects with few observations contribute little to the partition structure and are effectively shrunk toward the population fit through the random-effect term. Subjects observed on idiosyncratic schedules, meanwhile, produce time features that are poorly populated, so the corresponding regions of covariate space are estimated from few examples and predictions there have high variance. In the extreme of one or two observations per subject, the random-effect component is weakly identified and MERF/MEGB reduce in practice to their correlation-ignoring counterparts. When the observation schedule is itself informative (e.g., sicker patients are measured more often), feature engineering cannot remove the resulting bias, and a model that represents the sampling process explicitly, such as a joint or continuous-time formulation, is preferable.

6. Kernel Methods and Gaussian Processes

Kernel methods provide a powerful non-parametric framework for modeling complex relationships by implicitly mapping data into high-dimensional feature spaces through the kernel trick. In the longitudinal data context, kernel methods, particularly Gaussian processes, are naturally suited to handle irregular time points, provide uncertainty quantification, and model smooth temporal trajectories. This section reviews GPs and SVMs adapted for longitudinal settings.

6.1. Gaussian Processes for Longitudinal Data

A GP [78] defines f ∼ GP ( m ( · ) , k ( · , · ) ) . Given observations y at inputs X , the posterior predictive is
f ( x ∗ ) ∣ y ∼ N k ∗ ⊤ ( K + σ 2 I ) − 1 y , k ∗ ∗ − k ∗ ⊤ ( K + σ 2 I ) − 1 k ∗ ,
where K i j = k ( x i , x j ) . For longitudinal data, the kernel decomposes to capture both temporal correlation and between-subject similarity:
k ( x i , t j ) , ( x i ′ , t j ′ ) = k sub ( i , i ′ ) · k t ( t j , t j ′ ) + k x ( x i , x i ′ ) ,
where k t is often the Matérn kernel: k ν ( r ) = 2 1 − ν Γ ( ν ) 2 ν r ℓ ν K ν 2 ν r ℓ , with the smoothness parameter ν controlling the differentiability of sample paths and length-scale ℓ governing the temporal correlation range [79]. The Matérn family offers a flexible choice: ν = 1 / 2 yields the exponential (Ornstein–Uhlenbeck) kernel, ν = 3 / 2 and ν = 5 / 2 provide once- and twice-differentiable paths, and  ν → ∞ recovers the squared exponential kernel.
The kernel hyperparameters η = ( ℓ , ν , σ 2 , … ) are not fixed in advance but estimated from the data, most commonly by maximizing the log marginal likelihood (type-II maximum likelihood, also called empirical Bayes):
log p ( y ∣ X , η ) = − 1 2 y ⊤ K η + σ 2 I − 1 y − 1 2 log | K η + σ 2 I | − n 2 log 2 π ,
whose three terms trade data fit against an automatic complexity penalty (the log-determinant), giving GPs a built-in Occam’s-razor effect. Optimization uses gradient-based methods (L-BFGS), exploiting closed-form derivatives ∂ / ∂ η k of (38); for non-Gaussian likelihoods, the marginal is intractable and is approximated by the Laplace method, expectation propagation, or variational inference, and a fully Bayesian treatment instead places priors on η and samples the posterior by MCMC. For the longitudinal kernel (37), these procedures jointly estimate the temporal length-scale, the between-subject similarity parameters, and the noise variance. GP models are implemented in GPy, GPflow, and GPyTorch in Python and the kernlab, GPfit, and mgcv (for GP-smooth terms) packages in R.
Schulam and Saria [80] developed a GP framework for individualized treatment effect estimation from longitudinal observational data, using a multi-output GP with a shared temporal kernel to model potential outcome trajectories under different treatment regimes. Futoma et al. [81] demonstrated scalable GP-RNN classifiers for clinical time-series prediction, achieving competitive performance with deep learning methods while providing calibrated uncertainty estimates. The primary computational limitation of GPs is their O ( n 3 ) scaling (from the inversion of K + σ 2 I ), which can be prohibitive for large longitudinal datasets. Sparse GP approximations [82,83], including inducing-point and stochastic variational methods, reduce this to O ( n m 2 ) with m ≪ n inducing points, trading a controllable approximation error for a large speed-up; the choice of m and the inducing locations governs the accuracy–cost balance, and too few inducing points can lead to overconfident posteriors. For purely temporal kernels, state-space reformulations achieve exact O ( n ) inference, making GPs feasible even for long clinical series.

6.2. Support Vector Machines

The support vector machine (SVM) [84] is a margin-based learner that, for classification, solves the regularized hinge-loss problem
min w , b 1 2 ∥ w ∥ 2 + C ∑ r 1 − ζ r ( w ⊤ ϕ ( u r ) + b ) + ,
where u r is the input for instance r, ζ r ∈ { − 1 , + 1 } its label, ϕ a feature map, and C a cost parameter; support vector regression replaces the hinge loss with an ε -insensitive loss. According to the representer theorem, the solution depends on the data only through inner products k ( u r , u r ′ ) = ϕ ( u r ) ⊤ ϕ ( u r ′ ) , so all modeling choices are encoded in the kernel. This is the key point for the longitudinal setting: how the subject’s repeated measurements and covariates enter the model is entirely determined by how the kernel is defined on them.
Two distinct strategies follow: In the first, each instance is a single observation and the input is the ordinary covariate vector u i j = ( x i j , t i j ) , optionally augmented with lagged responses; a standard kernel (linear, RBF, or polynomial) is then applied, and the within-subject correlation is handled outside the kernel (e.g., by subject-level cross-validation and clustered evaluation). In the second, more sophisticated strategy, each instance is an entire trajectory, and one defines a kernel between trajectories [85]:
k ( Y i , X i ) , ( Y j , X j ) = ∑ s ∑ t k 0 ( y i s , x i s ) , ( y j t , x j t ) · k t ( t i s , t j t ) ,
where the base kernel k 0 now acts on the joint (response, covariate) pairs and k t weights contributions by temporal proximity. We have written (40) explicitly in terms of both Y and X to resolve an ambiguity in the earlier formulation, which appeared to use the responses alone: in general, the predictor variables x are embedded in the base kernel k 0 , so the similarity measure combines response trajectories and covariate information; the response-only form is the special case k 0 ( ( y i s , x i s ) , ( y j t , x j t ) ) = k 0 ( y i s , y j t ) , appropriate only when prediction is based on the shape of the outcome trajectory itself (as in trajectory classification). The choice of kernel is the central modeling decision: an RBF kernel k 0 ( a , b ) = exp ( − ∥ a − b ∥ 2 / 2 h 2 ) captures smooth local similarity and is the usual default; a linear kernel is preferred when p is very large relative to n (text- or omics-derived features), because it is fast and rarely overfits; and global alignment or dynamic-time-warping kernels accommodate trajectories that are similar in shape but shifted or warped in time. The kernel bandwidth h and cost C are tuned by subject-level cross-validation. The natural niche of SVMs in longitudinal analysis is therefore moderate-sample classification or regression, where a meaningful similarity between subjects or trajectories can be encoded but a full probabilistic model (as in a GP) is unnecessary or too costly; their main limitations are the absence of native uncertainty quantification, sensitivity to kernel and hyperparameter choice, and  O ( n 2 ) – O ( n 3 ) training cost. Luts et al. [86] developed online SVM learning for longitudinal classification, enabling incremental model updates as new data arrive. SVMs are implemented in e1071 and kernlab in R, scikit-learn (SVC/SVR) and LIBSVM in Python, and PROC SVMACHINE in SAS.

6.3. Discussion of Kernel Methods

Kernel methods and GPs occupy a distinctive niche in the landscape of longitudinal data methods. Their key advantage is the provision of principled uncertainty quantification through the posterior predictive distribution, which is critically important in clinical and scientific applications where the reliability of predictions matters as much as their accuracy. GPs handle irregular time points natively through the continuous-time kernel, avoiding the need for imputation or discretization that other methods require. Furthermore, the choice of kernel function provides a natural mechanism for encoding domain knowledge—for instance, periodic kernels for seasonal patterns, or Matérn kernels with specific smoothness parameters matched to the expected regularity of the underlying process [78].
However, the O ( n 3 ) computational complexity of exact GP inference limits scalability to datasets with tens of thousands of observations. While sparse approximations and variational inference techniques have extended the practical applicability of GPs [83], they remain more computationally demanding than tree-based methods or neural networks for comparable dataset sizes. Additionally, the choice of kernel function, while providing interpretability, can also be restrictive: misspecified kernels can lead to poor posterior calibration, and the composition of kernels for complex longitudinal patterns requires expert knowledge.

7. Bayesian Approaches to Longitudinal Data

Bayesian methods provide a principled framework for incorporating prior knowledge, quantifying uncertainty, and performing model comparison in longitudinal data analysis. The Bayesian paradigm treats all unknown quantities—including model parameters, latent variables, and hyperparameters—as random variables governed by prior distributions, and it updates these to posterior distributions via Bayes’ theorem [15,87]. In this section, we review Bayesian approaches ranging from standard hierarchical mixed-effects models to sophisticated non-parametric frameworks, discussing both their mathematical underpinnings and practical considerations.

7.1. Bayesian Hierarchical Mixed Models

The Bayesian LME places priors on all parameters [15,87]:
Y i ∣ β , b i , σ 2 ∼ N ( X i β + Z i b i , σ 2 I n i ) , b i ∣ D ∼ N ( 0 , D ) , β ∼ N ( β 0 , Σ β ) , D ∼ IW ( ν , S ) , σ 2 ∼ IG ( a , b ) .
The posterior is p ( β , D , σ 2 , { b i } ∣ Y ) ∝ ∏ i = 1 N [ p ( Y i ∣ β , b i , σ 2 ) p ( b i ∣ D ) ] p ( β ) p ( D ) p ( σ 2 ) .
The full conditional for β is
β ∣ · ∼ N Σ β ∗ Σ β − 1 β 0 + σ − 2 ∑ i X i ⊤ ( Y i − Z i b i ) , Σ β ∗ ,
where Σ β ∗ = ( Σ β − 1 + σ − 2 ∑ i X i ⊤ X i ) − 1 . Gibbs sampling exploits these conjugate full conditionals. Stan [88] implements HMC/NUTS for non-conjugate models. Model comparison uses WAIC and LOO-CV [89].

7.2. Bayesian Variable Selection

Spike-and-slab priors [90] place
p ( β j ∣ γ j ) = ( 1 − γ j ) δ 0 ( β j ) + γ j N ( 0 , τ j 2 ) , γ j ∼ Bernoulli ( π j ) ,
yielding posterior inclusion probabilities P ( γ j = 1 ∣ Y ) . The horseshoe prior [91] provides continuous shrinkage:
β j ∣ λ j , τ ∼ N ( 0 , λ j 2 τ 2 ) , λ j ∼ C + ( 0 , 1 ) , τ ∼ C + ( 0 , τ 0 ) ,
where C + is the half-Cauchy. The heavy tails allow large signals to escape shrinkage. The regularized horseshoe [92] adds a slab component for improved tail behavior. The Bayesian Lasso [93] uses a Laplace prior representable as a scale mixture: β j ∣ σ j 2 ∼ N ( 0 , σ j 2 ) , σ j 2 ∼ Exp ( λ 2 / 2 ) .
Olaniran et al. [94] proposed hybrid random feature selection with recurrent neural networks, demonstrating synergy between Bayesian feature selection and deep learning for longitudinal health data such as diabetes prediction.

7.3. Bayesian Non-Parametric Methods

Dirichlet process mixtures (DPMs) [95] replace parametric random effects with b i ∣ G ∼ G , G ∼ DP ( α , G 0 ) . The stick-breaking representation [96]  G = ∑ k = 1 ∞ w k δ θ k , w k = v k ∏ ℓ < k ( 1 − v ℓ ) , v k ∼ Beta ( 1 , α ) , allows multimodal or skewed random effects [97]. Enriched Dirichlet processes [98] and dependent Dirichlet processes [99] enable trajectory clustering.

7.4. Discussion of Bayesian Methods

The Bayesian approaches reviewed above offer several distinctive advantages for longitudinal data analysis that complement the frequentist methods discussed in earlier sections. Most fundamentally, the Bayesian framework provides finite-sample uncertainty quantification through posterior credible intervals, in contrast to the asymptotic approximations underlying frequentist confidence intervals [87]. This is particularly valuable in longitudinal studies with small sample sizes (small N) or few observations per subject, where asymptotic approximations may be unreliable.
Bayesian variable selection through spike-and-slab priors provides a coherent framework for model uncertainty that naturally accounts for the multiplicity inherent in high-dimensional variable selection [90]. Posterior inclusion probabilities (PIPs) offer an interpretable and calibrated measure of variable importance that goes beyond the binary selected/not-selected output of penalized methods. Continuous shrinkage priors, particularly the horseshoe and its regularized variant, provide computationally efficient alternatives that achieve excellent empirical performance for sparse signals [91,92]. The heavy tails of the half-Cauchy prior allow large signals to escape shrinkage while concentrating small signals near zero, providing adaptive regularization that automatically adjusts to the underlying sparsity level.
Bayesian non-parametric methods through the Dirichlet process provide an elegant solution to the common problem of random-effects distribution misspecification [97]. When the true random-effects distribution is multimodal, skewed, or heavy-tailed, as often occurs in clinical populations with distinct patient subgroups, parametric normal assumptions can lead to biased fixed-effect estimates and incorrect standard errors [18]. DPM models automatically determine the appropriate complexity of the random-effects distribution from the data, providing both robustness and the ability to discover latent population substructure.
The primary practical limitation of Bayesian methods remains computational cost. MCMC sampling, while providing exact posterior inference in principle, can be slow to converge for complex hierarchical models with many latent variables. The development of efficient samplers in Stan [88] using Hamiltonian Monte Carlo and the No-U-Turn Sampler has substantially improved the situation, but fully Bayesian analysis of high-dimensional longitudinal data with thousands of covariates and hundreds of subjects remains computationally challenging. Variational inference offers a faster alternative by approximating the posterior with a tractable distribution, but at the cost of potentially underestimating posterior uncertainty. The choice between MCMC and variational inference involves a fundamental trade-off between computational speed and inferential accuracy that must be evaluated in the context of each specific application.

8. Deep Learning Architectures for Longitudinal Data

Deep learning has emerged as a transformative paradigm for modeling longitudinal data, offering the ability to learn hierarchical representations and capture complex nonlinear temporal dynamics directly from raw data without requiring explicit feature engineering or distributional assumptions. This section provides a comprehensive treatment of the major deep learning architectures that have been applied to or specifically designed for longitudinal data analysis, covering recurrent networks, convolutional approaches, attention-based Transformers, continuous-time neural differential equations, and generative models. For each architecture, we present the mathematical formulation, discuss key adaptations for the longitudinal setting, and critically evaluate strengths and limitations.
To orient the reader, Table 7 states, for each architecture, the specific longitudinal task and data structure to which it is best suited; the practical role of each method is not always evident from its formulation alone. In broad terms, RNNs/LSTMs/GRUs are sequence models for regularly sampled, ordered visits and are the default for next-step prediction and sequence classification; TCNs target the same regularly sampled sequences but prioritize parallel training and long effective memory; Transformers excel when long-range dependencies across many visits matter and parallel training is needed; neural ODEs/CDEs are designed specifically for irregularly and continuously sampled trajectories; and VAEs/generative models address representation learning, trajectory generation, imputation, and unsupervised clustering rather than direct supervised prediction.
Table 7. Deep learning architectures and the longitudinal tasks/data structures that they primarily address.

8.1. Recurrent Neural Networks

At time step j, a vanilla RNN [100] computes
h j = σ ( W h h j − 1 + W x x j + b h ) , y ^ j = W y h j + b y .
Training minimizes L = ∑ j L ( y j , y ^ j ) via backpropagation through time (BPTT). The gradient of L with respect to W h involves products ∏ k = j + 1 T ∂ h k / ∂ h k − 1 , which can vanish or explode exponentially.

8.1.1. Long Short-Term Memory Networks

LSTM [101] addresses vanishing gradients through gating:
f j = σ ( W f [ h j − 1 , x j ] + b f ) , i j = σ ( W i [ h j − 1 , x j ] + b i ) , o j = σ ( W o [ h j − 1 , x j ] + b o ) , c ˜ j = tanh ( W c [ h j − 1 , x j ] + b c ) , c j = f j ⊙ c j − 1 + i j ⊙ c ˜ j , h j = o j ⊙ tanh ( c j ) ,
where ⊙ is element-wise multiplication, f j is the forget gate, i j the input gate, and o j the output gate. The cell state c j provides a highway for gradient flow. Intuitively, the three gates are learned, data-dependent “valves”—each a sigmoid that outputs values in [ 0 , 1 ] and acts as a soft switch. The forget gate f j decides what fraction of the previous memory c j − 1 to retain (values near 1 keep long-range information, near 0 erase it); the input gate i j decides how much of the candidate update c ˜ j to write into memory; and the output gate o j decides how much of the (squashed) memory to expose as the hidden state h j used for prediction. Because the cell update c j = f j ⊙ c j − 1 + i j ⊙ c ˜ j is additive rather than multiplicative when f j ≈ 1 , gradients propagated back through many time steps neither vanish nor explode as readily as in the vanilla RNN, which is precisely why LSTM can learn dependencies spanning many visits. In a longitudinal clinical context, the forget gate can be read as the model deciding whether a past event (e.g., an earlier abnormal lab value) remains relevant to the current prediction.
Applications to longitudinal clinical data include Doctor AI [102] for clinical event prediction and scalable EHR deep learning [103]. Baytas et al. [104] proposed T-LSTM with time-aware memory decay:
c j − 1 ∗ = c j − 1 S + g ( Δ t j ) ⊙ c j − 1 T , g ( Δ t ) = 1 / log ( e + Δ t ) ,
where Δ t j = t j − t j − 1 and c S , c T decompose into short/long-term components.

8.1.2. Gated Recurrent Units

The GRU [105] simplifies LSTM with fewer parameters:
z j = σ ( W z [ h j − 1 , x j ] ) , r j = σ ( W r [ h j − 1 , x j ] ) , h j = ( 1 − z j ) ⊙ h j − 1 + z j ⊙ tanh ( W h [ r j ⊙ h j − 1 , x j ] ) .
GRU-D [106] incorporates time decay for missing values: γ j = exp ( − max ( 0 , W γ δ j + b γ ) ) , where δ j encodes the time since the last observation, and the hidden state decays as h ^ j − 1 = γ j ⊙ h j − 1 + ( 1 − γ j ) ⊙ h ¯ toward a learned empirical mean h ¯ .

8.2. Temporal Convolutional Networks

TCNs [107] apply causal dilated convolutions:
( x ∗ d w ) ( t ) = ∑ k = 0 K − 1 w k · x t − d · k ,
with dilation factors d ∈ { 1 , 2 , 4 , … , 2 L − 1 } . The receptive field grows as R = ( K − 1 ) ( 2 L − 1 ) + 1 , enabling exponential history coverage with linear depth. TCNs are fully parallelizable and have been applied to clinical prediction [108] and temporal phenotyping [109].

8.3. Transformer Models

The Transformer [24] uses multi-head self-attention:
Attention ( Q , K , V ) = softmax Q K ⊤ d k V ,
where Q = X W Q , K = X W K , V = X W V ∈ R T × d k . Multi-head attention is as follows:
MultiHead ( Q , K , V ) = [ head 1 ; … ; head H ] W O , head h = Attention ( Q W h Q , K W h K , V W h V ) .
Each Transformer layer applies multi-head attention followed by a position-wise feed-forward network with residual connections and layer normalization:
H ′ = LayerNorm ( X + MultiHead ( X , X , X ) ) , H ″ = LayerNorm ( H ′ + FFN ( H ′ ) ) ,
where FFN ( h ) = max ( 0 , h W 1 + b 1 ) W 2 + b 2 .
Key adaptations for longitudinal data include the following: Zerveas et al. [110] for multivariate time-series representation learning; Li et al. [111] for breaking memory bottlenecks; Song et al. [112] for clinical time series; Tipirneni and Reddy [113] (STraTS) for irregular clinical data; Horn et al. [114] (SeFT) treating irregular time series as sets; and Wen et al. [115] providing a comprehensive survey of Transformers for time series. A practical consideration specific to longitudinal records is sequence length: the full attention matrix in (50) is T × T , so both compute and memory grow quadratically as O ( T 2 ) in the number of visits T. For densely sampled records (e.g., ICU monitoring with thousands of time stamps), this quickly becomes the binding constraint. Efficient-attention variants reduce this cost: sparse-attention models such as Longformer and BigBird restrict attention to local windows plus a few global tokens, achieving near-linear cost; low-rank/kernelized approaches such as Linformer and Performer approximate the attention matrix; and Informer and related forecasting Transformers prune attention to the most informative queries. These variants make Transformers tractable for long longitudinal sequences at the cost of some loss of exact global interaction, and the appropriate choice depends on whether long-range dependencies are sparse (favoring windowed attention) or diffuse (favoring low-rank approximation).

8.4. Neural Ordinary Differential Equations

Neural ODEs [23] model continuous-time dynamics:
d h d t = f θ ( h ( t ) , t ) , h ( t 1 ) = h ( t 0 ) + ∫ t 0 t 1 f θ ( h ( t ) , t ) d t .
Before turning to the mathematics, it is worth stating plainly why a continuous-time formulation is advantageous for irregularly sampled longitudinal data. A discrete-time RNN advances its hidden state by one fixed “tick” per observation and, therefore, implicitly assumes equally spaced visits; when visits are irregular, one must either bin or interpolate the data (discarding timing information) or feed the gap Δ t as a feature (an approximation). A neural ODE instead defines the hidden state for every real-valued time through the differential Equation (53), so the state at any observation time is obtained simply by integrating the learned dynamics from the previous time to the current one. Irregular spacing is thus handled exactly and natively: a long gap between visits corresponds to integrating over a longer interval, with no interpolation or special-casing, and the model can be queried at arbitrary unobserved times for interpolation or forecasting. Gradients are computed via the adjoint method [23]:
d a d t = − a ( t ) ⊤ ∂ f θ ∂ h , d L d θ = − ∫ t 1 t 0 a ( t ) ⊤ ∂ f θ ∂ θ d t ,
where a ( t ) = d L / d h ( t ) is the adjoint state. This avoids storing intermediate states, with memory O ( 1 ) versus O ( L ) for L-layer residual networks.
Rubanova et al. [116] developed latent ODEs combining a VAE encoder with a neural ODE decoder for irregularly sampled time series. The generative model is as follows:
z t 0 ∼ N ( μ 0 , σ 0 2 I ) , z t = ODESolve ( f θ , z t 0 , t ) , y t ∼ p ( y ∣ z t ) .
De Brouwer et al. [117] proposed GRU-ODE-Bayes, combining GRU updates at observation times with ODE evolution between observations. Kidger et al. [118] developed neural CDEs:
h ( t ) = h ( t 0 ) + ∫ t 0 t N f θ ( h ( t ) ) d X ( t ) ,
where X ( t ) is a continuous path interpolating the data. Neural CDEs provide the mathematically natural continuous-time analog of RNNs with universal approximation properties for functions of irregular time series [118].
The continuous-time formulation, however, shifts the computational burden onto the numerical ODE solver, and this trade-off must be managed in practice. Each forward pass requires numerically integrating (53), and the cost is governed by the number of function evaluations the solver takes, which an adaptive solver (e.g., Dormand–Prince) increases automatically when the learned dynamics f θ become stiff or rapidly varying; training can therefore slow down unpredictably as f θ evolves. Numerical stability is a genuine concern: stiff dynamics can force prohibitively small step sizes or cause the integration to diverge, and the adjoint backward solve can accumulate error relative to the forward trajectory. Common mitigations include penalizing the complexity of the learned dynamics (e.g., regularizing ∥ f θ ∥ or its Jacobian) to encourage solver-friendly vector fields, choosing the solver and its tolerances to match the required accuracy, using fixed-step solvers when speed is paramount and the dynamics are benign, and adopting neural CDEs or ODE–RNN hybrids that reset the state at observations to limit error accumulation. In short, neural ODEs buy exact handling of irregular sampling at the price of solver-dependent training cost and stability that the practitioner must actively control.

8.5. Variational Autoencoders and Generative Models

The VAE [119] maximizes the ELBO:
log p ( Y ) ≥ E q ( z ∣ Y ) [ log p ( Y ∣ z ) ] ︸ reconstruction − KL ( q ( z ∣ Y ) ∥ p ( z ) ) ︸ regularization .
A longitudinal VAE (L-VAE) [120] disentangles static and dynamic factors: z i = [ z i S , z i D ( t ) ] , with z i S time-invariant and z i D ( t ) evolving via a GP or neural ODE. SOM-VAE [121] combines VAE with self-organizing maps for time-series clustering.

8.6. Graph Neural Networks

GNNs [122] learn on graphs via message passing:
h v ( ℓ + 1 ) = UPDATE h v ( ℓ ) , AGG { h u ( ℓ ) : u ∈ N ( v ) } .
Temporal graph networks [123] handle dynamic graphs. Choi et al. [124] developed MiME for multilevel EHR embedding.
Table 8 compares deep learning architectures.
Table 8. Comparison of deep learning architectures for longitudinal data.

8.7. Discussion of Deep Learning Methods

Deep learning methods have dramatically expanded the analytical toolkit for longitudinal data, enabling the modeling of complex nonlinear temporal dynamics that are beyond the reach of classical statistical methods. The choice among architectures involves trade-offs along several critical dimensions that practitioners must carefully evaluate [28].
RNNs, particularly LSTMs and GRUs, remain the most natural architectural choice for sequential longitudinal data and have the largest body of evidence in clinical applications [102,103]. Their sequential processing naturally captures temporal dependencies, and the gating mechanisms effectively address the vanishing gradient problem that plagues vanilla RNNs. However, the sequential computation bottleneck limits training parallelization and can make LSTMs impractical for very long sequences. Furthermore, standard RNNs require equally spaced time steps, necessitating adaptations such as T-LSTM [104] or GRU-D [106] for the irregularly sampled data that are common in clinical longitudinal studies.
Transformers offer a compelling alternative by replacing sequential processing with self-attention, enabling direct computation of dependencies between any pair of time points regardless of their temporal distance [24]. This architectural choice eliminates the sequential bottleneck and allows for full parallelization during training. However, the quadratic computational complexity O ( T 2 ) of self-attention with respect to sequence length T can be prohibitive for very long longitudinal records. Efficient attention variants, including linear attention, sparse attention, and local attention patterns, have been proposed to address this limitation, although they often sacrifice some modeling capability. Transformer-based approaches for clinical time series, including STraTS [113] and SeFT [114], demonstrate that specialized positional encodings and set-based formulations can effectively handle the irregular sampling characteristic of longitudinal medical data.
Neural ODEs and their extensions (latent ODEs, neural CDEs) represent the most mathematically principled approach to irregularly sampled longitudinal data [23,116,118], handling arbitrary observation times through a continuous-time formulation without interpolation or discretization (Section 8.4). Their main practical cost, as detailed there, is the numerical ODE solving required at each forward pass, which trades accuracy against speed; neural CDEs [118] mitigate this by using the data path to drive the state evolution, providing a continuous-time analog of RNNs with universal approximation guarantees.
Beyond the architecture-specific trade-offs discussed above, deep learning methods for longitudinal data share several practical limitations that, in our reading, the literature tends to underemphasize relative to their predictive successes. First, they are data-hungry: the number of parameters typically far exceeds that of classical models, so reliable training requires many subjects, and in the small-N regime common in clinical cohorts these models can be outperformed by well-specified mixed models or penalized methods. Second, reproducibility is fragile: results can vary appreciably with random initialization, mini-batch ordering, software/hardware versions, and early-stopping choices, and reported gains are sometimes not robust to careful re-evaluation. Third, performance is highly sensitive to hyperparameters (architecture depth and width, learning-rate schedule, regularization, sequence handling), so honest comparison requires the same subject-level cross-validation and tuning budget for the deep model and its baselines; failing to tune baselines comparably is a frequent source of overstated improvements. Fourth, naive observation-level data splitting leaks subject information and inflates apparent accuracy, exactly as discussed for penalized and tree-based methods. We therefore recommend that deep learning results for longitudinal data be reported with fixed seeds and code, subject-level splits, calibrated uncertainty, and strong, equally tuned classical baselines.
A further critical challenge common to all deep learning approaches for longitudinal data is interpretability. While methods such as attention weights, gradient-based saliency maps, and post hoc explanation techniques (e.g., SHAP [125], LIME [126]) provide some insight into model behavior, deep learning models remain substantially less interpretable than classical statistical models where coefficient estimates have direct causal or associational interpretations [127]. For high-stakes applications such as clinical decision support, this opacity creates a tension between predictive performance and trustworthiness. The development of inherently interpretable deep learning architectures for longitudinal data combining the temporal modeling capabilities of neural networks with the transparency of additive or linear models represents one of the most important open problems in this field [128,129].

9. Specialized Topics

9.1. Joint Models for Longitudinal and Survival Data

Joint models (JMs) [130,131] simultaneously model longitudinal and time-to-event outcomes:
y i ( t ) = x i ( t ) ⊤ β + z i ( t ) ⊤ b i + ε i ( t ) , ( longitudinal ) h i ( t ∣ M i ( t ) ) = h 0 ( t ) exp ( γ ⊤ w i + α m i ( t ) ) , ( survival )
where m i ( t ) = x i ( t ) ⊤ β + z i ( t ) ⊤ b i is the true trajectory and α quantifies the association. The joint likelihood is
L = ∏ i = 1 N ∫ ∏ j = 1 n i f ( y i j ∣ b i ) h i ( T i ) δ i S i ( T i ) f ( b i ) d b i ,
where δ i is the event indicator and S i is the survival function. JMbayes [132] and JM [133] provide R implementations. Hickey et al. [134] reviewed multivariate extensions. Hao et al. [135] applied deep learning to joint survival analysis. Joint models are particularly important in clinical settings where dropout from the study (e.g., death) is informative about the longitudinal outcome (e.g., a biomarker that deteriorates before death), and ignoring this dependence can lead to severely biased estimates of the longitudinal trajectory.

9.2. Functional Data Analysis

FDA [136] treats longitudinal observations as discrete realizations of smooth underlying functions of time, providing a fundamentally different perspective from discrete-time models. Each subject’s trajectory is represented as y i ( t ) = ∑ k = 1 K c i k ϕ k ( t ) + ε i ( t ) , where { ϕ k } are basis functions (e.g., B-splines, Fourier, or wavelets) and c i k are subject-specific coefficients. Functional PCA [137] identifies the dominant modes of variation in the population:
C ( s , t ) = ∑ k = 1 ∞ λ k ϕ k ( s ) ϕ k ( t ) , c ^ i k = ∫ y i ( t ) ϕ ^ k ( t ) d t ,
where λ k are eigenvalues and ϕ k eigenfunctions of the covariance operator. FDA methods provide a natural framework for analyzing trajectories as coherent functional objects rather than as collections of discrete time points, and the connection to reproducing kernel Hilbert spaces provides a rich theoretical foundation [138,139]. Functional random forests [140] extend tree-based methods to functional covariates, bridging the gap between FDA and machine learning paradigms.

9.3. Causal Inference with Longitudinal Data

Estimating causal effects from longitudinal observational data is a fundamental challenge, particularly in the presence of time-varying confounders affected by prior treatment—a setting where standard regression adjustment produces biased estimates [12]. Marginal structural models with inverse probability of treatment weighting (IPTW) address this challenge:
w i ( t ) = ∏ k = 1 t P ( A k ∣ A ¯ k − 1 ) P ( A k ∣ A ¯ k − 1 , L ¯ k ) ,
where A ¯ k is the treatment history and L ¯ k is the covariate history. Targeted maximum likelihood estimation (TMLE) [141] and longitudinal TMLE (LTMLE) [142] provide doubly robust estimation, combining machine learning for nuisance parameter estimation with semi-parametric efficiency theory to construct estimators that are consistent if either the outcome model or the treatment model is correctly specified. This doubly robust property provides a formal robustness guarantee that is absent in purely prediction-oriented ML approaches.
Machine learning has been increasingly integrated into these causal frameworks. Lim [143] developed recurrent marginal structural networks combining LSTM with IPTW, demonstrating the integration of deep learning with established causal inference methodology. Bica et al. [144] proposed counterfactual recurrent networks for estimating individualized treatment effects over time, using domain adversarial training to balance representations across treatment groups. These works exemplify the growing convergence of machine learning and causal inference, which holds substantial promise for moving beyond prediction to actionable insight in longitudinal studies.

9.4. Missing Data and Imputation

Missing data are pervasive in longitudinal studies and can be classified by mechanism: missing completely at random (MCAR), missing at random (MAR), or missing not at random (MNAR) [11]. The choice of mechanism has profound implications for the validity of the analysis. Because missingness is so central to longitudinal analysis, we make the mechanisms and their methodological consequences explicit. Under MCAR, the probability of being missing is independent of both observed and unobserved data, so a complete-case analysis is unbiased (though inefficient); MCAR is rarely plausible in practice. Under MAR, missingness may depend on observed data (earlier responses, covariates) but not, conditionally, on the unobserved values themselves; this is the assumption under which likelihood-based methods (LME/GLMM fit by maximum likelihood) and proper multiple imputation give valid inference without modeling the missingness process—a major practical reason to prefer likelihood methods over GEE, whose standard form requires MCAR unless inverse-probability weighting is added. Under MNAR, missingness depends on the unobserved values even given the observed data (e.g., patients drop out because their unrecorded outcome worsened); no method is valid without explicitly modeling the missingness, and analysts must turn to pattern-mixture models, selection models [145], or shared-parameter/joint models (Section 9.1), recognizing that MNAR conclusions are inherently sensitivity-dependent and untestable from the observed data alone. The practical upshot is a hierarchy: confirm whether MAR is defensible from the design; if so, use full-information maximum likelihood or multiple imputation; if MNAR is suspected (notably with informative dropout), use joint or selection models and report sensitivity analyses across plausible mechanisms. Classical approaches include multiple imputation [146,147], which creates multiple completed datasets and combines the results using Rubin’s rules; likelihood-based methods [8], which are valid under MAR when the model is correctly specified; and pattern-mixture or selection models [145] for MNAR data.
Machine learning methods have introduced powerful new imputation approaches. MissForest [148] uses random forests for iterative imputation, handling mixed variable types naturally. BRITS [149] employs bidirectional RNNs for imputation of multivariate clinical time series, leveraging temporal patterns in both forward and backward directions. NAOMI [150] uses non-autoregressive neural networks for irregularly sampled temporal data, and GAIN [151] provides a GAN-based framework where the generator imputes missing values and the discriminator distinguishes observed from imputed values. Luo et al. [152] demonstrated that combining GRU-based imputation with downstream prediction outperforms the traditional two-stage impute-then-predict approach, suggesting that joint optimization of imputation and prediction objectives leads to better overall performance.

9.5. Clustering Longitudinal Trajectories

Identifying subgroups of subjects with similar temporal trajectories is an important analytical objective in many applications, from discovering patient phenotypes in clinical studies to identifying developmental trajectories in educational research. Classical model-based approaches include growth mixture models (GMMs) [153] and latent class growth analysis (LCGA) [154], which assume that the population comprises a finite number of latent classes, each with its own trajectory model. The number of classes is typically selected using information criteria such as the BIC or AIC, although this selection remains challenging and subjective in practice.
Machine learning alternatives offer increased flexibility for trajectory clustering. Dynamic time warping (DTW)-based clustering [155] provides a distance-based approach that can handle temporal misalignment between trajectories. Deep temporal clustering methods [156] use sequence-to-sequence autoencoders to learn trajectory representations jointly optimized with clustering objectives. VaDE [157] extends VAEs with a Gaussian mixture prior for simultaneous clustering and generation. Lee et al. [158] applied multimodal deep learning to Alzheimer’s disease trajectory clustering, demonstrating clinically meaningful subgroups that would not be identifiable with traditional methods. These approaches illustrate how modern computational methods can uncover latent structure in longitudinal data that informs personalized intervention strategies.

10. Synthesis: Comparison and Practical Guidance

The preceding sections treated each method family on its own terms. Because a review of this breadth is most useful when it also helps a reader choose among methods, this section draws the threads together. We first give a schematic map of how the families relate (Figure 1), then a single cross-cutting comparison of the families against the five key challenges plus interpretability and uncertainty quantification (Table 9), then concrete selection guidance as a function of sample size, dimensionality, and objective (Table 10), and finally a set of representative medical/biostatistical scenarios that illustrate where each family has proven effective or shown its limits. We stress that the entries below summarize qualitative tendencies reported in the cited literature and the analysis of the preceding sections; they are not the output of a new benchmark experiment, and the absence of a unified empirical comparison on common datasets is itself an important limitation of the current state of the field (Section 12).
Figure 1. Schematic relationship among the method families reviewed. The three top-level families branch from the shared problem of correlated repeated measures; penalized/Bayesian regularization bridges classical statistics and classical ML, while modern hybrids (e.g., MERF, MEGB, GPBoost, Bayesian deep learning) combine mixed-effects structure with flexible function approximation.
Table 9. Cross-cutting comparison of method families against the five key challenges plus interpretability and uncertainty quantification (UQ). Ratings (H high, M moderate, L low) are qualitative and reflect typical behavior; “adapt.” denotes a capability available only through explicit adaptation.
Table 10. Default method recommendations by analytical situation. These are starting points, not prescriptions; the final choice should be validated by subject-level cross-validation and checked against assumptions.

10.1. Cross-Cutting Comparison

Table 9 contrasts the families along seven dimensions: handling of within-subject correlation, native support for irregular sampling, principled handling of missing data, suitability for high-dimensional ( p ≫ N ) data, scalability to large N, interpretability, and uncertainty quantification (UQ). Ratings are coarse (high/moderate/low) and reflect the typical, rather than best-possible, behavior of each family.
Two patterns stand out: First, no family dominates; the methods strongest in interpretability and uncertainty (mixed models, GPs, Bayesian hierarchies) are weakest in scalability and high-dimensionality, whereas the most scalable and flexible methods (ensembles, deep networks) are weakest in interpretability and native uncertainty. Second, irregular sampling cleanly separates the continuous-time methods (GPs, neural ODEs/CDEs), which handle it by construction, from the discrete-time methods (RNNs, TCNs, trees), which require adaptation.

10.2. Method Selection Guidance

Translating Table 9 into actionable advice, Table 10 gives default recommendations indexed by the analyst’s situation. The dominant determinants are the analytical goal (inference vs. prediction), the dimensional regime, the sample size, and whether sampling is regular.

10.3. Illustrative Medical and Biostatistical Scenarios

We summarize four representative scenarios that ground the guidance above in the kinds of data analysts actually encounter, drawing on the reported applications cited throughout the review. (i) Clinical Trial with Scheduled Visits and a Continuous Biomarker (tens to low hundreds of subjects, balanced design): The LME with REML remains the method of choice, because inference on the treatment-by-time interaction, interpretability, and calibrated standard errors are paramount and the nonlinearity is mild; here, flexible ML methods rarely justify their cost and weaker inference. (ii) Electronic Health Records for Risk Prediction (tens of thousands of patients, many irregular visits, mixed data types): Deep sequence models (LSTMs, Transformers) and continuous-time models excel because the goal is predictive accuracy at scale and the data are too large and irregular for exact GPs, as illustrated by Doctor AI and scalable EHR deep learning [102,103]; calibrated uncertainty and subject-level evaluation remain essential. (iii) High-Dimensional Longitudinal Omics ( p ≫ N , few subjects, repeated molecular profiles): Penalized mixed models, Bayesian shrinkage, and mixed-effect boosting are appropriate because variable selection under correlation is the central problem—the regime that motivated MEGB [22]; pure deep learning is usually infeasible at such small N. (iv) Disease-Progression Modeling with Informative Dropout (e.g., a biomarker that deteriorates before death): Joint longitudinal–survival models are required because ignoring the dependence between the dropout process and the trajectory biases the estimated progression—exactly the setting for which joint models were developed [130]. These scenarios reinforce the central message of Table 9: method choice should follow from the data regime and scientific question, rather than from the novelty of the method.

11. Emerging Directions and Open Problems

The rapid methodological development surveyed in previous sections has opened several promising research frontiers. In this section, we discuss six emerging directions that we believe will shape the future of computational methods for longitudinal data analysis.

11.1. Federated Learning for Longitudinal Data

Federated learning [159] enables collaborative model training across decentralized data sources without sharing raw data, addressing privacy concerns that are particularly acute for longitudinal health data. In the longitudinal context, federated learning faces unique challenges: subjects may have data distributed across multiple institutions (horizontal partitioning), or the same institution may hold different features for the same subjects over time (vertical partitioning). Dayan et al. [160] demonstrated federated learning for COVID-19 outcome prediction using EHR data from 20 hospitals across multiple countries, showing that federated models achieved performance comparable to that of centrally trained models while preserving data privacy. Mosaiyebzadeh et al. [161] surveyed privacy-enhancing technologies for federated learning in healthcare, including approaches that address the heterogeneity of longitudinal data across sites through personalized federated learning, which allows site-specific model adaptation while sharing global knowledge. The development of federated versions of longitudinal-specific methods, such as federated mixed-effects models or federated neural ODEs, remains an important open problem.

11.2. Transfer Learning and Foundation Models

Transfer learning [162] leverages pre-trained models for related tasks, and foundation models—large pre-trained models adaptable to diverse downstream tasks—are beginning to emerge for temporal data. EHRSHOT [163] provides a benchmark for evaluating few-shot learning on clinical time series using foundation models pre-trained on large EHR databases. Lag-Llama [164] demonstrates foundation model capabilities for probabilistic time-series forecasting through zero-shot and few-shot adaptation. These developments suggest a future where large-scale pre-trained temporal models can be efficiently adapted for specific longitudinal data analysis tasks, potentially democratizing access to powerful temporal models and reducing the data requirements for individual studies. However, critical questions remain about the transferability of temporal representations across domains with fundamentally different temporal dynamics.

11.3. Interpretability and Explainability

The development of interpretable ML models for longitudinal data is critical for adoption in high-stakes domains such as healthcare and criminal justice. Post hoc methods including SHAP [125] and LIME [126] provide some interpretability but can be unreliable and inconsistent across explanation instances [127]. Inherently interpretable models—including generalized additive models (GAMs) [165], neural additive models (NAMs) [128], and explainable boosting machines (EBMs) [129]—offer a promising alternative, providing accurate predictions with built-in interpretability through additive structure. Chang et al. [166] proposed attention-based explanations for clinical RNNs that highlight which input features and time points contribute most to predictions. The development of inherently interpretable architectures specifically designed for longitudinal data by combining temporal modeling capabilities with transparency represents a key open problem at the intersection of machine learning and longitudinal analysis.

11.4. Uncertainty Quantification

Reliable uncertainty estimates are essential for informed decision-making based on longitudinal predictions, yet many high-performing ML methods provide only point predictions without calibrated confidence measures. Bayesian deep learning approaches, including MC dropout [167] and deep ensembles [168], provide computationally tractable uncertainty estimates for neural network predictions. Conformal prediction [169] provides distribution-free prediction intervals with finite-sample coverage guarantees, requiring only the assumption of exchangeability. Stankeviciute et al. [170] developed conformal time-series forecasting methods that maintain valid coverage even with temporal dependence by carefully adapting the exchangeability assumption. The integration of rigorous uncertainty quantification into ML methods for longitudinal data—ensuring that prediction intervals are calibrated, informative, and computationally feasible—remains an active and important research frontier.

11.5. Multimodal Longitudinal Data

Modern longitudinal studies increasingly collect multiple data modalities, including clinical measurements, imaging, genomics, wearable sensor data, and free-text clinical notes, over time for the same subjects. Multimodal fusion methods that can integrate these heterogeneous longitudinal data streams while preserving their temporal structure represent an important emerging direction [171]. Multimodal Transformers [172] and attention-based fusion architectures provide promising frameworks for learning joint representations across modalities. Xu et al. [173] explored deep multimodal learning for medical imaging combined with longitudinal clinical data. Substantial challenges remain in handling modality-specific missingness patterns, varying temporal resolutions across modalities (e.g., daily lab values versus annual imaging), and the curse of dimensionality inherent in combining multiple high-dimensional data sources.

11.6. Online and Streaming Analysis

In many applications, longitudinal data arrive continuously rather than in fixed batches, requiring online learning algorithms that can update model parameters incrementally without reprocessing the entire historical dataset. Online mixed-effects models [86], sequential Bayesian updating [174], and continual learning approaches from deep learning [175] provide different strategies for streaming longitudinal data. The key challenges include catastrophic forgetting, where updating on new data causes loss of previously learned patterns; concept drift, where the data-generating process itself changes over time; and maintaining computational efficiency as the cumulative data volume grows. Designing algorithms that can adaptively maintain and update longitudinal models in real time, while preserving the statistical validity of inference, remains a substantial open problem.

12. Conclusions

This comprehensive review has surveyed the broad landscape of mathematical and computational methods for longitudinal data analysis, spanning classical statistical models, penalized regression, tree-based ensembles, kernel methods, Bayesian approaches, and modern deep learning architectures. The field is characterized by remarkable methodological diversity, driven by the fundamental tension between the need for flexible, powerful models that can capture complex temporal dynamics and the equally important need for interpretable, reliable methods that properly account for the unique correlation structure of longitudinal data.
Several key themes emerge from this review. First, there has been a decisive shift toward more flexible, data-driven approaches—particularly deep learning architectures such as LSTMs, Transformers, and neural ODEs, which have demonstrated impressive predictive performance across diverse application domains. However, this shift has been accompanied by growing and legitimate concerns about interpretability, reproducibility, and the reliability of predictions in high-stakes settings where the consequences of errors can be severe. Second, the proper handling of irregularly sampled data remains a critical methodological challenge that fundamentally differentiates methods: while Gaussian processes and neural ODEs handle irregular sampling natively through their continuous-time formulation, discrete-time methods—including standard RNNs, TCNs, and tree-based approaches—require adaptation through feature engineering, interpolation, or architectural modifications such as T-LSTM and GRU-D.
Third, high-dimensional longitudinal data necessitate methods that can perform variable selection or dimensionality reduction while respecting the temporal correlation structure, a challenge addressed by penalized mixed models, mixed-effect gradient boosting [22], Bayesian shrinkage priors including horseshoe and spike-and-slab, and attention-based deep learning architectures. Fourth, the integration of multiple methodological paradigms has proven particularly fruitful: for example, MERF and MEGB combine the flexibility of machine learning with the principled correlation handling of mixed-effects models, while Bayesian deep learning combines the representational power of neural networks with the uncertainty quantification of the Bayesian framework.
Looking forward, we identify several critical directions for future research. The development of inherently interpretable deep learning architectures for longitudinal data that match the predictive performance of black-box models while providing clinically or scientifically meaningful explanations remains the most pressing open problem. The integration of rigorous causal inference methodology with modern ML architectures holds promise for moving beyond association and prediction to actionable scientific insight. Federated and privacy-preserving methods will be essential as longitudinal health data become increasingly distributed across institutions with heterogeneous populations and data collection protocols. Foundation models pre-trained on large-scale longitudinal datasets may democratize access to powerful temporal models, but questions about transferability, fairness, and robustness require careful investigation. Finally, rigorous benchmarking on standardized datasets with established evaluation protocols, including both predictive accuracy and calibration of uncertainty estimates, will be essential for objective comparison and cumulative scientific progress.
Beyond these methodological directions, the field faces a set of open challenges that the present synthesis brings into focus. The most consequential is the near-absence of unified, fair empirical comparison: methods are typically introduced on bespoke datasets with inconsistent evaluation protocols, so the relative performance of, say, a mixed-effect boosting model and a Transformer on the same irregularly sampled cohort is largely unknown. Establishing shared longitudinal benchmarks with standardized splits (crucially, subject-level rather than observation-level), reporting of calibration alongside accuracy, and equally tuned baselines would do more to clarify practice than any single new method. Related open problems include principled model selection that respects within-subject correlation, scalable yet calibrated uncertainty quantification for flexible models, robustness to covariance and missingness misspecification, and the integration of interpretability and causal structure into high-capacity architectures. We regard the comparison and guidance offered in Section 10 as a provisional map of current understanding that such benchmarking efforts should ultimately refine or overturn.
As data continue to grow in volume, complexity, and dimensionality across scientific domains, the development of robust, scalable, and trustworthy computational methods for longitudinal data will remain a central challenge at the intersection of statistics, machine learning, and domain science. We hope that this review provides both a technical reference and a strategic roadmap for researchers navigating this rich and rapidly evolving methodological landscape.

Author Contributions

Conceptualization, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; methodology, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; software, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; validation, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; formal analysis, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; investigation, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; resources, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; data curation, O.R.O.; writing—original draft preparation, O.R.O.; writing—review and editing, O.R.O., S.A.K., A.R.R.A., M.H.A., N.M.A., and A.A.A.; visualization, O.R.O.; supervision, O.R.O.; project administration, O.R.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research work was funded by Umm Al-Qura University, Saudi Arabia, under grant number 26UQU4320088GSSR04.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

The authors extend their appreciation to Umm Al-Qura University, Saudi Arabia for funding this research work through grant number: 26UQU4320088GSSR04.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
AR(1)First-Order Autoregressive
BARTBayesian Additive Regression Trees
BLUPBest Linear Unbiased Predictor
BNPBayesian Non-Parametric
CDEControlled Differential Equation
CSCompound Symmetry
CVCross-Validation
DPMDirichlet Process Mixture
DTWDynamic Time Warping
EHRElectronic Health Record
ENElastic Net
FDAFunctional Data Analysis
FPCAFunctional Principal Component Analysis
GAMMGeneralized Additive Mixed Model
GBMGradient-Boosting Machine
GEEGeneralized Estimating Equations
GLMMGeneralized Linear Mixed Model
GMMGrowth Mixture Model
GNNGraph Neural Network
GPGaussian Process
GRUGated Recurrent Unit
IPTWInverse Probability of Treatment Weighting
JMJoint Model
LCGALatent Class Growth Analysis
LMELinear Mixed-Effects
LSTMLong Short-Term Memory
MARMissing At Random
MCARMissing Completely At Random
MCMCMarkov Chain Monte Carlo
MEGBMixed-Effect Gradient Boosting
MERFMixed-Effects Random Forest
MLMachine Learning
MNARMissing Not At Random
Neural ODENeural Ordinary Differential Equation
PGEEPenalized Generalized Estimating Equations
PIPPosterior Inclusion Probability
QIFQuadratic Inference Function
REMLRestricted Maximum Likelihood
RNNRecurrent Neural Network
SCADSmoothly Clipped Absolute Deviation
SVMSupport Vector Machine
TCNTemporal Convolutional Network
TMLETargeted Maximum Likelihood Estimation
UQUncertainty Quantification
VAEVariational Autoencoder

References

  1. Wang, P.; Li, Y.; Reddy, C.K. Machine Learning for Survival Analysis: A Survey. ACM Comput. Surv. 2019, 51, 110. [Google Scholar] [CrossRef] [Scilit]
  2. Matchett, K.B.; Lynam-Lennon, N.; Watson, R.W.; Brown, J.A.L. Advances in Precision Medicine: Tailoring Individualized Therapies. Cancers 2017, 9, 146. [Google Scholar] [CrossRef] [Scilit]
  3. Wooldridge, J.M. Econometric Analysis of Cross Section and Panel Data, 2nd ed.; MIT Press: Cambridge, MA, USA, 2010. [Google Scholar]
  4. Collins, F.S.; Varmus, H. A New Initiative on Precision Medicine. N. Engl. J. Med. 2015, 372, 793–795. [Google Scholar] [CrossRef] [Scilit]
  5. Poldrack, R.A.; Laumann, T.O.; Koyejo, O.; Gregory, B.; Hover, A.; Chen, M.Y.; Gorgolewski, K.J.; Luci, J.; Joo, S.J.; Boyd, R.L.; et al. Long-term Neural and Physiological Phenotyping of a Single Human. Nat. Commun. 2015, 6, 8885. [Google Scholar] [CrossRef] [Scilit]
  6. Turchin, P.; Currie, T.E.; Whitehouse, H.; François, P.; Feeney, K.; Mullins, D.; Hoyer, D.; Collins, C.; Grohmann, S.; Savage, P.; et al. Quantitative Historical Analysis Uncovers a Single Dimension of Complexity. Proc. Natl. Acad. Sci. USA 2018, 115, E144–E151. [Google Scholar] [CrossRef] [Scilit]
  7. He, L.; Davila-Velderrain, J.; Sumida, T.S.; Hafler, D.A.; Kellis, M.; Kulminski, A.M. NEBULA is a fast negative binomial mixed model for differential or co-expression analysis of large-scale multi-subject single-cell data. Commun. Biol. 2021, 4, 629–646. [Google Scholar] [CrossRef] [Scilit]
  8. Laird, N.M.; Ware, J.H. Random-Effects Models for Longitudinal Data. Biometrics 1982, 38, 963–974. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Diggle, P.J.; Heagerty, P.; Liang, K.-Y.; Zeger, S.L. Analysis of Longitudinal Data, 2nd ed.; Oxford University Press: Oxford, UK, 2013. [Google Scholar]
  10. Lin, H.; Scharfstein, D.O.; Rosenheck, R.A. Analysis of Longitudinal Data with Irregular, Outcome-Dependent Follow-Up. J. R. Stat. Soc. B 2004, 66, 791–813. [Google Scholar] [CrossRef] [Scilit]
  11. Little, R.J.A.; Rubin, D.B. Statistical Analysis with Missing Data, 3rd ed.; Wiley: Hoboken, NJ, USA, 2019. [Google Scholar]
  12. Robins, J.M.; Hernán, M.A.; Brumback, B. Marginal Structural Models and Causal Inference in Epidemiology. Epidemiology 2000, 11, 550–560. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Bühlmann, P.; van de Geer, S. Statistics for High-Dimensional Data: Methods, Theory and Applications; Springer: Berlin, Germany, 2011. [Google Scholar]
  14. Fan, J.; Lv, J. Sure Independence Screening for Ultrahigh Dimensional Feature Space. J. R. Stat. Soc. B 2008, 70, 849–911. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Goldstein, H. Multilevel Statistical Models, 4th ed.; Wiley: Hoboken, NJ, USA, 2011. [Google Scholar]
  16. Liang, K.-Y.; Zeger, S.L. Longitudinal Data Analysis Using Generalized Linear Models. Biometrika 1986, 73, 13–22. [Google Scholar] [CrossRef]
  17. Fitzmaurice, G.M.; Laird, N.M.; Ware, J.H. Applied Longitudinal Analysis, 2nd ed.; Wiley: Hoboken, NJ, USA, 2011. [Google Scholar]
  18. Verbeke, G.; Lesaffre, E. The Effect of Misspecifying the Random-Effects Distribution. Comput. Stat. Data Anal. 1997, 23, 541–556. [Google Scholar] [CrossRef] [Scilit]
  19. Hedeker, D.; Gibbons, R.D. Longitudinal Data Analysis; Wiley: Hoboken, NJ, USA, 2006. [Google Scholar]
  20. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning, 2nd ed.; Springer: New York, NY, USA, 2009. [Google Scholar]
  21. Bishop, C.M. Pattern Recognition and Machine Learning; Springer: New York, NY, USA, 2006. [Google Scholar]
  22. Olaniran, O.R.; Olaniran, S.F.; Allohibi, J.; Alharbi, A.A.; Alharbi, N.M. Mixed Effect Gradient Boosting for High-Dimensional Longitudinal Data. Sci. Rep. 2025, 15, 30927. [Google Scholar] [CrossRef] [Scilit]
  23. Chen, R.T.Q.; Rubanova, Y.; Bettencourt, J.; Duvenaud, D.K. Neural Ordinary Differential Equations. In Proceedings of the 32nd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 6571–6583. [Google Scholar]
  24. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 5998–6008. [Google Scholar]
  25. Fitzmaurice, G.M.; Davidian, M.; Verbeke, G.; Molenberghs, G. (Eds.) Longitudinal Data Analysis; CRC Press: Boca Raton, FL, USA, 2008. [Google Scholar]
  26. Hu, J.; Szymczak, S. A Review on Longitudinal Data Analysis with Random Forest. Brief. Bioinform. 2023, 24, bbad002. [Google Scholar]
  27. Shickel, B.; Tighe, P.J.; Bihorac, A.; Rashidi, P. Deep EHR: A Survey of Recent Advances in Deep Learning for EHR Analysis. IEEE J. Biomed. Health Inform. 2018, 22, 1589–1604. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Lim, B.; Zohren, S. Time-Series Forecasting with Deep Learning: A Survey. Phil. Trans. R. Soc. A 2021, 379, 20200209. [Google Scholar] [CrossRef] [Scilit]
  29. Goldstein, B.A.; Navar, A.M.; Pencina, M.J.; Ioannidis, J.P.A. Opportunities and Challenges in Developing Risk Prediction Models with EHR Data. J. Am. Med. Inform. Assoc. 2017, 24, 198–208. [Google Scholar] [CrossRef] [Scilit]
  30. Cascarano, A.; Mur-Petit, J.; Hernández-González, J.; Camacho, M.; de Toro Eadie, N.; Gkontra, P.; Chadeau-Hyam, M.; Vitrià, J.; Lekadir, K. Machine and Deep Learning for Longitudinal Biomedical Data: A Review of Methods and Applications. Artif. Intell. Rev. 2023, 56, 1711–1771. [Google Scholar] [CrossRef] [Scilit]
  31. Verbeke, G.; Molenberghs, G. Linear Mixed Models for Longitudinal Data; Springer: New York, NY, USA, 2000. [Google Scholar]
  32. LeCun, Y.; Bengio, Y.; Hinton, G. Deep Learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [Scilit]
  33. Patterson, H.D.; Thompson, R. Recovery of Inter-Block Information When Block Sizes Are Unequal. Biometrika 1971, 58, 545–554. [Google Scholar] [CrossRef]
  34. Robinson, G.K. That BLUP Is a Good Thing: The Estimation of Random Effects. Stat. Sci. 1991, 6, 15–32. [Google Scholar]
  35. Kenward, M.G.; Roger, J.H. Small Sample Inference for Fixed Effects from Restricted Maximum Likelihood. Biometrics 1997, 53, 983–997. [Google Scholar] [CrossRef] [Scilit]
  36. Bates, D.; Mächler, M.; Bolker, B.; Walker, S. Fitting Linear Mixed-Effects Models Using lme4. J. Stat. Softw. 2015, 67, 1–48. [Google Scholar] [CrossRef] [Scilit]
  37. Breslow, N.E.; Clayton, D.G. Approximate Inference in Generalized Linear Mixed Models. J. Am. Stat. Assoc. 1993, 88, 9–25. [Google Scholar] [CrossRef] [Scilit]
  38. McCulloch, C.E.; Neuhaus, J.M. Generalized Linear Mixed Models. In Encyclopedia of Biostatistics; Wiley: Hoboken, NJ, USA, 2005. [Google Scholar]
  39. Liu, Q.; Pierce, D.A. A Note on Gauss–Hermite Quadrature. Biometrika 1994, 81, 624–629. [Google Scholar]
  40. Raudenbush, S.W.; Yang, M.-L.; Yosef, M. Maximum Likelihood for Generalized Linear Models with Nested Random Rffects via High-Order, Multivariate Laplace Approximation. J. Comput. Graph. Stat. 2000, 9, 141–157. [Google Scholar] [CrossRef] [Scilit]
  41. Wolfinger, R.; O’Connell, M. Generalized Linear Mixed Models: A Pseudo-Likelihood Approach. J. Stat. Comput. Simul. 1993, 48, 233–243. [Google Scholar] [CrossRef] [Scilit]
  42. Gilks, W.R.; Richardson, S.; Spiegelhalter, D.J. Markov Chain Monte Carlo in Practice; CRC Press: Boca Raton, FL, USA, 1996. [Google Scholar]
  43. Zeger, S.L.; Liang, K.-Y. Longitudinal Data Analysis for Discrete and Continuous Outcomes. Biometrics 1986, 42, 121–130. [Google Scholar] [CrossRef] [Scilit]
  44. Mancl, L.A.; DeRouen, T.A. A Covariance Estimator for GEE with Improved Small-Sample Properties. Biometrics 2001, 57, 126–134. [Google Scholar] [CrossRef] [Scilit]
  45. Kauermann, G.; Carroll, R.J. A Note on the Efficiency of Sandwich Covariance Matrix Estimation. J. Am. Stat. Assoc. 2001, 96, 1387–1396. [Google Scholar] [CrossRef] [Scilit]
  46. Qu, A.; Lindsay, B.G.; Li, B. Improving Generalised Estimating Equations using Quadratic Inference Functions. Biometrika 2000, 87, 823–836. [Google Scholar] [CrossRef] [Scilit]
  47. Heckman, J.J. The Incidental Parameter Problem and the Problem of Initial Conditions in Estimating a Discrete Time-Discrete Data. In Structural Analysis of Discrete Data; MIT Press: Cambridge, MA, USA, 1981. [Google Scholar]
  48. Tibshirani, R. Regression Shrinkage and Selection via the Lasso. J. R. Stat. Soc. B 1996, 58, 267–288. [Google Scholar] [CrossRef] [Scilit]
  49. Hastie, T.; Tibshirani, R.; Wainwright, M. Statistical Learning with Sparsity; CRC Press: Boca Raton, FL, USA, 2015. [Google Scholar]
  50. Schelldorfer, J.; Bühlmann, P.; Van de Geer, S. Estimation for High-Dimensional Linear Mixed-Effects Models Using ℓ1-Penalization. Scand. J. Stat. 2011, 38, 197–214. [Google Scholar] [CrossRef] [Scilit]
  51. Zou, H. The Adaptive Lasso and Its Oracle Properties. J. Am. Stat. Assoc. 2006, 101, 1418–1429. [Google Scholar] [CrossRef] [Scilit]
  52. Fan, J.; Li, R. Variable Selection via Nonconcave Penalized Likelihood. J. Am. Stat. Assoc. 2001, 96, 1348–1360. [Google Scholar] [CrossRef] [Scilit]
  53. Ibrahim, J.G.; Zhu, H.; Garcia, R.I.; Guo, R. Fixed and Random Effects Selection in Mixed Effects Models. Biometrics 2011, 67, 495–503. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  54. Bondell, H.D.; Krishna, A.; Ghosh, S.K. Joint Variable Selection for Fixed and Random Effects in Linear Mixed-Effects Models. Biometrics 2010, 66, 1069–1077. [Google Scholar] [CrossRef] [Scilit]
  55. Zou, H.; Li, R. One-Step Sparse Estimates in Nonconcave Penalized Likelihood Models. Ann. Stat. 2008, 36, 1509–1533. [Google Scholar]
  56. Zou, H.; Hastie, T. Regularization and Variable Selection via the Elastic Net. J. R. Stat. Soc. B 2005, 67, 301–320. [Google Scholar] [CrossRef] [Scilit]
  57. Ghosh, A.; Thoresen, M. Non-concave Penalization in Linear Mixed-Effect Models and Regularized Selection of Fixed Effects. AStA Adv. Stat. Anal. 2018, 102, 179–210. [Google Scholar] [CrossRef] [Scilit]
  58. Yuan, M.; Lin, Y. Model Selection and Estimation in Regression with Grouped Variables. J. R. Stat. Soc. B 2006, 68, 49–67. [Google Scholar] [CrossRef] [Scilit]
  59. Ma, S.; Song, X.; Huang, J. Supervised Group Lasso with Applications to Microarray Data. BMC Bioinform. 2007, 8, 60. [Google Scholar] [CrossRef] [Scilit]
  60. Simon, N.; Friedman, J.; Hastie, T.; Tibshirani, R. A Sparse-Group Lasso. J. Comput. Graph. Stat. 2013, 22, 231–245. [Google Scholar] [CrossRef] [Scilit]
  61. Tibshirani, R.; Saunders, M.; Rosset, S.; Zhu, J.; Knight, K. Sparsity and Smoothness via the Fused Lasso. J. R. Stat. Soc. B 2005, 67, 91–108. [Google Scholar] [CrossRef] [Scilit]
  62. Olaniran, O.R.; Olaniran, S.F.; Alzahrani, A.R.R.; Alharbi, N.M.; Alzahrani, A.A. Bayesian Tapered Narrowband Least Squares for Fractional Cointegration Testing in Panel Data. Mathematics 2025, 13, 1615. [Google Scholar] [CrossRef] [Scilit]
  63. Wang, L.; Zhou, J.; Qu, A. Penalized Generalized Estimating Equations for High-Dimensional Longitudinal Data Analysis. Biometrics 2012, 68, 353–360. [Google Scholar] [CrossRef] [Scilit]
  64. Fan, J.; Lv, J.; Qi, L. Sparse High-Dimensional Models in Economics. Annu. Rev. Econ. 2011, 3, 291–317. [Google Scholar] [CrossRef] [Scilit]
  65. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
  66. Hothorn, T.; Hornik, K.; Zeileis, A. Unbiased Recursive Partitioning: A Conditional Inference Framework. J. Comput. Graph. Stat. 2006, 15, 651–674. [Google Scholar] [CrossRef] [Scilit]
  67. Hajjem, A.; Bellavance, F.; Larocque, D. Mixed-Effects Random Forest for Clustered Data. J. Stat. Comput. Simul. 2014, 84, 1313–1328. [Google Scholar] [CrossRef] [Scilit]
  68. Capitaine, L.; Genuer, R.; Thiébaut, R. Random Forests for High-Dimensional Longitudinal Data. Stat. Methods Med. Res. 2021, 30, 166–184. [Google Scholar] [CrossRef] [Scilit]
  69. Ishwaran, H.; Kogalur, U.B.; Blackstone, E.H.; Lauer, M.S. Random Survival Forests. Ann. Appl. Stat. 2008, 2, 841–860. [Google Scholar] [CrossRef] [Scilit]
  70. Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
  71. Sigrist, F. Gaussian Process Boosting. J. Mach. Learn. Res. 2022, 23, 1–47. [Google Scholar]
  72. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  73. Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.Y. LightGBM: A Highly Efficient Gradient Boosting Decision Tree. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 3146–3154. [Google Scholar]
  74. Cameron, A.C.; Miller, D.L. A Practitioner’s Guide to Cluster-Robust Inference. J. Hum. Resour. 2015, 50, 317–372. [Google Scholar] [CrossRef] [Scilit]
  75. Torlay, L.; Perrone-Bertolotti, M.; Thomas, E.; Baciu, M. Machine Learning–XGBoost Analysis of Language Networks. Brain Inform. 2017, 4, 159–169. [Google Scholar] [CrossRef] [Scilit]
  76. Chipman, H.A.; George, E.I.; McCulloch, R.E. BART: Bayesian Additive Regression Trees. Ann. Appl. Stat. 2010, 4, 266–298. [Google Scholar] [CrossRef] [Scilit]
  77. Tan, Y.V.; Roy, J. Bayesian Additive Regression Trees and the General BART Model. Stat. Med. 2019, 38, 5048–5069. [Google Scholar] [CrossRef] [Scilit]
  78. Rasmussen, C.E.; Williams, C.K.I. Gaussian Processes for Machine Learning; MIT Press: Cambridge, MA, USA, 2006. [Google Scholar]
  79. Dürichen, R.; Pimentel, M.A.F.; Clifton, L.; Schweikard, A.; Clifton, D.A. Multitask Gaussian Processes for Multivariate Physiological Time-Series. IEEE Trans. Biomed. Eng. 2015, 62, 314–322. [Google Scholar] [CrossRef] [Scilit]
  80. Schulam, P.; Saria, S. Reliable Decision Support Using Counterfactual Models. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 1697–1707. [Google Scholar]
  81. Futoma, J.; Hariharan, S.; Heller, K. Learning to Detect Sepsis with a Multitask Gaussian Process RNN Classifier. In Proceedings of the 34th International Conference on Machine Learning; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 1174–1182. [Google Scholar]
  82. Quiñonero-Candela, J.; Rasmussen, C.E. A Unifying View of Sparse Approximate Gaussian Process Regression. J. Mach. Learn. Res. 2005, 6, 1939–1959. [Google Scholar]
  83. Hensman, J.; Fusi, N.; Lawrence, N.D. Gaussian Processes for Big Data. In Proceedings of the Twenty-Ninth Conference on Uncertainty in Artificial Intelligence; AUAI Press: Arlington, VA, USA, 2013; pp. 282–290. [Google Scholar]
  84. Cortes, C.; Vapnik, V. Support-Vector Networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef] [Scilit]
  85. Chen, T.; Zeng, D.; Wang, Y. Multiple Kernel Learning with Random Effects for Predicting Longitudinal Outcomes and Data Integration. Biometrics 2015, 71, 918–928. [Google Scholar] [CrossRef] [Scilit]
  86. Chen, S.; DuBois Bowman, F. A Novel Support Vector Classifier for Longitudinal High-Dimensional Data and Its Application to Neuroimaging Data. Stat. Anal. Data Min. 2011, 4, 604–611. [Google Scholar] [CrossRef] [Scilit]
  87. Gelman, A.; Carlin, J.B.; Stern, H.S.; Dunson, D.B.; Vehtari, A.; Rubin, D.B. Bayesian Data Analysis, 3rd ed.; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
  88. Carpenter, B.; Gelman, A.; Hoffman, M.D.; Lee, D.; Goodrich, B.; Betancourt, M.; Brubaker, M.; Guo, J.; Li, P.; Riddell, A. Stan: A Probabilistic Programming Language. J. Stat. Softw. 2017, 76, 1–32. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  89. Vehtari, A.; Gelman, A.; Gabry, J. Practical Bayesian Model Evaluation Using Leave-one-out cross-validation and WAIC. Stat. Comput. 2017, 27, 1413–1432. [Google Scholar] [CrossRef] [Scilit]
  90. Mitchell, T.J.; Beauchamp, J.J. Bayesian Variable Selection in Linear Regression. J. Am. Stat. Assoc. 1988, 83, 1023–1032. [Google Scholar] [CrossRef]
  91. Carvalho, C.M.; Polson, N.G.; Scott, J.G. The Horseshoe Estimator for Sparse Signals. Biometrika 2010, 97, 465–480. [Google Scholar] [CrossRef] [Scilit]
  92. Piironen, J.; Vehtari, A. Sparsity Information and Regularization in the Horseshoe and other Shrinkage Priors. Electron. J. Stat. 2017, 11, 5018–5051. [Google Scholar] [CrossRef] [Scilit]
  93. Park, T.; Casella, G. The Bayesian Lasso. J. Am. Stat. Assoc. 2008, 103, 681–686. [Google Scholar] [CrossRef] [Scilit]
  94. Olaniran, O.R.; Olaniran, S.F.; Allohibi, J.; Alharbi, A.A.; Alharbi, N.M. Hybrid Random Feature Selection and Recurrent Neural Network for Diabetes Prediction. Mathematics 2025, 13, 628. [Google Scholar] [CrossRef] [Scilit]
  95. Ferguson, T.S. A Bayesian Analysis of Some Nonparametric Problems. Ann. Stat. 1973, 1, 209–230. [Google Scholar] [CrossRef] [Scilit]
  96. Sethuraman, J. A Constructive Definition of Dirichlet Priors. Stat. Sin. 1994, 4, 639–650. [Google Scholar]
  97. Müller, P.; Rosner, G.L. A Bayesian Population Model with Hierarchical Mixture Priors. J. Am. Stat. Assoc. 1997, 92, 1279–1292. [Google Scholar]
  98. Wade, S.; Mongelluzzo, S.; Petrone, S. An Enriched Conjugate Prior for Bayesian Nonparametric Inference. Bayesian Anal. 2011, 6, 389–417. [Google Scholar] [PubMed]
  99. MacEachern, S.N. Dependent Dirichlet Processes; Technical Report; Ohio State University: Columbus, OH, USA, 2000. [Google Scholar]
  100. Elman, J.L. Finding Structure in Time. Cogn. Sci. 1990, 14, 179–211. [Google Scholar] [CrossRef]
  101. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit]
  102. Choi, E.; Bahadori, M.T.; Schuetz, A.; Stewart, W.F.; Sun, J. Doctor AI: Predicting Clinical Events via Recurrent Neural Networks. JMLR Workshop Conf. Proc. 2016, 56, 301–318. [Google Scholar]
  103. Rajkomar, A.; Oren, E.; Chen, K.; Dai, A.M.; Hajaj, N.; Hardt, M.; Liu, P.J.; Liu, X.; Marcus, J.; Sun, M.; et al. Scalable and Accurate Deep Learning with Electronic Health Records. npj Digit. Med. 2018, 1, 18. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  104. Baytas, I.M.; Xiao, C.; Zhang, X.; Wang, F.; Jain, A.K.; Zhou, J. Patient Subtyping via Time-Aware LSTM Networks. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2017; pp. 65–74. [Google Scholar]
  105. Cho, K.; Van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning Phrase Representations Using RNN Encoder–Decoder. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2014; pp. 1724–1734. [Google Scholar]
  106. Che, Z.; Purushotham, S.; Cho, K.; Sontag, D.; Liu, Y. Recurrent Neural Networks for Multivariate Time Series with Missing Values. Sci. Rep. 2018, 8, 6085. [Google Scholar] [CrossRef] [Scilit]
  107. Bai, S.; Kolter, J.Z.; Koltun, V. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar] [CrossRef] [Scilit]
  108. Razavian, N.; Marcus, J.; Sontag, D. Multi-task Prediction of Disease Onsets from Longitudinal Lab Tests. In Proceedings of the 1st Machine Learning for Healthcare Conference; PMLR: Los Angeles, CA, USA, 2016; pp. 73–88. [Google Scholar]
  109. Lee, C.; van der Schaar, M. Temporal Phenotyping Using Deep Predictive Clustering of disease progression. In Proceedings of the 37th International Conference on Machine Learning; Curran Associates Inc.: Red Hook, NY, USA, 2020; pp. 5767–5777. [Google Scholar]
  110. Zerveas, G.; Jayaraman, S.; Patel, D.; Bhamidipaty, A.; Eickhoff, C. A Transformer-Based Framework for Multivariate Time Series Representation Learning. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining; Association for Computing Machinery: New York, NY, USA, 2021; pp. 2114–2124. [Google Scholar]
  111. Li, S.; Jin, X.; Xuan, Y.; Zhou, X.; Chen, W.; Wang, Y.X.; Yan, X. Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting. In Proceedings of the 33rd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2019; pp. 5243–5253. [Google Scholar]
  112. Song, H.; Rajan, D.; Thiagarajan, J.J.; Spanias, A. Attend and Diagnose: Clinical Time Series Analysis Using Attention Models. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Palo Alto, CA, USA, 2018; pp. 4091–4098. [Google Scholar]
  113. Tipirneni, S.; Reddy, C.K. Self-supervised Transformer for Sparse and Irregularly Sampled Multivariate Clinical Time-Series. ACM Trans. Knowl. Discov. Data (TKDD) 2022, 16, 105. [Google Scholar] [CrossRef] [Scilit]
  114. Horn, M.; Moor, M.; Bock, C.; Rieck, B.; Borgwardt, K. Set Functions for Time Series. In Proceedings of the 37th International Conference on Machine Learning; Curran Associates Inc.: Red Hook, NY, USA, 2020; pp. 4353–4363. [Google Scholar]
  115. Wen, Q.; Zhou, T.; Zhang, C.; Chen, W.; Ma, Z.; Yan, J.; Sun, L. Transformers in Time Series: A Survey. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence; International Joint Conferences on Artificial Intelligence: Bremen, Germany, 2023. [Google Scholar]
  116. Rubanova, Y.; Chen, R.T.Q.; Duvenaud, D.K. Latent Ordinary Differential Equations for Irregularly-Sampled Time Series. In Proceedings of the 33rd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2019; pp. 5321–5331. [Google Scholar]
  117. De Brouwer, E.; Simm, J.; Arany, A.; Moreau, Y. GRU-ODE-Bayes: Continuous Modeling of Sporadically-Observed Time Series. In Proceedings of the 33rd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2019; pp. 7379–7390. [Google Scholar]
  118. Kidger, P.; Morrill, J.; Foster, J.; Lyons, T. Neural Controlled Differential Equations for Irregular Time Series. In Proceedings of the 34th International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2020; pp. 6696–6707. [Google Scholar]
  119. Kingma, D.P.; Welling, M. Auto-Encoding Variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations, Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
  120. Ramchandran, S.; Tikhonov, G.; Kujanpää, K.; Koskinen, M.; Lähdesmäki, H. Longitudinal Variational Autoencoder. In Proceedings of 24th International Conference on Artificial Intelligence and Statistics; Microtome Publishing: Brookline, MA, USA, 2021; pp. 3898–3906. [Google Scholar]
  121. Fortuin, V.; Huser, M.; Locatello, F.; Strathmann, H.; Rätsch, G. SOM-VAE: Interpretable Discrete Representation Learning on Time Series. In Proceedings of the 7th International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  122. Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. In Proceedings of the 5th International Conference on Learning Representations, Toulon, France, 24–26 April 2017. [Google Scholar]
  123. Rossi, E.; Chamberlain, B.; Frasca, F.; Eynard, D.; Monti, F.; Bronstein, M. Temporal Graph Networks for Deep Learning on Dynamic Graphs. arXiv 2020, arXiv:2006.10637. [Google Scholar] [CrossRef] [Scilit]
  124. Choi, E.; Xiao, C.; Stewart, W.F.; Sun, J. MiME: Multilevel Medical Embedding of electronic health records for predictive healthcare. In Proceedings of the 32nd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 4547–4557. [Google Scholar]
  125. Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 4765–4774. [Google Scholar]
  126. Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 1135–1144. [Google Scholar]
  127. Adebayo, J.; Gilmer, J.; Muelly, M.; Goodfellow, I.; Hardt, M.; Kim, B. Sanity Checks for Saliency Maps. Adv. Neural Inf. Process. Syst. 2018, 31, 9525–9536. [Google Scholar]
  128. Agarwal, R.; Melnick, L.; Frosst, N.; Zhang, X.; Lengerich, B.; Caruana, R.; Hinton, G.E. Neural Additive Models: Interpretable Machine Learning with Neural Nets. Adv. Neural Inf. Process. Syst. 2021, 34, 4699–4711. [Google Scholar]
  129. Nori, H.; Jenkins, S.; Koch, P.; Caruana, R. InterpretML: A Unified Framework for ML Interpretability. arXiv 2019, arXiv:1909.09223. [Google Scholar]
  130. Rizopoulos, D. Joint Models for Longitudinal and Time-to-Event Data: With Applications in R; CRC Press: Boca Raton, FL, USA, 2012. [Google Scholar]
  131. Tsiatis, A.A.; Davidian, M. Joint Modeling of Longitudinal and Time-to-Event Data: An Overview. Stat. Sin. 2004, 14, 809–834. [Google Scholar]
  132. Rizopoulos, D. The R Package JMbayes for Fitting Joint Models for Longitudinal and Time-to-Event Data using MCMC. J. Stat. Softw. 2016, 72, 1–46. [Google Scholar] [CrossRef] [Scilit]
  133. Rizopoulos, D. JM: An R Package for the Joint Modelling of Longitudinal and Time-to-Event Data. J. Stat. Softw. 2010, 35, 1–33. [Google Scholar] [CrossRef] [Scilit]
  134. Hickey, G.L.; Philipson, P.; Jorgensen, A.; Kolamunnage-Dona, R. Joint Modelling of Time-to-Event and Multivariate Longitudinal Outcomes: Recent Developments and Issues. BMC Med. Res. Methodol. 2016, 16, 117. [Google Scholar] [CrossRef] [Scilit]
  135. Hao, L.; Kim, J.; Kwon, S.; Ha, I.D. Deep Learning-Based Survival Analysis for High-Dimensional Survival Data. Mathematics 2021, 9, 1244. [Google Scholar] [CrossRef] [Scilit]
  136. Ramsay, J.O.; Silverman, B.W. Functional Data Analysis, 2nd ed.; Springer: New York, NY, USA, 2005. [Google Scholar]
  137. Yao, F.; Müller, H.G.; Wang, J.L. Functional Data Analysis for Sparse Longitudinal Data. J. Am. Stat. Assoc. 2005, 100, 577–590. [Google Scholar] [CrossRef] [Scilit]
  138. Wang, J.-L.; Chiou, J.-M.; Müller, H.-G. Functional Data Analysis. Annu. Rev. Stat. Appl. 2016, 3, 257–295. [Google Scholar] [CrossRef] [Scilit]
  139. Morris, J.S. Functional Regression. Annu. Rev. Stat. Appl. 2015, 2, 321–359. [Google Scholar] [CrossRef] [Scilit]
  140. Fu, G.; Dai, X.; Liang, Y. Functional Random Forests for Curve Response. Sci. Rep. 2021, 11, 24159. [Google Scholar] [CrossRef] [Scilit]
  141. van der Laan, M.J.; Rose, S. Targeted Learning; Springer: New York, NY, USA, 2011. [Google Scholar]
  142. Petersen, M.; Schwab, J.; Gruber, S.; Blaser, N.; Schomaker, M.; van der Laan, M. Targeted Maximum Likelihood Estimation for Dynamic and Static Longitudinal Marginal Structural Working Models. J. Causal Inference 2014, 2, 147–185. [Google Scholar] [CrossRef] [Scilit]
  143. Lim, B. Forecasting Treatment Responses over Time Using Recurrent Marginal Structural Networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 7483–7493. [Google Scholar]
  144. Bica, I.; Alaa, A.M.; Jordon, J.; van der Schaar, M. Estimating Counterfactual Treatment Outcomes Over Time through Adversarially Balanced Representations. In Proceedings of the 8th International Conference on Learning Representations, Addis Ababa, Ethiopia, 26–30 April 2020. [Google Scholar]
  145. Molenberghs, G.; Kenward, M. Missing Data in Clinical Studies; Wiley: Chichester, UK, 2007. [Google Scholar]
  146. van Buuren, S.; Groothuis-Oudshoorn, K. mice: Multivariate Imputation by Chained Equations in R. J. Stat. Softw. 2011, 45, 1–67. [Google Scholar] [CrossRef] [Scilit]
  147. van Buuren, S. Flexible Imputation of Missing Data, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
  148. Stekhoven, D.J.; Bühlmann, P. MissForest—Non-parametric Missing Value Imputation for Mixed-Type Data. Bioinformatics 2012, 28, 112–118. [Google Scholar] [CrossRef] [Scilit]
  149. Cao, W.; Wang, D.; Li, J.; Zhou, H.; Li, L.; Li, Y. BRITS: Bidirectional Recurrent Imputation for Time Series. In Proceedings of the 32nd International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 6775–6785. [Google Scholar]
  150. Liu, Y.; Yu, R.; Zheng, S.; Zhan, E.; Yue, Y. Naomi: Non-Autoregressive Multiresolution Sequence Imputation. Adv. Neural Inf. Process. Syst. 2019, 32, 11238–11248. [Google Scholar]
  151. Yoon, J.; Jordon, J.; van der Schaar, M. GAIN: Missing Data Imputation Using Generative Adversarial Nets. In Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 5689–5698. [Google Scholar]
  152. Luo, Y.; Cai, X.; Zhang, Y.; Xu, J.; Yuan, X. Multivariate Time Series Imputation with Generative Adversarial Networks. Adv. Neural Inf. Process. Syst. 2018, 31, 1603–1614. [Google Scholar]
  153. Muthén, B.; Shedden, K. Finite Mixture Modeling with Mixture Outcomes Using the EM Algorithm. Biometrics 1999, 55, 463–469. [Google Scholar] [CrossRef] [Scilit]
  154. Nagin, D.S. Group-Based Modeling of Development; Harvard University Press: Cambridge, MA, USA, 2005. [Google Scholar]
  155. Berndt, D.J.; Clifford, J. Using Dynamic Time Warping to Find Patterns in Time Series. In Proceedings of the 3rd International Conference on Knowledge Discovery and Data Mining; AAAI Press: Palo Alto, CA, USA, 1994; pp. 359–370. [Google Scholar]
  156. Ma, Q.; Zheng, J.; Li, S.; Cottrell, G.W. Learning Representations for Time Series Clustering. Adv. Neural Inf. Process. Syst. 2019, 32, 3781–3791. [Google Scholar] [CrossRef] [Scilit]
  157. Jiang, Z.; Zheng, Y.; Tan, H.; Tang, B.; Zhou, H. Variational Deep Embedding: An Unsupervised and Generative Approach to Clustering. In Proceedings of the 26th International Joint Conference on Artificial Intelligence; AAAI Press: Palo Alto, CA, USA, 2017; pp. 1965–1972. [Google Scholar]
  158. Lee, G.; Nho, K.; Kang, B.; Sohn, K.-A.; Kim, D. Predicting Alzheimer’s Disease Progression Using Multi-Modal Deep Learning Approach. Sci. Rep. 2019, 9, 1952. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  159. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; Aguera y Arcas, B. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, Fort Lauderdale, FL, USA, 20–22 April 2017; pp. 1273–12827. [Google Scholar]
  160. Dayan, I.; Roth, H.R.; Zhong, A.; Harouni, A.; Gentili, A.; Abidin, A.Z.; Liu, A.; Costa, A.B.; Wood, B.J.; Tsai, C.-S.; et al. Federated Learning for Predicting Clinical Outcomes in Patients with COVID-19. Nat. Med. 2021, 27, 1735–1743. [Google Scholar] [CrossRef] [Scilit]
  161. Mosaiyebzadeh, F.; Pouriyeh, S.; Parizi, R.M.; Sheng, Q.Z.; Han, M.; Zhao, L.; Sannino, G.; Ranieri, C.M.; Ueyama, J.; Batista, D.M. Privacy-Enhancing Technologies in Federated Learning for the Internet of Healthcare Things: A Survey. Electronics 2023, 12, 2703. [Google Scholar] [CrossRef] [Scilit]
  162. Zhuang, F.; Qi, Z.; Duan, K.; Xi, D.; Zhu, Y.; Zhu, H.; Xiong, H.; He, Q. A Comprehensive Survey on Transfer Learning. Proc. IEEE 2020, 109, 43–76. [Google Scholar] [CrossRef] [Scilit]
  163. Wornow, M.; Thapa, R.; Steinberg, E.; Fries, J.; Shah, N. EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Models. Adv. Neural Inf. Process. Syst. 2023, 36, 67125–67137. [Google Scholar]
  164. Rasul, K.; Ashok, A.; Williams, A.R.; Ghonia, H.; Bhagwatkar, R.; Khorasani, A.; Bayazi, M.J.D.; Adamopoulos, G.; Riachi, R.; Hassen, N.; et al. Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting. arXiv 2023, arXiv:2310.08278. [Google Scholar]
  165. Wood, S.N. Generalized Additive Models, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
  166. Chang, C.-H.; Creager, E.; Goldenberg, A.; Duvenaud, D. Explaining Image Classifiers by Counterfactual Generation. In Proceedings of the 7th International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  167. Gal, Y.; Ghahramani, Z. Dropout as a Bayesian Approximation. In Proceedings of the 33rd International Conference on Machine Learning, New York City, NY, USA, 19–24 June 2016; pp. 1050–1059. [Google Scholar]
  168. Lakshminarayanan, B.; Pritzel, A.; Blundell, C. Simple and Scalable Predictive Uncertainty Estimation Using Deep Ensembles. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 6402–6413. [Google Scholar]
  169. Vovk, V.; Gammerman, A.; Shafer, G. Algorithmic Learning in a Random World; Springer: New York, NY, USA, 2005. [Google Scholar]
  170. Stankeviciute, K.; Alaa, A.M.; van der Schaar, M. Conformal Time-Series Forecasting. In Proceedings of the 35th International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2021; pp. 6216–6228. [Google Scholar]
  171. Baltrušaitis, T.; Ahuja, C.; Morency, L.-P. Multimodal Machine Learning: A Survey and Taxonomy. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 41, 423–443. [Google Scholar] [CrossRef] [Scilit]
  172. Tsai, Y.-H.H.; Bai, S.; Liang, P.P.; Kolter, J.Z.; Morency, L.-P.; Salakhutdinov, R. Multimodal Transformer for Unaligned Multimodal Language Sequences. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 6558–6569. [Google Scholar]
  173. Xu, T.; Zhang, H.; Huang, X.; Zhang, S.; Metaxas, D.N. Multimodal Deep Learning for Cervical Dysplasia Diagnosis. In International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer: Cham, Switzerland, 2016; pp. 115–123. [Google Scholar]
  174. West, M.; Harrison, J. Bayesian Forecasting and Dynamic Models, 2nd ed.; Springer: New York, NY, USA, 1997. [Google Scholar]
  175. Parisi, G.I.; Kemker, R.; Part, J.L.; Kanan, C.; Wermter, S. Continual Lifelong Learning with Neural Networks: A Review. Neural Netw. 2019, 113, 54–71. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.