A method for energy consumption prediction based on automatic identification of anomalies and special operating conditions in raw data