Spatial-temporal model with heterogeneous random effects