Detecting Contextual Anomalies by Discovering Consistent Spatial Regions