Energy Prediction using Spatiotemporal Pattern Networks