Leveraging Structure in Activity Recognition: Context and Spatiotemporal Dynamics