Using AI to predict hospital costs in real time