A framework based on sparse representation model for time series prediction in smart city