Spatial and temporal modeling of large-scale brain networks