Neural networks for clustered and longitudinal data using mixed effects models

Biometrics. 2023 Jun;79(2):711-721. doi: 10.1111/biom.13615. Epub 2022 Feb 8.

Abstract

Although most statistical methods for the analysis of longitudinal data have focused on retrospective models of association, new advances in mobile health data have presented opportunities for predicting future health status by leveraging an individual's behavioral history alongside data from similar patients. Methods that incorporate both individual-level and sample-level effects are critical to using these data to its full predictive capacity. Neural networks are powerful tools for prediction, but many assume input observations are independent even when they are clustered or correlated in some way, such as in longitudinal data. Generalized linear mixed models (GLMM) provide a flexible framework for modeling longitudinal data but have poor predictive power particularly when the data are highly nonlinear. We propose a generalized neural network mixed model that replaces the linear fixed effect in a GLMM with the output of a feed-forward neural network. The model simultaneously accounts for the correlation structure and complex nonlinear relationship between input variables and outcomes, and it utilizes the predictive power of neural networks. We apply this approach to predict depression and anxiety levels of schizophrenic patients using longitudinal data collected from passive smartphone sensor data.

Keywords: longitudinal analysis; mobile health; neural networks; prediction; random effects.

Publication types

  • Research Support, N.I.H., Extramural

MeSH terms

  • Humans
  • Linear Models
  • Neural Networks, Computer*
  • Retrospective Studies