Interference reduction in classification and forecasting tasks through cluster and trend analysis