Latent variable time-varying network inference