stat.MEOct 11, 2026

Deep Neural Mixed Models for Nonlinear Longitudinal Prediction with Subject-Specific Heterogeneity

Authors: Mahmud Hasan, Niloofar Ramezani, Hrishikesh Chakraborty

Organizations: Department of Mathematics and Statistics, Penn State Altoona, PA, USA · Department of Biostatistics, Virginia Commonwealth University, VA, USA · Department of Biostatistics & Bioinformatics, Duke University, NC, USA

Abstract

Longitudinal health data often exhibit within-subject correlation, subject-specific heterogeneity, and complex nonlinear predictor--response relationships that may not be adequately captured by conventional mixed models. We propose a Deep Generalized Neural Network Mixed Model (DGNMM) that extends the GLMM framework by using a deep neural network to learn nonlinear population-level relationships while incorporating directly trainable, regularized subject-specific effects to capture individual heterogeneity. The model is estimated using prediction-oriented stochastic optimization with separate regularization of the neural-network parameters and subject-specific effects. This formulation allows us to investigate when increased nonlinear representation capacity provides additional predictive benefit in the presence of subject-specific heterogeneity. A simulation study varies population-level nonlinearity and subject-specific heterogeneity and compares DGNMM with GLMM, artificial neural network (ANN), Maity--Pal (MP), and GNMM alternatives for continuous and binary longitudinal outcomes. In the real-data application, DGNMM achieved the lowest MSPE for continuous depression and anxiety prediction, while alternative models remained competitive for binary outcomes. Exploratory subject-level analyses showed heterogeneous predictive gains across individuals, but the magnitude of the estimated subject-specific effects was not significantly associated with predictive gain. Overall, increased nonlinear representation capacity was most beneficial for continuous prediction under nonlinear response structures, while greater subject-specific heterogeneity did not systematically yield larger predictive gains.

Figures & tables

Explore similar work

CardsList
  1. Neural Generalized Mixed-Effects Models

    Apr 13, 2026Yuli Slavutsky, Sebastian Salazar, David M. BleiMixed-Effects ModelsGeneralized Linear Models

  2. Deep Generalised Mixed Models: a Novel Neural Network Structure for Analysing Hierarchical Data

    Aug 6, 2026Nina van Gerwen, Dimitris Rizopoulos, Manon Hillegers +2Learning with Missing DataMixed-Effects Models

  3. Neural ODE enhanced linear mixed effect models for estimating complex association patterns of time-varying covariates with the marker trajectory

    Aug 30, 2026Zhe Aurore Li, Quentin Clairon, Cécilia Samieri +3Mixed-Effects Models