Hierarchical feature extraction from spatiotemporal data for cyber-physical system analytics