LMLFM: Longitudinal Multi-Level Factorization Machine

Junjie Liang, Dongkuan Xu, Yiwei Sun, Vasant G. Honavar

Predicting outcomes from longitudinal data—repeated observations of individuals over time—is critical in fields ranging from healthcare to economics. However, this data presents unique challenges due to complex dependencies: Longitudinal Correlation (the influence of an individual's past on their future) and Cluster Correlation (the similarity in behavior among related groups).

Figure 1: Illustration of longitudinal and cluster correlations in health status prediction.

Traditionally, researchers have relied on Linear Mixed Models (LMMs) to account for these correlations by distinguishing between fixed effects (population-wide trends) and random effects (individual-specific variations). Yet, as datasets grow in dimensionality, these classical tools struggle with high-dimensional features, non-linear interactions, and the manual burden of model specification.

In their AAAI-20 paper, Liang et al. introduce the Longitudinal Multi-Level Factorization Machine (LMLFM), a framework designed to integrate the efficiency of modern machine learning with the statistical rigor of mixed effects modeling.

The Challenges of Traditional Longitudinal Analysis

Most longitudinal analysis utilizes LMMs, which face three primary hurdles:

  1. Manual Specification: Researchers must manually decide which variables are fixed or random, a process often requiring deep domain expertise and trial-and-error.
  2. Computational Scalability: Selection methods for these effects typically scale cubically ($O(q^3)$) with the number of variables, rendering them impractical for high-dimensional data like genomics.
  3. Linearity Assumptions: Standard models often assume linear relationships, failing to capture complex, non-linear interactions between features.

Methodology: Bridging Statistics and Latent Factor Modeling

LMLFM addresses these limitations by extending Factorization Machines (FM) into a hierarchical Bayesian framework.

Figure 3: The LMLFM architecture, featuring Laplace layers for automatic variable selection and a prediction layer for capturing interactions.

Key Innovations

  • Latent Decomposition: The model decomposes random effects into individual-specific factors ($\theta_i$) and observation-specific factors ($\theta_o$), explicitly modeling both longitudinal and cluster correlations.
  • Hierarchical Bayesian Framework: LMLFM utilizes two layers of Laplace priors. The first layer promotes sparsity in latent representations, while the second layer automatically identifies fixed and random effects by shrinking irrelevant components to zero.
  • Efficient Optimization: By employing the Iterated Conditional Modes (ICM) algorithm, the authors achieve a computational complexity of $O(|S|)$, which is linear relative to the number of observations. This is a significant improvement over the cubic complexity of traditional methods.

Experimental Validation

The authors evaluated LMLFM across three diverse datasets:

  1. Simulated Data: Synthetic sets with up to 5,000 variables to test scalability and selection accuracy.
  2. SWAN (Study of Women’s Health Across the Nation): A medical dataset used to predict depression scores (CESD) using 137 variables across 3,300 individuals.
  3. GSS (General Social Survey): A social science dataset with 1,553 variables from 4,510 individuals, aimed at predicting self-reported happiness.

Key Results and Insights

  • Superior Predictive Performance: On the SWAN dataset, LMLFM achieved an $R^2$ of 30%, significantly outperforming standard LASSO (21%) and Random Forests (23%).
  • Automated Variable Selection: In high-dimensional simulations, LMLFM maintained a near-zero false-positive rate for variable selection even as features scaled to 5,000.
  • Interpretability: The variables identified as highly predictive of depression (e.g., mood fluctuations, income, ethnicity) aligned closely with established clinical literature.
  • Non-linear Interactions: By leveraging the FM backbone, LMLFM captures interactions between variables—such as the combined effect of age and specific health markers—that linear models overlook.

Conclusion

LMLFM represents a major advancement for researchers working with "wide" longitudinal data. By automating the discovery of fixed and random effects and providing a scalable, non-linear modeling framework, it offers a rare combination of statistical depth and machine learning efficiency. Future work may extend this model to handle non-Gaussian distributions and deeper hierarchical structures.

Summary updated

BibTeX
@inproceedings{liang2020lmlfm,
  author = {Junjie Liang and Dongkuan Xu and Yiwei Sun and Vasant G. Honavar},
  title = {{LMLFM: Longitudinal Multi-Level Factorization Machine}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5916},
}
Figure