Predictive cooling with artificial intelligence