A scalable generative model for dynamical system reconstruction from neuroimaging data