Using artificial intelligence to improve weather forecasts