Stochastic Local Interaction Models for Processing Spatiotemporal Datasets