Artificial intelligence will predict what residents need.