Preemptively adjusting environmental controls with AI