Spatiotemporal modeling of brain dynamics using machine learning approaches