Comparison of Deep Neural Networks and Deep Hierarchical Models for Spatio-Temporal Data