AI predicts how patients will fare against viral infections